strdup: Improve idiom.
[pspp] / ChangeLog
1 2010-04-05  Bruno Haible  <bruno@clisp.org>
2
3         strdup: Improve idiom.
4         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
5         AC_LIBOBJ is used.
6         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
7         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
8         when AC_LIBOBJ is used.
9
10 2010-04-05  Bruno Haible  <bruno@clisp.org>
11
12         mbsinit, mbrtowc, wcrtomb: Improve idioms.
13         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
14         don't set REPLACE_MBSINIT to 1.
15         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
16         don't set REPLACE_MBRTOWC to 1.
17         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
18         exist, don't set REPLACE_MBSRTOWCS to 1.
19         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
20         exist, don't set REPLACE_MBSNRTOWCS to 1.
21         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
22         don't set REPLACE_WCRTOMB to 1.
23         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
24         exist, don't set REPLACE_WCSRTOMBS to 1.
25         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
26         exist, don't set REPLACE_WCSNRTOMBS to 1.
27
28 2010-04-05  Bruno Haible  <bruno@clisp.org>
29
30         ldexpl: Improve idiom.
31         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
32         make sure to set HAVE_DECL_LDEXPL to 0.
33
34 2010-04-05  Jim Meyering  <meyering@redhat.com>
35
36         init.sh: fix typo
37         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
38
39         init.sh: make it easier for a test script to write to the tty, ...
40         when using automake's parallel-tests mode.
41         * tests/init.sh (stderr_fileno_): Define overridable variable.
42         (warn_): New function, to use it.
43         (fail_, skip_, framework_failure_): Use warn_.
44
45 2010-04-04  Bruno Haible  <bruno@clisp.org>
46
47         btowc: Avoid warning.
48         * lib/btowc.c: Include <stdlib.h>.
49         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
50
51 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
52             Bruno Haible  <bruno@clisp.org>
53
54         wchar: Port to NetBSD 1.5.
55         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
56         * lib/wctype.in.h (WEOF): Likewise.
57
58 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
59             Bruno Haible  <bruno@clisp.org>
60
61         Port extended stdio to NetBSD 1.5.
62         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
63         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
64         older.
65
66 2010-04-04  Bruno Haible  <bruno@clisp.org>
67
68         string: Remove unused substitution.
69         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
70         HAVE_DECL_STRERROR.
71         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
72
73 2010-04-04  Bruno Haible  <bruno@clisp.org>
74
75         strtod: Avoid a possible C++ test error.
76         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
77         set REPLACE_STRTOD.
78
79 2010-04-04  Bruno Haible  <bruno@clisp.org>
80
81         strerror: Update documentation.
82         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
83
84 2010-04-04  Bruno Haible  <bruno@clisp.org>
85
86         stdio: Fix some C++ test errors on Solaris 8 with GCC.
87         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
88         _GL_CXXALIAS_SYS_CAST.
89
90 2010-04-04  Bruno Haible  <bruno@clisp.org>
91
92         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
93         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
94         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
95         REPLACE_FREXPL to 1.
96         * doc/posix-functions/frexpl.texi: Update documentation.
97
98 2010-04-04  Bruno Haible  <bruno@clisp.org>
99
100         math: Fix some C++ test errors on Solaris 8 and Cygwin.
101         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
102
103 2010-04-04  Bruno Haible  <bruno@clisp.org>
104
105         Implement nanosleep for native Windows.
106         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
107
108 2010-04-04  Bruno Haible  <bruno@clisp.org>
109
110         math: Fix some C++ test errors on Solaris 8.
111         * lib/math.in.h (truncf, trunc): Use simpler idiom.
112
113 2010-04-04  Bruno Haible  <bruno@clisp.org>
114
115         math: Fix some C++ test errors on Cygwin.
116         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
117         truncl): Provide declaration if the system does not have it.
118         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
119         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
120         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
121         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
122         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
123         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
124         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
125         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
126         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
127         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
128         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
129         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
130         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
131         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
132         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
133         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
134         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
135         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
136         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
137         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
138         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
139         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
140
141 2010-04-04  Bruno Haible  <bruno@clisp.org>
142
143         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
144         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
145         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
146         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
147         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
148         * m4/isinf.m4 (gl_ISINF): Likewise.
149         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
150
151 2010-04-04  Bruno Haible  <bruno@clisp.org>
152
153         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
154         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
155
156 2010-04-04  Bruno Haible  <bruno@clisp.org>
157
158         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
159         * modules/tmpfile (configure.ac): Update.
160
161         tmpfile: Fix C++ test error on mingw.
162         * lib/stdio.in.h (tmpfile): New declaration.
163         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
164         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
165         * modules/tmpfile (Depends-on): Add stdio.
166         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
167         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
168         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
169         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
170         REPLACE_TMPFILE.
171         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
172
173 2010-04-04  Bruno Haible  <bruno@clisp.org>
174
175         ioctl: Fix C++ test error on mingw.
176         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
177         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
178         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
179
180 2010-04-03  Bruno Haible  <bruno@clisp.org>
181
182         wcwidth: Fix C++ test error on mingw.
183         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
184         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
185         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
186
187 2010-04-03  Bruno Haible  <bruno@clisp.org>
188
189         nanosleep: Fix C++ test error on mingw.
190         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
191         * lib/time.in.h (nanosleep): Use modern idiom.
192         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
193         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
194         REPLACE_NANOSLEEP to 1.
195         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
196         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
197
198 2010-04-03  Bruno Haible  <bruno@clisp.org>
199
200         strptime: Fix C++ test error on mingw.
201         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
202         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
203         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
204         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
205         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
206         not REPLACE_STRPTIME.
207         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
208         REPLACE_STRPTIME.
209
210 2010-04-03  Bruno Haible  <bruno@clisp.org>
211
212         timegm: Fix C++ test error on mingw.
213         * lib/time.in.h (timegm): Use modern idiom.
214         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
215         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
216         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
217         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
218
219 2010-04-03  Bruno Haible  <bruno@clisp.org>
220
221         timegm: Assume declaration if function exists.
222         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
223         if it exists. Don't clobber ac_cv_func_timegm.
224
225 2010-04-03  Bruno Haible  <bruno@clisp.org>
226
227         time_r: Fix C++ test error on mingw.
228         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
229         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
230         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
231         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
232         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
233
234 2010-04-03  Bruno Haible  <bruno@clisp.org>
235
236         time_r: Minor updates.
237         * modules/time_r (Description): Mention the provided functions.
238         * lib/time_r.c: Don't include <string.h>.
239         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
240         * doc/posix-functions/localtime_r.texi: Likewise.
241
242 2010-04-03  Bruno Haible  <bruno@clisp.org>
243
244         time: Fix regression introduced on 2010-03-08.
245         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
246         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
247
248 2010-04-03  Jim Meyering  <meyering@redhat.com>
249
250         maint.mk: don't silently disable project-specific syntax-check rules
251         * top/maint.mk (_prohibit_regexp): Define, to help people realize
252         that they need to convert their project-specific syntax-check rules
253         to use the new _sc_search_regexp.
254
255 2010-04-03  Bruno Haible  <bruno@clisp.org>
256
257         fchdir: Fix regression introduced on 2010-03-08.
258         * lib/unistd.in.h (fchdir): Fix declaration.
259         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
260         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
261         REPLACE_FCHDIR.
262         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
263         REPLACE_FCHDIR.
264
265 2010-04-03  Bruno Haible  <bruno@clisp.org>
266
267         getpagesize: Fix C++ test error on mingw.
268         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
269         system does not declare the function.
270         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
271         declared.
272         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
273         HAVE_DECL_GETPAGESIZE.
274         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
275
276 2010-04-03  Bruno Haible  <bruno@clisp.org>
277
278         stdio: Make C++ tests work on mingw.
279         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
280         does not declare the function.
281
282 2010-04-03  Bruno Haible  <bruno@clisp.org>
283
284         ftello: Fix C++ test error on mingw.
285         * lib/stdio.in.h (ftello): Use modern idiom.
286         * lib/ftello.c (ftello): Renamed from rpl_ftello.
287         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
288         is missing and that it needs to be replaced.
289         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
290         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
291         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
292
293 2010-04-03  Bruno Haible  <bruno@clisp.org>
294
295         fseeko: Fix C++ test error on mingw.
296         * lib/stdio.in.h (fseeko): Use modern idiom.
297         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
298         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
299         is missing and that it needs to be replaced.
300         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
301         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
302         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
303
304 2010-04-03  Bruno Haible  <bruno@clisp.org>
305
306         mkstemp: Fix C++ test error on mingw.
307         * lib/stdlib.in.h (mkstemp): Use modern idiom.
308         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
309         function is missing and that it needs to be replaced.
310         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
311         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
312
313 2010-04-03  Bruno Haible  <bruno@clisp.org>
314
315         stpncpy: Fix C++ test error on mingw.
316         * lib/string.in.h (stpncpy): Use modern idiom.
317         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
318         function is missing and that it needs to be replaced.
319         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
320         REPLACE_STPNCPY.
321         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
322
323 2010-04-03  Bruno Haible  <bruno@clisp.org>
324
325         sys_stat: Fix C++ test error on mingw.
326         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
327         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
328
329 2010-04-03  Bruno Haible  <bruno@clisp.org>
330
331         pty: Update doc.
332         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
333
334 2010-04-03  Bruno Haible  <bruno@clisp.org>
335
336         unistd: Fix C++ test error on mingw.
337         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
338
339 2010-04-03  Bruno Haible  <bruno@clisp.org>
340
341         Update doc regarding mingw.
342         * doc/glibc-functions/openpty.texi: Update regarding mingw.
343         * doc/glibc-functions/login_tty.texi: Likewise.
344         * doc/glibc-functions/forkpty.texi: Likewise.
345
346 2010-04-03  Bruno Haible  <bruno@clisp.org>
347
348         stdlib: Avoid compilation failure of c-strtold on mingw.
349         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
350
351 2010-04-03  Bruno Haible  <bruno@clisp.org>
352
353         locale: Make C++ tests work on Cygwin and mingw.
354         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
355         cannot provide the function.
356         Reported by Simon Josefsson.
357
358 2010-04-03  Bruno Haible  <bruno@clisp.org>
359
360         localename: Port to MacOS X 10.6.
361         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
362         memory layout of the locales in MacOS X 10.6 as well.
363         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
364
365 2010-04-02  Bruno Haible  <bruno@clisp.org>
366
367         gnulib-tool: Ensure that long-running tests are executed last.
368         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
369         running tests after the one for the other tests.
370
371 2010-04-02  Bruno Haible  <bruno@clisp.org>
372
373         gnulib-tool: Ensure the tests in the main directory are executed first.
374         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
375         start with the current directory.
376
377 2010-04-02  Bruno Haible  <bruno@clisp.org>
378
379         Tests for module 'havelib', moved here from GNU gettext.
380         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
381         modifications.
382         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
383         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
384         with modifications.
385         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
386         modifications.
387         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
388         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
389         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
390         with modifications.
391         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
392         with modifications.
393         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
394         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
395         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
396         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
397         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
398         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
399         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
400         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
401         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
402         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
403         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
404         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
405         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
406         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
407         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
408         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
409         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
410         with modifications.
411         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
412         with modifications.
413         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
414         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
415         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
416         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
417         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
418         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
419         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
420         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
421         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
422         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
423         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
424         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
425         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
426         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
427         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
428         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
429         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
430         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
431         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
432         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
433         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
434         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
435         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
436         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
437         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
438         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
439         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
440         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
441         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
442         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
443         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
444         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
445         * tests/havelib/rpathx/rpathx.c: New file, from
446         gettext/autoconf-lib-link.
447         * tests/havelib/rpathx/Makefile.am: New file, from
448         gettext/autoconf-lib-link.
449         * tests/havelib/rpathx/configure.ac: New file, from
450         gettext/autoconf-lib-link with modifications.
451         * tests/havelib/rpathy/rpathy.c: New file, from
452         gettext/autoconf-lib-link.
453         * tests/havelib/rpathy/Makefile.am: New file, from
454         gettext/autoconf-lib-link.
455         * tests/havelib/rpathy/configure.ac: New file, from
456         gettext/autoconf-lib-link with modifications.
457         * tests/havelib/rpathz/rpathz.c: New file, from
458         gettext/autoconf-lib-link.
459         * tests/havelib/rpathz/Makefile.am: New file, from
460         gettext/autoconf-lib-link.
461         * tests/havelib/rpathz/configure.ac: New file, from
462         gettext/autoconf-lib-link with modifications.
463         * tests/havelib/rpathlx/usex.c: New file, from
464         gettext/autoconf-lib-link.
465         * tests/havelib/rpathlx/Makefile.am: New file, from
466         gettext/autoconf-lib-link.
467         * tests/havelib/rpathlx/configure.ac: New file, from
468         gettext/autoconf-lib-link with modifications.
469         * tests/havelib/rpathly/usey.c: New file, from
470         gettext/autoconf-lib-link.
471         * tests/havelib/rpathly/Makefile.am: New file, from
472         gettext/autoconf-lib-link.
473         * tests/havelib/rpathly/configure.ac: New file, from
474         gettext/autoconf-lib-link with modifications.
475         * tests/havelib/rpathlz/usez.c: New file, from
476         gettext/autoconf-lib-link.
477         * tests/havelib/rpathlz/Makefile.am: New file, from
478         gettext/autoconf-lib-link.
479         * tests/havelib/rpathlz/configure.ac: New file, from
480         gettext/autoconf-lib-link with modifications.
481         * tests/havelib/rpathlyx/usey.c: New file, from
482         gettext/autoconf-lib-link.
483         * tests/havelib/rpathlyx/Makefile.am: New file, from
484         gettext/autoconf-lib-link.
485         * tests/havelib/rpathlyx/configure.ac: New file, from
486         gettext/autoconf-lib-link with modifications.
487         * tests/havelib/rpathlzyx/usez.c: New file, from
488         gettext/autoconf-lib-link.
489         * tests/havelib/rpathlzyx/Makefile.am: New file, from
490         gettext/autoconf-lib-link.
491         * tests/havelib/rpathlzyx/configure.ac: New file, from
492         gettext/autoconf-lib-link with modifications.
493         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
494         with modifications.
495
496 2010-04-02  Bruno Haible  <bruno@clisp.org>
497
498         gnulib-tool: Create distributed built sources also for the tests.
499         * gnulib-tool (func_create_testdir): Also generate distributed built
500         sources in the tests directory.
501
502 2010-04-02  Bruno Haible  <bruno@clisp.org>
503
504         gnulib-tool: Obey user's environment variables.
505         * gnulib-tool (func_create_testdir): When creating built sources,
506         respect the environment variables for autoconf, automake, etc. given by
507         the user.
508
509 2010-04-02  Bruno Haible  <bruno@clisp.org>
510
511         gnulib-tool: Provide the value of --m4-base to modules.
512         * gnulib-tool (func_import, func_create_testdir): Emit a definition
513         of gl_m4_base.
514
515 2010-04-02  Eric Blake  <eblake@redhat.com>
516
517         maint.mk: fix some fallout
518         * NEWS: Document the incompatible change, and its effect on cfg.mk.
519         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
520
521 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
522
523         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
524         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
525         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
526         (sc_cast_of_x_alloc_return_value): Likewise.
527         (sc_cast_of_alloca_return_value): Likewise.
528         (sc_space_tab): Likewise.
529         (sc_prohibit_atoi_atof): Likewise.
530         (sc_prohibit_magic_number_exit): Likewise.
531         (sc_error_exit_success): Likewise.
532         (sc_file_system): Likewise.
533         (sc_prohibit_have_config_h): Likewise.
534         (sc_require_config_h): Likewise.
535         (sc_prohibit_HAVE_MBRTOWC): Likewise.
536         (sc_obsolete_symbols): Likewise.
537         (sc_changelog): Likewise.
538         (sc_program_name): Likewise.
539         (sc_the_the): Likewise.
540         (sc_trailing_blank): Likewise.
541         (sc_two_space_separator_in_usage): Likewise.
542         (sc_useless_cpp_parens): Likewise.
543         (sc_GPL_version): Likewise.
544         (sc_GFDL_version): Likewise.
545         (sc_texinfo_acronym): Likewise.
546         (sc_prohibit_cvs_keyword): Likewise.
547         (sc_prohibit_stat_st_blocks): Likewise.
548         (sc_prohibit_S_IS_definition): Likewise.
549         (sc_redundant_const): Likewise.
550         (sc_makefile_TAB_only_indentation): Likewise.
551         (sc_m4_quote_check): Likewise.
552         (sc_makefile_path_separator_check): Likewise.
553         (sc_copyright_check): Likewise.
554         (sc_Wundef_boolean): Likewise.
555         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
556
557         maint.mk: match 0 or more whitespace-before-function-call '('
558         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
559         that have zero or two-and-more spaces between the function name
560         and the open parenthesis.
561         (sc_error_message_warn_fatal): Likewise.
562         (sc_error_message_uppercase): Likewise.
563         (sc_error_message_period): Likewise.
564
565 2010-03-31  Eric Blake  <eblake@redhat.com>
566
567         maint.mk: check for [ as well as test
568         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
569         Based on a libvirt report by Matthias Bolte.
570
571         gnumakefile: don't squelch _version output
572         * top/GNUmakefile (_version): Create one-shot dependency rather
573         than using $(shell) when version must be regenerated.
574         (_autoreconf): Run verbosely, by default.
575
576         sys_time: avoid compiler warnings
577         * lib/sys_time.in.h (includes): Ensure gcc pragma is
578         unconditional, fixing regression from 2010-03-29.
579         Reported by Simon Josefsson.
580
581 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
582
583         maint.mk: s/_header_without_use/_sc_header_without_use/
584         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
585         (sc_prohibit_assert_without_use): Use the new name.
586         (sc_prohibit_close_stream_without_use): Likewise.
587         (sc_prohibit_getopt_without_use): Likewise.
588         (sc_prohibit_quotearg_without_use): Likewise.
589         (sc_prohibit_quote_without_use): Likewise.
590         (sc_prohibit_long_options_without_use): Likewise.
591         (sc_prohibit_inttostr_without_use): Likewise.
592         (sc_prohibit_ignore_value_without_use): Likewise.
593         (sc_prohibit_error_without_use): Likewise.
594         (sc_prohibit_xalloc_without_use): Likewise.
595         (sc_prohibit_hash_without_use): Likewise.
596         (sc_prohibit_hash_pjw_without_use): Likewise.
597         (sc_prohibit_safe_read_without_use): Likewise.
598         (sc_prohibit_argmatch_without_use): Likewise.
599         (sc_prohibit_canonicalize_without_use): Likewise.
600         (sc_prohibit_root_dev_ino_without_use): Likewise.
601         (sc_prohibit_openat_without_use): Likewise.
602         (sc_prohibit_c_ctype_without_use): Likewise.
603         (sc_prohibit_signal_without_use): Likewise.
604         (sc_prohibit_intprops_without_use): Likewise.
605
606 2010-03-30  Eric Blake  <eblake@redhat.com>
607
608         maint: improve module indicators
609         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
610         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
611         columns, and avoid extra macro expansion.
612
613         fdopendir: work around FreeBSD bug
614         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
615         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
616         * modules/dirent (Makefile.am): Substitute it.
617         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
618         declaration.
619         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
620         fix.
621         Reported by Christian Weisgerber <naddy@mips.inka.de>.
622
623 2010-03-29  Bruno Haible  <bruno@clisp.org>
624
625         Emit #pragma system_header after the inclusion guard, not before.
626         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
627         guard that spans the entire file, not before. This enables an
628         optimization in GCC's preprocessor.
629         * lib/ctype.in.h: Likewise.
630         * lib/dirent.in.h: Likewise.
631         * lib/errno.in.h: Likewise.
632         * lib/float.in.h: Likewise.
633         * lib/getopt.in.h: Likewise.
634         * lib/iconv.in.h: Likewise.
635         * lib/langinfo.in.h: Likewise.
636         * lib/locale.in.h: Likewise.
637         * lib/math.in.h: Likewise.
638         * lib/netdb.in.h: Likewise.
639         * lib/netinet_in.in.h: Likewise.
640         * lib/pty.in.h: Likewise.
641         * lib/sched.in.h: Likewise.
642         * lib/se-selinux.in.h: Likewise.
643         * lib/search.in.h: Likewise.
644         * lib/spawn.in.h: Likewise.
645         * lib/stdarg.in.h: Likewise.
646         * lib/stdint.in.h: Likewise.
647         * lib/string.in.h: Likewise.
648         * lib/strings.in.h: Likewise.
649         * lib/sys_file.in.h: Likewise.
650         * lib/sys_ioctl.in.h: Likewise.
651         * lib/sys_time.in.h: Likewise.
652         * lib/sys_times.in.h: Likewise.
653         * lib/sys_utsname.in.h: Likewise.
654         * lib/sys_wait.in.h: Likewise.
655         * lib/sysexits.in.h: Likewise.
656         * lib/wctype.in.h: Likewise.
657
658 2010-03-28  James Youngman  <jay@gnu.org>
659
660         save-cwd: don't leak a file descriptor when the caller execs.
661         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
662         saved file descriptor.
663         * modules/save-cwd (Depends-on): Depend on cloexec.
664
665 2010-03-29  Bruno Haible  <bruno@clisp.org>
666
667         Remove vestiges of fts-lgpl module.
668         * lib/fts_.h: Assume GNULIB_FTS is 1.
669         * lib/fts.c: Likewise.
670         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
671
672 2010-03-28  Bruno Haible  <bruno@clisp.org>
673
674         Fix definition of tests witness macro.
675         * gnulib-tool (func_import): Fix definition of witness macro.
676
677 2010-03-28  Bruno Haible  <bruno@clisp.org>
678
679         Fix ioctl's protoype on glibc systems.
680         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
681         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
682         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
683         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
684         signature. If not, arrange to replace the ioctl function.
685         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
686         REPLACE_IOCTL.
687         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
688         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
689         Reported by Ludovic Courtès <ludo@gnu.org>.
690
691 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
692
693         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
694         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
695         made it so grep -r --include=GLOB* ... did not work.
696
697 2010-03-26  Jim Meyering  <meyering@redhat.com>
698             Eric Blake  <eblake@redhat.com>
699
700         maint.mk: prohibit use of test's -o and -a operators
701         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
702
703 2010-03-28  Bruno Haible  <bruno@clisp.org>
704
705         Remove unused GNULIB_XYZ macro definitions.
706         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
707         invocation.
708
709 2010-03-28  Bruno Haible  <bruno@clisp.org>
710
711         Mark privileged tests modules.
712         * modules/idpriv-drop-tests (Status): New section.
713         * modules/idpriv-droptemp-tests (Status): New section.
714
715 2010-03-28  Bruno Haible  <bruno@clisp.org>
716
717         Split C++ tests into separate tests modules.
718         * modules/dirent-c++-tests: New file, extracted from
719         modules/dirent-tests.
720         * modules/dirent-tests: Depend on it.
721         * modules/fcntl-h-c++-tests: New file, extracted from
722         modules/fcntl-h-tests.
723         * modules/fcntl-h-tests: Depend on it.
724         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
725         * modules/glob-tests: Depend on it.
726         * modules/iconv-h-c++-tests: New file, extracted from
727         modules/iconv-h-tests.
728         * modules/iconv-h-tests: Depend on it.
729         * modules/langinfo-c++-tests: New file, extracted from
730         modules/langinfo-tests.
731         * modules/langinfo-tests: Depend on it.
732         * modules/locale-c++-tests: New file, extracted from
733         modules/locale-tests.
734         * modules/locale-tests: Depend on it.
735         * modules/math-c++-tests: New file, extracted from modules/math-tests.
736         * modules/math-tests: Depend on it.
737         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
738         * modules/pty-tests: Depend on it.
739         * modules/search-c++-tests: New file, extracted from
740         modules/search-tests.
741         * modules/search-tests: Depend on it.
742         * modules/signal-c++-tests: New file, extracted from
743         modules/signal-tests.
744         * modules/signal-tests: Depend on it.
745         * modules/spawn-c++-tests: New file, extracted from
746         modules/spawn-tests.
747         * modules/spawn-tests: Depend on it.
748         * modules/stdio-c++-tests: New file, extracted from
749         modules/stdio-tests.
750         * modules/stdio-tests: Depend on it.
751         * modules/stdlib-c++-tests: New file, extracted from
752         modules/stdlib-tests.
753         * modules/stdlib-tests: Depend on it.
754         * modules/string-c++-tests: New file, extracted from
755         modules/string-tests.
756         * modules/string-tests: Depend on it.
757         * modules/sys_ioctl-c++-tests: New file, extracted from
758         modules/sys_ioctl-tests.
759         * modules/sys_ioctl-tests: Depend on it.
760         * modules/sys_select-c++-tests: New file, extracted from
761         modules/sys_select-tests.
762         * modules/sys_select-tests: Depend on it.
763         * modules/sys_socket-c++-tests: New file, extracted from
764         modules/sys_socket-tests.
765         * modules/sys_socket-tests: Depend on it.
766         * modules/sys_stat-c++-tests: New file, extracted from
767         modules/sys_stat-tests.
768         * modules/sys_stat-tests: Depend on it.
769         * modules/sys_time-c++-tests: New file, extracted from
770         modules/sys_time-tests.
771         * modules/sys_time-tests: Depend on it.
772         * modules/time-c++-tests: New file, extracted from modules/time-tests.
773         * modules/time-tests: Depend on it.
774         * modules/unistd-c++-tests: New file, extracted from
775         modules/unistd-tests.
776         * modules/unistd-tests: Depend on it.
777         * modules/wchar-c++-tests: New file, extracted from
778         modules/wchar-tests.
779         * modules/wchar-tests: Depend on it.
780         * modules/wctype-c++-tests: New file, extracted from
781         modules/wctype-tests.
782         * modules/wctype-tests: Depend on it.
783         Reported by Simon Josefsson.
784
785 2010-03-28  Bruno Haible  <bruno@clisp.org>
786
787         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
788         * gnulib-tool (func_exists_module): New function, extracted from
789         func_verify_module.
790         (func_verify_module): Use it.
791         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
792         'foo' only if 'foo' exists.
793         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
794         module.
795
796 2010-03-28  Bruno Haible  <bruno@clisp.org>
797
798         gnulib-tool: Add support for special categories of tests.
799         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
800         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
801         (func_usage): Document them.
802         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
803         inc_unportable_tests, inc_all_tests): New variables.
804         (func_acceptable): Consider these variables.
805         (func_modules_transitive_closure): Make it work when the 'Status' field
806         consists of multiple words.
807         (func_import): Store and restore the values of inc_cxx_tests,
808         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
809         inc_all_tests in gnulib-comp.m4.
810         (func_create_testdir): Set inc_all_tests to true.
811         * doc/gnulib.texi (Extra tests modules): New section.
812         Suggested by Jim Meyering.
813
814 2010-03-28  Bruno Haible  <bruno@clisp.org>
815
816         ansi-c++-opt: Allow turning off the C++ build by default.
817         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
818         gl_CXX_CHOICE_DEFAULT_NO is defined.
819         Requested by Eric Blake.
820
821 2010-03-28  Bruno Haible  <bruno@clisp.org>
822
823         unistd: Avoid #define replacements in C++ mode.
824         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
825         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
826         setsockopt, shutdown, select): In C++, attach a warning to the function
827         if possible, rather than #defining the symbol to a dysfunctional alias.
828         Reported by John W. Eaton <jwe@gnu.org>.
829
830 2010-03-28  Bruno Haible  <bruno@clisp.org>
831
832         Fix link errors on mingw.
833         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
834         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
835         $(LIBSOCKET).
836         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
837         $(LIBSOCKET).
838
839 2010-03-28  Bruno Haible  <bruno@clisp.org>
840             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
841
842         lib-ignore: Determine different options for different compilers.
843         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
844         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
845         Add comments.
846         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
847         * NEWS: Mention the change.
848
849 2010-03-27  Bruno Haible  <bruno@clisp.org>
850
851         Remove unused GNULIB_XYZ macro definitions.
852         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
853         * modules/fseek (configure.ac): Likewise.
854         * modules/ioctl (configure.ac): Likewise.
855         * modules/open (configure.ac): Likewise.
856         * modules/stdlib-safer (configure.ac): Likewise.
857
858 2010-03-27  Bruno Haible  <bruno@clisp.org>
859
860         Add a remark about certain modules.
861         * modules/malloc (Comment): New section.
862         * modules/realloc (Comment): Likewise.
863         * modules/sigpipe (Comment): Likewise.
864
865 2010-03-27  Bruno Haible  <bruno@clisp.org>
866
867         Resolve conflict between the two kinds of module indicators.
868         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
869         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
870         * modules/canonicalize (configure.ac): Invoke
871         gl_MODULE_INDICATOR_FOR_TESTS.
872         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
873         GNULIB_XYZ.
874         * tests/test-dirent-c++.cc: Likewise.
875         * tests/test-dirent-safer.c: Likewise.
876         * tests/test-dup2.c: Likewise.
877         * tests/test-fchdir.c: Likewise.
878         * tests/test-fcntl-h-c++.cc: Likewise.
879         * tests/test-getopt.c: Likewise.
880         * tests/test-getopt.h: Likewise.
881         * tests/test-langinfo-c++.cc: Likewise.
882         * tests/test-locale-c++.cc: Likewise.
883         * tests/test-math-c++.cc: Likewise.
884         * tests/test-pty-c++.cc: Likewise.
885         * tests/test-search-c++.cc: Likewise.
886         * tests/test-signal-c++.cc: Likewise.
887         * tests/test-spawn-c++.cc: Likewise.
888         * tests/test-stdio-c++.cc: Likewise.
889         * tests/test-stdlib-c++.cc: Likewise.
890         * tests/test-string-c++.cc: Likewise.
891         * tests/test-sys_ioctl-c++.cc: Likewise.
892         * tests/test-sys_select-c++.cc: Likewise.
893         * tests/test-sys_socket-c++.cc: Likewise.
894         * tests/test-sys_stat-c++.cc: Likewise.
895         * tests/test-sys_time-c++.cc: Likewise.
896         * tests/test-time-c++.cc: Likewise.
897         * tests/test-unistd-c++.cc: Likewise.
898         * tests/test-wchar-c++.cc: Likewise.
899         * tests/uninorm/test-u8-nfc.c: Likewise.
900         * tests/uninorm/test-u8-nfd.c: Likewise.
901         * tests/uninorm/test-u8-nfkc.c: Likewise.
902         * tests/uninorm/test-u8-nfkd.c: Likewise.
903         * tests/uninorm/test-u16-nfc.c: Likewise.
904         * tests/uninorm/test-u16-nfd.c: Likewise.
905         * tests/uninorm/test-u16-nfkc.c: Likewise.
906         * tests/uninorm/test-u16-nfkd.c: Likewise.
907         * tests/uninorm/test-u32-nfc.c: Likewise.
908         * tests/uninorm/test-u32-nfc-big.c: Likewise.
909         * tests/uninorm/test-u32-nfd.c: Likewise.
910         * tests/uninorm/test-u32-nfd-big.c: Likewise.
911         * tests/uninorm/test-u32-nfkc.c: Likewise.
912         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
913         * tests/uninorm/test-u32-nfkd.c: Likewise.
914         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
915         * tests/uninorm/test-u32-normalize-big.c: Likewise.
916
917 2010-03-27  Bruno Haible  <bruno@clisp.org>
918
919         Distinguish two kinds of module indicators.
920         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
921         gl_MODULE_INDICATOR.
922         (gl_MODULE_INDICATOR): New macro.
923         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
924         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
925         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
926         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
927         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
928         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
929         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
930         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
931         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
932         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
933         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
934         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
935         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
936         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
937         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
938         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
939         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
940         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
941         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
942         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
943         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
944         * modules/cloexec (configure.ac): Likewise.
945         * modules/getopt-gnu (configure.ac): Likewise.
946         * modules/uninorm/u8-normalize (configure.ac): Likewise.
947         * modules/uninorm/u16-normalize (configure.ac): Likewise.
948         * modules/uninorm/u32-normalize (configure.ac): Likewise.
949         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
950
951 2010-03-27  Bruno Haible  <bruno@clisp.org>
952
953         New module description field 'Comment'.
954         * gnulib-tool: New option --extract-comment.
955         (func_usage): Document it.
956         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
957         (func_get_comment): New function.
958         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
959
960 2010-03-27  Bruno Haible  <bruno@clisp.org>
961
962         Addendum to 2010-02-07 commit.
963         * gnulib-tool (func_usage): Document --extract-applicability option.
964
965 2010-03-27  Bruno Haible  <bruno@clisp.org>
966
967         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
968         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
969         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
970         rather than link errors.
971
972 2010-03-27  Bruno Haible  <bruno@clisp.org>
973
974         Avoid side effects from tests-related modules on the compilation of lib.
975         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
976         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
977         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
978         parameter. Emit into AM_CPPFLAGS a definition of the designated C
979         macro.
980         (func_import): Define a witness macro. Assign it a value that depends
981         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
982         tests-related modules.
983         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
984         Reported by Jim Meyering.
985
986 2010-03-27  Bruno Haible  <bruno@clisp.org>
987
988         Factorize common .m4 code.
989         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
990         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
991         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
992         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
993         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
994         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
995         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
996         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
997         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
998         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
999         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
1000         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
1001         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
1002         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
1003         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
1004         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
1005         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
1006         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
1007         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
1008         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
1009         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
1010         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
1011         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
1012         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
1013         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
1014         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
1015         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
1016         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
1017         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
1018         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
1019         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
1020         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
1021
1022 2010-03-27  Bruno Haible  <bruno@clisp.org>
1023
1024         Fix a compilation error on Cygwin with g++ >= 4.3.
1025         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
1026         if it is undefined or if we alias it to chmod.
1027         (lstat): Don't warn about the use of this function if it is undefined
1028         or if we alias it to stat.
1029         Reported by Simon Josefsson.
1030
1031 2010-03-27  Bruno Haible  <bruno@clisp.org>
1032
1033         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
1034         * modules/getlogin (configure.ac): Update.
1035
1036         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
1037         * modules/getlogin_r (configure.ac): Update.
1038
1039         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
1040         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
1041         * modules/inet_ntop (configure.ac): Update.
1042
1043         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
1044         * modules/inet_pton (configure.ac): Update.
1045
1046         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
1047         * modules/mbslen (configure.ac): Update.
1048
1049         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
1050         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
1051         * modules/forkpty (configure.ac): Update.
1052         * modules/openpty (configure.ac): Update.
1053
1054 2010-03-26  Simon Josefsson  <simon@josefsson.org>
1055
1056         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
1057         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
1058
1059 2010-03-25  Eric Blake  <eblake@redhat.com>
1060
1061         maint: use pragma consistently across replacement headers
1062         * lib/ctype.in.h (system_header): Hoist for consistent placement.
1063         * lib/dirent.in.h (system_header): Likewise.
1064         * lib/errno.in.h (system_header): Likewise.
1065         * lib/float.in.h (system_header): Likewise.
1066         * lib/getopt.in.h (system_header): Likewise.
1067         * lib/iconv.in.h (system_header): Likewise.
1068         * lib/inttypes.in.h (system_header): Likewise.
1069         * lib/langinfo.in.h (system_header): Likewise.
1070         * lib/locale.in.h (system_header): Likewise.
1071         * lib/math.in.h (system_header): Likewise.
1072         * lib/netdb.in.h (system_header): Likewise.
1073         * lib/netinet_in.in.h (system_header): Likewise.
1074         * lib/pty.in.h (system_header): Likewise.
1075         * lib/sched.in.h (system_header): Likewise.
1076         * lib/se-selinux.in.h (system_header): Likewise.
1077         * lib/search.in.h (system_header): Likewise.
1078         * lib/spawn.in.h (system_header): Likewise.
1079         * lib/stdarg.in.h (system_header): Likewise.
1080         * lib/stdint.in.h (system_header): Likewise.
1081         * lib/string.in.h (system_header): Likewise.
1082         * lib/strings.in.h (system_header): Likewise.
1083         * lib/sys_file.in.h (system_header): Likewise.
1084         * lib/sys_ioctl.in.h (system_header): Likewise.
1085         * lib/sys_socket.in.h (system_header): Likewise.
1086         * lib/sys_times.in.h (system_header): Likewise.
1087         * lib/sys_utsname.in.h (system_header): Likewise.
1088         * lib/sys_wait.in.h (system_header): Likewise.
1089         * lib/sysexits.in.h (system_header): Likewise.
1090         * lib/unistd.in.h (system_header): Likewise.
1091         * lib/wctype.in.h (system_header): Likewise.
1092
1093         arpa/inet: fix mingw compilation warning
1094         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
1095         Reported by Matthew Bolte.
1096
1097 2010-03-25  Bruno Haible  <bruno@clisp.org>
1098
1099         Avoid collision between gnulib wrapper and libintl wrapper.
1100         * lib/printf.c (printf): Don't define if a printf wrapper is already
1101         defined in intl/printf.c.
1102         Reported by Michel Boaventura <michel@michelboaventura.com>.
1103
1104 2010-03-25  Bruno Haible  <bruno@clisp.org>
1105
1106         Use ANSI C.
1107         * lib/readutmp.h (getutent): Provide ANSI C prototype.
1108
1109 2010-03-25  Bruno Haible  <bruno@clisp.org>
1110
1111         Minor formatting changes.
1112         * lib/acosl.c: Insert space before function argument list.
1113         * lib/argz.c: Likewise.
1114         * lib/asinl.c: Likewise.
1115         * lib/expl.c: Likewise.
1116         * lib/gen-uni-tables.c: Likewise.
1117         * lib/gettext.h: Likewise.
1118         * lib/glthread/lock.h: Likewise.
1119         * lib/tanl.c: Likewise.
1120         * lib/uniname/uniname.c: Likewise.
1121         * tests/test-idpriv-drop.c: Likewise.
1122         * tests/test-idpriv-droptemp.c: Likewise.
1123         * tests/test-lock.c: Likewise.
1124         * tests/test-tls.c: Likewise.
1125         * lib/argp-help.c: Insert space before function-like macro argument
1126         list.
1127         * lib/memcmp.c: Likewise.
1128         * tests/test-base64.c: Likewise.
1129         * lib/localename.c: Insert space before sizeof's argument list.
1130         * lib/safe-alloc.h: Likewise.
1131         * lib/file-set.h: Insert space before macro argument list.
1132         * tests/test-argp.c: Likewise.
1133         * lib/argp-namefrob.h: Insert space before function parameter list.
1134         * lib/getaddrinfo.c: Likewise.
1135         * lib/netdb.in.h: Likewise.
1136         * lib/parse-duration.h: Likewise.
1137         * lib/parse-duration.c: Likewise.
1138         * lib/poll.c: Likewise.
1139         * lib/select.c: Likewise.
1140         * lib/trim.h: Likewise.
1141         * tests/test-usleep.c: Likewise.
1142         * lib/ldexpl.c: Insert space before function parameter list and before
1143         function argument list.
1144         * lib/logl.c: Likewise.
1145         * lib/sqrtl.c: Likewise.
1146         * lib/trim.c: Likewise.
1147         * lib/cosl.c: Use GNU style indentation. Insert space before function
1148         argument list.
1149         * lib/sinl.c: Likewise.
1150         * lib/tsearch.c: Insert space after 'for'.
1151         Reported by Jim Meyering.
1152
1153 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
1154
1155         * maint.mk (sc_Wundef_boolean): Check for the presence of the
1156         config header before grepping, as it's not present before
1157         autoreconf/configure are run.  Reported by Simon Josefsson.
1158
1159 2010-03-23  Bruno Haible  <bruno@clisp.org>
1160
1161         pt_chown: Make it work with automake < 1.11.
1162         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
1163         Reported by Simon Josefsson.
1164
1165 2010-03-23  Bruno Haible  <bruno@clisp.org>
1166
1167         pt_chown: Don't depend on GPLed modules.
1168         * lib/pt_chown.c: Don't include idpriv.h.
1169         (main): Don't drop privileges.
1170         * modules/pt_chown (Depends-on): Remove idpriv-drop.
1171         Reported by Simon Josefsson.
1172
1173 2010-03-24  Simon Josefsson  <simon@josefsson.org>
1174
1175         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
1176         suggestions from karl@freefriends.org (Karl Berry).
1177
1178 2010-03-22  Eric Blake  <eblake@redhat.com>
1179
1180         gethostname: further tweaks
1181         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
1182         are overriding gethostname.
1183         Suggested by Bruno Haible.
1184
1185 2010-03-21  Bruno Haible  <bruno@clisp.org>
1186
1187         Fix comments.
1188         * lib/forkpty.c (rpl_forkpty): Fix comment.
1189         * lib/openpty.c (rpl_openpty): Likewise.
1190         Reported by Eric Blake.
1191
1192 2010-03-22  Eric Blake  <eblake@redhat.com>
1193
1194         gethostname: fix build on mingw
1195         * lib/unistd.in.h (includes): Work around fact that mingw
1196         <winsock2.h> re-includes <unistd.h>, by avoiding any
1197         redeclarations if we are being included by <winsock2.h>.
1198         Reported by Matthias Bolte.
1199
1200 2010-03-21  Bruno Haible  <bruno@clisp.org>
1201
1202         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
1203         * lib/forkpty.c (forkpty): New replacement function, from glibc with
1204         modifications.
1205         * lib/pty.in.h (forkpty): Update declaration. Add comments.
1206         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
1207         provide the replacement.
1208         * modules/forkpty (Depends-on): Add openpty, login_tty.
1209         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
1210         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
1211         * doc/glibc-functions/forkpty.texi: More supported platforms.
1212         * config/srclist.txt: Add forkpty.c (commented).
1213
1214 2010-03-21  Bruno Haible  <bruno@clisp.org>
1215
1216         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
1217         (Makefile.am): Verify that PTY_LIB is defined.
1218
1219         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
1220
1221 2010-03-21  Bruno Haible  <bruno@clisp.org>
1222
1223         Tests for module 'login_tty'.
1224         * modules/login_tty-tests: New file.
1225         * tests/test-login_tty.c: New file.
1226
1227         New module 'login_tty'.
1228         * lib/login_tty.c: New file.
1229         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
1230         * modules/login_tty: New file.
1231         * doc/glibc-functions/login_tty.texi: Mention the new module.
1232
1233 2010-03-21  Bruno Haible  <bruno@clisp.org>
1234
1235         login_tty: Documentation.
1236         * doc/glibc-functions/login_tty.texi: New file.
1237         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
1238
1239 2010-03-21  Bruno Haible  <bruno@clisp.org>
1240
1241         pty: Consistent macro naming.
1242         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
1243         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
1244         * modules/pty (configure.ac): Update.
1245
1246 2010-03-21  Bruno Haible  <bruno@clisp.org>
1247
1248         Tests for openpty: Make stricter.
1249         * tests/test-openpty.c (main): Add test of canonical processing and
1250         erase.
1251         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
1252
1253         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
1254         * lib/openpty.c (openpty): New replacement function.
1255         * lib/pty.in.h: Include <termios.h>.
1256         (openpty): Update declaration. Add comments.
1257         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
1258         is not declared, arrange to provide the replacement. Check for _getpty
1259         and posix_openpt.
1260         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
1261         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
1262         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
1263         * modules/pty-tests (test_pty_c___LDADD): New variable.
1264         * doc/glibc-functions/openpty.texi: More supported platforms.
1265
1266 2010-03-21  Bruno Haible  <bruno@clisp.org>
1267
1268         setenv: Tweaks.
1269         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
1270         the test program.
1271         * doc/posix-functions/setenv.texi: Update platforms list.
1272
1273 2010-03-21  Bruno Haible  <bruno@clisp.org>
1274
1275         New module 'unlockpt'.
1276         * lib/unlockpt.c: New file, from glibc with modifications.
1277         * m4/unlockpt.m4: New file.
1278         * modules/unlockpt: New file.
1279         * lib/stdlib.in.h (unlockpt): New declaration.
1280         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
1281         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
1282         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
1283         HAVE_UNLOCKPT.
1284         * doc/posix-functions/unlockpt.texi: Mention the new module.
1285         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
1286         * config/srclist.txt: Add unlockpt.c (commented).
1287
1288 2010-03-21  Jim Meyering  <meyering@redhat.com>
1289
1290         maint.mk: prohibit inclusion of "intprops.h" without use
1291         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
1292
1293 2010-03-21  Bruno Haible  <bruno@clisp.org>
1294
1295         New module 'grantpt'.
1296         * lib/grantpt.c: New file, from glibc with modifications.
1297         * m4/grantpt.m4: New file.
1298         * modules/grantpt: New file.
1299         * lib/stdlib.in.h (grantpt): New declaration.
1300         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
1301         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
1302         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
1303         HAVE_GRANTPT.
1304         * doc/posix-functions/grantpt.texi: Mention the new module.
1305         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
1306         * config/srclist.txt: Add grantpt.c (commented).
1307
1308 2010-03-21  Bruno Haible  <bruno@clisp.org>
1309
1310         New module 'pt_chown'.
1311         * lib/pt_chown.c: New file, from glibc with modifications.
1312         * lib/pty-private.h: New file, from glibc with modifications.
1313         * modules/pt_chown: New file.
1314         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
1315
1316 2010-03-21  Bruno Haible  <bruno@clisp.org>
1317
1318         Tests for module 'ptsname'.
1319         * modules/ptsname-tests: New file.
1320         * tests/test-ptsname.c: New file.
1321
1322         New module 'ptsname'.
1323         * lib/ptsname.c: New file, from glibc with modifications.
1324         * m4/ptsname.m4: New file.
1325         * modules/ptsname: New file.
1326         * lib/stdlib.in.h (ptsname): New declaration.
1327         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
1328         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
1329         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
1330         HAVE_PTSNAME.
1331         * doc/posix-functions/ptsname.texi: Mention the new module.
1332         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
1333         * config/srclist.txt: Add ptsname.c (commented).
1334
1335 2010-03-21  Bruno Haible  <bruno@clisp.org>
1336
1337         Tests for module 'ttyname_r'.
1338         * modules/ttyname_r-tests: New file.
1339         * tests/test-ttyname_r.c: New file.
1340
1341         New module 'ttyname_r'.
1342         * lib/ttyname_r.c: New file.
1343         * m4/ttyname_r.m4: New file.
1344         * modules/ttyname_r: New file.
1345         * lib/unistd.in.h (ttyname_r): New declaration.
1346         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
1347         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
1348         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
1349         HAVE_TTYNAME_R.
1350         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
1351         * doc/posix-functions/ttyname_r.texi: Mention the new module.
1352
1353 2010-03-20  Bruno Haible  <bruno@clisp.org>
1354
1355         signal: Undefine macro definitions in C++ mode.
1356         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
1357         sigfillset): Undefine macro definitions from the system header in C++
1358         mode.
1359         Reported by John W. Eaton <jwe@gnu.org>.
1360
1361 2010-03-20  Bruno Haible  <bruno@clisp.org>
1362
1363         Ensure no #include statements inside extern "C" { ... }.
1364         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
1365         contain #include statements.
1366         * lib/time.in.h: Likewise.
1367
1368 2010-03-20  Bruno Haible  <bruno@clisp.org>
1369
1370         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
1371         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
1372         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
1373         Reported by John W. Eaton <jwe@gnu.org>.
1374
1375 2010-03-20  Bruno Haible  <bruno@clisp.org>
1376
1377         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
1378         Reported by Jim Meyering.
1379
1380 2010-03-20  Bruno Haible  <bruno@clisp.org>
1381
1382         pipe: Set errno upon failure.
1383         * lib/pipe.h: Specify that when -1 is returned, errno is set.
1384         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
1385         errno value in error message.
1386
1387 2010-03-20  Bruno Haible  <bruno@clisp.org>
1388             Jim Meyering  <meyering@redhat.com>
1389
1390         lchown: Avoid "unused variable" warning.
1391         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
1392
1393 2010-03-20  Bruno Haible  <bruno@clisp.org>
1394
1395         Work around unlink() bug on MacOS X 10.5.6.
1396         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
1397         attempting to unlink a parent directory.
1398         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
1399         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
1400         activate for the replacement function.
1401         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
1402
1403 2010-03-20  Bruno Haible  <bruno@clisp.org>
1404
1405         Fix link errors on Solaris 8.
1406         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
1407         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
1408
1409 2010-03-19  Jim Meyering  <meyering@redhat.com>
1410
1411         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
1412         The _LIBC implementation of build_range_exp correctly honors the
1413         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
1414         However, the non-_LIBC implementation would ignore that syntax-bit
1415         flag and return REG_ERANGE unconditionally.
1416         This change makes it honor that flag.
1417         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
1418         Make two pointer parameters "const".
1419         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
1420         (parse_bracket_exp): Update caller.
1421
1422         regex.m4: correct the reversed range endpoint ([b-a]) test
1423         * m4/regex.m4: When requiring that [b-a] evoke failure,
1424         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
1425         test pass once again for x86-based systems.
1426
1427 2010-03-19  Bruno Haible  <bruno@clisp.org>
1428
1429         scandir: Fix link error on Solaris 8.
1430         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
1431         macros.
1432
1433 2010-03-19  Bruno Haible  <bruno@clisp.org>
1434
1435         getusershell: Fix documentation.
1436         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
1437         module.
1438         * doc/glibc-functions/setusershell.texi: Likewise.
1439
1440         getusershell: Provide declaration, missing on Solaris 9.
1441         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
1442         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
1443         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
1444         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
1445         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1446         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
1447         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
1448         HAVE_GETUSERSHELL.
1449         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
1450
1451 2010-03-19  Bruno Haible  <bruno@clisp.org>
1452
1453         wctype: Provide iswblank function.
1454         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
1455         exists and is fine.
1456         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
1457         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
1458         * tests/test-wctype.c (main): Re-enable the iswblank tests.
1459         * doc/posix-functions/iswblank.texi: Update.
1460
1461 2010-03-19  Bruno Haible  <bruno@clisp.org>
1462
1463         Tests of module 'pty' in C++ mode.
1464         * modules/pty-tests: New file.
1465         * tests/test-pty-c++.cc: New file.
1466         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1467
1468 2010-03-19  Eric Blake  <eblake@redhat.com>
1469
1470         logb: fix documentation
1471         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
1472         1.5 declaration bug.
1473
1474         forkpty, openpty: prefer glibc's const-safe prototype
1475         * lib/forkpty.c (rpl_forkpty): New file.
1476         * lib/openpty.c (rpl_openpty): Likewise.
1477         * modules/forkpty (Files): Distribute it.
1478         * modules/openpty (Files): Likewise.
1479         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
1480         check...
1481         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
1482         replacement for for non-const BSD signature.
1483         * modules/pty (Makefile.am): Substitute witnesses.
1484         * lib/pty.in.h (forkpty, openpty): Declare replacements.
1485         * tests/test-forkpty.c: Update signature check.
1486         * tests/test-openpty.c: Likewise.
1487         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
1488         * doc/glibc-functions/openpty.texi (openpty): Likewise.
1489
1490         forkpty, openpty: split functions into new modules
1491         * modules/pty (Makefile.am): Substitute new witnesses.
1492         (Libraries): Move library detection...
1493         * modules/forkpty: ...into new module.
1494         * modules/openpty: Another new module.
1495         * modules/pty-tests: Rename and split...
1496         * modules/forkpty-tests: ...to this...
1497         * modules/openpty-tests: ...and this.
1498         * tests/test-pty.c: Rename and split...
1499         * tests/test-forkpty.c: ...to this...
1500         * tests/test-openpty.c: ...and this.
1501         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
1502         (gl_PTY): Split library searching...
1503         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
1504         (gl_FORKPTY, gl_OPENPTY): New macros.
1505         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
1506         * NEWS: Mention the split.
1507         * MODULES.html.sh (Misc): Document the modules.
1508         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
1509         * doc/glibc-functions/openpty.texi (openpty): Likewise.
1510
1511         pty: improve replacement header
1512         * lib/pty.in.h: New file.
1513         * modules/pty (Files): Ship it.
1514         (Makefile.am): Always build replacement.
1515         * m4/pty.m4: Rename...
1516         * m4/pty_h.m4: ...to this.
1517         (gl_PTY): Modernize setting of witness macros; update check of
1518         forkpty to take proper advantage of cache.
1519         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
1520
1521         getopt: avoid compiler warning
1522         * lib/getopt.c (attribute_hidden): Remove unused macro.
1523
1524 2010-03-18  Bruno Haible  <bruno@clisp.org>
1525
1526         Fix link errors on Solaris 8.
1527         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
1528         * modules/search-tests (test_search_c___LDADD): Likewise.
1529         * modules/signal-tests (test_signal_c___LDADD): Likewise.
1530         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
1531         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
1532         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
1533         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
1534         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
1535         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
1536
1537 2010-03-18  Bruno Haible  <bruno@clisp.org>
1538
1539         Fix bug introduced on 2010-03-14.
1540         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
1541         (gl_SPAWN_H): Require it.
1542         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
1543         Reported by Simon Josefsson.
1544
1545 2010-03-18  Bruno Haible  <bruno@clisp.org>
1546
1547         Fix typo introduced on 2009-12-31.
1548         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
1549         posix_spawn_file_actions_adddup2.
1550
1551 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
1552         and Eric Blake  <eblake@redhat.com>
1553
1554         test-vc-list-files-git: make more robust
1555         * tests/test-vc-list-files-git.sh: Unset problematic environment
1556         variables.  Chain commands together.
1557
1558 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
1559
1560         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
1561         `AC_CHECK_DECL' invocation.
1562
1563 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
1564
1565         * lib/inttostr.c (inttostr): Make sure the invocation of verify
1566         appears before executable statements. Suggested by Petr Sumbera
1567         <Petr.Sumbera@Sun.COM>.
1568
1569 2010-03-14  Bruno Haible  <bruno@clisp.org>
1570
1571         * tests/test-flock.c (test_exclusive): Comment out a test that causes
1572         portability problems. Instead use a simpler test.
1573         (main): Check that invalid arguments are rejected only on Linux.
1574
1575 2010-03-14  Bruno Haible  <bruno@clisp.org>
1576
1577         Fix bug introduced on 2009-12-31.
1578         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
1579         gl_PREREQ_SYS_H_WINSOCK2 always.
1580         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
1581         SYS_SOCKET_H variable.
1582         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
1583         Update comments.
1584         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
1585         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
1586         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
1587         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
1588         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
1589
1590 2010-03-14  Bruno Haible  <bruno@clisp.org>
1591
1592         Fix values returned by sinl, cosl.
1593         * lib/trigl.h: Add specification comments.
1594         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
1595         that combines the values from the precomputed table with the values of
1596         the Chebyshev polynomials.
1597
1598 2010-03-14  Bruno Haible  <bruno@clisp.org>
1599
1600         Fix compilation error when modules 'posix_spawn[p]' are not used.
1601         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
1602         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
1603
1604 2010-03-14  Bruno Haible  <bruno@clisp.org>
1605
1606         Fix compilation error on mingw when module 'time_r' is not used.
1607         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
1608         is 1.
1609         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
1610         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
1611         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
1612         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
1613
1614 2010-03-14  Bruno Haible  <bruno@clisp.org>
1615
1616         Fix compilation error with Sun C.
1617         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
1618         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
1619         instead of GCC specific ULONG_LONG_MAX.
1620         * lib/xstrtoll.c: Likewise.
1621         * lib/xstrtoull.c: Likewise.
1622
1623 2010-03-13  Bruno Haible  <bruno@clisp.org>
1624
1625         Allow the user to disable C++ code and tests.
1626         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
1627         (gl_PROG_ANSI_CXX): Require it.
1628
1629 2010-03-13  Bruno Haible  <bruno@clisp.org>
1630
1631         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
1632         cases.
1633
1634 2010-03-13  Bruno Haible  <bruno@clisp.org>
1635
1636         Test that gnulib does not break the standard C++ headers.
1637         * tests/test-locale-c++2.cc: New file.
1638         * modules/locale-tests (Files): Add it.
1639         (Makefile.am): Compile it for test-locale-c++.
1640         * tests/test-math-c++2.cc: New file.
1641         * modules/math-tests (Files): Add it.
1642         (Makefile.am): Compile it for test-math-c++.
1643         * tests/test-signal-c++2.cc: New file.
1644         * modules/signal-tests (Files): Add it.
1645         (Makefile.am): Compile it for test-signal-c++.
1646         * tests/test-stdio-c++2.cc: New file.
1647         * modules/stdio-tests (Files): Add it.
1648         (Makefile.am): Compile it for test-stdio-c++.
1649         * tests/test-stdlib-c++2.cc: New file.
1650         * modules/stdlib-tests (Files): Add it.
1651         (Makefile.am): Compile it for test-stdlib-c++.
1652         * tests/test-string-c++2.cc: New file.
1653         * modules/string-tests (Files): Add it.
1654         (Makefile.am): Compile it for test-string-c++.
1655         * tests/test-time-c++2.cc: New file.
1656         * modules/time-tests (Files): Add it.
1657         (Makefile.am): Compile it for test-time-c++.
1658         Reported by John W. Eaton <jwe@gnu.org>.
1659
1660 2010-03-13  Bruno Haible  <bruno@clisp.org>
1661
1662         * gnulib-tool (func_usage): Clarify which options are available for
1663         --create-testdir and --create-megatestdir.
1664
1665 2010-03-13  Bruno Haible  <bruno@clisp.org>
1666
1667         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
1668         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
1669         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
1670         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
1671         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
1672         when appropriate.
1673         Reported by Jim Meyering.
1674
1675 2010-03-12  Simon Josefsson  <simon@josefsson.org>
1676
1677         * gnulib-tool (func_import): Explain origin of code.
1678
1679 2010-03-12  Bruno Haible  <bruno@clisp.org>
1680
1681         Fix problem with automake's definition of CXXLINK.
1682         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
1683         Reported by Simon Josefsson and Ludovic Courtès.
1684
1685 2010-03-12  Bruno Haible  <bruno@clisp.org>
1686
1687         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
1688         stable releases.
1689
1690 2010-03-11  Bruno Haible  <bruno@clisp.org>
1691
1692         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
1693         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
1694         whether the system provides one variant or multiple variants of the
1695         function.
1696         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
1697         C++ compilers.
1698         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
1699         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
1700         Reported by Jim Meyering.
1701
1702 2010-03-09  Simon Josefsson  <simon@josefsson.org>
1703
1704         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
1705
1706 2010-03-08  Bruno Haible  <bruno@clisp.org>
1707
1708         gnulib-tool: Add support for --libtool in --create-testdir.
1709         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
1710         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
1711
1712 2010-03-08  Eric Blake  <eblake@redhat.com>
1713
1714         gnulib-tool.texi: mention possibility of git submodule
1715         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
1716         submodules.
1717         * doc/.gitignore: Ignore another generated file.
1718
1719 2010-03-08  Karl Berry  <karl@gnu.org>
1720
1721         * doc/gnulib-tool.texi (VCS Issues): Mention third option
1722         of committing gnulib files while skipping others.
1723
1724 2010-03-07  Bruno Haible  <bruno@clisp.org>
1725
1726         Tests of module 'wctype' in C++ mode.
1727         * tests/test-wctype-c++.cc: New file.
1728         * modules/wctype-tests (Files): Add it and tests/signature.h.
1729         (Depends-on): Add ansi-c++-opt.
1730         (Makefile.am): Arrange to compile and run test-wctype-c++.
1731
1732         Tests of module 'wchar' in C++ mode.
1733         * tests/test-wchar-c++.cc: New file.
1734         * modules/wchar-tests (Files): Add it and tests/signature.h.
1735         (Depends-on): Add ansi-c++-opt.
1736         (Makefile.am): Arrange to compile and run test-wchar-c++.
1737         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
1738         gl_MODULE_INDICATOR.
1739
1740         Tests of module 'unistd' in C++ mode.
1741         * tests/test-unistd-c++.cc: New file.
1742         * modules/unistd-tests (Files): Add it and tests/signature.h.
1743         (Depends-on): Add ansi-c++-opt.
1744         (Makefile.am): Arrange to compile and run test-unistd-c++.
1745         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
1746         gl_MODULE_INDICATOR.
1747
1748         Tests of module 'time' in C++ mode.
1749         * tests/test-time-c++.cc: New file.
1750         * modules/time-tests (Files): Add it and tests/signature.h.
1751         (Depends-on): Add ansi-c++-opt.
1752         (Makefile.am): Arrange to compile and run test-time-c++.
1753         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1754
1755         Tests of module 'sys_time' in C++ mode.
1756         * tests/test-sys_time-c++.cc: New file.
1757         * modules/sys_time-tests (Files): Add it and tests/signature.h.
1758         (Depends-on): Add ansi-c++-opt.
1759         (Makefile.am): Arrange to compile and run test-sys_time-c++.
1760         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
1761         gl_MODULE_INDICATOR.
1762
1763         Tests of module 'sys_stat' in C++ mode.
1764         * tests/test-sys_stat-c++.cc: New file.
1765         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
1766         (Depends-on): Add ansi-c++-opt.
1767         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
1768         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
1769         gl_MODULE_INDICATOR.
1770
1771         Tests of module 'sys_socket' in C++ mode.
1772         * tests/test-sys_socket-c++.cc: New file.
1773         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
1774         (Depends-on): Add ansi-c++-opt.
1775         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
1776         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
1777         gl_MODULE_INDICATOR.
1778
1779         Tests of module 'sys_select' in C++ mode.
1780         * tests/test-sys_select-c++.cc: New file.
1781         * modules/sys_select-tests (Files): Add it and tests/signature.h.
1782         (Depends-on): Add ansi-c++-opt.
1783         (Makefile.am): Arrange to compile and run test-sys_select-c++.
1784         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
1785         gl_MODULE_INDICATOR.
1786
1787         Tests of module 'sys_ioctl' in C++ mode.
1788         * tests/test-sys_ioctl-c++.cc: New file.
1789         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
1790         (Depends-on): Add ansi-c++-opt.
1791         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
1792         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
1793         gl_MODULE_INDICATOR.
1794
1795         Tests of module 'string' in C++ mode.
1796         * tests/test-string-c++.cc: New file.
1797         * modules/string-tests (Files): Add it and tests/signature.h.
1798         (Depends-on): Add ansi-c++-opt.
1799         (Makefile.am): Arrange to compile and run test-string-c++.
1800         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
1801         gl_MODULE_INDICATOR.
1802
1803         Tests of module 'stdlib' in C++ mode.
1804         * tests/test-stdlib-c++.cc: New file.
1805         * modules/stdlib-tests (Files): Add it and tests/signature.h.
1806         (Depends-on): Add ansi-c++-opt.
1807         (Makefile.am): Arrange to compile and run test-stdlib-c++.
1808         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
1809         gl_MODULE_INDICATOR.
1810
1811         Tests of module 'stdio' in C++ mode.
1812         * tests/test-stdio-c++.cc: New file.
1813         * modules/stdio-tests (Files): Add it and tests/signature.h.
1814         (Depends-on): Add ansi-c++-opt.
1815         (Makefile.am): Arrange to compile and run test-stdio-c++.
1816         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
1817         gl_MODULE_INDICATOR.
1818
1819         Tests of module 'spawn' in C++ mode.
1820         * tests/test-spawn-c++.cc: New file.
1821         * modules/spawn-tests (Files): Add it and tests/signature.h.
1822         (Depends-on): Add ansi-c++-opt.
1823         (Makefile.am): Arrange to compile and run test-spawn-c++.
1824         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
1825         gl_MODULE_INDICATOR.
1826
1827         Tests of module 'signal' in C++ mode.
1828         * tests/test-signal-c++.cc: New file.
1829         * modules/signal-tests (Files): Add it and tests/signature.h.
1830         (Depends-on): Add ansi-c++-opt.
1831         (Makefile.am): Arrange to compile and run test-signal-c++.
1832         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
1833         gl_MODULE_INDICATOR.
1834
1835         Tests of module 'search' in C++ mode.
1836         * tests/test-search-c++.cc: New file.
1837         * modules/search-tests (Files): Add it and tests/signature.h.
1838         (Depends-on): Add ansi-c++-opt.
1839         (Makefile.am): Arrange to compile and run test-search-c++.
1840         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
1841         gl_MODULE_INDICATOR.
1842
1843         Tests of module 'math' in C++ mode.
1844         * tests/test-math-c++.cc: New file.
1845         * modules/math-tests (Files): Add it and tests/signature.h.
1846         (Depends-on): Add ansi-c++-opt.
1847         (Makefile.am): Arrange to compile and run test-math-c++.
1848         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1849
1850         Tests of module 'locale' in C++ mode.
1851         * tests/test-locale-c++.cc: New file.
1852         * modules/locale-tests (Files): Add it and tests/signature.h.
1853         (Depends-on): Add ansi-c++-opt.
1854         (Makefile.am): Arrange to compile and run test-locale-c++.
1855         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
1856         gl_MODULE_INDICATOR.
1857
1858         Tests of module 'langinfo' in C++ mode.
1859         * tests/test-langinfo-c++.cc: New file.
1860         * modules/langinfo-tests (Files): Add it and tests/signature.h.
1861         (Depends-on): Add ansi-c++-opt.
1862         (Makefile.am): Arrange to compile and run test-langinfo-c++.
1863         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
1864         gl_MODULE_INDICATOR.
1865
1866         Tests of module 'iconv-h' in C++ mode.
1867         * tests/test-iconv-h-c++.cc: New file.
1868         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
1869         (Depends-on): Add ansi-c++-opt.
1870         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
1871
1872         Tests of module 'glob' in C++ mode.
1873         * tests/test-glob-c++.cc: New file.
1874         * modules/glob-tests (Files): Add it.
1875         (Depends-on): Add ansi-c++-opt.
1876         (Makefile.am): Arrange to compile and run test-glob-c++.
1877
1878         Tests of module 'fcntl-h' in C++ mode.
1879         * tests/test-fcntl-h-c++.cc: New file.
1880         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
1881         (Depends-on): Add ansi-c++-opt.
1882         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
1883         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
1884         gl_MODULE_INDICATOR.
1885
1886         Tests of module 'dirent' in C++ mode.
1887         * tests/test-dirent-c++.cc: New file.
1888         * modules/dirent-tests (Files): Add it and tests/signature.h.
1889         (Depends-on): Add ansi-c++-opt.
1890         (Makefile.am): Arrange to compile and run test-dirent-c++.
1891         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
1892         gl_MODULE_INDICATOR.
1893
1894         New module 'ansi-c++-opt'.
1895         * modules/ansi-c++-opt: New file.
1896         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
1897
1898         Document C++ namespace mode.
1899         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
1900
1901         wctype: Avoid #define replacements in C++ mode.
1902         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
1903         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
1904         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
1905         In C++, define a namespaced alias symbol.
1906         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
1907         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
1908         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
1909         rule.
1910
1911         wchar: Avoid #define replacements in C++ mode.
1912         * lib/wchar.in.h: Include c++defs.h.
1913         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
1914         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
1915         symbol.
1916         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
1917         * modules/wchar (Depends-on): Add c++defs.
1918         (Makefile.am): Update wchar.h rule.
1919
1920         unistd: Avoid #define replacements in C++ mode.
1921         * lib/unistd.in.h: Include c++defs.h.
1922         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
1923         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
1924         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
1925         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
1926         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
1927         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
1928         symbol.
1929         (environ): Update.
1930         * modules/unistd (Depends-on): Add c++defs.
1931         (Makefile.am): Update unistd.h rule.
1932
1933         time: Avoid #define replacements in C++ mode.
1934         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
1935         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
1936         define a namespaced alias symbol.
1937         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
1938         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
1939         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
1940         * modules/time (Depends-on): Add c++defs, warn-on-use.
1941         (Makefile.am): Update time.h rule.
1942         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
1943         * modules/nanosleep (configure.ac): Likewise.
1944         * modules/strptime (configure.ac): Likewise.
1945         * modules/timegm (configure.ac): Likewise.
1946
1947         sys_time: Avoid #define replacements in C++ mode.
1948         * lib/sys_time.in.h: Include c++defs.h.
1949         (gettimeofday): In C++, define a namespaced alias symbol.
1950         * modules/sys_time (Depends-on): Add c++defs.
1951         (Makefile.am): Update sys/time.h rule.
1952
1953         sys_stat: Avoid #define replacements in C++ mode.
1954         * lib/sys_stat.in.h: Include c++defs.h.
1955         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
1956         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
1957         namespaced alias symbol.
1958         In C++, define a namespaced alias symbol.
1959         * modules/sys_stat (Depends-on): Add c++defs.
1960         (Makefile.am): Update sys/stat.h rule.
1961
1962         sys_socket: Avoid #define replacements in C++ mode.
1963         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
1964         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
1965         definitions also when the system has a <sys/socket.h>.
1966         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
1967         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
1968         In C++, define a namespaced alias symbol.
1969         * modules/sys_socket (Depends-on): Add c++defs.
1970         (Makefile.am): Update sys/socket.h rule.
1971
1972         sys_select: Avoid #define replacements in C++ mode.
1973         * lib/sys_select.in.h: Include c++defs.h. Enable the function
1974         definitions also when the system has a <sys/select.h>.
1975         (select): In C++, define a namespaced alias symbol.
1976         * modules/sys_select (Depends-on): Add c++defs.
1977         (Makefile.am): Update sys/select.h rule.
1978
1979         sys_ioctl: Avoid #define replacements in C++ mode.
1980         * lib/sys_ioctl.in.h: Include c++defs.h.
1981         (ioctl): In C++, define a namespaced alias symbol.
1982         * modules/sys_ioctl (Depends-on): Add c++defs.
1983         (Makefile.am): Update sys/ioctl.h rule.
1984
1985         string: Avoid #define replacements in C++ mode.
1986         * lib/string.in.h: Include c++defs.h.
1987         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
1988         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
1989         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
1990         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
1991         strsignal, strverscmp): In C++, define a namespaced alias symbol.
1992         * modules/string (Depends-on): Add c++defs.
1993         (Makefile.am): Update string.h rule.
1994
1995         stdlib: Avoid #define replacements in C++ mode.
1996         * lib/stdlib.in.h: Include c++defs.h.
1997         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
1998         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
1999         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
2000         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
2001         symbol.
2002         * modules/stdlib (Depends-on): Add c++defs.
2003         (Makefile.am): Update stdlib.h rule.
2004
2005         stdio: Avoid #define replacements in C++ mode.
2006         * lib/stdio.in.h: Include c++defs.h.
2007         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
2008         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
2009         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
2010         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
2011         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
2012         namespaced alias symbol.
2013         * modules/stdio (Depends-on): Add c++defs.
2014         (Makefile.am): Update stdio.h rule.
2015
2016         spawn: Avoid #define replacements in C++ mode.
2017         * lib/spawn.in.h: Include c++defs.h.
2018         (posix_spawn, posix_spawnp, posix_spawnattr_init,
2019         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
2020         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
2021         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
2022         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
2023         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
2024         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
2025         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
2026         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
2027         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
2028         In C++, define a namespaced alias symbol.
2029         * modules/spawn (Depends-on): Add c++defs.
2030         (Makefile.am): Update spawn.h rule.
2031
2032         signal: Avoid #define replacements in C++ mode.
2033         * lib/signal.in.h: Include c++defs.h.
2034         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
2035         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
2036         namespaced alias symbol.
2037         * modules/signal (Depends-on): Add c++defs.
2038         (Makefile.am): Update signal.h rule.
2039
2040         search: Avoid #define replacements in C++ mode.
2041         * lib/search.in.h: Include c++defs.h.
2042         (_gl_search_compar_fn, _gl_search_action_fn): New types.
2043         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
2044         symbol.
2045         * modules/search (Depends-on): Add c++defs.
2046         (Makefile.am): Update search.h rule.
2047
2048         math: Avoid #define replacements in C++ mode.
2049         * lib/math.in.h: Include c++defs.h.
2050         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
2051         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
2052         trunc, truncl): In C++, define a namespaced alias symbol.
2053         * modules/math (Depends-on): Add c++defs.
2054         (Makefile.am): Update math.h rule.
2055
2056         locale: Avoid #define replacements in C++ mode.
2057         * lib/locale.in.h: Include c++defs.h.
2058         (duplocale): In C++, define a namespaced alias symbol.
2059         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
2060         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
2061         * modules/locale (Depends-on): Add c++defs.
2062         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
2063
2064         langinfo: Avoid #define replacements in C++ mode.
2065         * lib/langinfo.in.h: Include c++defs.h.
2066         (nl_langinfo): In C++, define a namespaced alias symbol.
2067         * modules/langinfo (Depends-on): Add c++defs.
2068         (Makefile.am): Update langinfo.h rule.
2069
2070         iconv-h: Avoid #define replacements in C++ mode.
2071         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
2072         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
2073         symbol.
2074         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
2075         whenever iconv is present.
2076         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
2077         (Makefile.am): Update iconv.h rule.
2078
2079         glob: Avoid #define replacements in C++ mode.
2080         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
2081         (_gl_glob_errfunc_fn): New type.
2082         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
2083         symbol.
2084         * modules/glob (Depends-on): Add c++defs, warn-on-use.
2085         (Makefile.am): Update glob.h rule.
2086
2087         fcntl-h: Avoid #define replacements in C++ mode.
2088         * lib/fcntl.in.h: Include c++defs.h.
2089         (fcntl, open, openat): In C++, define a namespaced alias symbol.
2090         * modules/fcntl-h (Depends-on): Add c++defs.
2091         (Makefile.am): Update fcntl.h rule.
2092
2093         dirent: Avoid #define replacements in C++ mode.
2094         * lib/dirent.in.h: Include c++defs.h.
2095         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
2096         namespaced alias symbol.
2097         (dirfd): Update declaration.
2098         * modules/dirent (Depends-on): Add c++defs.
2099         (Makefile.am): Update dirent.h rule.
2100
2101         ctype: Make it usable in C++ code.
2102         * lib/ctype.in.h: Include c++defs.h.
2103         (isblank): Declare as extern "C".
2104         * modules/ctype (Depends-on): Add c++defs.
2105         (Makefile.am): Update ctype.h rule.
2106
2107         New module 'c++defs'.
2108         * modules/c++defs: New file.
2109         * build-aux/c++defs.h: New file.
2110         Reported by John W. Eaton <jwe@gnu.org>.
2111
2112 2010-03-07  Bruno Haible  <bruno@clisp.org>
2113
2114         logb: Provide missing declaration for Cygwin.
2115         * lib/math.in.h (logb): New declaration.
2116         * m4/logb.m4: New file.
2117         * modules/logb (Files): Add m4/logb.m4.
2118         (Depends-on): Add math.
2119         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
2120         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
2121         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
2122         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
2123         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
2124
2125 2010-03-07  Bruno Haible  <bruno@clisp.org>
2126
2127         Fix test-cond link error.
2128         * tests/test-cond.c: Include <stdio.h>.
2129
2130 2010-03-07  Bruno Haible  <bruno@clisp.org>
2131
2132         Fix test-dirent-safer link error.
2133         * modules/dirent-safer-tests (Makefile.am): Define
2134         test_dirent_safer_LDADD.
2135
2136 2010-03-07  Bruno Haible  <bruno@clisp.org>
2137
2138         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
2139         among default module list.
2140
2141 2010-03-07  Bruno Haible  <bruno@clisp.org>
2142
2143         Fix link error on platforms with GNU libiconv.
2144         * modules/unistr/u8-strcoll-tests (Makefile): Define
2145         test_u8_strcoll_LDADD.
2146         * modules/unistr/u16-strcoll-tests (Makefile): Define
2147         test_u16_strcoll_LDADD.
2148         * modules/unistr/u32-strcoll-tests (Makefile): Define
2149         test_u32_strcoll_LDADD.
2150
2151 2010-03-07  Bruno Haible  <bruno@clisp.org>
2152
2153         Use POSIX declarations for socket functions.
2154         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
2155         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
2156         rpl_sendto): Change declaration to match POSIX.
2157         * lib/connect.c (rpl_connect): Likewise.
2158         * lib/accept.c (rpl_accept): Likewise.
2159         * lib/bind.c (rpl_bind): Likewise.
2160         * lib/getpeername.c (rpl_getpeername): Likewise.
2161         * lib/getsockname.c (rpl_getsockname): Likewise.
2162         * lib/recv.c (rpl_recv): Likewise.
2163         * lib/send.c (rpl_send): Likewise.
2164         * lib/recvfrom.c (rpl_recvfrom): Likewise.
2165         * lib/sendto.c (rpl_sendto): Likewise.
2166
2167 2010-03-06  Bruno Haible  <bruno@clisp.org>
2168
2169         Clarify access, euidaccess, faccessat.
2170         * doc/posix-functions/faccessat.texi: Mention security problem under
2171         "Other problems", not "Portability problems".
2172         * doc/posix-functions/access.texi: Likewise. Mention a related security
2173         problem.
2174         * doc/glibc-functions/euidaccess.texi: Mention security problems.
2175         * lib/euidaccess.c: Add comments about platforms.
2176         * lib/unistd.in.h (access, euidaccess): Add warnings.
2177
2178 2010-03-07  Bruno Haible  <bruno@clisp.org>
2179
2180         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
2181         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
2182         (POSIX_SPAWN_SETSCHEDULER): Likewise.
2183         (POSIX_SPAWN_USEVFORK): Define in a way that works when
2184         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
2185         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
2186         declare when POSIX_SPAWN_SETSCHEDULER is zero.
2187         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
2188         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
2189         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
2190         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
2191         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
2192         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
2193         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
2194         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
2195         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
2196         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
2197         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
2198         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
2199         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
2200         Likewise.
2201         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
2202         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
2203         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
2204         Likewise.
2205         * tests/test-spawn.c (main): Make it work when
2206         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
2207
2208 2010-03-07  Bruno Haible  <bruno@clisp.org>
2209
2210         Fix incorrect Makefile.am generation in German locale.
2211         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
2212         Execute sed command with character range in C locale.
2213
2214 2010-03-06  Bruno Haible  <bruno@clisp.org>
2215
2216         Tests for module 'iconv-h'.
2217         * modules/iconv-h-tests: New file.
2218         * tests/test-iconv-h.c: New file.
2219
2220         New module 'iconv-h'.
2221         * modules/iconv-h: New file.
2222         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
2223         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
2224         (configure.ac): Remove gl_ICONV_H.
2225         (Makefile.am): Remove rule for iconv.h.
2226
2227 2010-03-06  Bruno Haible  <bruno@clisp.org>
2228
2229         More consistent naming of *.m4 files.
2230         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
2231         * modules/wctype (Files): Update.
2232
2233         More consistent naming of *.m4 files.
2234         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
2235         * modules/wchar (Files): Update.
2236
2237 2010-03-06  Jim Meyering  <meyering@redhat.com>
2238
2239         euidaccess: relax license to LGPLv2+
2240         * modules/euidaccess (License): Relax to LGPLv2+.
2241
2242 2010-03-06  Bruno Haible  <bruno@clisp.org>
2243
2244         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
2245         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
2246         (Makefile.am): Augment lib_SOURCES instead.
2247
2248 2010-03-04  Jim Meyering  <meyering@redhat.com>
2249
2250         utime: remove obsolete module
2251         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
2252         unnecessary for years, and has been marked as obsolete for 10 months.
2253         * modules/utime: Remove file.
2254         * lib/utime.c: Remove file.
2255         * m4/utime.m4: Remove file.
2256         * m4/utimes-null.m4: Remove file.
2257         * doc/posix-functions/utime.texi (utime): Remove reference to
2258         the module.  Move the sole "fixed by gnulib" item into the
2259         "problems not fixed by Gnulib" list.
2260         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
2261
2262 2010-03-05  Simon Josefsson  <simon@josefsson.org>
2263
2264         * modules/exit (License): Relax license to LGPLv2+.
2265         (Status): Mark as obsolete.
2266         * NEWS: Mention deprecated 'exit' module.
2267         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
2268         of now obsolete 'exit'.
2269
2270 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2271
2272         fts-lgpl: remove unused module
2273         * modules/fts-lgpl: Remove.
2274         * MODULES.html.sh (func_all_modules): Adjust.
2275         * check-module (find_included_lib_files): Adjust.
2276         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
2277
2278 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
2279
2280         copy-acl: enhance Solaris ACL error handling
2281         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
2282         * lib/set-mode-acl.c (qset_acl): Likewise.
2283
2284 2010-03-02  Bruno Haible  <bruno@clisp.org>
2285
2286         spawn: Don't override the system defined values on FreeBSD 8.
2287         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
2288         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
2289         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
2290         if HAVE_POSIX_SPAWN is 1.
2291         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
2292
2293 2010-03-01  Bruno Haible  <bruno@clisp.org>
2294
2295         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
2296         regarding Automake.
2297
2298 2010-02-25  Bruno Haible  <bruno@clisp.org>
2299
2300         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
2301         * gnulib-tool: Define 'echo' as a function only before the ksh alias
2302         setting, not afterwards.
2303         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
2304
2305 2010-02-24  Eric Blake  <eblake@redhat.com>
2306
2307         bootstrap, git-version-gen: use timestamp
2308         * build-aux/git-version-gen (scriptversion): Force UTC.
2309         * build-aux/bootstrap (scriptversion): New variable.
2310
2311         bootstrap: allow older git
2312         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
2313         older than 1.6.4.  Requested by the libvirt project.
2314
2315 2010-02-23  Eric Blake  <eblake@redhat.com>
2316
2317         warn-on-use: work with old autoconf
2318         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
2319         AS_VAR semantics of autoconf 2.60.
2320         Reported by Bruno Haible.
2321
2322         bootstrap: improve some comments
2323         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
2324         clarification comments.
2325
2326         gettimeofday: provide correct function
2327         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
2328         when replacement is declared, otherwise provide gettimeofday.
2329         Reported by Michael Goffioul.
2330
2331 2010-02-23  Jim Meyering  <meyering@redhat.com>
2332
2333         lib-ignore: relax license to "unlimited", not LGPLv2+
2334         * modules/lib-ignore (License): Relax to "unlimited".
2335
2336 2010-02-23  Jim Meyering  <meyering@redhat.com>
2337
2338         lib-ignore: relax license to LGPLv2+
2339         * modules/lib-ignore (License): Relax to LGPLv2+.
2340
2341 2010-02-22  Eric Blake  <eblake@redhat.com>
2342
2343         lseek: avoid bash 3.2 broken pipe bug
2344         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
2345         warning from bash 3.2.
2346         Reported by Ben Pfaff, with analysis from Bruno Haible.
2347
2348         bootstrap: support non-FSF copyright holder
2349         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
2350         bootstrap.conf override of COPYRIGHT_HOLDER.
2351         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
2352
2353         bootstrap: interoperate with gettext 0.14.1
2354         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
2355
2356         bootstrap: allow for alternate submodule location
2357         * build-aux/bootstrap (gnulib_path): New variable; use instead of
2358         hardcoding submodule location.
2359         (gnulib_mk): Allow direct use of Makefile.am.
2360
2361         bootstrap: use GNULIB_SRCDIR to reduce disk usage
2362         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
2363         rather than reconfiguring where the submodule points.
2364
2365         gettimeofday: restore support for platforms that lack function
2366         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
2367         replacement if function is missing.
2368         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
2369         * modules/sys_time (Makefile.am): Substitute it.
2370         * lib/sys_time.in.h (gettimeofday): Check it.
2371         Reported by Michael Goffioul.
2372
2373 2010-02-21  Bruno Haible  <bruno@clisp.org>
2374
2375         * lib/stdio.in.h (obstack_printf): Fix typo.
2376
2377 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
2378
2379         vc-list-files: use bzr ls's -R option
2380         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
2381         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
2382
2383 2010-02-21  Jim Meyering  <meyering@redhat.com>
2384
2385         init.sh: fix EXEEXT shims to work also for names like test-prog
2386         * tests/init.sh: Re-exec a better shell, when needed.
2387         If the current shell lacks support for posix $(...), an init.sh-using
2388         test will now try to find a shell that supports that.  If EXEEXT is
2389         nonempty, we also require support for hyphen-in-alias-name and shell
2390         substitutions like ${var#glob}.  Failure to find such a shell results
2391         in a skipped test.
2392
2393 2010-02-21  Bruno Haible  <bruno@clisp.org>
2394
2395         Really work around around "broken pipe" error message from bash 3.2.
2396         * gnulib-tool (func_reset_sigpipe): Remove function.
2397         (echo): In bash 3.2, define to a function that uses printf.
2398         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
2399
2400 2010-02-20  Bruno Haible  <bruno@clisp.org>
2401
2402         Restore support for automake 1.9.6 with autoconf 2.61.
2403         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
2404         Reported by James Youngman <jay@gnu.org>.
2405
2406 2010-02-20  Bruno Haible  <bruno@clisp.org>
2407
2408         Improve *printf warning condition.
2409         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
2410         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
2411         and the function is overridden due to SIGPIPE emulation.
2412
2413 2010-02-20  Bruno Haible  <bruno@clisp.org>
2414
2415         * lib/stdio.in.h: Tweak comments.
2416
2417 2010-02-19  Bruno Haible  <bruno@clisp.org>
2418
2419         Make it easier to find modules. New gnulib-tool option '--find'.
2420         * gnulib-tool: New option --find.
2421         (func_usage): Document it.
2422         (func_sanitize_modulelist): New function, extracted from
2423         func_all_modules.
2424         (func_all_modules): Invoke it.
2425         * doc/gnulib-tool.texi (Which modules?): New node.
2426
2427 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
2428
2429         * lib/sys_select.in.h: Provide select replacement even if
2430         sys/select.h exists on a system, for Interix.
2431
2432 2010-02-18  Jim Meyering  <meyering@redhat.com>
2433
2434         init.sh: don't use $(...) just yet
2435         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
2436         to accommodate e.g., Solaris' /bin/sh.
2437
2438 2010-02-17  Bruno Haible  <bruno@clisp.org>
2439
2440         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
2441         Reported by Ludovic Courtès <ludo@gnu.org>.
2442
2443 2010-02-16  Simon Josefsson  <simon@josefsson.org>
2444
2445         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
2446         linking with -lintl.
2447
2448 2010-02-17  Simon Josefsson  <simon@josefsson.org>
2449
2450         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
2451         if not provided by the system's netdb.h.  Reported by
2452         ludo@gnu.org (Ludovic Courtès).
2453
2454 2010-02-15  Jim Meyering  <meyering@redhat.com>
2455
2456         init.sh: improve portability and efficiency
2457         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
2458         "dummy" in a for loop.
2459         Use '!', not '^' to select the complement of a character set used
2460         in a "case" statement.
2461         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
2462         Suggestions from Eric Blake.
2463
2464         init.sh: automatically accommodate programs with the .exe suffix
2465         Automatically arrange for an invocation of "prog" to execute the
2466         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
2467         may use the simpler "prog", yet still work when built on a system
2468         that requires specifying the added suffix.
2469         Do this by constructing a function named "prog" that invokes
2470         "prog.exe" for each .exe file in selected directories.
2471         * tests/init.sh (find_exe_basenames_): New function.
2472         (create_exe_shim_functions_): New function.
2473         (path_prepend_): Use it.
2474
2475         maint.mk: mark syntax-check sc_*.m rules as .PHONY
2476         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
2477         "make -t syntax-check" doesn't create a ton of sc_*.m files.
2478
2479 2010-02-14  Jim Meyering  <meyering@redhat.com>
2480
2481         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
2482         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
2483         (sc_prohibit_hash_pjw_without_use): New rule.
2484
2485         maint.mk: allow the default upload destination dir to be overridden
2486         * top/maint.mk (upload_dest_dir_): Define with a default that
2487         preserves the status quo.
2488         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
2489         Reported by Peter Simons.
2490
2491         maint.mk: prohibit inclusion of "hash.h" without_use
2492         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
2493
2494 2010-02-10  Jim Meyering  <meyering@redhat.com>
2495
2496         maint.mk: prohibit inclusion of "ignore-value.h" without_use
2497         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
2498
2499 2010-02-09  Eric Blake  <ebb9@byu.net>
2500         and Bruno Haible  <bruno@clisp.org>
2501
2502         obstack-printf-posix: ensure declaration
2503         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
2504         extracted from gl_FUNC_OBSTACK_PRINTF.
2505         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
2506         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
2507         Likewise.
2508         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
2509         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
2510         0.
2511
2512 2010-02-08  Bruno Haible  <bruno@clisp.org>
2513
2514         gnulib-tool: Fix typo in 2010-02-07 commit.
2515         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
2516         Reported by Eric Blake.
2517
2518 2010-02-07  Bruno Haible  <bruno@clisp.org>
2519
2520         gnulib-tool: Fix up caching patches.
2521         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
2522         option --no-cache. Use associative arrays when supported by the shell.
2523         (sed_comments): New variable.
2524         (modcache): Renamed from do_cache.
2525         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
2526         abbreviate unnecessarily.
2527         (have_associative): New variable.
2528         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
2529         way also for ksh and zsh.
2530         (func_init_sed_convert_to_cache_statements): New function, extracted
2531         from func_cache_lookup_module. Add support for associative arrays.
2532         Don't set the c_MODULE_cached variable here. Ignore all lines before
2533         the first field header. Remove only the final newline, not all trailing
2534         newlines. Support empty fields correctly. Limit the use of 'eval' to
2535         assignments.
2536         (func_get_description, func_get_status, func_get_notice,
2537         func_get_applicability, func_get_filelist, func_get_dependencies,
2538         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
2539         func_get_automake_snippet, func_get_include_directive,
2540         func_get_link_directive, func_get_license, func_get_maintainer):
2541         Update documentation. List the unoptimized code first. Add support for
2542         associative arrays. Limit the use of 'eval' to assignments.
2543         (func_get_applicability): Undo stylistic pessimisations.
2544         (func_get_automake_snippet, func_get_include_directive): Reduce code
2545         duplication.
2546         (func_modules_transitive_closure, func_modules_add_dummy,
2547         func_modules_notice, func_modules_to_filelist, func_add_file,
2548         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
2549         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
2550         func_create_testdir, func_create_megatestdir): Update documentation.
2551
2552 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2553
2554         * gnulib-tool (func_cache_lookup_module): Store the module name
2555         belonging to the cache variable; error out if two different
2556         module names map to the same cache variable name.
2557
2558 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2559
2560         gnulib-tool: Make caching optional.
2561         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
2562         Update matching short versions of --no-changelog.
2563         (func_usage): Update.
2564         (sed_extract_cache_prog): Renamed from ...
2565         (sed_extract_prog): ... this; revert to old extraction script.
2566         (func_get_description, func_get_status)
2567         (func_get_notice, func_get_applicability, func_get_filelist)
2568         (func_get_dependencies, func_get_autoconf_early_snippet)
2569         (func_get_autoconf_snippet, func_get_automake_snippet)
2570         (func_get_include_directive, func_get_link_directive)
2571         (func_get_license, func_get_maintainer): If $do_cache is false,
2572         use old, non-caching extraction scripts.
2573         Suggestion by Bruno Haible.
2574
2575 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2576
2577         gnulib-tool: cache module metainformation.
2578         * gnulib-tool (sed_extract_prog): Match newline before each
2579         header, and rewrite header to a shell variable suffix.
2580         (func_cache_var, func_cache_lookup_module): New functions,
2581         to turn a module name into a cache variable prefix, and to
2582         look up and cache module metainformation.
2583         (func_get_description, func_get_status)
2584         (func_get_notice, func_get_applicability, func_get_filelist)
2585         (func_get_dependencies, func_get_autoconf_early_snippet)
2586         (func_get_autoconf_snippet, func_get_automake_snippet)
2587         (func_get_include_directive, func_get_link_directive)
2588         (func_get_license, func_get_maintainer): Use
2589         func_cache_lookup_module.
2590
2591 2010-02-07  Bruno Haible  <bruno@clisp.org>
2592
2593         fnctl: Fix missing dependency.
2594         * modules/fcntl (Depends-on): Add getdtablesize.
2595         Reported by John W. Eaton <jwe@gnu.org>.
2596
2597 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
2598
2599         Argp: fix recognition of short alias options.
2600
2601         * lib/argp-parse.c (convert_options): Fix improper use of
2602         `|' between character values.
2603         * tests/test-argp.c (group1_option): New alias option
2604         --read (-r).
2605         (group1_parser): Special handling for 'r'.
2606         (test15): New test case.
2607         (test_fun): Add test15.
2608         * tests/test-argp-2.sh: Update expected --help and --usage
2609         outputs.
2610
2611 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
2612
2613         * tests/test-argp.c: Fix indentation.
2614
2615 2010-02-04  Eric Blake  <ebb9@byu.net>
2616
2617         gettimeofday: expose type of second argument
2618         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
2619         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
2620         * tests/test-gettimeofday.c: Use it to silence warning.
2621         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
2622         the issue.
2623
2624 2010-02-03  Jim Meyering  <meyering@redhat.com>
2625
2626         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
2627         * lib/regcomp.c (TYPE_SIGNED): Define.
2628         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
2629
2630         regcomp.c: avoid a new -Wshadow warning
2631         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
2632
2633 2010-02-01  Jim Meyering  <meyering@redhat.com>
2634
2635         removing useless parentheses in cpp #define directives
2636         For motivation, see commit c0221df4, "define STREQ(a,b)
2637         consistently, removing useless parentheses"
2638         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
2639         * lib/mountlist.c (MNT_IGNORE): Likewise.
2640         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
2641
2642 2010-02-01  Eric Blake  <ebb9@byu.net>
2643
2644         sys_time: use link-warning
2645         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
2646         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
2647         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
2648         * modules/sys_time (Depends-on): Add warn-on-use.
2649         (Makefile.am): Always build replacement.
2650         (configure.ac): Update substitutions.
2651         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
2652         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
2653         bother with SYS_TIME_H.
2654         * modules/gettimeofday (configure.ac): Declare indicator.
2655         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
2656         in use.
2657
2658         closein-tests: silence compiler warning
2659         * tests/test-closein.c (main): Ignore fread result.
2660         * modules/closein-tests (Depends-on): Add ignore-value.
2661
2662         tests: silence warning about system return
2663         * tests/test-areadlink-with-size.c (main): Ignore system result.
2664         * tests/test-areadlink.c (main): Likewise.
2665         * tests/test-areadlinkat-with-size.c (main): Likewise.
2666         * tests/test-areadlinkat.c (main): Likewise.
2667         * tests/test-canonicalize-lgpl.c (main): Likewise.
2668         * tests/test-canonicalize.c (main): Likewise.
2669         * tests/test-chown.c (main): Likewise.
2670         * tests/test-fchownat.c (main): Likewise.
2671         * tests/test-fdutimensat.c (main): Likewise.
2672         * tests/test-fstatat.c (main): Likewise.
2673         * tests/test-futimens.c (main): Likewise.
2674         * tests/test-lchown.c (main): Likewise.
2675         * tests/test-link.c (main): Likewise.
2676         * tests/test-linkat.c (main): Likewise.
2677         * tests/test-lstat.c (main): Likewise.
2678         * tests/test-mkdir.c (main): Likewise.
2679         * tests/test-mkdirat.c (main): Likewise.
2680         * tests/test-mkfifo.c (main): Likewise.
2681         * tests/test-mkfifoat.c (main): Likewise.
2682         * tests/test-mknod.c (main): Likewise.
2683         * tests/test-readlink.c (main): Likewise.
2684         * tests/test-remove.c (main): Likewise.
2685         * tests/test-rename.c (main): Likewise.
2686         * tests/test-renameat.c (main): Likewise.
2687         * tests/test-rmdir.c (main): Likewise.
2688         * tests/test-symlink.c (main): Likewise.
2689         * tests/test-symlinkat.c (main): Likewise.
2690         * tests/test-unlink.c (main): Likewise.
2691         * tests/test-unlinkat.c (main): Likewise.
2692         * tests/test-utimens.c (main): Likewise.
2693         * tests/test-utimensat.c (main): Likewise.
2694         * modules/areadlink-tests (Depends-on): Add ignore-value.
2695         * modules/areadlink-with-size-tests (Depends-on): Likewise.
2696         * modules/areadlinkat-tests (Depends-on): Likewise.
2697         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
2698         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
2699         * modules/canonicalize-tests (Depends-on): Likewise.
2700         * modules/chown-tests (Depends-on): Likewise.
2701         * modules/fdutimensat-tests (Depends-on): Likewise.
2702         * modules/futimens-tests (Depends-on): Likewise.
2703         * modules/lchown-tests (Depends-on): Likewise.
2704         * modules/link-tests (Depends-on): Likewise.
2705         * modules/linkat-tests (Depends-on): Likewise.
2706         * modules/lstat-tests (Depends-on): Likewise.
2707         * modules/mkdir-tests (Depends-on): Likewise.
2708         * modules/mkfifo-tests (Depends-on): Likewise.
2709         * modules/mkfifoat-tests (Depends-on): Likewise.
2710         * modules/mknod-tests (Depends-on): Likewise.
2711         * modules/openat-tests (Depends-on): Likewise.
2712         * modules/readlink-tests (Depends-on): Likewise.
2713         * modules/remove-tests (Depends-on): Likewise.
2714         * modules/rename-tests (Depends-on): Likewise.
2715         * modules/renameat-tests (Depends-on): Likewise.
2716         * modules/rmdir-tests (Depends-on): Likewise.
2717         * modules/symlink-tests (Depends-on): Likewise.
2718         * modules/symlinkat-tests (Depends-on): Likewise.
2719         * modules/unlink-tests (Depends-on): Likewise.
2720         * modules/utimens-tests (Depends-on): Likewise.
2721         * modules/utimensat-tests (Depends-on): Likewise.
2722
2723 2010-01-31  Bruno Haible  <bruno@clisp.org>
2724
2725         Perform the same test for many <math.h> functions.
2726         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
2727         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
2728         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
2729         of gl_MATHFUNC.
2730         * modules/acos (configure.ac): Likewise.
2731         * modules/asin (configure.ac): Likewise.
2732         * modules/atan (configure.ac): Likewise.
2733         * modules/atan2 (configure.ac): Likewise.
2734         * modules/cbrt (configure.ac): Likewise.
2735         * modules/copysign (configure.ac): Likewise.
2736         * modules/cos (configure.ac): Likewise.
2737         * modules/cosh (configure.ac): Likewise.
2738         * modules/erf (configure.ac): Likewise.
2739         * modules/erfc (configure.ac): Likewise.
2740         * modules/exp (configure.ac): Likewise.
2741         * modules/fmod (configure.ac): Likewise.
2742         * modules/hypot (configure.ac): Likewise.
2743         * modules/j0 (configure.ac): Likewise.
2744         * modules/j1 (configure.ac): Likewise.
2745         * modules/jn (configure.ac): Likewise.
2746         * modules/lgamma (configure.ac): Likewise.
2747         * modules/log (configure.ac): Likewise.
2748         * modules/log10 (configure.ac): Likewise.
2749         * modules/log1p (configure.ac): Likewise.
2750         * modules/pow (configure.ac): Likewise.
2751         * modules/remainder (configure.ac): Likewise.
2752         * modules/sin (configure.ac): Likewise.
2753         * modules/sinh (configure.ac): Likewise.
2754         * modules/tan (configure.ac): Likewise.
2755         * modules/tanh (configure.ac): Likewise.
2756         * modules/y0 (configure.ac): Likewise.
2757         * modules/y1 (configure.ac): Likewise.
2758         * modules/yn (configure.ac): Likewise.
2759         Suggested by Paolo Bonzini.
2760
2761 2010-01-31  Bruno Haible  <bruno@clisp.org>
2762
2763         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
2764
2765 2010-01-31  Bruno Haible  <bruno@clisp.org>
2766
2767         Work around getdelim() bug on FreeBSD 8.0.
2768         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
2769         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
2770         not work.
2771         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
2772         is 1.
2773         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
2774         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
2775         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
2776         a non-zero size.
2777         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
2778
2779 2010-01-31  Bruno Haible  <bruno@clisp.org>
2780
2781         Work around getline() bug on FreeBSD 8.0.
2782         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
2783         and a non-zero size.
2784         * tests/test-getline.c (main): Likewise.
2785         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
2786         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
2787
2788 2010-01-28  Eric Blake  <ebb9@byu.net>
2789
2790         regex: fix build failure
2791         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
2792         platforms.
2793
2794 2010-01-28  Jim Meyering  <meyering@redhat.com>
2795
2796         regex: do not ignore memory allocation failure
2797         * lib/regex_internal.c (create_cd_newstate): Detect
2798         re_node_set_init_copy failure.   Extracted from glibc commit
2799         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2800
2801         regex: sync more white-space changes from libc
2802         * lib/regex_internal.c: White-space only changes.
2803         * lib/regexec.c: Likewise.
2804
2805         regex: add many uses of __attribute_warn_unused_result__
2806         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
2807         * lib/regexec.c: Likewise.
2808         Extracted from a messy glibc commit.
2809
2810         regcomp.c: spelling and merge-artifact from glibc
2811         * lib/regcomp.c: Merge remainder of glibc's
2812         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2813
2814         regcomp.c: sync white-space changes from glibc
2815         * lib/regcomp.c: Merge to accommodate white space
2816         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2817
2818         regcomp.c: do not ignore internal return values
2819         * lib/regcomp.c: Do not ignore internal return values.
2820         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
2821         but without its white-space changes and spelling fixes.
2822
2823         regex_internal.h: define __attribute_warn_unused_result__
2824         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
2825
2826         maint: add a syntax-check rule to check for vulnerable Makefile.in
2827         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
2828
2829 2010-01-27  Jim Meyering  <meyering@redhat.com>
2830
2831         ncftpput-ftp: clean up spaces
2832         * build-aux/ncftpput-ftp: Make Copyright line consistent.
2833         Remove trailing blanks.
2834
2835 2010-01-27  Simon Josefsson  <simon@josefsson.org>
2836
2837         * build-aux/git-version-gen: Fix copyright statement.
2838         * build-aux/gnupload: Likewise.
2839         * tests/test-arcfour.c: Likewise.
2840         * tests/test-arctwo.c: Likewise.
2841         * tests/test-count-one-bits.c: Likewise.
2842         * tests/test-crc.c: Likewise.
2843         * tests/test-des.c: Likewise.
2844         * tests/test-gc-arcfour.c: Likewise.
2845         * tests/test-gc-arctwo.c: Likewise.
2846         * tests/test-gc-des.c: Likewise.
2847         * tests/test-gc-hmac-md5.c: Likewise.
2848         * tests/test-gc-hmac-sha1.c: Likewise.
2849         * tests/test-gc-md2.c: Likewise.
2850         * tests/test-gc-md4.c: Likewise.
2851         * tests/test-gc-md5.c: Likewise.
2852         * tests/test-gc-pbkdf2-sha1.c: Likewise.
2853         * tests/test-gc-rijndael.c: Likewise.
2854         * tests/test-gc-sha1.c: Likewise.
2855         * tests/test-gc.c: Likewise.
2856         * tests/test-gethostname.c: Likewise.
2857         * tests/test-gettimeofday.c: Likewise.
2858         * tests/test-hash.c: Likewise.
2859         * tests/test-hmac-md5.c: Likewise.
2860         * tests/test-hmac-sha1.c: Likewise.
2861         * tests/test-md2.c: Likewise.
2862         * tests/test-md4.c: Likewise.
2863         * tests/test-md5.c: Likewise.
2864         * tests/test-memchr.c: Likewise.
2865         * tests/test-memchr2.c: Likewise.
2866         * tests/test-memcmp.c: Likewise.
2867         * tests/test-memmem.c: Likewise.
2868         * tests/test-memrchr.c: Likewise.
2869         * tests/test-rawmemchr.c: Likewise.
2870         * tests/test-read-file.c: Likewise.
2871         * tests/test-rijndael.c: Likewise.
2872         * tests/test-sockets.c: Likewise.
2873         * tests/test-strchrnul.c: Likewise.
2874         * tests/test-strstr.c: Likewise.
2875         * tests/test-strtod.c: Likewise.
2876         * build-aux/ncftpput-ftp: Likewise.
2877
2878 2010-01-26  Eric Blake  <ebb9@byu.net>
2879
2880         ignore-value: update recommended header name
2881         * modules/ignore-value (Include): Only use <> for headers that
2882         exist in glibc.
2883
2884 2010-01-26  Jim Meyering  <meyering@redhat.com>
2885
2886         test-userspec.c: avoid compiler warnings
2887         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
2888         and "initialization discards qualifiers..." warnings.
2889         Put the first "uid" in its own scope, and make char* members "const".
2890
2891 2010-01-25  Bruno Haible  <bruno@clisp.org>
2892
2893         gnulib-tool: Make warning diagnostics consistent.
2894         * gnulib-tool (func_warning): New function.
2895         Use it everywhere where gnulib-tool produces output to stderr and it is
2896         not a fatal error.
2897
2898 2010-01-25  Bruno Haible  <bruno@clisp.org>
2899
2900         Fix test dependencies.
2901         * modules/xstrtol-tests (Depends-on): Add inttypes.
2902         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
2903
2904 2010-01-25 Pádraig Brady <P@draigBrady.com>
2905
2906         syntax-check: detect incorrect boolean macro values in config.h
2907         * modules/maintainer-makefile (configure.ac): Parameterize the location
2908         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
2909         The logic is from Eric Blake and the location indicated by Jim Meyering.
2910         Note the more natural CONFIG_HEADER name is prohibited by automake
2911         for backwards compatibility reasons.
2912         * top/maint.mk (sc_Wundef_boolean): New rule.
2913
2914 2010-01-25  Jim Meyering  <meyering@redhat.com>
2915
2916         bootstrap: detect MacOS 10.6's shasum, too
2917         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
2918         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
2919
2920 2010-01-23  Jim Meyering  <meyering@redhat.com>
2921
2922         xstrtoll: new module
2923         * modules/xstrtoll: New file.
2924         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
2925         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
2926         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
2927         ./configure fails if you use this module and lack "long long".
2928         * modules/xstrtoll-tests: New module.
2929         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
2930         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
2931         new init.sh-based test framework.
2932
2933 2010-01-24  Bruno Haible  <bruno@clisp.org>
2934
2935         Tests for module 'yn'.
2936         * modules/yn-tests: New file.
2937         * tests/test-yn.c: New file.
2938
2939         Tests for module 'y1'.
2940         * modules/y1-tests: New file.
2941         * tests/test-y1.c: New file.
2942
2943         Tests for module 'y0'.
2944         * modules/y0-tests: New file.
2945         * tests/test-y0.c: New file.
2946
2947         Tests for module 'tanh'.
2948         * modules/tanh-tests: New file.
2949         * tests/test-tanh.c: New file.
2950
2951         Tests for module 'tan'.
2952         * modules/tan-tests: New file.
2953         * tests/test-tan.c: New file.
2954
2955         Tests for module 'sqrt'.
2956         * modules/sqrt-tests: New file.
2957         * tests/test-sqrt.c: New file.
2958
2959         Tests for module 'sinh'.
2960         * modules/sinh-tests: New file.
2961         * tests/test-sinh.c: New file.
2962
2963         Tests for module 'sin'.
2964         * modules/sin-tests: New file.
2965         * tests/test-sin.c: New file.
2966
2967         Tests for module 'rint'.
2968         * modules/rint-tests: New file.
2969         * tests/test-rint.c: New file.
2970
2971         Tests for module 'remainder'.
2972         * modules/remainder-tests: New file.
2973         * tests/test-remainder.c: New file.
2974
2975         Tests for module 'pow'.
2976         * modules/pow-tests: New file.
2977         * tests/test-pow.c: New file.
2978
2979         Tests for module 'nextafter'.
2980         * modules/nextafter-tests: New file.
2981         * tests/test-nextafter.c: New file.
2982
2983         Tests for module 'modf'.
2984         * modules/modf-tests: New file.
2985         * tests/test-modf.c: New file.
2986
2987         Tests for module 'logb'.
2988         * modules/logb-tests: New file.
2989         * tests/test-logb.c: New file.
2990
2991         Tests for module 'log1p'.
2992         * modules/log1p-tests: New file.
2993         * tests/test-log1p.c: New file.
2994
2995         Tests for module 'log10'.
2996         * modules/log10-tests: New file.
2997         * tests/test-log10.c: New file.
2998
2999         Tests for module 'log'.
3000         * modules/log-tests: New file.
3001         * tests/test-log.c: New file.
3002
3003         Tests for module 'lgamma'.
3004         * modules/lgamma-tests: New file.
3005         * tests/test-lgamma.c: New file.
3006
3007         Tests for module 'ldexp'.
3008         * modules/ldexp-tests: New file.
3009         * tests/test-ldexp.c: New file.
3010
3011         Tests for module 'jn'.
3012         * modules/jn-tests: New file.
3013         * tests/test-jn.c: New file.
3014
3015         Tests for module 'j1'.
3016         * modules/j1-tests: New file.
3017         * tests/test-j1.c: New file.
3018
3019         Tests for module 'j0'.
3020         * modules/j0-tests: New file.
3021         * tests/test-j0.c: New file.
3022
3023         Tests for module 'hypot'.
3024         * modules/hypot-tests: New file.
3025         * tests/test-hypot.c: New file.
3026
3027         Tests for module 'fmod'.
3028         * modules/fmod-tests: New file.
3029         * tests/test-fmod.c: New file.
3030
3031         Tests for module 'fabs'.
3032         * modules/fabs-tests: New file.
3033         * tests/test-fabs.c: New file.
3034
3035         Tests for module 'exp'.
3036         * modules/exp-tests: New file.
3037         * tests/test-exp.c: New file.
3038
3039         Tests for module 'erfc'.
3040         * modules/erfc-tests: New file.
3041         * tests/test-erfc.c: New file.
3042
3043         Tests for module 'erf'.
3044         * modules/erf-tests: New file.
3045         * tests/test-erf.c: New file.
3046
3047         Tests for module 'cosh'.
3048         * modules/cosh-tests: New file.
3049         * tests/test-cosh.c: New file.
3050
3051         Tests for module 'cos'.
3052         * modules/cos-tests: New file.
3053         * tests/test-cos.c: New file.
3054
3055         Tests for module 'copysign'.
3056         * modules/copysign-tests: New file.
3057         * tests/test-copysign.c: New file.
3058
3059         Tests for module 'cbrt'.
3060         * modules/cbrt-tests: New file.
3061         * tests/test-cbrt.c: New file.
3062
3063         Tests for module 'atan2'.
3064         * modules/atan2-tests: New file.
3065         * tests/test-atan2.c: New file.
3066
3067         Tests for module 'atan'.
3068         * modules/atan-tests: New file.
3069         * tests/test-atan.c: New file.
3070
3071         Tests for module 'asin'.
3072         * modules/asin-tests: New file.
3073         * tests/test-asin.c: New file.
3074
3075         Tests for module 'acos'.
3076         * modules/acos-tests: New file.
3077         * tests/test-acos.c: New file.
3078
3079 2010-01-24  Bruno Haible  <bruno@clisp.org>
3080
3081         Fix tests for common <math.h> functions.
3082         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
3083         code snippet that references the function pointer, rather than merely
3084         calling the function. Substitute the FUNC_LIBM variable.
3085         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
3086         * modules/acos (configure.ac): Likewise.
3087         * modules/asin (configure.ac): Likewise.
3088         * modules/atan (configure.ac): Likewise.
3089         * modules/atan2 (configure.ac): Likewise.
3090         * modules/cbrt (configure.ac): Likewise.
3091         * modules/copysign (configure.ac): Likewise.
3092         * modules/cos (configure.ac): Likewise.
3093         * modules/cosh (configure.ac): Likewise.
3094         * modules/erf (configure.ac): Likewise.
3095         * modules/erfc (configure.ac): Likewise.
3096         * modules/exp (configure.ac): Likewise.
3097         * modules/fabs (configure.ac): Likewise.
3098         * modules/fmod (configure.ac): Likewise.
3099         * modules/hypot (configure.ac): Likewise.
3100         * modules/j0 (configure.ac): Likewise.
3101         * modules/j1 (configure.ac): Likewise.
3102         * modules/jn (configure.ac): Likewise.
3103         * modules/ldexp (configure.ac): Likewise.
3104         * modules/lgamma (configure.ac): Likewise.
3105         * modules/log (configure.ac): Likewise.
3106         * modules/log10 (configure.ac): Likewise.
3107         * modules/log1p (configure.ac): Likewise.
3108         * modules/logb (configure.ac): Likewise.
3109         * modules/modf (configure.ac): Likewise.
3110         * modules/nextafter (configure.ac): Likewise.
3111         * modules/pow (configure.ac): Likewise.
3112         * modules/remainder (configure.ac): Likewise.
3113         * modules/rint (configure.ac): Likewise.
3114         * modules/sin (configure.ac): Likewise.
3115         * modules/sinh (configure.ac): Likewise.
3116         * modules/tan (configure.ac): Likewise.
3117         * modules/tanh (configure.ac): Likewise.
3118         * modules/y0 (configure.ac): Likewise.
3119         * modules/y1 (configure.ac): Likewise.
3120         * modules/yn (configure.ac): Likewise.
3121
3122 2010-01-24  Bruno Haible  <bruno@clisp.org>
3123
3124         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
3125         * tests/test-acosl.c (x): New variable.
3126         (main): Store argument in x and fetch it from x.
3127         * tests/test-asinl.c (x): New variable.
3128         (main): Store argument in x and fetch it from x.
3129         * tests/test-atanl.c (x): New variable.
3130         (main): Store argument in x and fetch it from x.
3131         * tests/test-cosl.c (x): New variable.
3132         (main): Store argument in x and fetch it from x.
3133         * tests/test-expl.c (x): New variable.
3134         (main): Store argument in x and fetch it from x.
3135         * tests/test-logl.c (x): New variable.
3136         (main): Store argument in x and fetch it from x.
3137         * tests/test-sinl.c (x): New variable.
3138         (main): Store argument in x and fetch it from x.
3139         * tests/test-sqrtl.c (x): New variable.
3140         (main): Store argument in x and fetch it from x.
3141         * tests/test-tanl.c (x): New variable.
3142         (main): Store argument in x and fetch it from x.
3143
3144 2010-01-24  Bruno Haible  <bruno@clisp.org>
3145
3146         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
3147         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
3148         assignments to the initial TESTS_ENVIRONMENT.
3149         * doc/gnulib.texi (Unit test modules): Document it.
3150         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
3151         TESTS_ENVIRONMENT.
3152         * modules/btowc-tests (Makefile.am): Likewise.
3153         * modules/c-stack-tests (Makefile.am): Likewise.
3154         * modules/c-strcase-tests (Makefile.am): Likewise.
3155         * modules/copy-file-tests (Makefile.am): Likewise.
3156         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
3157         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
3158         * modules/mbrtowc-tests (Makefile.am): Likewise.
3159         * modules/mbscasecmp-tests (Makefile.am): Likewise.
3160         * modules/mbscasestr-tests (Makefile.am): Likewise.
3161         * modules/mbschr-tests (Makefile.am): Likewise.
3162         * modules/mbscspn-tests (Makefile.am): Likewise.
3163         * modules/mbsinit-tests (Makefile.am): Likewise.
3164         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
3165         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
3166         * modules/mbspbrk-tests (Makefile.am): Likewise.
3167         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
3168         * modules/mbsrchr-tests (Makefile.am): Likewise.
3169         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
3170         * modules/mbsspn-tests (Makefile.am): Likewise.
3171         * modules/mbsstr-tests (Makefile.am): Likewise.
3172         * modules/nl_langinfo-tests (Makefile.am): Likewise.
3173         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
3174         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
3175         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
3176         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
3177         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
3178         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
3179         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
3180         * modules/wcrtomb-tests (Makefile.am): Likewise.
3181         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
3182         * modules/wcsrtombs-tests (Makefile.am): Likewise.
3183         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
3184         assignments from TESTS_ENVIRONMENT.
3185         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
3186         augmentation.
3187         * modules/argp-version-etc-tests (Makefile.am): Likewise.
3188         * modules/atexit-tests (Makefile.am): Likewise.
3189         * modules/binary-io-tests (Makefile.am): Likewise.
3190         * modules/closein-tests (Makefile.am): Likewise.
3191         * modules/dprintf-posix-tests (Makefile.am): Likewise.
3192         * modules/exclude-tests (Makefile.am): Likewise.
3193         * modules/fflush-tests (Makefile.am): Likewise.
3194         * modules/fpending-tests (Makefile.am): Likewise.
3195         * modules/fprintf-posix-tests (Makefile.am): Likewise.
3196         * modules/freadahead-tests (Makefile.am): Likewise.
3197         * modules/freadptr-tests (Makefile.am): Likewise.
3198         * modules/freadseek-tests (Makefile.am): Likewise.
3199         * modules/fseek-tests (Makefile.am): Likewise.
3200         * modules/fseeko-tests (Makefile.am): Likewise.
3201         * modules/ftell-tests (Makefile.am): Likewise.
3202         * modules/ftello-tests (Makefile.am): Likewise.
3203         * modules/idpriv-drop-tests (Makefile.am): Likewise.
3204         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
3205         * modules/lseek-tests (Makefile.am): Likewise.
3206         * modules/parse-duration-tests (Makefile.am): Likewise.
3207         * modules/perror-tests (Makefile.am): Likewise.
3208         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
3209         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
3210         * modules/pipe-tests (Makefile.am): Likewise.
3211         * modules/pread-tests (Makefile.am): Likewise.
3212         * modules/printf-posix-tests (Makefile.am): Likewise.
3213         * modules/select-tests (Makefile.am): Likewise.
3214         * modules/sigpipe-tests (Makefile.am): Likewise.
3215         * modules/tsearch-tests (Makefile.am): Likewise.
3216         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
3217         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
3218         * modules/uniname/uniname-tests (Makefile.am): Likewise.
3219         * modules/uniwidth/width-tests (Makefile.am): Likewise.
3220         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
3221         * modules/version-etc-tests (Makefile.am): Likewise.
3222         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
3223         * modules/vprintf-posix-tests (Makefile.am): Likewise.
3224         * modules/xalloc-die-tests (Makefile.am): Likewise.
3225         * modules/xprintf-posix-tests (Makefile.am): Likewise.
3226         * modules/xstrtoimax-tests (Makefile.am): Likewise.
3227         * modules/xstrtol-tests (Makefile.am): Likewise.
3228         * modules/xstrtoumax-tests (Makefile.am): Likewise.
3229         * modules/yesno-tests (Makefile.am): Likewise.
3230         Suggested by Jim Meyering.
3231
3232 2010-01-24  Bruno Haible  <bruno@clisp.org>
3233
3234         More documentation.
3235         * doc/gnulib.texi (Writing modules): New chapter.
3236         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
3237         the new chapter.
3238
3239 2010-01-24  Jim Meyering  <meyering@redhat.com>
3240
3241         maint.mk: do not prepend "./" after filtering
3242         * top/maint.mk (_prepend_srcdir_prefix): New variable
3243         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
3244         "./" when $(srcdir) is ".".
3245
3246         define STREQ(a,b) consistently, removing useless parentheses
3247         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
3248         since the only risk is that "a" or "b" contains an unparenthesized
3249         comma, but if either did that, STREQ would have 3 or more arguments.
3250         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
3251         * lib/fts.c (STREQ): Remove unnecessary parentheses.
3252         * lib/hash-triple.c (STREQ): Likewise.
3253         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
3254         * lib/getugroups.c (STREQ): Likewise.
3255
3256 2010-01-23  Jim Meyering  <meyering@redhat.com>
3257
3258         maint.mk: fix syntax-check in a non-srcdir build directory
3259         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
3260         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
3261
3262 2010-01-22  Jim Meyering  <meyering@redhat.com>
3263
3264         userspec: add unit tests
3265         * tests/test-userspec.c: New file.
3266         * modules/userspec-tests: Likewise.
3267
3268 2010-01-21  Jim Meyering  <meyering@redhat.com>
3269
3270         maint.mk: handle source file names containing "." robustly
3271         * top/maint.mk (_dot_escaped_srcdir): Define.
3272         (VC_LIST): Use it in LHS of sed substitution.
3273
3274 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
3275
3276         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
3277         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
3278         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
3279         from a non-srcdir build.
3280
3281 2010-01-20  Eric Blake  <ebb9@byu.net>
3282
3283         warn-on-use: use instead of link-warning
3284         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
3285         * modules/unistd (Depends-on, Makefile.am): Likewise.
3286         * modules/arpa_inet (Depends-on): Replace link-warning with
3287         warn-on-use.
3288         (Makefile.am): Update rules accordingly.
3289         * modules/ctype (Depends-on, Makefile.am): Likewise.
3290         * modules/dirent (Depends-on, Makefile.am): Likewise.
3291         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
3292         * modules/inttypes (Depends-on, Makefile.am): Likewise.
3293         * modules/langinfo (Depends-on, Makefile.am): Likewise.
3294         * modules/locale (Depends-on, Makefile.am): Likewise.
3295         * modules/math (Depends-on, Makefile.am): Likewise.
3296         * modules/search (Depends-on, Makefile.am): Likewise.
3297         * modules/signal (Depends-on, Makefile.am): Likewise.
3298         * modules/spawn (Depends-on, Makefile.am): Likewise.
3299         * modules/stdlib (Depends-on, Makefile.am): Likewise.
3300         * modules/string (Depends-on, Makefile.am): Likewise.
3301         * modules/strings (Depends-on, Makefile.am): Likewise.
3302         * modules/sys_file (Depends-on, Makefile.am): Likewise.
3303         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
3304         * modules/sys_select (Depends-on, Makefile.am): Likewise.
3305         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
3306         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
3307         * modules/sys_times (Depends-on, Makefile.am): Likewise.
3308         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
3309         * modules/wchar (Depends-on, Makefile.am): Likewise.
3310         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
3311         should be poisoned.
3312         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
3313         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
3314         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
3315         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
3316         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
3317         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
3318         * m4/math_h.m4 (gl_MATH_H): Likewise.
3319         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
3320         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
3321         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3322         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
3323         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
3324         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
3325         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
3326         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
3327         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
3328         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3329         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
3330         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
3331         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
3332         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
3333         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3334         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
3335         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
3336         GL_LINK_WARNING.
3337         * lib/ctype.in.h: Likewise.
3338         * lib/dirent.in.h: Likewise.
3339         * lib/fcntl.in.h: Likewise.
3340         * lib/inttypes.in.h: Likewise.
3341         * lib/langinfo.in.h: Likewise.
3342         * lib/locale.in.h: Likewise.
3343         * lib/math.in.h: Likewise.
3344         * lib/search.in.h: Likewise.
3345         * lib/signal.in.h: Likewise.
3346         * lib/spawn.in.h: Likewise.
3347         * lib/stdio.in.h: Likewise.
3348         * lib/stdlib.in.h: Likewise.
3349         * lib/string.in.h: Likewise.
3350         * lib/strings.in.h: Likewise.
3351         * lib/sys_file.in.h: Likewise.
3352         * lib/sys_ioctl.in.h: Likewise.
3353         * lib/sys_select.in.h: Likewise.
3354         * lib/sys_socket.in.h: Likewise.
3355         * lib/sys_stat.in.h: Likewise.
3356         * lib/sys_times.in.h: Likewise.
3357         * lib/sys_utsname.in.h: Likewise.
3358         * lib/unistd.in.h: Likewise.
3359         * lib/wchar.in.h: Likewise.
3360
3361 2010-01-20  Bruno Haible  <bruno@clisp.org>
3362
3363         Avoid duplicate -lm.
3364         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
3365         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
3366         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
3367         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
3368         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
3369         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
3370         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
3371         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
3372         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
3373         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
3374         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
3375         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
3376         Reported by Paolo Bonzini.
3377
3378 2010-01-19  Bruno Haible  <bruno@clisp.org>
3379
3380         langinfo, nl_langinfo: Relicense under LGPLv2+.
3381         * modules/langinfo (License): Change to LGPLv2+.
3382         * modules/nl_langinfo (License): Likewise.
3383         Patch by David Lutterkort <lutter@redhat.com>.
3384
3385 2010-01-19  Bruno Haible  <bruno@clisp.org>
3386
3387         Avoid compilation error with cc on OSF/1 5.1.
3388         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
3389         statement, not before.
3390         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3391
3392 2010-01-18  Bruno Haible  <bruno@clisp.org>
3393
3394         Avoid a link error due to the __printf__ symbol.
3395         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
3396         and 2.6.x.
3397         (__format__, __printf__): Remove definitions.
3398         * lib/argp-fmtstream.h: Likewise.
3399         * lib/argp.h: Likewise.
3400         * lib/error.h: Likewise.
3401         * lib/vasnprintf.h: Likewise.
3402         * lib/xprintf.h: Likewise.
3403         * lib/xvasprintf.h: Likewise.
3404         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3405
3406 2010-01-18  Bruno Haible  <bruno@clisp.org>
3407
3408         Tests for module 'tanl'.
3409         * modules/tanl-tests: New file.
3410         * tests/test-tanl.c: New file.
3411
3412         Tests for module 'sqrtl'.
3413         * modules/sqrtl-tests: New file.
3414         * tests/test-sqrtl.c: New file.
3415
3416         Tests for module 'sinl'.
3417         * modules/sinl-tests: New file.
3418         * tests/test-sinl.c: New file.
3419
3420         Tests for module 'logl'.
3421         * modules/logl-tests: New file.
3422         * tests/test-logl.c: New file.
3423
3424         Tests for module 'expl'.
3425         * modules/expl-tests: New file.
3426         * tests/test-expl.c: New file.
3427
3428         Tests for module 'cosl'.
3429         * modules/cosl-tests: New file.
3430         * tests/test-cosl.c: New file.
3431
3432         Tests for module 'atanl'.
3433         * modules/atanl-tests: New file.
3434         * tests/test-atanl.c: New file.
3435
3436         Tests for module 'asinl'.
3437         * modules/asinl-tests: New file.
3438         * tests/test-asinl.c: New file.
3439
3440         Tests for module 'acosl'.
3441         * modules/acosl-tests: New file.
3442         * tests/test-acosl.c: New file.
3443
3444         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
3445         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
3446         tanl): Use the standard gnulib idiom.
3447         * lib/cosl.c: Don't include trigl.c and sincosl.c.
3448         * lib/sinl.c: Likewise.
3449         * lib/tanl.c: Don't include trigl.c.
3450         (kernel_tanl): Make static.
3451         * lib/sincosl.c: Include trigl.h first.
3452         * lib/trigl.c: Likewise.
3453         * m4/acosl.m4: New file.
3454         * m4/asinl.m4: New file.
3455         * m4/atanl.m4: New file.
3456         * m4/cosl.m4: New file.
3457         * m4/expl.m4: New file.
3458         * m4/logl.m4: New file.
3459         * m4/sinl.m4: New file.
3460         * m4/sqrtl.m4: New file.
3461         * m4/tanl.m4: New file.
3462         * m4/mathl.m4: Remove file.
3463         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
3464         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
3465         Don't initialize GNULIB_MATHL.
3466         * modules/acosl: New file.
3467         * modules/asinl: New file.
3468         * modules/atanl: New file.
3469         * modules/cosl: New file.
3470         * modules/expl: New file.
3471         * modules/logl: New file.
3472         * modules/sinl: New file.
3473         * modules/sqrtl: New file.
3474         * modules/tanl: New file.
3475         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
3476         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
3477         substitute GNULIB_MATHL.
3478         * modules/mathl: Rewritten.
3479         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
3480         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
3481         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
3482         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
3483         * doc/posix-functions/expl.texi: Mention the 'expl' module.
3484         * doc/posix-functions/logl.texi: Mention the 'logl' module.
3485         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
3486         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
3487         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
3488
3489 2010-01-18  Bruno Haible  <bruno@clisp.org>
3490
3491         sqrt: Make gl_FUNC_SQRT requirable.
3492         * m4/sqrt.m4: New file.
3493         * modules/sqrt (Files): Add it.
3494         (configure.ac): Invoke gl_FUNC_SQRT.
3495
3496 2010-01-18  Bruno Haible  <bruno@clisp.org>
3497
3498         New modules for common <math.h> functions.
3499         * m4/mathfunc.m4: New file.
3500         * modules/acos: New file.
3501         * modules/asin: New file.
3502         * modules/atan: New file.
3503         * modules/atan2: New file.
3504         * modules/cbrt: New file.
3505         * modules/copysign: New file.
3506         * modules/cos: New file.
3507         * modules/cosh: New file.
3508         * modules/erf: New file.
3509         * modules/erfc: New file.
3510         * modules/exp: New file.
3511         * modules/fabs: New file.
3512         * modules/fmod: New file.
3513         * modules/hypot: New file.
3514         * modules/j0: New file.
3515         * modules/j1: New file.
3516         * modules/jn: New file.
3517         * modules/ldexp: New file.
3518         * modules/lgamma: New file.
3519         * modules/log: New file.
3520         * modules/log10: New file.
3521         * modules/log1p: New file.
3522         * modules/logb: New file.
3523         * modules/modf: New file.
3524         * modules/nextafter: New file.
3525         * modules/pow: New file.
3526         * modules/remainder: New file.
3527         * modules/rint: New file.
3528         * modules/sin: New file.
3529         * modules/sinh: New file.
3530         * modules/sqrt: New file.
3531         * modules/tan: New file.
3532         * modules/tanh: New file.
3533         * modules/y0: New file.
3534         * modules/y1: New file.
3535         * modules/yn: New file.
3536         * doc/posix-functions/acos.texi: Mention the 'acos' module.
3537         * doc/posix-functions/asin.texi: Mention the 'asin' module.
3538         * doc/posix-functions/atan.texi: Mention the 'atan' module.
3539         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
3540         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
3541         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
3542         * doc/posix-functions/cos.texi: Mention the 'cos' module.
3543         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
3544         * doc/posix-functions/erf.texi: Mention the 'erf' module.
3545         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
3546         * doc/posix-functions/exp.texi: Mention the 'exp' module.
3547         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
3548         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
3549         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
3550         * doc/posix-functions/j0.texi: Mention the 'j0' module.
3551         * doc/posix-functions/j1.texi: Mention the 'j1' module.
3552         * doc/posix-functions/jn.texi: Mention the 'jn' module.
3553         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
3554         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
3555         * doc/posix-functions/log.texi: Mention the 'log' module.
3556         * doc/posix-functions/log10.texi: Mention the 'log10' module.
3557         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
3558         * doc/posix-functions/logb.texi: Mention the 'logb' module.
3559         * doc/posix-functions/modf.texi: Mention the 'modf' module.
3560         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
3561         * doc/posix-functions/pow.texi: Mention the 'pow' module.
3562         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
3563         * doc/posix-functions/rint.texi: Mention the 'rint' module.
3564         * doc/posix-functions/sin.texi: Mention the 'sin' module.
3565         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
3566         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
3567         * doc/posix-functions/tan.texi: Mention the 'tan' module.
3568         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
3569         * doc/posix-functions/y0.texi: Mention the 'y0' module.
3570         * doc/posix-functions/y1.texi: Mention the 'y1' module.
3571         * doc/posix-functions/yn.texi: Mention the 'yn' module.
3572
3573 2010-01-18  Jim Meyering  <meyering@redhat.com>
3574
3575         ignore-value: relax license to LGPLv2+
3576         * modules/ignore-value (License): Relax to LGPLv2+.
3577
3578         getdate: don't leak when TZ contains two or more '"'s
3579         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
3580         double quote in TZ after the first one.
3581
3582         readtokens: do not leak internal token_lengths buffer
3583         * lib/readtokens.c (readtokens): Free the local, lengths,
3584         when the supplied "token_lengths" parameter is NULL.
3585
3586 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3587
3588         Fix a couple of missing LIBTHREAD link failures on AIX.
3589         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
3590         $(LIBTHREAD).
3591         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
3592
3593         Link test-poll against INET_PTON_LIB.
3594         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
3595         for inet_pton on Solaris 10.
3596
3597 2010-01-17  Bruno Haible  <bruno@clisp.org>
3598
3599         unistdio/*-sprintf: Fix typo in module description.
3600         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
3601         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
3602         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
3603         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
3604         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
3605         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
3606         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
3607         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3608
3609 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3610
3611         gnulib-tool: fix filelist for AIX, HP-UX ksh.
3612         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
3613         variables in shell case patterns, for AIX and HP-UX ksh.
3614
3615         Split large sed scripts, for HP-UX sed.
3616         * modules/stdio: Split sed scripts around 50 sed commands,
3617         to avoid HP-UX limit of 99 commands, in the near future.
3618         * modules/string: Likewise.
3619         * modules/unistd: Likewise.
3620
3621         gnulib-tool: avoid writing in the current directory.
3622         * gnulib-tool (func_emit_lib_Makefile_am)
3623         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
3624         not in the current directory, so concurrent gnulib-tool
3625         instances do not interfere.
3626
3627 2010-01-16  Jim Meyering  <meyering@redhat.com>
3628
3629         doc: update users.txt
3630         * users.txt: Add grep.
3631         (diffutils, gzip): Update URLs.
3632
3633 2010-01-12  Bruno Haible  <bruno@clisp.org>
3634
3635         posix_spawn: Avoid test failure on Cygwin.
3636         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
3637         characters.
3638         Reported by Simon Josefsson.
3639
3640 2010-01-12  Bruno Haible  <bruno@clisp.org>
3641
3642         * tests/test-cond.c (main): When skipping the test, show the reason.
3643
3644 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3645
3646         * lib/striconv.c (str_cd_iconv): Avoid if before free.
3647
3648 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3649
3650         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
3651         VC_LIST_ALWAYS_EXCLUDE_REGEX.
3652
3653 2010-01-12  Eric Blake  <ebb9@byu.net>
3654
3655         build: guarantee AS_VAR_IF
3656         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
3657         (gl_AS_VAR_IF): Move...
3658         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
3659         Reported by Simon Josefsson.
3660
3661 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3662
3663         * lib/stdio.in.h: Fix typo.
3664
3665 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3666
3667         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
3668         libgpg-error.
3669
3670 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3671
3672         * tests/test-xalloc-die.sh: Use $EXEEXT.
3673
3674 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3675             Bruno Haible  <bruno@clisp.org>
3676
3677         getlogin, getlogin_r: Avoid test failure.
3678         * tests/test-getlogin.c: Include <stdio.h>.
3679         (main): Skip the test when the function fails because stdin is not a
3680         tty.
3681         * tests/test-getlogin_r.c: Include <stdio.h>.
3682         (main): Skip the test when the function fails because stdin is not a
3683         tty.
3684
3685 2010-01-11  Eric Blake  <ebb9@byu.net>
3686
3687         tests: avoid more large file warnings
3688         * tests/test-fflush.c: Avoid warning about ftell use.
3689         * tests/test-fseek.c: Avoid warning about fseek use.
3690
3691 2010-01-10  Bruno Haible  <bruno@clisp.org>
3692
3693         nproc: Work better on Linux when /proc and /sys are not mounted.
3694         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
3695         as lower bound when, on glibc/Linux systems,
3696         sysconf (_SC_NPROCESSORS_CONF) returns 1.
3697         Suggested by Pádraig Brady <P@draigbrady.com>.
3698         Reported by Dmitry V. Levin <ldv@altlinux.org>.
3699
3700         nproc: Refactor.
3701         * lib/nproc.c (num_processors_via_affinity_mask): New function,
3702         extracted from num_processors.
3703         (num_processors): Call it.
3704
3705 2010-01-11  Jim Meyering  <meyering@redhat.com>
3706
3707         utimecmp: avoid new warning from upcoming gcc-4.5.0
3708         * lib/utimecmp.c (BILLION): Define using #define rather than an
3709         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
3710
3711 2010-01-11  Eric Blake  <ebb9@byu.net>
3712
3713         math: add portability warnings for classification macros
3714         * modules/math (Depends-on): Add warn-on-use.
3715         (Makefile.am): Provide new substitutions.
3716         * m4/math_h.m4 (gl_MATH_H): Require inline.
3717         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
3718         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
3719         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
3720         implement warnings.
3721
3722         unistd: warn on use of environ without module
3723         * modules/unistd (Depends-on): Add warn-on-use.
3724         (Makefile.am): Provide new substitutions.
3725         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
3726         * lib/unistd.in.h (environ): Wrap with a warning helper function.
3727
3728         stdio: warn on suspicious uses
3729         * modules/stdio (Depends-on): Add warn-on-use.
3730         (Makefile.am): Provide new substitutions.
3731         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
3732         fseeko.
3733         * lib/stdio.in.h (gets): Always warn on use.
3734         (fseek, ftell): Adjust when warnings are issued, and honor
3735         _GL_NO_LARGE_FILES as a way to silence the warning.
3736         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
3737         any warning about large file offsets.
3738         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
3739         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
3740         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
3741         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
3742         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
3743         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
3744         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
3745         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
3746
3747         warn-on-use: new module
3748         * modules/warn-on-use: New file.
3749         * build-aux/warn-on-use.h: Likewise.
3750         * m4/warn-on-use.m4: Likewise.
3751         * MODULES.html.sh (Support for building): Mention it.
3752
3753 2010-01-10  Bruno Haible  <bruno@clisp.org>
3754
3755         Tests for module 'unistr/u32-strdup'.
3756         * modules/unistr/u32-strdup-tests: New file.
3757         * tests/unistr/test-u32-strdup.c: New file.
3758
3759         Tests for module 'unistr/u16-strdup'.
3760         * modules/unistr/u16-strdup-tests: New file.
3761         * tests/unistr/test-u16-strdup.c: New file.
3762
3763         Tests for module 'unistr/u8-strdup'.
3764         * modules/unistr/u8-strdup-tests: New file.
3765         * tests/unistr/test-u8-strdup.c: New file.
3766         * tests/unistr/test-strdup.h: New file.
3767
3768         Tests for module 'unistr/u32-strncmp'.
3769         * modules/unistr/u32-strncmp-tests: New file.
3770         * tests/unistr/test-u32-strncmp.c: New file.
3771
3772         Tests for module 'unistr/u16-strncmp'.
3773         * modules/unistr/u16-strncmp-tests: New file.
3774         * tests/unistr/test-u16-strncmp.c: New file.
3775
3776         Tests for module 'unistr/u8-strncmp'.
3777         * modules/unistr/u8-strncmp-tests: New file.
3778         * tests/unistr/test-u8-strncmp.c: New file.
3779         * tests/unistr/test-strncmp.h: New file.
3780
3781         Tests for module 'unistr/u32-strcoll'.
3782         * modules/unistr/u32-strcoll-tests: New file.
3783         * tests/unistr/test-u32-strcoll.c: New file.
3784
3785         Tests for module 'unistr/u16-strcoll'.
3786         * modules/unistr/u16-strcoll-tests: New file.
3787         * tests/unistr/test-u16-strcoll.c: New file.
3788
3789         Tests for module 'unistr/u8-strcoll'.
3790         * modules/unistr/u8-strcoll-tests: New file.
3791         * tests/unistr/test-u8-strcoll.c: New file.
3792
3793         Tests for module 'unistr/u32-strcmp'.
3794         * modules/unistr/u32-strcmp-tests: New file.
3795         * tests/unistr/test-u32-strcmp.c: New file.
3796         * tests/unistr/test-u32-strcmp.h: New file.
3797
3798         Tests for module 'unistr/u16-strcmp'.
3799         * modules/unistr/u16-strcmp-tests: New file.
3800         * tests/unistr/test-u16-strcmp.c: New file.
3801         * tests/unistr/test-u16-strcmp.h: New file.
3802
3803         Tests for module 'unistr/u8-strcmp'.
3804         * modules/unistr/u8-strcmp-tests: New file.
3805         * tests/unistr/test-u8-strcmp.c: New file.
3806         * tests/unistr/test-u8-strcmp.h: New file.
3807         * tests/unistr/test-strcmp.h: New file.
3808
3809         Tests for module 'unistr/u32-strncat'.
3810         * modules/unistr/u32-strncat-tests: New file.
3811         * tests/unistr/test-u32-strncat.c: New file.
3812
3813         Tests for module 'unistr/u16-strncat'.
3814         * modules/unistr/u16-strncat-tests: New file.
3815         * tests/unistr/test-u16-strncat.c: New file.
3816
3817         Tests for module 'unistr/u8-strncat'.
3818         * modules/unistr/u8-strncat-tests: New file.
3819         * tests/unistr/test-u8-strncat.c: New file.
3820         * tests/unistr/test-strncat.h: New file.
3821
3822         Tests for module 'unistr/u32-strcat'.
3823         * modules/unistr/u32-strcat-tests: New file.
3824         * tests/unistr/test-u32-strcat.c: New file.
3825
3826         Tests for module 'unistr/u16-strcat'.
3827         * modules/unistr/u16-strcat-tests: New file.
3828         * tests/unistr/test-u16-strcat.c: New file.
3829
3830         Tests for module 'unistr/u8-strcat'.
3831         * modules/unistr/u8-strcat-tests: New file.
3832         * tests/unistr/test-u8-strcat.c: New file.
3833         * tests/unistr/test-strcat.h: New file.
3834
3835         Tests for module 'unistr/u32-stpncpy'.
3836         * modules/unistr/u32-stpncpy-tests: New file.
3837         * tests/unistr/test-u32-stpncpy.c: New file.
3838
3839         Tests for module 'unistr/u16-stpncpy'.
3840         * modules/unistr/u16-stpncpy-tests: New file.
3841         * tests/unistr/test-u16-stpncpy.c: New file.
3842
3843         Tests for module 'unistr/u8-stpncpy'.
3844         * modules/unistr/u8-stpncpy-tests: New file.
3845         * tests/unistr/test-u8-stpncpy.c: New file.
3846         * tests/unistr/test-stpncpy.h: New file.
3847
3848         Tests for module 'unistr/u32-strncpy'.
3849         * modules/unistr/u32-strncpy-tests: New file.
3850         * tests/unistr/test-u32-strncpy.c: New file.
3851
3852         Tests for module 'unistr/u16-strncpy'.
3853         * modules/unistr/u16-strncpy-tests: New file.
3854         * tests/unistr/test-u16-strncpy.c: New file.
3855
3856         Tests for module 'unistr/u8-strncpy'.
3857         * modules/unistr/u8-strncpy-tests: New file.
3858         * tests/unistr/test-u8-strncpy.c: New file.
3859         * tests/unistr/test-strncpy.h: New file.
3860
3861         Tests for module 'unistr/u32-stpcpy'.
3862         * modules/unistr/u32-stpcpy-tests: New file.
3863         * tests/unistr/test-u32-stpcpy.c: New file.
3864
3865         Tests for module 'unistr/u16-stpcpy'.
3866         * modules/unistr/u16-stpcpy-tests: New file.
3867         * tests/unistr/test-u16-stpcpy.c: New file.
3868
3869         Tests for module 'unistr/u8-stpcpy'.
3870         * modules/unistr/u8-stpcpy-tests: New file.
3871         * tests/unistr/test-u8-stpcpy.c: New file.
3872         * tests/unistr/test-stpcpy.h: New file.
3873
3874         Tests for module 'unistr/u32-strcpy'.
3875         * modules/unistr/u32-strcpy-tests: New file.
3876         * tests/unistr/test-u32-strcpy.c: New file.
3877
3878         Tests for module 'unistr/u16-strcpy'.
3879         * modules/unistr/u16-strcpy-tests: New file.
3880         * tests/unistr/test-u16-strcpy.c: New file.
3881
3882         Tests for module 'unistr/u8-strcpy'.
3883         * modules/unistr/u8-strcpy-tests: New file.
3884         * tests/unistr/test-u8-strcpy.c: New file.
3885         * tests/unistr/test-strcpy.h: New file.
3886
3887         Tests for module 'unistr/u32-strnlen'.
3888         * modules/unistr/u32-strnlen-tests: New file.
3889         * tests/unistr/test-u32-strnlen.c: New file.
3890
3891         Tests for module 'unistr/u16-strnlen'.
3892         * modules/unistr/u16-strnlen-tests: New file.
3893         * tests/unistr/test-u16-strnlen.c: New file.
3894
3895         Tests for module 'unistr/u8-strnlen'.
3896         * modules/unistr/u8-strnlen-tests: New file.
3897         * tests/unistr/test-u8-strnlen.c: New file.
3898         * tests/unistr/test-strnlen.h: New file.
3899
3900         Tests for module 'unistr/u32-strlen'.
3901         * modules/unistr/u32-strlen-tests: New file.
3902         * tests/unistr/test-u32-strlen.c: New file.
3903
3904         Tests for module 'unistr/u16-strlen'.
3905         * modules/unistr/u16-strlen-tests: New file.
3906         * tests/unistr/test-u16-strlen.c: New file.
3907
3908         Tests for module 'unistr/u8-strlen'.
3909         * modules/unistr/u8-strlen-tests: New file.
3910         * tests/unistr/test-u8-strlen.c: New file.
3911
3912         Tests for module 'unistr/u32-prev'.
3913         * modules/unistr/u32-prev-tests: New file.
3914         * tests/unistr/test-u32-prev.c: New file.
3915
3916         Tests for module 'unistr/u16-prev'.
3917         * modules/unistr/u16-prev-tests: New file.
3918         * tests/unistr/test-u16-prev.c: New file.
3919
3920         Tests for module 'unistr/u8-prev'.
3921         * modules/unistr/u8-prev-tests: New file.
3922         * tests/unistr/test-u8-prev.c: New file.
3923
3924         Tests for module 'unistr/u32-next'.
3925         * modules/unistr/u32-next-tests: New file.
3926         * tests/unistr/test-u32-next.c: New file.
3927
3928         Tests for module 'unistr/u16-next'.
3929         * modules/unistr/u16-next-tests: New file.
3930         * tests/unistr/test-u16-next.c: New file.
3931
3932         Tests for module 'unistr/u8-next'.
3933         * modules/unistr/u8-next-tests: New file.
3934         * tests/unistr/test-u8-next.c: New file.
3935
3936         Tests for module 'unistr/u32-strmbtouc'.
3937         * modules/unistr/u32-strmbtouc-tests: New file.
3938         * tests/unistr/test-u32-strmbtouc.c: New file.
3939
3940         Tests for module 'unistr/u16-strmbtouc'.
3941         * modules/unistr/u16-strmbtouc-tests: New file.
3942         * tests/unistr/test-u16-strmbtouc.c: New file.
3943
3944         Tests for module 'unistr/u8-strmbtouc'.
3945         * modules/unistr/u8-strmbtouc-tests: New file.
3946         * tests/unistr/test-u8-strmbtouc.c: New file.
3947
3948         Tests for module 'unistr/u32-strmblen'.
3949         * modules/unistr/u32-strmblen-tests: New file.
3950         * tests/unistr/test-u32-strmblen.c: New file.
3951
3952         Tests for module 'unistr/u16-strmblen'.
3953         * modules/unistr/u16-strmblen-tests: New file.
3954         * tests/unistr/test-u16-strmblen.c: New file.
3955
3956         Tests for module 'unistr/u8-strmblen'.
3957         * modules/unistr/u8-strmblen-tests: New file.
3958         * tests/unistr/test-u8-strmblen.c: New file.
3959
3960         Tests for module 'unistr/u32-cpy-alloc'.
3961         * modules/unistr/u32-cpy-alloc-tests: New file.
3962         * tests/unistr/test-u32-cpy-alloc.c: New file.
3963
3964         Tests for module 'unistr/u16-cpy-alloc'.
3965         * modules/unistr/u16-cpy-alloc-tests: New file.
3966         * tests/unistr/test-u16-cpy-alloc.c: New file.
3967
3968         Tests for module 'unistr/u8-cpy-alloc'.
3969         * modules/unistr/u8-cpy-alloc-tests: New file.
3970         * tests/unistr/test-u8-cpy-alloc.c: New file.
3971         * tests/unistr/test-cpy-alloc.h: New file.
3972
3973         Tests for module 'unistr/u32-mbsnlen'.
3974         * modules/unistr/u32-mbsnlen-tests: New file.
3975         * tests/unistr/test-u32-mbsnlen.c: New file.
3976
3977         Tests for module 'unistr/u16-mbsnlen'.
3978         * modules/unistr/u16-mbsnlen-tests: New file.
3979         * tests/unistr/test-u16-mbsnlen.c: New file.
3980
3981         Tests for module 'unistr/u8-mbsnlen'.
3982         * modules/unistr/u8-mbsnlen-tests: New file.
3983         * tests/unistr/test-u8-mbsnlen.c: New file.
3984
3985         Tests for module 'unistr/u32-chr'.
3986         * modules/unistr/u32-chr-tests: New file.
3987         * tests/unistr/test-u32-chr.c: New file.
3988
3989         Tests for module 'unistr/u16-chr'.
3990         * modules/unistr/u16-chr-tests: New file.
3991         * tests/unistr/test-u16-chr.c: New file.
3992
3993         Tests for module 'unistr/u8-chr'.
3994         * modules/unistr/u8-chr-tests: New file.
3995         * tests/unistr/test-u8-chr.c: New file.
3996         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
3997
3998         Tests for module 'unistr/u32-cmp2'.
3999         * modules/unistr/u32-cmp2-tests: New file.
4000         * tests/unistr/test-u32-cmp2.c: New file.
4001
4002         Tests for module 'unistr/u16-cmp2'.
4003         * modules/unistr/u16-cmp2-tests: New file.
4004         * tests/unistr/test-u16-cmp2.c: New file.
4005
4006         Tests for module 'unistr/u8-cmp2'.
4007         * modules/unistr/u8-cmp2-tests: New file.
4008         * tests/unistr/test-u8-cmp2.c: New file.
4009         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
4010
4011         Tests for module 'unistr/u32-cmp'.
4012         * modules/unistr/u32-cmp-tests: New file.
4013         * tests/unistr/test-u32-cmp.c: New file.
4014
4015         Tests for module 'unistr/u16-cmp'.
4016         * modules/unistr/u16-cmp-tests: New file.
4017         * tests/unistr/test-u16-cmp.c: New file.
4018
4019         Tests for module 'unistr/u8-cmp'.
4020         * modules/unistr/u8-cmp-tests: New file.
4021         * tests/unistr/test-u8-cmp.c: New file.
4022         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
4023
4024         Tests for module 'unistr/u32-set'.
4025         * modules/unistr/u32-set-tests: New file.
4026         * tests/unistr/test-u32-set.c: New file.
4027
4028         Tests for module 'unistr/u16-set'.
4029         * modules/unistr/u16-set-tests: New file.
4030         * tests/unistr/test-u16-set.c: New file.
4031
4032         Tests for module 'unistr/u8-set'.
4033         * modules/unistr/u8-set-tests: New file.
4034         * tests/unistr/test-u8-set.c: New file.
4035         * tests/unistr/test-set.h: New file.
4036
4037         Tests for module 'unistr/u32-move'.
4038         * modules/unistr/u32-move-tests: New file.
4039         * tests/unistr/test-u32-move.c: New file.
4040
4041         Tests for module 'unistr/u16-move'.
4042         * modules/unistr/u16-move-tests: New file.
4043         * tests/unistr/test-u16-move.c: New file.
4044
4045         Tests for module 'unistr/u8-move'.
4046         * modules/unistr/u8-move-tests: New file.
4047         * tests/unistr/test-u8-move.c: New file.
4048         * tests/unistr/test-move.h: New file.
4049
4050         Tests for module 'unistr/u32-cpy'.
4051         * modules/unistr/u32-cpy-tests: New file.
4052         * tests/unistr/test-u32-cpy.c: New file.
4053
4054         Tests for module 'unistr/u16-cpy'.
4055         * modules/unistr/u16-cpy-tests: New file.
4056         * tests/unistr/test-u16-cpy.c: New file.
4057
4058         Tests for module 'unistr/u8-cpy'.
4059         * modules/unistr/u8-cpy-tests: New file.
4060         * tests/unistr/test-u8-cpy.c: New file.
4061         * tests/unistr/test-cpy.h: New file.
4062
4063 2010-01-09  Bruno Haible  <bruno@clisp.org>
4064
4065         Tests for module 'unistr/u32-uctomb'.
4066         * modules/unistr/u32-uctomb-tests: New file.
4067         * tests/unistr/test-u32-uctomb.c: New file.
4068
4069         Tests for module 'unistr/u16-uctomb'.
4070         * modules/unistr/u16-uctomb-tests: New file.
4071         * tests/unistr/test-u16-uctomb.c: New file.
4072
4073         Tests for module 'unistr/u8-uctomb'.
4074         * modules/unistr/u8-uctomb-tests: New file.
4075         * tests/unistr/test-u8-uctomb.c: New file.
4076
4077         Tests for module 'unistr/u32-mbtoucr'.
4078         * modules/unistr/u32-mbtoucr-tests: New file.
4079         * tests/unistr/test-u32-mbtoucr.c: New file.
4080
4081         Tests for module 'unistr/u16-mbtoucr'.
4082         * modules/unistr/u16-mbtoucr-tests: New file.
4083         * tests/unistr/test-u16-mbtoucr.c: New file.
4084
4085         Tests for module 'unistr/u8-mbtoucr'.
4086         * modules/unistr/u8-mbtoucr-tests: New file.
4087         * tests/unistr/test-u8-mbtoucr.c: New file.
4088
4089         Tests for module 'unistr/u32-mbtouc'.
4090         * modules/unistr/u32-mbtouc-tests: New file.
4091         * tests/unistr/test-u32-mbtouc.c: New file.
4092
4093         Tests for module 'unistr/u16-mbtouc'.
4094         * modules/unistr/u16-mbtouc-tests: New file.
4095         * tests/unistr/test-u16-mbtouc.c: New file.
4096
4097         Tests for module 'unistr/u8-mbtouc'.
4098         * modules/unistr/u8-mbtouc-tests: New file.
4099         * tests/unistr/test-u8-mbtouc.c: New file.
4100
4101         Tests for module 'unistr/u32-mbtouc-unsafe'.
4102         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
4103         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
4104         * tests/unistr/test-u32-mbtouc.h: New file.
4105
4106         Tests for module 'unistr/u16-mbtouc-unsafe'.
4107         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
4108         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
4109         * tests/unistr/test-u16-mbtouc.h: New file.
4110
4111         Tests for module 'unistr/u8-mbtouc-unsafe'.
4112         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
4113         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
4114         * tests/unistr/test-u8-mbtouc.h: New file.
4115
4116         Tests for module 'unistr/u32-mblen'.
4117         * modules/unistr/u32-mblen-tests: New file.
4118         * tests/unistr/test-u32-mblen.c: New file.
4119
4120         Tests for module 'unistr/u16-mblen'.
4121         * modules/unistr/u16-mblen-tests: New file.
4122         * tests/unistr/test-u16-mblen.c: New file.
4123
4124         Tests for module 'unistr/u8-mblen'.
4125         * modules/unistr/u8-mblen-tests: New file.
4126         * tests/unistr/test-u8-mblen.c: New file.
4127
4128         Tests for module 'unistr/u32-to-u16'.
4129         * modules/unistr/u32-to-u16-tests: New file.
4130         * tests/unistr/test-u32-to-u16.c: New file.
4131
4132         Tests for module 'unistr/u32-to-u8'.
4133         * modules/unistr/u32-to-u8-tests: New file.
4134         * tests/unistr/test-u32-to-u8.c: New file.
4135
4136         Tests for module 'unistr/u16-to-u32'.
4137         * modules/unistr/u16-to-u32-tests: New file.
4138         * tests/unistr/test-u16-to-u32.c: New file.
4139
4140         Tests for module 'unistr/u16-to-u8'.
4141         * modules/unistr/u16-to-u8-tests: New file.
4142         * tests/unistr/test-u16-to-u8.c: New file.
4143
4144         Tests for module 'unistr/u8-to-u32'.
4145         * modules/unistr/u8-to-u32-tests: New file.
4146         * tests/unistr/test-u8-to-u32.c: New file.
4147
4148         Tests for module 'unistr/u8-to-u16'.
4149         * modules/unistr/u8-to-u16-tests: New file.
4150         * tests/unistr/test-u8-to-u16.c: New file.
4151
4152         Tests for module 'unistr/u32-check'.
4153         * modules/unistr/u32-check-tests: New file.
4154         * tests/unistr/test-u32-check.c: New file.
4155
4156         Tests for module 'unistr/u16-check'.
4157         * modules/unistr/u16-check-tests: New file.
4158         * tests/unistr/test-u16-check.c: New file.
4159
4160         Tests for module 'unistr/u8-check'.
4161         * modules/unistr/u8-check-tests: New file.
4162         * tests/unistr/test-u8-check.c: New file.
4163
4164         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
4165         (category_equals): New function.
4166         (main): Add more tests.
4167         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
4168
4169         * tests/unictype/test-bidi_byname.c (main): Add more tests.
4170
4171 2010-01-10  Bruno Haible  <bruno@clisp.org>
4172
4173         unistr/u*-strcoll: Try harder to distinguish different strings.
4174         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
4175         compare s1 and s2 to see if they are different.
4176
4177 2010-01-10  Bruno Haible  <bruno@clisp.org>
4178
4179         unistr/u*-stpncpy: Fix the return value.
4180         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
4181         description of the return value consistent with stpncpy in glibc.
4182         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
4183         written non-NUL unit.
4184
4185 2010-01-10  Bruno Haible  <bruno@clisp.org>
4186
4187         unistr/u*-next: Add missing dependencies.
4188         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
4189         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
4190         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
4191
4192 2010-01-10  Bruno Haible  <bruno@clisp.org>
4193
4194         unistr/u8-mbsnlen: Fix return value for incomplete character.
4195         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
4196         u8_mblen.
4197         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
4198         Remove unistr/u8-mblen.
4199         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
4200         u16_mblen.
4201         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
4202         Remove unistr/u16-mblen.
4203
4204 2010-01-10  Bruno Haible  <bruno@clisp.org>
4205
4206         wchar: Fix compilation error when <wchar.h> is used from coreutils.
4207         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
4208         Reported by Brian Gough <bjg@gnu.org> and
4209         Chris Clayton <chris2553@googlemail.com> via
4210         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
4211
4212 2010-01-09  Bruno Haible  <bruno@clisp.org>
4213
4214         unistr/u16-to-u32: Reject invalid input.
4215         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
4216         u16_mbtouc.
4217         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
4218         Remove unistr/u16-mbtouc.
4219
4220         unistr/u16-to-u8: Reject invalid input.
4221         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
4222         u16_mbtouc.
4223         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
4224         Remove unistr/u16-mbtouc.
4225
4226         unistr/u8-to-u32: Reject invalid input.
4227         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
4228         u8_mbtouc.
4229         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
4230         Remove unistr/u8-mbtouc.
4231
4232         unistr/u8-to-u16: Reject invalid input.
4233         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
4234         u8_mbtouc.
4235         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
4236         Remove unistr/u8-mbtouc.
4237
4238 2010-01-09  Bruno Haible  <bruno@clisp.org>
4239
4240         Tests for module 'getlogin'.
4241         * modules/getlogin-tests: New file.
4242         * tests/test-getlogin.c: New file.
4243
4244         New module 'getlogin'.
4245         * lib/unistd.in.h (getlogin): New declaration.
4246         * lib/getlogin.c: New file.
4247         * m4/getlogin.m4: New file.
4248         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
4249         HAVE_GETLOGIN.
4250         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
4251         HAVE_GETLOGIN.
4252         * modules/getlogin: New file.
4253         * doc/posix-functions/getlogin.texi: Mention the new module.
4254         Reported by John W. Eaton <jwe@gnu.org>.
4255
4256 2010-01-09  Bruno Haible  <bruno@clisp.org>
4257
4258         getlogin_r: Support for native Windows.
4259         * lib/getlogin_r.c: Include <windows.h>
4260         (getlogin_r): Implement for native Windows.
4261         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
4262         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
4263         via John W. Eaton <jwe@gnu.org>.
4264
4265 2010-01-09  Bruno Haible  <bruno@clisp.org>
4266
4267         getlogin_r: Small fixes.
4268         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
4269         succeeds.
4270         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
4271         before testing whether getlogin_r is declared. No need to set
4272         HAVE_DECL_GETLOGIN_R to 1.
4273         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
4274
4275 2010-01-09  Bruno Haible  <bruno@clisp.org>
4276
4277         * lib/unistd.in.h (getlogin_r): Add comment.
4278
4279 2010-01-09  Bruno Haible  <bruno@clisp.org>
4280
4281         Tests for module 'getlogin_r'.
4282         * modules/getlogin_r-tests: New file.
4283         * tests/test-getlogin_r.c: New file.
4284
4285 2010-01-09  Jim Meyering  <meyering@redhat.com>
4286
4287         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
4288         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
4289         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
4290
4291 2010-01-08  Simon Josefsson  <simon@josefsson.org>
4292
4293         * lib/dup2.c (rpl_dup2): Improve comment.
4294
4295 2010-01-08  Eric Blake  <ebb9@byu.net>
4296
4297         maint.mk: allow packages to add makefile @@ exceptions
4298         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
4299         (sc_makefile_check): Rename...
4300         (sc_makefile_at_at_check): ...to this, and use hook.
4301
4302         dup2: work around mingw bug
4303         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
4304         Reported by Simon Josefsson.
4305
4306 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
4307
4308         glob: Fix C++ compilation.
4309         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
4310         C++.
4311
4312 2010-01-07  Bruno Haible  <bruno@clisp.org>
4313
4314         Fix indentation of wctype.in.h, broken since 2007-01-06.
4315         * lib/wctype.in.h: Fix indentation of preprocessor directives.
4316
4317 2010-01-07  Bruno Haible  <bruno@clisp.org>
4318
4319         mbslen: Avoid collision with system function.
4320         * lib/string.in.h [MirBSD]: Include <wchar.h>.
4321         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
4322         * m4/mbslen.m4: New file.
4323         * modules/mbslen (Files): Add it.
4324         (configure.ac): Invoke gl_MBSLEN.
4325         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
4326         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
4327         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
4328         via Ian Beckwith <ianb@erislabs.net>.
4329
4330 2010-01-07  Bruno Haible  <bruno@clisp.org>
4331
4332         dirent: Document the last fix.
4333         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
4334
4335 2010-01-07  Bruno Haible  <bruno@clisp.org>
4336
4337         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
4338         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
4339         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
4340         va_list are defined.
4341         * doc/posix-headers/stdio.texi: Document the bug of missing types.
4342         Reported by Eric Blake.
4343
4344 2010-01-07  Bruno Haible  <bruno@clisp.org>
4345
4346         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
4347         * modules/xlist (Depends-on): Add 'list',
4348         * modules/xoset (Depends-on): Add 'oset'.
4349         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4350
4351 2010-01-07  Bruno Haible  <bruno@clisp.org>
4352
4353         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
4354         * doc/posix-functions/strncasecmp.texi: Likewise.
4355
4356 2010-01-07  Bruno Haible  <bruno@clisp.org>
4357
4358         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
4359
4360 2010-01-07  John W. Eaton  <jwe@octave.org>
4361
4362         wctype: allow C++ use
4363         * lib/wctype.in.h: Add extern "C" block for C++.
4364
4365 2010-01-06  Eric Blake  <ebb9@byu.net>
4366
4367         maint.mk: detect incorrect GFDL usage
4368         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
4369
4370 2010-01-06  Jim Meyering  <meyering@redhat.com>
4371         and Eric Blake  <ebb9@byu.net>
4372
4373         maint.mk: ignore multi-line copyright in NEWS
4374         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
4375
4376 2010-01-06  Eric Blake  <ebb9@byu.net>
4377
4378         select: add missing dependency
4379         * modules/select-tests (Depends-on): Move sockets dependency...
4380         * modules/select (Depends-on): ...here.
4381         Reported by Ian Beckwith.
4382
4383         doc: regenerate INSTALL
4384         * doc/INSTALL: Reflect recent autoconf update.
4385         * doc/INSTALL.ISO: Likewise.
4386         * doc/INSTALL.UTF-8: Likewise.
4387
4388         pread: fix compilation on glibc
4389         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
4390         Reported by Ralf Wildenhues.
4391
4392         dirent: fix test failure
4393         * lib/dirent.in.h (includes): Guarantee ino_t.
4394         Reported by Ralf Wildenhues.
4395
4396 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
4397
4398         linkat, renameat: avoid bad free
4399         * lib/at-func2.c (at_func2): Fix typo.
4400         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
4401
4402 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4403
4404         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
4405         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
4406         to avoid failure of symlink test later.
4407
4408 2010-01-06  Eric Blake  <ebb9@byu.net>
4409
4410         stdio, unistd: guarantee ssize_t
4411         * lib/unistd.in.h (includes): Ensure that types required by POSIX
4412         2008 are exposed when needed.
4413         * lib/stdio.in.h (includes): Likewise.
4414         Reported by Ralf Wildenhues.
4415
4416 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
4417
4418         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
4419         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
4420         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
4421
4422 2010-01-06  Jim Meyering  <meyering@redhat.com>
4423
4424         readtokens: this module *does* require xalloc.h
4425         It uses only functions that were omitted by the old syntax-check rule.
4426         * lib/readtokens.c: Include "xalloc.h" once again.
4427         * modules/readtokens (Depends-on): Add xalloc.
4428         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
4429
4430 2010-01-05  Eric Blake  <ebb9@byu.net>
4431
4432         maint: support 'make announcement' from a VPATH build
4433         * top/maint.mk (announcement): Look for correct NEWS file.
4434
4435 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
4436
4437         utimens (fdutimens): ignore a negative FD, per contract
4438         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
4439         when we have a valid file descriptor.  Otherwise, using a brand
4440         new glibc (with just-patched futimens that now fails with EBADF)
4441         would cause this function to fail with ENOSYS.
4442         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
4443         See also http://bugzilla.redhat.com/552320.
4444
4445 2010-01-05  Eric Blake  <ebb9@byu.net>
4446
4447         strcase: document what it provides
4448         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
4449         gnulib module.
4450         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
4451         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
4452
4453 2010-01-05  Jim Meyering  <meyering@redhat.com>
4454
4455         maint: remove useless inclusions of "xalloc.h"
4456         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
4457         * lib/readtokens.c: Likewise.
4458         * lib/same.c: Likewise.
4459         * modules/getloadavg (Depends-on): Remove xalloc.
4460         * modules/readtokens: Likewise.
4461         * modules/same: Likewise.
4462
4463         maint.mk: include 4 more function names in alloca.h-checking regexp
4464         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
4465         regexp.  Before, we would give a false-positive (saying alloca.h
4466         is included unnecessarily) when the only uses involved omitted symbols.
4467
4468         xalloc.h: use consistent formatting
4469         * lib/xalloc.h: Move declarations to start in the first column.
4470
4471 2010-01-05  Eric Blake  <ebb9@byu.net>
4472
4473         mkdir: avoid xalloc
4474         * lib/mkdir.c (includes): Drop unused header.
4475         Reported by John W. Eaton.
4476
4477 2010-01-04  Jim Meyering  <meyering@redhat.com>
4478
4479         nl_langinfo: avoid configure-time syntax error
4480         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
4481         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
4482         the empty string.  Don't let that provoke a shell syntax error.
4483
4484         regcomp, regexec, fnmatch: avoid array bounds read error
4485         * lib/regcomp.c (build_equiv_class): From glibc:
4486         Use only the low 24 bits of a findidx return value as an index
4487         into the weights array.  Patch by Ulrich Drepper:
4488         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
4489         * lib/regexec.c (check_node_accept_bytes): Likewise.
4490         * lib/fnmatch_loop.c (FCT): Likewise.
4491
4492         regcomp: skip collseq lookup when there are no rules
4493         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
4494         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
4495
4496         regcomp: recognize ill-formed { } expressions
4497         * lib/regcomp.c (parse_dup_op): From glibc:
4498         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
4499
4500         regcomp: fix typo in comment
4501         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
4502         s/satisfy/satisfies/.
4503
4504         regcomp: sync from glibc: remove dead store
4505         * lib/regcomp.c (duplicate_node_closure): Remove useless
4506         search_duplicated_node call and dead store.
4507
4508         regcomp: sync from glibc; always use nl_langinfo
4509         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
4510         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
4511         * modules/regex (Depends-on): Add nl_langinfo.
4512
4513 2010-01-04  Eric Blake  <ebb9@byu.net>
4514
4515         fdopendir: fix configure test
4516         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
4517
4518 2010-01-01  Bruno Haible  <bruno@clisp.org>
4519
4520         wchar: Remove unused configure check.
4521         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
4522
4523 2010-01-01  Eric Blake  <ebb9@byu.net>
4524
4525         headers: make check of system header explicit
4526         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
4527         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
4528         ourselves.
4529         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
4530         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4531         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
4532         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
4533         internals.
4534         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
4535         missing.
4536         Suggested by Bruno Haible.
4537
4538 2010-01-01  Jim Meyering  <meyering@redhat.com>
4539
4540         ChangeLog: tweak to eliminate unnecessary copyright line
4541         * ChangeLog: Remove a copyright line that was mistakenly updated
4542         by today's update-copyright run.  Reported by Eric Blake.
4543
4544         test-update-copyright: don't let envvar setting cause test failure
4545         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
4546
4547 2010-01-01  Bruno Haible  <bruno@clisp.org>
4548
4549         localename: Avoid gcc warning.
4550         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
4551         function if it is not used.
4552
4553 2010-01-01  Jim Meyering  <meyering@redhat.com>
4554
4555         update nearly all FSF copyright year lists to include 2010
4556         Use the same procedure as for 2009, outlined in
4557         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
4558
4559         version-etc: set COPYRIGHT_YEAR to 2010
4560         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
4561
4562 2009-12-31  Eric Blake  <ebb9@byu.net>
4563
4564         doc: correct availability of cygwin 1.5.x getopt
4565         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
4566         variables.
4567         * doc/posix-functions/opterr.texi (opterr): Likewise.
4568         * doc/posix-functions/optind.texi (optind): Likewise.
4569         * doc/posix-functions/optopt.texi (optopt): Likewise.
4570         * doc/posix-functions/tzname.texi (tzname): Likewise.
4571
4572         openat: update maintainer
4573         * modules/openat (Maintainer): Add myself.
4574
4575         utimens: avoid shadowing warning
4576         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
4577         buffers into one, to avoid shadowing, as well as avoiding a
4578         redundant stat.
4579         Reported by Jim Meyering.
4580
4581         test-dup2: avoid compiler warning
4582         * tests/test-dup2.c (is_inheritable): Only define if used.
4583
4584 2010-01-01  Bruno Haible  <bruno@clisp.org>
4585
4586         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
4587         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
4588         defined, use wctomb instead of wcrtomb.
4589
4590 2010-01-01  Bruno Haible  <bruno@clisp.org>
4591
4592         iconv: Reject native Solaris iconv.
4593         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
4594         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
4595
4596 2009-12-31  Bruno Haible  <bruno@clisp.org>
4597
4598         * tests/test-signal.c (main): Remove test of 'SIG'.
4599
4600 2009-12-31  Bruno Haible  <bruno@clisp.org>
4601
4602         spawn: Fix incomplete fix.
4603         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
4604         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
4605         warnings for GNULIB_POSIXCHECK again.
4606         Reported by Eric Blake.
4607
4608 2009-12-31  Bruno Haible  <bruno@clisp.org>
4609
4610         Avoid namespace pollution on glibc systems.
4611         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
4612         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
4613         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
4614         glibc systems.
4615
4616 2009-12-31  Bruno Haible  <bruno@clisp.org>
4617
4618         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
4619         (gl_REPLACE_WCHAR_H): Turn into a no-op.
4620         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
4621         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
4622         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
4623         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
4624         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
4625
4626 2009-12-31  Bruno Haible  <bruno@clisp.org>
4627
4628         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
4629         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
4630         afterwards.
4631
4632 2009-12-31  Bruno Haible  <bruno@clisp.org>
4633
4634         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
4635         SYS_UTSNAME_H.
4636
4637 2009-12-31  Bruno Haible  <bruno@clisp.org>
4638
4639         spawn: Fix misapplied patch.
4640         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
4641         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
4642         warnings for GNULIB_POSIXCHECK.
4643
4644 2009-12-31  Bruno Haible  <bruno@clisp.org>
4645
4646         times: Update after sys_times changed.
4647         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
4648         * modules/times (Files): Add it.
4649         (configure.ac): Invoke gl_FUNC_TIMES.
4650
4651 2009-12-31  Bruno Haible  <bruno@clisp.org>
4652
4653         Use AC_C_INLINE where necessary.
4654         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
4655         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
4656         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
4657         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
4658         * m4/mbfile.m4 (gl_MBFILE): Likewise.
4659         * m4/mbiter.m4 (gl_MBITER): Likewise.
4660         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
4661         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
4662         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
4663         * modules/u64 (configure.ac): Likewise.
4664
4665 2009-12-31  Bruno Haible  <bruno@clisp.org>
4666
4667         Use AC_C_INLINE instead of module 'inline' where possible.
4668         * modules/inline (Description): Clarify purpose.
4669         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
4670         * modules/count-one-bits (Depends-on): Remove inline.
4671         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
4672         * modules/openat (Depends-on): Remove inline.
4673         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
4674         instead of depending on module 'inline'.
4675         * modules/filevercmp (Depends-on, configure.ac): Likewise.
4676         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
4677         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
4678         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
4679         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
4680         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
4681         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
4682         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
4683         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
4684         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
4685         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
4686         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
4687         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
4688         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
4689         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
4690         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
4691         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
4692         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
4693         Likewise.
4694         * modules/unictype/property-ascii-hex-digit (Depends-on,
4695         configure.ac): Likewise.
4696         * modules/unictype/property-bidi-arabic-digit (Depends-on,
4697         configure.ac): Likewise.
4698         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
4699         configure.ac): Likewise.
4700         * modules/unictype/property-bidi-block-separator (Depends-on,
4701         configure.ac): Likewise.
4702         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
4703         configure.ac): Likewise.
4704         * modules/unictype/property-bidi-common-separator (Depends-on,
4705         configure.ac): Likewise.
4706         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
4707         Likewise.
4708         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
4709         configure.ac): Likewise.
4710         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
4711         configure.ac): Likewise.
4712         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
4713         configure.ac): Likewise.
4714         * modules/unictype/property-bidi-european-digit (Depends-on,
4715         configure.ac): Likewise.
4716         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
4717         configure.ac): Likewise.
4718         * modules/unictype/property-bidi-left-to-right (Depends-on,
4719         configure.ac): Likewise.
4720         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
4721         configure.ac): Likewise.
4722         * modules/unictype/property-bidi-other-neutral (Depends-on,
4723         configure.ac): Likewise.
4724         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
4725         Likewise.
4726         * modules/unictype/property-bidi-segment-separator (Depends-on,
4727         configure.ac): Likewise.
4728         * modules/unictype/property-bidi-whitespace (Depends-on,
4729         configure.ac): Likewise.
4730         * modules/unictype/property-combining (Depends-on, configure.ac):
4731         Likewise.
4732         * modules/unictype/property-composite (Depends-on, configure.ac):
4733         Likewise.
4734         * modules/unictype/property-currency-symbol (Depends-on,
4735         configure.ac): Likewise.
4736         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
4737         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
4738         Likewise.
4739         * modules/unictype/property-default-ignorable-code-point (Depends-on,
4740         configure.ac): Likewise.
4741         * modules/unictype/property-deprecated (Depends-on, configure.ac):
4742         Likewise.
4743         * modules/unictype/property-diacritic (Depends-on, configure.ac):
4744         Likewise.
4745         * modules/unictype/property-extender (Depends-on, configure.ac):
4746         Likewise.
4747         * modules/unictype/property-format-control (Depends-on, configure.ac):
4748         Likewise.
4749         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
4750         Likewise.
4751         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
4752         Likewise.
4753         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
4754         Likewise.
4755         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
4756         Likewise.
4757         * modules/unictype/property-hyphen (Depends-on, configure.ac):
4758         Likewise.
4759         * modules/unictype/property-id-continue (Depends-on, configure.ac):
4760         Likewise.
4761         * modules/unictype/property-id-start (Depends-on, configure.ac):
4762         Likewise.
4763         * modules/unictype/property-ideographic (Depends-on, configure.ac):
4764         Likewise.
4765         * modules/unictype/property-ids-binary-operator (Depends-on,
4766         configure.ac): Likewise.
4767         * modules/unictype/property-ids-trinary-operator (Depends-on,
4768         configure.ac): Likewise.
4769         * modules/unictype/property-ignorable-control (Depends-on,
4770         configure.ac): Likewise.
4771         * modules/unictype/property-iso-control (Depends-on, configure.ac):
4772         Likewise.
4773         * modules/unictype/property-join-control (Depends-on, configure.ac):
4774         Likewise.
4775         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
4776         Likewise.
4777         * modules/unictype/property-line-separator (Depends-on, configure.ac):
4778         Likewise.
4779         * modules/unictype/property-logical-order-exception (Depends-on,
4780         configure.ac): Likewise.
4781         * modules/unictype/property-lowercase (Depends-on, configure.ac):
4782         Likewise.
4783         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
4784         * modules/unictype/property-non-break (Depends-on, configure.ac):
4785         Likewise.
4786         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
4787         Likewise.
4788         * modules/unictype/property-numeric (Depends-on, configure.ac):
4789         Likewise.
4790         * modules/unictype/property-other-alphabetic (Depends-on,
4791         configure.ac): Likewise.
4792         * modules/unictype/property-other-default-ignorable-code-point
4793         (Depends-on, configure.ac): Likewise.
4794         * modules/unictype/property-other-grapheme-extend (Depends-on,
4795         configure.ac): Likewise.
4796         * modules/unictype/property-other-id-continue (Depends-on,
4797         configure.ac): Likewise.
4798         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
4799         Likewise.
4800         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
4801         Likewise.
4802         * modules/unictype/property-other-math (Depends-on, configure.ac):
4803         Likewise.
4804         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
4805         Likewise.
4806         * modules/unictype/property-paired-punctuation (Depends-on,
4807         configure.ac): Likewise.
4808         * modules/unictype/property-paragraph-separator (Depends-on,
4809         configure.ac): Likewise.
4810         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
4811         Likewise.
4812         * modules/unictype/property-pattern-white-space (Depends-on,
4813         configure.ac): Likewise.
4814         * modules/unictype/property-private-use (Depends-on, configure.ac):
4815         Likewise.
4816         * modules/unictype/property-punctuation (Depends-on, configure.ac):
4817         Likewise.
4818         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
4819         Likewise.
4820         * modules/unictype/property-radical (Depends-on, configure.ac):
4821         Likewise.
4822         * modules/unictype/property-sentence-terminal (Depends-on,
4823         configure.ac): Likewise.
4824         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
4825         Likewise.
4826         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
4827         * modules/unictype/property-terminal-punctuation (Depends-on,
4828         configure.ac): Likewise.
4829         * modules/unictype/property-titlecase (Depends-on, configure.ac):
4830         Likewise.
4831         * modules/unictype/property-unassigned-code-value (Depends-on,
4832         configure.ac): Likewise.
4833         * modules/unictype/property-unified-ideograph (Depends-on,
4834         configure.ac): Likewise.
4835         * modules/unictype/property-uppercase (Depends-on, configure.ac):
4836         Likewise.
4837         * modules/unictype/property-variation-selector (Depends-on,
4838         configure.ac): Likewise.
4839         * modules/unictype/property-white-space (Depends-on, configure.ac):
4840         Likewise.
4841         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
4842         Likewise.
4843         * modules/unictype/property-xid-start (Depends-on, configure.ac):
4844         Likewise.
4845         * modules/unictype/property-zero-width (Depends-on, configure.ac):
4846         Likewise.
4847         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
4848         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
4849         Likewise.
4850
4851 2009-12-31  Bruno Haible  <bruno@clisp.org>
4852
4853         Remove unnecessary AC_C_INLINE invocation.
4854         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
4855         since 2009-08-21.
4856
4857 2009-12-31  Jim Meyering  <meyering@redhat.com>
4858
4859         maint.mk: don't require explicit gpg_key_ID in cfg.mk
4860         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
4861         With this change, we can all remove the gpg_key_ID = ... definition
4862         from our respective cfg.mk files.
4863
4864         maint.mk: create announcement template in ~/, not in /tmp
4865         * top/maint.mk (emit_upload_commands): Adjust.
4866         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
4867         Remove temporary file, .ci-msg.
4868
4869 2009-12-31  Eric Blake  <ebb9@byu.net>
4870
4871         link-warning: always build headers with link warnings
4872         * modules/arpa_inet (Makefile.am): Always build replacement
4873         header.
4874         * modules/ctype (Makefile.am): Likewise.
4875         * modules/dirent (Makefile.am): Likewise.
4876         * modules/inttypes (Makefile.am): Likewise.
4877         * modules/langinfo (Makefile.am): Likewise.
4878         * modules/locale (Makefile.am): Likewise.
4879         * modules/spawn (Makefile.am): Likewise.
4880         * modules/sys_file (Makefile.am): Likewise.
4881         * modules/sys_ioctl (Makefile.am): Likewise.
4882         * modules/sys_select (Makefile.am): Likewise.
4883         * modules/sys_socket (Makefile.am): Likewise.
4884         * modules/sys_times (Makefile.am): Likewise.
4885         * modules/sys_utsname (Makefile.am): Likewise.
4886         * modules/sys_wait (Makefile.am): Likewise.
4887         * modules/wchar (Makefile.am): Likewise.
4888         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
4889         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
4890         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
4891         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
4892         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
4893         Likewise.
4894         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
4895         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
4896         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
4897         Likewise.
4898         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
4899         Likewise.
4900         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
4901         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
4902         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
4903         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4904         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
4905         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
4906         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
4907         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
4908         (gl_WCHAR_H_DEFAULTS): Likewise.
4909
4910 2009-12-31  Eric Blake  <ebb9@byu.net>
4911
4912         signal, spawn: use link warnings
4913         * lib/signal.in.h (sigset_t): Make unconditional.
4914         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
4915         (sigpending, sigprocmask, sigaction): Add link warnings.
4916         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
4917         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
4918         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
4919         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
4920         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
4921         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
4922         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
4923         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
4924         (posix_spawn_file_actions_destroy)
4925         (posix_spawn_file_actions_addopen)
4926         (posix_spawn_file_actions_addclose)
4927         (posix_spawn_file_actions_adddup2): Likewise.
4928         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
4929         * tests/test-signal.c (main): Enhance test.
4930
4931         spawn: improve wrapper support
4932         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
4933         (gl_SPAWN_H_DEFAULTS): New defaults.
4934         * modules/spawn (Makefile.am): Substitute them.
4935         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
4936         Only declare if missing or broken.
4937
4938         sys_times, sys_utsname: use include_next
4939         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
4940         header.
4941         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
4942         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
4943         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
4944         * modules/sys_times (Depends-on): Add include_next.
4945         (Makefile.am): Substitute additional values.
4946         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
4947         * lib/sys_times.in.h (includes): Include native header, if
4948         available.
4949         * lib/sys_utsname.in.h (includes): Likewise.
4950         * tests/test-sys_times.c (main): Enhance test.
4951
4952         fdutimensat: revert prior patch
4953         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
4954         utimens.h.
4955         Reported by Bruno Haible.
4956
4957 2009-12-30  Eric Blake  <ebb9@byu.net>
4958
4959         sys_wait: drop link-warning dependency
4960         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
4961         link-warning efforts.
4962         * lib/sys_wait.in.h: Likewise.
4963
4964         fdutimensat: remove bogus dependency
4965         * modules/fdutimensat (Depends-on): Drop inline.
4966
4967         unistd: fix typo
4968         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
4969
4970 2009-12-30  Bruno Haible  <bruno@clisp.org>
4971
4972         Fix compilation error with Solaris cc.
4973         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
4974         * lib/unicase/u16-is-invariant.c: Likewise.
4975         * lib/unicase/u32-is-invariant.c: Likewise.
4976         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
4977
4978 2009-12-30  Bruno Haible  <bruno@clisp.org>
4979
4980         Fix test crash.
4981         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
4982         locales.
4983         Reported by Simon Josefsson <simon@josefsson.org>.
4984
4985 2009-12-30  Bruno Haible  <bruno@clisp.org>
4986
4987         Fix compilation error on most platforms.
4988         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
4989         Reported by Simon Josefsson <simon@josefsson.org>
4990         and Nelson H. F. Beebe <beebe@math.utah.edu>.
4991
4992 2009-12-30  Eric Blake  <ebb9@byu.net>
4993
4994         futimens, utimensat: work around ntfs-3g bug
4995         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
4996         a ctime bug is present, and expand workaround to cover ntfs-3g.
4997         * lib/utimens.c (fdutimens, lutimens): Likewise.
4998         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
4999         (validate_timespec): Adjust return value.
5000         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
5001         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
5002         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
5003
5004 2009-12-29  Eric Blake  <ebb9@byu.net>
5005
5006         link-warning: make usage consistent
5007         * modules/ctype (Depends-on): Add link-warning.
5008         (Makefile.am): Update rules accordingly.
5009         * modules/langinfo (Depends-on, Makefile.am): Likewise.
5010         * modules/locale (Depends-on, Makefile.am): Likewise.
5011         * modules/sys_file (Makefile.am): Likewise.
5012         * modules/getopt-posix (Makefile.am): Delete unused link warning
5013         efforts.
5014         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
5015         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
5016         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
5017         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
5018
5019         stdio: remove unused variables
5020         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
5021         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
5022         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
5023
5024         tests: test more substitute headers
5025         * modules/ctype-tests: New file.
5026         * modules/dirent-tests: Likewise.
5027         * modules/spawn-tests: Likewise.
5028         * modules/sys_file-tests: Likewise.
5029         * modules/sys_ioctl-tests: Likewise.
5030         * modules/sys_wait-tests: Likewise.
5031         * tests/test-ctype.c: Likewise.
5032         * tests/test-dirent.c: Likewise.
5033         * tests/test-spawn.c: Likewise.
5034         * tests/test-sys_file.c: Likewise.
5035         * tests/test-sys_ioctl.c: Likewise.
5036         * tests/test-sys_wait.c: Likewise.
5037         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
5038         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
5039         whether or not flock is in use.
5040
5041         tests: remove License section from module
5042         * modules/arpa_inet-tests: Remove unneeded section.
5043         * modules/byteswap-tests: Likewise.
5044         * modules/ceilf-tests: Likewise.
5045         * modules/ceill-tests: Likewise.
5046         * modules/crypto/des-tests: Likewise.
5047         * modules/crypto/gc-arcfour-tests: Likewise.
5048         * modules/crypto/gc-arctwo-tests: Likewise.
5049         * modules/crypto/gc-des-tests: Likewise.
5050         * modules/crypto/gc-hmac-md5-tests: Likewise.
5051         * modules/crypto/gc-hmac-sha1-tests: Likewise.
5052         * modules/crypto/gc-md2-tests: Likewise.
5053         * modules/crypto/gc-md4-tests: Likewise.
5054         * modules/crypto/gc-md5-tests: Likewise.
5055         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
5056         * modules/crypto/gc-rijndael-tests: Likewise.
5057         * modules/crypto/gc-sha1-tests: Likewise.
5058         * modules/crypto/gc-tests: Likewise.
5059         * modules/crypto/md2-tests: Likewise.
5060         * modules/crypto/md4-tests: Likewise.
5061         * modules/fcntl-h-tests: Likewise.
5062         * modules/floorf-tests: Likewise.
5063         * modules/floorl-tests: Likewise.
5064         * modules/frexp-nolibm-tests: Likewise.
5065         * modules/frexp-tests: Likewise.
5066         * modules/frexpl-nolibm-tests: Likewise.
5067         * modules/frexpl-tests: Likewise.
5068         * modules/getaddrinfo-tests: Likewise.
5069         * modules/inttypes-tests: Likewise.
5070         * modules/isfinite-tests: Likewise.
5071         * modules/isinf-tests: Likewise.
5072         * modules/ldexpl-tests: Likewise.
5073         * modules/locale-tests: Likewise.
5074         * modules/math-tests: Likewise.
5075         * modules/netdb-tests: Likewise.
5076         * modules/netinet_in-tests: Likewise.
5077         * modules/printf-frexp-tests: Likewise.
5078         * modules/printf-frexpl-tests: Likewise.
5079         * modules/priv-set-tests: Likewise.
5080         * modules/random_r-tests: Likewise.
5081         * modules/round-tests: Likewise.
5082         * modules/roundf-tests: Likewise.
5083         * modules/roundl-tests: Likewise.
5084         * modules/search-tests: Likewise.
5085         * modules/select-tests: Likewise.
5086         * modules/signal-tests: Likewise.
5087         * modules/stdbool-tests: Likewise.
5088         * modules/stddef-tests: Likewise.
5089         * modules/stdint-tests: Likewise.
5090         * modules/stdio-tests: Likewise.
5091         * modules/stdlib-tests: Likewise.
5092         * modules/string-tests: Likewise.
5093         * modules/strings-tests: Likewise.
5094         * modules/sys_select-tests: Likewise.
5095         * modules/sys_socket-tests: Likewise.
5096         * modules/sys_stat-tests: Likewise.
5097         * modules/sys_time-tests: Likewise.
5098         * modules/sys_utsname-tests: Likewise.
5099         * modules/sysexits-tests: Likewise.
5100         * modules/time-tests: Likewise.
5101         * modules/trunc-tests: Likewise.
5102         * modules/truncf-tests: Likewise.
5103         * modules/truncl-tests: Likewise.
5104         * modules/tsearch-tests: Likewise.
5105         * modules/unistd-tests: Likewise.
5106         * modules/wchar-tests: Likewise.
5107         * modules/wctype-tests: Likewise.
5108
5109         tests: fix license on several tests
5110         * tests/test-des.c: Update to GPLv3+.
5111         * tests/test-flock.c: Likewise.
5112         * tests/test-fsync.c: Likewise.
5113         * tests/test-futimens.h: Likewise.
5114         * tests/test-gc-arcfour.c: Likewise.
5115         * tests/test-gc-arctwo.c: Likewise.
5116         * tests/test-gc-des.c: Likewise.
5117         * tests/test-gc-hmac-md5.c: Likewise.
5118         * tests/test-gc-hmac-sha1.c: Likewise.
5119         * tests/test-gc-md2.c: Likewise.
5120         * tests/test-gc-md4.c: Likewise.
5121         * tests/test-gc-md5.c: Likewise.
5122         * tests/test-gc-pbkdf2-sha1.c: Likewise.
5123         * tests/test-gc-rijndael.c: Likewise.
5124         * tests/test-gc-sha1.c: Likewise.
5125         * tests/test-gc.c: Likewise.
5126         * tests/test-getcwd.c: Likewise.
5127         * tests/test-link.c: Likewise.
5128         * tests/test-link.h: Likewise.
5129         * tests/test-lutimens.h: Likewise.
5130         * tests/test-md2.c: Likewise.
5131         * tests/test-md4.c: Likewise.
5132         * tests/test-mkdir.h: Likewise.
5133         * tests/test-rename.c: Likewise.
5134         * tests/test-rename.h: Likewise.
5135         * tests/test-safe-alloc.c: Likewise.
5136         * tests/test-utimens-common.h: Likewise.
5137         * tests/test-utimens.h: Likewise.
5138
5139         maint: sync license texts
5140         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
5141         * doc/gpl-3.0.texi: Revert copyright year update.
5142         * doc/lgpl-3.0.texi: Likewise.
5143
5144 2009-12-29  Jim Meyering  <meyering@redhat.com>
5145
5146         update nearly all FSF copyright year lists to include 2009
5147         The files named by the following are exempted:
5148             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
5149               test -f "$dst" && { echo "$dst"; continue; }
5150               test -d "$dst" || continue
5151               echo "$dst"/$(basename "$src")
5152             done > exempt
5153             git ls-files tests/unictype >> exempt
5154         In the remaining files, convert to all-interval notation if
5155         - there is already at least one year interval like 2000-2003
5156         - the file is maintained by me
5157         - the file is in lib/uni*/, where that style already prevails
5158         Otherwise, use update-copyright's default.
5159
5160 2009-12-29  Simon Josefsson  <simon@josefsson.org>
5161         and Eric Blake  <ebb9@byu.net>
5162
5163         tests: don't require debug system() to pass
5164         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
5165         * tests/test-rmdir.h (test_rmdir_func): Likewise.
5166         * tests/test-unlink.h (test_unlink_func): Likewise.
5167         * tests/test-fstatat.c (main): ...into callers.
5168         * tests/test-lstat.c (main): Likewise.
5169         * tests/test-rmdir.c (main): Likewise.
5170         * tests/test-unlink.c (main): Likewise.
5171         * tests/test-unlinkat.c (main): Likewise.
5172         * tests/test-areadlink-with-size.c (main): Don't require a
5173         debug-only system call to pass, aiding cross-testing to mingw.
5174         * tests/test-areadlink.c (main): Likewise.
5175         * tests/test-areadlinkat-with-size.c (main): Likewise.
5176         * tests/test-areadlinkat.c (main): Likewise.
5177         * tests/test-canonicalize-lgpl.c (main): Likewise.
5178         * tests/test-canonicalize.c (main): Likewise.
5179         * tests/test-chown.c (main): Likewise.
5180         * tests/test-fchownat.c (main): Likewise.
5181         * tests/test-lchown.c (main): Likewise.
5182         * tests/test-fdutimensat.c (main): Likewise.
5183         * tests/test-futimens.c (main): Likewise.
5184         * tests/test-link.c (main): Likewise.
5185         * tests/test-linkat.c (main): Likewise.
5186         * tests/test-mkdir.c (main): Likewise.
5187         * tests/test-mkdirat.c (main): Likewise.
5188         * tests/test-mkfifo.c (main): Likewise.
5189         * tests/test-mkfifoat.c (main): Likewise.
5190         * tests/test-mknod.c (main): Likewise.
5191         * tests/test-readlink.c (main): Likewise.
5192         * tests/test-remove.c (main): Likewise.
5193         * tests/test-rename.c (main): Likewise.
5194         * tests/test-renameat.c (main): Likewise.
5195         * tests/test-symlink.c (main): Likewise.
5196         * tests/test-symlinkat.c (main): Likewise.
5197         * tests/test-utimens.c (main): Likewise.
5198         * tests/test-utimensat.c (main): Likewise.
5199
5200 2009-12-29  Simon Josefsson  <simon@josefsson.org>
5201
5202         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
5203         on $(UNUSED_PARAMETER_H) to avoid build failure.
5204
5205 2009-12-28  Jim Meyering  <meyering@redhat.com>
5206
5207         update-copyright: you may specify a max. line length other than 72
5208         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
5209
5210         maint: use consistent FSF copyright line syntax
5211         * lib/posixtm.c: Add missing comma in FSF copyright line.
5212         * lib/posixtm.h: Likewise.
5213         * lib/getugroups.c: Add missing ", Inc.".
5214
5215         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
5216         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
5217         FSF copyright line.  Remove trailing blanks.
5218
5219 2009-12-28  Eric Blake  <ebb9@byu.net>
5220
5221         test-dup2: reduce dependencies
5222         * modules/cloexec (Configure.ac): Set witness.
5223         * modules/dup2-tests (Depends-on): Drop cloexec.
5224         * tests/test-dup2.c (main): Skip portion of test if cloexec module
5225         not present.
5226         Suggested by Bruno Haible.
5227
5228 2009-12-26  Bruno Haible  <bruno@clisp.org>
5229
5230         Remove an unneeded dependency.
5231         * modules/fseterr (Depends-on): Remove dup2.
5232
5233 2009-12-26  Eric Blake  <ebb9@byu.net>
5234
5235         tests: use macros.h in more places
5236         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
5237         (ASSERT_STREAM): Provide default of stderr.
5238         * tests/test-dirent-safer.c: Include macros.h, using alternate
5239         stream for assertions.
5240         * tests/test-dup-safer.c: Likewise.
5241         * tests/test-freopen-safer.c: Likewise.
5242         * tests/test-getopt.c: Likewise.
5243         * tests/test-openat-safer.c: Likewise.
5244         * tests/test-pipe.c: Likewise.
5245         * tests/test-popen-safer.c: Likewise.
5246         * modules/dirent-safer-tests (Files): Include macros.h.
5247         * modules/unistd-safer-tests (Files): Likewise.
5248         * modules/freopen-safer-tests (Files): Likewise.
5249         * modules/getopt-posix-tests (Files): Likewise.
5250         * modules/openat-safer-tests (Files): Likewise.
5251         * modules/pipe-tests (Files): Likewise.
5252
5253 2009-12-26  Bruno Haible  <bruno@clisp.org>
5254
5255         javacomp: Portability fix.
5256         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
5257         that it also works on Solaris.
5258
5259 2009-12-26  Bruno Haible  <bruno@clisp.org>
5260
5261         localename: Fix storage allocation of gl_locale_name_thread's result.
5262         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
5263         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
5264         all platforms that have 'uselocale'.
5265         (gl_locale_name_thread_unsafe): New function, extracted from
5266         gl_locale_name_thread.
5267         (gl_locale_name_thread): Call struniq on all platforms that have
5268         'uselocale'.
5269         * tests/test-localename.c (test_locale_name_thread): Check that the
5270         resulting strings are permanently allocated.
5271         * modules/localename-tests (Depends-on): Add strdup.
5272
5273 2009-12-26  Bruno Haible  <bruno@clisp.org>
5274
5275         * tests/test-localename.c (categories): Fill in the strings.
5276
5277 2009-12-26  Jim Meyering  <meyering@redhat.com>
5278
5279         isdir: complete the removal of m4/isdir.m4
5280         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
5281
5282         isdir: clean up, since at least grep still uses it
5283         * lib/isdir.c: Include "isdir.h".
5284         (S_ISDIR): Remove now-unneeded definition.
5285         * modules/isdir (Files): Add lib/isdir.h.
5286         * lib/isdir.h: New file, with declaration.
5287         * m4/isdir.m4: Remove file -- unneeded.
5288
5289 2009-12-25  Bruno Haible  <bruno@clisp.org>
5290
5291         selinux-h: Make generated .h files standalone.
5292         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
5293         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
5294         * lib/se-selinux.in.h: Likewise.
5295         * modules/selinux-h (Depends-on): Add unused-parameter.
5296         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
5297         selinux/selinux.h and selinux/context.h.
5298         Suggested by Eric Blake.
5299
5300 2009-12-25  Bruno Haible  <bruno@clisp.org>
5301
5302         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
5303         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
5304         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
5305         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
5306         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
5307
5308 2009-12-24  Bruno Haible  <bruno@clisp.org>
5309
5310         openat: Fix warning.
5311         * lib/openat-proc.c: Include <unistd.h>.
5312
5313 2009-12-24  Bruno Haible  <bruno@clisp.org>
5314
5315         New module 'unused-parameter'.
5316         * build-aux/unused-parameter.h: New file, extracted from earlier
5317         gnulib-common.m4.
5318         * modules/unused-parameter: New file.
5319         * lib/unistr.h: Include unused-parameter.h.
5320         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
5321         _GL_UNUSED.
5322         * modules/unistr/base (Depends-on): Add unused-parameter.
5323
5324 2009-12-24  Bruno Haible  <bruno@clisp.org>
5325
5326         Add missing dependencies to 'extensions' module.
5327         * m4/extensions.m4: Add comment.
5328         * modules/accept4 (Depends-on): Add extensions.
5329         * modules/dup3 (Depends-on): Likewise.
5330         * modules/fcntl (Depends-on): Likewise.
5331         * modules/futimens (Depends-on): Likewise.
5332         * modules/mknod (Depends-on): Likewise.
5333         * modules/pipe2 (Depends-on): Likewise.
5334         * modules/stat-time (Depends-on): Likewise.
5335         * modules/strcasestr-simple (Depends-on): Likewise.
5336         * modules/strsignal (Depends-on): Likewise.
5337         * modules/utimensat (Depends-on): Likewise.
5338         * modules/localcharset (Depends-on): Likewise. Needed because of
5339         gl_FCNTL_O_FLAGS.
5340         * modules/wcrtomb (Depends-on): Likewise. Needed because of
5341         AC_TYPE_MBSTATE_T.
5342         * modules/wcsnrtombs (Depends-on): Likewise.
5343         * modules/wcsrtombs (Depends-on): Likewise.
5344
5345 2009-12-24  Bruno Haible  <bruno@clisp.org>
5346
5347         binary-io: Avoid gcc warning due to SET_BINARY.
5348         * lib/binary-io.h (SET_BINARY): Cast the result to void.
5349         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
5350
5351 2009-12-24  Bruno Haible  <bruno@clisp.org>
5352
5353         Avoid future namespace pollution on glibc systems.
5354         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
5355         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
5356         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
5357         glibc systems.
5358
5359 2009-12-24  Bruno Haible  <bruno@clisp.org>
5360
5361         Refactor common macros used in tests.
5362         * tests/macros.h: New file.
5363         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
5364         and/or <stdlib.h>, if appropriate.
5365         (ASSERT, SIZEOF): Remove macros.
5366         * tests/test-areadlink-with-size.c: Likewise.
5367         * tests/test-areadlinkat.c: Likewise.
5368         * tests/test-areadlinkat-with-size.c: Likewise.
5369         * tests/test-argmatch.c: Likewise.
5370         * tests/test-argv-iter.c: Likewise.
5371         * tests/test-array-mergesort.c: Likewise.
5372         * tests/test-array_list.c: Likewise.
5373         * tests/test-array_oset.c: Likewise.
5374         * tests/test-avltree_list.c: Likewise.
5375         * tests/test-avltree_oset.c: Likewise.
5376         * tests/test-avltreehash_list.c: Likewise.
5377         * tests/test-base64.c: Likewise.
5378         * tests/test-binary-io.c: Likewise.
5379         * tests/test-bitrotate.c: Likewise.
5380         * tests/test-btowc.c: Likewise.
5381         * tests/test-byteswap.c: Likewise.
5382         * tests/test-c-ctype.c: Likewise.
5383         * tests/test-c-stack.c: Likewise.
5384         * tests/test-c-strcasecmp.c: Likewise.
5385         * tests/test-c-strcasestr.c: Likewise.
5386         * tests/test-c-strncasecmp.c: Likewise.
5387         * tests/test-c-strstr.c: Likewise.
5388         * tests/test-canonicalize-lgpl.c: Likewise.
5389         * tests/test-canonicalize.c: Likewise.
5390         * tests/test-carray_list.c: Likewise.
5391         * tests/test-ceilf1.c: Likewise.
5392         * tests/test-ceilf2.c: Likewise.
5393         * tests/test-ceill.c: Likewise.
5394         * tests/test-chown.c: Likewise.
5395         * tests/test-cloexec.c: Likewise.
5396         * tests/test-copy-acl.c: Likewise.
5397         * tests/test-copy-file.c: Likewise.
5398         * tests/test-count-one-bits.c: Likewise.
5399         * tests/test-dprintf-posix.c: Likewise.
5400         * tests/test-dup2.c: Likewise.
5401         * tests/test-dup3.c: Likewise.
5402         * tests/test-duplocale.c: Likewise.
5403         * tests/test-fbufmode.c: Likewise.
5404         * tests/test-fchdir.c: Likewise.
5405         * tests/test-fchownat.c: Likewise.
5406         * tests/test-fcntl-safer.c: Likewise.
5407         * tests/test-fcntl.c: Likewise.
5408         * tests/test-fdopendir.c: Likewise.
5409         * tests/test-fdutimensat.c: Likewise.
5410         * tests/test-fflush2.c: Likewise.
5411         * tests/test-file-has-acl.c: Likewise.
5412         * tests/test-filevercmp.c: Likewise.
5413         * tests/test-flock.c: Likewise.
5414         * tests/test-floorf1.c: Likewise.
5415         * tests/test-floorf2.c: Likewise.
5416         * tests/test-floorl.c: Likewise.
5417         * tests/test-fnmatch.c: Likewise.
5418         * tests/test-fopen.h: Likewise.
5419         * tests/test-fpending.c: Likewise.
5420         * tests/test-fprintf-posix.c: Likewise.
5421         * tests/test-fpurge.c: Likewise.
5422         * tests/test-freadable.c: Likewise.
5423         * tests/test-freadahead.c: Likewise.
5424         * tests/test-freading.c: Likewise.
5425         * tests/test-freadptr.c: Likewise.
5426         * tests/test-freadptr2.c: Likewise.
5427         * tests/test-freadseek.c: Likewise.
5428         * tests/test-freopen.c: Likewise.
5429         * tests/test-frexp.c: Likewise.
5430         * tests/test-frexpl.c: Likewise.
5431         * tests/test-fseek.c: Likewise.
5432         * tests/test-fseeko.c: Likewise.
5433         * tests/test-fstatat.c: Likewise.
5434         * tests/test-fstrcmp.c: Likewise.
5435         * tests/test-fsync.c: Likewise.
5436         * tests/test-ftell.c: Likewise.
5437         * tests/test-ftello.c: Likewise.
5438         * tests/test-func.c: Likewise.
5439         * tests/test-futimens.c: Likewise.
5440         * tests/test-fwritable.c: Likewise.
5441         * tests/test-fwriting.c: Likewise.
5442         * tests/test-getcwd.c: Likewise.
5443         * tests/test-getdate.c: Likewise.
5444         * tests/test-getdelim.c: Likewise.
5445         * tests/test-getdtablesize.c: Likewise.
5446         * tests/test-getgroups.c: Likewise.
5447         * tests/test-getline.c: Likewise.
5448         * tests/test-getndelim2.c: Likewise.
5449         * tests/test-glob.c: Likewise.
5450         * tests/test-hash.c: Likewise.
5451         * tests/test-i-ring.c: Likewise.
5452         * tests/test-iconv-utf.c: Likewise.
5453         * tests/test-iconv.c: Likewise.
5454         * tests/test-idpriv-drop.c: Likewise.
5455         * tests/test-idpriv-droptemp.c: Likewise.
5456         * tests/test-inet_ntop.c: Likewise.
5457         * tests/test-inet_pton.c: Likewise.
5458         * tests/test-isblank.c: Likewise.
5459         * tests/test-isfinite.c: Likewise.
5460         * tests/test-isinf.c: Likewise.
5461         * tests/test-isnan.c: Likewise.
5462         * tests/test-isnand.h: Likewise.
5463         * tests/test-isnanf.h: Likewise.
5464         * tests/test-isnanl.h: Likewise.
5465         * tests/test-lchown.c: Likewise.
5466         * tests/test-ldexpl.c: Likewise.
5467         * tests/test-link.c: Likewise.
5468         * tests/test-linkat.c: Likewise.
5469         * tests/test-linked_list.c: Likewise.
5470         * tests/test-linkedhash_list.c: Likewise.
5471         * tests/test-localename.c: Likewise.
5472         * tests/test-lseek.c: Likewise.
5473         * tests/test-lstat.c: Likewise.
5474         * tests/test-mbmemcasecmp.c: Likewise.
5475         * tests/test-mbmemcasecoll.c: Likewise.
5476         * tests/test-mbrtowc.c: Likewise.
5477         * tests/test-mbscasecmp.c: Likewise.
5478         * tests/test-mbscasestr1.c: Likewise.
5479         * tests/test-mbscasestr2.c: Likewise.
5480         * tests/test-mbscasestr3.c: Likewise.
5481         * tests/test-mbscasestr4.c: Likewise.
5482         * tests/test-mbschr.c: Likewise.
5483         * tests/test-mbscspn.c: Likewise.
5484         * tests/test-mbsinit.c: Likewise.
5485         * tests/test-mbsncasecmp.c: Likewise.
5486         * tests/test-mbsnrtowcs.c: Likewise.
5487         * tests/test-mbspbrk.c: Likewise.
5488         * tests/test-mbspcasecmp.c: Likewise.
5489         * tests/test-mbsrchr.c: Likewise.
5490         * tests/test-mbsrtowcs.c: Likewise.
5491         * tests/test-mbsspn.c: Likewise.
5492         * tests/test-mbsstr1.c: Likewise.
5493         * tests/test-mbsstr2.c: Likewise.
5494         * tests/test-mbsstr3.c: Likewise.
5495         * tests/test-memchr.c: Likewise.
5496         * tests/test-memchr2.c: Likewise.
5497         * tests/test-memcmp.c: Likewise.
5498         * tests/test-memmem.c: Likewise.
5499         * tests/test-memrchr.c: Likewise.
5500         * tests/test-mkdir.c: Likewise.
5501         * tests/test-mkdirat.c: Likewise.
5502         * tests/test-mkfifo.c: Likewise.
5503         * tests/test-mkfifoat.c: Likewise.
5504         * tests/test-mknod.c: Likewise.
5505         * tests/test-nanosleep.c: Likewise.
5506         * tests/test-nl_langinfo.c: Likewise.
5507         * tests/test-obstack-printf.c: Likewise.
5508         * tests/test-open.c: Likewise.
5509         * tests/test-openat.c: Likewise.
5510         * tests/test-pipe-filter-gi1.c: Likewise.
5511         * tests/test-pipe-filter-gi2-main.c: Likewise.
5512         * tests/test-pipe-filter-ii1.c: Likewise.
5513         * tests/test-pipe-filter-ii2-main.c: Likewise.
5514         * tests/test-pipe2.c: Likewise.
5515         * tests/test-popen.h: Likewise.
5516         * tests/test-posixtm.c: Likewise.
5517         * tests/test-pread.c: Likewise.
5518         * tests/test-printf-frexp.c: Likewise.
5519         * tests/test-printf-frexpl.c: Likewise.
5520         * tests/test-printf-posix.c: Likewise.
5521         * tests/test-priv-set.c: Likewise.
5522         * tests/test-quotearg.c: Likewise.
5523         * tests/test-random_r.c: Likewise.
5524         * tests/test-rawmemchr.c: Likewise.
5525         * tests/test-rbtree_list.c: Likewise.
5526         * tests/test-rbtree_oset.c: Likewise.
5527         * tests/test-rbtreehash_list.c: Likewise.
5528         * tests/test-readlink.c: Likewise.
5529         * tests/test-remove.c: Likewise.
5530         * tests/test-rename.c: Likewise.
5531         * tests/test-renameat.c: Likewise.
5532         * tests/test-rmdir.c: Likewise.
5533         * tests/test-round1.c: Likewise.
5534         * tests/test-roundf1.c: Likewise.
5535         * tests/test-roundl.c: Likewise.
5536         * tests/test-safe-alloc.c: Likewise.
5537         * tests/test-sameacls.c: Likewise.
5538         * tests/test-set-mode-acl.c: Likewise.
5539         * tests/test-setenv.c: Likewise.
5540         * tests/test-sigaction.c: Likewise.
5541         * tests/test-signbit.c: Likewise.
5542         * tests/test-sleep.c: Likewise.
5543         * tests/test-snprintf-posix.c: Likewise.
5544         * tests/test-snprintf.c: Likewise.
5545         * tests/test-sprintf-posix.c: Likewise.
5546         * tests/test-stat-time.c: Likewise.
5547         * tests/test-stat.c: Likewise.
5548         * tests/test-strcasestr.c: Likewise.
5549         * tests/test-strchrnul.c: Likewise.
5550         * tests/test-strerror.c: Likewise.
5551         * tests/test-striconv.c: Likewise.
5552         * tests/test-striconveh.c: Likewise.
5553         * tests/test-striconveha.c: Likewise.
5554         * tests/test-strsignal.c: Likewise.
5555         * tests/test-strstr.c: Likewise.
5556         * tests/test-strtod.c: Likewise.
5557         * tests/test-strverscmp.c: Likewise.
5558         * tests/test-symlink.c: Likewise.
5559         * tests/test-symlinkat.c: Likewise.
5560         * tests/test-trunc1.c: Likewise.
5561         * tests/test-trunc2.c: Likewise.
5562         * tests/test-truncf1.c: Likewise.
5563         * tests/test-truncf2.c: Likewise.
5564         * tests/test-truncl.c: Likewise.
5565         * tests/test-uname.c: Likewise.
5566         * tests/test-unlink.c: Likewise.
5567         * tests/test-unlinkat.c: Likewise.
5568         * tests/test-unsetenv.c: Likewise.
5569         * tests/test-usleep.c: Likewise.
5570         * tests/test-utimens.c: Likewise.
5571         * tests/test-utimensat.c: Likewise.
5572         * tests/test-vasnprintf-posix.c: Likewise.
5573         * tests/test-vasnprintf-posix2.c: Likewise.
5574         * tests/test-vasnprintf.c: Likewise.
5575         * tests/test-vasprintf-posix.c: Likewise.
5576         * tests/test-vasprintf.c: Likewise.
5577         * tests/test-vdprintf-posix.c: Likewise.
5578         * tests/test-vfprintf-posix.c: Likewise.
5579         * tests/test-vprintf-posix.c: Likewise.
5580         * tests/test-vsnprintf-posix.c: Likewise.
5581         * tests/test-vsnprintf.c: Likewise.
5582         * tests/test-vsprintf-posix.c: Likewise.
5583         * tests/test-wcrtomb.c: Likewise.
5584         * tests/test-wcsnrtombs.c: Likewise.
5585         * tests/test-wcsrtombs.c: Likewise.
5586         * tests/test-wctype.c: Likewise.
5587         * tests/test-wcwidth.c: Likewise.
5588         * tests/test-xfprintf-posix.c: Likewise.
5589         * tests/test-xmemdup0.c: Likewise.
5590         * tests/test-xprintf-posix.c: Likewise.
5591         * tests/test-xvasprintf.c: Likewise.
5592         * tests/unicase/test-locale-language.c: Likewise.
5593         * tests/unicase/test-mapping-part1.h: Likewise.
5594         * tests/unicase/test-predicate-part1.h: Likewise.
5595         * tests/unicase/test-u8-casecmp.c: Likewise.
5596         * tests/unicase/test-u8-casecoll.c: Likewise.
5597         * tests/unicase/test-u8-casefold.c: Likewise.
5598         * tests/unicase/test-u8-is-cased.c: Likewise.
5599         * tests/unicase/test-u8-is-casefolded.c: Likewise.
5600         * tests/unicase/test-u8-is-lowercase.c: Likewise.
5601         * tests/unicase/test-u8-is-titlecase.c: Likewise.
5602         * tests/unicase/test-u8-is-uppercase.c: Likewise.
5603         * tests/unicase/test-u8-tolower.c: Likewise.
5604         * tests/unicase/test-u8-totitle.c: Likewise.
5605         * tests/unicase/test-u8-toupper.c: Likewise.
5606         * tests/unicase/test-u16-casecmp.c: Likewise.
5607         * tests/unicase/test-u16-casecoll.c: Likewise.
5608         * tests/unicase/test-u16-casefold.c: Likewise.
5609         * tests/unicase/test-u16-is-cased.c: Likewise.
5610         * tests/unicase/test-u16-is-casefolded.c: Likewise.
5611         * tests/unicase/test-u16-is-lowercase.c: Likewise.
5612         * tests/unicase/test-u16-is-titlecase.c: Likewise.
5613         * tests/unicase/test-u16-is-uppercase.c: Likewise.
5614         * tests/unicase/test-u16-tolower.c: Likewise.
5615         * tests/unicase/test-u16-totitle.c: Likewise.
5616         * tests/unicase/test-u16-toupper.c: Likewise.
5617         * tests/unicase/test-u32-casecmp.c: Likewise.
5618         * tests/unicase/test-u32-casecoll.c: Likewise.
5619         * tests/unicase/test-u32-casefold.c: Likewise.
5620         * tests/unicase/test-u32-is-cased.c: Likewise.
5621         * tests/unicase/test-u32-is-casefolded.c: Likewise.
5622         * tests/unicase/test-u32-is-lowercase.c: Likewise.
5623         * tests/unicase/test-u32-is-titlecase.c: Likewise.
5624         * tests/unicase/test-u32-is-uppercase.c: Likewise.
5625         * tests/unicase/test-u32-tolower.c: Likewise.
5626         * tests/unicase/test-u32-totitle.c: Likewise.
5627         * tests/unicase/test-u32-toupper.c: Likewise.
5628         * tests/unicase/test-ulc-casecmp.c: Likewise.
5629         * tests/unicase/test-ulc-casecoll.c: Likewise.
5630         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
5631         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
5632         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
5633         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
5634         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
5635         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
5636         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
5637         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
5638         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
5639         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
5640         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
5641         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
5642         * tests/unictype/test-bidi_byname.c: Likewise.
5643         * tests/unictype/test-bidi_name.c: Likewise.
5644         * tests/unictype/test-bidi_of.c: Likewise.
5645         * tests/unictype/test-bidi_test.c: Likewise.
5646         * tests/unictype/test-block_list.c: Likewise.
5647         * tests/unictype/test-block_of.c: Likewise.
5648         * tests/unictype/test-block_test.c: Likewise.
5649         * tests/unictype/test-categ_and.c: Likewise.
5650         * tests/unictype/test-categ_and_not.c: Likewise.
5651         * tests/unictype/test-categ_byname.c: Likewise.
5652         * tests/unictype/test-categ_name.c: Likewise.
5653         * tests/unictype/test-categ_none.c: Likewise.
5654         * tests/unictype/test-categ_of.c: Likewise.
5655         * tests/unictype/test-categ_or.c: Likewise.
5656         * tests/unictype/test-categ_test_withtable.c: Likewise.
5657         * tests/unictype/test-combining.c: Likewise.
5658         * tests/unictype/test-decdigit.c: Likewise.
5659         * tests/unictype/test-digit.c: Likewise.
5660         * tests/unictype/test-mirror.c: Likewise.
5661         * tests/unictype/test-numeric.c: Likewise.
5662         * tests/unictype/test-pr_byname.c: Likewise.
5663         * tests/unictype/test-pr_test.c: Likewise.
5664         * tests/unictype/test-predicate-part1.h: Likewise.
5665         * tests/unictype/test-scripts.c: Likewise.
5666         * tests/unictype/test-sy_c_ident.c: Likewise.
5667         * tests/unictype/test-sy_java_ident.c: Likewise.
5668         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
5669         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
5670         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
5671         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
5672         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
5673         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
5674         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
5675         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
5676         * tests/uninorm/test-canonical-decomposition.c: Likewise.
5677         * tests/uninorm/test-compat-decomposition.c: Likewise.
5678         * tests/uninorm/test-composition.c: Likewise.
5679         * tests/uninorm/test-decomposing-form.c: Likewise.
5680         * tests/uninorm/test-decomposition.c: Likewise.
5681         * tests/uninorm/test-u8-nfc.c: Likewise.
5682         * tests/uninorm/test-u8-nfd.c: Likewise.
5683         * tests/uninorm/test-u8-nfkc.c: Likewise.
5684         * tests/uninorm/test-u8-nfkd.c: Likewise.
5685         * tests/uninorm/test-u8-normcmp.c: Likewise.
5686         * tests/uninorm/test-u8-normcoll.c: Likewise.
5687         * tests/uninorm/test-u16-nfc.c: Likewise.
5688         * tests/uninorm/test-u16-nfd.c: Likewise.
5689         * tests/uninorm/test-u16-nfkc.c: Likewise.
5690         * tests/uninorm/test-u16-nfkd.c: Likewise.
5691         * tests/uninorm/test-u16-normcmp.c: Likewise.
5692         * tests/uninorm/test-u16-normcoll.c: Likewise.
5693         * tests/uninorm/test-u32-nfc.c: Likewise.
5694         * tests/uninorm/test-u32-nfd.c: Likewise.
5695         * tests/uninorm/test-u32-nfkc.c: Likewise.
5696         * tests/uninorm/test-u32-nfkd.c: Likewise.
5697         * tests/uninorm/test-u32-normalize-big.c: Likewise.
5698         * tests/uninorm/test-u32-normcmp.c: Likewise.
5699         * tests/uninorm/test-u32-normcoll.c: Likewise.
5700         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
5701         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
5702         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
5703         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
5704         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
5705         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
5706         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
5707         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
5708         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
5709         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
5710         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
5711         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
5712         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
5713         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
5714         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
5715         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
5716         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
5717         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
5718         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
5719         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
5720         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
5721         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
5722         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
5723         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
5724         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
5725         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
5726         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
5727         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
5728         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
5729         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
5730         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
5731         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
5732         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
5733         * tests/uniwidth/test-u8-strwidth.c: Likewise.
5734         * tests/uniwidth/test-u8-width.c: Likewise.
5735         * tests/uniwidth/test-u16-strwidth.c: Likewise.
5736         * tests/uniwidth/test-u16-width.c: Likewise.
5737         * tests/uniwidth/test-u32-strwidth.c: Likewise.
5738         * tests/uniwidth/test-u32-width.c: Likewise.
5739         * tests/uniwidth/test-uc_width.c: Likewise.
5740         * tests/uniwidth/test-uc_width2.c: Likewise.
5741         * modules/acl-tests (Files): Add tests/macros.h.
5742         * modules/areadlink-tests (Files): Likewise.
5743         * modules/areadlink-with-size-tests (Files): Likewise.
5744         * modules/areadlinkat-tests (Files): Likewise.
5745         * modules/areadlinkat-with-size-tests (Files): Likewise.
5746         * modules/argmatch-tests (Files): Likewise.
5747         * modules/argv-iter-tests (Files): Likewise.
5748         * modules/array-list-tests (Files): Likewise.
5749         * modules/array-mergesort-tests (Files): Likewise.
5750         * modules/array-oset-tests (Files): Likewise.
5751         * modules/avltree-list-tests (Files): Likewise.
5752         * modules/avltree-oset-tests (Files): Likewise.
5753         * modules/avltreehash-list-tests (Files): Likewise.
5754         * modules/base64-tests (Files): Likewise.
5755         * modules/binary-io-tests (Files): Likewise.
5756         * modules/bitrotate-tests (Files): Likewise.
5757         * modules/btowc-tests (Files): Likewise.
5758         * modules/byteswap-tests (Files): Likewise.
5759         * modules/c-ctype-tests (Files): Likewise.
5760         * modules/c-stack-tests (Files): Likewise.
5761         * modules/c-strcase-tests (Files): Likewise.
5762         * modules/c-strcasestr-tests (Files): Likewise.
5763         * modules/c-strstr-tests (Files): Likewise.
5764         * modules/canonicalize-lgpl-tests (Files): Likewise.
5765         * modules/canonicalize-tests (Files): Likewise.
5766         * modules/carray-list-tests (Files): Likewise.
5767         * modules/ceilf-tests (Files): Likewise.
5768         * modules/ceill-tests (Files): Likewise.
5769         * modules/chown-tests (Files): Likewise.
5770         * modules/cloexec-tests (Files): Likewise.
5771         * modules/copy-file-tests (Files): Likewise.
5772         * modules/count-one-bits-tests (Files): Likewise.
5773         * modules/dprintf-posix-tests (Files): Likewise.
5774         * modules/dup2-tests (Files): Likewise.
5775         * modules/dup3-tests (Files): Likewise.
5776         * modules/duplocale-tests (Files): Likewise.
5777         * modules/fbufmode-tests (Files): Likewise.
5778         * modules/fchdir-tests (Files): Likewise.
5779         * modules/fcntl-safer-tests (Files): Likewise.
5780         * modules/fcntl-tests (Files): Likewise.
5781         * modules/fdopendir-tests (Files): Likewise.
5782         * modules/fdutimensat-tests (Files): Likewise.
5783         * modules/fflush-tests (Files): Likewise.
5784         * modules/filevercmp-tests (Files): Likewise.
5785         * modules/flock-tests (Files): Likewise.
5786         * modules/floorf-tests (Files): Likewise.
5787         * modules/floorl-tests (Files): Likewise.
5788         * modules/fnmatch-tests (Files): Likewise.
5789         * modules/fopen-safer-tests (Files): Likewise.
5790         * modules/fopen-tests (Files): Likewise.
5791         * modules/fpending-tests (Files): Likewise.
5792         * modules/fprintf-posix-tests (Files): Likewise.
5793         * modules/fpurge-tests (Files): Likewise.
5794         * modules/freadable-tests (Files): Likewise.
5795         * modules/freadahead-tests (Files): Likewise.
5796         * modules/freading-tests (Files): Likewise.
5797         * modules/freadptr-tests (Files): Likewise.
5798         * modules/freadseek-tests (Files): Likewise.
5799         * modules/freopen-tests (Files): Likewise.
5800         * modules/frexp-nolibm-tests (Files): Likewise.
5801         * modules/frexp-tests (Files): Likewise.
5802         * modules/frexpl-nolibm-tests (Files): Likewise.
5803         * modules/frexpl-tests (Files): Likewise.
5804         * modules/fseek-tests (Files): Likewise.
5805         * modules/fseeko-tests (Files): Likewise.
5806         * modules/fstrcmp-tests (Files): Likewise.
5807         * modules/fsync-tests (Files): Likewise.
5808         * modules/ftell-tests (Files): Likewise.
5809         * modules/ftello-tests (Files): Likewise.
5810         * modules/func-tests (Files): Likewise.
5811         * modules/futimens-tests (Files): Likewise.
5812         * modules/fwritable-tests (Files): Likewise.
5813         * modules/fwriting-tests (Files): Likewise.
5814         * modules/getcwd-tests (Files): Likewise.
5815         * modules/getdate-tests (Files): Likewise.
5816         * modules/getdelim-tests (Files): Likewise.
5817         * modules/getdtablesize-tests (Files): Likewise.
5818         * modules/getgroups-tests (Files): Likewise.
5819         * modules/getline-tests (Files): Likewise.
5820         * modules/getndelim2-tests (Files): Likewise.
5821         * modules/glob-tests (Files): Likewise.
5822         * modules/hash-tests (Files): Likewise.
5823         * modules/i-ring-tests (Files): Likewise.
5824         * modules/iconv-tests (Files): Likewise.
5825         * modules/iconv_open-utf-tests (Files): Likewise.
5826         * modules/idpriv-drop-tests (Files): Likewise.
5827         * modules/idpriv-droptemp-tests (Files): Likewise.
5828         * modules/inet_ntop-tests (Files): Likewise.
5829         * modules/inet_pton-tests (Files): Likewise.
5830         * modules/isblank-tests (Files): Likewise.
5831         * modules/isfinite-tests (Files): Likewise.
5832         * modules/isinf-tests (Files): Likewise.
5833         * modules/isnan-tests (Files): Likewise.
5834         * modules/isnand-nolibm-tests (Files): Likewise.
5835         * modules/isnand-tests (Files): Likewise.
5836         * modules/isnanf-nolibm-tests (Files): Likewise.
5837         * modules/isnanf-tests (Files): Likewise.
5838         * modules/isnanl-nolibm-tests (Files): Likewise.
5839         * modules/isnanl-tests (Files): Likewise.
5840         * modules/lchown-tests (Files): Likewise.
5841         * modules/ldexpl-tests (Files): Likewise.
5842         * modules/link-tests (Files): Likewise.
5843         * modules/linkat-tests (Files): Likewise.
5844         * modules/linked-list-tests (Files): Likewise.
5845         * modules/linkedhash-list-tests (Files): Likewise.
5846         * modules/localename-tests (Files): Likewise.
5847         * modules/lseek-tests (Files): Likewise.
5848         * modules/lstat-tests (Files): Likewise.
5849         * modules/mbmemcasecmp-tests (Files): Likewise.
5850         * modules/mbmemcasecoll-tests (Files): Likewise.
5851         * modules/mbrtowc-tests (Files): Likewise.
5852         * modules/mbscasecmp-tests (Files): Likewise.
5853         * modules/mbscasestr-tests (Files): Likewise.
5854         * modules/mbschr-tests (Files): Likewise.
5855         * modules/mbscspn-tests (Files): Likewise.
5856         * modules/mbsinit-tests (Files): Likewise.
5857         * modules/mbsncasecmp-tests (Files): Likewise.
5858         * modules/mbsnrtowcs-tests (Files): Likewise.
5859         * modules/mbspbrk-tests (Files): Likewise.
5860         * modules/mbspcasecmp-tests (Files): Likewise.
5861         * modules/mbsrchr-tests (Files): Likewise.
5862         * modules/mbsrtowcs-tests (Files): Likewise.
5863         * modules/mbsspn-tests (Files): Likewise.
5864         * modules/mbsstr-tests (Files): Likewise.
5865         * modules/memchr-tests (Files): Likewise.
5866         * modules/memchr2-tests (Files): Likewise.
5867         * modules/memcmp-tests (Files): Likewise.
5868         * modules/memmem-tests (Files): Likewise.
5869         * modules/memrchr-tests (Files): Likewise.
5870         * modules/mkdir-tests (Files): Likewise.
5871         * modules/mkfifo-tests (Files): Likewise.
5872         * modules/mkfifoat-tests (Files): Likewise.
5873         * modules/mknod-tests (Files): Likewise.
5874         * modules/nanosleep-tests (Files): Likewise.
5875         * modules/nl_langinfo-tests (Files): Likewise.
5876         * modules/obstack-printf-tests (Files): Likewise.
5877         * modules/open-tests (Files): Likewise.
5878         * modules/openat-tests (Files): Likewise.
5879         * modules/pipe-filter-gi-tests (Files): Likewise.
5880         * modules/pipe-filter-ii-tests (Files): Likewise.
5881         * modules/pipe2-tests (Files): Likewise.
5882         * modules/popen-safer-tests (Files): Likewise.
5883         * modules/popen-tests (Files): Likewise.
5884         * modules/posixtm-tests (Files): Likewise.
5885         * modules/pread-tests (Files): Likewise.
5886         * modules/printf-frexp-tests (Files): Likewise.
5887         * modules/printf-frexpl-tests (Files): Likewise.
5888         * modules/printf-posix-tests (Files): Likewise.
5889         * modules/priv-set-tests (Files): Likewise.
5890         * modules/quotearg-tests (Files): Likewise.
5891         * modules/random_r-tests (Files): Likewise.
5892         * modules/rawmemchr-tests (Files): Likewise.
5893         * modules/rbtree-list-tests (Files): Likewise.
5894         * modules/rbtree-oset-tests (Files): Likewise.
5895         * modules/rbtreehash-list-tests (Files): Likewise.
5896         * modules/readlink-tests (Files): Likewise.
5897         * modules/remove-tests (Files): Likewise.
5898         * modules/rename-tests (Files): Likewise.
5899         * modules/renameat-tests (Files): Likewise.
5900         * modules/rmdir-tests (Files): Likewise.
5901         * modules/round-tests (Files): Likewise.
5902         * modules/roundf-tests (Files): Likewise.
5903         * modules/roundl-tests (Files): Likewise.
5904         * modules/safe-alloc-tests (Files): Likewise.
5905         * modules/setenv-tests (Files): Likewise.
5906         * modules/sigaction-tests (Files): Likewise.
5907         * modules/signbit-tests (Files): Likewise.
5908         * modules/sleep-tests (Files): Likewise.
5909         * modules/snprintf-posix-tests (Files): Likewise.
5910         * modules/snprintf-tests (Files): Likewise.
5911         * modules/sprintf-posix-tests (Files): Likewise.
5912         * modules/stat-tests (Files): Likewise.
5913         * modules/stat-time-tests (Files): Likewise.
5914         * modules/strcasestr-tests (Files): Likewise.
5915         * modules/strchrnul-tests (Files): Likewise.
5916         * modules/strerror-tests (Files): Likewise.
5917         * modules/striconv-tests (Files): Likewise.
5918         * modules/striconveh-tests (Files): Likewise.
5919         * modules/striconveha-tests (Files): Likewise.
5920         * modules/strsignal-tests (Files): Likewise.
5921         * modules/strstr-tests (Files): Likewise.
5922         * modules/strtod-tests (Files): Likewise.
5923         * modules/strverscmp-tests (Files): Likewise.
5924         * modules/symlink-tests (Files): Likewise.
5925         * modules/symlinkat-tests (Files): Likewise.
5926         * modules/trunc-tests (Files): Likewise.
5927         * modules/truncf-tests (Files): Likewise.
5928         * modules/truncl-tests (Files): Likewise.
5929         * modules/uname-tests (Files): Likewise.
5930         * modules/unicase/cased-tests (Files): Likewise.
5931         * modules/unicase/ignorable-tests (Files): Likewise.
5932         * modules/unicase/locale-language-tests (Files): Likewise.
5933         * modules/unicase/tolower-tests (Files): Likewise.
5934         * modules/unicase/totitle-tests (Files): Likewise.
5935         * modules/unicase/toupper-tests (Files): Likewise.
5936         * modules/unicase/u8-casecmp-tests (Files): Likewise.
5937         * modules/unicase/u8-casecoll-tests (Files): Likewise.
5938         * modules/unicase/u8-casefold-tests (Files): Likewise.
5939         * modules/unicase/u8-is-cased-tests (Files): Likewise.
5940         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
5941         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
5942         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
5943         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
5944         * modules/unicase/u8-tolower-tests (Files): Likewise.
5945         * modules/unicase/u8-totitle-tests (Files): Likewise.
5946         * modules/unicase/u8-toupper-tests (Files): Likewise.
5947         * modules/unicase/u16-casecmp-tests (Files): Likewise.
5948         * modules/unicase/u16-casecoll-tests (Files): Likewise.
5949         * modules/unicase/u16-casefold-tests (Files): Likewise.
5950         * modules/unicase/u16-is-cased-tests (Files): Likewise.
5951         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
5952         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
5953         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
5954         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
5955         * modules/unicase/u16-tolower-tests (Files): Likewise.
5956         * modules/unicase/u16-totitle-tests (Files): Likewise.
5957         * modules/unicase/u16-toupper-tests (Files): Likewise.
5958         * modules/unicase/u32-casecmp-tests (Files): Likewise.
5959         * modules/unicase/u32-casecoll-tests (Files): Likewise.
5960         * modules/unicase/u32-casefold-tests (Files): Likewise.
5961         * modules/unicase/u32-is-cased-tests (Files): Likewise.
5962         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
5963         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
5964         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
5965         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
5966         * modules/unicase/u32-tolower-tests (Files): Likewise.
5967         * modules/unicase/u32-totitle-tests (Files): Likewise.
5968         * modules/unicase/u32-toupper-tests (Files): Likewise.
5969         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
5970         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
5971         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
5972         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
5973         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
5974         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
5975         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
5976         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
5977         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
5978         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
5979         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
5980         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
5981         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
5982         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
5983         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
5984         * modules/unictype/bidicategory-name-tests (Files): Likewise.
5985         * modules/unictype/bidicategory-of-tests (Files): Likewise.
5986         * modules/unictype/bidicategory-test-tests (Files): Likewise.
5987         * modules/unictype/block-list-tests (Files): Likewise.
5988         * modules/unictype/block-of-tests (Files): Likewise.
5989         * modules/unictype/block-test-tests (Files): Likewise.
5990         * modules/unictype/category-C-tests (Files): Likewise.
5991         * modules/unictype/category-Cc-tests (Files): Likewise.
5992         * modules/unictype/category-Cf-tests (Files): Likewise.
5993         * modules/unictype/category-Cn-tests (Files): Likewise.
5994         * modules/unictype/category-Co-tests (Files): Likewise.
5995         * modules/unictype/category-Cs-tests (Files): Likewise.
5996         * modules/unictype/category-L-tests (Files): Likewise.
5997         * modules/unictype/category-Ll-tests (Files): Likewise.
5998         * modules/unictype/category-Lm-tests (Files): Likewise.
5999         * modules/unictype/category-Lo-tests (Files): Likewise.
6000         * modules/unictype/category-Lt-tests (Files): Likewise.
6001         * modules/unictype/category-Lu-tests (Files): Likewise.
6002         * modules/unictype/category-M-tests (Files): Likewise.
6003         * modules/unictype/category-Mc-tests (Files): Likewise.
6004         * modules/unictype/category-Me-tests (Files): Likewise.
6005         * modules/unictype/category-Mn-tests (Files): Likewise.
6006         * modules/unictype/category-N-tests (Files): Likewise.
6007         * modules/unictype/category-Nd-tests (Files): Likewise.
6008         * modules/unictype/category-Nl-tests (Files): Likewise.
6009         * modules/unictype/category-No-tests (Files): Likewise.
6010         * modules/unictype/category-P-tests (Files): Likewise.
6011         * modules/unictype/category-Pc-tests (Files): Likewise.
6012         * modules/unictype/category-Pd-tests (Files): Likewise.
6013         * modules/unictype/category-Pe-tests (Files): Likewise.
6014         * modules/unictype/category-Pf-tests (Files): Likewise.
6015         * modules/unictype/category-Pi-tests (Files): Likewise.
6016         * modules/unictype/category-Po-tests (Files): Likewise.
6017         * modules/unictype/category-Ps-tests (Files): Likewise.
6018         * modules/unictype/category-S-tests (Files): Likewise.
6019         * modules/unictype/category-Sc-tests (Files): Likewise.
6020         * modules/unictype/category-Sk-tests (Files): Likewise.
6021         * modules/unictype/category-Sm-tests (Files): Likewise.
6022         * modules/unictype/category-So-tests (Files): Likewise.
6023         * modules/unictype/category-Z-tests (Files): Likewise.
6024         * modules/unictype/category-Zl-tests (Files): Likewise.
6025         * modules/unictype/category-Zp-tests (Files): Likewise.
6026         * modules/unictype/category-Zs-tests (Files): Likewise.
6027         * modules/unictype/category-and-not-tests (Files): Likewise.
6028         * modules/unictype/category-and-tests (Files): Likewise.
6029         * modules/unictype/category-byname-tests (Files): Likewise.
6030         * modules/unictype/category-name-tests (Files): Likewise.
6031         * modules/unictype/category-none-tests (Files): Likewise.
6032         * modules/unictype/category-of-tests (Files): Likewise.
6033         * modules/unictype/category-or-tests (Files): Likewise.
6034         * modules/unictype/category-test-withtable-tests (Files): Likewise.
6035         * modules/unictype/combining-class-tests (Files): Likewise.
6036         * modules/unictype/ctype-alnum-tests (Files): Likewise.
6037         * modules/unictype/ctype-alpha-tests (Files): Likewise.
6038         * modules/unictype/ctype-blank-tests (Files): Likewise.
6039         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
6040         * modules/unictype/ctype-digit-tests (Files): Likewise.
6041         * modules/unictype/ctype-graph-tests (Files): Likewise.
6042         * modules/unictype/ctype-lower-tests (Files): Likewise.
6043         * modules/unictype/ctype-print-tests (Files): Likewise.
6044         * modules/unictype/ctype-punct-tests (Files): Likewise.
6045         * modules/unictype/ctype-space-tests (Files): Likewise.
6046         * modules/unictype/ctype-upper-tests (Files): Likewise.
6047         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
6048         * modules/unictype/decimal-digit-tests (Files): Likewise.
6049         * modules/unictype/digit-tests (Files): Likewise.
6050         * modules/unictype/mirror-tests (Files): Likewise.
6051         * modules/unictype/numeric-tests (Files): Likewise.
6052         * modules/unictype/property-alphabetic-tests (Files): Likewise.
6053         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
6054         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
6055         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
6056         Likewise.
6057         * modules/unictype/property-bidi-block-separator-tests (Files):
6058         Likewise.
6059         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
6060         Likewise.
6061         * modules/unictype/property-bidi-common-separator-tests (Files):
6062         Likewise.
6063         * modules/unictype/property-bidi-control-tests (Files): Likewise.
6064         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
6065         Likewise.
6066         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
6067         Likewise.
6068         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
6069         Likewise.
6070         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
6071         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
6072         Likewise.
6073         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
6074         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
6075         Likewise.
6076         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
6077         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
6078         * modules/unictype/property-bidi-segment-separator-tests (Files):
6079         Likewise.
6080         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
6081         * modules/unictype/property-byname-tests (Files): Likewise.
6082         * modules/unictype/property-combining-tests (Files): Likewise.
6083         * modules/unictype/property-composite-tests (Files): Likewise.
6084         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
6085         * modules/unictype/property-dash-tests (Files): Likewise.
6086         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
6087         * modules/unictype/property-default-ignorable-code-point-tests (Files):
6088         Likewise.
6089         * modules/unictype/property-deprecated-tests (Files): Likewise.
6090         * modules/unictype/property-diacritic-tests (Files): Likewise.
6091         * modules/unictype/property-extender-tests (Files): Likewise.
6092         * modules/unictype/property-format-control-tests (Files): Likewise.
6093         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
6094         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
6095         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
6096         * modules/unictype/property-hex-digit-tests (Files): Likewise.
6097         * modules/unictype/property-hyphen-tests (Files): Likewise.
6098         * modules/unictype/property-id-continue-tests (Files): Likewise.
6099         * modules/unictype/property-id-start-tests (Files): Likewise.
6100         * modules/unictype/property-ideographic-tests (Files): Likewise.
6101         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
6102         * modules/unictype/property-ids-trinary-operator-tests (Files):
6103         Likewise.
6104         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
6105         * modules/unictype/property-iso-control-tests (Files): Likewise.
6106         * modules/unictype/property-join-control-tests (Files): Likewise.
6107         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
6108         * modules/unictype/property-line-separator-tests (Files): Likewise.
6109         * modules/unictype/property-logical-order-exception-tests (Files):
6110         Likewise.
6111         * modules/unictype/property-lowercase-tests (Files): Likewise.
6112         * modules/unictype/property-math-tests (Files): Likewise.
6113         * modules/unictype/property-non-break-tests (Files): Likewise.
6114         * modules/unictype/property-not-a-character-tests (Files): Likewise.
6115         * modules/unictype/property-numeric-tests (Files): Likewise.
6116         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
6117         * modules/unictype/property-other-default-ignorable-code-point-tests
6118         (Files): Likewise.
6119         * modules/unictype/property-other-grapheme-extend-tests (Files):
6120         Likewise.
6121         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
6122         * modules/unictype/property-other-id-start-tests (Files): Likewise.
6123         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
6124         * modules/unictype/property-other-math-tests (Files): Likewise.
6125         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
6126         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
6127         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
6128         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
6129         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
6130         * modules/unictype/property-private-use-tests (Files): Likewise.
6131         * modules/unictype/property-punctuation-tests (Files): Likewise.
6132         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
6133         * modules/unictype/property-radical-tests (Files): Likewise.
6134         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
6135         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
6136         * modules/unictype/property-space-tests (Files): Likewise.
6137         * modules/unictype/property-terminal-punctuation-tests (Files):
6138         Likewise.
6139         * modules/unictype/property-test-tests (Files): Likewise.
6140         * modules/unictype/property-titlecase-tests (Files): Likewise.
6141         * modules/unictype/property-unassigned-code-value-tests (Files):
6142         Likewise.
6143         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
6144         * modules/unictype/property-uppercase-tests (Files): Likewise.
6145         * modules/unictype/property-variation-selector-tests (Files): Likewise.
6146         * modules/unictype/property-white-space-tests (Files): Likewise.
6147         * modules/unictype/property-xid-continue-tests (Files): Likewise.
6148         * modules/unictype/property-xid-start-tests (Files): Likewise.
6149         * modules/unictype/property-zero-width-tests (Files): Likewise.
6150         * modules/unictype/scripts-tests (Files): Likewise.
6151         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
6152         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
6153         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
6154         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
6155         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
6156         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
6157         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
6158         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
6159         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
6160         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
6161         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
6162         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
6163         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
6164         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
6165         * modules/uninorm/composition-tests (Files): Likewise.
6166         * modules/uninorm/decomposing-form-tests (Files): Likewise.
6167         * modules/uninorm/decomposition-tests (Files): Likewise.
6168         * modules/uninorm/filter-tests (Files): Likewise.
6169         * modules/uninorm/nfc-tests (Files): Likewise.
6170         * modules/uninorm/nfd-tests (Files): Likewise.
6171         * modules/uninorm/nfkc-tests (Files): Likewise.
6172         * modules/uninorm/nfkd-tests (Files): Likewise.
6173         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
6174         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
6175         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
6176         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
6177         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
6178         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
6179         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
6180         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
6181         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
6182         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
6183         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
6184         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
6185         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
6186         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
6187         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
6188         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
6189         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
6190         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
6191         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
6192         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
6193         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
6194         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
6195         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
6196         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
6197         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
6198         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
6199         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
6200         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
6201         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
6202         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
6203         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
6204         * modules/uniwidth/u8-width-tests (Files): Likewise.
6205         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
6206         * modules/uniwidth/u16-width-tests (Files): Likewise.
6207         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
6208         * modules/uniwidth/u32-width-tests (Files): Likewise.
6209         * modules/uniwidth/width-tests (Files): Likewise.
6210         * modules/unlink-tests (Files): Likewise.
6211         * modules/unsetenv-tests (Files): Likewise.
6212         * modules/usleep-tests (Files): Likewise.
6213         * modules/utimens-tests (Files): Likewise.
6214         * modules/utimensat-tests (Files): Likewise.
6215         * modules/vasnprintf-posix-tests (Files): Likewise.
6216         * modules/vasnprintf-tests (Files): Likewise.
6217         * modules/vasprintf-posix-tests (Files): Likewise.
6218         * modules/vasprintf-tests (Files): Likewise.
6219         * modules/vdprintf-posix-tests (Files): Likewise.
6220         * modules/vfprintf-posix-tests (Files): Likewise.
6221         * modules/vprintf-posix-tests (Files): Likewise.
6222         * modules/vsnprintf-posix-tests (Files): Likewise.
6223         * modules/vsnprintf-tests (Files): Likewise.
6224         * modules/vsprintf-posix-tests (Files): Likewise.
6225         * modules/wcrtomb-tests (Files): Likewise.
6226         * modules/wcsnrtombs-tests (Files): Likewise.
6227         * modules/wcsrtombs-tests (Files): Likewise.
6228         * modules/wctype-tests (Files): Likewise.
6229         * modules/wcwidth-tests (Files): Likewise.
6230         * modules/xmemdup0-tests (Files): Likewise.
6231         * modules/xprintf-posix-tests (Files): Likewise.
6232         * modules/xvasprintf-tests (Files): Likewise.
6233
6234 2009-12-24  Eric Blake  <ebb9@byu.net>
6235
6236         test-nanosleep: fix typo
6237         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
6238         patch.
6239         Reported by Bruno Haible.
6240
6241 2009-12-24  Bruno Haible  <bruno@clisp.org>
6242
6243         Reduce namespace pollution on glibc systems.
6244         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
6245         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
6246         systems.
6247         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
6248         <getopt.h> on glibc systems.
6249         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
6250         systems.
6251         * lib/fcntl.c: Include <unistd.h> here instead.
6252
6253 2009-12-24  Bruno Haible  <bruno@clisp.org>
6254
6255         * lib/stdlib.in.h (includes): Fix typo in today's commit.
6256
6257 2009-12-24  Eric Blake  <ebb9@byu.net>
6258
6259         tests: add signature checks
6260         * tests/signature.h (SIGNATURE_CHECK): New file.
6261         * modules/atexit-tests (Files): Use it.
6262         * modules/btowc-tests (Files): Likewise.
6263         * modules/canonicalize-lgpl-tests (Files): Likewise.
6264         * modules/ceilf-tests (Files): Likewise.
6265         * modules/ceill-tests (Files): Likewise.
6266         * modules/chown-tests (Files): Likewise.
6267         * modules/dprintf-posix-tests (Files): Likewise.
6268         * modules/dup2-tests (Files): Likewise.
6269         * modules/dup3-tests (Files): Likewise.
6270         * modules/duplocale-tests (Files): Likewise.
6271         * modules/fchdir-tests (Files): Likewise.
6272         * modules/fcntl-tests (Files): Likewise.
6273         * modules/fdopendir-tests (Files): Likewise.
6274         * modules/fflush-tests (Files): Likewise.
6275         * modules/flock-tests (Files): Likewise.
6276         * modules/floorf-tests (Files): Likewise.
6277         * modules/floorl-tests (Files): Likewise.
6278         * modules/fnmatch-tests (Files): Likewise.
6279         * modules/fopen-tests (Files): Likewise.
6280         * modules/fprintf-posix-tests (Files): Likewise.
6281         * modules/freopen-tests (Files): Likewise.
6282         * modules/frexp-nolibm-tests (Files): Likewise.
6283         * modules/frexp-tests (Files): Likewise.
6284         * modules/frexpl-nolibm-tests (Files): Likewise.
6285         * modules/frexpl-tests (Files): Likewise.
6286         * modules/fseek-tests (Files): Likewise.
6287         * modules/fseeko-tests (Files): Likewise.
6288         * modules/fsync-tests (Files): Likewise.
6289         * modules/ftell-tests (Files): Likewise.
6290         * modules/ftello-tests (Files): Likewise.
6291         * modules/futimens-tests (Files): Likewise.
6292         * modules/getaddrinfo-tests (Files): Likewise.
6293         * modules/getcwd-tests (Files): Likewise.
6294         * modules/getdelim-tests (Files): Likewise.
6295         * modules/getdtablesize-tests (Files): Likewise.
6296         * modules/getgroups-tests (Files): Likewise.
6297         * modules/gethostname-tests (Files): Likewise.
6298         * modules/getline-tests (Files): Likewise.
6299         * modules/getopt-posix-tests (Files): Likewise.
6300         * modules/gettimeofday-tests (Files): Likewise.
6301         * modules/glob-tests (Files): Likewise.
6302         * modules/iconv-tests (Files): Likewise.
6303         * modules/inet_ntop-tests (Files): Likewise.
6304         * modules/inet_pton-tests (Files): Likewise.
6305         * modules/isblank-tests (Files): Likewise.
6306         * modules/lchown-tests (Files): Likewise.
6307         * modules/ldexpl-tests (Files): Likewise.
6308         * modules/link-tests (Files): Likewise.
6309         * modules/linkat-tests (Files): Likewise.
6310         * modules/lseek-tests (Files): Likewise.
6311         * modules/lstat-tests (Files): Likewise.
6312         * modules/mbrtowc-tests (Files): Likewise.
6313         * modules/mbsinit-tests (Files): Likewise.
6314         * modules/mbsnrtowcs-tests (Files): Likewise.
6315         * modules/mbsrtowcs-tests (Files): Likewise.
6316         * modules/memchr-tests (Files): Likewise.
6317         * modules/memcmp-tests (Files): Likewise.
6318         * modules/memmem-tests (Files): Likewise.
6319         * modules/memrchr-tests (Files): Likewise.
6320         * modules/mkdir-tests (Files): Likewise.
6321         * modules/mkfifo-tests (Files): Likewise.
6322         * modules/mkfifoat-tests (Files): Likewise.
6323         * modules/mknod-tests (Files): Likewise.
6324         * modules/nanosleep-tests (Files): Likewise.
6325         * modules/nl_langinfo-tests (Files): Likewise.
6326         * modules/obstack-printf-tests (Files): Likewise.
6327         * modules/open-tests (Files): Likewise.
6328         * modules/openat-tests (Files): Likewise.
6329         * modules/perror-tests (Files): Likewise.
6330         * modules/pipe2-tests (Files): Likewise.
6331         * modules/poll-tests (Files): Likewise.
6332         * modules/popen-tests (Files): Likewise.
6333         * modules/posix_spawn-tests (Files): Likewise.
6334         * modules/posix_spawnp-tests (Files): Likewise.
6335         * modules/pread-tests (Files): Likewise.
6336         * modules/printf-posix-tests (Files): Likewise.
6337         * modules/pty-tests (Files): Likewise.
6338         * modules/random_r-tests (Files): Likewise.
6339         * modules/rawmemchr-tests (Files): Likewise.
6340         * modules/readlink-tests (Files): Likewise.
6341         * modules/remove-tests (Files): Likewise.
6342         * modules/rename-tests (Files): Likewise.
6343         * modules/renameat-tests (Files): Likewise.
6344         * modules/rmdir-tests (Files): Likewise.
6345         * modules/round-tests (Files): Likewise.
6346         * modules/roundf-tests (Files): Likewise.
6347         * modules/roundl-tests (Files): Likewise.
6348         * modules/select-tests (Files): Likewise.
6349         * modules/setenv-tests (Files): Likewise.
6350         * modules/sigaction-tests (Files): Likewise.
6351         * modules/sleep-tests (Files): Likewise.
6352         * modules/snprintf-posix-tests (Files): Likewise.
6353         * modules/snprintf-tests (Files): Likewise.
6354         * modules/sprintf-posix-tests (Files): Likewise.
6355         * modules/stat-tests (Files): Likewise.
6356         * modules/strcasestr-tests (Files): Likewise.
6357         * modules/strchrnul-tests (Files): Likewise.
6358         * modules/strerror-tests (Files): Likewise.
6359         * modules/strsignal-tests (Files): Likewise.
6360         * modules/strstr-tests (Files): Likewise.
6361         * modules/strtod-tests (Files): Likewise.
6362         * modules/strverscmp-tests (Files): Likewise.
6363         * modules/symlink-tests (Files): Likewise.
6364         * modules/symlinkat-tests (Files): Likewise.
6365         * modules/times-tests (Files): Likewise.
6366         * modules/trunc-tests (Files): Likewise.
6367         * modules/truncf-tests (Files): Likewise.
6368         * modules/truncl-tests (Files): Likewise.
6369         * modules/tsearch-tests (Files): Likewise.
6370         * modules/uname-tests (Files): Likewise.
6371         * modules/unlink-tests (Files): Likewise.
6372         * modules/unsetenv-tests (Files): Likewise.
6373         * modules/usleep-tests (Files): Likewise.
6374         * modules/utimensat-tests (Files): Likewise.
6375         * modules/vasprintf-tests (Files): Likewise.
6376         * modules/vdprintf-posix-tests (Files): Likewise.
6377         * modules/vfprintf-posix-tests (Files): Likewise.
6378         * modules/vprintf-posix-tests (Files): Likewise.
6379         * modules/vsnprintf-posix-tests (Files): Likewise.
6380         * modules/vsnprintf-tests (Files): Likewise.
6381         * modules/vsprintf-posix-tests (Files): Likewise.
6382         * modules/wcrtomb-tests (Files): Likewise.
6383         * modules/wcsnrtombs-tests (Files): Likewise.
6384         * modules/wcsrtombs-tests (Files): Likewise.
6385         * modules/wcwidth-tests (Files): Likewise.
6386         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
6387         * tests/test-isinf.c (isinf): Likewise.
6388         * tests/test-isnan.c (isnan): Likewise.
6389         * tests/test-signbit.c (signbit): Likewise.
6390         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
6391         declaration, either as macro or with correct signature.
6392         (select): Ensure function under test is declared with correct
6393         signature in correct header.
6394         * tests/test-atexit.c (atexit): Likewise.
6395         * tests/test-btowc.c (btowc): Likewise.
6396         * tests/test-canonicalize-lgpl.c (realpath)
6397         (canonicalize_file_name): Likewise.
6398         * tests/test-ceilf1.c (ceilf): Likewise.
6399         * tests/test-ceill.c (ceill): Likewise.
6400         * tests/test-chown.c (chown): Likewise.
6401         * tests/test-dprintf-posix.c (dprintf): Likewise.
6402         * tests/test-dup2.c (dup2): Likewise.
6403         * tests/test-dup3.c (dup3): Likewise.
6404         * tests/test-duplocale.c (duplocale): Likewise.
6405         * tests/test-fchdir.c (fchdir): Likewise.
6406         * tests/test-fchownat.c (fchownat): Likewise.
6407         * tests/test-fcntl.c (fcntl): Likewise.
6408         * tests/test-fdopendir.c (fdopendir): Likewise.
6409         * tests/test-fflush.c (fflush): Likewise.
6410         * tests/test-flock.c (flock): Likewise.
6411         * tests/test-floorf1.c (floorf): Likewise.
6412         * tests/test-floorl.c (floorl): Likewise.
6413         * tests/test-fnmatch.c (fnmatch): Likewise.
6414         * tests/test-fopen.c (fopen): Likewise.
6415         * tests/test-fprintf-posix.c (fprintf): Likewise.
6416         * tests/test-freopen.c (freopen): Likewise.
6417         * tests/test-frexp.c (frexp): Likewise.
6418         * tests/test-frexpl.c (frexpl): Likewise.
6419         * tests/test-fseek.c (fseek): Likewise.
6420         * tests/test-fseeko.c (fseeko): Likewise.
6421         * tests/test-fstatat.c (fstatat): Likewise.
6422         * tests/test-fsync.c (fsync): Likewise.
6423         * tests/test-ftell.c (ftell): Likewise.
6424         * tests/test-ftello.c (ftello): Likewise.
6425         * tests/test-futimens.c (futimens): Likewise.
6426         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
6427         (gai_strerror): Likewise.
6428         * tests/test-getcwd.c (getcwd): Likewise.
6429         * tests/test-getdelim.c (getdelim): Likewise.
6430         * tests/test-getdtablesize.c (getdtablesize): Likewise.
6431         * tests/test-getgroups.c (getgroups): Likewise.
6432         * tests/test-gethostname.c (gethostname): Likewise.
6433         * tests/test-getline.c (getline): Likewise.
6434         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
6435         Likewise.
6436         * tests/test-gettimeofday.c (gettimeofday): Likewise.
6437         * tests/test-glob.c (glob, globfree): Likewise.
6438         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
6439         * tests/test-inet_ntop.c (inet_ntop): Likewise.
6440         * tests/test-inet_pton.c (inet_pton): Likewise.
6441         * tests/test-isblank.c (isblank): Likewise.
6442         * tests/test-lchown.c (lchown): Likewise.
6443         * tests/test-ldexpl.c (ldexpl): Likewise.
6444         * tests/test-link.c (link): Likewise.
6445         * tests/test-linkat.c (linkat): Likewise.
6446         * tests/test-lseek.c (lseek): Likewise.
6447         * tests/test-lstat.c (lstat): Likewise.
6448         * tests/test-mbrtowc.c (mbrtowc): Likewise.
6449         * tests/test-mbsinit.c (mbsinit): Likewise.
6450         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
6451         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
6452         * tests/test-memchr.c (memchr): Likewise.
6453         * tests/test-memcmp.c (memcmp): Likewise.
6454         * tests/test-memmem.c (memmem): Likewise.
6455         * tests/test-memrchr.c (memrchr): Likewise.
6456         * tests/test-mkdir.c (mkdir): Likewise.
6457         * tests/test-mkdirat.c (mkdirat): Likewise.
6458         * tests/test-mkfifo.c (mkfifo): Likewise.
6459         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
6460         * tests/test-mknod.c (mknod): Likewise.
6461         * tests/test-nanosleep.c (nanosleep): Likewise.
6462         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
6463         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
6464         Likewise.
6465         * tests/test-open.c (open): Likewise.
6466         * tests/test-openat.c (openat): Likewise.
6467         * tests/test-perror.c (perror): Likewise.
6468         * tests/test-pipe2.c (pipe2): Likewise.
6469         * tests/test-poll.c (poll): Likewise.
6470         * tests/test-popen.c (popen, pclose): Likewise.
6471         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
6472         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
6473         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
6474         (posix_spawn_file_actions_destroy)
6475         (posix_spawn_file_actions_addclose)
6476         (posix_spawn_file_actions_addopen)
6477         (posix_spawn_file_actions_adddup2): Likewise.
6478         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
6479         * tests/test-pread.c (pread): Likewise.
6480         * tests/test-printf-posix.c (printf): Likewise.
6481         * tests/test-pty.c (openpty, forkpty): Likewise.
6482         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
6483         (random_r): Likewise.
6484         * tests/test-rawmemchr.c (rawmemchr): Likewise.
6485         * tests/test-readlink.c (readlink): Likewise.
6486         * tests/test-remove.c (remove): Likewise.
6487         * tests/test-rename.c (rename): Likewise.
6488         * tests/test-renameat.c (renameat): Likewise.
6489         * tests/test-rmdir.c (rmdir): Likewise.
6490         * tests/test-round1.c (round): Likewise.
6491         * tests/test-roundf1.c (roundf): Likewise.
6492         * tests/test-roundl.c (roundl): Likewise.
6493         * tests/test-setenv.c (setenv): Likewise.
6494         * tests/test-sigaction.c (sigaction): Likewise.
6495         * tests/test-sleep.c (sleep): Likewise.
6496         * tests/test-snprintf.c (snprintf): Likewise.
6497         * tests/test-sprintf-posix.c (sprintf): Likewise.
6498         * tests/test-stat.c (stat): Likewise.
6499         * tests/test-stpncpy.c (stpncpy): Likewise.
6500         * tests/test-strcasestr.c (strcasestr): Likewise.
6501         * tests/test-strchrnul.c (strchrnul): Likewise.
6502         * tests/test-strerror.c (strerror): Likewise.
6503         * tests/test-strsignal.c (strsignal): Likewise.
6504         * tests/test-strstr.c (strstr): Likewise.
6505         * tests/test-strtod.c (strtod): Likewise.
6506         * tests/test-strverscmp.c (strverscmp): Likewise.
6507         * tests/test-symlink.c (symlink): Likewise.
6508         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
6509         * tests/test-times.c (times): Likewise.
6510         * tests/test-trunc1.c (trunc): Likewise.
6511         * tests/test-truncf1.c (truncf): Likewise.
6512         * tests/test-truncl.c (truncl): Likewise.
6513         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
6514         Likewise.
6515         * tests/test-uname.c (uname): Likewise.
6516         * tests/test-unlink.c (unlink): Likewise.
6517         * tests/test-unlinkat.c (unlinkat): Likewise.
6518         * tests/test-unsetenv.c (unsetenv): Likewise.
6519         * tests/test-usleep.c (usleep): Likewise.
6520         * tests/test-utimensat.c (utimensat): Likewise.
6521         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
6522         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
6523         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
6524         * tests/test-vprintf-posix.c (vprintf): Likewise.
6525         * tests/test-vsnprintf.c (vsnprintf): Likewise.
6526         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
6527         * tests/test-wcrtomb.c (wcrtomb): Likewise.
6528         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
6529         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
6530         * tests/test-wcwidth.c (wcwidth): Likewise.
6531
6532         build: pull in conditional headers during GNULIB_POSIXCHECK
6533         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
6534         definitions from any conditionally-included headers.
6535         * lib/stdlib.in.h (includes): Likewise.
6536         * lib/unistd.in.h (includes): Likewise.
6537
6538 2009-12-24  Bruno Haible  <bruno@clisp.org>
6539
6540         * tests/test-argv-iter.c: Include header file being tested immediately
6541         after config.h.
6542         * tests/test-base64.c: Likewise.
6543         * tests/test-flock.c: Likewise.
6544         * tests/test-fsync.c: Likewise.
6545         * tests/test-getdate.c: Likewise.
6546         * tests/test-getndelim2.c: Likewise.
6547         * tests/test-isfinite.c: Likewise.
6548         * tests/test-isinf.c: Likewise.
6549         * tests/test-strerror.c: Likewise.
6550         * tests/test-strsignal.c: Likewise.
6551
6552 2009-12-23  Eric Blake  <ebb9@byu.net>
6553
6554         unistd: work around cygwin bug
6555         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
6556         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
6557         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
6558
6559 2009-12-23  Bruno Haible  <bruno@clisp.org>
6560
6561         localename: More tests.
6562         * tests/test-localename.c (SIZEOF): New macro.
6563         (categories): New variable.
6564         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
6565         test_locale_name_default): Add test w.r.t. thread locale.
6566         (test_locale_name_thread): New function.
6567         (main): Invoke it.
6568
6569         localename: Make aware of thread locale.
6570         * lib/localename.h (gl_locale_name_thread): New declaration.
6571         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
6572         behaviour with respect to thread locale.
6573         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
6574         <langinfo.h>, glthread/lock.h.
6575         (SIZE_BITS): New macro.
6576         (string_hash): New function.
6577         (struct hash_node): New type.
6578         (HASH_TABLE_SIZE): New macro.
6579         (struniq_hash_table, struniq_lock): New variables.
6580         (struniq): New function.
6581         (gl_locale_name_thread): New function.
6582         (gl_locale_name): Invoke it.
6583         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
6584         * modules/localename (Depends-on): Add lock.
6585         Reported by Mike Gran <spk121@yahoo.com>.
6586
6587 2009-12-23  Eric Blake  <ebb9@byu.net>
6588
6589         va-args: new module
6590         * modules/va-args: New file.
6591         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
6592         * MODULES.html.sh (Core language properties): Mention it.
6593
6594         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
6595         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
6596         named alias for __attribute__((__unused__)).
6597         * lib/chown.c: Update client.
6598         * lib/fchmodat.c: Likewise.
6599         * lib/fts.c: Likewise.
6600         * lib/getdate.y: Likewise.
6601         * lib/getgroups.c: Likewise.
6602         * lib/getopt.c: Likewise.
6603         * lib/getugroups.c: Likewise.
6604         * lib/mkdir.c: Likewise.
6605         * lib/mkfifo.c: Likewise.
6606         * lib/mkfifoat.c: Likewise.
6607         * lib/mknod.c: Likewise.
6608         * lib/mknodat.c: Likewise.
6609         * lib/readlink.c: Likewise.
6610         * lib/se-context.in.h: Likewise.
6611         * lib/se-selinux.in.h: Likewise.
6612         * lib/sockets.c: Likewise.
6613         * lib/symlink.c: Likewise.
6614         * lib/symlinkat.c: Likewise.
6615         * lib/unicodeio.c: Likewise.
6616         * lib/unistr.h: Likewise.
6617         * tests/test-areadlink.c: Likewise.
6618         * tests/test-areadlinkat.c: Likewise.
6619         * tests/test-filenamecat.c: Likewise.
6620         * tests/test-fseeko.c: Likewise.
6621         * tests/test-ftello.c: Likewise.
6622         * tests/test-getdate.c: Likewise.
6623         * tests/test-getgroups.c: Likewise.
6624         * tests/test-gethostname.c: Likewise.
6625         * tests/test-quotearg.c: Likewise.
6626         * tests/test-version-etc.c: Likewise.
6627         * tests/test-xalloc-die.c: Likewise.
6628         * tests/test-xfprintf-posix.c: Likewise.
6629         * tests/test-xprintf-posix.c: Likewise.
6630         * tests/test-xvasprintf.c: Likewise.
6631
6632         tests: avoid compiler warnings
6633         * tests/test-fcntl.c (main): Delete unused parameters.
6634         * tests/test-freopen-safer.c (main): Likewise.
6635         * tests/test-xalloc-die.c (main): Mark unused parameters.
6636         * tests/test-fseeko.c (main): Likewise.
6637         * tests/test-ftello.c (main): Likewise.
6638         * tests/test-nanosleep.c (main): Avoid declaration warning.
6639         * tests/test-sleep.c (main): Likewise.
6640         * tests/test-unsetenv.c (main): Silence warning about string
6641         literal.
6642         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
6643
6644 2009-12-23  Bruno Haible  <bruno@clisp.org>
6645
6646         * tests/test-localename.c (test_locale_name): New function, extracted
6647         from main. Also test mixed situations.
6648         (test_locale_name_posix, test_locale_name_environ,
6649         test_locale_name_default): New functions.
6650         (main): Invoke them all.
6651         * modules/localename-tests (configure.ac): Test for newlocale.
6652
6653 2009-12-23  Bruno Haible  <bruno@clisp.org>
6654
6655         unistd: Ensure getcwd gets declared before being overridden.
6656         * lib/unistd.in.h: Conditionally include <io.h>.
6657
6658 2009-12-22  Bruno Haible  <bruno@clisp.org>
6659
6660         wchar: Diagnose broken combination of glibc and gcc versions and flags.
6661         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
6662         (gl_WCHAR_H): Invoke it.
6663         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
6664         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
6665         Reported by Karl Berry <karl@freefriends.org>.
6666
6667 2009-12-22  Eric Blake  <ebb9@byu.net>
6668
6669         math, unistd: avoid redundant includes
6670         * lib/math.in.h (isnan): No need to re-include <math.h>.
6671         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
6672
6673         getsubopt: work around cygwin bug
6674         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
6675         avoid conflicting with system getsubopt.
6676         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
6677         bug.
6678
6679         getopt: synchronize from glibc
6680         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
6681         parameter order.  Adjust all callers.
6682         (_getopt_internal_r, main): Adjust quoting in error messages.
6683         Drop considerations for outdated POSIX 1003.2 error message.
6684         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
6685         callers.
6686         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
6687
6688         test-getopt: test stderr behavior
6689         * modules/getopt-posix-tests (Depends-on): Add dup2.
6690         * tests/test-getopt.c (ASSERT): Avoid stderr.
6691         (main): Move stderr to a temporary file.
6692         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
6693         Instead, add parameter to inform caller if output occurred.
6694         (test_getopt): Adjust all existing tests to expect silence, and
6695         add new tests of leading ":".
6696         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
6697         glibc shortcomings with leading "-:" or "+:" in optstring.
6698         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6699         Likewise.
6700         * doc/posix-functions/getopt.texi (getopt): Likewise.
6701
6702         test-getopt: enhance test
6703         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
6704         supports optind=0.
6705         * tests/test-getopt.c (OPTIND_MIN): Move...
6706         * tests/test-getopt.h (OPTIND_MIN): ...here.
6707         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
6708         Require that optind=0 works, since modern BSD supports it in
6709         addition to optreset, and since coreutils expects it.
6710         (test_getopt_long_only): New test.
6711         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
6712         glibc shortcomings with 'W;', and enforcement of optind=0.
6713         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6714         Likewise.
6715
6716 2009-12-21  Bruno Haible  <bruno@clisp.org>
6717
6718         localename: Improvements for MacOS X and Cygwin.
6719         * lib/localename.h (gl_locale_name_environ): New declaration.
6720         * lib/localename.c (gl_locale_name_environ): New function, extracted from
6721         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
6722         (gl_locale_name_posix): Invoke it.
6723         (gl_locale_name_default): Add comments. Use Windows native API also on
6724         Cygwin.
6725
6726 2009-12-21  Bruno Haible  <bruno@clisp.org>
6727
6728         Update list of Win32 locale ids.
6729         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
6730         (LANG_SAMI): Renamed from LANG_SAAMI.
6731         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
6732         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
6733         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
6734         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
6735         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
6736         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
6737         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
6738         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
6739         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
6740         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
6741         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
6742         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
6743         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
6744         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
6745         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
6746         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
6747         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
6748         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
6749         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
6750         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
6751         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
6752         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
6753         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
6754         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
6755         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
6756         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
6757         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
6758         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
6759         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
6760         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
6761         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
6762         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
6763         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
6764         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
6765         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
6766         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
6767         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
6768         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
6769         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
6770         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
6771         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
6772         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
6773         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
6774         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
6775         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
6776         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
6777         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
6778         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
6779         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
6780         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
6781         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
6782         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
6783         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
6784         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
6785         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
6786         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
6787         Add more languages and countries for Sami, Sorbian. Add more countries
6788         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
6789         for Pashto. Change country for Syriac, Tswana.
6790
6791 2009-12-21  Eric Blake  <ebb9@byu.net>
6792
6793         test-utimens: avoid spurious failure
6794         * tests/test-chown.h (nap): Factor...
6795         * tests/nap.h: ...into new file.
6796         * tests/test-lchown.h (nap): Avoid duplication.
6797         * tests/test-utimens-common.h (nap): Use shared implementation,
6798         necessary on file systems with 1-second resolution.
6799         * modules/chown-tests (Files): Include new file.
6800         * modules/fdutimensat-tests (Files): Likewise.
6801         * modules/futimens-tests (Files): Likewise.
6802         * modules/lchown-tests (Files): Likewise.
6803         * modules/openat-tests (Files): Likewise.
6804         * modules/utimens-tests (Files): Likewise.
6805         * modules/utimensat-tests (Files): Likewise.
6806
6807 2009-12-19  Eric Blake  <ebb9@byu.net>
6808
6809         futimens, utimensat: work around Linux bug
6810         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
6811         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
6812         * lib/utimensat.c (rpl_utimensat): Work around it.
6813         * lib/futimens.c (rpl_futimens): Adjust comment.
6814
6815         utimens: work around Linux ctime bug
6816         * lib/utimens.c (detect_ctime_bug): New helper function.
6817         (update_timespec): Differentiate between workaround needed for
6818         this bug vs. what is needed for systems that lack utimensat.
6819         (fdutimens, lutimens): Work around bug.
6820
6821         utimens: check for ctime update
6822         * tests/test-utimens-common.h (check_ctime): Define.
6823         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
6824         * tests/test-futimens.h (test_futimens): Likewise.
6825         * tests/test-lutimens.h (test_lutimens): Likewise.
6826         * doc/posix-functions/futimens.texi (futimens): Document the bug.
6827         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
6828
6829 2009-12-19  Bruno Haible  <bruno@clisp.org>
6830
6831         dprintf-posix: Check against memory leak fixed on 2009-12-15.
6832         * tests/test-dprintf-posix2.sh: New file.
6833         * tests/test-dprintf-posix2.c: New file.
6834         * modules/dprintf-posix-tests (Files): Add them.
6835         (configure.ac): Check for getrlimit and setrlimit.
6836         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
6837
6838 2009-12-19  Bruno Haible  <bruno@clisp.org>
6839
6840         fprintf-posix: Check against memory leak fixed on 2009-12-15.
6841         * tests/test-fprintf-posix3.sh: New file.
6842         * tests/test-fprintf-posix3.c: New file.
6843         * modules/fprintf-posix-tests (Files): Add them.
6844         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
6845
6846 2009-12-19  Eric Blake  <ebb9@byu.net>
6847
6848         dirfd: fix prototype
6849         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
6850         * lib/dirfd.c (dirfd): Likewise.
6851
6852         canonicalize: reduce memory usage
6853         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
6854         allocation to size.
6855         Reported by Solar Designer <solar@openwall.com>.
6856
6857 2009-12-19  Bruno Haible  <bruno@clisp.org>
6858
6859         New module attribute 'Applicability'.
6860         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
6861         * gnulib-tool: New option --extract-applicability.
6862         (func_usage): Document it.
6863         (sed_extract_prog): Recognize it.
6864         (func_get_applicability): New function.
6865         (func_import): Generalize handling of 'link-warning' module.
6866         * modules/link-warning (Applicability): New section.
6867         * modules/arg-nonnull (Applicability): New section.
6868         Repoted by Simon Josefsson <simon@josefsson.org>.
6869
6870 2009-12-19  Bruno Haible  <bruno@clisp.org>
6871
6872         fflush: tweak
6873         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
6874         * lib/fseeko.c (rpl_fseeko): Likewise.
6875
6876 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
6877
6878         * lib/gl_list.h: Fix typo in comment.
6879
6880 2009-12-16  Eric Blake  <ebb9@byu.net>
6881
6882         fcntl: use to simplify other modules
6883         * modules/cloexec (Depends-on): Add fcntl.
6884         * modules/fchdir (Depends-on): Likewise.
6885         * modules/fd-safer-flag (Depends-on): Likewise.
6886         * modules/unistd-safer (Depends-on): Likewise.
6887         * modules/dup3 (configure.ac): Set module indicator.
6888         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
6889         missing.
6890         * lib/fchdir.c (_gl_register_dup): Fix comment.
6891         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
6892         * lib/dup-safer.c (dup_safer): Likewise.
6893         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
6894         * lib/dup3.c (dup3): Likewise.
6895         * tests/test-fchdir.c (main): Enhance test.
6896         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
6897
6898         fcntl: port portions of fcntl to mingw
6899         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
6900         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
6901         replacement for mingw.
6902         * modules/fcntl (Description): Update.
6903         (Depends-on): Add dup2.
6904         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
6905         * modules/fcntl-h (Makefile.am): Substitute it.
6906         * lib/fcntl.in.h (fcntl): Update declaration.
6907         (F_DUPFD, F_GETFD): New macros, when needed.
6908         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
6909         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
6910         * tests/test-fcntl.c (check_flags, main): Enhance test for items
6911         we now guarantee.
6912
6913         fcntl: work around cygwin bug in F_DUPFD
6914         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
6915         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
6916         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
6917         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
6918         * doc/posix-functions/fcntl.texi (fcntl): Document it.
6919
6920         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
6921         * modules/fcntl (Files): List new files.
6922         (configure.ac): Run a test.
6923         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
6924         * lib/fcntl.c (rpl_fcntl): Likewise.
6925         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
6926         (gl_FCNTL_H): Always replace fcntl.h.
6927         * modules/fcntl-h (Makefile.am): Substitute witnesses.
6928         * lib/fcntl.in.h (fcntl): Declare replacement.
6929         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
6930         needed, plus a witness.
6931         * doc/posix-functions/fcntl.texi (fcntl): Document this.
6932         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
6933         * tests/test-fcntl.c: New file.
6934         * modules/fcntl-tests: Likewise.
6935
6936         binary-io: avoid potential compilation warning
6937         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
6938         directives.
6939
6940         fflush: avoid compilation error on NetBSD
6941         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
6942         between off_t and fpos_t, since the latter is sometimes a struct.
6943         * lib/fseeko.c (rpl_fseeko): Likewise.
6944         Reported by Alexander Nasonov <alnsn@yandex.ru>.
6945
6946 2009-12-15  Eric Blake  <ebb9@byu.net>
6947
6948         fcntl-h, stdio, sys_ioctl: fix declarations
6949         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
6950         function must not take arguments.
6951         * lib/sys_ioctl.in.h (ioctl): Likewise.
6952         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
6953         (open): Add a link warning.
6954
6955 2009-12-15  Jim Meyering  <meyering@redhat.com>
6956
6957         areadlink, areadlink-with-size: relax license to LGPLv2+
6958         * modules/areadlink (License): Relax to LGPLv2+.
6959         * modules/areadlink-with-size (License): Likewise.
6960
6961 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
6962             Bruno Haible  <bruno@clisp.org>
6963
6964         *printf: Fix memory leak.
6965         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
6966         * lib/vfprintf.c (vfprintf): Likewise.
6967         * lib/dprintf.c (dprintf): Likewise.
6968         * lib/vdprintf.c (vdprintf): Likewise.
6969
6970 2009-12-14  Eric Blake  <ebb9@byu.net>
6971
6972         accept4: adjust module dependencies
6973         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
6974
6975         utimens: one more try at avoiding compiler warning
6976         * lib/utimens.c (lutimens): Lower scope of result.
6977
6978 2009-12-13  Bruno Haible  <bruno@clisp.org>
6979
6980         Move the malloc checking from module 'list' to new module 'xlist'.
6981         * modules/xlist: New file.
6982         * lib/gl_xlist.h: New file.
6983         * lib/gl_xlist.c: New file.
6984         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
6985         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
6986         gl_list_add_last, gl_list_add_before, gl_list_add_after,
6987         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
6988         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
6989         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
6990         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
6991         gl_sortedlist_nx_add): New declarations.
6992         (struct gl_list_implementation): Rename and change methods accordingly.
6993         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
6994         (gl_list_nx_create): Renamed from gl_list_create.
6995         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
6996         (gl_list_nx_set_at): Renamed from gl_list_set_at.
6997         (gl_list_nx_add_first): Renamed from gl_list_add_first.
6998         (gl_list_nx_add_last): Renamed from gl_list_add_last.
6999         (gl_list_nx_add_before): Renamed from gl_list_add_before.
7000         (gl_list_nx_add_after): Renamed from gl_list_add_after.
7001         (gl_list_nx_add_at): Renamed from gl_list_add_at.
7002         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
7003         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
7004         gl_list_create_empty.
7005         (gl_list_nx_create): Renamed from gl_list_create.
7006         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
7007         (gl_list_nx_set_at): Renamed from gl_list_set_at.
7008         (gl_list_nx_add_first): Renamed from gl_list_add_first.
7009         (gl_list_nx_add_last): Renamed from gl_list_add_last.
7010         (gl_list_nx_add_before): Renamed from gl_list_add_before.
7011         (gl_list_nx_add_after): Renamed from gl_list_add_after.
7012         (gl_list_nx_add_at): Renamed from gl_list_add_at.
7013         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
7014         * lib/gl_array_list.c: Don't include xalloc.h.
7015         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
7016         NULL upon out-of-memory.
7017         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
7018         out-of-memory.
7019         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
7020         Change return type to 'int'.
7021         (gl_array_nx_set_at): Renamed from gl_array_set_at.
7022         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
7023         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
7024         upon out-of-memory.
7025         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
7026         upon out-of-memory.
7027         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
7028         upon out-of-memory.
7029         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
7030         upon out-of-memory.
7031         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
7032         out-of-memory.
7033         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
7034         Update.
7035         (gl_array_list_implementation): Update.
7036         * lib/gl_carray_list.c: Don't include xalloc.h.
7037         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
7038         Return NULL upon out-of-memory.
7039         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
7040         out-of-memory.
7041         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
7042         Change return type to 'int'.
7043         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
7044         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
7045         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
7046         upon out-of-memory.
7047         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
7048         upon out-of-memory.
7049         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
7050         out-of-memory.
7051         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
7052         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
7053         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
7054         Update.
7055         (gl_carray_list_implementation): Update.
7056         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
7057         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
7058         gl_linked_create_empty. Return NULL upon out-of-memory.
7059         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
7060         out-of-memory.
7061         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
7062         Change return type to 'int'. Return -1 upon out-of-memory.
7063         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
7064         out-of-memory.
7065         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
7066         upon out-of-memory.
7067         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
7068         upon out-of-memory.
7069         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
7070         NULL upon out-of-memory.
7071         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
7072         upon out-of-memory.
7073         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
7074         out-of-memory.
7075         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
7076         Update.
7077         * lib/gl_linked_list.c: Don't include xalloc.h.
7078         (gl_linked_list_implementation): Update.
7079         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
7080         (add_to_bucket): Change return type to 'int'.
7081         (gl_linkedhash_list_implementation): Update.
7082         * lib/gl_anytree_list1.h (free_subtree): New function.
7083         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
7084         gl_tree_create_empty. Return NULL upon out-of-memory.
7085         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
7086         Change return type to 'int'. Return -1 upon out-of-memory.
7087         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
7088         out-of-memory.
7089         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
7090         (gl_tree_remove_node): New function, moved here from
7091         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
7092         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
7093         Update.
7094         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
7095         malloc, not xmalloc. Return NULL upon out-of-memory.
7096         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
7097         out-of-memory.
7098         (gl_tree_remove_node_from_tree): New function, extracted from
7099         gl_tree_remove_node.
7100         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
7101         upon out-of-memory.
7102         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
7103         out-of-memory.
7104         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
7105         upon out-of-memory.
7106         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
7107         upon out-of-memory.
7108         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
7109         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
7110         not xmalloc. Return NULL upon out-of-memory.
7111         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
7112         out-of-memory.
7113         (gl_tree_remove_node_from_tree): New function, extracted from
7114         gl_tree_remove_node.
7115         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
7116         upon out-of-memory.
7117         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
7118         out-of-memory.
7119         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
7120         upon out-of-memory.
7121         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
7122         upon out-of-memory.
7123         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
7124         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
7125         gl_anytree_list1.h before gl_anyavltree_list2.h.
7126         (gl_avltree_list_implementation): Update.
7127         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
7128         gl_anytree_list1.h before gl_anyavltree_list2.h.
7129         (gl_rbtree_list_implementation): Update.
7130         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
7131         Change return type to 'int'. Return -1 upon out-of-memory. Use
7132         __builtin_expect.
7133         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
7134         (gl_avltreehash_list_implementation): Update.
7135         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
7136         (gl_rbtreehash_list_implementation): Update.
7137         * modules/array-list (Depends-on): Remove xalloc.
7138         * modules/carray-list (Depends-on): Likewise.
7139         * modules/linked-list (Depends-on): Likewise.
7140         * modules/linkedhash-list (Depends-on): Likewise.
7141         * modules/avltree-list (Depends-on): Likewise.
7142         * modules/rbtree-list (Depends-on): Likewise.
7143         * modules/avltreehash-list (Depends-on): Likewise.
7144         * modules/rbtreehash-list (Depends-on): Likewise.
7145
7146         * modules/xsublist: New file.
7147         * lib/gl_xsublist.h: New file.
7148         * lib/gl_xsublist.c: New file.
7149         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
7150         (gl_sublist_nx_create): New declaration.
7151         * lib/gl_sublist.c: Don't include xalloc.h.
7152         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
7153         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
7154         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
7155         Change return type to 'int'. Return -1 upon out-of-memory.
7156         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
7157         upon out-of-memory.
7158         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
7159         NULL upon out-of-memory.
7160         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
7161         upon out-of-memory.
7162         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
7163         NULL upon out-of-memory.
7164         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
7165         NULL upon out-of-memory.
7166         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
7167         upon out-of-memory.
7168         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
7169         (gl_sublist_list_implementation): Update.
7170         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
7171         upon out-of-memory.
7172         * modules/sublist (Depends-on): Remove xalloc.
7173
7174         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
7175         * tests/test-carray_list.c: Likewise.
7176         * tests/test-linked_list.c: Likewise.
7177         * tests/test-linkedhash_list.c: Likewise.
7178         * tests/test-avltree_list.c: Likewise.
7179         * tests/test-rbtree_list.c: Likewise.
7180         * tests/test-avltreehash_list.c: Likewise.
7181         * tests/test-rbtreehash_list.c: Likewise.
7182         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
7183         * modules/carray-list-tests (Makefile.am): Likewise.
7184         * modules/linked-list-tests (Makefile.am): Likewise.
7185         * modules/linkedhash-list-tests (Makefile.am): Likewise.
7186         * modules/avltree-list-tests (Makefile.am): Likewise.
7187         * modules/rbtree-list-tests (Makefile.am): Likewise.
7188         * modules/avltreehash-list-tests (Makefile.am): Likewise.
7189         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
7190
7191         * NEWS: Mention the changes.
7192
7193         * lib/clean-temp.c: Include gl_xlist.h.
7194         * modules/clean-temp (Depends-on): Add xlist.
7195
7196         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
7197         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
7198
7199         * tests/test-array_oset.c: Include gl_xlist.h.
7200         * modules/array-oset-tests (Depends-on): Add xlist.
7201
7202         Reported by José E. Marchesi <jemarch@gnu.org>.
7203
7204 2009-12-13  Bruno Haible  <bruno@clisp.org>
7205
7206         Move the malloc checking from module 'oset' to new module 'xoset'.
7207         * modules/xoset: New file.
7208         * lib/gl_xoset.h: New file.
7209         * lib/gl_xoset.c: New file.
7210         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
7211         declarations.
7212         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
7213         (struct gl_oset_implementation): Rename and change methods accordingly.
7214         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
7215         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
7216         'int'. Mark as __warn_unused_result__.
7217         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
7218         gl_oset_create_empty.
7219         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
7220         'int'.
7221         * lib/gl_array_oset.c: Don't include xalloc.h.
7222         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
7223         malloc, not xmalloc.
7224         (grow): Change return type to 'int'. Don't call xalloc_die.
7225         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
7226         to 'int'.
7227         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
7228         'int'.
7229         (gl_array_oset_implementation): Update.
7230         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
7231         gl_tree_create_empty.
7232         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
7233         'int'.
7234         * lib/gl_avltree_oset.c: Don't include xalloc.h.
7235         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
7236         xmalloc.
7237         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
7238         not xmalloc.
7239         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
7240         xmalloc.
7241         (gl_avltree_oset_implementation): Update.
7242         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
7243         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
7244         xmalloc.
7245         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
7246         not xmalloc.
7247         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
7248         xmalloc.
7249         (gl_rbtree_oset_implementation): Update.
7250         * modules/array-oset (Depends-on): Remove xalloc.
7251         * modules/avltree-oset (Depends-on): Likewise.
7252         * modules/rbtree-oset (Depends-on): Likewise.
7253         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
7254         * tests/test-avltree_oset.c: Likewise.
7255         * tests/test-rbtree_oset.c: Likewise.
7256         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
7257         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
7258         * modules/rbtree-oset-tests (Makefile.am): Likewise.
7259         * NEWS: Mention the change.
7260
7261 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
7262
7263         maint.mk: allow a project to override release-prep commands
7264         * top/maint.mk (alpha, beta, stable): Move release-preparatory
7265         commands into a new rule.
7266         (release-prep): New rule.
7267         (release-prep-hook): New overridable variable.
7268
7269 2009-12-13  Bruno Haible  <bruno@clisp.org>
7270
7271         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
7272
7273 2009-12-13  Jim Meyering  <meyering@redhat.com>
7274
7275         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
7276         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
7277
7278 2009-12-12  Bruno Haible  <bruno@clisp.org>
7279
7280         duplocale: Tweak.
7281         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
7282
7283 2009-12-12  Karl Berry  <karl@gnu.org>
7284
7285         * config/srclist.txt (strtoll.c): tab changes, no more sync.
7286
7287 2009-12-12  Bruno Haible  <bruno@clisp.org>
7288
7289         * m4/po.m4: Undo incorrect untabification.
7290
7291 2009-12-12  Bruno Haible  <bruno@clisp.org>
7292
7293         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
7294         * modules/c-strtod (Depends-on): Add locale.
7295         * modules/c-strtold (Depends-on): Likewise.
7296
7297 2009-12-12  Bruno Haible  <bruno@clisp.org>
7298
7299         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
7300
7301 2009-12-11  Eric Blake  <ebb9@byu.net>
7302
7303         setenv: relax requirement in light of POSIX ruling
7304         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
7305         not NULL.
7306         * tests/test-setenv.c (main): Relax test.
7307         * tests/test-unsetenv.c (main): Likewise.
7308         * doc/posix-functions/setenv.texi (setenv): Document this.
7309         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
7310
7311 2009-12-11  Bruno Haible  <bruno@clisp.org>
7312
7313         New module 'fd-safer-flag'.
7314         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
7315         * lib/dup-safer.c (dup_safer_flag): Remove function.
7316         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
7317         * lib/fd-safer.c (fd_safer_flag): Remove function.
7318         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
7319         * modules/cloexec (configure.ac): Drop indicator macro.
7320         * modules/fd-safer-flag: New file.
7321         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
7322         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
7323         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
7324
7325 2009-12-11  Bruno Haible  <bruno@clisp.org>
7326
7327         Tests for module 'nl_langinfo'.
7328         * modules/nl_langinfo-tests: New file.
7329         * tests/test-nl_langinfo.sh: New file.
7330         * tests/test-nl_langinfo.c: New file.
7331
7332         New module 'nl_langinfo'.
7333         * lib/nl_langinfo.c: New file.
7334         * m4/nl_langinfo.m4: New file.
7335         * modules/nl_langinfo: New file.
7336         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
7337
7338 2009-12-11  Bruno Haible  <bruno@clisp.org>
7339
7340         Tests for module 'langinfo'.
7341         * modules/langinfo-tests: New file.
7342         * tests/test-langinfo.c: New file.
7343
7344         New module 'langinfo'.
7345         * lib/langinfo.in.h: New file.
7346         * m4/langinfo_h.m4: New file.
7347         * modules/langinfo: New file.
7348         * doc/posix-headers/langinfo.texi: Mention the new module.
7349
7350 2009-12-11  Bruno Haible  <bruno@clisp.org>
7351
7352         * lib/config.charset: Untabify.
7353
7354 2009-12-11  Bruno Haible  <bruno@clisp.org>
7355
7356         * modules/unistd-safer (configure.ac): Drop indicator macro.
7357
7358 2009-12-11  Bruno Haible  <bruno@clisp.org>
7359
7360         Move pipe2-safer code to its own file.
7361         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
7362         * lib/pipe-safer.c (pipe2_safer): Remove function.
7363         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
7364         (Makefile.am): Add it to lib_SOURCES.
7365
7366 2009-12-10  Bruno Haible  <bruno@clisp.org>
7367
7368         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
7369
7370 2009-12-10  Bruno Haible  <bruno@clisp.org>
7371
7372         Declare which arguments expect non-NULL values, for GCC and clang.
7373         * build-aux/arg-nonnull.h: New file.
7374         * modules/arg-nonnull: New file.
7375         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
7376         (inet_ntop, inet_pton): Use it.
7377         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
7378         (closedir, dirfd, opendir, scandir, alphasort): Use it.
7379         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
7380         (open, openat): Use it.
7381         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
7382         (fnmatch): Use it.
7383         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
7384         (getopt, getopt_long, getopt_long_only): Use it.
7385         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
7386         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
7387         Use it.
7388         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
7389         (iconv_open): Use it.
7390         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
7391         (strtoimax, strtoumax): Use it.
7392         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
7393         (duplocale): Use it.
7394         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
7395         (frexp, frexpl): Use it.
7396         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
7397         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
7398         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
7399         (tsearch, tfind, tdelete, twalk): Use it.
7400         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
7401         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
7402         sigpending): Use it.
7403         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
7404         (posix_spawn, posix_spawnp, posix_spawnattr_init,
7405         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
7406         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
7407         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
7408         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
7409         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
7410         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
7411         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
7412         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
7413         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
7414         Use it.
7415         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
7416         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
7417         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
7418         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
7419         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
7420         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
7421         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
7422         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
7423         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
7424         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
7425         strtoull, unsetenv): Use it.
7426         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
7427         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
7428         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
7429         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
7430         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
7431         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
7432         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
7433         (strcasecmp, strncasecmp): Use it.
7434         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
7435         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
7436         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
7437         rpl_setsockopt): Use it.
7438         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
7439         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
7440         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
7441         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
7442         (gettimeofday): Use it.
7443         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
7444         (times): Use it.
7445         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
7446         (uname): Use it.
7447         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
7448         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
7449         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
7450         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
7451         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
7452         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
7453         unlinkat, write): Use it.
7454         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
7455         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
7456         * lib/argv-iter.h: Include arg-nonnull.h.
7457         (_ATTRIBUTE_NONNULL_): Remove macro.
7458         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
7459         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
7460         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
7461         optimization.
7462         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
7463         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
7464         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
7465         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
7466         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
7467         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
7468         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
7469         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
7470         * modules/arpa_inet (Depends-on): Add arg-nonnull.
7471         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
7472         * modules/dirent (Depends-on): Add arg-nonnull.
7473         (Makefile.am): Insert arg-nonnull.h into dirent.h.
7474         * modules/fcntl-h (Depends-on): Add arg-nonnull.
7475         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
7476         * modules/fnmatch (Depends-on): Add arg-nonnull.
7477         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
7478         * modules/getopt-posix (Depends-on): Add arg-nonnull.
7479         (Makefile.am): Insert arg-nonnull.h into getopt.h.
7480         * modules/glob (Depends-on): Add arg-nonnull.
7481         (Makefile.am): Insert arg-nonnull.h into glob.h.
7482         * modules/iconv_open (Depends-on): Add arg-nonnull.
7483         (Makefile.am): Insert arg-nonnull.h into iconv.h.
7484         * modules/inttypes (Depends-on): Add arg-nonnull.
7485         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
7486         * modules/locale (Depends-on): Add arg-nonnull.
7487         (Makefile.am): Insert arg-nonnull.h into locale.h.
7488         * modules/math (Depends-on): Add arg-nonnull.
7489         (Makefile.am): Insert arg-nonnull.h into math.h.
7490         * modules/netdb (Depends-on): Add arg-nonnull.
7491         (Makefile.am): Insert arg-nonnull.h into netdb.h.
7492         * modules/search (Depends-on): Add arg-nonnull.
7493         (Makefile.am): Insert arg-nonnull.h into search.h.
7494         * modules/signal (Depends-on): Add arg-nonnull.
7495         (Makefile.am): Insert arg-nonnull.h into signal.h.
7496         * modules/spawn (Depends-on): Add arg-nonnull.
7497         (Makefile.am): Insert arg-nonnull.h into spawn.h.
7498         * modules/stdio (Depends-on): Add arg-nonnull.
7499         (Makefile.am): Insert arg-nonnull.h into stdio.h.
7500         * modules/stdlib (Depends-on): Add arg-nonnull.
7501         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
7502         * modules/string (Depends-on): Add arg-nonnull.
7503         (Makefile.am): Insert arg-nonnull.h into string.h.
7504         * modules/strings (Depends-on): Add arg-nonnull.
7505         (Makefile.am): Insert arg-nonnull.h into strings.h.
7506         * modules/sys_socket (Depends-on): Add arg-nonnull.
7507         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
7508         * modules/sys_stat (Depends-on): Add arg-nonnull.
7509         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
7510         * modules/sys_time (Depends-on): Add arg-nonnull.
7511         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
7512         * modules/sys_times (Depends-on): Add arg-nonnull.
7513         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
7514         * modules/sys_utsname (Depends-on): Add arg-nonnull.
7515         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
7516         * modules/time (Depends-on): Add arg-nonnull.
7517         (Makefile.am): Insert arg-nonnull.h into time.h.
7518         * modules/unistd (Depends-on): Add arg-nonnull.
7519         (Makefile.am): Insert arg-nonnull.h into unistd.h.
7520         * modules/wchar (Depends-on): Add arg-nonnull.
7521         (Makefile.am): Insert arg-nonnull.h into wchar.h.
7522         * modules/argv-iter (Depends-on): Add arg-nonnull.
7523         * tests/test-canonicalize.c (null_ptr): New function.
7524         (main): Use it.
7525         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
7526         (main): Use it.
7527         * tests/test-memmem.c (null_ptr): New function.
7528         (main): Use it.
7529         Reported by Jim Meyering.
7530
7531 2009-12-10  Bruno Haible  <bruno@clisp.org>
7532
7533         Use spaces for indentation, not tabs.
7534         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
7535         * m4/*.m4: Untabify.
7536         * build-aux/*.h: Untabify.
7537         * tests/**/*.[hc]: Untabify.
7538         * README: New section "Indent with spaces, not TABs", based on
7539         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
7540         * NEWS: Mention the change.
7541
7542 2009-12-10  Bruno Haible  <bruno@clisp.org>
7543
7544         pty test: Fix link error.
7545         * modules/pty-tests (Makefile.am): Add the default LDADD value to
7546         test_pty_LDADD.
7547
7548 2009-12-07  Simon Josefsson  <simon@josefsson.org>
7549
7550         * modules/pty: New file.
7551         * modules/pty-tests: New file.
7552         * m4/pty.m4: New file.
7553         * tests/test-pty.c: New file.
7554         * doc/glibc-headers/pty.texi: Modified.
7555         * doc/glibc-functions/forkpty.texi: Modified.
7556         * doc/glibc-functions/openpty.texi: Modified.
7557
7558 2009-12-10  Bruno Haible  <bruno@clisp.org>
7559
7560         Avoid syntax error in C++ mode.
7561         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
7562
7563 2009-12-10  Bruno Haible  <bruno@clisp.org>
7564
7565         Use sed with option -e.
7566         * gnulib-tool (func_version, func_emit_copyright_notice,
7567         func_emit_initmacro_end, func_import, func_create_testdir): Pass
7568         option -e to sed.
7569         * modules/link-warning (Makefile.am): Likewise.
7570
7571 2009-12-10  Jim Meyering  <meyering@redhat.com>
7572
7573         mgetgroups: do not write bytes beyond end of malloc'd buffer
7574         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
7575         username, we call getgroups with a one-element-shorter buffer,
7576         but still told it the length was original, max_n_groups.
7577
7578 2009-12-09  Eric Blake  <ebb9@byu.net>
7579
7580         cloexec: relax license
7581         * modules/cloexec (Maintainer): Add myself.
7582         (License): Use LGPL, not GPL.
7583
7584         link-warning: optimize generation
7585         * modules/link-warning (Makefile.am): Reduce process usage.
7586
7587 2009-12-09  Bruno Haible  <bruno@clisp.org>
7588
7589         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
7590         workaround was added on 2009-11-17.
7591
7592 2009-12-09  Jim Meyering  <meyering@redhat.com>
7593             Bruno Haible  <bruno@clisp.org>
7594
7595         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
7596         * modules/link-warning (Makefile.am): Make the comment-removing sed
7597         command more robust in the face of bootstrap-prepended comment lines.
7598
7599 2009-12-09  Bruno Haible  <bruno@clisp.org>
7600
7601         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
7602         most one group.
7603
7604 2009-12-09  Simon Josefsson <simon@josefsson.org>
7605             Bruno Haible  <bruno@clisp.org>
7606
7607         * build-aux/link-warning.h: Add copyright notice.
7608         * modules/link-warning (Makefile.am): Generate link-warning.h from
7609         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
7610         * NEWS: Mention change in link-warning module.
7611         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
7612         * modules/dirent (Makefile.am): Add dependency to dirent.h.
7613         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
7614         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
7615         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
7616         * modules/math (Makefile.am): Add dependency to math.h.
7617         * modules/search (Makefile.am): Add dependency to search.h.
7618         * modules/signal (Makefile.am): Add dependency to signal.h.
7619         * modules/spawn (Makefile.am): Add dependency to spawn.h.
7620         * modules/stdio (Makefile.am): Add dependency to stdio.h.
7621         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
7622         * modules/string (Makefile.am): Add dependency to string.h.
7623         * modules/strings (Makefile.am): Add dependency to strings.h.
7624         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
7625         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
7626         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
7627         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
7628         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
7629         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
7630         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
7631         * modules/unistd (Makefile.am): Add dependency to unistd.h.
7632         * modules/wchar (Makefile.am): Add dependency to wchar.h.
7633
7634 2009-12-09  Bruno Haible  <bruno@clisp.org>
7635
7636         fchdir: Optimize away rpl_fstat when possible.
7637         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
7638         REPLACE_OPEN_DIRECTORY.
7639         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
7640
7641 2009-12-09  Bruno Haible  <bruno@clisp.org>
7642
7643         * lib/fchdir.c: Update comment.
7644
7645 2009-12-09  Bruno Haible  <bruno@clisp.org>
7646
7647         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
7648
7649 2009-12-08  Eric Blake  <ebb9@byu.net>
7650
7651         fchdir: avoid memory leak on re-registration.
7652         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
7653
7654 2009-12-08  Jim Meyering  <meyering@redhat.com>
7655
7656         init.sh: avoid Solaris 10 /bin/sh portability problem
7657         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
7658         sourced script:
7659           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
7660           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
7661           bar
7662         tests/init.sh relied on that, accepting a --set-path=DIR argument,
7663         and two tests used that idiom.
7664         * tests/init.sh: Update suggested usage comments.
7665         (path_prepend_): New function, to be used in place
7666         of the --src-path=DIR option.
7667         (setup_): Move PATH-prepending code into path_prepend_.
7668         * tests/test-pread.sh: Adapt to new usage.
7669         * tests/test-xalloc-die.sh: Likewise.
7670
7671 2009-12-08  Simon Josefsson  <simon@josefsson.org>
7672
7673         * doc/gnulib.texi (Glibc pty.h): Add.
7674         * doc/glibc-functions/forkpty.texi: Add.
7675         * doc/glibc-functions/openpty.texi: Add.
7676         Suggested by Bruno Haible.
7677
7678 2009-12-08  Eric Blake  <ebb9@byu.net>
7679
7680         fchdir: fix logic bugs
7681         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
7682         * tests/test-fchdir.c (main): Enhance test.
7683         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
7684         is in use.
7685
7686         dup2: fix logic bugs
7687         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
7688         REPLACE_DUP2 to decide when rpl_dup2 is needed.
7689         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
7690         exists.
7691         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
7692
7693 2009-12-07  Eric Blake  <ebb9@byu.net>
7694
7695         unlink: fix m4 detection
7696         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
7697
7698         unistd-safer: add unit test
7699         * modules/unistd-safer-tests: New file.
7700         * tests/test-dup-safer.c: Likewise.
7701         * tests/test-cloexec.c (setmode): Avoid compiler warning.
7702         * tests/test-dup2.c (setmode): Likewise.
7703         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
7704
7705         cloexec: preserve text vs. binary across dup_cloexec
7706         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
7707         mode.
7708         * modules/dup2-tests (Depends-on): Add binary-io.
7709         * modules/cloexec-tests (Depends-on): Likewise.
7710         * tests/test-dup2.c (setmode, is_mode): New helpers.
7711         (main): Add tests that translation mode is preserved.
7712         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
7713         Reported by Bruno Haible.
7714
7715         mgetgroups: reduce duplicate listings
7716         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
7717         resulting array.
7718         * tests/test-chown.h (test_chown): Simplify client.
7719         * tests/test-lchown.h (test_lchown): Likewise.
7720
7721 2009-12-06  Bruno Haible  <bruno@clisp.org>
7722
7723         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
7724         value.
7725
7726 2009-12-06  Bruno Haible  <bruno@clisp.org>
7727
7728         * lib/progname.c: Include stdio.h, stdlib.h.
7729         (set_program_name): Reject a NULL argument.
7730
7731 2009-12-05  Eric Blake  <ebb9@byu.net>
7732
7733         pipe2-safer: new module
7734         * modules/pipe2-safer: New file.
7735         * lib/unistd-safer.h (pipe2_safer): New prototype.
7736         * lib/unistd--.h (pipe2): New wrapper.
7737         * lib/pipe-safer.c (pipe2_safer): New function.
7738         * modules/pipe (Depends-on): Add pipe2-safer.
7739         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
7740
7741         stdlib-safer: preserve cloexec flag for mkostemp[s]
7742         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
7743         fd_safer_flag.
7744
7745         unistd-safer: allow preservation of cloexec status via flag
7746         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
7747         prototypes.
7748         * lib/dup-safer.c (dup_safer_flag): New function.
7749         * lib/fd-safer.c (fd_safer_flag): Likewise.
7750         * modules/cloexec (configure.ac): Set witness.
7751
7752         test-dup2: enhance test
7753         * modules/dup2-tests (Depends-on): Add cloexec.
7754         * tests/test-dup2.c (main): Enhance test.
7755
7756         cloexec: add dup_cloexec
7757         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
7758         header and comments.
7759         * lib/cloexec.c (set_cloexec_flag): Add comments.
7760         (dup_cloexec): New function, with mingw implementation borrowed
7761         from...
7762         * lib/w32spawn.h (dup_noinherit): ...here.
7763         * modules/execute (Depends-on): Add cloexec.
7764         * modules/pipe (Depends-on): Likewise.
7765         * modules/cloexec (Depends-on): Add dup2.
7766         * modules/cloexec-tests (Files): New file.
7767         * tests/test-cloexec.c: Likewise.
7768
7769         test-xalloc-die: fix test for mingw
7770         * modules/xalloc-die-tests (Files): Add tests/init.sh.
7771         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
7772         directory and .exe suffix off argv[0] output.
7773
7774         test-fseeko: fix test for mingw
7775         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
7776         than undefining fseek, so test will pass on mingw.
7777
7778 2009-12-05  Bruno Haible  <bruno@clisp.org>
7779
7780         * lib/progname.h (set_program_name): Clarify specification.
7781         * lib/progname.c (set_program_name): Likewise.
7782         Reported by Jim Meyering.
7783
7784 2009-12-05  Jim Meyering  <meyering@redhat.com>
7785
7786         maint.mk: backslash-escape parens in default regexp
7787         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
7788         backslash-escape the literal parentheses.
7789
7790         maint.mk: news-date-check: use grep -E
7791         * top/maint.mk (today): Define a Make variable, not a...
7792         (news-date-check): ...shell variable.
7793         (news-date-regexp): Use the Make variable.
7794         Use grep's -E option.  Change the failing diagnostic to mention
7795         the variable, $(news-date-regexp).
7796
7797 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
7798
7799         maintainer-makefile: allow customization of NEWS entry format
7800         * top/maint.mk (news-date-regexp): New overridable variable.
7801         (news-date-check): Use it.
7802
7803 2009-12-04  Eric Blake  <ebb9@byu.net>
7804
7805         mgetgroups: add xgetgroups, and avoid ENOSYS failures
7806         * lib/mgetgroups.h (xgetgroups): New prototype.
7807         * lib/mgetgroups.c (xgetgroups): New wrapper.
7808         (mgetgroups): Handle ENOSYS.
7809         * modules/mgetgroups (Depends-on): Add realloc.
7810         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
7811
7812         mgetgroups: avoid argument promotion issues with -1
7813         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
7814         for invalid gid_t.
7815         * tests/test-chown.h (getegid, test_chown): Likewise.
7816         * tests/test-lchown.h (getegid, test_lchown): Likewise.
7817
7818 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
7819
7820         exclude: Fix header file problems.
7821         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
7822
7823 2009-12-01  Jim Meyering  <meyering@redhat.com>
7824
7825         fts: fts_open: do not let an empty string cause immediate failure
7826         This is required in support of GNU rm, for which the command
7827         "rm A '' B" must process and remove both A and B, in spite of
7828         the empty string argument.
7829         * lib/fts.c (fts_open): Do not let the presence of an empty string
7830         cause fts_open to fail immediately.  Most fts-using tools must be
7831         able to process all arguments, in order, and can be expected to
7832         diagnose such arguments themselves.
7833
7834 2009-11-30  Eric Blake  <ebb9@byu.net>
7835
7836         utimens: fix compilation error
7837         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
7838         Declare variable at right scope.
7839
7840 2009-11-29  Jim Meyering  <meyering@redhat.com>
7841
7842         bootstrap: handle perl-5.11's changed --version output
7843         * build-aux/bootstrap (get_version): Handle perl separately,
7844         since perl-5.11's --version output is different.
7845
7846 2009-11-28  Jim Meyering  <meyering@redhat.com>
7847
7848         userspec: depend on the inttostr module, too
7849         * modules/userspec (Depends-on): Add inttostr.
7850
7851         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
7852         * lib/userspec.c (parse_with_separator): Do not accept a user ID
7853         number of MAXUID when it evaluates to (uid_t) -1.
7854         Likewise for group ID.  Reported by Matt McCutchen in
7855         <http://savannah.gnu.org/bugs/?28113>
7856
7857         userspec: reformat to use spaces, not TABs
7858         * lib/userspec.c: Expand TABs to spaces.
7859         Add Emacs' "indent-tabs-mode: nil" hint.
7860
7861 2009-11-27  Eric Blake  <ebb9@byu.net>
7862
7863         getopt-gnu: flush out another BSD bug
7864         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
7865         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
7866         flush out BSD bug.
7867         * tests/test-getopt.h (test_getopt): End lists with NULL.
7868         * tests/test-getopt_long.h (test_getopt_long): Likewise.
7869         (test_getopt_long_posix): Enhance test.
7870         * modules/getopt-posix-tests (Depends-on): Add stdbool.
7871         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
7872         getopt-gnu.
7873         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7874         Likewise.
7875
7876 2009-11-27  Simon Josefsson  <simon@josefsson.org>
7877
7878         * modules/idpriv-droptemp-tests (Notice): Fix text.
7879
7880 2009-11-27  Jim Meyering  <meyering@redhat.com>
7881
7882         test-xalloc-die: avoid spurious failure due to libtool argv difference
7883         In a libtool-enabled project, this test would fail due to a difference
7884         in the emitted program name, e.g.,
7885         -test-xalloc-die: memory exhausted
7886         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
7887         Use program to avoid that.
7888         * modules/xalloc-die-tests (Depends-on): Add progname.
7889         * tests/test-xalloc-die.c: Include progname.h".
7890         (program_name): Remove decl.
7891         (main): Call set_program_name.
7892         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
7893
7894 2009-11-26  Richard Jones  <rjones@redhat.com>
7895
7896         w32sock: leave win32 error in place.
7897         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
7898
7899 2009-11-26  Eric Blake  <ebb9@byu.net>
7900
7901         init.sh: suggest to use skip_ and fail_ functions in comments
7902         * tests/init.sh: Add a sentence.
7903
7904 2009-11-25  Bruno Haible  <bruno@clisp.org>
7905
7906         init.sh: add documentation in comments
7907         * tests/init.sh: Add some developer and user documentation.
7908
7909 2009-11-26  Jim Meyering  <meyering@redhat.com>
7910
7911         init.sh: accommodate even those who specify bogus srcdir manually
7912         * tests/init.sh: Normally, srcdir is guaranteed by automake and
7913         configure-time tests to be sanitized, so that there is no need to
7914         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
7915         (with no double quotes) suffices.  However, since tests may be
7916         invoked manually, and since you may explicitly set srcdir to the
7917         name of a directory containing spaces, do quote its uses here.
7918         * tests/test-pread.sh: Likewise.
7919         Suggested by Bruno Haible.
7920
7921         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
7922         * tests/test-pread.sh: Write no data into the pipe, because
7923         test-pread actually reads none.  This avoids a diagnostic,
7924         "bash: echo: write error: Broken pipe", that arises in the unusual
7925         event something is ignoring SIGPIPE, and might be interpreted
7926         as some sort of failure.  Reported by Bruno Haible.
7927
7928 2009-11-25  Jim Meyering  <meyering@redhat.com>
7929
7930         test-pread: cover failure with ESPIPE and EINVAL
7931         * tests/test-pread.c (main): Test for failure, too.
7932         * tests/test-pread.sh: Invoke with stdin on a pipe.
7933         Suggested by Eric Blake.
7934
7935         pread: improvement and fix
7936         * modules/pread (Depends-on): Depend on lseek, for portability to
7937         e.g., mingw.  Suggested by Eric Blake.
7938         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
7939
7940         unistd.in.h: correct declaration of pread
7941         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
7942         Reported by Richard W.M. Jones.
7943
7944         test-pread.sh: distribute the test script
7945         * modules/pread-tests (Files): Include test-pread.sh.
7946
7947         test-pread.sh: clean up
7948         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
7949         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
7950         That is unnecessary, since it's always ".".
7951         Suggestion from Eric Blake.
7952
7953         test-pread.sh: make executable
7954         * tests/test-pread.sh: Set executable bit.
7955         Reported by Eric Blake.
7956
7957         correct typo in test-pread.sh
7958         * tests/test-pread.sh: Add #! line.
7959
7960         test pread
7961         * tests/test-pread.c: New file.
7962         * tests/test-pread.sh: Likewise.
7963         * modules/pread-tests: Likewise.
7964
7965         pread: new module
7966         * modules/pread: New file.
7967         * lib/unistd.in.h (pread): Define/declare.
7968         * lib/pread.c (pread): New file.
7969         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
7970         * modules/unistd (Makefile.am): Substitute witnesses.
7971         * doc/posix-functions/pread.texi (pread): Update.
7972         * MODULES.html.sh: Add pread.
7973
7974 2009-11-25  Jim Meyering  <meyering@redhat.com>
7975
7976         tests/init.sh: new file to be used via most *.sh tests
7977         * tests/init.sh: New file.
7978
7979 2009-11-25  Eric Blake  <ebb9@byu.net>
7980
7981         utimens: work around older Linux failure with symlinks
7982         * lib/utimens.c (lutimensat_works_really): New variable.
7983         (fdutimens, lutimens): Use it to manage kernels that support
7984         nanosecond times on files, but not on symlinks.
7985         Reported by OndÅ™ej Vašík.
7986
7987         utimes: fix configure grammar
7988         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
7989
7990 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
7991
7992         regex: Fix fastmap for multibyte character ranges.
7993         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
7994         characters when a multibyte character range is included.
7995
7996 2009-11-22  Andy Wingo  <wingo@pobox.com>
7997
7998         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
7999         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
8000
8001 2009-11-24  Bruno Haible  <bruno@clisp.org>
8002
8003         doc: Most *_l functions exist in MacOS X 10.5.
8004         * doc/posix-functions/duplocale.texi: Update platforms list.
8005         * doc/posix-functions/freelocale.texi: Likewise.
8006         * doc/posix-functions/newlocale.texi: Likewise.
8007         * doc/posix-functions/uselocale.texi: Likewise.
8008         * doc/posix-functions/isalnum_l.texi: Likewise.
8009         * doc/posix-functions/isalpha_l.texi: Likewise.
8010         * doc/posix-functions/isblank_l.texi: Likewise.
8011         * doc/posix-functions/iscntrl_l.texi: Likewise.
8012         * doc/posix-functions/isdigit_l.texi: Likewise.
8013         * doc/posix-functions/isgraph_l.texi: Likewise.
8014         * doc/posix-functions/islower_l.texi: Likewise.
8015         * doc/posix-functions/isprint_l.texi: Likewise.
8016         * doc/posix-functions/ispunct_l.texi: Likewise.
8017         * doc/posix-functions/isspace_l.texi: Likewise.
8018         * doc/posix-functions/isupper_l.texi: Likewise.
8019         * doc/posix-functions/iswalnum_l.texi: Likewise.
8020         * doc/posix-functions/iswalpha_l.texi: Likewise.
8021         * doc/posix-functions/iswblank_l.texi: Likewise.
8022         * doc/posix-functions/iswcntrl_l.texi: Likewise.
8023         * doc/posix-functions/iswctype_l.texi: Likewise.
8024         * doc/posix-functions/iswdigit_l.texi: Likewise.
8025         * doc/posix-functions/iswgraph_l.texi: Likewise.
8026         * doc/posix-functions/iswlower_l.texi: Likewise.
8027         * doc/posix-functions/iswprint_l.texi: Likewise.
8028         * doc/posix-functions/iswpunct_l.texi: Likewise.
8029         * doc/posix-functions/iswspace_l.texi: Likewise.
8030         * doc/posix-functions/iswupper_l.texi: Likewise.
8031         * doc/posix-functions/iswxdigit_l.texi: Likewise.
8032         * doc/posix-functions/isxdigit_l.texi: Likewise.
8033         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
8034         * doc/posix-functions/strcasecmp_l.texi: Likewise.
8035         * doc/posix-functions/strcoll_l.texi: Likewise.
8036         * doc/posix-functions/strfmon_l.texi: Likewise.
8037         * doc/posix-functions/strftime_l.texi: Likewise.
8038         * doc/posix-functions/strncasecmp_l.texi: Likewise.
8039         * doc/posix-functions/strxfrm_l.texi: Likewise.
8040         * doc/posix-functions/tolower_l.texi: Likewise.
8041         * doc/posix-functions/toupper_l.texi: Likewise.
8042         * doc/posix-functions/towctrans_l.texi: Likewise.
8043         * doc/posix-functions/towlower_l.texi: Likewise.
8044         * doc/posix-functions/towupper_l.texi: Likewise.
8045         * doc/posix-functions/wcscoll_l.texi: Likewise.
8046         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
8047         * doc/posix-functions/wctrans_l.texi: Likewise.
8048         * doc/posix-functions/wctype_l.texi: Likewise.
8049         * doc/glibc-functions/strptime_l.texi: Likewise.
8050         * doc/glibc-functions/strtod_l.texi: Likewise.
8051         * doc/glibc-functions/strtof_l.texi: Likewise.
8052         * doc/glibc-functions/strtol_l.texi: Likewise.
8053         * doc/glibc-functions/strtold_l.texi: Likewise.
8054         * doc/glibc-functions/strtoll_l.texi: Likewise.
8055         * doc/glibc-functions/strtoul_l.texi: Likewise.
8056         * doc/glibc-functions/strtoull_l.texi: Likewise.
8057         * doc/glibc-functions/wcsftime_l.texi: Likewise.
8058         * doc/glibc-functions/wcstod_l.texi: Likewise.
8059         * doc/glibc-functions/wcstof_l.texi: Likewise.
8060         * doc/glibc-functions/wcstol_l.texi: Likewise.
8061         * doc/glibc-functions/wcstold_l.texi: Likewise.
8062         * doc/glibc-functions/wcstoll_l.texi: Likewise.
8063         * doc/glibc-functions/wcstoul_l.texi: Likewise.
8064         * doc/glibc-functions/wcstoull_l.texi: Likewise.
8065
8066 2009-11-24  Bruno Haible  <bruno@clisp.org>
8067
8068         duplocale: Fix logic bug.
8069         * lib/duplocale.c: Don't include <langinfo.h>.
8070         (_NL_LOCALE_NAME): Remove macro.
8071         (rpl_duplocale): Use setlocale instead of nl_langinfo.
8072         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
8073
8074 2009-11-23  Jim Meyering  <meyering@redhat.com>
8075
8076         test-update-copyright: don't hard-code /usr/bin/perl
8077         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
8078         perl to print the current year.  Gilles Espinasse reported that
8079         the replaced use of perl was hard-coded as /usr/bin/perl.
8080
8081 2009-11-23  Bruno Haible  <bruno@clisp.org>
8082
8083         duplocale: Add support for glibc 2.3.x.
8084         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
8085
8086 2009-11-22  Bruno Haible  <bruno@clisp.org>
8087
8088         vasnprintf: Tiny optimization.
8089         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
8090         MacOS X.
8091
8092 2009-11-22  Bruno Haible  <bruno@clisp.org>
8093
8094         Tests for module 'duplocale'.
8095         * modules/duplocale-tests: New file.
8096         * tests/test-duplocale.c: New file.
8097
8098         New module 'duplocale'.
8099         * m4/duplocale.m4: New file.
8100         * lib/locale.in.h (duplocale): New declaration.
8101         * lib/duplocale.c: New file.
8102         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
8103         gl_LOCALE_H_DEFAULTS): New macros.
8104         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
8105         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
8106         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
8107         REPLACE_DUPLOCALE.
8108         * modules/duplocale: New file.
8109         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
8110
8111 2009-11-22  Bruno Haible  <bruno@clisp.org>
8112
8113         * modules/locale-tests (configure.ac): Test for newlocale function.
8114         * tests/test-locale.c: When the system has extended locale functions,
8115         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
8116
8117         locale: Make locale_t available when possible.
8118         * lib/locale.in.h: Include <xlocale.h> when it exists.
8119         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
8120         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
8121         * modules/locale (Depends-on): Add extensions.
8122         (Makefile.am): Also substitute HAVE_XLOCALE_H.
8123         * doc/posix-headers/locale.texi: Document the problem with locale_t.
8124
8125 2009-11-22  Bruno Haible  <bruno@clisp.org>
8126
8127         Add comments.
8128         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
8129         invocation.
8130         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
8131         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
8132         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
8133
8134 2009-11-22  Bruno Haible  <bruno@clisp.org>
8135
8136         error: account for the possibility of freopen (stdout).
8137         * lib/error.c: Include <unistd.h>.
8138         (flush_stdout): New function, extracted from error and error_at_line.
8139         Determine stdout's fd dynamically.
8140         (error, error_at_line): Invoke flush_stdout.
8141         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
8142         * modules/error (Depends-on): Add unistd.
8143
8144 2009-11-22  Bruno Haible  <bruno@clisp.org>
8145
8146         diffseq: Add comment.
8147         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
8148
8149 2009-11-22  Jim Meyering  <meyering@redhat.com>
8150
8151         c-stack: avoid defining an unused static function
8152         * lib/c-stack.c (find_stack_direction): Do not define this function
8153         when it will not be used.
8154
8155         diffseq: avoid spurious gcc warnings
8156         * lib/diffseq.h (IF_LINT2): Define.
8157         (compareseq): Use it to initialize two members of "part".
8158         This avoids two used-uninitialized warnings.
8159
8160 2009-11-21  Jim Meyering  <meyering@redhat.com>
8161
8162         c-stack: avoid "ignoring return value of `write'" warning
8163         * lib/c-stack.c: Include "ignore-value.h".
8164         (die): Explicitly ignore each write return value.
8165         * modules/c-stack (Depends-on): Add ignore-value.
8166
8167 2009-11-21  Bruno Haible  <bruno@clisp.org>
8168
8169         diffseq: reduce scope of variable 'best'.
8170         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
8171         variable, earlier used for two different purposes.
8172
8173 2009-11-21  Jim Meyering  <meyering@redhat.com>
8174
8175         diffseq: remove useless assignment to "best"
8176         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
8177         assignment.  At that point "best" is already guaranteed to be zero.
8178
8179 2009-11-20  Eric Blake  <ebb9@byu.net>
8180
8181         build: mention ftp redirector in release announcements
8182         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
8183         values that used to come from cfg.mk; mention FTP redirect URL.
8184         * build-aux/announce-gen: Mention the mirror list.
8185         Suggested by Karl Berry.
8186
8187         nanosleep: improve port to mingw
8188         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
8189         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
8190         LIB_NANOSLEEP, but only when needed.
8191         * modules/select (Link): Document LIBSOCKET.
8192         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
8193         enough.
8194
8195         nanosleep: work around cygwin bug
8196         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
8197         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
8198         bug.
8199         (getnow): Delete, not needed.
8200         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
8201         LIB_CLOCK_GETTIME.
8202         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
8203         clock-time, gettime.
8204         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
8205         bug.
8206         * modules/nanosleep-tests: New test.
8207         * tests/test-nanosleep.c: New file.
8208
8209         sleep: work around cygwin bug
8210         * lib/sleep.c (rpl_sleep): Work around the bug.
8211         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
8212         (gl_PREREQ_SLEEP): Delete unused macro.
8213         * modules/sleep (Depends-on): Add verify.
8214         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
8215         * modules/unistd (Makefile.am): Substitute witness.
8216         * lib/unistd.in.h (sleep): Update prototype.
8217         * doc/posix-functions/sleep.texi (sleep): Document the bug.
8218         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
8219         * modules/sleep-tests (Depends-on): Check for alarm.
8220
8221 2009-11-20  Jim Meyering  <meyering@redhat.com>
8222
8223         maint.mk: improve sc_prohibit_magic_number_exit
8224         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
8225         so it does not match uses like System.exit(1).
8226         Add comments showing how to correct all offenders.
8227
8228 2009-11-19  Eric Blake  <ebb9@byu.net>
8229
8230         xalloc-die-tests: add missing library
8231         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
8232
8233         test-xvasprintf: silence compiler warnings
8234         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
8235         empty string from gcc.
8236
8237 2009-11-19  Jim Meyering  <meyering@redhat.com>
8238
8239         xfreopen: new module, from coreutils
8240         * modules/xfreopen: New module.
8241         * lib/xfreopen.c: New file.
8242         * lib/xfreopen.h: New file.
8243         * MODULES.html.sh (File stream based Input/Output"): Add it.
8244
8245 2009-11-19  Eric Blake  <ebb9@byu.net>
8246
8247         manywarnings: depend on warnings
8248         * modules/manywarnings (Depends-on): Add warnings.
8249
8250         build: avoid compiler warnings
8251         * lib/select.c (rpl_select): Delete unused variable.
8252         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
8253
8254 2009-11-18  Eric Blake  <ebb9@byu.net>
8255
8256         tests: avoid false negative with --with-packager
8257         * tests/test-version-etc.sh: Discard packager information.
8258         * tests/test-argp-version-etc-1.sh: Likewise.
8259         Reported by Mike Frysinger.
8260
8261         utimens: fix regression on Solaris
8262         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
8263         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
8264         can only change fd timestamps via futimesat.  Instead, use an
8265         additional witness macro to avoid BSD bug.
8266         Reported by Jim Meyering.
8267
8268 2009-11-17  Eric Blake  <ebb9@byu.net>
8269
8270         usleep: use it to simplify tests
8271         * modules/stat-time-tests (Depends-on): Add usleep.
8272         (configure.ac): Drop usleep check.
8273         * modules/chown-tests (Depends-on, configure.ac): Likewise.
8274         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
8275         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
8276         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
8277         * modules/openat-tests (Depends-on, configure.ac): Likewise.
8278         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
8279         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
8280         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
8281         Likewise.
8282         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
8283         * tests/test-lchown.h (nap): Likewise.
8284         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
8285         * tests/test-stat-time.c (nap): Likewise.
8286         * tests/test-utimens-common.h (nap): Update comments.
8287
8288         usleep: new module
8289         * modules/usleep: New file.
8290         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
8291         * lib/usleep.c (usleep): Likewise.
8292         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
8293         * modules/unistd (Makefile.am): Substitute witnesses.
8294         * lib/unistd.in.h (usleep): Add declaration.
8295         * doc/pastposix-functions/usleep.texi (usleep): Document this.
8296         * MODULES.html.sh (Date and time): Likewise.
8297         * modules/usleep-tests (Depends-on): New test.
8298         * tests/test-usleep.c: New file.
8299
8300         chown: work around OpenBSD bug
8301         * lib/chown.c (rpl_chown): Work around the bug.
8302         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
8303         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
8304         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
8305         * modules/chown (Depends-on): Add stdbool.
8306         * modules/lchown (Depends-on): Likewise.
8307         * doc/posix-functions/chown.texi (chown): Document the bug.
8308         * doc/posix-functions/lchown.texi (lchown): Likewise.
8309         * tests/test-lchown.h (test_chown): Relax test.
8310
8311         mkstemp: avoid conflict with C++ keyword template
8312         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
8313         * lib/mkostemp.c (mkostemp): Likewise.
8314         * lib/mkostemps.c (mkostemps): Likewise.
8315         * lib/mkstemp.c (mkstemp): Likewise.
8316         * lib/mkstemps.c (mkstemps): Likewise.
8317
8318         xalloc-die-tests: optimize
8319         * tests/test-xalloc-die.sh: Reduce number of processes.
8320
8321 2009-11-17  Simon Josefsson  <simon@josefsson.org>
8322
8323         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
8324         patch from ludo@gnu.org (Ludovic Courtès).
8325
8326 2009-11-17  Jim Meyering  <meyering@redhat.com>
8327
8328         version-etc: use proper license string
8329         * modules/version-etc (License): Use LGPL, not LGPLv3+.
8330         * modules/version-etc-fsf: Likewise.
8331
8332 2009-11-17  Simon Josefsson  <simon@josefsson.org>
8333
8334         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
8335         printed to stdout.  Deal with EOL differences.
8336
8337 2009-11-17  Eric Blake  <ebb9@byu.net>
8338
8339         unsetenv: work around Solaris bug
8340         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
8341         * lib/unsetenv.c (rpl_unsetenv): Work around it.
8342         Reported by Jim Meyering.
8343
8344         vasnprintf: avoid compiler warnings
8345         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
8346         variables.
8347         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
8348
8349 2009-11-17  Simon Josefsson  <simon@josefsson.org>
8350
8351         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
8352         settings since xalloc-die is no longer the self test,
8353         xalloc-die.sh is.
8354
8355 2009-11-17  Jim Meyering  <meyering@redhat.com>
8356
8357         test-xalloc-die.sh: make the code agree with the commit log
8358         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
8359         at the end, just in case you happen to have a test-xalloc-die
8360         program in some other PATH directory.
8361
8362         test-xalloc-die.sh: fix a portability bug
8363         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
8364         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
8365         Otherwise, argv[0] (as often seen in diagnostics) would be too
8366         system-dependent, sometimes with, and sometimes without the leading "./".
8367
8368         version-etc-fsf: relax license to LGPLv3+
8369         * modules/version-etc-fsf (License): Relax license.
8370
8371 2009-11-16  Eric Blake  <ebb9@byu.net>
8372
8373         xalloc-die-tests: avoid printing null pointer
8374         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
8375         shell script.
8376         * tests/test-xalloc-die.c (program_name): Declare.
8377         * tests/test-xalloc-die.sh (tmpfiles): New file.
8378
8379         setenv, unsetenv: work around various bugs
8380         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
8381         (setenv) [HAVE_SETENV]: Work around bugs.
8382         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
8383         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
8384         for bugs.
8385         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
8386         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
8387         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
8388         * modules/stdlib (Makefile.am): Update substitutions.
8389         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
8390         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
8391         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
8392         * modules/setenv-tests: New test.
8393         * modules/unsetenv-tests: Likewise.
8394         * tests/test-setenv.c: New file.
8395         * tests/test-unsetenv.c: Likewise.
8396
8397 2009-11-16  Jim Meyering  <meyering@redhat.com>
8398
8399         version-etc: relax license to LGPLv3+
8400         * modules/version-etc (License): Relax license.
8401
8402         better AC_REQUIRE expanded-before-required-warning avoidance
8403         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
8404         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
8405         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
8406         which is no longer needed.
8407
8408 2009-11-16  Eric Blake  <ebb9@byu.net>
8409
8410         test-freading: clean up temporary file
8411         * tests/test-freading.c (main): Remove file on success, and use
8412         ASSERT more liberally.
8413         Reported by Jim Meyering.
8414
8415 2009-11-16  Jim Meyering  <meyering@redhat.com>
8416
8417         avoid new AC_REQUIRE expanded-before-required warnings
8418         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
8419         merely using it.
8420         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
8421         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
8422
8423 2009-11-15  Simon Josefsson  <simon@josefsson.org>
8424
8425         * tests/test-xalloc-die.c: New file.
8426         * modules/xalloc-die-tests: New file.
8427         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
8428         XFAIL_TESTS so it can be appended by modules.
8429
8430 2009-11-15  Simon Josefsson  <simon@josefsson.org>
8431
8432         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
8433         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
8434
8435 2009-11-14  Eric Blake  <ebb9@byu.net>
8436
8437         fnmatch: avoid compiler warning
8438         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
8439         to silence compiler warning about mismatch signedness in ?:.
8440         Reported by Robert Millan.
8441
8442         intprops: add double-inclusion guard
8443         * lib/intprops.h: Allow idempotent includes.
8444         Suggested by Bruce Korb.
8445
8446         openat: detect Solaris fchownat bug
8447         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
8448         penalizing glibc chownat when only lchownat is broken.
8449         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
8450         trailing slash bugs.
8451         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
8452         * modules/openat-tests (Files): Include more files.
8453         (Depends-on): Add mgetgroups, sleep, stat-time.
8454         (configure.ac): Add additional checks.
8455         (Makefile.am): Build new test.
8456         * tests/test-fchownat.c: New file.
8457
8458         lchown: detect Solaris and FreeBSD bug
8459         * lib/lchown.c (rpl_lchown): Work around bug.
8460         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
8461         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8462         * modules/unistd (Makefile.am): Populate it.
8463         * lib/unistd.in.h (lchown): Update declaration.
8464         * doc/posix-functions/lchown.texi (lchown): Document the bug.
8465         * modules/lchown-tests: New file.
8466         * tests/test-lchown.h (test_lchown): Likewise.
8467         * tests/test-lchown.c (main): Likewise.
8468
8469         chown: detect Solaris and FreeBSD bug
8470         * lib/chown.c (rpl_chown): Work around bug.
8471         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
8472         (gl_PREREQ_CHOWN): Delete.
8473         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8474         * modules/unistd (Makefile.am): Populate it.
8475         * lib/unistd.in.h (chown): Update declaration.
8476         * lib/lchown.c (chown): Update client.
8477         * modules/lchown (Depends-on): Add lstat.
8478         * doc/posix-functions/chown.texi (chown): Document the bug.
8479         * doc/posix-functions/getgroups.texi (getgroups): Document
8480         getgroups pitfall.
8481         * modules/chown-tests: New file.
8482         * tests/test-chown.h (test_chown): Likewise.
8483         * tests/test-chown.c (main): Likewise.
8484
8485 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
8486
8487         gnulib-tool: correctly detect absence of m4 directories
8488         * gnulib-tool: Avoid extra newline on data passed to wc -l.
8489
8490 2009-11-14  Jim Meyering  <meyering@redhat.com>
8491
8492         maint.mk: Prohibit inclusion of "xalloc.h" without use.
8493         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
8494
8495 2009-11-14  John W. Eaton  <jwe@gnu.org>
8496
8497         strftime.h: wrap funtion declaration in extern "C" block
8498         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
8499
8500 2009-11-13  Eric Blake  <ebb9@byu.net>
8501
8502         getgroups: avoid compiler warning
8503         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
8504
8505         getgroups: work around FreeBSD bug
8506         * lib/getgroups.c (rpl_getgroups): Work around the bug.
8507         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
8508         * doc/posix-functions/getgroups.texi (getgroups): Document it.
8509         * tests/test-getgroups.c (main): Fix buffer overrun.
8510
8511         getgroups: avoid compilation failure
8512         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
8513         * modules/getgroups (Depends-on): Add stdint.
8514
8515 2009-11-13  Jim Meyering  <meyering@redhat.com>
8516
8517         test-getgroups: avoid compilation failure
8518         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
8519
8520 2009-11-13  Eric Blake  <ebb9@byu.net>
8521
8522         mgetgroups: new module, taken from coreutils
8523         * modules/mgetgroups: New file.
8524         * lib/mgetgroups.h: Likewise.
8525         * lib/mgetgroups.c (mgetgroups): Likewise.
8526         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
8527         * MODULES.html.sh (Users and groups): Mention it.
8528
8529         getgroups: don't expose GETGROUPS_T to user
8530         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
8531         an element at a time if GETGROUPS_T is wrong size.
8532         * lib/getugroups.h (getugroups): Change signature.
8533         * lib/unistd.in.h (getgroups): Likewise.
8534         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
8535         signature needs fixing.
8536         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
8537         AC_TYPE_GETGROUPS.
8538         * modules/group-member (Depends-on): Add getgroups.
8539         * lib/group-member.c (group_info, get_group_info): Use gid_t.
8540         (group_member): Rely on getgroups replacement.
8541         * lib/getugroups.c (getugroups): Use gid_t.
8542         * tests/test-getgroups.c (main): Likewise.
8543         * NEWS: Mention the signature change.
8544         * doc/posix-functions/getgroups.texi (getgroups): Mention the
8545         problem with signature.
8546         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
8547         GETGROUPS_T is still useful for setgroups.
8548
8549         getgroups, getugroups: provide stubs for mingw
8550         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
8551         * lib/getugroups.c (getugroups): Likewise.
8552         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
8553         function.  Modernize replacement scheme.
8554         (gl_PREREQ_GETGROUPS): Delete.
8555         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
8556         * modules/getgroups (configure.ac): Declare witness.
8557         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
8558         * modules/unistd (Depends-on): Substitute witness.
8559         * lib/unistd.in.h (getgroups): Declare replacement.
8560
8561         getgroups: avoid calling exit
8562         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
8563         drop xalloc.
8564         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
8565         dependencies.
8566         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
8567         exiting, in the rare case of malloc failure.
8568
8569         getgroups: fix logic error
8570         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
8571         has more than 20 groups.
8572         * modules/getgroups-tests: New test.
8573         * tests/test-getgroups.c: New file.
8574
8575 2009-11-13  Simon Josefsson  <simon@josefsson.org>
8576
8577         * tests/test-base64.c: Improve.
8578
8579 2009-11-13  Simon Josefsson  <simon@josefsson.org>
8580
8581         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
8582         Blake <ebb9@byu.net>.
8583
8584 2009-11-13  Simon Josefsson  <simon@josefsson.org>
8585
8586         * tests/test-xvasprintf.c: Add %s%s related checks.
8587
8588 2009-11-12  Eric Blake  <ebb9@byu.net>
8589
8590         version-etc: match standards.texi style
8591         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
8592         and use <> only for URLs.
8593
8594 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
8595
8596         fts: do not fail on a submount during traversal
8597         * lib/fts.c (fts_build): Read the stat info again after opening
8598         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
8599         Original report at http://bugzilla.redhat.com/501848.
8600
8601 2009-11-12  Jim Meyering  <meyering@redhat.com>
8602
8603         bootstrap: sync from coreutils
8604         * build-aux/bootstrap (bootstrap_epilogue): New function.
8605         Use git_modules_config in one more place.  This make bootstrap's
8606         --gnulib-srcdir option more useful for testing.
8607
8608         bootstrap: generalize autoheader check
8609         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
8610         AC_CONFIG_HEADERS.
8611
8612 2009-11-11  Eric Blake  <ebb9@byu.net>
8613
8614         mkfifoat: use new modules for Solaris and BSD bugs
8615         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
8616         * lib/mkfifoat.c (mknodat): Split...
8617         * lib/mknodat.c (mknodat): ...into new file.
8618         * modules/mkfifoat (Files): Ship new file.
8619         (Depends-on): Add mkfifo, mknod.
8620         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
8621         (Depends-on): Add symlink.
8622         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
8623         redundant with test_mkfifo.h.
8624         (do_mkfifoat, do_mknodat): New helpers.
8625
8626         mknod: new module
8627         * modules/mknod: New file.
8628         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
8629         * lib/mknod.c (mknod): Likewise.
8630         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
8631         defaults.
8632         * modules/sys_stat (Makefile.am): Substitute them.
8633         * lib/sys_stat.in.h (mknod): Declare replacement.
8634         * MODULES.html.sh (Support for systems lacking POSIX:2008):
8635         Document it.
8636         * doc/posix-functions/mknod.texi (mknod): Likewise.
8637         * modules/mknod-tests: New test.
8638         * tests/test-mknod.c: Likewise.
8639
8640         mkfifo: new module
8641         * modules/mkfifo: New file.
8642         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
8643         * lib/mkfifo.c (mkfifo): Likewise.
8644         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
8645         defaults.
8646         * modules/sys_stat (Makefile.am): Substitute them.
8647         * lib/sys_stat.in.h (mkfifo): Declare replacement.
8648         * MODULES.html.sh (Support for systems lacking POSIX:2008):
8649         Document it.
8650         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
8651         * modules/mkfifo-tests: New test.
8652         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
8653         from test-mkfifoat.c.
8654         * tests/test-mkfifo.c: New file.
8655
8656         readlink: detect FreeBSD bug
8657         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
8658         slash on symlink.
8659         * doc/posix-functions/readlink.texi (readlink): Document the bug.
8660         * tests/test-readlink.h (test_readlink): Enhance test.
8661
8662         symlink: detect FreeBSD bug
8663         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
8664         slash on symlink.
8665         * doc/posix-functions/symlink.texi (symlink): Document the bug.
8666         * tests/test-symlink.h (test_symlink): Enhance test.
8667
8668 2009-11-10  Eric Blake  <ebb9@byu.net>
8669
8670         link: detect FreeBSD bug
8671         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
8672         symlink.
8673         * doc/posix-functions/link.texi (link): Document the bug.
8674         * tests/test-link.h (test_link): Enhance test.
8675         * tests/test-linkat.c (main): Update caller.
8676
8677         unlink, remove: detect FreeBSD bug
8678         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
8679         slash on symlink.
8680         * doc/posix-functions/unlink.texi (unlink): Document the bug.
8681         * doc/posix-functions/remove.texi (remove): Likewise.
8682         * tests/test-unlink.h (test_unlink): Enhance test.
8683         * tests/test-remove.c (main): Likewise.
8684
8685 2009-11-09  Eric Blake  <ebb9@byu.net>
8686
8687         rename: detect FreeBSD bug
8688         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
8689         slash on symlink.
8690         * modules/renameat-tests (Depends-on): Add filenamecat.
8691         * tests/test-rename.h (test_rename): Allow one more errno.
8692         * tests/test-renameat.c (main): Likewise.
8693         * doc/posix-functions/rename.texi (rename): Document the bug.
8694
8695         open: detect FreeBSD bug
8696         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
8697         symlink.
8698         * doc/posix-functions/open.texi (open): Document the bug.
8699         * doc/posix-functions/utimes.texi (utimes): Likewise.
8700         * tests/test-open.h (test_open): Add parameters, and test symlink
8701         handling.
8702         * tests/test-open.c (main): Adjust caller.
8703         * tests/test-fcntl-safer.c (main): Likewise.
8704         * modules/open-tests (Depends-on): Add stdbool, symlink.
8705         * modules/fcntl-safer-tests (Depends-on): Likewise.
8706         * tests/test-openat.c (main): Add test-open tests.
8707
8708         stat: detect FreeBSD bug
8709         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
8710         symlink.
8711         * doc/posix-functions/stat.texi (stat): Document the bug.
8712         * tests/test-stat.h (test_stat_func): Add argument.
8713         * tests/test-stat.c (main): Adjust caller.
8714         * tests/test-fstatat.c (main): Likewise.
8715         * modules/stat-tests (Depends-on): Add stdbool, symlink.
8716         Reported by Jim Meyering.
8717
8718 2009-11-09  James Youngman  <jay@gnu.org>
8719
8720         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
8721         * lib/strftime.c: Correct placement of #include "ignore-value.h".
8722
8723 2009-11-08  Jim Meyering  <meyering@redhat.com>
8724
8725         utimens: remove invalid futimesat call
8726         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
8727         It used the file descriptor of the target file as the DIR_FD
8728         parameter and NULL as the file name.  That caused failure with
8729         errno == EFAULT on FreeBSD-8.0-rc2
8730
8731 2009-11-07  Eric Blake  <ebb9@byu.net>
8732
8733         fflush, freadseek: use fseeko, not fseek
8734         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
8735         (clear_ungetc_buffer): Avoid potential problems on large files.
8736         * lib/freadseek.c (freadseek): Likewise.
8737         * modules/freadseek (Depends-on): Add fseeko.
8738         * modules/fseek (configure.ac): Set a witness.
8739         * tests/test-fflush.c (main): Use fseeko.
8740         * tests/test-fpurge.c (fseek): Disable link warning.
8741         * tests/test-freadable.c (fseek): Likewise.
8742         * tests/test-freading.c (fseek): Likewise.
8743         * tests/test-fseeko.c (fseek): Likewise.
8744         * tests/test-ftell.c (fseek): Likewise.
8745         * tests/test-ftello.c (fseek): Likewise.
8746         * tests/test-fwritable.c (fseek): Likewise.
8747         * tests/test-fwriting.c (fseek): Likewise.
8748
8749 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8750
8751         * modules/memchr (Depends-on): Drop getpagesize dependency.
8752
8753 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8754
8755         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
8756         Reported by Ludovic Courtès.
8757         * build-aux/pmccabe2html: Improve example usage.
8758         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
8759
8760 2009-11-06  Jim Meyering  <meyering@redhat.com>
8761
8762         do-release-commit-and-tag: New module.
8763         Automate the release-commit and tag process.
8764         * build-aux/do-release-commit-and-tag: New script, from coreutils.
8765         * modules/do-release-commit-and-tag: New file.
8766         * MODULES.html.sh (Support for maintaining and releasing): Add it.
8767
8768 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8769
8770         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
8771         because test-select.c uses inet_pton.
8772
8773 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8774
8775         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
8776         GETADDRINFO_LIB.  Bump serial number.
8777         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
8778         Suggested by Eric Blake <ebb9@byu.net>.
8779
8780 2009-11-05  Eric Blake  <ebb9@byu.net>
8781
8782         strtod: detect darwin bug
8783         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
8784         Reported by Leo Davis.
8785
8786         freopen-safer: new module
8787         * modules/freopen-safer: New module.
8788         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
8789         * lib/freopen-safer.c (freopen_safer): New file.
8790         * lib/stdio-safer.h (freopen_safer): New declaration.
8791         * lib/stdio--.h (freopen): New override.
8792         * MODULES.html.sh (File stream based Input/Output): Mention it.
8793         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
8794         freopen-safer module.
8795         * doc/posix-functions/stderr.texi (stderr): Likewise.
8796         * doc/posix-functions/stdin.texi (stdin): Likewise.
8797         * doc/posix-functions/stdout.texi (stdout): Likewise.
8798         * modules/freopen-safer-tests: New test.
8799         * tests/test-reopen-safer.c: New file.
8800
8801 2009-11-05  Jim Meyering  <meyering@redhat.com>
8802
8803         maint.mk: Prohibit inclusion of "close-stream.h" without use.
8804         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
8805
8806 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8807
8808         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
8809
8810 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8811
8812         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
8813
8814 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8815
8816         Fix link error.
8817         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
8818         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
8819
8820 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8821
8822         * tests/test-func.c: Also test value of __func__.
8823
8824 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8825
8826         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
8827         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
8828
8829 2009-11-05  Bruno Haible  <bruno@clisp.org>
8830
8831         Fix link error.
8832         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
8833         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
8834         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
8835
8836 2009-11-05  Bruno Haible  <bruno@clisp.org>
8837
8838         Tests for module 'inet_pton'.
8839         * modules/inet_pton-tests: New file.
8840         * tests/test-inet_pton.c: New file.
8841
8842 2009-11-05  Bruno Haible  <bruno@clisp.org>
8843
8844         Tests for module 'inet_ntop'.
8845         * modules/inet_ntop-tests: New file.
8846         * tests/test-inet_ntop.c: New file.
8847
8848 2009-11-04  Eric Blake  <ebb9@byu.net>
8849
8850         stdlib-safer: wrap all mkstemp variants
8851         * modules/mkostemp (configure.ac): Set witness.
8852         * modules/mkostemps (configure.ac): Likewise.
8853         * modules/mkstemps (configure.ac): Likewise.
8854         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
8855         (mkstemps_safer): Wrap more functions.
8856         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
8857         wrapping.
8858         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
8859         (mkstemps_safer): Implement the wrappers.
8860
8861         mkstemps, mkostemps: new modules
8862         * modules/mkostemps: New module.
8863         * modules/mkstemps: Likewise.
8864         * lib/mkostemps.c (mkostemps): New file.
8865         * lib/mkstemps.c (mkstemps): Likewise.
8866         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
8867         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
8868         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
8869         * modules/stdlib (Makefile.am): Substitute them.
8870         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
8871         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
8872         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
8873         * doc/gnulib.texi (Glibc stdlib.h): Include them.
8874         * MODULES.html.sh (File system functions): Mention them.
8875
8876         tempname: resync from glibc
8877         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
8878         same values for __GT_FILE as glibc.  Abort even when assertions
8879         are disabled.
8880         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
8881         match its value otherwise.  Allow idempotent inclusion.
8882         * lib/mkdtemp.c (mkdtemp): Adjust caller.
8883         * lib/mkostemp.c (mkostemp): Likewise.
8884         * lib/mkstemp.c (mkstemp): Likewise.
8885         * lib/tmpfile.c (tmpfile): Likewise.
8886         * NEWS: Document this.
8887
8888         utimens: fix use of futimens on older Linux
8889         * lib/utimens.c (fdutimens): Use updated, rather than original,
8890         timespec to avoid bug in older Linux kernel.
8891         Reported by Simon Josefsson.
8892
8893 2009-11-04  Bruno Haible  <bruno@clisp.org>
8894
8895         Make num_processors more flexible and consistent.
8896         * lib/nproc.h (enum nproc_query): New type.
8897         (num_processors): Add a 'query' argument.
8898         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
8899         (num_processors): Add a 'query' argument. Test the value of the
8900         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
8901         mingw, count the number of CPUs available for the current process.
8902         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
8903         Check for sched_getaffinity and sched_getaffinity_np.
8904         * modules/nproc (Depends-on): Add c-ctype, extensions.
8905         * NEWS: Mention the change.
8906
8907 2009-11-03  Bruno Haible  <bruno@clisp.org>
8908
8909         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
8910
8911 2009-11-03  Jim Meyering  <meyering@redhat.com>
8912
8913         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
8914         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
8915         if it is defined.
8916
8917 2009-11-02  Eric Blake  <ebb9@byu.net>
8918
8919         mktime, timegm: share common declaration
8920         * lib/mktime-internal.h: New file.
8921         * lib/mktime.c: Use it rather than open-coding a declaration.
8922         * lib/timegm.c: Likewise.
8923         * modules/mktime (Files): Ship it.
8924         * modules/timegm (Files): Likewise.
8925         Suggested by Bruno Haible.
8926
8927         test-update-copyright: update test to match script changes
8928         * tests/test-update-copyright.sh: Avoid hard-coding perl
8929         location.  Don't update *.bak created by earlier runs.
8930
8931 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
8932             Simon Josefsson  <simon@josefsson.org>
8933             Bruno Haible  <bruno@clisp.org>
8934
8935         Fix link error on Solaris 8.
8936         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
8937         also in libnsl. Define also INET_PTON_LIB.
8938         * modules/inet_pton (Link): New section.
8939
8940 2009-11-02  Simon Josefsson  <simon@josefsson.org>
8941             Bruno Haible  <bruno@clisp.org>
8942
8943         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
8944         * modules/inet_ntop (Link): New section.
8945         Reported by Boyan Kasarov <bkasarov@gmail.com>.
8946
8947 2009-11-02  Eric Blake  <ebb9@byu.net>
8948
8949         maint: avoid compiler warnings in m4 macros
8950         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
8951         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
8952
8953 2009-11-02  Simon Josefsson  <simon@josefsson.org>
8954
8955         * m4/pmccabe2html.m4: Remove file.
8956         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
8957         function.  Change maintainer.
8958         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
8959         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
8960         Courtès).
8961
8962 2009-10-31  Eric Blake  <ebb9@byu.net>
8963
8964         fseeko: fix m4 regression
8965         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
8966         regression from 2009-10-27.
8967         Reported by Ralf Wildenhues.
8968
8969 2009-10-31  Jim Meyering  <meyering@redhat.com>
8970
8971         inttostr: aesthetics and improved (compile-time) safety
8972         Define inttype_is_signed rather than inttype_is_unsigned,
8973         since the sole use is via "#if inttype_is_signed".
8974         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
8975         inttype_is_unsigned.
8976         * lib/offtostr.c (inttype_is_signed): Likewise.
8977         * lib/uinttostr.c (inttype_is_signed): Likewise.
8978         * lib/umaxtostr.c (inttype_is_signed): Likewise.
8979         * lib/inttostr.c (inttostr): Use verify to cross-check the
8980         inttype_is_signed value and the signedness of the actual type.
8981         * modules/inttostr (Depends-on): Add verify.
8982
8983 2009-10-30  Eric Blake  <ebb9@byu.net>
8984
8985         build: avoid compiler warnings
8986         * lib/fchmodat.c (lchmod): Mark unused variables.
8987         * lib/getopt.c (_getopt_initialize): Likewise.
8988         * lib/mktime.c (__mktime_internal): Provide prototype.
8989         * lib/inttostr.c (inttostr): Avoid compiler warning even with
8990         older gcc that do not understand #pragma GCC diagnostic.
8991         * lib/uinttostr.c (inttype_is_unsigned): Define.
8992         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
8993
8994 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
8995
8996         stat: fix compilation on AIX
8997         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
8998         only see struct stat64.
8999
9000 2009-10-30  Eric Blake  <ebb9@byu.net>
9001
9002         exclude: make more robust
9003         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
9004         rather than masking a coding bug.
9005         Suggested by Bruno Haible.
9006
9007 2009-10-30  Jim Meyering  <meyering@redhat.com>
9008
9009         perl scripts: remove #!/usr/bin/perl in favor of more portable...
9010         Rather than putting #!/usr/bin/perl on the first line,
9011         start with a variant of what's recommended by "man perlrun" that
9012         invokes the first "perl" program from your shell's search path.
9013         * build-aux/gitlog-to-changelog: Replace #!... as above.
9014         Add a "Local Variables" perl mode setting.
9015         Prompted by a patch from Ludovic Courtès.
9016         Improved by Eric Blake.
9017         * build-aux/useless-if-before-free: Likewise.
9018         * build-aux/announce-gen: Likewise.
9019         * build-aux/update-copyright: Likewise.
9020
9021 2009-10-29  Eric Blake  <ebb9@byu.net>
9022
9023         filenamecat-lgpl: adjust clients
9024         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
9025         filenamecat.
9026         * modules/renameat (Depends-on): Likewise.
9027
9028         filenamecat: split into filenamecat-lgpl
9029         * modules/filenamecat-lgpl: New module.
9030         * modules/filenamecat (Files): Move library-safe files into
9031         filenamecat-lgpl.
9032         (Depends-on): Add filenamecat-lgpl.
9033         (configure.ac): Declare witness.
9034         * lib/filenamecat.h (file_name_concat): Only declare when using
9035         GPL module.
9036         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
9037         Move...
9038         * lib/filenamecat-lgpl.c: ...into new file.
9039         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
9040         (gl_FILE_NAME_CONCAT): Use it.
9041         * MODULES.html.sh (File system functions): Mention new module.
9042
9043         argp: avoid memory leak
9044         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
9045         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
9046         base_name, since the latter malloc()s and can call exit().
9047         Leak introduced 2006-07-03.
9048
9049         dirname-lgpl: adjust clients that don't need full dirname
9050         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
9051         * modules/filenamecat (Depends-on): Likewise.
9052         * modules/linkat (Depends-on): Likewise.
9053         * modules/mkancesdirs (Depends-on): Likewise.
9054         * modules/mkdir (Depends-on): Likewise.
9055         * modules/openat (Depends-on): Likewise.
9056         * modules/savewd (Depends-on): Likewise.
9057         * modules/rename (Depends-on): Likewise.
9058         (License): Relax license.
9059         * modules/mkdir-tests (Depends-on): Drop progname.
9060         (Makefile.am): Delete unneeded LDADD.
9061         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
9062
9063         dirname: split into dirname-lgpl
9064         * modules/dirname-lgpl: New module.
9065         * modules/dirname (Files): Move library-safe files into
9066         dirname-lgpl.
9067         (Depends-on): Add dirname-lgpl.
9068         (configure.ac): Declare witness.
9069         * modules/double-slash-root (License): Relax license.
9070         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
9071         module.
9072         * lib/dirname.c (dir_len, mdir_name): Move...
9073         * lib/dirname-lgpl.c: ...into new file.
9074         * lib/basename.c (last_component, base_len): Move...
9075         * lib/basename-lgpl.c: ...into new file.
9076         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
9077         (gl_DIRNAME): Use it.
9078         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
9079         Mention new module.
9080         * modules/dirname-tests (Depends-on): Add progname.
9081         * tests/test-dirname.c (program_name): Delete.
9082
9083         mkdir: make safe for libraries
9084         * modules/mkdir (Depends-on): Drop xalloc.
9085         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
9086         exit.
9087
9088         tests: avoid some compiler warnings
9089         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
9090         literals.
9091         * tests/test-memchr.c (main): Avoid type mismatch.
9092         * tests/test-arpa_inet.c (main): Avoid unused parameters.
9093         * tests/test-base64.c (main): Likewise.
9094         * tests/test-getdelim.c (main): Likewise.
9095         * tests/test-gethostname.c (main): Likewise.
9096         * tests/test-getline.c (main): Likewise.
9097         * tests/test-netinet_in.c (main): Likewise.
9098         * tests/test-select.c (open_server_socket, main): Likewise.
9099         * tests/test-select-stdin.c (main): Likewise.
9100         * tests/test-sockets.c (main): Likewise.
9101         * tests/test-strsignal.c (main): Likewise.
9102         * tests/test-sys_select.c (main): Likewise.
9103         * tests/test-sys_socket.c (main): Likewise.
9104         * tests/test-u64.c (main): Likewise.
9105         * tests/test-xfprintf-posix.c (main): Likewise.
9106         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
9107
9108         sockets: avoid compiler warning
9109         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
9110
9111         maint: detect usage(1) and other suspicious exits
9112         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
9113
9114 2009-10-29  Jim Meyering  <meyering@redhat.com>
9115
9116         timespec: long-to-int truncation could make timespec_cmp malfunction
9117         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
9118         a multiple of 2^32 nanoseconds as no difference.
9119
9120 2009-10-28  Jim Meyering  <meyering@redhat.com>
9121
9122         fprintftime: wrap macro code argument in "do {...} while(0)"
9123         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
9124         cpy macro must be a statement that can be followed by a semicolon.
9125         Now that the else clause contains a comment and is hence longer
9126         than one line, I require curly braces.  That in turn requires
9127         that we wrap this code block in the standard do...while(0).
9128
9129         fprintftime: remove stray semicolon from previous change
9130         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
9131
9132         fprintftime: avoid a warning about ignored fwrite return value
9133         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
9134         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
9135         that is unsafe.
9136         * modules/fprintftime (Depends-on): Add ignore-value.
9137
9138         exclude: avoid an unwarranted warning
9139         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
9140
9141 2009-10-27  Eric Blake  <ebb9@byu.net>
9142
9143         fseek: avoid compilation failure when fflush is replaced
9144         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
9145         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
9146         module is in use.
9147         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
9148         module is not in use; since REPLACE_FSEEK worked otherwise.
9149         (GNULIB_FTELLO): Likewise for ftell.
9150         Reported by Ian Beckwith and others.
9151
9152 2009-10-27  Bruno Haible  <bruno@clisp.org>
9153
9154         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
9155         Reported by Jim Meyering.
9156
9157 2009-10-27  Jim Meyering  <jim@meyering.net>
9158             Bruno Haible  <bruno@clisp.org>
9159
9160         Avoid warning despite dropping the return value of fwrite.
9161         * lib/unicodeio.c: Include ignore-value.h.
9162         (fwrite_success_callback): Explicitly ignore fwrite's return value.
9163         * modules/unicodeio (Depends-on): Add ignore-value.
9164
9165 2009-10-26  Eric Blake  <ebb9@byu.net>
9166
9167         areadlinkat: fix fallback path
9168         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
9169         pointer and zero.
9170
9171 2009-10-22  Pádraig Brady  <P@draigBrady.com>
9172
9173         Use a better IO block size for modern systems
9174         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
9175         * lib/md2.c: Likewise.
9176         * lib/md4.c: Likewise.
9177         * lib/md5.c: Likewise.
9178         * lib/sha1.c: Likewise.
9179         * lib/sha256.c: Likewise.
9180         * lib/sha512.c: Likewise.
9181
9182 2009-10-22  Eric Blake  <ebb9@byu.net>
9183
9184         tests: avoid several compiler warnings
9185         * tests/test-getcwd.c (main): Avoid buffer underflow.
9186         * tests/test-getdate.c (main): String literals are not safe with
9187         putenv, so use setenv.  Declare unused argument.
9188         * modules/getdate-tests (Depends-on): Add setenv.
9189         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
9190         problems with string literals in char *.
9191         * tests/test-hash.c (main): Avoid shadowing declaration.
9192         (insert_new): Treat string literals as char const *.
9193         * tests/test-getopt.h (test_getopt): Likewise.
9194         (getopt_loop): Alter types to minimize casting elsewhere.
9195         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
9196         (test_getopt_long_posix): Likewise.
9197         (do_getopt_long): Add wrapper to minimize casting.
9198         * tests/test-atexit.c (clear_temp_file): Use void.
9199         * tests/test-areadlink-with-size.c (main): Declare unused
9200         arguments.
9201         * tests/test-areadlink.c (main): Likewise.
9202         * tests/test-areadlinkat-with-size.c (main): Likewise.
9203         * tests/test-areadlinkat.c (main): Likewise.
9204         * tests/test-canonicalize-lgpl.c (main): Likewise.
9205         * tests/test-canonicalize.c (main): Likewise.
9206         * tests/test-dirent-safer.c (main): Likewise.
9207         * tests/test-dirname.c (main): Likewise.
9208         * tests/test-dup2.c (main): Likewise.
9209         * tests/test-fchdir.c (main): Likewise.
9210         * tests/test-fcntl-h.c (main): Likewise.
9211         * tests/test-fcntl-safer.c (main): Likewise.
9212         * tests/test-fdopendir.c (main): Likewise.
9213         * tests/test-fdutimensat.c (main): Likewise.
9214         * tests/test-fflush.c (main): Likewise.
9215         * tests/test-filenamecat.c (main): Likewise.
9216         * tests/test-filevercmp.c (main): Likewise.
9217         * tests/test-fopen-safer.c (main): Likewise.
9218         * tests/test-fopen.c (main): Likewise.
9219         * tests/test-fpending.c (main): Likewise.
9220         * tests/test-fpurge.c (main): Likewise.
9221         * tests/test-freading.c (main): Likewise.
9222         * tests/test-fstatat.c (main): Likewise.
9223         * tests/test-fsync.c (main): Likewise.
9224         * tests/test-futimens.c (main): Likewise.
9225         * tests/test-getndelim2.c (main): Likewise.
9226         * tests/test-gettimeofday.c (main): Likewise.
9227         * tests/test-getopt.c (main): Likewise.
9228         * tests/test-i-ring.c (main): Likewise.
9229         * tests/test-inttypes.c (main): Likewise.
9230         * tests/test-link.c (main): Likewise.
9231         * tests/test-lstat.c (main): Likewise.
9232         * tests/test-math.c (main): Likewise.
9233         * tests/test-md5.c (main): Likewise.
9234         * tests/test-memchr2.c (main): Likewise.
9235         * tests/test-memrchr.c (main): Likewise.
9236         * tests/test-mkdir.c (main): Likewise.
9237         * tests/test-mkdirat.c (main): Likewise.
9238         * tests/test-mkfifoat.c (main): Likewise.
9239         * tests/test-open.c (main): Likewise.
9240         * tests/test-openat-safer.c (main): Likewise.
9241         * tests/test-openat.c (main): Likewise.
9242         * tests/test-quotearg.c (main): Likewise.
9243         * tests/test-rawmemchr.c (main): Likewise.
9244         * tests/test-readlink.c (main): Likewise.
9245         * tests/test-remove.c (main): Likewise.
9246         * tests/test-rename.c (main): Likewise.
9247         * tests/test-renameat.c (main): Likewise.
9248         * tests/test-rmdir.c (main): Likewise.
9249         * tests/test-sha1.c (main): Likewise.
9250         * tests/test-signal.c (main): Likewise.
9251         * tests/test-sigaction.c (main): Likewise.
9252         * tests/test-stat.c (main): Likewise.
9253         * tests/test-stat-time.c (main): Likewise.
9254         * tests/test-stddef.c (main): Likewise.
9255         * tests/test-stdint.c (main): Likewise.
9256         * tests/test-stdio.c (main): Likewise.
9257         * tests/test-stdlib.c (main): Likewise.
9258         * tests/test-strchrnul.c (main): Likewise.
9259         * tests/test-strerror.c (main): Likewise.
9260         * tests/test-string.c (main): Likewise.
9261         * tests/test-strtod.c (main): Likewise.
9262         * tests/test-strverscmp.c (main): Likewise.
9263         * tests/test-symlink.c (main): Likewise.
9264         * tests/test-symlinkat.c (main): Likewise.
9265         * tests/test-sys_stat.c (main): Likewise.
9266         * tests/test-sys_time.c (main): Likewise.
9267         * tests/test-time.c (main): Likewise.
9268         * tests/test-unistd.c (main): Likewise.
9269         * tests/test-unlink.c (main): Likewise.
9270         * tests/test-unlinkat.c (main): Likewise.
9271         * tests/test-utimens.c (main): Likewise.
9272         * tests/test-utimensat.c (main): Likewise.
9273         * tests/test-version-etc.c (main): Likewise.
9274         * tests/test-wchar.c (main): Likewise.
9275         * tests/test-wctype.c (main): Likewise.
9276         * tests/test-xprintf-posix.c (main): Likewise.
9277         * tests/test-posixtm.c (main): Likewise.
9278         (STREQ): Delete unused macro.
9279         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
9280         shadowed variables.
9281         * tests/test-memchr.c (main): Likewise.
9282
9283 2009-10-21  Eric Blake  <ebb9@byu.net>
9284
9285         areadlinkat: avoid failure on older glibc
9286         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
9287         rather than mis-comparing 0 against FUNC_RESULT of char*.
9288
9289 2009-10-21  Bruno Haible  <bruno@clisp.org>
9290
9291         * modules/stpncpy (License): Relicense under LGPLv2+.
9292         Reported by David Lutterkort <lutter@redhat.com>.
9293
9294 2009-10-20  Eric Blake  <ebb9@byu.net>
9295
9296         utimensat: work around Solaris 9 bug
9297         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
9298         has trailing slash bugs.
9299         * tests/test-lutimens.h (test_lutimens): Enhance test.
9300         * tests/test-utimens.h (test_utimens): Likewise.
9301         * doc/posix-functions/utime.texi (utime): Enhance documentation.
9302         * doc/posix-functions/utimes.texi (utimes): Likewise.
9303         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9304         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
9305         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
9306         * doc/posix-functions/futimens.texi (futimens): Likewise.
9307
9308         fdutimensat: new module
9309         * modules/fdutimensat: New file.
9310         * lib/fdutimensat.c (fdutimensat): Likewise.
9311         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
9312         * MODULES.html.sh (File system functions): Mention module.
9313         * modules/fdutimensat-tests: New test.
9314         * tests/test-fdutimensat.c: Likewise.
9315
9316         doc: regenerate INSTALL
9317         * doc/INSTALL: Reflect recent autoconf update.
9318         * doc/INSTALL.ISO: Likewise.
9319         * doc/INSTALL.UTF-8: Likewise.
9320
9321 2009-10-20  Pádraig Brady  <P@draigBrady.com>
9322
9323         acl: warn if ACL support is not detected
9324         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
9325
9326 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
9327
9328         * lib/nproc.h: Add extern "C" block for C++.
9329
9330 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
9331             Bruno Haible  <bruno@clisp.org>
9332
9333         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
9334         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
9335         * doc/posix-functions/isalpha.texi: Likewise.
9336         * doc/posix-functions/isblank.texi: Likewise.
9337         * doc/posix-functions/iscntrl.texi: Likewise.
9338         * doc/posix-functions/isdigit.texi: Likewise.
9339         * doc/posix-functions/isgraph.texi: Likewise.
9340         * doc/posix-functions/islower.texi: Likewise.
9341         * doc/posix-functions/isprint.texi: Likewise.
9342         * doc/posix-functions/ispunct.texi: Likewise.
9343         * doc/posix-functions/isspace.texi: Likewise.
9344         * doc/posix-functions/isupper.texi: Likewise.
9345         * doc/posix-functions/isxdigit.texi: Likewise.
9346
9347 2009-10-18  Bruno Haible  <bruno@clisp.org>
9348
9349         Tests for module 'isblank'.
9350         * modules/isblank-tests: New file.
9351         * tests/test-isblank.c: New file.
9352
9353         New module 'isblank'.
9354         * lib/isblank.c: New file.
9355         * m4/isblank.m4: New file.
9356         * modules/isblank: New file.
9357         * doc/posix-functions/isblank.texi: Mention the new module.
9358
9359 2009-10-18  Bruno Haible  <bruno@clisp.org>
9360
9361         New module 'ctype'.
9362         * lib/ctype.in.h: New file.
9363         * m4/ctype.m4: New file.
9364         * modules/ctype: New file.
9365         * doc/posix-headers/ctype.texi: Mention the new module.
9366
9367 2009-10-18  Jim Meyering  <meyering@redhat.com>
9368
9369         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
9370         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
9371         right after its initialization, rather than farther down.
9372         Keeping these in close proximity makes it easier to ensure
9373         that each such variable is initialized.  E.g.,
9374
9375             LIB_CLOCK_GETTIME=
9376             AC_SUBST([LIB_CLOCK_GETTIME])
9377
9378         This change also increments these serial numbers.
9379         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
9380         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
9381         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9382
9383 2009-10-18  Bruno Haible  <bruno@clisp.org>
9384
9385         Don't let environment variables perturb build.
9386         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
9387         (gl_PREREQ_GETHRXTIME): ... not here.
9388
9389 2009-10-18  Bruno Haible  <bruno@clisp.org>
9390
9391         Avoid symlink attack in localcharset module.
9392         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
9393         (O_NOFOLLOW): Define fallback.
9394         (get_charset_aliases): Don't open the file if it is a symbolic link.
9395         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
9396         gl_FCNTL_H.
9397         (gl_FCNTL_H): Require it.
9398         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
9399         * modules/localcharset (Files): Add m4/fcntl_h.m4.
9400         Reported by Fergal Glynn <fglynn@veracode.com>.
9401
9402 2009-10-18  Bruno Haible  <bruno@clisp.org>
9403
9404         Implement nproc for mingw.
9405         * lib/nproc.c: Include <windows.h>
9406         (num_processors): On native Windows platforms, try GetSystemInfo.
9407
9408 2009-10-18  Bruno Haible  <bruno@clisp.org>
9409
9410         Implement nproc for IRIX.
9411         * lib/nproc.c: Include <sys/sysmp.h>.
9412         (num_processors): On IRIX systems, try sysmp.
9413         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
9414
9415 2009-10-18  Bruno Haible  <bruno@clisp.org>
9416
9417         Implement nproc for HP-UX.
9418         * lib/nproc.c: Include <sys/pstat.h>
9419         (num_processors): On HP-UX systems, try pstat_getdynamic.
9420         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
9421         pstat_getdynamic.
9422
9423 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
9424             Bruno Haible  <bruno@clisp.org>
9425
9426         Implement nproc for NetBSD, OpenBSD.
9427         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
9428         (ARRAY_SIZE): New macro.
9429         (num_processors): On BSD systems, try sysctl of HW_NCPU.
9430         * m4/nproc.m4: New file.
9431         * modules/nproc (Files): Add m4/nproc.m4.
9432         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
9433         (Makefile.am): Instead, augment lib_SOURCES.
9434
9435 2009-10-18  Bruno Haible  <bruno@clisp.org>
9436
9437         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
9438         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
9439         sys/param.h.
9440
9441 2009-10-16  Eric Blake  <ebb9@byu.net>
9442
9443         utimensat: new module
9444         * modules/utimensat: New file.
9445         * lib/utimensat.c (utimensat): Likewise.
9446         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
9447         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
9448         so we can work around Linux bugs.
9449         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9450         * modules/sys_stat (Makefile.am): Substitute them.
9451         * lib/sys_stat.in.h (utimensat): Declare it.
9452         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9453         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9454         * modules/utimensat-tests: New test.
9455         * tests/test-utimensat.c: Likewise.
9456
9457         utimens: let lutimens work on non-symlinks
9458         * lib/utimens.c (lutimens): Fall back to utimens rather than
9459         failing with ENOSYS, when file is not a symlink.
9460         (utimens): Reduce redirection.
9461         * tests/test-lutimens.h (test_lutimens): Update test to cover
9462         non-symlinks.
9463         * tests/test-utimens.h (test_utimens): Update test to cover
9464         symlinks.
9465         * tests/test-utimens.c (main): Update caller.
9466
9467         utimens: cache whether utimensat syscall works
9468         * lib/utimens.c (utimensat_works_really): New cache variable.
9469         (fdutimens, lutimens): Use it to avoid failing syscall.
9470
9471         test-stat-time, test-utimens: improve portability
9472         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
9473         ext4 on alpha, and for cygwin.
9474         * tests/test-utimens-common.h: New file.
9475         (nap): Factor delays into single function.
9476         * tests/test-lutimens.h (test_lutimens): Use new header.
9477         * tests/test-futimens.h (test_futimens): Likewise.
9478         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
9479         timestamps to occur from same machine, as was done previously for
9480         test_utimens.
9481         * modules/utimens-tests (Files): Ship new file.
9482         * modules/futimens-tests (Files): Likewise.
9483         Reported in part by Jim Meyering.
9484
9485         sys_stat: sort replacement declarations
9486         * lib/sys_stat.in.h: Sort declarations.
9487         * lib/futimens.c (futimens): Fix typo.
9488
9489 2009-10-15  Jim Meyering  <meyering@redhat.com>
9490
9491         don't let environment settings perturb build
9492         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
9493         could cause a configure-time and/or build-time malfunction.
9494         Typically, a configure-time function-in-library test is performed
9495         via code like this:
9496
9497           LIB_VAR=
9498           AC_SUBST([LIB_VAR])
9499           prefix_saved_LIBS=$LIBS
9500             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
9501                        [test "$ac_cv_search_FUNC" = "none required" ||
9502                         LIB_VAR=$ac_cv_search_FUNC])
9503           LIBS=$prefix_saved_LIBS
9504
9505         However, in each of the files affected by this change, the LIB_VAR=
9506         initialization was omitted.  Thus, when set in the environment, its
9507         value would propagate into generated Makefiles when FUNC is not found
9508         in LIB_NAME.
9509         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
9510         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
9511         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9512
9513 2009-10-14  Eric Blake  <ebb9@byu.net>
9514
9515         fchdir: avoid infinite recursion in mingw
9516         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
9517         recursing.
9518
9519         test-stat-time: port to mingw
9520         * tests/test-stat-time.c (force_unlink): Return a value.
9521         (test_ctime) [W32]: Fix compilation error.
9522         (nap): Don't call usleep with too large an argument.  Use
9523         force_unlink.
9524         * doc/pastposix-functions/usleep.texi (usleep): Document the
9525         portability issue.
9526
9527 2009-10-13  Jim Meyering  <meyering@redhat.com>
9528
9529         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
9530         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
9531         * modules/pipe-filter-ii: Likewise.
9532         * modules/sys_socket-tests: Likewise.
9533         * modules/tsearch-tests: Likewise.
9534         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
9535         (check): Depend on it.
9536
9537 2009-10-12  Eric Blake  <ebb9@byu.net>
9538
9539         utimens-tests: port to NFS file systems
9540         * tests/test-utimens.h (test_utimens): Refactor utimecmp
9541         comparisons to avoid spurious failures from timestamp drift
9542         between NFS machines.
9543
9544 2009-10-12  Eric Blake  <ebb9@byu.net>
9545
9546         stat-time-tests: minor cleanups
9547         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
9548         * tests/test-stat-time.c (nap): Separate assignment from call.
9549         Suggested by Paolo Bonzini and Bruno Haible.
9550
9551         sys_stat: guarantee struct timespec
9552         * lib/sys_stat.in.h (includes): Always include <time.h>
9553         * modules/sys_stat (Depends-on): Add time.
9554         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
9555         mode_t permission values.
9556         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
9557         get at subsecond timestamps.
9558
9559 2009-10-10  Eric Blake  <ebb9@byu.net>
9560
9561         futimens: new module
9562         * modules/futimens: New file.
9563         * lib/futimens.c (futimens): Likewise.
9564         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
9565         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
9566         we can work around Linux bugs.
9567         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9568         * modules/sys_stat (Makefile.am): Substitute them.
9569         * lib/sys_stat.in.h (futimens): Declare it.
9570         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9571         * doc/posix-functions/futimens.texi (futimens): Likewise.
9572         * modules/futimens-tests: New test.
9573         * tests/test-futimens.c: Likewise.
9574
9575         utimens: introduce fdutimens
9576         * lib/utimens.h (fdutimens): New prototype.
9577         * lib/utimens.c (gl_futimens): Move guts...
9578         (fdutimens): ...to new interface.
9579         * tests/test-utimens.c (do_fdutimens): Use it.
9580
9581         utimens: add UTIME_NOW and UTIME_OMIT support
9582         * lib/utimens.c (validate_timespec, update_timespec): New helper
9583         functions.
9584         (gl_futimens, lutimens): Use them.
9585         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
9586         stdbool, sys_stat.
9587         (Link): Mention resulting library dependency.
9588         * modules/utimecmp (Link): Likewise.
9589         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
9590         (Makefile.am): Pick up library dependency.
9591         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
9592         definition.
9593         * tests/test-sys_stat.c: Test the definitions.
9594         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
9595         * NEWS: Document library dependency.
9596
9597         utimecmp: support symlink timestamps
9598         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
9599         hashing when possible.  Use pathconf when available.
9600         (SYSCALL_RESOLUTION): Recognize tighter resolution.
9601         * modules/utimecmp (Depends-on): Add lstat.
9602
9603         utimens: add lutimens interface
9604         * lib/utimens.c (lutimens): New function.
9605         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
9606         * lib/utimens.h (lutimens): Declare new interface.
9607         * tests/test-utimens.c (main): Enhance test.
9608         * tests/test-lutimens.h (test_lutimens): New file.
9609         * modules/utimens-tests (Files): Distribute it.
9610         (Depends-on): Add symlink.
9611         (configure.ac): Check for usleep.
9612
9613         utimens: validate futimens usage
9614         * lib/utimens.c (gl_futimens): Require valid fd up front, using
9615         fewer syscalls on failure later on.  Avoid compiler warning on
9616         mingw.
9617         * modules/utimens (Depends-on): Add dup2.
9618
9619         utimens: add test
9620         * modules/utimens-tests: New test.
9621         * tests/test-utimens.h: New file.
9622         * tests/test-futimens.h: Likewise.
9623         * tests/test-utimens.c: Likewise.
9624
9625         doc: mention timestamp portability issues
9626         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
9627         instead.
9628         * doc/posix-functions/utime.texi (utime): Likewise.
9629         * doc/posix-functions/utimes.texi (utimes): Likewise.
9630         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
9631         instead.
9632         * doc/posix-functions/futimens.texi (futimens): Mention utimens
9633         module.
9634         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9635         Mention weakness with symlink timestamps.
9636         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
9637         to utimensat/futimens instead.
9638         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
9639
9640         test-dup2: enhance test
9641         * tests/test-dup2.c (main): Also check AT_FDCWD.
9642
9643         test-stat-time: avoid more spurious failures
9644         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
9645         xfs; and avoid race if the two timestamps cross quantization edge.
9646
9647         relocatable: prefer 'file system' over 'filesystem'
9648         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
9649         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
9650         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
9651         * doc/relocatable.texi (Enabling Relocatability): Likewise.
9652         * lib/relocatable.c (compute_curr_prefix): Likewise.
9653
9654 2009-10-10  Jim Meyering  <meyering@redhat.com>
9655
9656         stat-time-tests: check for the usleep function
9657         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
9658
9659 2009-10-10  Bruno Haible  <bruno@clisp.org>
9660
9661         * modules/xnanosleep: Put the Link section after the Include section.
9662
9663 2009-10-09  Eric Blake  <ebb9@byu.net>
9664
9665         dup2: work around FreeBSD 6.1 bug
9666         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
9667         * doc/posix-functions/dup2.texi (dup2): Document it.
9668         Reported by Nelson H. F. Beebe and Jim Meyering.
9669
9670         test-stat-time: port to buggy NFS clients
9671         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
9672         (test_ctime): Also skip test if mtime and ctime are skewed.
9673
9674         maint: prefer 'file system' over 'filesystem'
9675         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
9676         * doc/posix-functions/lstat.texi (lstat): Likewise.
9677         * lib/file-has-acl.c (file_has_acl): Likewise.
9678         * lib/fwriteerror.c [TEST]: Likewise.
9679         * tests/test-areadlink.h (test_areadlink): Likewise.
9680         * tests/test-areadlinkat-with-size.c (main): Likewise.
9681         * tests/test-areadlinkat.c (main): Likewise.
9682         * tests/test-canonicalize-lgpl.c (main): Likewise.
9683         * tests/test-canonicalize.c (main): Likewise.
9684         * tests/test-fstatat.c (main): Likewise.
9685         * tests/test-linkat.c (main): Likewise.
9686         * tests/test-lstat.h (test_lstat_func): Likewise.
9687         * tests/test-mkdir.h (test_mkdir): Likewise.
9688         * tests/test-readlink.h (test_readlink): Likewise.
9689         * tests/test-remove.c (main): Likewise.
9690         * tests/test-rename.h (test_rename): Likewise.
9691         * tests/test-renameat.c (main): Likewise.
9692         * tests/test-rmdir.h (test_rmdir_func): Likewise.
9693         * tests/test-symlink.h (test_symlink): Likewise.
9694         * tests/test-symlinkat.c (main): Likewise.
9695         * tests/test-unlink.h (test_unlink_func): Likewise.
9696         * tests/test-unlinkat.c (main): Likewise.
9697
9698         maint: make realtime library usage explicit
9699         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
9700         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
9701         * modules/settime (Link): Likewise.
9702         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
9703
9704         test-stat-time: speed up execution
9705         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
9706         warning on mingw.
9707         (nap): New helper function.
9708         (prepare_test): Use it to reduce sleep time.
9709         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
9710         execution.
9711         * modules/stat-time-tests (configure.ac): Check for usleep.
9712
9713 2009-10-09  Jim Meyering  <meyering@redhat.com>
9714
9715         selinux-h: always use getfilecon wrappers
9716         * lib/getfilecon.c: New file.
9717         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
9718         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
9719         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
9720         (fgetfilecon): Provide a stub.
9721         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
9722         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
9723         file unconditionally.
9724         When <selinux/selinux.h> is found, arrange to use wrappers.
9725         * modules/selinux-h (Files): Add getfilecon.c.
9726         (Makefile.am): Substitute include-next-related bits
9727         into the now-always-generated selinux/selinux.h file.
9728         * doc/glibc-functions/lgetfilecon.texi: New file.
9729         * doc/glibc-functions/fgetfilecon.texi: New file.
9730         * doc/glibc-functions/getfilecon.texi: New file.
9731         * doc/glibc-functions/getfilecon-desc.texi: New file.
9732         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
9733         which to pull in the new files.
9734         * MODULES.html.sh (Misc): Add selinux-h.
9735
9736 2009-10-08  Jim Meyering  <meyering@redhat.com>
9737
9738         unistd: fix comment typo
9739         * lib/unistd.in.h (euidaccess): Fix a comment typo.
9740
9741 2009-10-08  Eric Blake  <ebb9@byu.net>
9742
9743         areadlink: use SIZE_MAX consistently
9744         * modules/areadlink (Depends-on): Add stdint.
9745         * modules/areadlink-with-size (Depends-on): Likewise.
9746         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
9747         gives NULL; drop sys/types, since unistd gives size_t; and add
9748         stdint for SIZE_MAX.
9749         (SIZE_MAX): Rely on headers.
9750         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
9751         and add stdint.
9752         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
9753         (SIZE_MAX): Likewise.
9754         (INITIAL_BUF_SIZE): Turn into enum.
9755         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
9756
9757 2009-10-08  Jim Meyering  <meyering@redhat.com>
9758
9759         areadlinkat: avoid compilation failure
9760         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
9761         Fix typo in comment.
9762
9763 2009-10-07  Eric Blake  <ebb9@byu.net>
9764
9765         areadlinkat-with-size: new module
9766         * modules/areadlinkat-with-size: New module.
9767         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
9768         * lib/areadlink.h (areadlinkat): Declare it.
9769         * MODULES.html.sh (File system functions): Mention it.
9770         * modules/areadlinkat-with-size-tests: New test.
9771         * tests/test-areadlinkat-with-size.c: New file.
9772
9773         xreadlinkat: new module
9774         * modules/xreadlinkat: New module.
9775         * lib/xreadlinkat.c (xreadlinkat): New file.
9776         * lib/xreadlink.h (xreadlinkat): Declare it.
9777         * MODULES.html.sh (File system functions): Mention it.
9778
9779         areadlinkat: new module
9780         * lib/at-func.c (FUNC_FAIL): New define.
9781         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
9782         * modules/areadlinkat: New module.
9783         * lib/linkat.c (areadlinkat): Move...
9784         * lib/areadlinkat.c (areadlinkat): ...to new file.
9785         * lib/areadlink.h (areadlinkat): Declare it.
9786         * modules/linkat (Depends-on): Add areadlinkat.
9787         * MODULES.html.sh (File system functions): Mention it.
9788         * modules/areadlinkat-tests: New test.
9789         * tests/test-areadlinkat.c: New file.
9790
9791         areadlink, areadlink-with-size: add tests
9792         * modules/areadlink-tests: New test.
9793         * modules/areadlink-with-size-tests: Likewise.
9794         * tests/test-areadlink.h: New file.
9795         * tests/test-areadlink.c: Likewise.
9796         * tests/test-areadlink-with-size.c: Likewise.
9797
9798         maint: minor cleanups
9799         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
9800         _UNUSED_PARAMETER_ instead.
9801         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
9802         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
9803         * modules/linkat-tests (Files): Distribute test-link.h.
9804
9805         openat, utimens: whitespace cleanup
9806         * lib/openat.c: Prefer space throughout, rather than mix of 8
9807         spaces vs. tabs.
9808         * lib/at-func.c: Likewise.
9809         * lib/utimens.c: Likewise.
9810
9811         openat: avoid using wrong fd
9812         * lib/openat.c (openat_permissive): Reject user's fd if saving the
9813         working directory chooses same fd.
9814         * lib/at-func.c (AT_FUNC_NAME): Likewise.
9815
9816         mkdir, mkdirat: fix cygwin 1.5.x bug
9817         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
9818         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
9819         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
9820         bug.
9821         (gl_PREREQ_MKDIR): Delete unused macro.
9822         * modules/mkdir (Files): Track file rename.
9823         (configure.ac): Update macro name.
9824         * modules/openat (Depends-on): Add mkdir.
9825         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
9826
9827         mkdir, mkdirat: add tests
9828         * modules/mkdir-tests: New test.
9829         * tests/test-mkdir.h: New file.
9830         * tests/test-mkdir.c: Likewise.
9831         * tests/test-mkdirat.c: Likewise.
9832         * modules/openat-tests (Files): Add new files.
9833         (Makefile.am): Run new test.
9834
9835 2009-10-06  Eric Blake  <ebb9@byu.net>
9836
9837         doc: tweak *at function documentation
9838         * doc/posix-functions/faccessat.texi (faccessat): Mention
9839         known issue with replacement.
9840         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
9841         * doc/posix-functions/linkat.texi (linkat): Likewise.
9842         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
9843         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
9844         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9845         * doc/posix-functions/renameat.texi (renameat): Likewise.
9846         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
9847
9848         openat: fix GNU/Hurd bug in unlinkat
9849         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
9850         broken.
9851         * doc/posix-functions/unlink.texi (unlink): Document this.
9852         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
9853
9854         fdopendir: fix GNU/Hurd bug
9855         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
9856         allowing non-directory fds.
9857         * lib/fdopendir.c (rpl_fdopendir): Work around it.
9858         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
9859         * modules/dirent (Makefile.am): Substitute it.
9860         * lib/dirent.in.h (fdopendir): Declare replacement.
9861         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
9862         * tests/test-fdopendir.c (main): Test something other than
9863         /dev/null, since on Hurd that behaves like a directory.
9864
9865         test-symlink: port to GNU/Hurd
9866         * tests/test-symlink.h (test_symlink): Relax expected errno.
9867
9868         doc: tweak more cygwin information
9869         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
9870         now compatible with glibc.
9871         * doc/posix-functions/getopt.texi (getopt): Likewise.
9872
9873         getopt-gnu: add another test
9874         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
9875         guarantee behavior relied on by m4.
9876         * tests/test-getopt.c (main): Use it.
9877         * modules/getopt-posix-tests (Depends-on): Add setenv.
9878         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
9879
9880         getopt: fix compilation on darwin
9881         * lib/getopt.in.h (includes): Leave breadcrumbs during system
9882         include.
9883         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
9884         Reported by Ludovic Courtès.
9885
9886 2009-10-06  Bruno Haible  <bruno@clisp.org>
9887
9888         * modules/size_max (Description): Discourage its use.
9889         Reported by Simon Josefsson.
9890
9891 2009-10-06  Jim Meyering  <meyering@redhat.com>
9892
9893         linkat: avoid compilation failure
9894         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
9895
9896 2009-10-05  Eric Blake  <ebb9@byu.net>
9897
9898         linkat: support Linux 2.6.17
9899         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
9900         linkat on Linux, but allow cache variable override.
9901         * lib/linkat.c (rpl_linkat): Define override.
9902         * modules/linkat (Depends-on): Add symlinkat.
9903         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
9904         * modules/unistd (Makefile.am): Substitute it.
9905         * lib/unistd.in.h (linkat): Declare replacement.
9906         Reported by Pádraig Brady.
9907
9908         quotearg: port test to systems with C.UTF-8 locale
9909         * tests/test-quotearg.c (struct result_strings): Add another
9910         member, differentiating between C.ASCII and C.UTF-8 handling.
9911         (compare_strings): Add parameter.
9912         (main): Adjust all callers.
9913
9914         getopt: avoid clash with FreeBSD _getopt_internal
9915         * lib/getopt.in.h (_getopt_internal): Override the name.
9916         * lib/getopt_int.h (includes): Pick up any overrides.
9917         Reported by Reuben Thomas.
9918
9919         hash: allow C89 compilation
9920         * lib/hash.c (check_tuning): Move declaration before statement.
9921         Reported by Reuben Thomas.
9922
9923 2009-10-05  Karl Berry  <karl@gnu.org>
9924
9925         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
9926
9927 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
9928             Bruno Haible  <bruno@clisp.org>
9929
9930         * lib/uname.c (uname): Use a table-driven algorithm to compute
9931         Windows NT versions.
9932
9933 2009-10-04  Bruno Haible  <bruno@clisp.org>
9934
9935         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
9936         program_invocation_short_name.
9937         * modules/progname (configure.ac): Test for presence of
9938         program_invocation_short_name.
9939         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
9940
9941 2009-10-04  Bruno Haible  <bruno@clisp.org>
9942
9943         * lib/progname.c (set_program_name): Fix comment.
9944         Reported by Jim Meyering.
9945
9946 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
9947             Bruno Haible  <bruno@clisp.org>
9948
9949         * lib/uname.c: Include <string.h>.
9950         (uname): Do only one call to GetVersionEx in the common case.
9951
9952 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
9953             Bruno Haible  <bruno@clisp.org>
9954
9955         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
9956         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
9957         (uname): Add support for Windows CE and various non-x86 CPU types.
9958
9959 2009-10-03  Bruno Haible  <bruno@clisp.org>
9960
9961         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
9962         invocation to tests/configure.ac.
9963         Reported by Ian Beckwith <ianb@erislabs.net>.
9964
9965 2009-10-02  Eric Blake  <ebb9@byu.net>
9966
9967         fchdir: avoid compiler warning
9968         * lib/fchdir.c (canonicalize_file_name)
9969         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
9970
9971         test-open: support mingw errno values
9972         * tests/test-open.h (test_open): Relax test.
9973         * tests/test-fopen.h (test_fopen): Likewise.
9974         * tests/test-openat-safer.c (main): Likewise.
9975
9976         open: fix opening directory on mingw
9977         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
9978
9979         test-open: on GNU/Hurd, /dev/null is a directory
9980         * tests/test-fopen.h (main): Rename...
9981         (test_fopen): ...to this.  Use a guaranteed non-directory when
9982         confirming open behavior on trailing slash.
9983         * tests/test-openat-safer.c (main): Likewise.
9984         * tests/test-open.h (main): Likewise....
9985         (test_open): ...to this.
9986         * tests/test-fopen.c (main): Adjust caller.
9987         * tests/test-fopen-safer.c (main): Likewise.
9988         * tests/test-open.c (main): Likewise.
9989         * tests/test-fcntl-safer.c (main): Likewise.
9990         Reported by Samuel Thibault.
9991
9992         rename, fchdir: don't ignore chdir failure
9993         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
9994         * lib/rename.c (rpl_rename) [W32]: Likewise.
9995         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
9996         an empty destination directory if source cannot be renamed,
9997         although there is still possibility for failure.
9998         * doc/posix-functions/rename.texi (rename): Document the race.
9999         Reported by Jim Meyering.
10000
10001         maint: cleanup whitespace in recent commits
10002         * lib/rename.c (rpl_rename): Remove tabs.
10003         * tests/test-link.h (test_link): Likewise.
10004         * lib/fchdir.c (get_name): Likewise.
10005         Reported by Jim Meyering.
10006
10007 2009-10-02  Ben Pfaff  <blp@gnu.org>
10008
10009         relocatable-prog-wrapper: Add missing dependency on
10010         double-slash-root.
10011         * modules/relocatable-prog-wrapper: Add dependency.
10012         Reported by Ian Beckwith <ianb@erislabs.net>.
10013
10014 2009-10-02  Eric Blake  <ebb9@byu.net>
10015
10016         renameat: fix Solaris bugs
10017         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
10018         needed fixing.
10019         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
10020         * modules/stdio (Makefile.am): Substitute it.
10021         * lib/stdio.in.h (renameat): Declare replacement.
10022         * lib/renameat.c (rpl_renameat): Implement fix.
10023
10024         renameat: new module
10025         * modules/renameat: New file.
10026         * lib/renameat.c (renameat): Likewise.
10027         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
10028         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
10029         * modules/stdio (Makefile.am): Substitute them.
10030         * lib/stdio.in.h (renameat): Declare it.
10031         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10032         * doc/posix-functions/renameat.texi (renameat): Likewise.
10033         * modules/renameat-tests: New test.
10034         * tests/test-renameat.c: Likewise.
10035
10036         rename: fix mingw bugs
10037         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
10038         directory overwrite bugs.
10039
10040         rename: fix another cygwin 1.5 bug
10041         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
10042         checks.
10043         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
10044         unnecessary cygwin workarounds.  Also work around bug with moving
10045         full directory onto an empty one.
10046         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
10047
10048         rename-dest-slash: merge into rename module
10049         * modules/rename-dest-slash (Status): Mark obsolete.
10050         (Depends-on): Add rename.
10051         (Files): Let rename do it all.
10052         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
10053         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
10054         * m4/rename-dest-slash.m4: ...so this file can be deleted.
10055         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
10056         * lib/rename.c (rpl_rename): Update comments.
10057
10058         rename: fix cygwin 1.5.x bugs
10059         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
10060         * lib/rename.c (rpl_rename): Work around them.
10061         * modules/rename (Depends-on): Add same-inode.
10062
10063         rename: fix Solaris 10 bug
10064         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
10065         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
10066         was the only bug.
10067
10068         rename: fix Solaris 9 bug
10069         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
10070         on non-directory.  Avoid calling exit.
10071         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
10072         strdup.
10073         * modules/rename-tests (Depends-on): Drop lstat.
10074         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
10075         (gl_PREREQ_RENAME): Delete unused macro.
10076
10077         rename-dest-slash: fix NetBSD bug
10078         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
10079         links.
10080         * modules/rename-dest-slash (Depends-on): Add same-inode.
10081
10082         rename-tests: new test, exposes several platform bugs
10083         * modules/rename-tests: New file.
10084         * tests/test-rename.h: Likewise.
10085         * tests/test-rename.c: Likewise.
10086         * doc/posix-functions/rename.texi (rename): Improve documentation,
10087         including bugs that will eventually be fixed in gnulib.
10088
10089 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
10090
10091         * lib/uname.c: Include <stdlib.h>
10092         (uname): Assume version info is available.
10093
10094 2009-10-02  Jim Meyering  <meyering@redhat.com>
10095
10096         gnu-web-doc-update: correct --help output
10097         * build-aux/gnu-web-doc-update: Make --help output relevant.
10098
10099         gnu-web-doc-update: add standard options
10100         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
10101
10102         gnu-web-doc-update: New module.
10103         Use this script to automatically update the on-line web documentation
10104         for your GNU project at http://www.gnu.org/software/$pkg/manual/
10105         * modules/gnu-web-doc-update: New file, from coreutils.
10106         * build-aux/gnu-web-doc-update: New script.
10107
10108 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
10109
10110         link: LoadLibrary is not needed.
10111         * lib/link.c: Use GetModuleHandle.
10112
10113 2009-10-01  Eric Blake  <ebb9@byu.net>
10114
10115         getopt: bump serial number
10116         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
10117         change.
10118
10119         tests: tighten link, rmdir, and remove tests
10120         * tests/test-link.h (includes): No need to use <config.h> here.
10121         Clean up if directory hard link was created, otherwise test for
10122         trailing '.'.
10123         * tests/test-linkat.c (main): Simplify.
10124         * tests/test-remove.c (main): Enhance test for trailing '.'.
10125         * tests/test-rmdir.h (test_rmdir_func): Likewise.
10126
10127 2009-10-01  Jim Meyering  <meyering@redhat.com>
10128
10129         maint.mk: requiring "make major" was annoying, for a "minor" release.
10130         What is intended is "stable", to contrast with alpha and beta,
10131         so require "make stable", not "make major".
10132         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
10133         (get_tool_versions): Likewise.
10134         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
10135
10136 2009-09-30  Ben Pfaff  <blp@gnu.org>
10137
10138         Fix broken build of replacement for Windows tmpfile().
10139         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
10140         flags argument added along with the 'mkostemp' module.
10141
10142 2009-09-28  Bruno Haible  <bruno@clisp.org>
10143
10144         Avoid identifier clash with POSIX function 'remove' defined as a macro.
10145         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
10146         to 'remove_elt'.
10147         (gl_list_remove): Update.
10148         * lib/gl_list.c (gl_list_remove): Update.
10149         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
10150         to 'remove_elt'.
10151         (gl_oset_remove): Update.
10152         * lib/gl_list.c (gl_oset_remove): Update.
10153         Reported by Eric Blake.
10154
10155 2009-09-28  Eric Blake  <ebb9@byu.net>
10156
10157         doc: mention yet more cygwin 1.7 status
10158         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
10159         cygwin.
10160         * doc/glibc-functions/execvpe.texi (execvpe): New file.
10161         * doc/gnulib.texi (Glibc unistd.h): Mention it.
10162
10163         argp: fix test failure
10164         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
10165         that are not upper-case.  Pass correct range to tolower.
10166
10167 2009-09-27  Jim Meyering  <meyering@redhat.com>
10168
10169         test-yesno: work around sparc-dash here-document infelicity
10170         Without this change, the literal \177 byte in a here document
10171         would make dash 0.5.5.1-3 access uninitialized memory.
10172         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
10173         Instead, use a marker, "@", and filter through tr to create the desired
10174         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
10175
10176 2009-09-27  Bruno Haible  <bruno@clisp.org>
10177
10178         Disable untested support for new flavours of ACLs on AIX.
10179         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
10180         progress.
10181         * lib/set-mode-acl.c (qset_acl): Likewise.
10182
10183 2008-12-07  Bruno Haible  <bruno@clisp.org>
10184
10185         Add support for new flavours of ACLs on AIX. (Untested.)
10186         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
10187         (file_has_acl): Add support for newer AIX.
10188         * lib/set-mode-acl.c (qset_acl): Likewise.
10189         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
10190         Rainer Tammer <tammer@tammer.net>.
10191
10192 2009-09-26  Eric Blake  <ebb9@byu.net>
10193
10194         argp: fix compilation of getopt
10195         * lib/getopt.in.h (includes): Use different guard than glibc.
10196         Reported by Sergey Poznyakoff.
10197
10198         doc: mention more cygwin 1.7 status
10199         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
10200         bug.
10201         * doc/posix-functions/execl.texi (execl): Likewise.
10202         * doc/posix-functions/execle.texi (execle): Likewise.
10203         * doc/posix-functions/execlp.texi (execlp): Likewise.
10204         * doc/posix-functions/execv.texi (execv): Likewise.
10205         * doc/posix-functions/execve.texi (execve): Likewise.
10206         * doc/posix-functions/execvp.texi (execvp): Likewise.
10207         * doc/glibc-functions/canonicalize_file_name.texi
10208         (canonicalize_file_name): Cygwin 1.7 now provides this.
10209         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
10210         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
10211         on AT_SYMLINK_NOFOLLOW.
10212
10213 2009-09-24  Eric Blake  <ebb9@byu.net>
10214
10215         test-linkat: make test more robust
10216         * tests/test-linkat.c (main): Avoid collision with EEXIST.
10217
10218         getopt: fix inclusion guards for cygwin
10219         * modules/getopt-posix (Depends-on): Add include-next.
10220         (Makefile.am): Substitute more items in replacement header.
10221         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
10222         <getopt.h>.
10223         * lib/getopt.in.h (includes): Use split inclusion guard, and
10224         prefer <getopt.h> over include <unistd.h> when one is present.
10225         (option): Also override name of 'struct option'.
10226
10227         same-inode: revert prior change; it is not yet ready
10228         * NEWS: Undo mention of this change.
10229         * lib/same-inode.h (same-inode.h): Undo tri-state change.
10230         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
10231         * lib/cycle-check.c (cycle_check): Likewise.
10232         * lib/same.c (same_name): Likewise.
10233         * lib/at-func2.c (at_func2): Likewise.
10234
10235 2009-09-23  Eric Blake  <ebb9@byu.net>
10236
10237         linkat: new module
10238         * modules/linkat: New file.
10239         * lib/at-func2.c (at_func2): Likewise.
10240         * lib/linkat.c (linkat): Likewise.
10241         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
10242         * lib/openat-priv.h (at_func2): Add declaration.
10243         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
10244         * modules/unistd (Makefile.am): Substitute them.
10245         * lib/unistd.in.h (linkat): Declare it.
10246         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10247         * doc/posix-functions/linkat.texi (linkat): Likewise.
10248         * doc/posix-functions/link.texi (link): Tweak wording.
10249         * tests/test-link.c (main): Move guts...
10250         * tests/test-link.h (test_link): ...into new file.
10251         * modules/linkat-tests: New test.
10252         * tests/test-linkat.c: Likewise.
10253         * modules/link-tests (Files): Ship new file.
10254         (Depends-on): Add stdbool.
10255
10256         dirname: add library-safe mdir_name
10257         * lib/dirname.h (mdir_name): New prototype.
10258         * lib/dirname.c (dir_name): Move guts...
10259         (mdir_name): ...to new function that avoids xalloc_die.
10260
10261         fchdir: another mingw fix
10262         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
10263         * lib/fchdir.c (get_name): New helper method; skips canonicalize
10264         on mingw (where it has not yet been ported), and make it optional
10265         elsewhere.
10266         (_gl_register_fd): Use it.
10267
10268         same-inode: make SAME_INODE tri-state, to port to mingw
10269         * NEWS: Mention this change.
10270         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
10271         st_ino always being 0.
10272         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
10273         * lib/cycle-check.c (cycle_check): Likewise.
10274         * lib/same.c (same_name): Likewise.
10275
10276         lstat: avoid mingw compilation error
10277         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
10278         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
10279         lstat ourselves.
10280         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
10281         was adequate.
10282         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
10283         the checks for lstat.
10284         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
10285
10286         link: fix test failure on Solaris 9
10287         * lib/link.c (rpl_link): Don't assume link will catch bogus
10288         trailing slash on source.
10289
10290         test-symlinkat: enhance test
10291         * tests/test-readlink.c (main): Move guts...
10292         * tests/test-readlink.h (test_readlink): ...into new file.
10293         * tests/test-symlink.c (main): Move guts...
10294         * tests/test-symlink.h (test_symlink): ...into new file.
10295         * tests/test-symlinkat.c (main): Use new files for further
10296         coverage.
10297         (do_symlink, do_readlink): New helper functions.
10298         * modules/symlink-tests (Files): Ship new file.
10299         (Depends-on): Add stdbool.
10300         * modules/readlink-tests (Files): Ship new file.
10301         (Depends-on): Add stdbool.
10302         * modules/symlinkat-tests (Files): Use new files.
10303
10304 2009-09-23  Eric Blake  <ebb9@byu.net>
10305
10306         readlink: document portability issue with symlink length
10307         * doc/posix-functions/lstat.texi (lstat): Mention that some file
10308         systems have bogus st_size on symlinks, and mention the
10309         areadlink-with-size module.
10310         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
10311         * doc/posix-functions/readlink.texi (readlink): Mention the
10312         areadlink module, and ERANGE failure.
10313         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10314         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
10315
10316         readlink: fix Solaris 9 bug with trailing slash
10317         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
10318         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
10319         * doc/posix-functions/readlink.texi (readlink): Document this.
10320         * modules/readlink-tests: New test.
10321         * tests/test-readlink.c: Likewise.
10322
10323         readlink: fix cygwin 1.5.x bug with return type
10324         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
10325         * lib/unistd.in.h (readlink): Use ssize_t.
10326         * lib/readlink.c (readlink): Likewise.
10327         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10328         * modules/unistd (Makefile.am): Substitute it.
10329         * lib/unistd.in.h (readlink): Declare replacement.
10330         * doc/posix-functions/readlink.texi (readlink): Document this.
10331
10332         symlink: use throughout gnulib
10333         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
10334         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
10335         symlink is not used.
10336         * modules/symlinkat (Depends-on): Add symlink.
10337         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
10338         * modules/canonicalize-tests (Depends-on): Likewise.
10339         * modules/lstat-tests (Depends-on): Likewise.
10340         * modules/openat-tests (Depends-on): Likewise.
10341         * modules/remove-tests (Depends-on): Likewise.
10342         * modules/rmdir-tests (Depends-on): Likewise.
10343         * modules/unlink-tests (Depends-on): Likewise.
10344         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
10345         * tests/test-canonicalize.c (symlink): Likewise.
10346         * tests/test-fstatat.c (symlink): Likewise.
10347         * tests/test-lstat.c (symlink): Likewise.
10348         * tests/test-remove.c (symlink): Likewise.
10349         * tests/test-rmdir.c (symlink): Likewise.
10350         * tests/test-unlink.c (symlink): Likewise.
10351         * tests/test-unlinkat.c (symlink): Likewise.
10352
10353         symlink: new module, for Solaris 9 bug
10354         * modules/symlink: New file.
10355         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
10356         * lib/symlink.c: Likewise.
10357         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
10358         * modules/unistd (Makefile.am): Substitute them.
10359         * lib/unistd.in.h (symlink): Declare replacement.
10360         * MODULES.html.sh (File system functions): Mention it.
10361         * doc/posix-functions/symlink.texi (symlink): Likewise.
10362         * modules/symlink-tests: New test.
10363         * tests/test-symlink.c: Likewise.
10364
10365 2009-09-23  Bruno Haible  <bruno@clisp.org>
10366
10367         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
10368         when needed.
10369         Test case: gnulib-tool --import --with-tests atexit inttypes.
10370         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
10371
10372 2009-09-23  Bruno Haible  <bruno@clisp.org>
10373
10374         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
10375         subcommand, not in a subshell.
10376
10377 2009-09-22  Eric Blake  <ebb9@byu.net>
10378
10379         unistd: sort replacement declarations
10380         * lib/unistd.in.h: Sort declarations.
10381
10382         open, openat: minor optimization
10383         * lib/open.c (open): If open succeeded, len is non-zero.
10384         * lib/openat.c (rpl_openat): Likewise.
10385
10386         link-follow: ensure correct result
10387         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
10388         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
10389         distinguish between possible failures.
10390
10391 2009-09-21  Eric Blake  <ebb9@byu.net>
10392
10393         fts: avoid compiler warning
10394         * lib/fts.c (dirent_inode_sort_may_be_useful)
10395         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
10396
10397 2009-09-19  Bruno Haible  <bruno@clisp.org>
10398
10399         * lib/progreloc.c (canonicalize_file_name): New declaration.
10400
10401 2009-09-19  Eric Blake  <ebb9@byu.net>
10402
10403         link: fix quoting
10404         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
10405
10406         openat: fix openat bugs on Solaris 9
10407         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
10408         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
10409         * modules/openat (Depends-on): Add open.
10410         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
10411         * modules/fcntl-h (Makefile.am): Substitute it.
10412         * lib/fcntl.in.h (openat): Declare replacement.
10413         * doc/posix-functions/openat.texi (openat): Document this.
10414
10415         openat: move fstatat and unlinkat into correct files
10416         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
10417         compiled.
10418         * lib/openat.c (fstatat, unlinkat): Move...
10419         * lib/fstatat.c (fstatat): ...into correct files.
10420         * lib/unlinkat.c (unlinkat): Likewise.
10421
10422         openat: fix unlinkat bugs on Solaris 9
10423         * lib/unlinkat.c (unlinkat): New file.
10424         * modules/openat (Depends-on): Add unlink.
10425         (Files): Distribute it.
10426         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
10427         trailing slash behavior is broken.
10428         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10429         * modules/unistd (Makefile.am): Substitute it.
10430         * lib/unistd.in.h (unlinkat): Declare replacement.
10431         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
10432
10433         openat: fix fstatat bugs on Solaris 9
10434         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
10435         stat.
10436         * doc/posix-functions/fstatat.texi (fstatat): Document this.
10437
10438         test-unlinkat: enhance test, to expose Solaris 9 bug
10439         * tests/test-unlink.c (main): Factor guts...
10440         * tests/test-unlink.h (test_rmdir_func): ...into new file.
10441         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
10442         * tests/test-rmdir.c (main): Adjust caller.
10443         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
10444         (unlinker): New helper function.
10445         (rmdirat): Enhance check.
10446         * modules/rmdir-tests (Depends-on): Add stdbool.
10447         * modules/unlink-tests (Depends-on): Likewise.
10448         (Files): Add test-unlink.h.
10449         * modules/openat-tests (Files): Likewise.
10450         (Depends-on): Add unlinkdir.
10451
10452         test-fstatat: new test, to expose Solaris 9 bugs
10453         * tests/test-stat.c (main): Factor guts...
10454         * tests/test-stat.h (test_stat_func): ...into new file.
10455         * tests/test-lstat.c (main): Factor guts...
10456         * tests/test-lstat.h (test_lstat_func): ...into new file.
10457         * tests/test-fstatat.c: New file.
10458         * modules/stat-tests (Files): Add test-stat.h.
10459         * modules/lstat-tests (Files): Add test-lstat.h.
10460         (Depends-on): Add stdbool.
10461         * modules/openat-tests (Depends-on): Add pathmax.
10462         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
10463         (Makefile.am): Run new test.
10464
10465         remove: new module, for mingw and Solaris 9 bugs
10466         * modules/remove: New file.
10467         * lib/remove.c: Likewise.
10468         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
10469         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
10470         * modules/stdio (Makefile.am): Use them.
10471         * lib/stdio.in.h (remove): Declare replacement.
10472         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10473         * doc/posix-functions/remove.texi (remove): Likewise.
10474         * modules/remove-tests: New test.
10475         * tests/test-remove.c: Likewise.
10476
10477         unlink: new module, for Solaris 9 bug
10478         * modules/unlink: New file.
10479         * lib/unlink.c: Likewise.
10480         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
10481         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
10482         * modules/unistd (Makefile.am): Use them.
10483         * lib/unistd.in.h (stat): Declare replacement.
10484         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10485         * doc/posix-functions/unlink.texi (unlink): Likewise.
10486         * modules/unlink-tests: New test.
10487         * tests/test-unlink.c: Likewise.
10488
10489         lstat: fix Solaris 9 bug
10490         * lib/lstat.c (lstat): Also check for trailing slash on
10491         non-symlink, non-directories.  Use stat module to simplify logic.
10492         * doc/posix-functions/lstat.texi (lstat): Document it.
10493         * modules/lstat-tests (Depends-on): Add errno, same-inode.
10494         (configure.ac): Check for symlink.
10495         * tests/test-lstat.c (main): Add more tests.
10496
10497         stat: add as dependency to other modules
10498         * modules/chown (Depends-on): Add stat.
10499         * modules/euidaccess (Depends-on): Likewise.
10500         * modules/fchdir (Depends-on): Likewise.
10501         * modules/isdir (Depends-on): Likewise.
10502         * modules/link (Depends-on): Likewise.
10503         * modules/lstat (Depends-on): Likewise.
10504         * modules/mkdir-p (Depends-on): Likewise.
10505         * modules/modechange (Depends-on): Likewise.
10506         * modules/open (Depends-on): Likewise.
10507         * modules/readlink (Depends-on): Likewise.
10508         * modules/same (Depends-on): Likewise.
10509
10510         stat: fix Solaris 9 bug
10511         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
10512         slash.
10513         * lib/stat.c (rpl_stat): Work around it.
10514         * doc/posix-functions/stat.texi (stat): Update documentation.
10515
10516         stat: new module, for mingw bug
10517         * modules/stat: New file.
10518         * lib/stat.c: Likewise.
10519         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
10520         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
10521         * modules/sys_stat (Makefile.am): Use them.
10522         * lib/sys_stat.in.h (stat): Declare replacement.
10523         * lib/openat.c (fstatat): Deal with lstat and stat being function
10524         macros.
10525         * modules/openat (Depends-on): Add inline.
10526         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10527         * doc/posix-functions/stat.texi (stat): Likewise.
10528         * modules/stat-tests: New test.
10529         * tests/test-stat.c: Likewise.
10530
10531 2009-09-19  Jim Meyering  <meyering@redhat.com>
10532
10533         syntax-check: detect unnecessary inclusion of canonicalize.h
10534         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
10535
10536 2009-09-19  Eric Blake  <ebb9@byu.net>
10537
10538         canonicalize-lgpl: adjust clients to use correct header
10539         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
10540         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
10541         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
10542         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
10543         * lib/progreloc.c (includes): Likewise.
10544
10545 2009-09-19  Jim Meyering  <meyering@redhat.com>
10546
10547         test-posixtm.c: correct a comment
10548         * tests/test-posixtm.c: Correct first-line comment.
10549         Spotted by Eric Blake.
10550
10551 2009-09-16  Jim Meyering  <meyering@redhat.com>
10552
10553         posixtm-tests: make T const-correct; add a test case
10554         * tests/test-posixtm.c (T): Declare const.
10555         Add a test for -(2^31+1).
10556         Remove useless can-succeed-only-in-2002 test.
10557
10558         posixtm-tests: adjust the sole failing test
10559         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
10560         expected output matches what mktime now produces.  Cross-checked via
10561         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
10562
10563         posixtm: move #ifdef'd tests into a new module
10564         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
10565         * tests/test-posixtm.c: ... this new file.
10566         * modules/posixtm-tests: New module.
10567
10568 2009-09-19  Eric Blake  <ebb9@byu.net>
10569
10570         openat: simplify use of at-func.c
10571         * lib/at-func.c (includes): Include prerequisites here, to
10572         simplify requirements on client files.
10573         * lib/openat-priv.h: Add double-inclusion guard.
10574         * lib/faccessat.c (includes): Simplify.
10575         * lib/fchmodat.c (includes): Likewise.
10576         * lib/fchownat.c (includes): Likewise.
10577         * lib/mkdirat.c (includes): Likewise.
10578         * lib/mkfifoat.c (includes): Likewise.
10579         * lib/symlinkat.c (includes): Likewise.
10580
10581         openat: allow return of fd 0
10582         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
10583         * modules/save-cwd (Depends-on): Replace fcntl-safer with
10584         unistd-safer.
10585         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
10586         <fcntl.h>; this module does not leak fds.
10587         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
10588         must be allowed to return 0, leaving openat_safer to add the
10589         safety.
10590         (openat_permissive): Avoid writing to just-opened fd 2 if
10591         restoring the current directory fails.
10592         * lib/openat-die.c (openat_restore_fail): Add comment.
10593         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
10594         (save_cwd): Guarantee safe fd, but without use of open_safer.
10595         * tests/test-openat.c: New test.
10596         * modules/openat-tests (Files, Makefile.am): Distribute and build
10597         new file.
10598
10599         relocatable-prog-wrapper: fix build
10600         * modules/relocatable-prog-wrapper (Files): Update name of
10601         canonicalize m4 file, broken on 2009-09-17.
10602         Reported by emad hajjar <aleppos@hotmail.com>.
10603
10604 2009-09-19  Bruno Haible  <bruno@clisp.org>
10605
10606         * lib/safe-alloc.h: Use the standard header with GPL copyright.
10607         * lib/safe-alloc.c: Likewise.
10608         Reported by Ian Beckwith <ianb@erislabs.net>.
10609
10610 2009-09-18  Bruno Haible  <bruno@clisp.org>
10611
10612         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
10613         Reported by <erobles@sensacd.com.mx>.
10614
10615 2009-09-17  Eric Blake  <ebb9@byu.net>
10616
10617         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
10618         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
10619         slashes when checking if last component is missing.
10620         * tests/test-canonicalize.c (main): Test this.
10621
10622         canonicalize, canonicalize-lgpl: honor // if distinct from /
10623         * modules/canonicalize (Files): Add double-slash-root.m4.
10624         * modules/canonicalize-lgpl (Files): Likewise.
10625         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
10626         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
10627         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
10628         fallback definition.
10629         (canonicalize_filename_mode): Use it to protect //.
10630         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
10631         (__realpath): Likewise.
10632         * tests/test-canonicalize.c (main): Test this.
10633         * tests/test-canonicalize-lgpl.c (main): Likewise.
10634         * modules/canonicalize-tests (Depends-on): Add same-inode.
10635         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
10636
10637         canonicalize-lgpl: fix glibc bug with trailing slash
10638         * m4/canonicalize-lgpl.m4: Move contents...
10639         * m4/canonicalize.m4: ...here.
10640         (gl_CANONICALIZE_LGPL): Factor realpath check...
10641         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
10642         glibc 2.3.5 bug, fixed 2005-04-27.
10643         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
10644         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
10645         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
10646         * modules/canonicalize-lgpl (Files): Manage file rename.
10647         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
10648         * modules/stdlib (Makefile.am): Substitute witness.
10649         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
10650         is needed.
10651         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
10652         replacement is required.
10653         * lib/canonicalize.c (canonicalize_file_name): Likewise.
10654         * doc/glibc-functions/canonicalize_file_name.texi
10655         (canonicalize_file_name): Document this.
10656         * doc/posix-functions/realpath.texi (realpath): Likewise.
10657
10658         canonicalize-lgpl: reject non-directory with trailing slash
10659         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
10660         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
10661         catches failures in glibc 2.3.5.
10662         * tests/test-canonicalize.c (main): Likewise.
10663
10664         canonicalize-lgpl: use native realpath if it works
10665         * lib/canonicalize-lgpl.c (realpath): Guard with
10666         FUNC_REALPATH_WORKS.
10667         * lib/stdlib.in.h (realpath): Make declaration optional based on
10668         HAVE_REALPATH.
10669         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
10670         native realpath works.
10671         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
10672         * modules/stdlib (Makefile.am): Substitute witness.
10673
10674         canonicalize, canonicalize-lgpl: use <stdlib.h>
10675         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
10676         (Include): Mention <stdlib.h>.
10677         (configure.ac): Mention functions we provide.
10678         * modules/canonicalize (configure.ac): Likewise.
10679         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
10680         realpath if canonicalize_file_name is missing.
10681         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
10682         * modules/stdlib (Makefile.am): Substitute witnesses.
10683         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
10684         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
10685         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
10686         * NEWS: Document this.
10687         * doc/glibc-functions/canonicalize_file_name.texi
10688         (canonicalize_file_name): Likewise.
10689         * doc/posix-functions/realpath.texi (realpath): Likewise.
10690         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
10691
10692         test-canonicalize: consolidate into single C program
10693         * tests/test-canonicalize.sh: Delete; move setup into...
10694         * tests/test-canonicalize.c (main): ...the program, making it
10695         easier to run in debugger.  Add some tests.
10696         * modules/canonicalize-tests (Files): Remove unused file.
10697         (Depends-on): Add progname.
10698         (configure.ac, Makefile.am): Simplify.
10699
10700         test-canonicalize-lgpl: consolidate into single C program
10701         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
10702         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
10703         easier to run in debugger.  Add some tests.
10704         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
10705         (configure.ac, Makefile.am): Simplify.
10706
10707         canonicalize: avoid resolvepath
10708         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
10709         unnecessary checks.
10710         * lib/canonicalize.c (includes): Simplify.
10711         (canonicalize_file_name): Drop resolvepath implementation.
10712         * modules/canonicalize (Depends-on): Drop filenamecat.
10713
10714         canonicalize: don't lose errno
10715         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
10716         over calls to free.
10717
10718         canonicalize: simplify errno handling
10719         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
10720         assignment.
10721
10722         canonicalize, canonicalize-lgpl: update module dependencies
10723         * modules/canonicalize (Depends-on): Add extensions, lstat,
10724         pathmax, stdlib.
10725         (Files): Drop pathmax.h.
10726         (configure.ac): Adjust macro name.
10727         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
10728         lstat, stdlib, sys_stat.
10729         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
10730         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
10731         extensions.
10732         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
10733         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
10734         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
10735         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
10736         declaration, if available.
10737         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
10738         we can rely on the readlink module.
10739         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
10740         (includes): Use <unistd.h> unconditionally.
10741
10742 2009-09-17  Eric Blake  <ebb9@byu.net>
10743
10744         maint: make Include sections of modules consistent
10745         * modules/alloca: Use only header name; no need to list #include.
10746         * modules/alloca-opt: Likewise.
10747         * modules/arpa_inet: Likewise.
10748         * modules/canon-host: Likewise.
10749         * modules/configmake: Likewise.
10750         * modules/dirent: Likewise.
10751         * modules/eealloc: Likewise.
10752         * modules/environ: Likewise.
10753         * modules/fchdir: Likewise.
10754         * modules/fcntl: Likewise.
10755         * modules/fcntl-h: Likewise.
10756         * modules/gethrxtime: Likewise.
10757         * modules/gettime: Likewise.
10758         * modules/ignore-value: Likewise.
10759         * modules/inet_ntop: Likewise.
10760         * modules/inet_pton: Likewise.
10761         * modules/inttypes: Likewise.
10762         * modules/isnand-nolibm: Likewise.
10763         * modules/isnanf-nolibm: Likewise.
10764         * modules/mbchar: Likewise.
10765         * modules/mbfile: Likewise.
10766         * modules/mbiter: Likewise.
10767         * modules/mbuiter: Likewise.
10768         * modules/netdb: Likewise.
10769         * modules/netinet_in: Likewise.
10770         * modules/nproc: Likewise.
10771         * modules/pagealign_alloc: Likewise.
10772         * modules/poll: Likewise.
10773         * modules/printf-frexp: Likewise.
10774         * modules/pthread: Likewise.
10775         * modules/putenv: Likewise.
10776         * modules/random_r: Likewise.
10777         * modules/relocatable-prog: Likewise.
10778         * modules/search: Likewise.
10779         * modules/select: Likewise.
10780         * modules/selinux-h: Likewise.
10781         * modules/settime: Likewise.
10782         * modules/signal: Likewise.
10783         * modules/size_max: Likewise.
10784         * modules/socklen: Likewise.
10785         * modules/ssize_t: Likewise.
10786         * modules/stdarg: Likewise.
10787         * modules/stdbool: Likewise.
10788         * modules/stddef: Likewise.
10789         * modules/stdint: Likewise.
10790         * modules/stdio: Likewise.
10791         * modules/stdlib: Likewise.
10792         * modules/string: Likewise.
10793         * modules/strings: Likewise.
10794         * modules/sys_file: Likewise.
10795         * modules/sys_ioctl: Likewise.
10796         * modules/sys_select: Likewise.
10797         * modules/sys_socket: Likewise.
10798         * modules/sys_stat: Likewise.
10799         * modules/sys_time: Likewise.
10800         * modules/sys_times: Likewise.
10801         * modules/sys_utsname: Likewise.
10802         * modules/sys_wait: Likewise.
10803         * modules/sysexits: Likewise.
10804         * modules/time: Likewise.
10805         * modules/times: Likewise.
10806         * modules/tmpfile: Likewise.
10807         * modules/trim: Likewise.
10808         * modules/unistd: Likewise.
10809         * modules/wchar: Likewise.
10810         * modules/wctype: Likewise.
10811
10812 2009-09-17  Bruno Haible  <bruno@clisp.org>
10813
10814         Make getdate.y compile on QNX and NetBSD 5 / i386.
10815         * m4/getdate.m4 (gl_GETDATE): Conditionally define
10816         TIME_T_FITS_IN_LONG_INT.
10817         * lib/getdate.y (long_time_t): New type.
10818         (relative_time): Change type of 'seconds' field to long_time_t.
10819         (get_date): Update types of local variables. Check against overflow
10820         during conversion from long_time_t to time_t.
10821         Reported by Matt Kraai <kraai@ftbfs.org>
10822         and Hasso Tepper <hasso@netbsd.org>.
10823
10824 2009-09-17  Bruno Haible  <bruno@clisp.org>
10825
10826         * modules/COPYING: Update copyright years.
10827         * modules/README: Likeiwse.
10828         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
10829         Reported by Ian Beckwith <ianb@erislabs.net>.
10830
10831 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
10832
10833         * users.txt: Update references for gnuit package.
10834
10835 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
10836
10837         * m4/getdelim.m4: Fix typo in copyright line.
10838
10839 2009-09-17  Bruno Haible  <bruno@clisp.org>
10840
10841         * lib/atoll.c: Use the standard header with GPL copyright.
10842         * lib/argz.in.h: Likewise.
10843         * lib/glob.c: Likewise.
10844         * lib/glob-libc.h: Likewise.
10845         * lib/random_r.c: Likewise.
10846         * lib/siglist.h: Likewise.
10847         * lib/strsignal.c: Likewise.
10848         Reported by Ian Beckwith <ianb@erislabs.net>.
10849
10850 2009-09-17  Eric Blake  <ebb9@byu.net>
10851
10852         rmdir: ensure correct dependency order
10853         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
10854
10855 2009-09-17  Bruno Haible  <bruno@clisp.org>
10856
10857         Disable assertion that fails on NetBSD 5 / i386.
10858         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
10859         Reported by Sam Steingold <sds@gnu.org>
10860         and Hasso Tepper <hasso@netbsd.org>.
10861
10862 2009-09-16  Eric Blake  <ebb9@byu.net>
10863
10864         unlinkdir: port to mingw
10865         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
10866         on which no one can unlink a directory.
10867
10868         stdlib: sort witness names
10869         * modules/stdlib (Makefile.am): Sort replacements.
10870         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
10871         * lib/stdlib.in.h: Likewise.
10872
10873         parse-duration-tests: avoid link failure
10874         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
10875         LIBINTL.
10876         Reported by Tom G. Christensen.
10877
10878         openat-tests: ensure unlinkat behaves like rmdir
10879         * tests/test-rmdir.c (main): Factor guts...
10880         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
10881         * modules/rmdir-tests (Files): Ship new file.
10882         * modules/openat-tests: New test.
10883         * tests/test-unlinkat.c: Likewise.
10884
10885         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
10886         * modules/rmdir-errno (Status, Notice): Now obsolete.
10887
10888         rmdir: work around cygwin 1.5.x and mingw bugs
10889         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
10890         * lib/rmdir.c (rmdir): Work around it.
10891         * modules/rmdir (Status, Notice): No longer obsolete.
10892         (Files): Add dos.m4.
10893         (Depends-on): Add unistd.
10894         (configure.ac): Set witnesses.
10895         (License): Relax to LGPLv2+.
10896         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
10897         * modules/unistd (Makefile.am): Substitute witnesses.
10898         * lib/unistd.in.h (rmdir): Declare replacement.
10899         * doc/posix-functions/rmdir.texi (rmdir): Document this.
10900         * modules/rmdir-tests: New tests.
10901         * tests/test-rmdir.c: Likewise.
10902
10903 2009-09-15  Eric Blake  <ebb9@byu.net>
10904
10905         fchdir: improve use of replacement functions
10906         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
10907         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
10908         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
10909         REPLACE_CLOSEDIR.
10910         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
10911         * modules/sys_stat (Makefile.am): Substitute correct witness.
10912         * modules/dirent (Makefile.am): Likewise.
10913         * modules/unistd (Makefile.am): Likewise.
10914         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
10915         * lib/unistd.in.h (dup): Likewise.
10916         * lib/sys_stat.in.h (fstat): Likewise.
10917
10918         maint: ignore gnulib-tool temp files
10919         * .gitignore: Ignore files created during gnulib-tool --test.
10920
10921 2009-09-13  Jim Meyering  <meyering@redhat.com>
10922
10923         posixtm: don't reject a time that specify "60" as the number of seconds
10924         * lib/posixtm.c (posixtime): The code to reject invalid dates
10925         would also reject a time specified with the .60 suffix.
10926         But POSIX allows that, in order to accommodate leap seconds.
10927         So don't reject it.
10928         (main): Adjust tests accordingly.
10929         * modules/posixtm (Depends-on): Add stpcpy.
10930
10931 2009-09-11  Jim Meyering  <meyering@redhat.com>
10932
10933         announce-gen: include [$release_type] in emitted Subject:
10934         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
10935         e.g., [stable] in the emitted Subject: line.
10936
10937 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10938
10939         Remove obsolete macros from several modules.
10940         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
10941         obsolete Autoconf macros with their modern counterparts.
10942         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
10943         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
10944         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
10945         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
10946         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
10947         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10948         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
10949         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
10950         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
10951         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
10952         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
10953         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
10954         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
10955         * m4/sockets.m4 (gl_SOCKETS): Likewise.
10956         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
10957         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
10958         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
10959         * m4/time_r.m4 (gl_TIME_R): Likewise.
10960         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
10961         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
10962         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
10963
10964         Fix copyright header in build-aux scripts.
10965         * build-aux/git-version-gen: Fix copyright header to match GPLv3
10966         recommendation.
10967         * build-aux/ncftpput-ftp: Likewise.
10968         * build-aux/update-copyright: Likewise.
10969
10970 2009-09-09  Eric Blake  <ebb9@byu.net>
10971
10972         test-link: allow Linux choice of errno
10973         * tests/test-link.c (main): Relax test for alternate error.
10974
10975         strndup: fix improper m4 caching
10976         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
10977         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
10978         (gl_PREREQ_STRNDUP): Delete.
10979         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
10980         * modules/string (Makefile.am): Substitute it.
10981         * lib/string.in.h (strndup): Modernize prototype.
10982
10983         getcwd: port to mingw
10984         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
10985         different from the POSIX assumptions made throughout the getcwd
10986         module; fortunately, the mingw getcwd does not need replacement.
10987         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
10988         * modules/getcwd-tests: New test.
10989         * tests/test-getcwd.c: Likewise.
10990
10991         link: fix platform bugs
10992         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
10993         * lib/link.c (link): Work around them.  Fix related mingw bug.
10994         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
10995         * modules/unistd (Makefile.am): Substitute it.
10996         * lib/unistd.in.h (link): Declare replacement.
10997         * doc/posix-functions/link.texi (link): Document this.
10998         * modules/link (Depends-on): Add strdup-posix, sys_stat.
10999
11000         test-link: consolidate into single C program, test more cases
11001         * tests/test-link.sh: Delete.
11002         * tests/test-link.c: Test more error conditions.  Exposes bugs on
11003         at least Cygwin and Solaris.
11004         * modules/link-tests (Files): Remove unused file.
11005         (Depends-on): Add errno, sys_stat.
11006         (Makefile.am): Simplify.
11007
11008 2009-09-08  Bruno Haible  <bruno@clisp.org>
11009
11010         Work around towlower, towupper bug on mingw.
11011         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
11012         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
11013         * doc/posix-functions/towlower.texi: Mention the mingw bug.
11014         * doc/posix-functions/towupper.texi: Likewise.
11015         Reported by Eric Blake.
11016
11017 2009-09-08  Jim Meyering  <meyering@redhat.com>
11018
11019         build: don't try to run autoheader if we don't use it
11020         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
11021         is not used in configure.ac.
11022
11023 2009-09-08  Eric Blake  <ebb9@byu.net>
11024
11025         euidaccess: fix compilation error
11026         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
11027
11028         rawmemchr: relax license
11029         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
11030         okay.
11031         Reported by Jim Meyering.
11032
11033         mkfifoat: new module
11034         * modules/mkfifoat: New file.
11035         * lib/mkfifoat.c: Likewise.
11036         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
11037         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
11038         * modules/sys_stat (Makefile.am): Use them.
11039         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
11040         * MODULES.html.sh (File system functions): Mention module.
11041         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
11042         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
11043         * modules/mkfifoat-tests: New test.
11044         * tests/test-mkfifoat.c: Likewise.
11045
11046         strchrnul: relax license
11047         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
11048         okay.
11049         Reported by Jim Meyering.
11050
11051 2009-09-08  Eric Blake  <ebb9@byu.net>
11052
11053         fstatat: fix compilation on Solaris
11054         * lib/fstatat.c (includes): Add fcntl.h.
11055         Reported by Pádraig Brady.
11056
11057 2009-09-07  Eric Blake  <ebb9@byu.net>
11058
11059         rename: modernize replacement
11060         * modules/rename (Depends-on): Add stdio.
11061         (configure.ac): Declare witness.
11062         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
11063         stdio take care of replacement.
11064         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
11065         * modules/stdio (Makefile.am): Substitute them.
11066         * lib/stdio.in.h (rename): Declare replacement.
11067         * lib/rename.c (includes): Allow cross-compilation to non-windows
11068         machines.
11069         * doc/posix-functions/rename.texi (rename): Improve
11070         documentation.
11071
11072         stdio: sort witness names
11073         * modules/stdio (Makefile.am): Sort replacements.
11074         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
11075         * lib/stdio.in.h: Likewise.
11076
11077         getcwd: minor cleanups
11078         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
11079         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
11080
11081         openat: provide more convenience names
11082         * modules/faccessat (configure.ac): Add C witness.
11083         * lib/unistd.in.h (readlinkat): Fix typo.
11084         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
11085         convenience wrappers.
11086         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
11087         wrappers in syntax checks.
11088
11089 2009-09-06  Eric Blake  <ebb9@byu.net>
11090
11091         doc: fix comments in recent patches
11092         * lib/faccessat.c: Mention correct function.
11093         * lib/fchmodat.c: Likewise.
11094         * lib/fchownat.c: Likewise.
11095         * lib/symlinkat.c: Likewise.
11096         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
11097         constants.
11098
11099         faccessat, symlinkat: continue cleanup of previous patch
11100         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
11101         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
11102         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
11103         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
11104         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
11105         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
11106         set.
11107
11108 2009-09-06  Bruno Haible  <bruno@clisp.org>
11109
11110         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
11111         (fstatat): Declare if GNULIB_FSTATAT is set.
11112         (mkdirat): Declare if GNULIB_MKDIRAT is set.
11113         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
11114         (unlinkat): Declare if GNULIB_UNLINKAT is set.
11115         * modules/fcntl-h (Files): Remove m4/openat.m4.
11116         * modules/sys_stat (Files): Remove m4/openat.m4.
11117         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
11118         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
11119         * modules/unistd (Files): Remove m4/openat.m4.
11120         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
11121         GNULIB_OPENAT.
11122         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
11123         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
11124         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
11125         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
11126         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
11127         gl_OPENAT_DEFAULTS.
11128         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
11129         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
11130         Don't require gl_OPENAT_DEFAULTS.
11131         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
11132         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
11133         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
11134         (gl_OPENAT_DEFAULTS): Remove macro.
11135
11136 2009-09-06  Bruno Haible  <bruno@clisp.org>
11137
11138         * modules/openat (configure.ac): Remove unneeded witness.
11139
11140 2009-09-06  Bruno Haible  <bruno@clisp.org>
11141
11142         Set errno to ENOSYS when a function is entirely unsupported.
11143         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
11144         EOPNOTSUPP.
11145         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
11146         * modules/chown (Depends-on): Remove errno.
11147
11148 2009-09-06  Bruno Haible  <bruno@clisp.org>
11149
11150         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
11151
11152 2009-09-06  Bruno Haible  <bruno@clisp.org>
11153
11154         * lib/sys_stat.in.h: Fix preprocessor command indentation.
11155
11156 2009-09-06  Ben Pfaff  <blp@gnu.org>
11157             Bruno Haible  <bruno@clisp.org>
11158
11159         Work around a glibc bug in strtok_r.
11160         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
11161         Undefine if UNDEFINE_STRTOK_R is set.
11162         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
11163         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
11164         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
11165         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
11166         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
11167         UNDEFINE_STRTOK_R.
11168         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
11169
11170 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
11171
11172         exclude: minor fix
11173         * lib/exclude.c: Include wctype.h
11174
11175 2009-09-06  Akim Demaille  <demaille@gostai.com>
11176
11177         bootstrap: improve error message
11178         * build-aux/bootstrap (find_tool): Upon failure, report the list
11179         of candidates.
11180         Honor the initial value of the envvar.
11181
11182 2009-09-05  Eric Blake  <ebb9@byu.net>
11183
11184         symlinkat: new module
11185         * modules/symlinkat: New file.
11186         * lib/symlinkat.c: Likewise.
11187         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
11188         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
11189         * modules/unistd (Makefile.am): Use them.
11190         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
11191         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
11192         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
11193         * MODULES.html.sh (File system functions): Mention module.
11194         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
11195         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
11196         * modules/symlinkat-tests: New test.
11197         * tests/test-symlinkat.c: Likewise.
11198
11199         test-openat-safer: add more checks
11200         * tests/test-openat-safer.c (main): Check more code paths.
11201
11202 2009-09-05  Jim Meyering  <meyering@redhat.com>
11203
11204         syntax-check: detect unnecessary inclusion of openat.h
11205         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
11206
11207 2009-09-05  Bruno Haible  <bruno@clisp.org>
11208
11209         Support towlower, towupper.
11210         * doc/posix-functions/towlower.texi: Mention module wctype.
11211         * doc/posix-functions/towupper.texi: Likewise.
11212         * lib/wctype.in.h (towlower, towupper): New functions.
11213         * tests/test-wctype.c: Include stdio.h, stdlib.h.
11214         (ASSERT): New macro.
11215         (e): New variable.
11216         (main): Test also towlower, towupper. Test WEOF argument.
11217         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
11218
11219 2009-09-05  Bruno Haible  <bruno@clisp.org>
11220
11221         Fix conversion behaviour when the input is invalid.
11222         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
11223         mark occurring in first pass of indirect conversion.
11224         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
11225         input.
11226         Found by clang's static analyzer.
11227
11228 2009-09-05  Bruno Haible  <bruno@clisp.org>
11229
11230         * tests/test-striconveh.c (main): Test indirect conversion on platforms
11231         where direct conversion is possible.
11232
11233 2009-09-04  Eric Blake  <ebb9@byu.net>
11234
11235         openat: fail with ENOENT on empty name
11236         * lib/openat-proc.c (openat_proc_name): Special-case the empty
11237         buffer.
11238
11239         link-follow: fix logic bug in prior patch
11240         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
11241         reversed sense of yes and no in prior patch.  Avoid confusing
11242         compilation failure with desired semantics.
11243
11244         link-follow: accomodate mingw and cross-compilation
11245         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
11246         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
11247         cross-compilation results to -1, to make linkat easier to
11248         implement when cross-compiling.  Trivially support mingw.
11249         * modules/link-follow (configure.ac): Call new name.
11250         * NEWS: Mention this.
11251
11252 2009-09-03  Eric Blake  <ebb9@byu.net>
11253
11254         faccessat: compile replacement
11255         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
11256         needed.
11257
11258         fts: fix compilation error
11259         * lib/fts.c (includes): Re-add "openat.h", for
11260         openat_needs_fchdir.
11261
11262         faccessat: new module
11263         * modules/faccessat: New file.
11264         * lib/faccessat.c: Likewise.
11265         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
11266         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
11267         * modules/unistd (Makefile.am): Use it.
11268         * lib/unistd.in.h (faccessat): Declare it.
11269         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
11270         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
11271         * MODULES.html.sh (File system functions): Mention it.
11272         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
11273         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
11274
11275         euidaccess: prefer POSIX over non-standard implementation
11276         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
11277         * lib/euidaccess.c (euidaccess): Use it if available.
11278
11279         openat: make template easier to use
11280         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
11281         AT_FUNC_F2 to be undefined.
11282         (VALIDATE_FLAG): New macro; use it to reject bad flags.
11283         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
11284         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
11285         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
11286         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
11287         Likewise.
11288         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
11289         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
11290         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
11291         Likewise.
11292
11293         openat: declare in POSIX headers
11294         * NEWS: Mention this.
11295         * modules/openat (configure.ac): Declare witnesses.
11296         (Depends-on): Add fcntl-h, sys_stat, unistd.
11297         (Include): Mention correct headers.
11298         * modules/fcntl-h (Depends-on): Add link-warning.
11299         (Files): Add openat.m4.
11300         (Makefile.am): Substitute witnesses.
11301         * modules/sys_stat (Files, Makefile.am): Likewise.
11302         * modules/unistd (Files, Makefile.am): Likewise.
11303         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
11304         (gl_OPENAT_DEFAULTS): New macro.
11305         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
11306         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
11307         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
11308         (SYS_STAT_H): Remove unused variable.
11309         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
11310         * lib/fcntl--.h (includes): Remove unneeded header.
11311         * lib/openat-safer.c (includes): Likewise.
11312         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
11313         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
11314         appropriate headers.
11315         (__OPENAT_PREFIX): Delete.
11316         * lib/fcntl.in.h (openat): Provide declaration.
11317         (AT_FDCWD): Fix Solaris bug.
11318         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
11319         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
11320         * lib/fchmodat.c (includes):  Adjust to find declaration.
11321         * lib/fchownat.c (includes): Likewise.
11322         * lib/mkdirat.c (includes): Likewise.
11323         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
11324         still visible.
11325
11326 2009-09-02  Eric Blake  <ebb9@byu.net>
11327
11328         errno: use consistently
11329         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
11330         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
11331         * lib/canonicalize.c (ELOOP): Likewise.
11332         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
11333         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
11334         * lib/lchown.c (EOPNOTSUPP): Likewise.
11335         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
11336         * lib/savewd.c (ESTALE): Likewise.
11337         * lib/settime.c (ENOSYS): Likewise.
11338         * lib/utimens.c (ENOSYS): Likewise.
11339         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
11340         * lib/chdir-safer.c (ELOOP): Likewise.
11341         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
11342         * modules/c-stack (Depends-on): Add errno.
11343         * modules/canonicalize (Depends-on): Likewise.
11344         * modules/chdir-safer (Depends-on): Likewise.
11345         * modules/fdopendir (Depends-on): Likewise.
11346         * modules/inet_ntop (Depends-on): Likewise.
11347         * modules/inet_pton (Depends-on): Likewise.
11348         * modules/lchown (Depends-on): Likewise.
11349         * modules/openat (Depends-on): Likewise.
11350         * modules/savewd (Depends-on): Likewise.
11351         * modules/settime (Depends-on): Likewise.
11352         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
11353
11354         fts: avoid leaking fds
11355         * modules/fts (Depends-on): Add cloexec.
11356         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
11357         flag.
11358
11359         fts: make directory fds more robust
11360         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
11361         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
11362
11363         backupfile, chdir-long, fts, savedir: make safer
11364         * lib/backupfile.c (includes): Use "dirent--.h", since
11365         numbered_backup can write to stderr during readdir.
11366         * lib/savedir.c (includes): Likewise.
11367         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
11368         emulation can write to stderr on failure.
11369         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
11370         * lib/getcwd.c: Document why opendir_safer is unused.
11371         * lib/glob.c: Likewise.
11372         * lib/scandir.c: Likewise.
11373         * lib/openat-proc.c: Likewise, for open_safer.
11374         * modules/backupfile (Depends-on): Add dirent-safer.
11375         * modules/savedir (Depends-on): Likewise.
11376         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
11377         * modules/chdir-long (Depends-on): Add openat-safer.
11378
11379         openat-safer: new module
11380         * modules/openat-safer: New file.
11381         * lib/openat-safer.c: Likewise.
11382         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
11383         * lib/fcntl-safer.h (openat_safer): Declare.
11384         * lib/fcntl--.h (openat): Override.
11385         * MODULES.html.sh (File descriptor based I/O): Mention it.
11386         * lib/openat.h: Add double-inclusion guards.
11387         * lib/openat.c (includes): Only include "fcntl-safer.h", not
11388         "fcntl--.h", so we can implement openat.
11389         * modules/openat-safer-tests: New test.
11390         * tests/test-openat-safer.c: New file.
11391
11392         dirent-safer: new module
11393         * modules/dirent-safer: New file.
11394         * lib/dirent--.h: Likewise.
11395         * lib/dirent-safer.h: Likewise.
11396         * lib/opendir-safer.c: Likewise.
11397         * m4/dirent-safer.m4: Likewise.
11398         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
11399         * modules/dirent-safer-tests: New test.
11400         * tests/test-dirent-safer.c: New file.
11401         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
11402
11403         fdopendir: optimize on mingw
11404         * lib/unistd.in.h (_gl_directory_name): New prototype.
11405         * lib/fchdir.c (_gl_directory_name): Implement it.
11406         (fchdir): Use it to simplify implementation.
11407         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
11408         fchdir, when available, to avoid calling [f]chdir().
11409
11410         fdopendir: split into its own module
11411         * lib/openat.c (fdopendir): Move...
11412         * lib/fdopendir.c: ...into new file.
11413         * modules/fdopendir: New module.
11414         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
11415         * modules/openat (Depends-on): Add fdopendir.
11416         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
11417         fdopendir here.
11418         * modules/savedir (Depends-on): Only need fdopendir, not full
11419         openat.
11420         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
11421         * lib/openat.h (fdopendir): Drop prototype.
11422         * lib/dirent.in.h (fdopendir): Provide prototype.
11423         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
11424         * modules/dirent (Makefile.am): Substitute them.
11425         * MODULES.html.sh (File system functions): Mention it.
11426         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
11427         * modules/fdopendir-tests: New file.
11428         * tests/test-fdopendir.c: Likewise.
11429
11430         fchdir: use more consistent macro convention
11431         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
11432         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
11433         REPLACE_FCHDIR, rather than relying on config.h macros.
11434         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
11435         inside a single make-time REPLACE_FCHDIR block, rather than using
11436         the config.h FCHDIR_REPLACEMENT.
11437         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
11438         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
11439         Manage fstat replacement.
11440         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
11441         REPLACE_FCHDIR.
11442         * modules/sys_stat (Files): Add m4/unistd_h.m4.
11443         (Makefile.am): Substitute REPLACE_FCHDIR.
11444         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
11445         FCHDIR_REPLACEMENT.
11446         * lib/dup-safer.c (dup_safer): Likewise.
11447         * lib/dup2.c (rpl_dup2): Likewise.
11448         * lib/dup3.c (rpl_dup3): Likewise.
11449         * lib/open.c (rpl_open): Likewise.
11450
11451         fchdir: simplify error handling, and support dup3
11452         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
11453         stdbool, malloc-posix, realloc-posix.
11454         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
11455         (ensure_dirs_slot): Return false on allocation failure.
11456         (rpl_dup2): Delete.
11457         (_gl_register_dup): New function.
11458         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
11459         (_gl_register_fd): Close fd on allocation failure.
11460         * lib/fcntl.in.h (_gl_register_fd): Update signature.
11461         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
11462         prototype.
11463         (rpl_dup2_fchdir): Delete prototype.
11464         * lib/open.c (open): Update caller.
11465         * lib/dup2.c (dup2): Track fchdir metadata.
11466         * lib/dup3.c (dup3): Likewise.
11467         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
11468         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
11469
11470 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11471
11472         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
11473         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
11474         don't pass arguments to AC_OUTPUT.
11475
11476 2009-09-02  Bruno Haible  <bruno@clisp.org>
11477
11478         * modules/mkdtemp (License): Relicense under LGPLv2+.
11479         Reported by Paolo Bonzini.
11480
11481 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11482
11483         Replace uses of obsolete autoconf macros in Jim's modules.
11484         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
11485         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
11486         can evoke a warning from autoconf when run with -Wobsolete
11487         enabled.  They were declared obsolete for good reasons (see
11488         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
11489         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
11490         should not continue using the deprecated macros.
11491         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
11492         obsolete Autoconf macros with modern counterparts.
11493         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
11494         * m4/dos.m4 (gl_AC_DOS): Likewise.
11495         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
11496         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
11497         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
11498         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
11499         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
11500         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
11501         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
11502         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
11503         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
11504         Likewise.
11505         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
11506         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
11507         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
11508         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
11509         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
11510         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
11511
11512 2009-09-01  Eric Blake  <ebb9@byu.net>
11513
11514         fchdir: fix off-by-one bug in previous patch
11515         * lib/fchdir.c (rpl_fstat): Use correct bounds.
11516         (_gl_unregister_fd): Delete useless if.
11517
11518 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
11519
11520         maint.mk: sort the list of syntax-check rules
11521         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
11522         easier to get a sense of progress when the rules are run sequentially
11523         and take a long time.
11524
11525 2009-09-01  Simon Josefsson  <simon@josefsson.org>
11526
11527         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
11528         * modules/netinet_in: Likewise.
11529         * modules/sys_file: Likewise.
11530         * modules/sys_ioctl: Likewise.
11531         * modules/sys_select: Likewise.
11532         * modules/sys_socket: Likewise.
11533         * modules/sys_stat: Likewise.
11534         * modules/sys_time: Likewise.
11535         * modules/sys_times: Likewise.
11536         * modules/sys_utsname: Likewise.
11537         * modules/sys_wait: Likewise.
11538
11539 2009-09-01  Jim Meyering  <meyering@redhat.com>
11540
11541         fts: help ensure that return values are not ignored
11542         * lib/fts_.h (__GNUC_PREREQ): Define.
11543         (__attribute_warn_unused_result__): Define.
11544         (fts_children, fts_close, fts_open, fts_read): Declare with
11545         __attribute_warn_unused_result__.
11546
11547         fts: fts_close now fails also when closing a dir file descriptor fails
11548         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
11549         and propagate to caller, along with errno.
11550
11551         announce-gen: correct formatting in --help output
11552         * build-aux/announce-gen (usage): Move the one-line description in
11553         --help output "up", to where it belongs, just after Usage:.
11554
11555 2009-08-31  Eric Blake  <ebb9@byu.net>
11556
11557         fchdir: port to mingw
11558         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
11559         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
11560         opened, then use a substitute.
11561         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
11562         replacement.
11563         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
11564         (_gl_register_fd): No need to check stat if open already filters
11565         all directories.
11566         (fchdir): Fix error condition to match POSIX.
11567         * modules/fchdir (Depends-on): Add sys_stat.
11568         * doc/posix-functions/open.texi (open): Document the limitation.
11569         * modules/fchdir-tests: New file.
11570         * tests/test-fchdir.c: Likewise.
11571
11572         canonicalize: allow cross-testing from cygwin to mingw
11573         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
11574         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
11575         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
11576         Likewise.
11577         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
11578         target does not support symlinks.
11579         * tests/test-canonicalize-lgpl.sh: Likewise.
11580
11581         chown: avoid compilation warning on mingw
11582         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
11583         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
11584         mingw.
11585         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
11586         * modules/chown (Depends-on): Add errno.
11587
11588 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
11589
11590         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
11591         command.
11592
11593 2009-08-31  Jim Meyering  <meyering@redhat.com>
11594
11595         canonicalize: remove useless initialization
11596         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
11597         initialization of local, "end".
11598
11599 2009-08-30  Bruno Haible  <bruno@clisp.org>
11600
11601         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
11602         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
11603         ENOSYS.
11604
11605 2009-08-30  Bruno Haible  <bruno@clisp.org>
11606
11607         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
11608         /usr/xpg4/bin/tr when it exists.
11609         * tests/test-pipe-filter-gi1.sh: Likewise.
11610
11611 2009-08-30  Bruno Haible  <bruno@clisp.org>
11612
11613         Work around deficient /usr/bin/id program on Solaris.
11614         * tests/test-file-has-acl.sh (ID): New variable.
11615         * tests/test-set-mode-acl.sh (ID): Likewise.
11616         * tests/test-copy-acl.sh (ID): Likewise.
11617         * tests/test-copy-file.sh (ID): Likewise.
11618
11619 2009-08-30  Bruno Haible  <bruno@clisp.org>
11620
11621         New module 'xstriconveh'.
11622         * lib/xstriconveh.h: New file.
11623         * lib/xstriconveh.c: New file.
11624         * modules/xstriconveh: New file.
11625
11626 2009-08-30  Bruno Haible  <bruno@clisp.org>
11627
11628         Make it easier to use mem_cd_iconveh.
11629         * lib/striconveh.h (iconveh_t): New type.
11630         (iconveh_open, iconveh_close): New declarations.
11631         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
11632         with a single 'const iconveh_t *' argument.
11633         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
11634         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
11635         with a single 'const iconveh_t *' argument.
11636         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
11637         * tests/test-striconveh.c (main): Update.
11638         * NEWS: Mention the change.
11639
11640 2009-08-30  Bruno Haible  <bruno@clisp.org>
11641
11642         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
11643         problem.
11644
11645 2009-08-30  Bruno Haible  <bruno@clisp.org>
11646
11647         Work around iconv_open problem on Solaris.
11648         * lib/iconv_open-solaris.gperf: New file.
11649         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
11650         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
11651         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
11652         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
11653         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
11654         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
11655
11656 2009-08-29  Jim Meyering  <meyering@redhat.com>
11657
11658         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
11659         * top/maint.mk (cvs-check): Remove target; it was just an alias
11660         to the better-named vc-diff-check.
11661         (maintainer-distcheck): Remove rule.  It was used only from
11662         the (alpha/beta/major) target, and all of its commands but one
11663         were coreutils-specific.
11664         (vc-dist): Remove rule.
11665         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
11666         Run vc-diff-check, not vc-dist.
11667         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
11668
11669 2009-08-27  Bruno Haible  <bruno@clisp.org>
11670
11671         * tests/test-bitrotate.c (main): Remove test that uses a shift count
11672         of 0.
11673
11674 2009-08-27  Bruno Haible  <bruno@clisp.org>
11675
11676         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
11677         compilers.
11678         * doc/func.texi: Document the SunPRO C bug.
11679
11680 2009-08-27  Bruno Haible  <bruno@clisp.org>
11681
11682         Fix link error on Solaris.
11683         * tests/test-parse-duration.c (xstrdup): Remove function.
11684
11685 2009-08-26  Pádraig Brady  <P@draigbrady.com>
11686
11687         ignore-value: handle pointer types, too
11688         * lib/ignore-value.h (__attribute__): Remove definition.
11689         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
11690         of a more concise and more-often effective "(void) i" statement.
11691         (ignore_ptr): New function to suppress warnings from functions that
11692         return pointers, and to make it explicit that one function doesn't
11693         handle all cases.
11694
11695 2009-08-25  Bruno Haible  <bruno@clisp.org>
11696
11697         dup2: work around a Linux bug.
11698         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
11699         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
11700         * doc/posix-functions/dup2.texi: Mention the Linux bug.
11701         Reported by Simon Josefsson.
11702
11703 2009-08-25  Jim Meyering  <meyering@redhat.com>
11704
11705         libguestfs uses gnulib
11706         * users.txt: Add libguestfs.
11707
11708 2009-08-24  Eric Blake  <ebb9@byu.net>
11709
11710         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
11711         * lib/pipe2.c (includes): Add binary-io.h.
11712         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
11713
11714 2009-08-24  Bruno Haible  <bruno@clisp.org>
11715
11716         Tolerate declared but missing accept4 syscall.
11717         * lib/accept4.c (accept4): Invoke original accept4 function first, if
11718         available.
11719         * lib/sys_socket.in.h (accept4): If the function is already present,
11720         override it.
11721         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
11722         * modules/accept4 (Makefile.am): Compile accept4.c always.
11723         Reported by Paolo Bonzini and Eric Blake.
11724
11725 2009-08-23  Bruno Haible  <bruno@clisp.org>
11726
11727         New module 'accept4'.
11728         * lib/sys_socket.in.h (accept4): New declaration.
11729         * lib/accept4.c: New file.
11730         * m4/accept4.m4: New file.
11731         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
11732         GNULIB_ACCEPT4, HAVE_ACCEPT4.
11733         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
11734         HAVE_ACCEPT4.
11735         * modules/accept4: New file.
11736         * doc/glibc-functions/accept4.texi: Mention the new module.
11737
11738 2009-08-24  Jim Meyering  <meyering@redhat.com>
11739
11740         progname: also set global program_invocation_name, when possible
11741         Before this change, a libtool-enabled program that calls glibc's
11742         error function would report the program name as
11743         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
11744         * modules/progname (configure.ac): Check for a declaration of
11745         program_invocation_name.
11746         * lib/progname.c:  Include <errno.h>.
11747         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
11748         Set program_invocation_name.
11749
11750 2009-08-23  Bruno Haible  <bruno@clisp.org>
11751
11752         * lib/dup3.c: Include <string.h>.
11753
11754 2009-08-23  Bruno Haible  <bruno@clisp.org>
11755
11756         * lib/dup3.c (dup3): Test only once whether the system actually exists.
11757         * lib/pipe2.c (pipe2): Likewise.
11758         Suggested by Eric Blake.
11759
11760 2009-08-23  Bruno Haible  <bruno@clisp.org>
11761
11762         Tolerate declared but missing dup3 syscall.
11763         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
11764         * lib/unistd.in.h (dup3): If the function is already present,
11765         override it.
11766         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
11767         * modules/dup3 (Makefile.am): Compile dup3.c always.
11768         Reported by Paolo Bonzini.
11769
11770 2009-08-23  Bruno Haible  <bruno@clisp.org>
11771
11772         Tolerate declared but missing pipe2 syscall.
11773         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
11774         available.
11775         * lib/unistd.in.h (pipe2): If the function is already present,
11776         override it.
11777         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
11778         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
11779         Reported by Paolo Bonzini.
11780
11781 2009-08-23  Bruno Haible  <bruno@clisp.org>
11782
11783         * lib/pipe2.c (pipe2): Move #ifs inside function.
11784
11785 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
11786
11787         quotearg: document limitations of quote_these_too
11788         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
11789         those limitations are created.
11790         * lib/quotearg.h (set_char_quoting): Document that digits and
11791         letters that are special after backslash are not permitted.
11792         (quotearg_char): Cross-reference set_char_quoting documentation.
11793
11794 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
11795
11796         quotearg: implement custom_quoting_style
11797         * lib/quotearg.c: (struct quoting_options): Add left_quote and
11798         right_quote fields.
11799         (set_custom_quoting): New public function.
11800         (quotearg_buffer_restyled): Add left_quote and right_quote
11801         arguments, handle them very much like locale quoting, and update
11802         all uses.
11803         (quotearg_n_custom): New public function.
11804         (quotearg_n_custom_mem): New public function.
11805         (quotearg_custom): New public function.
11806         (quotearg_custom_mem): New public function.
11807         * lib/quotearg.h: Prototype and document new public functions.
11808         (enum quoting_style): For escape_quoting_style and
11809         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
11810         ignored even though they're otherwise like c_quoting_style.
11811         Add custom_quoting_style member and document with comparison to
11812         clocale_quoting_style.
11813         * tests/test-quotearg.c (custom_quotes): New array.
11814         (custom_results): New array.
11815         (main): Extend to test custom quoting.
11816
11817 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
11818
11819         quotearg: fix right quote escaping when it's in quote_these_too
11820         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
11821         quote, be sure to prepend only one backslash.
11822         * tests/test-quotearg.c (use_quote_double_quotes): New function.
11823         (main): Test it.
11824
11825 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
11826
11827         quotearg-tests: test escaping of embedded locale quotes
11828         * tests/test-quotearg.c (struct result_strings): Add member for
11829         new input.
11830         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
11831         (inputs): Add new input.
11832         (results_g): Add expected results.
11833         (flag_results): Likewise.
11834         (locale_results): Likewise.
11835         (compare_strings): Check those.
11836
11837 2009-08-23  Bruno Haible  <bruno@clisp.org>
11838
11839         Tests for module 'dup3'.
11840         * modules/dup3-tests: New file.
11841         * tests/test-dup3.c: New file.
11842
11843         New module 'dup3'.
11844         * lib/unistd.in.h (dup3): New declaration.
11845         * lib/dup3.c: New file.
11846         * m4/dup3.m4: New file.
11847         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
11848         HAVE_DUP3.
11849         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
11850         * modules/dup3: New file.
11851         * doc/glibc-functions/dup3.texi: Mention the new module.
11852
11853 2009-08-23  Bruno Haible  <bruno@clisp.org>
11854
11855         Tweak the dup2 test.
11856         * tests/test-dup2.c (main): Create the test file empty. Verify that an
11857         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
11858         the test file is still empty. Fix argument order of lseek.
11859
11860 2009-08-23  Bruno Haible  <bruno@clisp.org>
11861
11862         Avoid test link errors when the modules getopt-gnu, gettext are used.
11863         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
11864         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11865
11866 2009-08-23  Bruno Haible  <bruno@clisp.org>
11867
11868         Fix getdtablesize() on mingw.
11869         * lib/getdtablesize.c (getdtablesize): Implement differently.
11870         * lib/unistd.in.h (getdtablesize): Improve comment.
11871
11872 2009-08-23  Bruno Haible  <bruno@clisp.org>
11873
11874         New module 'mkostemp'.
11875         Based on Ulrich Drepper's 2007-08-10 change in glibc.
11876         * lib/stdlib.in.h (mksotemp): New declaration.
11877         * lib/mkostemp.c: New file, from glibc with modifications.
11878         * lib/tempname.h (GT_FILE): Remove outdated comment.
11879         (gen_tempname): Add flags argument.
11880         * lib/tempname.c (__GT_BIGFILE): Remove macro.
11881         (__GT_FILE): Map to 1.
11882         (small_open, large_open): Remove macros.
11883         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
11884         * lib/mkstemp.c (mkstemp): Update.
11885         * lib/mkdtemp.c (mkdtemp): Likewise.
11886         * m4/mkostemp.m4: New file.
11887         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
11888         HAVE_MKOSTEMP.
11889         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
11890         HAVE_MKOSTEMP.
11891         * modules/mkostemp: New file, based on modules/mkstemp.
11892         * doc/glibc-functions/mkostemp.texi: Mention the new module.
11893         * NEWS: Mention the change.
11894
11895 2009-08-23  Bruno Haible  <bruno@clisp.org>
11896
11897         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
11898         Reported by Eric Blake.
11899
11900 2009-08-23  Bruno Haible  <bruno@clisp.org>
11901
11902         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
11903         Reported by Eric Blake.
11904
11905 2009-08-23  Bruno Haible  <bruno@clisp.org>
11906
11907         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
11908         * modules/pipe2 (Depends-on): Likewise.
11909
11910 2009-08-23  Eric Blake  <ebb9@byu.net>
11911
11912         fcntl-h: add O_TTY_INIT support
11913         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
11914         * tests/test-fcntl-h.c (o): Test it.
11915         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
11916
11917         fcntl-h: rename from fcntl, in preparation for fcntl(2)
11918         * modules/fcntl: Move <fcntl.h> header replacement...
11919         * modules/fcntl-h: ...to new name, so as not to collide with
11920         like-named function.
11921         * tests/test-fcntl.c: Rename...
11922         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
11923         * modules/fcntl-tests: Rename...
11924         * modules/fcntl-h-tests: ...to this.  Update test file name.
11925         * modules/chdir-long (Depends-on): Update clients.
11926         * modules/chdir-safer (Depends-on): Likewise.
11927         * modules/fcntl-safer (Depends-on): Likewise.
11928         * modules/fts (Depends-on): Likewise.
11929         * modules/mkancesdirs (Depends-on): Likewise.
11930         * modules/mkdir-p (Depends-on): Likewise.
11931         * modules/open (Depends-on): Likewise.
11932         * modules/savewd (Depends-on): Likewise.
11933         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
11934         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
11935
11936 2009-08-22  Bruno Haible  <bruno@clisp.org>
11937
11938         * modules/binary-io (License): Relicense under LGPL.
11939         * modules/pipe2 (License): Likewise.
11940
11941 2009-08-22  Bruno Haible  <bruno@clisp.org>
11942
11943         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
11944         return value.
11945         * lib/pipe-filter-gi.c (filter_init): Likewise.
11946         Reported by Eric Blake.
11947
11948 2009-08-22  Bruno Haible  <bruno@clisp.org>
11949
11950         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
11951         * modules/pipe (Depends-on): Add pipe2.
11952
11953 2009-08-22  Bruno Haible  <bruno@clisp.org>
11954
11955         Tests for module 'pipe2'.
11956         * modules/pipe2-tests: New file.
11957         * tests/test-pipe2.c: New file.
11958
11959         New module 'pipe2'.
11960         * lib/unistd.in.h (pipe2): New declaration.
11961         * lib/pipe2.c: New file.
11962         * m4/pipe2.m4: New file.
11963         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
11964         HAVE_PIPE2.
11965         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
11966         * modules/pipe2: New file.
11967         * doc/glibc-functions/pipe2.texi: Mention the new module.
11968
11969 2009-08-22  Bruno Haible  <bruno@clisp.org>
11970
11971         Reference some new glibc functions.
11972         * doc/glibc-functions/accept4.texi: New file.
11973         * doc/glibc-functions/dup3.texi: New file.
11974         * doc/glibc-functions/mkostemp.texi: New file.
11975         * doc/glibc-functions/pipe2.texi: New file.
11976         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
11977         (Glibc sys/socket.h): Refer to accept4.
11978         (Glibc unistd.h): Refer to dup3, pipe2.
11979         Reported by Eric Blake.
11980
11981 2009-08-22  Jim Meyering  <meyering@redhat.com>
11982             Bruno Haible  <bruno@clisp.org>
11983
11984         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
11985         This makes it so packages using automake-1.11's silent-rules option
11986         can print e.g., a single "GEN    configmake.h" line, rather than
11987         the 30+ statements that perform the job.  If you want to see the
11988         actual commands, you can still run "make V=1".
11989         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
11990         so that make output is abbreviated when those variables are defined
11991         appropriately.
11992         * modules/argz: Likewise.
11993         * modules/arpa_inet: Likewise.
11994         * modules/byteswap: Likewise.
11995         * modules/configmake: Likewise.
11996         * modules/dirent: Likewise.
11997         * modules/errno: Likewise.
11998         * modules/fcntl: Likewise.
11999         * modules/float: Likewise.
12000         * modules/fnmatch: Likewise.
12001         * modules/getopt-posix: Likewise.
12002         * modules/glob: Likewise.
12003         * modules/iconv_open: Likewise.
12004         * modules/inttypes: Likewise.
12005         * modules/localcharset: Likewise.
12006         * modules/locale: Likewise.
12007         * modules/math: Likewise.
12008         * modules/netdb: Likewise.
12009         * modules/netinet_in: Likewise.
12010         * modules/poll: Likewise.
12011         * modules/posix_spawnp-tests: Likewise.
12012         * modules/sched: Likewise.
12013         * modules/search: Likewise.
12014         * modules/selinux-h: Likewise.
12015         * modules/signal: Likewise.
12016         * modules/spawn: Likewise.
12017         * modules/stdarg: Likewise.
12018         * modules/stdbool: Likewise.
12019         * modules/stddef: Likewise.
12020         * modules/stdint: Likewise.
12021         * modules/stdio: Likewise.
12022         * modules/stdlib: Likewise.
12023         * modules/string: Likewise.
12024         * modules/strings: Likewise.
12025         * modules/sys_file: Likewise.
12026         * modules/sys_ioctl: Likewise.
12027         * modules/sys_select: Likewise.
12028         * modules/sys_socket: Likewise.
12029         * modules/sys_stat: Likewise.
12030         * modules/sys_time: Likewise.
12031         * modules/sys_times: Likewise.
12032         * modules/sys_utsname: Likewise.
12033         * modules/sys_wait: Likewise.
12034         * modules/sysexits: Likewise.
12035         * modules/time: Likewise.
12036         * modules/unistd: Likewise.
12037         * modules/wchar: Likewise.
12038         * modules/wctype: Likewise.
12039
12040 2009-08-22  Jim Meyering  <meyering@redhat.com>
12041
12042         announce-gen: detect write failure
12043         * build-aux/announce-gen: Add Coda at end.
12044         Remove equivalent-but-more-verbose block at top.
12045
12046 2009-08-19  Akim Demaille  <demaille@gostai.com>
12047
12048         bootstrap: --help to stdout.
12049         * bootstrap (usage): Don't send --help to stderr.
12050         Use a here doc instead of a long string.
12051
12052 2009-08-21  Eric Blake  <ebb9@byu.net>
12053
12054         test-popen-safer: split from test-popen
12055         * tests/test-popen.c (main): Move...
12056         * tests/test-popen.h: ...into new file.
12057         * tests/test-popen-safer2.c: New file.
12058         * modules/popen-tests (Files): Add test-popen.h.
12059         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
12060         Suggested by Bruno Haible.
12061
12062         test-fcntl-safer: split from test-open
12063         * tests/test-open.c (main): Move...
12064         * tests/test-open.h: ...into new file.
12065         * tests/test-fcntl-safer.c: New file.
12066         * modules/open-tests (Files): Add test-open.h.
12067         * modules/fcntl-safer-tests: New file.
12068         Suggested by Bruno Haible.
12069
12070         test-fopen-safer: split from test-fopen
12071         * tests/test-fopen.c (main): Move...
12072         * tests/test-fopen.h: ...into new file.
12073         * tests/test-fopen-safer.c: New file.
12074         * modules/fopen-tests (Files): Add test-fopen.h.
12075         * modules/fopen-safer-tests: New file.
12076         Suggested by Bruno Haible.
12077
12078 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
12079
12080         popen-safer: test O_CLOEXEC at run-time.
12081         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
12082
12083 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
12084
12085         fcntl: move more flags to the header
12086         * lib/cloexec.c: Do not define FD_CLOEXEC here.
12087         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
12088         * lib/fcntl.in.h: Do both things here.
12089
12090 2009-08-21  Jim Meyering  <meyering@redhat.com>
12091
12092         consistently remove $@-t before redirecting to it
12093         * modules/argz: Remove $@-t and $@ before redirecting to the former.
12094         * modules/alloca-opt: Likewise.
12095         * modules/byteswap: Likewise.
12096         * modules/fnmatch: Likewise.
12097         * modules/getopt-posix: Likewise.
12098         * modules/glob: Likewise.
12099         * modules/poll: Likewise.
12100         * modules/posix_spawnp-tests: Likewise.
12101         * modules/sys_socket: Likewise.
12102         * modules/sysexits: Likewise.
12103
12104 2009-08-21  Eric Blake  <ebb9@byu.net>
12105
12106         popen: simplify access to original popen
12107         * lib/popen.c (rpl_popen): No need to worry about popen being a
12108         macro.
12109         Reported by Bruno Haible.
12110
12111 2009-08-20  Eric Blake  <ebb9@byu.net>
12112
12113         build: avoid some compiler warnings
12114         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
12115         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
12116         type.
12117         (new_exclude_segment, excluded_file_pattern_p)
12118         (excluded_file_name_p): Reduce scope.
12119         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
12120         old-style declaration.
12121
12122 2009-08-20  Simon Josefsson  <simon@josefsson.org>
12123
12124         * tests/test-exclude1.sh: Handle Windows EOL.
12125         * tests/test-exclude2.sh: Likewise.
12126         * tests/test-exclude3.sh: Likewise.
12127         * tests/test-exclude4.sh: Likewise.
12128         * tests/test-exclude5.sh: Likewise.
12129         * tests/test-exclude6.sh: Likewise.
12130         * tests/test-exclude7.sh: Likewise.
12131
12132 2009-08-19  Akim Demaille  <demaille@gostai.com>
12133
12134         bootstrap: find sha1sum when named gsha1sum.
12135         * bootstrap (find_tool): New.
12136         ($SHA1SUM): New.
12137         Use it.
12138
12139 2009-08-20  Jim Meyering  <meyering@redhat.com>
12140
12141         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
12142         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
12143         expression that converts "." in a file name to "\." in the resulting
12144         regexp.  Start with a dummy statement, so that prior shell variable
12145         definitions are expanded portably.  Reported by Simon Josefsson.
12146
12147 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
12148
12149         Fix polling for writeability of a screen buffer.
12150         * lib/poll.c: Distinguish input and screen buffers for the
12151         Win32 implementation.
12152         * lib/select.c: Likewise.
12153
12154 2009-08-19  Eric Blake  <ebb9@byu.net>
12155
12156         popen-safer: prevent popen from clobbering std descriptors
12157         * modules/popen-safer: New file.
12158         * lib/popen-safer.c: Likewise.
12159         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
12160         * lib/stdio--.h (popen): Provide override.
12161         * lib/stdio-safer.h (popen_safer): Provide declaration.
12162         * tests/test-popen.c (includes): Partially test this.
12163         * modules/popen-safer-tests: New file, for more tests.
12164         * tests/test-popen-safer.c: Likewise.
12165         * MODULES.html.sh (file stream based Input/Output): Mention it.
12166
12167         tests: test some of the *-safer modules
12168         * modules/fopen-safer (Depends-on): Add fopen.
12169         * modules/fcntl-safer (Depends-on): Add fcntl.
12170         * modules/stdlib-safer (Depends-on): Add stdlib.
12171         (configure.ac): Set indicator.
12172         * modules/unistd-safer (configure.ac): Likewise.
12173         * modules/tmpfile-safer (configure.ac): Likewise.
12174         (Depends-on): Add tmpfile.
12175         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
12176         active.
12177         * tests/test-fopen.c (includes): Test safer versions when they are
12178         in use.
12179         * tests/test-open.c (includes): Likewise.
12180
12181         popen: fix cygwin 1.5 bug when stdin closed
12182         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
12183         * modules/popen: New file.
12184         * modules/popen-tests: Likewise.
12185         * tests/test-popen.c: Likewise.
12186         * m4/popen.m4: Likewise.
12187         * lib/popen.c: Likewise.
12188         * lib/stdio.in.h (popen): New declaration.
12189         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
12190         * modules/stdio (Makefile.am): Likewise.
12191         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
12192
12193 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
12194
12195         maint.mk: give full control over update-copyright exclusions
12196         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
12197         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
12198         (update-copyright): Don't force inclusion of top-level
12199         ChangeLog.  Don't force exclusion of all COPYING files, but make
12200         them the default exclusion instead.
12201
12202 2009-08-16  Bruno Haible  <bruno@clisp.org>
12203
12204         Fix test failures on Solaris 10.
12205         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
12206         tests when Solaris iconv() is used.
12207         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
12208         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
12209         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
12210         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
12211         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
12212
12213 2009-08-16  Bruno Haible  <bruno@clisp.org>
12214
12215         Fix test failures on Solaris 10.
12216         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
12217         'tr' program and pass it as first argument.
12218         * tests/test-pipe-filter-gi1.sh: Likewise.
12219         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
12220         program as first argument.
12221         * tests/test-pipe-filter-gi1.c (main): Likewise.
12222
12223 2009-08-16  Eric Blake  <ebb9@byu.net>
12224
12225         fpurge: fix previous commits
12226         * modules/fpurge (Makefile.am): Make replacement conditional,
12227         partially reverting 2007-04-29 change; missed in previous
12228         attempt.
12229         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
12230         is missing.
12231
12232 2009-08-16  Bruno Haible  <bruno@clisp.org>
12233
12234         Clarify fpurge's effect on the file position.
12235         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
12236         * tests/test-fpurge.c (main): Make a second pass for checking the file
12237         position.
12238
12239 2009-08-16  Bruno Haible  <bruno@clisp.org>
12240
12241         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
12242         declaration of fpurge is missing.
12243         * tests/test-fpurge.c (main): Check that the file has not more contents
12244         than expected. Close the file before removing it.
12245
12246 2009-08-15  Eric Blake  <ebb9@byu.net>
12247
12248         fpurge: don't wrap working cygwin implementation
12249         * lib/fpurge.c (fpurge): Fix comment typo.
12250         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
12251         1.7 to avoid replacement.
12252         * tests/test-fpurge.c (main): Enhance test.
12253
12254 2009-08-15  Eric Blake  <ebb9@byu.net>
12255         and Jim Meyering  <meyering@redhat.com>
12256
12257         test-update-copyright: skip if perl is insufficient
12258         * tests/test-update-copyright.sh: Failure to run maintainer tool
12259         should not cause testsuite failure on cygwin 1.5.
12260
12261 2009-08-14  Eric Blake  <ebb9@byu.net>
12262
12263         doc: mention more functions added in cygwin 1.7.0
12264         * doc/posix-headers/limits.texi (limits.h): Update for recent
12265         cygwin additions.
12266         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
12267         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
12268         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
12269         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
12270         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
12271
12272 2009-08-14  Eric Blake  <ebb9@byu.net>
12273
12274         maint.mk: simplify update-copyright rule
12275         * top/maint.mk (update-copyright-local): Delete, and document how
12276         to do it in cfg.mk instead.
12277         (update-copyright-exclude-regexp): Delete, and document how to do
12278         it in .x-update-copyright instead.
12279         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
12280         exclude ChangeLog.
12281
12282 2009-08-14  Bruno Haible  <bruno@clisp.org>
12283
12284         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
12285
12286 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
12287
12288         maint.mk: support update-copyright-env
12289         * top/maint.mk (update-copyright-env): Define place-holder.
12290         (update-copyright): Expand $(update-copyright-env) before
12291         invoking update-copyright.
12292
12293 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
12294
12295         update-copyright: implement forced reformatting
12296         * build-aux/update-copyright: Implement and document
12297         UPDATE_COPYRIGHT_FORCE.
12298         * tests/test-update-copyright.sh: Test it.
12299
12300 2009-08-14  Eric Blake  <ebb9@byu.net>
12301         and Bruno Haible  <bruno@clisp.org>
12302
12303         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
12304         * tests/test-locale.c: Revert previous patch related to NULL.
12305         * tests/test-stdio.c: Likewise.
12306         * tests/test-stdlib.c: Likewise.
12307         * tests/test-string.c: Likewise.
12308         * tests/test-unistd.c: Likewise.
12309         * modules/time-tests (Depends-on): Add verify.
12310         * modules/wchar-tests (Depends-on): Likewise.
12311         * tests/test-time.c: Test for NULL compliance.
12312         * tests/test-wchar.c: Likewise.
12313         * modules/locale (Depends-on): Add stddef.
12314         * modules/stdio (Depends-on): Likewise.
12315         * modules/stdlib (Depends-on): Likewise.
12316         * modules/string (Depends-on): Likewise.
12317         * modules/time (Depends-on): Likewise.
12318         * modules/unistd (Depends-on): Likewise.
12319         * modules/wchar (Depends-on): Likewise.
12320         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
12321         * lib/stdlib.in.h (includes): Likewise.
12322         * lib/string.in.h (includes): Likewise.
12323         * lib/time.in.h (includes): Likewise.
12324         * lib/unistd.in.h (includes): Likewise.
12325         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
12326         replaced.
12327         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
12328         * m4/stddef_h.m4: New file.
12329         * modules/stddef: Likewise.
12330         * lib/stddef.in.h: Likewise.
12331         * modules/stddef-tests: Likewise.
12332         * tests/test-stddef.c: Likewise.
12333         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
12334         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
12335         * doc/posix-headers/locale.texi (locale.h): Likewise.
12336         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
12337         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
12338         * doc/posix-headers/string.texi (string.h): Likewise.
12339         * doc/posix-headers/time.texi (time.h): Likewise.
12340         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
12341         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
12342
12343 2009-08-14  Eric Blake  <ebb9@byu.net>
12344
12345         doc: improve git diff of texinfo files
12346         * .gitattributes: Add rule for *.texi files, with hint on how to
12347         use it.
12348         Copied from m4, and based on a report by Bruno Haible.
12349
12350 2009-08-14  Bruno Haible  <bruno@clisp.org>
12351
12352         Disable multithread support by default on Cygwin 1.5.x for real.
12353         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
12354
12355 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
12356
12357         update-copyright: much ado about intervals
12358         * build-aux/update-copyright: Implement and document
12359         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
12360         of copyright year intervals.
12361         Also, document UPDATE_COPYRIGHT_YEAR.
12362         * tests/test-update-copyright.sh: Test it.
12363
12364         update-copyright: convert 2-digit to 4-digit years
12365         * build-aux/update-copyright: Implement and document.
12366         * tests/test-update-copyright.sh: Update.
12367
12368 2009-08-14  Jim Meyering  <meyering@redhat.com>
12369
12370         test-exclude: avoid coreutils "make check" failure
12371         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
12372         just as in test-argmatch.c.
12373
12374 2009-08-13  Eric Blake  <ebb9@byu.net>
12375
12376         test-dup2: fix bad assumption
12377         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
12378         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
12379
12380         test-version-etc: fix CRLF portability issue
12381         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
12382         recognize \r.
12383         * tests/test-argp-version-etc-1.sh: Likewise.
12384
12385         getopt: update client modules
12386         * modules/argp (Depends-on): Use getopt-gnu.
12387         * modules/git-merge-changelog (Depends-on): Likewise.
12388         * modules/long-options (Depends-on): Likewise.
12389         * modules/xstrtol (Depends-on): Likewise.
12390
12391 2009-08-13  Simon Josefsson  <simon@josefsson.org>
12392
12393         * tests/test-version-etc.sh: Don't fail on different
12394         project/version.  Don't fail on CRLF differences.  Rewrite to use
12395         multiple -e instead of multiple sed forks, suggested by Eric Blake
12396         <ebb9@byu.net>.
12397         * tests/test-argp-version-etc-1.sh: Likewise.
12398
12399 2009-08-13  Simon Josefsson  <simon@josefsson.org>
12400
12401         * tests/test-version-etc.sh: Don't fail on different
12402         project/version.
12403
12404 2009-08-12  Bruno Haible  <bruno@clisp.org>
12405
12406         Tests for modules 'getopt-posix', 'getopt-gnu'.
12407         * modules/getopt-posix-tests: New file.
12408         * tests/test-getopt.c: New file.
12409         * tests/test-getopt.h: New file.
12410         * tests/test-getopt_long.h: New file.
12411
12412         New modules 'getopt-posix', 'getopt-gnu'.
12413         * modules/getopt-gnu: New file, renamed from modules/getopt.
12414         * modules/getopt-posix: New file.
12415         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
12416         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
12417         (gl_GETOPT): Remove macro.
12418         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
12419         Disable the test against BSD systems that declare optreset. Test
12420         against mingw bug. Test against lack of support of optional arguments
12421         on many platforms.
12422         * doc/glibc-headers/getopt.texi: Update module name and list of
12423         relevant platforms.
12424         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
12425         'getopt-gnu' and more portability problems.
12426         * NEWS: Mention the changes.
12427
12428 2009-08-12  Bruno Haible  <bruno@clisp.org>
12429
12430         Ensure that optarg etc. get declared by <unistd.h>.
12431         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
12432         AC_USE_SYSTEM_EXTENSIONS.
12433         * modules/getopt (Depends-on): Add 'extensions'.
12434
12435 2009-08-12  Bruno Haible  <bruno@clisp.org>
12436
12437         Avoid test link errors.
12438         * modules/pipe-filter-ii-tests (Makefile.am): Define
12439         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
12440         * modules/pipe-filter-gi-tests (Makefile.am): Define
12441         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
12442         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12443
12444 2009-08-12  Bruno Haible  <bruno@clisp.org>
12445
12446         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
12447         gl_GETOPT_SUBSTITUTE before.
12448         (gl_GETOPT): Use it.
12449         * m4/argp.m4 (gl_ARGP): Update.
12450         Reported by Sergey Poznyakoff.
12451
12452         * m4/getopt.m4: Reorder macros.
12453         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
12454         (gl_GETOPT_SUBSTITUTE): Remove macro.
12455
12456 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
12457
12458         Minor improvement in gitlog-to-changelog
12459
12460         * build-aux/gitlog-to-changelog: New option `--format' makes
12461         output format string configurable.
12462
12463 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
12464
12465         Optimize exclude: use hash tables for non-wildcard patterns.
12466
12467         * lib/exclude.c: Include hash.h and mbuiter.h
12468         (struct exclude_pattern, exclude_segment): New data types.
12469         (struct exclude): Rewrite.
12470         (fnmatch_pattern_has_wildcards): New function.
12471         (new_exclude_segment, free_exclude_segment): New functions.
12472         (excluded_file_pattern_p, excluded_file_name_p): New functions.
12473         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
12474         * lib/exclude.h (is_fnmatch_pattern): New prototype.
12475         * modules/exclude: Depend on hash and mbuiter.
12476
12477         * modules/exclude-tests: New file.
12478         * tests/test-exclude.c: New file.
12479         * tests/test-exclude1.sh: New file.
12480         * tests/test-exclude2.sh: New file.
12481         * tests/test-exclude3.sh: New file.
12482         * tests/test-exclude4.sh: New file.
12483         * tests/test-exclude5.sh: New file.
12484         * tests/test-exclude6.sh: New file.
12485         * tests/test-exclude7.sh: New file.
12486
12487 2009-08-12  Bruno Haible  <bruno@clisp.org>
12488
12489         Ensure that getopt() gets declared by <unistd.h>.
12490         * lib/unistd.in.h: Conditionally include getopt.h.
12491         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
12492         Set GNULIB_UNISTD_H_GETOPT.
12493         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12494         GNULIB_UNISTD_H_GETOPT.
12495         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
12496
12497 2009-08-12  Bruno Haible  <bruno@clisp.org>
12498
12499         Clarify logic.
12500         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
12501         gl_replace_getopt instead of GETOPT_H.
12502
12503 2009-08-12  Bruno Haible  <bruno@clisp.org>
12504
12505         * m4/getopt.m4: Add comments.
12506
12507 2009-08-12  Bruno Haible  <bruno@clisp.org>
12508
12509         Disable multithread support by default on Cygwin 1.5.x.
12510         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
12511         set gl_use_threads=no if not specified otherwise.
12512
12513 2009-08-11  Bruno Haible  <bruno@clisp.org>
12514
12515         Avoid compilation error on NetBSD 5.0.
12516         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
12517         * tests/test-stdio.c: Likewise.
12518         * tests/test-stdlib.c: Likewise.
12519         * tests/test-string.c: Likewise.
12520         * tests/test-unistd.c: Likewise.
12521         Reported by Greg Troxel <gdt@ir.bbn.com>
12522         at <https://savannah.gnu.org/support/?106973>.
12523
12524 2009-08-11  Bruno Haible  <bruno@clisp.org>
12525
12526         * modules/dup2-tests (Depends-on): Remove close.
12527
12528         Undo 2009-07-19 commit.
12529         * modules/acl-tests (Depends-on): Remove close.
12530         * modules/binary-io-tests (Depends-on): Likewise.
12531         * modules/closein-tests (Depends-on): Likewise.
12532         * modules/flock-tests (Depends-on): Likewise.
12533         * modules/fsync-tests (Depends-on): Likewise.
12534         * modules/lseek-tests (Depends-on): Likewise.
12535         * modules/pipe-tests (Depends-on): Likewise.
12536         * modules/posix_spawn-tests (Depends-on): Likewise.
12537         * modules/posix_spawnp-tests (Depends-on): Likewise.
12538         * modules/stat-time-tests (Depends-on): Likewise.
12539         * modules/yesno-tests (Depends-on): Likewise.
12540
12541 2009-08-10  Bruno Haible  <bruno@clisp.org>
12542
12543         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
12544
12545 2009-08-10  Bruno Haible  <bruno@clisp.org>
12546
12547         Fix a gcc warning.
12548         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
12549
12550 2009-08-10  Bruno Haible  <bruno@clisp.org>
12551
12552         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
12553         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
12554         not only the first time.
12555         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
12556         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
12557         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
12558         is 1, not only the the first time.
12559
12560 2009-08-10  Bruno Haible  <bruno@clisp.org>
12561
12562         Make it possible to use module 'gethostname' without module 'close'.
12563         * lib/unistd.in.h (close): Evoke a link error only if
12564         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
12565         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12566         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12567         * modules/unistd (Makefile.am): Substitute
12568         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12569         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
12570         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
12571         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
12572         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12573         * modules/sys_ioctl (Makefile.am): Substitute
12574         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12575         * modules/socket (configure.ac): On native Windows, set
12576         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
12577         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12578         Reported by Sam Steingold <sds@gnu.org>.
12579
12580 2009-08-10  Bruno Haible  <bruno@clisp.org>
12581
12582         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
12583         * modules/ioctl (configure.ac): Likewise.
12584
12585 2009-08-10  Bruno Haible  <bruno@clisp.org>
12586
12587         Avoid collision between gnulib wrapper and libintl wrapper.
12588         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
12589         already defined in intl/printf.c.
12590         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
12591         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
12592
12593 2009-08-09  Bruno Haible  <bruno@clisp.org>
12594
12595         Make <sys/select.h> really self-contained, also on Solaris 10.
12596         * lib/sys_select.in.h: Include <string.h>.
12597         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
12598         Solaris 10 problem.
12599         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
12600         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
12601         Reported by Jim Meyering.
12602
12603 2009-08-09  Bruno Haible  <bruno@clisp.org>
12604
12605         Avoid warnings from 'aclocal' that are due to a use of macro name
12606         AM_XGETTEXT_OPTION that is not defined in automake.
12607         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
12608         automake.
12609         * modules/error (configure.ac): Likewise.
12610         * modules/propername (configure.ac): Likewise.
12611         * modules/vasprintf (configure.ac): Likewise.
12612         * modules/verror (configure.ac): Likewise.
12613         * modules/xprintf (configure.ac): Likewise.
12614         * modules/xvasprintf (configure.ac): Likewise.
12615
12616 2009-08-08  Bruno Haible  <bruno@clisp.org>
12617
12618         Avoid compilation error in C++ mode.
12619         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
12620         Reported by Sam Steingold <sds@gnu.org>.
12621
12622 2009-08-08  Bruno Haible  <bruno@clisp.org>
12623
12624         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
12625         for the various Unix platforms.
12626         * doc/posix-headers/limits.texi: Update platforms list regarding
12627         HOST_NAME_MAX.
12628         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12629
12630 2009-08-07  Jim Meyering  <meyering@redhat.com>
12631
12632         selinux-at: fix typo in a comment
12633         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
12634         Spotted by Paolo Bonzini.
12635
12636         selinux-at: remove redundant m4 code, add documentation
12637         * modules/selinux-at (configure.ac): Remove redundant code.
12638         LIB_SELINUX is already set via the dependent module, selinux-h.
12639         (Include): Add quotes around selinux-at.h.
12640         * lib/selinux-at.h: Add documentation.
12641         Reported by Bruno Haible in
12642         http://marc.info/?l=gnulib-bug&m=124958988300749
12643
12644 2009-08-07  Bruno Haible  <bruno@clisp.org>
12645
12646         Avoid link error on MacOS X 10.3 and 10.4.
12647         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
12648         on non-ELF systems.
12649         * lib/argp-pv.c (argp_program_version): Likewise.
12650         Reported by Simon Josefsson.
12651
12652 2009-08-07  Simon Josefsson  <simon@josefsson.org>
12653
12654         * tests/test-version-etc.sh: Use $EXEEXT.
12655
12656 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
12657
12658         update-copyright: update documentation to point to maint.mk
12659         * build-aux/update-copyright: Here.
12660
12661 2009-08-06  Jim Meyering  <meyering@redhat.com>
12662
12663         maint.mk: support update-copyright-local
12664         * top/maint.mk (update-copyright-local): Define place-holder.
12665         (update-copyright): Depend on $(update-copyright-local).
12666
12667 2009-08-06  Jim Meyering  <meyering@redhat.com>
12668
12669         selinux-at: new module
12670         Initially written for coreutils, this module will soon be
12671         used by findutils, too.
12672         * MODULES.html.sh [Misc]: Add selinux-at.
12673         * lib/selinux-at.h: New file, from coreutils.
12674         * lib/selinux-at.c: Likewise.
12675         * modules/selinux-at: Likewise.
12676         (License): Change from LGPL to GPL, since it depends
12677         on the GPL'd openat module.
12678
12679         doc: update README
12680         * README: Remove references to cogito.
12681         Remove cvs-repo-updating instructions from 2007.
12682         Don't imply that CVS is better if you have limited disk space.
12683
12684 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12685
12686         update-copyright: support C-style comments
12687         * build-aux/update-copyright: Implement and document.
12688         * tests/test-update-copyright.sh: Test.
12689
12690 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12691
12692         update-copyright: support omitted "(C)"
12693         * build-aux/update-copyright: Implement and document.  Also,
12694         allow variable whitespace before "(C)".
12695         * tests/test-update-copyright.sh: Test.
12696
12697 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12698
12699         update-copyright: don't trip on non-FSF copyright statements
12700         * build-aux/update-copyright: Fix so that the first correctly
12701         formatted FSF copyright statement is recognized no matter what
12702         appears before it.  Update documentation.
12703         * tests/test-update-copyright.sh: Test that.
12704
12705 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12706
12707         update-copyright: clean up code a little
12708         * build-aux/update-copyright: Append "_re" to the name of any
12709         variable holding a regular expression.
12710         Replace "old" and "new" with "stmt" in variable names.
12711         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
12712         handled correctly.
12713         Format code more consistently.
12714
12715 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12716
12717         update-copyright-tests: improve portability
12718         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
12719         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
12720
12721 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
12722
12723         update-copyright: support @copyright{} and &copy;
12724         * build-aux/update-copyright: Implement and document.
12725         * tests/test-update-copyright.sh: Test.
12726
12727 2009-08-04  Jim Meyering  <meyering@redhat.com>
12728
12729         update-copyright-tests: correctly test EOL=\r\n handling
12730         * tests/test-update-copyright.sh: Put \r at the end of some lines
12731         for the dos-eol tests.  Based on a patch by Joel E. Denny.
12732
12733         maint.mk: make update-copyright exclusion list more configurable
12734         * top/maint.mk (update-copyright): Default to excluding COPYING,
12735         but allow an override, in case someone does want to update that file.
12736
12737         maint.mk: don't update copyright date in COPYING
12738         * top/maint.mk (update-copyright): Exclude COPYING.
12739
12740         maint.mk: add a copyright-updating rule
12741         * top/maint.mk (update-copyright): New rule.
12742         Derived from coreutils/Makefile.am.
12743
12744         update-copyright: rename some variables
12745         * build-aux/update-copyright: Rename a few variables for clarity.
12746         Tweak syntax.  List Joel E. Denny as coauthor.
12747
12748 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
12749
12750         update-copyright: fix bug for 2-digit last year and add tests
12751         * build-aux/update-copyright: Fix bug.
12752         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
12753         specified.
12754         * modules/update-copyright-tests: New
12755         * tests/test-update-copyright.sh: New.
12756
12757 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
12758
12759         update-copyright: handle leading tabs in line prefix
12760         * build-aux/update-copyright: Count leading tabs as 8 spaces
12761         when computing margin.  This helps with the formatting of
12762         ChangeLogs, for example.
12763         Fix documentation a little.
12764
12765 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
12766
12767         update-copyright: support EOL=\r\n
12768         * build-aux/update-copyright: Implement that.
12769
12770 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
12771
12772         update-copyright: automatically format copyright statements
12773         * build-aux/update-copyright: Implement that.
12774         Also, be a little more predictable and safer by always failing
12775         when the full copyright format is not perfectly recognized as an
12776         unbroken whole.  Discussed at
12777         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
12778         Rewrite documentation.
12779
12780 2009-08-03  Bruno Haible  <bruno@clisp.org>
12781
12782         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
12783
12784 2009-08-02  Bruno Haible  <bruno@clisp.org>
12785
12786         Tests for module 'uname'.
12787         * modules/uname-tests: New file.
12788         * tests/test-uname.c: New file.
12789
12790         New module 'uname'.
12791         * lib/uname.c: New file.
12792         * m4/uname.m4: New file.
12793         * modules/uname: New file.
12794         * doc/posix-functions/uname.texi: Mention the new module.
12795
12796 2009-08-02  Bruno Haible  <bruno@clisp.org>
12797
12798         Tests for module 'sys_utsname'.
12799         * modules/sys_utsname-tests: New file.
12800         * tests/test-sys_utsname.c: New file.
12801
12802         New module 'sys_utsname'.
12803         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
12804         * m4/sys_utsname_h.m4: New file.
12805         * modules/sys_utsname: New file.
12806         * doc/posix-headers/sys_utsname.texi: Mention the new module.
12807
12808 2009-08-02  Bruno Haible  <bruno@clisp.org>
12809
12810         Implicitly initialize the sockets library.
12811         * lib/gethostname.c: Include sockets.h.
12812         (rpl_gethostname): Invoke gl_sockets_startup.
12813         * lib/socket.c: Include sockets.h.
12814         (rpl_socket): Invoke gl_sockets_startup.
12815         * modules/gethostname (Depends-on): Add sockets.
12816         * modules/socket (Depends-on): Likewise.
12817         * tests/test-poll.c: Don't include sockets.h.
12818         (main): Don't invoke gl_sockets_startup.
12819         * tests/test-select.c: Don't include sockets.h.
12820         (main): Don't invoke gl_sockets_startup.
12821
12822 2009-08-02  Bruno Haible  <bruno@clisp.org>
12823
12824         Allow multiple calls to gl_sockets_startup.
12825         * lib/sockets.c (initialized_sockets_version): New variable.
12826         (gl_sockets_startup): Do nothing if already called for this or a higher
12827         version.
12828         (gl_sockets_cleanup): Reset initialized_sockets_version.
12829
12830 2009-08-03  Simon Josefsson  <simon@josefsson.org>
12831
12832         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
12833         different project/version.
12834
12835 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
12836             Bruno Haible  <bruno@clisp.org>
12837
12838         Tests for module 'pipe-filter-gi'.
12839         * modules/pipe-filter-gi-tests: New file.
12840         * tests/test-pipe-filter-gi1.sh: New file.
12841         * tests/test-pipe-filter-gi1.c: New file.
12842         * tests/test-pipe-filter-gi2.sh: New file.
12843         * tests/test-pipe-filter-gi2-main.c: New file.
12844         * tests/test-pipe-filter-gi2-child.c: New file.
12845
12846         New module 'pipe-filter-gi'.
12847         * lib/pipe-filter-gi.c: New file.
12848         * modules/pipe-filter-gi: New file.
12849
12850 2009-08-02  Bruno Haible  <bruno@clisp.org>
12851             Paolo Bonzini  <bonzini@gnu.org>
12852
12853         Tests for module 'pipe-filter-ii'.
12854         * modules/pipe-filter-ii-tests: New file.
12855         * tests/test-pipe-filter-ii1.sh: New file.
12856         * tests/test-pipe-filter-ii1.c: New file.
12857         * tests/test-pipe-filter-ii2.sh: New file.
12858         * tests/test-pipe-filter-ii2-main.c: New file.
12859         * tests/test-pipe-filter-ii2-child.c: New file.
12860
12861         New module 'pipe-filter-ii'.
12862         * lib/pipe-filter.h: New file.
12863         * lib/pipe-filter-ii.c: New file.
12864         * lib/pipe-filter-aux.h: New file.
12865         * modules/pipe-filter-ii: New file.
12866
12867 2009-08-02  Simon Josefsson  <simon@josefsson.org>
12868
12869         * lib/gc-libgcrypt.c: Change copyright to FSF.
12870         * lib/gc-gnulib.c: Likewise.
12871
12872 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
12873
12874         * lib/gethostname.c: Include limits.h.
12875
12876 2009-08-02  Simon Josefsson  <simon@josefsson.org>
12877             Bruno Haible  <bruno@clisp.org>
12878
12879         Ensure HOST_NAME_MAX as part of the gethostname module.
12880         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
12881         define also HOST_NAME_MAX.
12882         * tests/test-gethostname.c: Include <limits.h>.
12883         (main): Check also HOST_NAME_MAX.
12884         * doc/posix-headers/limits.texi: Document the mingw problem.
12885
12886 2009-08-02  Bruno Haible  <bruno@clisp.org>
12887
12888         * lib/gethostname.c (gethostname): Fix handling of large len argument.
12889         Add comments.
12890
12891 2009-03-31  Simon Josefsson  <simon@josefsson.org>
12892
12893         * lib/gethostname.c: Add Windows wrapper.
12894         * m4/gethostname.m4: Look for gethostname in -lws2_32.
12895         * modules/gethostname: Depend on sys_socket & errno, for also
12896         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
12897         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
12898
12899 2009-07-31  Jim Meyering  <meyering@redhat.com>
12900
12901         getloadavg: fix symbol name in comment
12902         * lib/getloadavg.c: Correct a typo I introduced when adding
12903         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
12904         Matt Kraai spotted the problem.
12905
12906 2009-07-29  Matt Kraai  <mkraai@beckman.com>
12907
12908         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
12909         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
12910         code also if ! defined N_NAME_POINTER.
12911         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
12912         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
12913         but the n_name member is a 12-byte array.
12914
12915 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
12916
12917         update-copyright: generalize comment handling
12918         * build-aux/update-copyright: Handle copyright statements
12919         within more comment styles.
12920         Document usage.
12921         Report any file with an external copyright holder or parse failure.
12922
12923 2009-07-29  Jim Meyering  <meyering@redhat.com>
12924
12925         mktime: correct setting of REPLACE_MKTIME
12926         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
12927
12928         update-copyright: new module
12929         * modules/update-copyright: New file.
12930         * build-aux/update-copyright: New file.
12931         * MODULES.html.sh (maint+release support): Add update-copyright.
12932
12933 2009-07-27  Bruno Haible  <bruno@clisp.org>
12934
12935         Fix compilation error when <ctime> is used and mktime is replaced.
12936         * lib/time.in.h (mktime): New declaration.
12937         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
12938         REPLACE_MKTIME instead of defining mktime in config.h.
12939         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
12940         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
12941         Reported by Ross McFarland <rwmcfa1@neces.com>.
12942
12943 2009-07-27  Bruno Haible  <bruno@clisp.org>
12944
12945         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
12946         Reported by Matt Kraai <mkraai@beckman.com>.
12947
12948 2009-07-25  Jim Meyering  <meyering@redhat.com>
12949
12950         maint.mk: avoid warnings about missing files
12951         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
12952         diagnostic when .prev-version does not exist.
12953         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
12954         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
12955         nonexistent cfg.mk.
12956         Suggestions from Simon Josefsson.
12957
12958 2009-07-25  Bruno Haible  <bruno@clisp.org>
12959
12960         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
12961         defined as macros. Needed on QNX 6.4.1.
12962         Reported by Matt Kraai <mkraai@beckman.com>.
12963
12964 2009-07-23  Jim Meyering  <meyering@redhat.com>
12965
12966         maint.mk: invoke "make dist" with a working value of XZ_OPT
12967         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
12968
12969 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
12970
12971         Make fseeko.c compile on QNX.
12972         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
12973
12974 2009-07-22  Peter Simons  <simons@cryp.to>
12975
12976         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
12977         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
12978         * lib/md4.h: Likewise.
12979         * lib/md5.h: Likewise.
12980         * lib/sha1.h: Likewise.
12981         * lib/sha256.h: Likewise.
12982         * lib/sha512.h: Likewise.
12983
12984         tests-sha1: don't assign literal string to 'char *' variable
12985         * tests/test-sha1.c (main): Declare locals with "const" to match
12986         attributes of the right hand side.
12987
12988 2009-07-21  Eric Blake  <ebb9@byu.net>
12989
12990         dup2: fix more mingw problems
12991         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
12992         fd to itself.
12993         * doc/posix-functions/dup2.texi (dup2): Document the bug.
12994         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
12995         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
12996         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
12997         care of mingw bugs.
12998
12999 2009-07-21  Jim Meyering  <meyering@redhat.com>
13000
13001         vc-list-files: avoid failure when /bin/sh is dash
13002         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
13003         On some Debian based systems, /bin/sh is a symlink to dash, and running
13004         this command would omit the "/" following each 'tests' prefix:
13005           dash -x build-aux/vc-list-files -C . tests
13006         That is because bash and dash work differently:
13007           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
13008           bash ok
13009           dash odd
13010
13011 2009-07-21  Eric Blake  <ebb9@byu.net>
13012
13013         dup2-tests: test previous patch
13014         * modules/dup2-tests: New file.
13015         * tests/test-dup2.c: Likewise.
13016         * tests/test-open.c (main): Avoid unspecified behavior.
13017         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
13018         test.
13019
13020         dup2: work around mingw and cygwin 1.5 bug
13021         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
13022         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13023         * modules/unistd (Makefile.am): Substitute it.
13024         * lib/unistd.in.h (dup2): Declare the replacement.
13025         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
13026         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
13027         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
13028         * modules/execute (Depends-on): Add dup2.
13029         * modules/fseterr (Depends-on): Likewise.
13030         * modules/pipe (Depends-on): Likewise.
13031         * modules/posix_spawn-internal (Depends-on): Likewise.
13032
13033 2009-07-21  Bruno Haible  <bruno@clisp.org>
13034
13035         * modules/.gitattributes: New file.
13036
13037 2009-07-20  Bruno Haible  <bruno@clisp.org>
13038
13039         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
13040         (main): Use it.
13041
13042 2009-07-20  Eric Blake  <ebb9@byu.net>
13043
13044         test-pipe: make a bit more robust.
13045         * tests/test-pipe.c (myerr): Allow error messages regardless of
13046         what we do to stderr.
13047         (test_pipe): Rearrange to avoid deadlock.
13048         (child_main): Try a larger read, to ensure we avoided deadlock.
13049         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
13050         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
13051         if misused.
13052
13053 2009-07-19  Jim Meyering  <meyering@redhat.com>
13054
13055         fts: avoid false-positive cycle-detection
13056         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
13057         for each new command line argument.
13058
13059 2009-07-19  Bruno Haible  <bruno@clisp.org>
13060
13061         Fix build error on mingw with the modules sys_select and unistd.
13062         * modules/acl-tests (Depends-on): Add close.
13063         * modules/binary-io-tests (Depends-on): Likewise.
13064         * modules/closein-tests (Depends-on): Likewise.
13065         * modules/flock-tests (Depends-on): Likewise.
13066         * modules/fsync-tests (Depends-on): Likewise.
13067         * modules/lseek-tests (Depends-on): Likewise.
13068         * modules/pipe-tests (Depends-on): Likewise.
13069         * modules/posix_spawn-tests (Depends-on): Likewise.
13070         * modules/posix_spawnp-tests (Depends-on): Likewise.
13071         * modules/stat-time-tests (Depends-on): Likewise.
13072         * modules/yesno-tests (Depends-on): Likewise.
13073
13074 2009-07-19  Bruno Haible  <bruno@clisp.org>
13075
13076         Unify conditionals.
13077         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
13078         macros, not at the compiler macros.
13079         * lib/pipe.c: Likewise.
13080         * lib/execute.c: Likewise.
13081         * lib/spawni.c: Likewise.
13082
13083 2009-07-19  Bruno Haible  <bruno@clisp.org>
13084
13085         Fix handling of closed stdin/stdout/stderr on mingw.
13086         * lib/w32spawn.h: Include unistd.h.
13087         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
13088         file descriptor with O_NOINHERIT flag.
13089         (fd_safer_noinherit): New function, based on fd-safer.c.
13090         (dup_safer_noinherit): New function, based on dup-safer.c.
13091         (undup_safer_noinherit): New function.
13092         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
13093         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
13094         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
13095         instead of fd_safer.
13096         * tests/test-pipe.c: Include <windows.h>.
13097         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
13098
13099         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
13100         from main.
13101         (test_pipe): Pass an extra argument for disambiguation.
13102         (main): Invoke parent_main or child_main.
13103
13104         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
13105         consistently.
13106
13107 2009-07-18  Eric Blake  <ebb9@byu.net>
13108
13109         test-pipe: fix mingw build
13110         * tests/test-pipe.c (main): Avoid fcntl on mingw.
13111
13112 2009-07-18  Bruno Haible  <bruno@clisp.org>
13113
13114         * modules/pipe-tests (Makefile.am): Fix typo.
13115
13116 2009-07-18  Eric Blake  <ebb9@byu.net>
13117
13118         error: fix mingw build
13119         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
13120         Reported by Bruno Haible.
13121
13122         error: avoid undefined use of stdout
13123         * lib/error.c (error, error_at_line): Check that fd 1 is open
13124         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
13125         is handling faults and the close_stdout module wants to report the
13126         detection of closed stdout as an error.
13127
13128 2009-07-17  Eric Blake  <ebb9@byu.net>
13129
13130         pipe: be robust in face of closed fds
13131         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
13132         should cause child to misbehave.
13133         * modules/pipe-tests: New module.
13134         * tests/test-pipe.c: New file.
13135         * tests/test-pipe.sh: New file.
13136         Reported by Akim Demaille.
13137
13138 2009-07-14  Bruno Haible  <bruno@clisp.org>
13139
13140         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
13141         Reported by anonymous kc.
13142
13143 2009-07-07  Jim Meyering  <meyering@redhat.com>
13144
13145         maint.mk: don't look for translatable strings in *.m4 or *.mk
13146         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
13147         when searching for translatable strings.
13148
13149 2009-07-05  Jim Meyering  <meyering@redhat.com>
13150
13151         remove superfluous parentheses in STREQ definition
13152         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
13153         * lib/getugroups.c (STREQ): Likewise.
13154         * lib/fnmatch.c (STREQ): Likewise.
13155         Spotted by Bruno Haible.
13156
13157 2009-07-04  Jim Meyering  <meyering@redhat.com>
13158
13159         argv-iter: new module
13160         * MODULES.html.sh: Add argv-iter.
13161         * lib/argv-iter.c, lib/argv-iter.h: New files.
13162         * modules/argv-iter: New file.
13163         * modules/argv-iter-tests: New file.
13164         * tests/test-argv-iter.c: Test it.
13165
13166 2009-07-04  Bruno Haible  <bruno@clisp.org>
13167
13168         Fix assertion.
13169         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
13170         contains more exact copies of a given entry than file2, leave the extra
13171         copies unpaired rather than aborting.
13172         Reported by Eric Blake.
13173
13174 2009-07-02  Bruno Haible  <bruno@clisp.org>
13175
13176         Speedup git-merge-changelog for git cherry-pick.
13177         * lib/git-merge-changelog.c (struct entries_mapping): New type.
13178         (entries_mapping_get): New function, extracted from compute_mapping.
13179         (entries_mapping_reverse_get): New function.
13180         (compute_mapping): Add a 'full' argument. Return the result in a
13181         'struct entries_mapping'.
13182         (main): Update. Access the mappings through entries_mapping_get.
13183         Reported by Eric Blake.
13184
13185 2009-07-02  Bruno Haible  <bruno@clisp.org>
13186
13187         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
13188         best_i.
13189
13190 2009-07-02  Bruno Haible  <bruno@clisp.org>
13191
13192         Speed up approximate search for matching ChangeLog entries.
13193         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
13194         argument. Call fstrcmp_bounded instead of fstrcmp.
13195         (compute_mapping, try_split_merged_entry, main): Update callers.
13196
13197 2009-07-02  Bruno Haible  <bruno@clisp.org>
13198
13199         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
13200
13201 2009-06-30  Bruno Haible  <bruno@clisp.org>
13202
13203         Reduce the number of uc_is_cased calls.
13204         * lib/unicase.h (casing_suffix_context_t): Add
13205         'first_char_except_ignorable' field.
13206         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
13207         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
13208         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
13209         Update initializer.
13210         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
13211         case-ignorable characters.
13212         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
13213         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
13214         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
13215         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
13216         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
13217
13218 2009-06-30  Bruno Haible  <bruno@clisp.org>
13219
13220         Tests for module 'unicase/ignorable'.
13221         * modules/unicase/ignorable-tests: New file.
13222         * tests/unicase/test-ignorable.c: New file, generated by
13223         gen-uni-tables.
13224
13225         Tests for module 'unicase/cased'.
13226         * modules/unicase/cased-tests: New file.
13227         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
13228         * tests/unicase/test-predicate-part1.h: New file, derived from
13229         tests/unictype/test-predicate-part1.h.
13230         * tests/unicase/test-predicate-part2.h: New file, same as
13231         tests/unictype/test-predicate-part2.h.
13232
13233         Fix evaluation of "Before C" condition of FINAL_SIGMA.
13234         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
13235         (output_casing_properties): New function.
13236         (main): Call it.
13237         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
13238         * lib/unicase/cased.c: Include unictype/bitmap.h.
13239         (uc_is_cased): Define through a bitmap lookup.
13240         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
13241         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
13242         (uc_is_case_ignorable): Define through a bitmap lookup.
13243         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
13244         lib/unictype/bitmap.h.
13245         (Depends-on): Add inline. Clean up.
13246         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
13247         lib/unictype/bitmap.h.
13248         (Depends-on): Add inline. Clean up.
13249         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
13250         recognition.
13251         * tests/unicase/test-u16-tolower.c (main): Likewise.
13252         * tests/unicase/test-u32-tolower.c (main): Likewise.
13253
13254 2009-06-30  Bruno Haible  <bruno@clisp.org>
13255
13256         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
13257         * lib/unicase/u16-casemap.c: Likewise.
13258         * lib/unicase/u32-casemap.c: Likewise.
13259
13260 2009-06-29  Bruno Haible  <bruno@clisp.org>
13261
13262         Define u32_casefold as a wrapper around u32_ct_casefold.
13263         * lib/unicase/u32-casefold.c: Update.
13264         * modules/unicase/u32-casefold (Depends-on): Add
13265         unicase/u32-ct-casefold, unicase/empty-prefix-context,
13266         unicase/empty-suffix-context. Clean up.
13267
13268         Define u16_casefold as a wrapper around u16_ct_casefold.
13269         * lib/unicase/u16-casefold.c: Update.
13270         * modules/unicase/u16-casefold (Depends-on): Add
13271         unicase/u16-ct-casefold, unicase/empty-prefix-context,
13272         unicase/empty-suffix-context. Clean up.
13273
13274         Define u8_casefold as a wrapper around u8_ct_casefold.
13275         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
13276         * lib/unicase/u8-casefold.c: Update.
13277         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
13278         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13279
13280         Define u32_totitle as a wrapper around u32_ct_totitle.
13281         * lib/unicase/u32-totitle.c: Update.
13282         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
13283         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13284
13285         Define u16_totitle as a wrapper around u16_ct_totitle.
13286         * lib/unicase/u16-totitle.c: Update.
13287         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
13288         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13289
13290         Define u8_totitle as a wrapper around u8_ct_totitle.
13291         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
13292         functions.
13293         (FUNC): Delegate to U_CT_TOTITLE.
13294         * lib/unicase/u8-totitle.c: Update.
13295         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
13296         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13297
13298         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
13299         invocation.
13300         * modules/unicase/u32-tolower (Depends-on): Add
13301         unicase/empty-prefix-context, unicase/empty-suffix-context.
13302
13303         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
13304         invocation.
13305         * modules/unicase/u16-tolower (Depends-on): Add
13306         unicase/empty-prefix-context, unicase/empty-suffix-context.
13307
13308         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
13309         * modules/unicase/u8-tolower (Depends-on): Add
13310         unicase/empty-prefix-context, unicase/empty-suffix-context.
13311
13312         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
13313         invocation.
13314         * modules/unicase/u32-toupper (Depends-on): Add
13315         unicase/empty-prefix-context, unicase/empty-suffix-context.
13316
13317         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
13318         invocation.
13319         * modules/unicase/u16-toupper (Depends-on): Add
13320         unicase/empty-prefix-context, unicase/empty-suffix-context.
13321
13322         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
13323         * modules/unicase/u8-toupper (Depends-on): Add
13324         unicase/empty-prefix-context, unicase/empty-suffix-context.
13325
13326         New module 'unicase/u32-ct-casefold'.
13327         * lib/unicase/u32-ct-casefold.c: New file.
13328         * modules/unicase/u32-ct-casefold: New file.
13329
13330         New module 'unicase/u16-ct-casefold'.
13331         * lib/unicase/u16-ct-casefold.c: New file.
13332         * modules/unicase/u16-ct-casefold: New file.
13333
13334         New module 'unicase/u8-ct-casefold'.
13335         * lib/unicase/u8-ct-casefold.c: New file.
13336         * lib/unicase/u-ct-casefold.h: New file, derived from
13337         lib/unicase/u-casefold.h.
13338         * modules/unicase/u8-ct-casefold: New file.
13339
13340         New module 'unicase/u32-ct-totitle'.
13341         * lib/unicase/u32-ct-totitle.c: New file.
13342         * modules/unicase/u32-ct-totitle: New file.
13343
13344         New module 'unicase/u16-ct-totitle'.
13345         * lib/unicase/u16-ct-totitle.c: New file.
13346         * modules/unicase/u16-ct-totitle: New file.
13347
13348         New module 'unicase/u8-ct-totitle'.
13349         * lib/unicase/u8-ct-totitle.c: New file.
13350         * lib/unicase/u-ct-totitle.h: New file, derived from
13351         lib/unicase/u-totitle.h.
13352         * modules/unicase/u8-ct-totitle: New file.
13353
13354         New module 'unicase/u32-ct-tolower'.
13355         * lib/unicase/u32-ct-tolower.c: New file.
13356         * modules/unicase/u32-ct-tolower: New file.
13357
13358         New module 'unicase/u16-ct-tolower'.
13359         * lib/unicase/u16-ct-tolower.c: New file.
13360         * modules/unicase/u16-ct-tolower: New file.
13361
13362         New module 'unicase/u8-ct-tolower'.
13363         * lib/unicase/u8-ct-tolower.c: New file.
13364         * modules/unicase/u8-ct-tolower: New file.
13365
13366         New module 'unicase/u32-ct-toupper'.
13367         * lib/unicase/u32-ct-toupper.c: New file.
13368         * modules/unicase/u32-ct-toupper: New file.
13369
13370         New module 'unicase/u16-ct-toupper'.
13371         * lib/unicase/u16-ct-toupper.c: New file.
13372         * modules/unicase/u16-ct-toupper: New file.
13373
13374         New module 'unicase/u8-ct-toupper'.
13375         * lib/unicase/u8-ct-toupper.c: New file.
13376         * modules/unicase/u8-ct-toupper: New file.
13377
13378         Add context arguments to u*_casemap functions.
13379         * lib/unicase/unicasemap.h: Include unicase.h.
13380         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
13381         suffix_context arguments.
13382         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
13383         functions.
13384         (FUNC): Add prefix_context and suffix_context arguments. Use
13385         uc_is_cased and uc_is_case_ignorable.
13386         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
13387         * lib/unicase/u16-casemap.c: Likewise.
13388         * lib/unicase/u32-casemap.c: Likewise.
13389         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
13390         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13391         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
13392         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13393         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
13394         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13395
13396         New module 'unicase/u32-suffix-context'.
13397         * lib/unicase/u32-suffix-context.c: New file.
13398         * modules/unicase/u32-suffix-context: New file.
13399
13400         New module 'unicase/u16-suffix-context'.
13401         * lib/unicase/u16-suffix-context.c: New file.
13402         * modules/unicase/u16-suffix-context: New file.
13403
13404         New module 'unicase/u8-suffix-context'.
13405         * lib/unicase/u8-suffix-context.c: New file.
13406         * lib/unicase/u-suffix-context.h: New file.
13407         * modules/unicase/u8-suffix-context: New file.
13408
13409         New module 'unicase/empty-suffix-context'.
13410         * lib/unicase/empty-suffix-context.c: New file.
13411         * modules/unicase/empty-suffix-context: New file.
13412
13413         New module 'unicase/u32-prefix-context'.
13414         * lib/unicase/u32-prefix-context.c: New file.
13415         * modules/unicase/u32-prefix-context: New file.
13416
13417         New module 'unicase/u16-prefix-context'.
13418         * lib/unicase/u16-prefix-context.c: New file.
13419         * modules/unicase/u16-prefix-context: New file.
13420
13421         New module 'unicase/u8-prefix-context'.
13422         * lib/unicase/u8-prefix-context.c: New file.
13423         * lib/unicase/u-prefix-context.h: New file.
13424         * lib/unicase/context.h: New file.
13425         * modules/unicase/u8-prefix-context: New file.
13426
13427         New module 'unicase/empty-prefix-context'.
13428         * lib/unicase/empty-prefix-context.c: New file.
13429         * modules/unicase/empty-prefix-context: New file.
13430
13431         New module 'unicase/ignorable'.
13432         * lib/unicase/ignorable.c: New file.
13433         * modules/unicase/ignorable: New file.
13434
13435         New module 'unicase/cased'.
13436         * lib/unicase/caseprop.h: New file.
13437         * lib/unicase/cased.c: New file.
13438         * modules/unicase/cased: New file.
13439
13440         New functions for case mapping of substrings.
13441         * lib/unicase.h (casing_prefix_context_t): New type.
13442         (unicase_empty_prefix_context): New variable.
13443         (u8_casing_prefix_context, u16_casing_prefix_context,
13444         u32_casing_prefix_context, u8_casing_prefixes_context,
13445         u16_casing_prefixes_context, u32_casing_prefixes_context): New
13446         declarations.
13447         (casing_suffix_context_t): New type.
13448         (unicase_empty_suffix_context): New variable.
13449         (u8_casing_suffix_context, u16_casing_suffix_context,
13450         u32_casing_suffix_context, u8_casing_suffixes_context,
13451         u16_casing_suffixes_context, u32_casing_suffixes_context,
13452         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
13453         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
13454         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
13455         declarations.
13456
13457 2009-06-28  Jim Meyering  <meyering@redhat.com>
13458
13459         boostrap: indent only with spaces
13460         * build-aux/bootstrap: Indent only with spaces, never TABs.
13461
13462         bootstrap: split long lines
13463         * build-aux/bootstrap: Keep line length < 80.
13464
13465         bootstrap: sync from coreutils
13466         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
13467         just as autoreconf does.  Verify a list of prerequisite
13468         package-name,version-number pairs if defined in bootstrap.conf.
13469         Refer to README-prereq, if prerequisites are not satisfied.
13470
13471 2009-06-27  Eric Blake  <ebb9@byu.net>
13472
13473         tests: add test for bogus NULL definition
13474         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
13475         * tests/test-stdlib.c: Likewise.
13476         * tests/test-string.c: Likewise.
13477         * tests/test-locale.c: Likewise.
13478         * tests/test-unistd.c: Likewise.
13479         * modules/stdio-tests (Depends-on): Add verify.
13480         * modules/stdlib-tests (Depends-on): Likewise.
13481         * modules/string-tests (Depends-on): Likewise.
13482         * modules/locale-tests (Depends-on): Likewise.
13483         * modules/unistd-tests (Depends-on): Likewise.
13484
13485 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
13486
13487         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
13488         self-explaining comment.
13489         * m4/selinux-selinux-h: Update serial.
13490         (gl_LIBSELINUX): New macro, adding a warning for missing development
13491         packages to code extracted from...
13492         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
13493         Add warning for missing development packages here, too.
13494
13495 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
13496
13497         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
13498
13499 2009-06-25  Eric Blake  <ebb9@byu.net>
13500
13501         version-etc: fix regression
13502         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
13503         gcc.
13504         (version_etc): Use it, to catch bugs with trailing NULL.
13505         * lib/version-etc.c (version_etc_arn): Delete unused argument.
13506         (version_etc_va): Fix logic bug.
13507         * modules/version-etc-tests: Add test.
13508         * tests/test-version-etc.c: New file.
13509         * tests/test-version-etc.sh: Likewise.
13510
13511 2009-06-25  Sam Steingold  <sds@gnu.org>
13512
13513         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
13514         mbtowc declaration.
13515
13516 2009-06-25  Eric Blake  <ebb9@byu.net>
13517
13518         fpurge: migrate into <stdio.h>
13519         * lib/fpurge.h: Delete...
13520         * lib/stdio.in.h (fpurge): ...and declare here, instead.
13521         * lib/fpurge.c (fpurge): Change declaring header.
13522         * modules/fpurge (Files): Drop deleted file.
13523         (Depends-on): Add stdio.
13524         (configure.ac): Set witness.
13525         * modules/stdio (Makefile.am): Support fpurge macros.
13526         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
13527         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
13528         * lib/fflush.c: Update client.
13529         * tests/test-fpurge.c: Likewise.
13530         * NEWS: Mention the change.
13531
13532 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
13533
13534         * lib/argp-version-etc.c (program_authors): Add const
13535         qualifier.
13536         * lib/version-etc.c: Fix typos in the comments.
13537         * modules/argp-version-etc: Depends on version-etc.
13538
13539 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
13540
13541         argp-version-etc: new module.
13542
13543         * lib/argp-version-etc.c: New file.
13544         * lib/argp-version-etc.h: New file.
13545         * modules/argp-version-etc: New file.
13546         * modules/argp-version-etc-tests: New file.
13547         * tests/test-argp-version-etc.c: New test.
13548         * tests/test-argp-version-etc-1.sh: New test.
13549
13550 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
13551
13552         Provide additional interfaces and documentation for version-etc
13553         module.
13554
13555         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
13556         interfaces.
13557         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
13558         prototypes.
13559
13560 2009-06-24  Bruno Haible  <bruno@clisp.org>
13561
13562         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
13563         HAVE_LIB${NAME} macro.
13564         Reported by Sam Steingold <sds@gnu.org>.
13565
13566 2009-06-23  Simon Josefsson  <simon@josefsson.org>
13567
13568         * modules/hash-tests (test_hash_LDADD): Link to libintl when
13569         needed.
13570
13571 2009-06-21  Bruno Haible  <bruno@clisp.org>
13572
13573         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
13574         work.
13575         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
13576         together with LIB${NAME}, LTLIB${NAME}.
13577         Reported by Sam Steingold <sds@gnu.org>.
13578
13579 2009-06-20  Jim Meyering  <meyering@redhat.com>
13580
13581         tests: make sc_require_test_exit_idiom more generic
13582         * top/maint.mk (Exit_witness_file): New overridable variable.
13583         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
13584         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
13585
13586 2009-06-19  Jim Meyering  <meyering@redhat.com>
13587
13588         hash: reverse order of src/dst parameters in an internal interface
13589         * lib/hash.c (transfer_entries): Reverse order of parameters to
13590         put DST before SRC.  Adjust callers.
13591
13592         tests: test-hash: avoid wholesale duplication
13593         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
13594         Instead, use a loop and add a single conditional.
13595
13596         tests: test-hash: allow seed selection via a command line argument
13597         * tests/test-hash.c (get_seed): New function.
13598         (main): Use it.
13599
13600 2009-06-19  Eric Blake  <ebb9@byu.net>
13601
13602         hash: avoid memory leak on allocation failure
13603         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
13604         failure.  Factor repeated algorithm...
13605         (transfer_entries): ...into new helper routine.
13606         (hash_delete): React to hash_rehash return value.
13607
13608         hash: reduce memory pressure in hash_rehash no-op case
13609         * lib/hash.c (next_prime): Avoid overflow.
13610         (hash_initialize): Factor bucket size computation...
13611         (compute_bucket_size): ...into new helper function.
13612         (hash_rehash): Use new function and open coding to reduce memory
13613         pressure, and avoid a memory leak in USE_OBSTACK code.
13614         Reported by Jim Meyering.
13615
13616 2009-06-18  Eric Blake  <ebb9@byu.net>
13617
13618         hash: make rotation more obvious
13619         * modules/hash (Depends-on): Add bitrotate and stdint.
13620         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
13621         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
13622         (SIZE_MAX): Rely on headers for definition.
13623         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
13624         (raw_hasher): Use rotr_sz.
13625         Suggested by Jim Meyering.
13626
13627         hash: fix memory leak in last patch
13628         * lib/hash.c (hash_rehash): Avoid memory leak.
13629
13630         hash: avoid no-op rehashing
13631         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
13632
13633         hash: provide default callback functions
13634         * lib/hash.c (raw_hasher, raw_comparator): New functions.
13635         (hash_initialize): Use them as defaults.
13636         * tests/test-hash.c (main): Test this.
13637
13638         hash: minor optimization
13639         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
13640         when possible.
13641         (hash_initialize): Document this promise.
13642         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
13643         * tests/test-hash.c (hash_compare_strings): Test this.
13644
13645 2009-06-18  Bruno Haible  <bruno@clisp.org>
13646
13647         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
13648         going to be replaced anyway.
13649
13650 2009-06-18  Bruno Haible  <bruno@clisp.org>
13651
13652         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
13653         in one place.
13654         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
13655         be replaced anyway.
13656
13657 2009-06-18  Eric Blake  <ebb9@byu.net>
13658
13659         hash: check for resize before insertion
13660         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
13661         threshold before insertion, so that a pathological hash_rehash
13662         that fills every bucket can still trigger another rehash.
13663
13664 2009-06-18  Jim Meyering  <meyering@redhat.com>
13665
13666         hash-tests: add a loop around the small tests
13667         * tests/test-hash.c (main): Repeat small tests with selected
13668         small initial table sizes.
13669
13670 2009-06-17  Eric Blake  <ebb9@byu.net>
13671
13672         hash: minor cleanups
13673         * lib/hash.h (hash_entry): Make opaque, by moving...
13674         * lib/hash.c (hash_entry): ...here.
13675         (hash_insert): Clarify restrictions on what can be inserted.
13676         (hash_get_next): Clarify when it is safe to remove an element
13677         during traversal.
13678         (check_tuning): Skip verification when tuning is known safe.
13679         (hash_initialize): Clarify restrictions on tuning.
13680
13681 2009-06-17  Jim Meyering  <jim@meyering.net>
13682         and Eric Blake  <ebb9@byu.net>
13683
13684         hash-tests: new module
13685         * modules/hash-tests: New file.
13686         * tests/test-hash.c: New file.
13687
13688 2009-06-17  Eric Blake  <ebb9@byu.net>
13689
13690         strstr-simple: document new module
13691         * MODULES.html.sh: Document new module.
13692
13693         strstr, strcasestr: replace on platforms with broken memchr
13694         * modules/strstr: Split into...
13695         * modules/strstr-simple: ...new module that does not care about
13696         performance, but does care about glibc bug.
13697         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
13698         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
13699         if platform memchr is broken, per Debian bug 521737.
13700         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
13701         memchr.
13702         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
13703         * doc/posix-functions/strstr.texi (strstr): Document the fix.
13704         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
13705         * modules/mountlist (Depends-on): Add strstr-simple.
13706         * modules/gen-uni-tables (Depends-on): Likewise.
13707         * modules/argz (Depends-on): Add strstr.
13708
13709 2009-06-17  Bruno Haible  <bruno@clisp.org>
13710
13711         * modules/posix_spawn-internal (Depends-on): Add errno.
13712
13713 2009-06-17  Bruno Haible  <bruno@clisp.org>
13714
13715         Define missing ESTALE on Interix 3.5.
13716         * lib/errno.in.h (ESTALE): Assign a value if missing.
13717         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
13718         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
13719         missing.
13720         * doc/posix-headers/errno.texi: Mention the Interix bug.
13721         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
13722
13723 2009-06-15  Eric Blake  <ebb9@byu.net>
13724
13725         memchr, memchr2: add valgrind exception
13726         * lib/memchr.valgrind: New file.
13727         * lib/memchr2.valgrind: New file.
13728         * modules/memchr (Files): Distribute valgrind file.
13729         * modules/memchr2 (Files): Likewise.
13730
13731         docs: memchr is no longer obsolete
13732         * MODULES.html.sh: Move memchr from obsolete to string.h section.
13733         * lib/string.in.h (memchr): Simplify logic.
13734
13735 2009-06-14  Jim Meyering  <meyering@redhat.com>
13736
13737         link-follow: fix the "checking..." message to not mention trailing slash
13738         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
13739         never considered trailing slashes.
13740
13741 2009-06-14  Bruno Haible  <bruno@clisp.org>
13742
13743         * m4/memchr.m4: Mention also the bug on IA-64.
13744         * doc/posix-functions/memchr.texi: Likewise.
13745
13746 2009-06-12  Eric Blake  <ebb9@byu.net>
13747
13748         memchr: detect broken x86_64 and alpha implementations
13749         * modules/memchr-tests (Depends-on): Move mmap detection...
13750         * modules/memchr (Depends-on): ...here.
13751         (configure.ac): Set indicator.
13752         * lib/string.in.h (memchr): Declare replacement.
13753         * modules/string (Makefile.am): Trigger replacement.
13754         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
13755         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
13756         bugs.
13757         * doc/posix-functions/memchr.texi (memchr): Document the bug.
13758         * modules/getpagesize (License): Relax license.
13759
13760 2009-06-11  Bruno Haible  <bruno@clisp.org>
13761
13762         * lib/idpriv.h: Add more references.
13763
13764 2009-06-08  Bruno Haible  <bruno@clisp.org>
13765
13766         Tests for module 'idpriv-droptemp'.
13767         * modules/idpriv-droptemp-tests: New file.
13768         * tests/test-idpriv-droptemp.sh: New file.
13769         * tests/test-idpriv-droptemp.su.sh: New file.
13770         * tests/test-idpriv-droptemp.c: New file.
13771
13772         New module 'idpriv-droptemp'.
13773         * lib/idpriv-droptemp.c: New file.
13774         * modules/idpriv-droptemp: New file.
13775
13776 2009-06-08  Bruno Haible  <bruno@clisp.org>
13777
13778         Tests for module 'idpriv-drop'.
13779         * modules/idpriv-drop-tests: New file.
13780         * tests/test-idpriv-drop.sh: New file.
13781         * tests/test-idpriv-drop.su.sh: New file.
13782         * tests/test-idpriv-drop.c: New file.
13783
13784         New module 'idpriv-drop'.
13785         * lib/idpriv.h: New file.
13786         * lib-idpriv-drop.c: New file.
13787         * m4/idpriv.m4: New file.
13788         * modules/idpriv-drop: New file.
13789
13790 2009-06-08  Bruno Haible  <bruno@clisp.org>
13791
13792         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
13793         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
13794         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
13795         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
13796         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
13797         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
13798         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
13799
13800 2009-06-08  Eric Blake  <ebb9@byu.net>
13801
13802         test-strstr: use memory fence, when possible
13803         * tests/test-strstr.c (main): Use memory fence, in order to be
13804         more likely to trigger Debian bug 521737.
13805         * modules/strstr-tests (Files): Pull in additional files.
13806
13807         memchr: no longer obsolete, for wider field testing
13808         * modules/memchr (Status, Notice): Delete, this module is no
13809         longer obsolete.
13810         * modules/vasnprintf (Depends-on): Add memchr.
13811
13812 2009-06-07  Jim Meyering  <meyering@redhat.com>
13813
13814         hash: declare some functions with the warn_unused_result attribute
13815         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
13816
13817 2009-06-07  Bruno Haible  <bruno@clisp.org>
13818
13819         * tests/test-alignof.c: Don't test int64_t if it does not exist.
13820         Reported by Eric Blake.
13821
13822 2009-06-06  Eric Blake  <ebb9@byu.net>
13823
13824         test-alignof: fix typo with long double
13825         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
13826         compiler error.
13827
13828 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
13829
13830         Escape non-texinfo { and }s.
13831         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
13832         markup error.
13833
13834 2009-06-04  Jim Meyering  <meyering@redhat.com>
13835
13836         gitlog-to-changelog: don't infloop on an empty commit log
13837         * build-aux/gitlog-to-changelog: Warn about an empty log message.
13838         Reported by Boris Petersen <transacid@centerim.org>.
13839
13840 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
13841
13842         version-etc: extend for packagers
13843         Add three new configure options, intended for packagers:
13844           --with-packager="packager name"
13845           --with-packager-version="packager-specific version"
13846           --with-packager-bug-reports="packager bug reporting"
13847         An example with coreutils:
13848           $ ./configure \
13849             --with-packager=Gentoo \
13850             --with-packager-bug-report=http://bugs.gentoo.org/ \
13851             --with-packager-version="patchset 1.6"
13852           $ ./src/ls --version | head -n2
13853           ls (GNU coreutils) 7.1-dirty
13854           Packaged by Gentoo (patchset 1.6)
13855         Note that the bug reporting info via --help doesn't show up because
13856         coreutils uses its own custom emit_bug_reporting_address() implementation
13857         in src/system.h.  If it didn't, it'd look like:
13858           $ ./src/ls --help | tail -n4
13859           Report bugs to <bug-coreutils@gnu.org>.
13860           Report Gentoo bugs to <http://bugs.gentoo.org/>.
13861           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
13862           General help using GNU software: <http://www.gnu.org/gethelp/>.
13863         * lib/version-etc.c: Print new information, if provided.
13864         * m4/version-etc.m4: New file.
13865         * modules/version-etc (Files): Add m4/version-etc.m4.
13866         (configure.ac): Add gl_VERSION_ETC.
13867
13868 2009-05-31  Bruno Haible  <bruno@clisp.org>
13869
13870         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
13871         and 'int64_t'.
13872         * modules/alignof-tests (Dependencies): Add stdint.
13873         Reported by Eric Blake.
13874
13875 2009-05-31  Bruno Haible  <bruno@clisp.org>
13876
13877         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
13878         restriction due to compiler bugs.
13879         Reported by Eric Blake.
13880
13881 2009-05-31  Simon Josefsson  <simon@josefsson.org>
13882             Bruno Haible  <bruno@clisp.org>
13883
13884         Fix test-alignof failure.
13885         * lib/alignof.h (alignof_slot): New macro.
13886         (alignof_type): New macro, with the same semantics as the previous
13887         'alignof'.
13888         (alignof): Alias to alignof_slot.
13889         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
13890         check that the results are usable as constant expressions.
13891
13892 2009-05-31  Bruno Haible  <bruno@clisp.org>
13893
13894         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
13895         * tests/test-memchr.c (main): Check that memchr does not read past the
13896         first occurrence of the byte.
13897         * tests/test-strstr.c (main): Update comment.
13898         Suggested by Eric Blake.
13899
13900 2009-05-30  Bruno Haible  <bruno@clisp.org>
13901
13902         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
13903         detail how to use dumpbin.
13904         Reported by David Byron <dbyron@dbyron.com>.
13905
13906 2009-06-02  Simon Josefsson  <simon@josefsson.org>
13907
13908         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
13909
13910 2009-06-02  Simon Josefsson  <simon@josefsson.org>
13911
13912         * m4/manywarnings.m4: Add GCC 4.4 warnings.
13913
13914 2009-05-28  Bruno Haible  <bruno@clisp.org>
13915
13916         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
13917         build-aux/ files.
13918
13919 2009-05-28  Simon Josefsson  <simon@josefsson.org>
13920
13921         * gnulib-tool (func_import): Transform license on build-aux/ files too.
13922
13923 2009-05-27  Simon Josefsson  <simon@josefsson.org>
13924
13925         * gnulib-tool (sed_transform_main_lib_file)
13926         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
13927         regexps.
13928
13929 2009-05-26  Simon Josefsson  <simon@josefsson.org>
13930
13931         * tests/test-strstr.c: Add another self-test.
13932         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
13933         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
13934
13935 2009-05-23  Bruno Haible  <bruno@clisp.org>
13936
13937         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
13938         change.
13939
13940 2009-05-21  Bruno Haible  <bruno@clisp.org>
13941
13942         Simplify use of mode_t varargs.
13943         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
13944         uses 'mode_t' or 'int'.
13945         * lib/openat.c (openat): Likewise.
13946         * lib/open-safer.c (open_safer): Likewise.
13947         * m4/mode_t.m4: New file.
13948         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
13949         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
13950         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
13951         * modules/open (Files): Add m4/mode_t.m4.
13952         * modules/openat (Files): Likewise.
13953         * modules/fcntl-safer (Files): Likewise.
13954         Suggested by Eric Blake.
13955
13956 2009-05-21  Pádraig Brady  <P@draigbrady.com>
13957
13958         * doc/glibc-functions/fallocate.texi: New file.
13959         * doc/gnulib.texi: Include it.
13960
13961 2009-05-21  Eric Blake  <ebb9@byu.net>
13962             Bruno Haible  <bruno@clisp.org>
13963
13964         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
13965         invocations.
13966         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
13967
13968 2009-05-21  Eric Blake  <ebb9@byu.net>
13969             Bruno Haible  <bruno@clisp.org>
13970
13971         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
13972         include_next. Fix of 2008-11-20 commit.
13973         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
13974         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
13975         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
13976         NEXT_MATH_H.
13977         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
13978         instead of NEXT_MATH_H.
13979
13980 2009-05-21  Bruno Haible  <bruno@clisp.org>
13981
13982         Avoid redefinition warnings for SIZE_MAX.
13983         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
13984         Reported by Simon Josefsson.
13985
13986 2009-05-21  Bruno Haible  <bruno@clisp.org>
13987
13988         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
13989         AC_CACHE_VAL.
13990
13991 2009-05-20  Bruno Haible  <bruno@clisp.org>
13992
13993         Make zeroptr.h work on mingw.
13994         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
13995         mprotect.
13996         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
13997         * modules/memchr2-tests (configure.ac): Likewise.
13998         * modules/memcmp-tests (configure.ac): Likewise.
13999         * modules/memmem-tests (configure.ac): Likewise.
14000         * modules/memrchr-tests (configure.ac): Likewise.
14001         Reported by Simon Josefsson.
14002
14003 2009-05-20  Simon Josefsson  <simon@josefsson.org>
14004
14005         * tests/test-glob.c: Include string.h for strcmp prototype.
14006
14007 2009-05-20  Simon Josefsson  <simon@josefsson.org>
14008
14009         * modules/getdelim (Depends-on): Add explicit stdint, although it
14010         was implicitly already pulled in via realloc-posix.
14011         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
14012
14013 2009-05-20  Simon Josefsson  <simon@josefsson.org>
14014
14015         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
14016         G. Christensen" <tgc@jupiterrise.com>.
14017         * m4/sys_socket_h.m4: Check for sa_family_t.
14018         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
14019         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
14020         * tests/test-sys_socket.c: Check that sa_family_t works.
14021
14022 2009-05-18  Eric Blake  <ebb9@byu.net>
14023
14024         maint.mk: allow gnulib_dir in VPATH build
14025         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
14026
14027 2009-05-15  Jim Meyering  <meyering@redhat.com>
14028
14029         maint.mk: Give gnulib_dir a default definition.
14030         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
14031         Thus, most packages no longer need to specify this variable in cfg.mk
14032
14033 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
14034
14035         rename.m4: fix typos that would make non-mingw cross-configure fail
14036         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
14037
14038 2009-05-13  Eric Blake  <ebb9@byu.net>
14039
14040         mmap-anon: avoid out-of-order autoconf expansion
14041         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
14042         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
14043         * modules/memchr-tests (Depends-on): Add extensions.
14044         * modules/memchr2-tests (Depends-on): Add extensions.
14045         * modules/memcmp-tests (Depends-on): Add extensions.
14046         * modules/memmem-tests (Depends-on): Add extensions.
14047         * modules/memrchr-tests (Depends-on): Add extensions.
14048
14049 2009-05-13  Bruno Haible  <bruno@clisp.org>
14050
14051         Make some tests ISO C 99 compliant.
14052         * tests/zerosize-ptr.h: New file.
14053         * tests/test-memchr.c: Include zerosize-ptr.h.
14054         (main): Use a zero-size object pointer instead of NULL.
14055         * tests/test-memchr2.c: Include zerosize-ptr.h.
14056         (main): Use a zero-size object pointer instead of NULL.
14057         * tests/test-memcmp.c: Include zerosize-ptr.h.
14058         (main): Use a zero-size object pointer instead of NULL.
14059         * tests/test-memmem.c: Include zerosize-ptr.h.
14060         (main): Use a zero-size object pointer instead of NULL.
14061         * tests/test-memrchr.c: Include zerosize-ptr.h.
14062         (main): Use a zero-size object pointer instead of NULL.
14063         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
14064         m4/mmap-anon.m4.
14065         (Depends-on): Add getpagesize.
14066         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14067         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
14068         m4/mmap-anon.m4.
14069         (Depends-on): Add getpagesize.
14070         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14071         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
14072         m4/mmap-anon.m4.
14073         (Depends-on): Add getpagesize.
14074         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14075         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
14076         m4/mmap-anon.m4.
14077         (Depends-on): Add getpagesize.
14078         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14079         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
14080         m4/mmap-anon.m4.
14081         (Depends-on): Add getpagesize.
14082         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14083
14084 2009-05-12  Bruno Haible  <bruno@clisp.org>
14085
14086         Tests for module 'alignof'.
14087         * modules/alignof-tests: New file.
14088         * tests/test-alignof.c: New file.
14089
14090 2009-05-12  Bruno Haible  <bruno@clisp.org>
14091
14092         Fix alignof macro.
14093         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
14094         vendor compilers that are always correct.
14095
14096 2009-05-12  Bruno Haible  <bruno@clisp.org>
14097
14098         Make the MAP_ANONYMOUS detection work on HP-UX 11.
14099         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
14100         not whether its fully works.
14101
14102 2009-05-12  Bruno Haible  <bruno@clisp.org>
14103
14104         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
14105
14106 2009-05-12  Jim Meyering  <meyering@redhat.com>
14107
14108         * top/maint.mk: Adjust backslash alignment.
14109
14110 2009-05-11  Simon Josefsson  <simon@josefsson.org>
14111
14112         * top/maint.mk: Make $(srcdir)/build-aux configurable.
14113
14114 2009-05-11  Eric Blake  <ebb9@byu.net>
14115
14116         argp: avoid undefined behavior
14117         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
14118         macros.
14119
14120 2009-05-08  Simon Josefsson  <simon@josefsson.org>
14121
14122         * tests/test-vc-list-files-git.sh: Do git config of user.email and
14123         user.name to prevent git commit from complaining.
14124
14125 2009-05-10  Bruno Haible  <bruno@clisp.org>
14126
14127         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
14128         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
14129         it rewrites every file name only once.
14130         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
14131
14132 2009-05-08  Bruno Haible  <bruno@clisp.org>
14133
14134         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
14135         instead of 'max'.
14136
14137 2009-05-08  Simon Josefsson  <simon@josefsson.org>
14138
14139         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
14140         sockaddr_storage test.
14141
14142 2009-05-07  Simon Josefsson  <simon@josefsson.org>
14143
14144         * modules/sys_socket (Makefile.am): Substitute
14145         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
14146         * m4/sys_socket_h.m4: Check for sockaddr_storage.
14147         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
14148         * tests/test-sys_socket.c: Check sockaddr_storage.
14149
14150 2009-05-08  Bruno Haible  <bruno@clisp.org>
14151
14152         New module 'alignof'.
14153         * lib/alignof.h: New file.
14154         * modules/alignof: New file.
14155
14156 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14157             Bruno Haible  <bruno@clisp.org>
14158
14159         Fix test-file-has-acl on FreeBSD.
14160         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
14161         mask is implicitly added.
14162         * tests/test-file-has-acl.c: Include <signal.h>.
14163         (main): Terminate the test after 5 seconds.
14164         * modules/acl-tests (configure.ac): Check for alarm function.
14165
14166 2009-05-04  Bruno Haible  <bruno@clisp.org>
14167
14168         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
14169         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
14170         * modules/errno (configure.ac): Drop AC_REQUIRE.
14171         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
14172         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
14173
14174 2009-05-04  Simon Josefsson  <simon@josefsson.org>
14175
14176         * modules/glob-tests: New module.
14177         * tests/test-glob.c: Add.
14178
14179 2009-05-04  Simon Josefsson  <simon@josefsson.org>
14180
14181         * modules/fnmatch-tests: New module.
14182         * tests/test-fnmatch.c: Add.
14183
14184 2009-05-04  Eric Blake  <ebb9@byu.net>
14185
14186         maint: make the new no-submodule-changes rule VPATH-safe
14187         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
14188
14189 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14190             Bruno Haible  <bruno@clisp.org>
14191
14192         acl: Fix infinite loop on FreeBSD.
14193         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
14194         of return value from acl_get_entry.
14195         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
14196         Likewise.
14197
14198 2009-05-03  Bruno Haible  <bruno@clisp.org>
14199
14200         * lib/acl-internal.h (acl_entries): Clarify return value.
14201         * lib/acl_entries.c (acl_entries): Likewise.
14202
14203 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14204
14205         Bug fix in acl module.
14206         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
14207
14208 2009-05-03  Bruno Haible  <bruno@clisp.org>
14209
14210         Create gperf-generated file in the source dir, not in the build dir.
14211         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
14212         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
14213         * modules/unicase/locale-language (unicase/locale-languages.h):
14214         Likewise.
14215         * modules/unicase/special-casing (unicase/special-casing-table.h):
14216         Likewise.
14217         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
14218         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
14219         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
14220         Reported by Ralf Wildenhues.
14221
14222 2009-05-03  Bruno Haible  <bruno@clisp.org>
14223
14224         * modules/fnmatch (Description, configure.ac): Taken from
14225         fnmatch-posix.
14226         * modules/fnmatch-posix: Turn into a symbolic reference to the
14227         'fnmatch' module, and deprecate.
14228         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
14229
14230 2009-05-03  Bruno Haible  <bruno@clisp.org>
14231
14232         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
14233         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
14234         Reported by Ralf Wildenhues.
14235
14236 2009-05-04  Simon Josefsson  <simon@josefsson.org>
14237
14238         * m4/fnmatch.m4: Fix fnmatch re-define.
14239
14240 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14241
14242         priv-set: new module and tests; adapt write-any-file
14243         * lib/priv-set.c: New file.
14244         * lib/priv-set.h: New file.
14245         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
14246         * lib/write-any-file.c: Simplify by using priv-set module.
14247         * m4/priv-set.m4: New file.
14248         * modules/priv-set: New file.
14249         * modules/unlinkdir: Add dependency on priv-set module.
14250         * modules/write-any-file: Likewise.
14251
14252         Tests for module 'priv-set'.
14253         * modules/priv-set-tests: New file.
14254         * tests/test-priv-set.c: New file.
14255
14256 2009-05-03  Jim Meyering  <meyering@redhat.com>
14257             Bruno Haible  <bruno@clisp.org>
14258
14259         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
14260         use the converted UTF-8 variant of the name instead.
14261
14262 2009-05-03  Jim Meyering  <meyering@redhat.com>
14263
14264         tests: tighten some getdate tests
14265         * tests/test-getdate.c (main): Tighten tests: require equality,
14266         not just greater than.  Set TZ envvar to UTC0.
14267
14268 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
14269
14270         getdate: correctly interpret "next monday" when run on a Monday
14271         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
14272         that e.g., "next tues" (when run on a tuesday) results in a date
14273         that is one week in the future, and not today's date.
14274         I.e., add a week when the wday is the same as the current one.
14275         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
14276         and earlier by Martin Bernreuther and Jan Minář.
14277         * tests/test-getdate.c (main): Check that "next DAY" is always in
14278         the future and that "last DAY" is always in the past.
14279
14280 2009-05-02  Jim Meyering  <meyering@redhat.com>
14281
14282         build: ensure that a release build fails when a submodule is unclean
14283         * top/maint.mk (no-submodule-changes): New rule.
14284         (alpha beta major): Depend on it.
14285
14286 2009-05-02  Bruno Haible  <bruno@clisp.org>
14287
14288         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
14289         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
14290         shell variable gl_fnmatch_required to detect which variant is
14291         requested.
14292         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
14293         gl_FUNC_FNMATCH_POSIX.
14294         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
14295         exclude fnmatch-posix.
14296
14297 2009-05-02  Bruno Haible  <bruno@clisp.org>
14298
14299         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
14300         * modules/mbsrtowcs (License): Change to LGPLv2+.
14301         * modules/strnlen1 (License): Likewise.
14302         Reported by Simon Josefsson.
14303
14304 2009-05-02  Bruno Haible  <bruno@clisp.org>
14305
14306         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
14307         "cross".
14308         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
14309         gnulib-tool was called with option --source-base=lib.
14310
14311 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14312
14313         Use automake *-local hooks without commands, for extensibility.
14314         * modules/localcharset (Makefile.am): Rename install-exec-local
14315         rule to install-exec-localcharset, and make it a prerequisite of
14316         install-exec-local.  Likewise, rename the uninstall-local rule to
14317         uninstall-localcharset, and make it a prerequisite of the former.
14318
14319 2009-05-01  Bruno Haible  <bruno@clisp.org>
14320
14321         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
14322         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
14323         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
14324         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
14325         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
14326         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
14327         m4/locale-zh.m4, m4/codeset.m4.
14328
14329         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
14330         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
14331         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
14332         m4/locale-zh.m4.
14333
14334         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
14335         REPLACE_WCRTOMB if mbstate_t must be replaced.
14336         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
14337         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
14338
14339 2009-05-01  Bruno Haible  <bruno@clisp.org>
14340
14341         Avoid compiler warnings when redefining macros defined by <libintl.h>.
14342         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
14343         dngettext, dcngettext, textdomain, bindtextdomain,
14344         bind_textdomain_codeset): Undefine before redefining.
14345
14346 2009-04-30  Bruno Haible  <bruno@clisp.org>
14347
14348         Fix bug introduced on 2009-04-25.
14349         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
14350         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
14351         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
14352         is defined.
14353         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
14354         is defined.
14355         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
14356         is defined.
14357         Reported by Elbert_Pol <elbert.pol@gmail.com>.
14358
14359 2009-04-28  Bruno Haible  <bruno@clisp.org>
14360
14361         Comment tweaks.
14362         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
14363         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
14364         * lib/unicase.h (u*_casexfrm): Likewise.
14365         Reported by Paolo Bonzini.
14366
14367 2009-04-28  Bruno Haible  <bruno@clisp.org>
14368
14369         Fix a compilation error.
14370         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
14371         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
14372         Reported by Jim Meyering.
14373
14374 2009-04-27  Bruno Haible  <bruno@clisp.org>
14375
14376         New module 'libunistring'.
14377         * modules/libunistring: New file.
14378         * m4/libunistring.m4: New file.
14379         * MODULES.html.sh (Unicode string functions): Add it.
14380
14381 2009-04-27  Eric Blake  <ebb9@byu.net>
14382
14383         maint.mk: allow package-specific header to provide <config.h>
14384         * top/maint.mk (sc_require_config_h): New variable.
14385         (sc_require_config_h, sc_require_config_h_first): Use it.
14386
14387 2009-04-27  Simon Josefsson  <simon@josefsson.org>
14388
14389         * top/maint.mk (sc_avoid_if_before_free): Except
14390         useless-if-before-free script.
14391
14392 2009-04-27  Eric Blake  <ebb9@byu.net>
14393
14394         maintainer-makefile: depend on all required helper scripts
14395         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
14396         useless-if-before-free.
14397         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
14398         version, rather than assuming gnulib checkout is available.
14399         Reported by Simen Josefsson.
14400
14401 2009-04-26  Bruno Haible  <bruno@clisp.org>
14402
14403         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
14404         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
14405         "../" or "..".
14406
14407 2009-04-26  Bruno Haible  <bruno@clisp.org>
14408
14409         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
14410         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
14411         AC_LIB_HAVE_LINKFLAGS.
14412
14413 2009-04-26  Bruno Haible  <bruno@clisp.org>
14414
14415         Simplify calling convention of u*_conv_from_encoding.
14416         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
14417         u32_conv_from_encoding): Expect a resultbuf argument and return the
14418         result directly as a pointer.
14419         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
14420         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
14421         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
14422         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
14423         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
14424         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
14425         Update.
14426         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
14427         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
14428         * lib/vasnprintf.c (VASNPRINTF): Update.
14429         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
14430         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
14431         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
14432         * NEWS: Mention the change.
14433
14434 2009-04-26  Bruno Haible  <bruno@clisp.org>
14435
14436         Simplify calling convention of u*_conv_to_encoding.
14437         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
14438         u32_conv_to_encoding): Expect a resultbuf argument and return the
14439         result directly as a pointer.
14440         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
14441         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
14442         freeing scaled_offsets if mem_iconveha failed.
14443         * lib/unicase/u-casexfrm.h (FUNC): Update.
14444         * lib/uninorm/u-normxfrm.h (FUNC): Update.
14445         * lib/vasnprintf.c (VASNPRINTF): Update.
14446         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
14447         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
14448         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
14449         * NEWS: Mention the change.
14450
14451 2009-04-26  Bruno Haible  <bruno@clisp.org>
14452
14453         Avoid test failures on AIX and OSF/1.
14454         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
14455         malloc(0).
14456         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
14457         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
14458         Likewise.
14459         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
14460         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
14461         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
14462         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
14463         * doc/posix-functions/malloc.texi: Document the portability problem
14464         related to malloc(0).
14465
14466 2009-04-26  Bruno Haible  <bruno@clisp.org>
14467
14468         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
14469         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
14470         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
14471
14472 2009-04-25  Bruno Haible  <bruno@clisp.org>
14473
14474         Avoid link error when creating a namespace clean library.
14475         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
14476         as macro with arguments if already defined as an alias.
14477         * lib/signbitf.c (gl_signbitf): Don't undefine.
14478         * lib/signbitd.c (gl_signbitd): Don't undefine.
14479         * lib/signbitl.c (gl_signbitl): Don't undefine.
14480
14481 2009-04-25  Jim Meyering  <meyering@redhat.com>
14482
14483         vc-list-files: fix another quoting bug
14484         * build-aux/vc-list-files: Avoid sed backslash expansion
14485         of pathological directory names.
14486
14487 2009-04-25  Eric Blake  <ebb9@byu.net>
14488
14489         vc-list-files: fix shell quoting error
14490         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
14491         timestamp.
14492
14493 2009-04-25  Jim Meyering  <meyering@redhat.com>
14494
14495         vc-list-files: restore lost functionality with subdir argument
14496         * build-aux/vc-list-files: When given a non-"." sub-directory
14497         argument, substitute the $dir/ prefix back onto each resulting name.
14498         Otherwise, coreutils' root_tests check would fail.
14499
14500 2009-04-24  Eric Blake  <ebb9@byu.net>
14501
14502         vc-list-files: ignore git symlinks
14503         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
14504         than ls-files, to ignore git symlinks.
14505
14506         maint.mk: import improvements from m4
14507         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
14508         (move_if_change): Delete unused macro.
14509         (news-date-check, vc-diff-check): Support VPATH builds.
14510         (announcement): Likewise.  Split --bootstrap-tools list...
14511         (boostrap-tools): ...into separate list, which can be overridden
14512         in cfg.mk.
14513         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
14514         requiring dependency on useless-if-before-free module.
14515         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
14516         Support VPATH builds.
14517
14518 2009-04-24  Jim Meyering  <meyering@redhat.com>
14519
14520         maint.mk: remove coreutils-specific rules and variables
14521         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
14522         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
14523         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
14524
14525         maint.mk: remove obsolete rule
14526         * top/maint.mk (rel-check): Remove rule.
14527         (WGET, WGETFLAGS): Remove now-unused variables.
14528
14529 2009-04-24  Simon Josefsson  <simon@josefsson.org>
14530
14531         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
14532         consistency.
14533
14534         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
14535         '$(PATH_SEPARATOR)' instead of ':'.
14536
14537 2009-04-24  Simon Josefsson  <simon@josefsson.org>
14538
14539         * lib/getopt1.c (main): Use 'const' for static array.
14540
14541 2009-04-24  Simon Josefsson  <simon@josefsson.org>
14542
14543         * top/maint.mk: Sync with coreutils.
14544         * NEWS: Explain incompatibilities.
14545
14546 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
14547             Bruno Haible  <bruno@clisp.org>
14548
14549         Fix cross-compilation results.
14550         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
14551         statement, as third argument of AC_TRY_RUN.
14552         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
14553         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
14554         Likewise.
14555         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
14556         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
14557         Likewise.
14558         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
14559         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
14560         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
14561
14562 2009-04-20  Bruno Haible  <bruno@clisp.org>
14563
14564         Avoid test failure on mingw.
14565         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
14566
14567 2009-04-20  Bruno Haible  <bruno@clisp.org>
14568
14569         Avoid compilation error on mingw.
14570         * modules/localename-tests (Depends-on): Add locale.
14571
14572 2009-04-19  Bruno Haible  <bruno@clisp.org>
14573
14574         Support for building a shared library on Windows platforms.
14575         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
14576         (main): Test the presence of UNINORM_NFC here.
14577         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
14578         (main): Test the presence of UNINORM_NFD here.
14579         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
14580         (main): Test the presence of UNINORM_NFKC here.
14581         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
14582         (main): Test the presence of UNINORM_NFKD here.
14583
14584 2009-04-19  Bruno Haible  <bruno@clisp.org>
14585
14586         Avoid a compiler warning.
14587         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
14588         Change type of variable 'sequence'.
14589
14590 2009-04-19  Bruno Haible  <bruno@clisp.org>
14591
14592         * modules/configmake (Makefile.am): When the contents of configmake.h
14593         does not change, arrange to preserve its modification time.
14594
14595 2009-04-17  Simon Josefsson  <simon@josefsson.org>
14596
14597         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
14598         gettext domain.
14599
14600 2009-04-16  Jim Meyering  <meyering@redhat.com>
14601
14602         useless-if-before-free: improve conversion code
14603         * build-aux/useless-if-before-free: Adjust code-in-comment to match
14604         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
14605
14606 2009-04-14  Bruno Haible  <bruno@clisp.org>
14607
14608         * modules/fcntl (Depends-on): Add extensions.
14609         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
14610
14611 2009-04-12  Ben Pfaff  <blp@gnu.org>
14612
14613         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
14614         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
14615
14616 2009-03-20  Ben Pfaff  <blp@gnu.org>
14617
14618         Make rename replace existing destinations on Windows.
14619         * m4/rename.m4: Add test for Mingw.
14620         * lib/rename.c: Add rename replacement that uses MoveFileEx with
14621         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
14622         * doc/posix-functions/rename.texi: Document.
14623
14624 2009-04-10  Bruno Haible  <bruno@clisp.org>
14625
14626         New include file "iconveh.h".
14627         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
14628         * lib/striconveh.h: Include it.
14629         (enum iconv_ilseq_handler): Remove definition.
14630         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
14631         striconveh.h.
14632         * lib/striconveha.c: Include striconveh.h.
14633         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
14634         * modules/striconveh (Files): Add lib/iconveh.h.
14635         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
14636         lib/striconveh.h.
14637
14638 2009-04-10  Bruno Haible  <bruno@clisp.org>
14639
14640         * lib/uniconv.h: Update comment.
14641
14642 2009-04-10  Bruno Haible  <bruno@clisp.org>
14643
14644         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
14645         always.
14646         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
14647         * lib/unistr/u16-mbtouc-aux.c: Likewise.
14648         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
14649         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
14650         "unistring-notinline.h", so that the function gets defined always.
14651         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
14652         * lib/unistr/u8-uctomb.c: Likewise.
14653         * lib/unistr/u16-mbtouc.c: Likewise.
14654         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
14655         * lib/unistr/u16-uctomb.c: Likewise.
14656         * lib/unistr/u32-mbtouc.c: Likewise.
14657         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
14658         * lib/unistr/u32-uctomb.c: Likewise.
14659
14660 2009-04-10  Bruno Haible  <bruno@clisp.org>
14661
14662         Mark 'utime' obsolete.
14663         * modules/utime (Status, Notice): New sections.
14664         Suggested by Jim Meyering.
14665
14666         Fix cross-compile guess for utime test.
14667         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
14668         autoconf.
14669         * doc/posix-functions/utime.texi: Give more precisions.
14670         Reported by Jan <ipif@ymail.com>.
14671
14672 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
14673
14674         filevercmp: correct today's change
14675         * lib/filevercmp.c: Also handle coreutils' test inputs.
14676         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
14677
14678         Fix regression in 'filevercmp' module. Thanks Sven Joachim
14679         for reporting it.
14680         * lib/filevercmp.c: Special handle for "", "." and "..".
14681         * tests/test-filevercmp.c: Enlarge the set suite.
14682
14683 2009-04-07  Jim Meyering  <meyering@redhat.com>
14684
14685         useless-if-before-free: show how to remove braced useless free, too
14686         * build-aux/useless-if-before-free: still only in a comment, though.
14687
14688 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
14689
14690         maint.mk: import changes to syntax-check macros from coreutils
14691         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
14692         Use them in the relevant macros.
14693
14694 2009-04-06  Bruno Haible  <bruno@clisp.org>
14695
14696         Fix unportable use of bit-fields.
14697         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
14698         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
14699         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
14700
14701 2009-04-06  Bruno Haible  <bruno@clisp.org>
14702
14703         Avoid test failures on AIX and OSF/1.
14704         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
14705         that malloc(0) = NULL.
14706         * tests/unicase/test-u8-tolower.c (check): Likewise.
14707         * tests/unicase/test-u8-totitle.c (check): Likewise.
14708         * tests/unicase/test-u8-toupper.c (check): Likewise.
14709         * tests/unicase/test-u16-casefold.c (check): Likewise.
14710         * tests/unicase/test-u16-tolower.c (check): Likewise.
14711         * tests/unicase/test-u16-totitle.c (check): Likewise.
14712         * tests/unicase/test-u16-toupper.c (check): Likewise.
14713         * tests/unicase/test-u32-casefold.c (check): Likewise.
14714         * tests/unicase/test-u32-tolower.c (check): Likewise.
14715         * tests/unicase/test-u32-totitle.c (check): Likewise.
14716         * tests/unicase/test-u32-toupper.c (check): Likewise.
14717         * tests/uninorm/test-u8-nfc.c (check): Likewise.
14718         * tests/uninorm/test-u8-nfd.c (check): Likewise.
14719         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
14720         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
14721         * tests/uninorm/test-u16-nfc.c (check): Likewise.
14722         * tests/uninorm/test-u16-nfd.c (check): Likewise.
14723         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
14724         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
14725         * tests/uninorm/test-u32-nfc.c (check): Likewise.
14726         * tests/uninorm/test-u32-nfd.c (check): Likewise.
14727         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
14728         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
14729
14730 2009-04-05  Bruno Haible  <bruno@clisp.org>
14731
14732         Work around an autoconf limitation.
14733         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
14734         comment line if it would be longer than 3 KB.
14735
14736 2009-04-05  Bruno Haible  <bruno@clisp.org>
14737
14738         Avoid test failure with libiconv-1.13.
14739         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
14740         of the expected test results.
14741
14742 2009-04-05  Bruno Haible  <bruno@clisp.org>
14743
14744         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
14745         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
14746         that it should be installed.
14747
14748 2009-04-05  Bruno Haible  <bruno@clisp.org>
14749
14750         * gnulib-tool: New option --copy-file.
14751         (func_usage): Document it.
14752         (func_dest_tmpfilename): Moved out of func_import.
14753         (func_add_file, func_update_file): New functions, extracted from
14754         func_import.
14755         (func_import): Update.
14756
14757 2009-04-05  Karl Berry  <karl@gnu.org>
14758
14759         * README: prominently mention gnulib-tool.
14760         Rearrange sections so getting the code is near the top.
14761
14762 2009-04-05  Bruno Haible  <bruno@clisp.org>
14763
14764         * lib/unicase.h: Mention u*_cmp2.
14765         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
14766         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
14767         * lib/unicase/ulc-casecmp.c: Likewise.
14768         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
14769         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
14770         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
14771         unistr/u8-cmp.
14772         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
14773         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
14774         unistr/u16-cmp.
14775         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
14776         unistr/u32-cmp.
14777
14778         * lib/uninorm.h: Mention u*_cmp2.
14779         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
14780         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
14781         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
14782         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
14783         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
14784         unistr/u8-cmp.
14785         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
14786         unistr/u16-cmp.
14787         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
14788         unistr/u32-cmp.
14789
14790         New module 'unistr/u32-cmp2'.
14791         * lib/unistr/u32-cmp2.c: New file.
14792         * modules/unistr/u32-cmp2: New file.
14793
14794         New module 'unistr/u16-cmp2'.
14795         * lib/unistr/u16-cmp2.c: New file.
14796         * modules/unistr/u16-cmp2: New file.
14797
14798         New module 'unistr/u8-cmp2'.
14799         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
14800         * lib/unistr/u8-cmp2.c: New file.
14801         * lib/unistr/u-cmp2.h: New file.
14802         * modules/unistr/u8-cmp2: New file.
14803
14804 2009-04-05  Bruno Haible  <bruno@clisp.org>
14805
14806         * lib/unictype.h (uc_property_is_valid): New macro.
14807         * tests/unictype/test-pr_byname.c (main): Use it.
14808
14809         * lib/unistr.h: Doc fixes.
14810         * lib/uniconv.h: Doc fixes.
14811         * lib/unictype.h: Doc fixes.
14812
14813 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
14814
14815         Port coreutils 7.2 to Solaris 8.
14816
14817         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
14818         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
14819         for Solaris 8.  This is a bit of a hack, as it means it's the
14820         caller's responsibility to add -lnsl if needed, but most likely it
14821         won't be needed since only getaddrinfo uses this and getaddrinfo
14822         isn't needed on Solaris 8.
14823
14824         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
14825         problem to Solaris 8 encountered with coreutils 7.2, which
14826         resulted in a message "fnmatch.c:292: warning: passing argument 4
14827         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
14828         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
14829
14830 2009-04-03  Simon Josefsson  <simon@josefsson.org>
14831
14832         * m4/ld-version-script.m4: Add FIXME comment.
14833
14834 2009-04-02  Simon Josefsson  <simon@josefsson.org>
14835
14836         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
14837         SOVERSION variable.
14838
14839 2009-04-02  Bruno Haible  <bruno@clisp.org>
14840
14841         * Makefile (info, html, dvi, pdf): Combine the rules.
14842         Suggested by Jim Meyering.
14843
14844 2009-04-01  Bruno Haible  <bruno@clisp.org>
14845
14846         * Makefile (info, html, dvi, pdf): New targets.
14847         Reported by Reuben Thomas <rrt@sc3d.org>.
14848
14849 2009-04-01  Bruno Haible  <bruno@clisp.org>
14850
14851         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
14852         can be put into PATH.
14853         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
14854
14855 2009-04-01  Bruno Haible  <bruno@clisp.org>
14856
14857         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
14858
14859 2009-04-01  Bruno Haible  <bruno@clisp.org>
14860
14861         Rename module 'visibility'.
14862         * modules/lib-symbol-visibility: Renamed from modules/visibility.
14863         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
14864         * doc/gnulib.texi: Update.
14865         * MODULES.html.sh (Misc): Update.
14866         * NEWS: Mention the change.
14867
14868 2009-04-01  Simon Josefsson  <simon@josefsson.org>
14869
14870         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
14871         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
14872         Eric Blake <ebb9@byu.net> for review.
14873         * MODULES.html.sh: Add lib-msvc-compat.
14874         * doc/gnulib.texi: Link to new section.
14875         * m4/ld-output-def.m4: New file.
14876         * doc/ld-output-def.texi: New file.
14877
14878 2009-04-01  Simon Josefsson  <simon@josefsson.org>
14879
14880         Rename ld-version-script to lib-symbol-versions.  Suggested by
14881         Bruno Haible <bruno@clisp.org>.
14882         * modules/ld-version-script: Renamed to lib-symbol-versions.
14883         * doc/ld-version-script.texi: Fix module name.
14884         * MODULES.html.sh: Add lib-symbol-versions.
14885
14886 2009-03-31  Simon Josefsson  <simon@josefsson.org>
14887
14888         * modules/u64-tests: New file.
14889         * tests/test-u64.c: New file.
14890
14891 2009-03-04  Simon Josefsson  <simon@josefsson.org>
14892
14893         * MODULES.html.sh: Mention u64.
14894         * modules/u64: New module.
14895         * modules/crypto/sha512: Depend on u64 module instead of providing
14896         u64.h.
14897
14898 2009-03-27  Eric Blake  <ebb9@byu.net>
14899
14900         test-strerror: make debugging EAI_SYSTEM easier
14901         * modules/getaddrinfo-tests (Depends-on): Add strerror.
14902         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
14903         failure was EAI_SYSTEM.
14904
14905 2009-03-25  Bruno Haible  <bruno@clisp.org>
14906
14907         Fix a problem with --enable-relocatable on Solaris 7.
14908         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
14909         since 2008-02-24.
14910
14911 2009-03-25  Eric Blake  <ebb9@byu.net>
14912
14913         test-sockets: avoid gcc warning
14914         * tests/test-sockets.c (main): Silence compiler warning.
14915
14916 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
14917
14918         New modules nproc, pthread, contributed by Glen Lenker.
14919
14920         * MODULES.html.sh: Add pthread, nproc.
14921         * lib/nproc.c: New file.
14922         * lib/nproc.h: New file.
14923         * lib/pthread.in.h: New file.
14924         * m4/pthread.m4: New file.
14925         * modules/nproc: New file.
14926         * modules/pthread: New file.
14927
14928 2009-03-24  Simon Josefsson  <simon@josefsson.org>
14929
14930         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
14931         New variable.
14932
14933 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
14934
14935         filevercmp: handle simple~ and numbered.~3~ backup suffixes
14936         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
14937         * tests/test-filevercmp.c: Add tests for backup suffixes.
14938
14939 2009-03-24  Simon Josefsson  <simon@josefsson.org>
14940
14941         * modules/stdlib (Depends-on): Add stdint, needed when defining
14942         struct random_data on, for example, HP-UX 10.20.  Reported by
14943         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14944
14945 2009-03-24  Simon Josefsson  <simon@josefsson.org>
14946
14947         * lib/readline.c (readline): Call fflush on stdout after printing
14948         prompt.
14949
14950 2009-03-20  Bruno Haible  <bruno@clisp.org>
14951
14952         Remove dependency from 'close' module to -lws2_32 on native Windows.
14953         * lib/close-hook.h: New file.
14954         * lib/close-hook.c: New file.
14955         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
14956         w32sock.h.
14957         (_gl_close_fd_maybe_socket): Remove function.
14958         (rpl_close): Invoke execute_all_close_hooks instead of
14959         _gl_close_fd_maybe_socket.
14960         * lib/sockets.c: Include close-hook.h, w32sock.h.
14961         (close_fd_maybe_socket): New function, essentially from lib/close.c.
14962         (close_sockets_hook): New variable.
14963         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
14964         (gl_sockets_cleanup): Unregister it.
14965         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
14966         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
14967         * modules/close-hook: New file.
14968         * modules/close (Files): Remove lib/w32sock.h.
14969         (Depends-on): Add close-hook.
14970         (Link): Remove section.
14971         * modules/sockets (Files): Add lib/w32sock.h.
14972         (Depends-on): Add close-hook.
14973         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
14974         invocation.
14975         * NEWS: Mention that LIB_CLOSE is gone.
14976
14977 2009-03-23  Eric Blake  <ebb9@byu.net>
14978
14979         signal-tests: test previous patch
14980         * tests/test-signal.c: New file.
14981         * modules/signal-tests: Likewise.
14982
14983         signal.h: always support 'volatile sig_atomic_t'
14984         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
14985         (gl_SIGNAL_H_DEFAULTS): Add a default.
14986         * modules/signal (Makefile.am): Substitute if needed.
14987         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
14988         users can blindly add volatile.
14989         * doc/posix-headers/signal.texi (signal.h): Document it.
14990         Reported by Matthew Woehlke.
14991
14992 2009-03-23  Jim Meyering  <meyering@redhat.com>
14993
14994         pathmax: PATH_MAX: use pathconf only when available
14995         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
14996         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
14997         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
14998         This avoids a link failure in a PSP cross-compilation environment
14999         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
15000
15001         * lib/vasnprintf.c (divide): Fix typo in comment.
15002
15003 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15004
15005         * gnulib-tool (func_filter_filelist): Fix comment.
15006
15007 2009-03-20  Bruno Haible  <bruno@clisp.org>
15008
15009         Make sockets.h self-contained.
15010         * lib/sockets.c: Include sockets.h first.
15011         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
15012
15013 2009-03-19  Eric Blake  <ebb9@byu.net>
15014
15015         doc: mention more functions added in cygwin 1.7.0
15016         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
15017         addition.
15018         * doc/posix-functions/log2f.texi: Likewise.
15019
15020 2009-03-19  Jim Meyering  <meyering@redhat.com>
15021
15022         fsusage: avoid syntax error due to statement-before-declaration
15023         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
15024         after all declarations.  Reported by Matthew Woehlke in
15025         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
15026
15027 2009-03-18  Eric Blake  <ebb9@byu.net>
15028
15029         build-aux/compile: sync from automake
15030         * build-aux/compile: New file, from automake.
15031         * config/srclist.txt: Mention build-aux/compile.
15032
15033 2009-03-17  Bruno Haible  <bruno@clisp.org>
15034
15035         * lib/git-merge-changelog.c: Fix typo in comment.
15036         Reported by Reuben Thomas <rrt@sc3d.org>.
15037
15038 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
15039
15040         * m4/regex.m4: update and improve help for
15041         --without-included-regex.
15042
15043 2009-03-17  Simon Josefsson  <simon@josefsson.org>
15044
15045         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
15046         failure on missing include files.
15047
15048 2009-03-17  Eric Blake  <ebb9@byu.net>
15049
15050         doc: mention more functions added in cygwin 1.7.0
15051         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
15052         addition.
15053         * doc/posix-functions/fwscanf.texi: Likewise.
15054         * doc/posix-functions/swprintf.texi: Likewise.
15055         * doc/posix-functions/swscanf.texi: Likewise.
15056         * doc/posix-functions/vfwprintf.texi: Likewise.
15057         * doc/posix-functions/vfwscanf.texi: Likewise.
15058         * doc/posix-functions/vswprintf.texi: Likewise.
15059         * doc/posix-functions/vswscanf.texi: Likewise.
15060         * doc/posix-functions/vwprintf.texi: Likewise.
15061         * doc/posix-functions/vwscanf.texi: Likewise.
15062         * doc/posix-functions/wcscasecmp.texi: Likewise.
15063         * doc/posix-functions/wcsdup.texi: Likewise.
15064         * doc/posix-functions/wcsftime.texi: Likewise.
15065         * doc/posix-functions/wcsncasecmp.texi: Likewise.
15066         * doc/posix-functions/wprintf.texi: Likewise.
15067         * doc/posix-functions/wscanf.texi: Likewise.
15068         * doc/glibc-functions/gethostbyname2.texi: Likewise.
15069
15070 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15071
15072         maint.mk: really add $(AM_MAKEFLAGS)
15073         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
15074         was inadvertently omitted in the last commit.
15075         Spotted by Bruno Haible.
15076
15077         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
15078         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
15079         $(AM_MAKEFLAGS)' rather than plain `make'.
15080
15081         gnulib-tool: execute $MAKE not make
15082         * gnulib-tool: Default $MAKE to 'make'.
15083         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
15084         than make.  Initialize $MAKE in the do-autobuild script.
15085
15086         gnulib-tool: use $MAKE not make in generated files
15087         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
15088         make, in generated files.  Initialize $MAKE in the do-autobuild
15089         script.
15090
15091         * top/GNUmakefile (_have-git-version-gen): Fix typo.
15092
15093         GNUmakefile: disable parallelism only for multiple, recursive targets
15094         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
15095         additions in the Makefile.
15096         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
15097         by Automake.
15098         (.NOTPARALLEL): Only disable parallel builds if multiple targets
15099         are listed on the command line and at least one of them is
15100         listed in $(ALL_RECURSIVE_TARGETS).
15101
15102 2009-03-14  Bruno Haible  <bruno@clisp.org>
15103
15104         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
15105         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
15106         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
15107         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
15108         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
15109         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
15110         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
15111         unistr/u8-uctomb.
15112         * modules/unistr/u8-strchr (Depends-on): Likewise.
15113         * modules/unistr/u8-strrchr (Depends-on): Likewise.
15114         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
15115         unistr/u16-uctomb.
15116         * modules/unistr/u16-strchr (Depends-on): Likewise.
15117         * modules/unistr/u16-strrchr (Depends-on): Likewise.
15118
15119 2009-03-12  Bruno Haible  <bruno@clisp.org>
15120
15121         Work around select() bug on Interix 3.5.
15122         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
15123         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
15124         * m4/select.m4: New file.
15125         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
15126         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
15127         * modules/select (Files): Add m4/select.m4.
15128         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
15129         * modules/nanosleep (Depends-on): Add select.
15130         * modules/poll (Depends-on): Likewise.
15131         * doc/posix-functions/select.texi: Mention the Interix bug.
15132         Reported by Markus Duft <mduft@gentoo.org>.
15133
15134         * lib/select.c: Renamed from lib/winsock-select.c.
15135         * modules/select (Files): Add lib/select.c, remove
15136         lib/winsock-select.c.
15137         (configure.ac): Update.
15138
15139 2009-03-12  Jim Meyering  <meyering@redhat.com>
15140
15141         avoid gcc warnings about unused macro definitions
15142         * lib/readtokens.c (STREQ): Remove unused definition.
15143         * lib/xmalloc.c (SIZE_MAX): Likewise.
15144         * lib/openat-die.c (N_): Likewise.
15145         * lib/mountlist.c (SIZE_MAX): Remove definition.
15146         Instead, include <stdint.h>.
15147         * lib/readutmp.c: Likewise.
15148         * modules/readutmp (Depends-on): Add stdint.
15149         * modules/mountlist (Depends-on): Add stdint.
15150         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
15151
15152 2009-03-10  Bruno Haible  <bruno@clisp.org>
15153
15154         Tests for module 'mbmemcasecoll'.
15155         * modules/mbmemcasecoll-tests: New file.
15156         * tests/test-mbmemcasecoll1.sh: New file.
15157         * tests/test-mbmemcasecoll2.sh: New file.
15158         * tests/test-mbmemcasecoll3.sh: New file.
15159         * tests/test-mbmemcasecoll.c: New file.
15160
15161         New module 'mbmemcasecoll'.
15162         * lib/mbmemcasecoll.h: New file.
15163         * lib/mbmemcasecoll.c: New file.
15164         * modules/mbmemcasecoll: New file.
15165
15166         * tests/test-mbmemcasecmp.h: New file, extracted from
15167         tests/test-mbmemcasecmp.c.
15168         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
15169         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
15170         (main): Update.
15171         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
15172
15173 2009-03-09  Bruno Haible  <bruno@clisp.org>
15174
15175         Tests for module 'mbmemcasecmp'.
15176         * modules/mbmemcasecmp-tests: New file.
15177         * tests/test-mbmemcasecmp1.sh: New file.
15178         * tests/test-mbmemcasecmp2.sh: New file.
15179         * tests/test-mbmemcasecmp3.sh: New file.
15180         * tests/test-mbmemcasecmp.c: New file.
15181
15182         New module 'mbmemcasecmp'.
15183         * lib/mbmemcasecmp.h: New file.
15184         * lib/mbmemcasecmp.c: New file.
15185         * modules/mbmemcasecmp: New file.
15186
15187 2009-03-09  Bruno Haible  <bruno@clisp.org>
15188
15189         Tests for module 'unicase/ulc-casecoll'.
15190         * modules/unicase/ulc-casecoll-tests: New file.
15191         * tests/unicase/test-ulc-casecoll1.sh: New file.
15192         * tests/unicase/test-ulc-casecoll2.sh: New file.
15193         * tests/unicase/test-ulc-casecoll.c: New file.
15194
15195         New module 'unicase/ulc-casecoll'.
15196         * lib/unicase.h (ulc_casecoll): New declaration.
15197         * lib/unicase/ulc-casecoll.c: New file.
15198         * modules/unicase/ulc-casecoll: New file.
15199
15200         New module 'unicase/ulc-casexfrm'.
15201         * lib/unicase.h (ulc_casexfrm): New declaration.
15202         * lib/unicase/ulc-casexfrm.c: New file.
15203         * modules/unicase/ulc-casexfrm: New file.
15204
15205 2009-03-09  Bruno Haible  <bruno@clisp.org>
15206
15207         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
15208         invocations.
15209
15210         * m4/mbscasecmp.m4: Remove file.
15211         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
15212         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
15213
15214         * m4/mbscasestr.m4: Remove file.
15215         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
15216         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
15217
15218         * m4/mbschr.m4: Remove file.
15219         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
15220         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
15221
15222         * m4/mbscspn.m4: Remove file.
15223         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
15224         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
15225
15226         * m4/mbslen.m4: Remove file.
15227         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
15228         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
15229
15230         * m4/mbsncasecmp.m4: Remove file.
15231         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
15232         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
15233
15234         * m4/mbsnlen.m4: Remove file.
15235         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
15236         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
15237
15238         * m4/mbspbrk.m4: Remove file.
15239         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
15240         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
15241
15242         * m4/mbspcasecmp.m4: Remove file.
15243         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
15244         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
15245
15246         * m4/mbsrchr.m4: Remove file.
15247         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
15248         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
15249
15250         * m4/mbssep.m4: Remove file.
15251         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
15252         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
15253
15254         * m4/mbsspn.m4: Remove file.
15255         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
15256         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
15257
15258         * m4/mbsstr.m4: Remove file.
15259         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
15260         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
15261
15262         * m4/mbstok_r.m4: Remove file.
15263         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
15264         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
15265
15266         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
15267
15268         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
15269         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
15270
15271         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
15272
15273 2009-03-08  Bruno Haible  <bruno@clisp.org>
15274
15275         Tests for module 'unicase/ulc-casecmp'.
15276         * modules/unicase/ulc-casecmp-tests: New file.
15277         * tests/unicase/test-ulc-casecmp1.sh: New file.
15278         * tests/unicase/test-ulc-casecmp2.sh: New file.
15279         * tests/unicase/test-ulc-casecmp.c: New file.
15280
15281         New module 'unicase/ulc-casecmp'.
15282         * lib/unicase.h (ulc_casecmp): New declaration.
15283         * lib/unicase/ulc-casecmp.c: New file.
15284         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
15285         'const SRC_UNIT *'.
15286         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
15287         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
15288         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
15289         * modules/unicase/ulc-casecmp: New file.
15290
15291         Tests for module 'unicase/u32-is-cased'.
15292         * modules/unicase/u32-is-cased-tests: New file.
15293         * tests/unicase/test-u32-is-cased.c: New file.
15294
15295         Tests for module 'unicase/u16-is-cased'.
15296         * modules/unicase/u16-is-cased-tests: New file.
15297         * tests/unicase/test-u16-is-cased.c: New file.
15298
15299         Tests for module 'unicase/u8-is-cased'.
15300         * modules/unicase/u8-is-cased-tests: New file.
15301         * tests/unicase/test-u8-is-cased.c: New file.
15302         * tests/unicase/test-is-cased.h: New file.
15303
15304         New module 'unicase/u32-is-cased'.
15305         * lib/unicase/u32-is-cased.c: New file.
15306         * modules/unicase/u32-is-cased: New file.
15307
15308         New module 'unicase/u16-is-cased'.
15309         * lib/unicase/u16-is-cased.c: New file.
15310         * modules/unicase/u16-is-cased: New file.
15311
15312         New module 'unicase/u8-is-cased'.
15313         * lib/unicase/u8-is-cased.c: New file.
15314         * lib/unicase/u-is-cased.h: New file.
15315         * modules/unicase/u8-is-cased: New file.
15316
15317         Tests for module 'unicase/u32-is-casefolded'.
15318         * modules/unicase/u32-is-casefolded-tests: New file.
15319         * tests/unicase/test-u32-is-casefolded.c: New file.
15320
15321         Tests for module 'unicase/u16-is-casefolded'.
15322         * modules/unicase/u16-is-casefolded-tests: New file.
15323         * tests/unicase/test-u16-is-casefolded.c: New file.
15324
15325         Tests for module 'unicase/u8-is-casefolded'.
15326         * modules/unicase/u8-is-casefolded-tests: New file.
15327         * tests/unicase/test-u8-is-casefolded.c: New file.
15328         * tests/unicase/test-is-casefolded.h: New file.
15329
15330         New module 'unicase/u32-is-casefolded'.
15331         * lib/unicase/u32-is-casefolded.c: New file.
15332         * modules/unicase/u32-is-casefolded: New file.
15333
15334         New module 'unicase/u16-is-casefolded'.
15335         * lib/unicase/u16-is-casefolded.c: New file.
15336         * modules/unicase/u16-is-casefolded: New file.
15337
15338         New module 'unicase/u8-is-casefolded'.
15339         * lib/unicase/u8-is-casefolded.c: New file.
15340         * modules/unicase/u8-is-casefolded: New file.
15341
15342         Tests for module 'unicase/u32-is-titlecase'.
15343         * modules/unicase/u32-is-titlecase-tests: New file.
15344         * tests/unicase/test-u32-is-titlecase.c: New file.
15345
15346         Tests for module 'unicase/u16-is-titlecase'.
15347         * modules/unicase/u16-is-titlecase-tests: New file.
15348         * tests/unicase/test-u16-is-titlecase.c: New file.
15349
15350         Tests for module 'unicase/u8-is-titlecase'.
15351         * modules/unicase/u8-is-titlecase-tests: New file.
15352         * tests/unicase/test-u8-is-titlecase.c: New file.
15353         * tests/unicase/test-is-titlecase.h: New file.
15354
15355         New module 'unicase/u32-is-titlecase'.
15356         * lib/unicase/u32-is-titlecase.c: New file.
15357         * modules/unicase/u32-is-titlecase: New file.
15358
15359         New module 'unicase/u16-is-titlecase'.
15360         * lib/unicase/u16-is-titlecase.c: New file.
15361         * modules/unicase/u16-is-titlecase: New file.
15362
15363         New module 'unicase/u8-is-titlecase'.
15364         * lib/unicase/u8-is-titlecase.c: New file.
15365         * modules/unicase/u8-is-titlecase: New file.
15366
15367         Tests for module 'unicase/u32-is-lowercase'.
15368         * modules/unicase/u32-is-lowercase-tests: New file.
15369         * tests/unicase/test-u32-is-lowercase.c: New file.
15370
15371         Tests for module 'unicase/u16-is-lowercase'.
15372         * modules/unicase/u16-is-lowercase-tests: New file.
15373         * tests/unicase/test-u16-is-lowercase.c: New file.
15374
15375         Tests for module 'unicase/u8-is-lowercase'.
15376         * modules/unicase/u8-is-lowercase-tests: New file.
15377         * tests/unicase/test-u8-is-lowercase.c: New file.
15378         * tests/unicase/test-is-lowercase.h: New file.
15379
15380         New module 'unicase/u32-is-lowercase'.
15381         * lib/unicase/u32-is-lowercase.c: New file.
15382         * modules/unicase/u32-is-lowercase: New file.
15383
15384         New module 'unicase/u16-is-lowercase'.
15385         * lib/unicase/u16-is-lowercase.c: New file.
15386         * modules/unicase/u16-is-lowercase: New file.
15387
15388         New module 'unicase/u8-is-lowercase'.
15389         * lib/unicase/u8-is-lowercase.c: New file.
15390         * modules/unicase/u8-is-lowercase: New file.
15391
15392         Tests for module 'unicase/u32-is-uppercase'.
15393         * modules/unicase/u32-is-uppercase-tests: New file.
15394         * tests/unicase/test-u32-is-uppercase.c: New file.
15395
15396         Tests for module 'unicase/u16-is-uppercase'.
15397         * modules/unicase/u16-is-uppercase-tests: New file.
15398         * tests/unicase/test-u16-is-uppercase.c: New file.
15399
15400         Tests for module 'unicase/u8-is-uppercase'.
15401         * modules/unicase/u8-is-uppercase-tests: New file.
15402         * tests/unicase/test-u8-is-uppercase.c: New file.
15403         * tests/unicase/test-is-uppercase.h: New file.
15404
15405         New module 'unicase/u32-is-uppercase'.
15406         * lib/unicase/u32-is-uppercase.c: New file.
15407         * modules/unicase/u32-is-uppercase: New file.
15408
15409         New module 'unicase/u16-is-uppercase'.
15410         * lib/unicase/u16-is-uppercase.c: New file.
15411         * modules/unicase/u16-is-uppercase: New file.
15412
15413         New module 'unicase/u8-is-uppercase'.
15414         * lib/unicase/u8-is-uppercase.c: New file.
15415         * modules/unicase/u8-is-uppercase: New file.
15416
15417         New module 'unicase/u32-is-invariant'.
15418         * lib/unicase/u32-is-invariant.c: New file.
15419         * modules/unicase/u32-is-invariant: New file.
15420
15421         New module 'unicase/u16-is-invariant'.
15422         * lib/unicase/u16-is-invariant.c: New file.
15423         * modules/unicase/u16-is-invariant: New file.
15424
15425         New module 'unicase/u8-is-invariant'.
15426         * lib/unicase/u8-is-invariant.c: New file.
15427         * lib/unicase/invariant.h: New file.
15428         * lib/unicase/u-is-invariant.h: New file.
15429         * modules/unicase/u8-is-invariant: New file.
15430
15431         Tests for module 'unicase/u32-casecoll'.
15432         * modules/unicase/u32-casecoll-tests: New file.
15433         * tests/unicase/test-u32-casecoll.c: New file.
15434
15435         Tests for module 'unicase/u16-casecoll'.
15436         * modules/unicase/u16-casecoll-tests: New file.
15437         * tests/unicase/test-u16-casecoll.c: New file.
15438
15439         Tests for module 'unicase/u8-casecoll'.
15440         * modules/unicase/u8-casecoll-tests: New file.
15441         * tests/unicase/test-u8-casecoll.c: New file.
15442
15443         New module 'unicase/u32-casecoll'.
15444         * lib/unicase/u32-casecoll.c: New file.
15445         * modules/unicase/u32-casecoll: New file.
15446
15447         New module 'unicase/u16-casecoll'.
15448         * lib/unicase/u16-casecoll.c: New file.
15449         * modules/unicase/u16-casecoll: New file.
15450
15451         New module 'unicase/u8-casecoll'.
15452         * lib/unicase/u8-casecoll.c: New file.
15453         * lib/unicase/u-casecoll.h: New file.
15454         * modules/unicase/u8-casecoll: New file.
15455
15456         New module 'unicase/u32-casexfrm'.
15457         * lib/unicase/u32-casexfrm.c: New file.
15458         * modules/unicase/u32-casexfrm: New file.
15459
15460         New module 'unicase/u16-casexfrm'.
15461         * lib/unicase/u16-casexfrm.c: New file.
15462         * modules/unicase/u16-casexfrm: New file.
15463
15464         New module 'unicase/u8-casexfrm'.
15465         * lib/unicase/u8-casexfrm.c: New file.
15466         * lib/unicase/u-casexfrm.h: New file.
15467         * modules/unicase/u8-casexfrm: New file.
15468
15469         Tests for module 'unicase/u32-casecmp'.
15470         * modules/unicase/u32-casecmp-tests: New file.
15471         * tests/unicase/test-u32-casecmp.c: New file.
15472
15473         Tests for module 'unicase/u16-casecmp'.
15474         * modules/unicase/u16-casecmp-tests: New file.
15475         * tests/unicase/test-u16-casecmp.c: New file.
15476
15477         Tests for module 'unicase/u8-casecmp'.
15478         * modules/unicase/u8-casecmp-tests: New file.
15479         * tests/unicase/test-u8-casecmp.c: New file.
15480         * tests/unicase/test-casecmp.h: New file.
15481
15482         New module 'unicase/u32-casecmp'.
15483         * lib/unicase/u32-casecmp.c: New file.
15484         * modules/unicase/u32-casecmp: New file.
15485
15486         New module 'unicase/u16-casecmp'.
15487         * lib/unicase/u16-casecmp.c: New file.
15488         * modules/unicase/u16-casecmp: New file.
15489
15490         New module 'unicase/u8-casecmp'.
15491         * lib/unicase/u8-casecmp.c: New file.
15492         * lib/unicase/u-casecmp.h: New file.
15493         * modules/unicase/u8-casecmp: New file.
15494
15495         Tests for module 'unicase/u32-casefold'.
15496         * modules/unicase/u32-casefold-tests: New file.
15497         * tests/unicase/test-u32-casefold.c: New file.
15498
15499         Tests for module 'unicase/u16-casefold'.
15500         * modules/unicase/u16-casefold-tests: New file.
15501         * tests/unicase/test-u16-casefold.c: New file.
15502
15503         Tests for module 'unicase/u8-casefold'.
15504         * modules/unicase/u8-casefold-tests: New file.
15505         * tests/unicase/test-u8-casefold.c: New file.
15506
15507         New module 'unicase/u32-casefold'.
15508         * lib/unicase/u32-casefold.c: New file.
15509         * modules/unicase/u32-casefold: New file.
15510
15511         New module 'unicase/u16-casefold'.
15512         * lib/unicase/u16-casefold.c: New file.
15513         * modules/unicase/u16-casefold: New file.
15514
15515         New module 'unicase/u8-casefold'.
15516         * lib/unicase/u8-casefold.c: New file.
15517         * lib/unicase/u-casefold.h: New file.
15518         * modules/unicase/u8-casefold: New file.
15519
15520         New module 'unicase/tocasefold'.
15521         * lib/unicase/casefold.h: New file.
15522         * lib/unicase/tocasefold.c: New file.
15523         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
15524         * modules/unicase/tocasefold: New file.
15525
15526         Tests for module 'unicase/u32-totitle'.
15527         * modules/unicase/u32-totitle-tests: New file.
15528         * tests/unicase/test-u32-totitle.c: New file.
15529
15530         Tests for module 'unicase/u16-totitle'.
15531         * modules/unicase/u16-totitle-tests: New file.
15532         * tests/unicase/test-u16-totitle.c: New file.
15533
15534         Tests for module 'unicase/u8-totitle'.
15535         * modules/unicase/u8-totitle-tests: New file.
15536         * tests/unicase/test-u8-totitle.c: New file.
15537
15538         New module 'unicase/u32-totitle'.
15539         * lib/unicase/u32-totitle.c: New file.
15540         * modules/unicase/u32-totitle: New file.
15541
15542         New module 'unicase/u16-totitle'.
15543         * lib/unicase/u16-totitle.c: New file.
15544         * modules/unicase/u16-totitle: New file.
15545
15546         New module 'unicase/u8-totitle'.
15547         * lib/unicase/u8-totitle.c: New file.
15548         * lib/unicase/u-totitle.h: New file.
15549         * modules/unicase/u8-totitle: New file.
15550
15551         Tests for module 'unicase/u32-tolower'.
15552         * modules/unicase/u32-tolower-tests: New file.
15553         * tests/unicase/test-u32-tolower.c: New file.
15554
15555         Tests for module 'unicase/u16-tolower'.
15556         * modules/unicase/u16-tolower-tests: New file.
15557         * tests/unicase/test-u16-tolower.c: New file.
15558
15559         Tests for module 'unicase/u8-tolower'.
15560         * modules/unicase/u8-tolower-tests: New file.
15561         * tests/unicase/test-u8-tolower.c: New file.
15562
15563         New module 'unicase/u32-tolower'.
15564         * lib/unicase/u32-tolower.c: New file.
15565         * modules/unicase/u32-tolower: New file.
15566
15567         New module 'unicase/u16-tolower'.
15568         * lib/unicase/u16-tolower.c: New file.
15569         * modules/unicase/u16-tolower: New file.
15570
15571         New module 'unicase/u8-tolower'.
15572         * lib/unicase/u8-tolower.c: New file.
15573         * modules/unicase/u8-tolower: New file.
15574
15575         Tests for module 'unicase/u32-toupper'.
15576         * modules/unicase/u32-toupper-tests: New file.
15577         * tests/unicase/test-u32-toupper.c: New file.
15578
15579         Tests for module 'unicase/u16-toupper'.
15580         * modules/unicase/u16-toupper-tests: New file.
15581         * tests/unicase/test-u16-toupper.c: New file.
15582
15583         Tests for module 'unicase/u8-toupper'.
15584         * modules/unicase/u8-toupper-tests: New file.
15585         * tests/unicase/test-u8-toupper.c: New file.
15586
15587         New module 'unicase/u32-toupper'.
15588         * lib/unicase/u32-toupper.c: New file.
15589         * modules/unicase/u32-toupper: New file.
15590
15591         New module 'unicase/u16-toupper'.
15592         * lib/unicase/u16-toupper.c: New file.
15593         * modules/unicase/u16-toupper: New file.
15594
15595         New module 'unicase/u8-toupper'.
15596         * lib/unicase/u8-toupper.c: New file.
15597         * modules/unicase/u8-toupper: New file.
15598
15599         New module 'unicase/u32-casemap'.
15600         * lib/unicase/u32-casemap.c: New file.
15601         * modules/unicase/u32-casemap: New file.
15602
15603         New module 'unicase/u16-casemap'.
15604         * lib/unicase/u16-casemap.c: New file.
15605         * modules/unicase/u16-casemap: New file.
15606
15607         New module 'unicase/u8-casemap'.
15608         * lib/unicase/unicasemap.h: New file.
15609         * lib/unicase/u8-casemap.c: New file.
15610         * lib/unicase/u-casemap.h: New file.
15611         * modules/unicase/u8-casemap: New file.
15612
15613         New module 'unicase/special-casing'.
15614         * lib/unicase/special-casing.h: New file.
15615         * lib/unicase/special-casing.c: New file.
15616         * lib/unicase/special-casing-table.gperf: New file, generated by
15617         gen-uni-tables.c.
15618         * modules/unicase/special-casing: New file.
15619
15620         Tests for module 'unicase/locale-language'.
15621         * modules/unicase/locale-language-tests: New file.
15622         * tests/unicase/test-locale-language.sh: New file.
15623         * tests/unicase/test-locale-language.c: New file.
15624
15625         New module 'unicase/locale-language'.
15626         * lib/unicase/locale-language.c: New file.
15627         * lib/unicase/locale-languages.gperf: New file.
15628         * modules/unicase/locale-language: New file.
15629
15630         Generate more tables for case conversion and case folding.
15631         * lib/gen-uni-tables.c (SCC_*): New enum items.
15632         (struct special_casing_rule): New type.
15633         (casing_rules, num_casing_rules, allocated_casing_rules): New
15634         variables.
15635         (add_casing_rule, fill_casing_rules): New functions.
15636         (struct casefold_rule): New type.
15637         (casefolding_rules, num_casefolding_rules,
15638         allocated_casefolding_rules): New variables.
15639         (fill_casefolding_rules): New function.
15640         (unicode_casefold): New variable.
15641         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
15642         sort_casing_rules, output_casing_rules): New functions.
15643         (main): Accept to more arguments: SpecialCasing.txt and
15644         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
15645         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
15646         Output mapping for casefolding.
15647
15648         * lib/unicase.h: Include stdbool.h, uninorm.h.
15649         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
15650         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
15651         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
15652         arguments.
15653         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
15654         resultp arguments.
15655         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
15656         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
15657         resultp arguments.
15658         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
15659         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
15660         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
15661         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
15662         declarations.
15663         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
15664
15665 2009-03-08  Bruno Haible  <bruno@clisp.org>
15666
15667         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
15668         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
15669         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
15670         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
15671
15672 2009-03-07  Bruno Haible  <bruno@clisp.org>
15673
15674         Adjust u*_normcmp, u*_normcoll API.
15675         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
15676         u16_normcoll, u32_normcoll): Change failure conventions.
15677         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
15678         errno and return -1.
15679         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
15680
15681 2009-03-07  Bruno Haible  <bruno@clisp.org>
15682
15683         Tests for module 'uninorm/u32-normcoll'.
15684         * modules/uninorm/u32-normcoll-tests: New file.
15685         * tests/uninorm/test-u32-normcoll.c: New file.
15686
15687         Tests for module 'uninorm/u16-normcoll'.
15688         * modules/uninorm/u16-normcoll-tests: New file.
15689         * tests/uninorm/test-u16-normcoll.c: New file.
15690
15691         Tests for module 'uninorm/u8-normcoll'.
15692         * modules/uninorm/u8-normcoll-tests: New file.
15693         * tests/uninorm/test-u8-normcoll.c: New file.
15694
15695 2009-03-07  Bruno Haible  <bruno@clisp.org>
15696
15697         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
15698         tests/uninorm/test-u32-normcmp.c.
15699         * tests/uninorm/test-u32-normcmp.c: Include it.
15700         (test_nonascii): New function, extracted from main. Add some more
15701         tests.
15702         (main): Invoke test_ascii and test_nonascii.
15703         * modules/uninorm/u32-normcmp-tests (Files): Add
15704         tests/uninorm/test-u32-normcmp.h.
15705         (Depends-on): Remove uninorm/u32-normcmp.
15706
15707         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
15708         tests/uninorm/test-u16-normcmp.c.
15709         * tests/uninorm/test-u16-normcmp.c: Include it.
15710         (test_nonascii): New function, extracted from main. Add some more
15711         tests.
15712         (main): Invoke test_ascii and test_nonascii.
15713         * modules/uninorm/u16-normcmp-tests (Files): Add
15714         tests/uninorm/test-u16-normcmp.h.
15715         (Depends-on): Remove uninorm/u16-normcmp.
15716
15717         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
15718         tests/uninorm/test-u8-normcmp.c.
15719         * tests/uninorm/test-u8-normcmp.c: Include it.
15720         (test_nonascii): New function, extracted from main. Add some more
15721         tests.
15722         (main): Invoke test_ascii and test_nonascii.
15723         * modules/uninorm/u8-normcmp-tests (Files): Add
15724         tests/uninorm/test-u8-normcmp.h.
15725         (Depends-on): Remove uninorm/u8-normcmp.
15726
15727 2009-03-07  Bruno Haible  <bruno@clisp.org>
15728
15729         New module 'uninorm/u32-normcoll'.
15730         * lib/uninorm/u32-normcoll.c: New file.
15731         * modules/uninorm/u32-normcoll: New file.
15732
15733         New module 'uninorm/u16-normcoll'.
15734         * lib/uninorm/u16-normcoll.c: New file.
15735         * modules/uninorm/u16-normcoll: New file.
15736
15737         New module 'uninorm/u8-normcoll'.
15738         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
15739         declarations.
15740         * lib/uninorm/u8-normcoll.c: New file.
15741         * lib/uninorm/u-normcoll.h: New file.
15742         * modules/uninorm/u8-normcoll: New file.
15743
15744         New module 'uninorm/u32-normxfrm'.
15745         * lib/uninorm/u32-normxfrm.c: New file.
15746         * modules/uninorm/u32-normxfrm: New file.
15747
15748         New module 'uninorm/u16-normxfrm'.
15749         * lib/uninorm/u16-normxfrm.c: New file.
15750         * modules/uninorm/u16-normxfrm: New file.
15751
15752         New module 'uninorm/u8-normxfrm'.
15753         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
15754         declarations.
15755         * lib/uninorm/u8-normxfrm.c: New file.
15756         * lib/uninorm/u-normxfrm.h: New file.
15757         * modules/uninorm/u8-normxfrm: New file.
15758
15759 2009-03-07  Bruno Haible  <bruno@clisp.org>
15760
15761         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
15762         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
15763         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
15764
15765 2009-03-07  Bruno Haible  <bruno@clisp.org>
15766
15767         New module 'memxfrm'.
15768         * lib/memxfrm.h: New file.
15769         * lib/memxfrm.c: New file.
15770         * modules/memxfrm: New file.
15771
15772 2009-03-07  Bruno Haible  <bruno@clisp.org>
15773
15774         New module 'memcmp2'.
15775         * lib/memcmp2.h: New file.
15776         * lib/memcmp2.c: New file.
15777         * modules/memcmp2: New file.
15778
15779 2009-03-07  Bruno Haible  <bruno@clisp.org>
15780
15781         Tests for module 'uninorm/decomposing-form'.
15782         * modules/uninorm/decomposing-form-tests: New file.
15783         * tests/uninorm/test-decomposing-form.c: New file.
15784
15785         New module 'uninorm/decomposing-form'.
15786         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
15787         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
15788         Add 'decomposing_variant' field.
15789         * lib/uninorm/decomposing-form.c: New file.
15790         * lib/uninorm/nfc.c (uninorm_nfc): Update.
15791         * lib/uninorm/nfd.c (uninorm_nfd): Update.
15792         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
15793         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
15794         * modules/uninorm/decomposing-form: New file.
15795         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
15796         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
15797
15798 2009-03-07  Bruno Haible  <bruno@clisp.org>
15799
15800         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
15801         strings.
15802
15803 2009-03-06  Bruno Haible  <bruno@clisp.org>
15804
15805         Tests for module 'uninorm/u32-normcmp'.
15806         * tests/uninorm/test-u32-normcmp.c: New file.
15807         * modules/uninorm/u32-normcmp-tests: New file.
15808
15809         Tests for module 'uninorm/u16-normcmp'.
15810         * tests/uninorm/test-u16-normcmp.c: New file.
15811         * modules/uninorm/u16-normcmp-tests: New file.
15812
15813         Tests for module 'uninorm/u8-normcmp'.
15814         * tests/uninorm/test-u8-normcmp.c: New file.
15815         * modules/uninorm/u8-normcmp-tests: New file.
15816
15817         New module 'uninorm/u32-normcmp'.
15818         * lib/uninorm/u32-normcmp.c: New file.
15819         * modules/uninorm/u32-normcmp: New file.
15820
15821         New module 'uninorm/u16-normcmp'.
15822         * lib/uninorm/u16-normcmp.c: New file.
15823         * modules/uninorm/u16-normcmp: New file.
15824
15825         New module 'uninorm/u8-normcmp'.
15826         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
15827         declarations.
15828         * lib/uninorm/u8-normcmp.c: New file.
15829         * lib/uninorm/u-normcmp.h: New file.
15830         * modules/uninorm/u8-normcmp: New file.
15831
15832 2009-03-06  Bruno Haible  <bruno@clisp.org>
15833
15834         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
15835         Reported by Eric Blake.
15836
15837 2009-03-06  Eric Blake  <ebb9@byu.net>
15838             Bruno Haible  <bruno@clisp.org>
15839
15840         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
15841         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
15842         condition.
15843         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
15844         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
15845         condition.
15846         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
15847
15848 2009-03-06  Eric Blake  <ebb9@byu.net>
15849
15850         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
15851         to avoid compiler warnings.
15852         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
15853
15854 2009-03-05  Bruno Haible  <bruno@clisp.org>
15855
15856         * tests/test-ftell.c (main): Disable test beyond end of file on
15857         FreeMiNT.
15858         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
15859
15860 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
15861
15862         * lib/filevercmp.c: Move hidden files up in ordering.
15863         * tests/test-filevercmp.c: Add tests for hidden files.
15864
15865 2009-03-04  Bruno Haible  <bruno@clisp.org>
15866
15867         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
15868         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
15869         AM_CFLAGS.
15870         Reported by Simon Josefsson.
15871
15872 2009-03-03  Bruno Haible  <bruno@clisp.org>
15873
15874         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
15875         Reported by Simon Josefsson.
15876
15877         * doc/ld-version-script.texi: Update node reference.
15878
15879 2009-03-03  Bruno Haible  <bruno@clisp.org>
15880
15881         * modules/visibility (License): Change to 'unlimited'.
15882         Suggested by Simon Josefsson.
15883
15884 2009-03-03  Jim Meyering  <meyering@redhat.com>
15885
15886         unlinkdir: cannot_unlink_dir may modify process state
15887         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
15888         it's neither thread-safe nor appropriate for use in a library.
15889
15890 2009-03-03  Eric Blake  <ebb9@byu.net>
15891
15892         test-closein: silence test under Darwin
15893         * tests/test-closein.sh: Ignore stderr from cat, since we don't
15894         care if it dies from EPIPE or EBADF.
15895
15896 2009-03-03  Bruno Haible  <bruno@clisp.org>
15897
15898         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
15899         earlier.
15900         * doc/visibility.texi: Fix @node and @section.
15901
15902 2009-03-03  Simon Josefsson  <simon@josefsson.org>
15903
15904         * doc/gnulib.texi: Link to sections for ld version script and
15905         visibility.
15906         * doc/visibility.texi: Add @node and @section.
15907         * modules/ld-version-script: New module.
15908         * m4/ld-version-script.m4: New file.
15909         * doc/ld-version-script.texi: New file.
15910
15911 2009-03-02  David Lutterkort  <lutter@redhat.com>
15912
15913         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
15914         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15915
15916 2009-03-02  Bruno Haible  <bruno@clisp.org>
15917
15918         * doc/visibility.texi: Mention libtool's -export-symbols option.
15919
15920 2009-03-02  Jim Meyering  <meyering@redhat.com>
15921
15922         announce-gen: new option: --no-print-checksums
15923         * build-aux/announce-gen (usage): Describe it.
15924         (print_checksums): Print a newline here, not in the [*] footnote.
15925         (main): Honor it.
15926
15927 2009-03-01  Bruno Haible  <bruno@clisp.org>
15928
15929         Use socklen_t in the native Windows replacements prototypes.
15930         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
15931         instead of 'int'.
15932         * lib/getsockopt.c (rpl_getsockopt): Likewise.
15933         * lib/setsockopt.c (rpl_setsockopt): Likewise.
15934         * modules/getsockopt (Depends-on): Add socklen.
15935         * modules/setsockopt (Depends-on): Add socklen.
15936
15937 2009-03-01  Bruno Haible  <bruno@clisp.org>
15938
15939         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
15940         least 4.2.
15941
15942 2009-03-01  Eric Blake  <ebb9@byu.net>
15943             Bruno Haible  <bruno@clisp.org>
15944
15945         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
15946         error messages.
15947         * lib/wait-process.c (wait_subprocess): Omit error message about
15948         deadly signal sent to the child of termsigp != NULL.
15949
15950 2009-03-01  Eric Blake  <ebb9@byu.net>
15951
15952         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
15953
15954 2009-03-01  Bruno Haible  <bruno@clisp.org>
15955
15956         Avoid a gcc warning.
15957         * tests/test-sched.c (b): Make global.
15958         Reported by Eric Blake.
15959
15960 2009-01-19  Martin Lambers  <marlam@marlam.de>
15961
15962         Provide POSIX semantics for socket timeout options on W32.
15963         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
15964         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
15965         * modules/setsockopt: Depend on sys_time module for struct timeval.
15966         * modules/getsockopt: Depend on sys_time module for struct timeval.
15967
15968 2009-03-01  Simon Josefsson  <simon@josefsson.org>
15969
15970         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
15971         __USE_GNU, for consistency with netdb.in.h.
15972         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15973
15974 2009-03-01  Bruno Haible  <bruno@clisp.org>
15975
15976         More support for FreeMiNT.
15977         * lib/fseeko.c (rpl_fseeko): Complete last commit.
15978         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15979
15980 2009-03-01  Bruno Haible  <bruno@clisp.org>
15981
15982         More support for FreeMiNT.
15983         * lib/fpurge.c (fpurge): Correct last commit.
15984         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15985
15986 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15987
15988         Fix unportable awk script in vc-list-files.
15989         * build-aux/vc-list-files: In the replacement awk script, use
15990         substr with a second argument of 1, not zero.
15991         Report by Simon Josefsson.
15992
15993 2009-02-28  Bruno Haible  <bruno@clisp.org>
15994
15995         More support for FreeMiNT.
15996         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
15997         to FreeMiNT today.
15998         * lib/fwriting.c (fwriting): Likewise.
15999         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
16000
16001 2009-02-28  Bruno Haible  <bruno@clisp.org>
16002
16003         * tests/test-freadseek.c (main): Disable test beyond end of file on
16004         FreeMiNT.
16005         * tests/test-ftello.c (main): Likewise.
16006         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
16007
16008 2009-02-28  Bruno Haible  <bruno@clisp.org>
16009
16010         Add tentative support for FreeMiNT.
16011         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
16012         * lib/fpurge.c (fpurge): Likewise.
16013         * lib/freadable.c (freadable): Likewise.
16014         * lib/freading.c (freading): Likewise.
16015         * lib/freadptr.c (freadptr): Likewise.
16016         * lib/freadseek.c (freadptrinc): Likewise.
16017         * lib/fseeko.c (rpl_fseeko): Likewise.
16018         * lib/fseterr.c (fseterr): Likewise.
16019         * lib/fwritable.c (fwritable): Likewise.
16020         * lib/fwriting.c (fwriting): Likewise.
16021         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
16022         Hourihane.
16023         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
16024
16025 2009-02-28  Bruno Haible  <bruno@clisp.org>
16026
16027         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
16028         SIGCHLD.
16029         Reported by Jim Meyering.
16030
16031 2009-02-28  Bruno Haible  <bruno@clisp.org>
16032
16033         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
16034         Mention the results of these tests on various platforms.
16035         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
16036         order.
16037         * doc/posix-functions/printf.texi: Likewise.
16038         * doc/posix-functions/snprintf.texi: Likewise.
16039         * doc/posix-functions/sprintf.texi: Likewise.
16040         * doc/posix-functions/vfprintf.texi: Likewise.
16041         * doc/posix-functions/vprintf.texi: Likewise.
16042         * doc/posix-functions/vsnprintf.texi: Likewise.
16043         * doc/posix-functions/vsprintf.texi: Likewise.
16044         * doc/glibc-functions/obstack_printf.texi: Likewise.
16045         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
16046
16047 2009-02-28  Bruno Haible  <bruno@clisp.org>
16048
16049         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
16050         Reported by Loïc Minier <lool@dooz.org>.
16051
16052 2009-02-27  Bruno Haible  <bruno@clisp.org>
16053
16054         * gnulib-tool (func_import): Make the sed expression used to create the
16055         sed script for updating the .gitignore file POSIX compliant.
16056         Reported by Eric Blake.
16057
16058 2009-02-27  Bruno Haible  <bruno@clisp.org>
16059
16060         * gnulib-tool (sed): Don't alias as "sed --posix".
16061         Reported by Eric Blake.
16062
16063 2009-02-27  Bruno Haible  <bruno@clisp.org>
16064
16065         Avoid test link errors.
16066         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
16067         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
16068         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
16069         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
16070         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16071
16072 2009-02-27  Bruno Haible  <bruno@clisp.org>
16073
16074         Avoid spurious "(cached)" in configure output.
16075         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
16076         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
16077         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
16078         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
16079         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
16080         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
16081         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
16082         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
16083         Reported by Eric Blake.
16084
16085 2009-02-27  Eric Blake  <ebb9@byu.net>
16086
16087         printf: fix regression in previous patch
16088         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
16089
16090 2009-02-27  Bruno Haible  <bruno@clisp.org>
16091
16092         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
16093         value.
16094         * lib/stdint.in.h: Likewise.
16095         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
16096
16097 2009-02-27  Eric Blake  <ebb9@byu.net>
16098
16099         doc: mention more functions added in cygwin 1.7.0
16100         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
16101         addition.
16102         * doc/posix-functions/open_wmemstream.texi: Likewise.
16103         * doc/posix-functions/wcsnlen.texi: Likewise.
16104         * doc/posix-functions/wcsnrtombs.texi: Likewise.
16105         * doc/posix-functions/wcstod.texi: Likewise.
16106         * doc/posix-functions/wcstof.texi: Likewise.
16107         * doc/posix-functions/wcstoimax.texi: Likewise.
16108         * doc/posix-functions/wcstok.texi: Likewise.
16109         * doc/posix-functions/wcstoumax.texi: Likewise.
16110
16111         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
16112         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
16113         * doc/posix-functions/fprintf.texi: Update.
16114         * doc/posix-functions/printf.texi: Update.
16115         * doc/posix-functions/snprintf.texi: Update.
16116         * doc/posix-functions/sprintf.texi: Update.
16117         * doc/posix-functions/vfprintf.texi: Update.
16118         * doc/posix-functions/vprintf.texi: Update.
16119         * doc/posix-functions/vsnprintf.texi: Update.
16120         * doc/posix-functions/vsprintf.texi: Update.
16121         * doc/glibc-functions/obstack_printf.texi: Update.
16122         * doc/glibc-functions/obstack_vprintf.texi: Update.
16123
16124 2009-02-26  Eric Blake  <ebb9@byu.net>
16125
16126         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
16127         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
16128         compilation bug by using runtime conversion.
16129         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
16130         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
16131         * modules/ceill-tests (Files): Use nan.h.
16132         * modules/floorl-tests (Files): Likewise.
16133         * modules/frexpl-tests (Files): Likewise.
16134         * modules/isnanl-tests (Files): Likewise.
16135         * modules/ldexpl-tests (Files): Likewise.
16136         * modules/roundl-tests (Files): Likewise.
16137         * modules/truncl-tests (Files): Likewise.
16138         * tests/test-ceill.c (main): Use a working NaN.
16139         * tests/test-floorl.c (main): Likewise.
16140         * tests/test-frexpl.c (main): Likewise.
16141         * tests/test-isnan.c (test_long_double): Likewise.
16142         * tests/test-isnanl.h (main): Likewise.
16143         * tests/test-ldexpl.h (main): Likewise.
16144         * tests/test-roundl.h (main): Likewise.
16145         * tests/test-truncl.h (main): Likewise.
16146         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
16147
16148 2009-02-26  Eric Blake  <ebb9@byu.net>
16149             Bruno Haible  <bruno@clisp.org>
16150
16151         Work around a *printf bug with %ls on Solaris.
16152         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
16153         precision is specified, sprintf stops converting the wide string
16154         argument when the number of bytes that have been produced by this
16155         conversion equals or exceeds the precision.
16156         * doc/posix-functions/fprintf.texi: Update.
16157         * doc/posix-functions/printf.texi: Update.
16158         * doc/posix-functions/snprintf.texi: Update.
16159         * doc/posix-functions/sprintf.texi: Update.
16160         * doc/posix-functions/vfprintf.texi: Update.
16161         * doc/posix-functions/vprintf.texi: Update.
16162         * doc/posix-functions/vsnprintf.texi: Update.
16163         * doc/posix-functions/vsprintf.texi: Update.
16164         * doc/glibc-functions/obstack_printf.texi: Update.
16165         * doc/glibc-functions/obstack_vprintf.texi: Update.
16166
16167 2009-02-26  Eric Blake  <ebb9@byu.net>
16168
16169         stdlib: favor compiler check of random.h
16170         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
16171         to avoid an ObjC random.h installed by Swarm.
16172
16173 2009-02-26  Bruno Haible  <bruno@clisp.org>
16174
16175         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
16176         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
16177         Reported by Gary V. Vaughan <gary@gnu.org>.
16178
16179 2009-02-26  Bruno Haible  <bruno@clisp.org>
16180
16181         Fix *printf behaviour regarding the %ls directive.
16182         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
16183         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
16184         NEED_PRINTF_DIRECTIVE_LS.
16185         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
16186         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
16187         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
16188         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
16189         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
16190         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
16191         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
16192         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
16193         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
16194         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
16195         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
16196         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
16197         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
16198         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
16199         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
16200         * doc/posix-functions/fprintf.texi: Update.
16201         * doc/posix-functions/printf.texi: Update.
16202         * doc/posix-functions/snprintf.texi: Update.
16203         * doc/posix-functions/sprintf.texi: Update.
16204         * doc/posix-functions/vfprintf.texi: Update.
16205         * doc/posix-functions/vprintf.texi: Update.
16206         * doc/posix-functions/vsnprintf.texi: Update.
16207         * doc/posix-functions/vsprintf.texi: Update.
16208         * doc/glibc-functions/obstack_printf.texi: Update.
16209         * doc/glibc-functions/obstack_vprintf.texi: Update.
16210         Reported by Eric Blake.
16211
16212 2009-02-25  Bruno Haible  <bruno@clisp.org>
16213
16214         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
16215         with known value.
16216         Reported by Gary V. Vaughan <gary@gnu.org>.
16217
16218 2009-02-25  Bruno Haible  <bruno@clisp.org>
16219
16220         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
16221         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
16222         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
16223         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
16224         Reported by Gary V. Vaughan <gary@gnu.org>.
16225
16226 2009-02-25  Bruno Haible  <bruno@clisp.org>
16227
16228         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
16229         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
16230         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
16231         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
16232         Reported by Gary V. Vaughan <gary@gnu.org>.
16233
16234 2009-02-25  Eric Blake  <ebb9@byu.net>
16235
16236         tests: skip fseek/ftell tests if ungetc is broken
16237         * m4/ungetc.m4: New file.
16238         * modules/fseek-tests: Split test, so ungetc dependency is
16239         separate from rest of test.
16240         * modules/fseeko-tests: Likewise.
16241         * modules/ftell-tests: Likewise.
16242         * modules/ftello-tests: Likewise.
16243         * tests/test-fseek.c (main): Isolate ungetc dependency.
16244         * tests/test-fseeko.c (main): Likewise.
16245         * tests/test-ftell.c (main): Likewise.
16246         * tests/test-ftello.c (main): Likewise.
16247         * tests/test-fseek2.sh: New file.
16248         * tests/test-fseeko2.sh: Likewise.
16249         * tests/test-ftell2.sh: Likewise.
16250         * tests/test-ftello2.sh: Likewise.
16251
16252 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
16253
16254         test-getaddrinfo: fix usage of skip return code 77
16255         * tests/test-gettaddrinfo.c: Return skip code 77 only
16256         for first occurance of skip (4x77 is not 77)
16257
16258 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
16259
16260         strtod: avoid C99 decl-after-statement
16261         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
16262
16263 2009-02-24  Eric Blake  <ebb9@byu.net>
16264
16265         strtod: detect HP-UX 11.31 bug
16266         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
16267         Reported by Gary V. Vaughan.
16268
16269 2009-02-23  Bruno Haible  <bruno@clisp.org>
16270
16271         Fix invalid read past end of memory block.
16272         * lib/vasnprintf.c (DCHAR_SET): Define.
16273         (local_wcslen): Define only when needed.
16274         (local_strnlen, local_wcsnlen): New functions.
16275         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
16276         directives that involve a conversion ourselves.
16277         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
16278         wcsnlen, mbrtowc, wcrtomb.
16279         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
16280         * tests/test-vasprintf-posix.c (test_function): Likewise.
16281         * tests/test-snprintf-posix.h (test_function): Likewise.
16282         * tests/test-sprintf-posix.h (test_function): Likewise.
16283         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16284
16285 2009-02-22  Bruno Haible  <bruno@clisp.org>
16286
16287         Implement new clarified decomposition of Hangul syllables.
16288         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
16289         of type LTV, return only a pairwise decomposition.
16290         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
16291         Likewise.
16292         * tests/uninorm/test-decomposition.c (main): Updated expected result.
16293         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
16294         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
16295
16296 2009-02-22  Bruno Haible  <bruno@clisp.org>
16297
16298         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
16299         zero-length results and shrink excess allocated memory.
16300         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
16301         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
16302         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
16303         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
16304         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
16305         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
16306         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
16307         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
16308         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
16309         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
16310         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
16311         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
16312
16313 2009-02-21  Bruno Haible  <bruno@clisp.org>
16314
16315         * doc/gnulib.texi: Include safe-alloc.texi earlier.
16316         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
16317         spaces after a period. Put a space between a macro name and its
16318         argument list. Trivial rewordings.
16319         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
16320         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
16321         (main): Return 0 explicitly.
16322
16323 2009-02-21  Bruno Haible  <bruno@clisp.org>
16324
16325         Tests for module 'uninorm/filter'.
16326         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
16327         * modules/uninorm/filter-tests: New file.
16328
16329         New module 'uninorm/filter'.
16330         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
16331         uninorm_filter_flush, uninorm_filter_free): New declarations.
16332         * lib/uninorm/uninorm-filter.c: New file.
16333         * modules/uninorm/filter: New file.
16334
16335 2009-02-21  Bruno Haible  <bruno@clisp.org>
16336
16337         Tests for module 'uninorm/nfkc'.
16338         * tests/uninorm/test-nfkc.c: New file.
16339         * tests/uninorm/test-u8-nfkc.c: New file.
16340         * tests/uninorm/test-u16-nfkc.c: New file.
16341         * tests/uninorm/test-u32-nfkc.c: New file.
16342         * tests/uninorm/test-u32-nfkc-big.sh: New file.
16343         * tests/uninorm/test-u32-nfkc-big.c: New file.
16344         * modules/uninorm/nfkc-tests: New file.
16345
16346         New module 'uninorm/nfkc'.
16347         * lib/uninorm/nfkc.c: New file.
16348         * modules/uninorm/nfkc: New file.
16349
16350         Tests for module 'uninorm/nfkd'.
16351         * tests/uninorm/test-nfkd.c: New file.
16352         * tests/uninorm/test-u8-nfkd.c: New file.
16353         * tests/uninorm/test-u16-nfkd.c: New file.
16354         * tests/uninorm/test-u32-nfkd.c: New file.
16355         * tests/uninorm/test-u32-nfkd-big.sh: New file.
16356         * tests/uninorm/test-u32-nfkd-big.c: New file.
16357         * modules/uninorm/nfkd-tests: New file.
16358
16359         New module 'uninorm/nfkd'.
16360         * lib/uninorm/nfkd.c: New file.
16361         * modules/uninorm/nfkd: New file.
16362
16363         Tests for module 'uninorm/nfc'.
16364         * tests/uninorm/test-nfc.c: New file.
16365         * tests/uninorm/test-u8-nfc.c: New file.
16366         * tests/uninorm/test-u16-nfc.c: New file.
16367         * tests/uninorm/test-u32-nfc.c: New file.
16368         * tests/uninorm/test-u32-nfc-big.sh: New file.
16369         * tests/uninorm/test-u32-nfc-big.c: New file.
16370         * modules/uninorm/nfc-tests: New file.
16371
16372         New module 'uninorm/nfc'.
16373         * lib/uninorm/nfc.c: New file.
16374         * modules/uninorm/nfc: New file.
16375
16376         Tests for module 'uninorm/nfd'.
16377         * tests/uninorm/test-nfd.c: New file.
16378         * tests/uninorm/test-u8-nfd.c: New file.
16379         * tests/uninorm/test-u16-nfd.c: New file.
16380         * tests/uninorm/test-u32-nfd.c: New file.
16381         * tests/uninorm/test-u32-nfd-big.sh: New file.
16382         * tests/uninorm/test-u32-nfd-big.c: New file.
16383         * tests/uninorm/test-u32-normalize-big.h: New file.
16384         * tests/uninorm/test-u32-normalize-big.c: New file.
16385         * tests/uninorm/NormalizationTest.txt: New file, created from
16386         Unicode 5.1.0 NormalizationTest.txt.
16387         * modules/uninorm/nfd-tests: New file.
16388
16389         New module 'uninorm/nfd'.
16390         * lib/uninorm/nfd.c: New file.
16391         * modules/uninorm/nfd: New file.
16392
16393         New module 'uninorm/u32-normalize'.
16394         * lib/uninorm/u32-normalize.c: New file.
16395         * modules/uninorm/u32-normalize: New file.
16396
16397         New module 'uninorm/u16-normalize'.
16398         * lib/uninorm/u16-normalize.c: New file.
16399         * modules/uninorm/u16-normalize: New file.
16400
16401         New module 'uninorm/u8-normalize'.
16402         * lib/uninorm/u8-normalize.c: New file.
16403         * lib/uninorm/normalize-internal.h: New file.
16404         * lib/uninorm/u-normalize-internal.h: New file.
16405         * modules/uninorm/u8-normalize: New file.
16406
16407         New module 'uninorm/decompose-internal'.
16408         * lib/uninorm/decompose-internal.c: New file.
16409         * modules/uninorm/decompose-internal: New file.
16410
16411         Tests for module 'uninorm/composition'.
16412         * tests/uninorm/test-composition.c: New file.
16413         * modules/uninorm/composition-tests: New file.
16414
16415         New module 'uninorm/composition'.
16416         * lib/uninorm/composition.c: New file.
16417         * lib/uninorm/composition-table.gperf: New file, generated by
16418         gen-uni-tables.
16419         * modules/uninorm/composition: New file.
16420
16421         Tests for module 'uninorm/compat-decomposition'.
16422         * tests/uninorm/test-compat-decomposition.c: New file.
16423         * modules/uninorm/compat-decomposition-tests: New file.
16424
16425         New module 'uninorm/compat-decomposition'.
16426         * lib/uninorm/decompose-internal.h: New file.
16427         * lib/uninorm/compat-decomposition.c: New file.
16428         * modules/uninorm/compat-decomposition: New file.
16429
16430         Tests for module 'uninorm/canonical-decomposition'.
16431         * tests/uninorm/test-canonical-decomposition.c: New file.
16432         * modules/uninorm/canonical-decomposition-tests: New file.
16433
16434         New module 'uninorm/canonical-decomposition'.
16435         * lib/uninorm/canonical-decomposition.c: New file.
16436         * modules/uninorm/canonical-decomposition: New file.
16437
16438         Tests for module 'uninorm/decomposition'.
16439         * tests/uninorm/test-decomposition.c: New file.
16440         * modules/uninorm/decomposition-tests: New file.
16441
16442         New module 'uninorm/decomposition'.
16443         * lib/uninorm/decomposition.c: New file.
16444         * modules/uninorm/decomposition: New file.
16445
16446         New module 'uninorm/decomposition-table'.
16447         * lib/uninorm/decomposition-table.h: New file.
16448         * lib/uninorm/decomposition-table.c: New file.
16449         * lib/uninorm/decomposition-table1.h: New file, generated by
16450         gen-uni-tables.
16451         * lib/uninorm/decomposition-table2.h: New file, generated by
16452         gen-uni-tables.
16453         * modules/uninorm/decomposition-table: New file.
16454
16455         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
16456         (UC_DECOMP_*): New enumeration items.
16457         (get_decomposition): New function.
16458         (struct decomp_table): New type.
16459         (output_decomposition, output_decomposition_tables): New functions.
16460         (unicode_composition_exclusions): New variable.
16461         (fill_composition_exclusions, debug_output_composition_tables): New
16462         functions.
16463         (main): Accept one more argument. Invoke fill_composition_exclusions.
16464         Output decomposition and composition tables.
16465
16466         New module 'uninorm/base'.
16467         * lib/uninorm.h: New file.
16468         * lib/unictype.h: Update comment.
16469         * modules/uninorm/base: New file.
16470
16471 2009-02-21  David Lutterkort  <lutter@redhat.com>
16472
16473         Tests for module 'safe-alloc'.
16474         * tests/test-safe-alloc.c: New file.
16475         * modules/safe-alloc-tests: New file.
16476
16477         New module 'safe-alloc'.
16478         * lib/safe-alloc.h: New file.
16479         * lib/safe-alloc.c: New file.
16480         * m4/safe-alloc.m4: New file.
16481         * modules/safe-alloc: New file.
16482         * doc/safe-alloc.texi: New file.
16483         * doc/gnulib.texi: Include it.
16484         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
16485         safe-alloc.
16486
16487 2009-02-18  Bruno Haible  <bruno@clisp.org>
16488
16489         Fix link error on non-glibc systems.
16490         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
16491         variable.
16492         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16493
16494 2009-02-18  Jim Meyering  <meyering@redhat.com>
16495
16496         fts: avoid used-uninitialized error due to recent change
16497         * lib/fts.c (fts_read): Guard uses of the new member,
16498         parent->fts_n_dirs_remaining, since it's not relevant for
16499         the parent of a directory specified on the command-line.
16500
16501 2009-02-17  James Youngman  <jay@gnu.org>
16502             Bruno Haible  <bruno@clisp.org>
16503
16504         * m4/include_next.m4: Reformulate comment.
16505
16506 2009-02-16  Jim Meyering  <meyering@redhat.com>
16507
16508         fts: add #if guards so that the fts_lgpl module still builds
16509         * lib/fts.c: Guard just-added hash-table-using parts with
16510         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
16511         Reported by Simon Josefsson.
16512
16513 2009-02-15  Bruno Haible  <bruno@clisp.org>
16514
16515         * modules/array-mergesort-tests: New file.
16516         * tests/test-array-mergesort.c: New file.
16517
16518         New module 'array-mergesort'.
16519         * modules/array-mergesort: New file.
16520         * lib/array-mergesort.h: New file.
16521
16522 2009-02-15  Bruno Haible  <bruno@clisp.org>
16523
16524         Fix 2009-02-07 commit.
16525         * lib/gen-uni-tables.c (output_predicate, output_category,
16526         output_combclass, output_bidi_category, output_decimal_digit,
16527         output_digit, output_numeric, output_mirror, output_scripts,
16528         output_ident_category, output_simple_mapping): Fix format directives.
16529         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
16530
16531 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
16532
16533         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
16534         fixes are available from IBM.
16535
16536 2009-02-13  Jim Meyering  <meyering@redhat.com>
16537
16538         fts: arrange not to stat non-directories in more cases
16539         This makes GNU find (when it doesn't need to stat each file)
16540         *much* more efficient at traversing reiserfs file systems.
16541         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
16542         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
16543         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
16544         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
16545         (leaf_optimization_applies): New function.
16546         (LCO_hash, LCO_compare): New helper functions.
16547         (link_count_optimize_ok): New function.
16548         (fts_stat): Initialize new member (if dir).
16549         (fts_read): Decrement parent's fts_n_dirs_remaining count if
16550         we've just stat'ed a directory.  Skip the stat call when possible.
16551         ---
16552         Note this AFS-related exchange:
16553         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
16554         and note find's pioctl call in find/fstype.c.
16555         But that is necessary only if you want to enable the
16556         optimization for AFS, and for now, I don't.
16557
16558         fts: move a function definition "up" (no semantic change)
16559         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
16560         "up" to precede upcoming use of a related function.
16561
16562 2009-02-11  Jim Meyering  <meyering@redhat.com>
16563
16564         fts: correct internal computation of nlinks (optimization-related)
16565         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
16566         whether the current entry is a directory, so don't test it.
16567
16568 2009-02-10  Bruno Haible  <bruno@clisp.org>
16569
16570         Tests for module 'uniwbrk/ulc-wordbreaks'.
16571         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
16572         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
16573         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
16574
16575         Tests for module 'uniwbrk/u32-wordbreaks'.
16576         * modules/uniwbrk/u32-wordbreaks-tests: New file.
16577         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
16578
16579         Tests for module 'uniwbrk/u16-wordbreaks'.
16580         * modules/uniwbrk/u16-wordbreaks-tests: New file.
16581         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
16582
16583         Tests for module 'uniwbrk/u8-wordbreaks'.
16584         * modules/uniwbrk/u8-wordbreaks-tests: New file.
16585         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
16586
16587 2009-02-10  Bruno Haible  <bruno@clisp.org>
16588
16589         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
16590         property.
16591         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
16592         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
16593         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
16594
16595 2009-02-10  Simon Josefsson  <simon@josefsson.org>
16596
16597         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
16598         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
16599
16600 2009-02-10  Bruno Haible  <bruno@clisp.org>
16601
16602         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
16603         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
16604         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
16605         * lib/unilbrk/u8-possible-linebreaks.c: Update.
16606         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
16607         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
16608
16609 2009-02-09  Simon Josefsson  <simon@josefsson.org>
16610
16611         * lib/sockets.h (gl_fd_to_handle): New function.
16612
16613         * tests/test-sockets.c: Call gl_fd_to_handle.
16614
16615 2009-02-09  Bruno Haible  <bruno@clisp.org>
16616
16617         * doc/havelib.texi: Document the conventions on bi-arch systems.
16618
16619 2009-02-08  Bruno Haible  <bruno@clisp.org>
16620
16621         Document the AC_LIB_LINKFLAGS macro.
16622         * doc/havelib.texi: New file, mostly written on 2005-05-24.
16623         * doc/gnulib.texi: Include it.
16624
16625 2009-02-08  Bruno Haible  <bruno@clisp.org>
16626
16627         Fix wrong order of sections, compared to TOC.
16628         * doc/gnulib.texi: Include relocatable-maint.texi after the
16629         "Regular expressions" node, not before.
16630
16631 2009-02-08  Bruno Haible  <bruno@clisp.org>
16632
16633         Tests for module 'unicase/totitle'.
16634         * modules/unicase/totitle-tests: New file.
16635
16636         Tests for module 'unicase/tolower'.
16637         * modules/unicase/tolower-tests: New file.
16638
16639         Tests for module 'unicase/toupper'.
16640         * modules/unicase/toupper-tests: New file.
16641         * tests/unicase/test-mapping-part1.h: New file.
16642         * tests/unicase/test-mapping-part2.h: New file.
16643
16644         New module 'unicase/totitle'.
16645         * modules/unicase/totitle: New file.
16646         * lib/unicase/totitle.c: New file.
16647
16648         New module 'unicase/tolower'.
16649         * modules/unicase/tolower: New file.
16650         * lib/unicase/tolower.c: New file.
16651
16652         New module 'unicase/toupper'.
16653         * modules/unicase/toupper: New file.
16654         * lib/unicase/toupper.c: New file.
16655         * lib/unicase/simple-mapping.h: New file.
16656
16657         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
16658         (mapping_table): New structure.
16659         (output_simple_mapping): New function.
16660         (main): Invoke output_simple_mapping_test and output_simple_mapping.
16661         * modules/gen-uni-tables (Description): Update.
16662         * lib/unicase/toupper.h: New file, automatically generated by
16663         gen-uni-tables.
16664         * lib/unicase/tolower.h: New file, automatically generated by
16665         gen-uni-tables.
16666         * lib/unicase/totitle.h: New file, automatically generated by
16667         gen-uni-tables.
16668         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
16669         gen-uni-tables.
16670         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
16671         gen-uni-tables.
16672         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
16673         gen-uni-tables.
16674
16675         New module 'unicase/base'.
16676         * modules/unicase/base: New file.
16677         * lib/unicase.h: New file.
16678
16679 2009-02-08  Bruno Haible  <bruno@clisp.org>
16680
16681         New module 'uniwbrk/ulc-wordbreaks'.
16682         * modules/uniwbrk/ulc-wordbreaks: New file.
16683         * lib/uniwbrk/ulc-wordbreaks.c: New file.
16684
16685         New module 'uniwbrk/u32-wordbreaks'.
16686         * modules/uniwbrk/u32-wordbreaks: New file.
16687         * lib/uniwbrk/u32-wordbreaks.c: New file.
16688
16689         New module 'uniwbrk/u16-wordbreaks'.
16690         * modules/uniwbrk/u16-wordbreaks: New file.
16691         * lib/uniwbrk/u16-wordbreaks.c: New file.
16692
16693         New module 'uniwbrk/u8-wordbreaks'.
16694         * modules/uniwbrk/u8-wordbreaks: New file.
16695         * lib/uniwbrk/u8-wordbreaks.c: New file.
16696         * lib/uniwbrk/u-wordbreaks.h: New file.
16697
16698         New module 'uniwbrk/table'.
16699         * modules/uniwbrk/table: New file.
16700         * lib/uniwbrk/wbrktable.h: New file.
16701         * lib/uniwbrk/wbrktable.c: New file.
16702
16703         New module 'uniwbrk/wordbreak-property'.
16704         * modules/uniwbrk/wordbreak-property: New file.
16705         * lib/uniwbrk/wordbreak-property.c: New file.
16706
16707         * lib/gen-uni-tables.c (WBP_*): New enum items.
16708         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
16709         (unicode_org_wbp): New variable.
16710         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
16711         New functions.
16712         (wbp_table): New structure.
16713         (output_wbp, output_wbrk_tables): New functions.
16714         (main): Accept additional argument. Invoke fill_org_wbp,
16715         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
16716         output_wbrk_tables.
16717         * modules/gen-uni-tables (Description): Update.
16718         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
16719         gen-uni-tables.
16720
16721         New module 'uniwbrk/base'.
16722         * modules/uniwbrk/base: New file.
16723         * lib/uniwbrk.h: New file.
16724
16725 2009-02-08  Bruno Haible  <bruno@clisp.org>
16726
16727         Update to Unicode 5.1.0.
16728         * lib/gen-uni-tables.c (is_property_alphabetic): Include
16729         U+2185..U+2188.
16730         (is_property_default_ignorable_code_point): Don't include characters
16731         of category Cc or Cs and not-a-characters.
16732         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
16733         U+0D79, U+109E, U+109F, U+A60C.
16734         * lib/unictype/bidi_of.h: Regenerated.
16735         * lib/unictype/blocks.h: Regenerated.
16736         * lib/unictype/categ_C.h: Regenerated.
16737         * lib/unictype/categ_Cf.h: Regenerated.
16738         * lib/unictype/categ_Cn.h: Regenerated.
16739         * lib/unictype/categ_L.h: Regenerated.
16740         * lib/unictype/categ_Ll.h: Regenerated.
16741         * lib/unictype/categ_Lm.h: Regenerated.
16742         * lib/unictype/categ_Lo.h: Regenerated.
16743         * lib/unictype/categ_Lu.h: Regenerated.
16744         * lib/unictype/categ_M.h: Regenerated.
16745         * lib/unictype/categ_Mc.h: Regenerated.
16746         * lib/unictype/categ_Me.h: Regenerated.
16747         * lib/unictype/categ_Mn.h: Regenerated.
16748         * lib/unictype/categ_N.h: Regenerated.
16749         * lib/unictype/categ_Nd.h: Regenerated.
16750         * lib/unictype/categ_Nl.h: Regenerated.
16751         * lib/unictype/categ_No.h: Regenerated.
16752         * lib/unictype/categ_P.h: Regenerated.
16753         * lib/unictype/categ_Pd.h: Regenerated.
16754         * lib/unictype/categ_Pe.h: Regenerated.
16755         * lib/unictype/categ_Pf.h: Regenerated.
16756         * lib/unictype/categ_Pi.h: Regenerated.
16757         * lib/unictype/categ_Po.h: Regenerated.
16758         * lib/unictype/categ_Ps.h: Regenerated.
16759         * lib/unictype/categ_S.h: Regenerated.
16760         * lib/unictype/categ_Sk.h: Regenerated.
16761         * lib/unictype/categ_Sm.h: Regenerated.
16762         * lib/unictype/categ_So.h: Regenerated.
16763         * lib/unictype/categ_of.h: Regenerated.
16764         * lib/unictype/combining.h: Regenerated.
16765         * lib/unictype/ctype_alnum.h: Regenerated.
16766         * lib/unictype/ctype_alpha.h: Regenerated.
16767         * lib/unictype/ctype_graph.h: Regenerated.
16768         * lib/unictype/ctype_lower.h: Regenerated.
16769         * lib/unictype/ctype_print.h: Regenerated.
16770         * lib/unictype/ctype_punct.h: Regenerated.
16771         * lib/unictype/ctype_upper.h: Regenerated.
16772         * lib/unictype/decdigit.h: Regenerated.
16773         * lib/unictype/digit.h: Regenerated.
16774         * lib/unictype/mirror.h: Regenerated.
16775         * lib/unictype/numeric.h: Regenerated.
16776         * lib/unictype/pr_alphabetic.h: Regenerated.
16777         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
16778         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
16779         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
16780         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
16781         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
16782         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
16783         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
16784         * lib/unictype/pr_combining.h: Regenerated.
16785         * lib/unictype/pr_dash.h: Regenerated.
16786         * lib/unictype/pr_decimal_digit.h: Regenerated.
16787         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
16788         * lib/unictype/pr_deprecated.h: Regenerated.
16789         * lib/unictype/pr_diacritic.h: Regenerated.
16790         * lib/unictype/pr_extender.h: Regenerated.
16791         * lib/unictype/pr_format_control.h: Regenerated.
16792         * lib/unictype/pr_grapheme_base.h: Regenerated.
16793         * lib/unictype/pr_grapheme_extend.h: Regenerated.
16794         * lib/unictype/pr_grapheme_link.h: Regenerated.
16795         * lib/unictype/pr_id_continue.h: Regenerated.
16796         * lib/unictype/pr_id_start.h: Regenerated.
16797         * lib/unictype/pr_ideographic.h: Regenerated.
16798         * lib/unictype/pr_ignorable_control.h: Regenerated.
16799         * lib/unictype/pr_lowercase.h: Regenerated.
16800         * lib/unictype/pr_math.h: Regenerated.
16801         * lib/unictype/pr_numeric.h: Regenerated.
16802         * lib/unictype/pr_other_alphabetic.h: Regenerated.
16803         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
16804         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
16805         * lib/unictype/pr_other_id_continue.h: Regenerated.
16806         * lib/unictype/pr_other_lowercase.h: Regenerated.
16807         * lib/unictype/pr_other_math.h: Regenerated.
16808         * lib/unictype/pr_punctuation.h: Regenerated.
16809         * lib/unictype/pr_sentence_terminal.h: Regenerated.
16810         * lib/unictype/pr_soft_dotted.h: Regenerated.
16811         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
16812         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
16813         * lib/unictype/pr_unified_ideograph.h: Regenerated.
16814         * lib/unictype/pr_uppercase.h: Regenerated.
16815         * lib/unictype/pr_xid_continue.h: Regenerated.
16816         * lib/unictype/pr_xid_start.h: Regenerated.
16817         * lib/unictype/pr_zero_width.h: Regenerated.
16818         * lib/unictype/scripts.h: Regenerated.
16819         * lib/unictype/scripts_byname.gperf: Regenerated.
16820         * lib/unictype/sy_java_ident.h: Regenerated.
16821         * lib/unilbrk/lbrkprop1.h: Regenerated.
16822         * lib/unilbrk/lbrkprop2.h: Regenerated.
16823         * tests/unictype/test-categ_C.c: Regenerated.
16824         * tests/unictype/test-categ_Cf.c: Regenerated.
16825         * tests/unictype/test-categ_Cn.c: Regenerated.
16826         * tests/unictype/test-categ_L.c: Regenerated.
16827         * tests/unictype/test-categ_Ll.c: Regenerated.
16828         * tests/unictype/test-categ_Lm.c: Regenerated.
16829         * tests/unictype/test-categ_Lo.c: Regenerated.
16830         * tests/unictype/test-categ_Lu.c: Regenerated.
16831         * tests/unictype/test-categ_M.c: Regenerated.
16832         * tests/unictype/test-categ_Mc.c: Regenerated.
16833         * tests/unictype/test-categ_Me.c: Regenerated.
16834         * tests/unictype/test-categ_Mn.c: Regenerated.
16835         * tests/unictype/test-categ_N.c: Regenerated.
16836         * tests/unictype/test-categ_Nd.c: Regenerated.
16837         * tests/unictype/test-categ_Nl.c: Regenerated.
16838         * tests/unictype/test-categ_No.c: Regenerated.
16839         * tests/unictype/test-categ_P.c: Regenerated.
16840         * tests/unictype/test-categ_Pd.c: Regenerated.
16841         * tests/unictype/test-categ_Pe.c: Regenerated.
16842         * tests/unictype/test-categ_Pf.c: Regenerated.
16843         * tests/unictype/test-categ_Pi.c: Regenerated.
16844         * tests/unictype/test-categ_Po.c: Regenerated.
16845         * tests/unictype/test-categ_Ps.c: Regenerated.
16846         * tests/unictype/test-categ_S.c: Regenerated.
16847         * tests/unictype/test-categ_Sk.c: Regenerated.
16848         * tests/unictype/test-categ_Sm.c: Regenerated.
16849         * tests/unictype/test-categ_So.c: Regenerated.
16850         * tests/unictype/test-ctype_alnum.c: Regenerated.
16851         * tests/unictype/test-ctype_alpha.c: Regenerated.
16852         * tests/unictype/test-ctype_graph.c: Regenerated.
16853         * tests/unictype/test-ctype_lower.c: Regenerated.
16854         * tests/unictype/test-ctype_print.c: Regenerated.
16855         * tests/unictype/test-ctype_punct.c: Regenerated.
16856         * tests/unictype/test-ctype_upper.c: Regenerated.
16857         * tests/unictype/test-decdigit.h: Regenerated.
16858         * tests/unictype/test-digit.h: Regenerated.
16859         * tests/unictype/test-numeric.h: Regenerated.
16860         * tests/unictype/test-pr_alphabetic.c: Regenerated.
16861         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
16862         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
16863         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
16864         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
16865         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
16866         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
16867         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
16868         * tests/unictype/test-pr_combining.c: Regenerated.
16869         * tests/unictype/test-pr_dash.c: Regenerated.
16870         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
16871         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
16872         * tests/unictype/test-pr_deprecated.c: Regenerated.
16873         * tests/unictype/test-pr_diacritic.c: Regenerated.
16874         * tests/unictype/test-pr_extender.c: Regenerated.
16875         * tests/unictype/test-pr_format_control.c: Regenerated.
16876         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
16877         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
16878         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
16879         * tests/unictype/test-pr_id_continue.c: Regenerated.
16880         * tests/unictype/test-pr_id_start.c: Regenerated.
16881         * tests/unictype/test-pr_ideographic.c: Regenerated.
16882         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
16883         * tests/unictype/test-pr_lowercase.c: Regenerated.
16884         * tests/unictype/test-pr_math.c: Regenerated.
16885         * tests/unictype/test-pr_numeric.c: Regenerated.
16886         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
16887         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
16888         Regenerated.
16889         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
16890         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
16891         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
16892         * tests/unictype/test-pr_other_math.c: Regenerated.
16893         * tests/unictype/test-pr_punctuation.c: Regenerated.
16894         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
16895         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
16896         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
16897         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
16898         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
16899         * tests/unictype/test-pr_uppercase.c: Regenerated.
16900         * tests/unictype/test-pr_xid_continue.c: Regenerated.
16901         * tests/unictype/test-pr_xid_start.c: Regenerated.
16902         * tests/unictype/test-pr_zero_width.c: Regenerated.
16903
16904         Update to Unicode 5.1.0.
16905         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
16906         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
16907         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
16908         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
16909         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
16910         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
16911         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
16912         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
16913         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
16914         (nonspacing_table_ind): Update.
16915         * tests/uniwidth/test-uc_width2.sh: Update expected result.
16916
16917         Update to Unicode 5.1.0.
16918         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
16919         code transform.
16920         * lib/uniname/uniname.c (unicode_character_name,
16921         unicode_name_character): Add the range 0x1Fxxx to the code transform.
16922         * lib/uniname/uninames.h: Regenerated.
16923         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
16924
16925 2009-02-07  Bruno Haible  <bruno@clisp.org>
16926
16927         Merge gen-ctype and gen-lbrk into a single program.
16928         * lib/gen-uni-tables.c: New file, incorporating
16929         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
16930         Add directory prefixes to the names of the generated files.
16931         * lib/unictype/gen-ctype.c: Remove file.
16932         * lib/unilbrk/gen-lbrk.c: Remove file.
16933         * modules/gen-uni-tables: New file.
16934         * modules/unictype/gen-ctype: Remove file.
16935         * modules/unilbrk/gen-lbrk: Remove file.
16936
16937 2009-02-07  Bruno Haible  <bruno@clisp.org>
16938
16939         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
16940
16941         New module 'unistr/u32-strcoll'.
16942         * modules/unistr/u32-strcoll: New file.
16943         * lib/unistr/u32-strcoll.c: New file.
16944
16945         New module 'unistr/u16-strcoll'.
16946         * modules/unistr/u16-strcoll: New file.
16947         * lib/unistr/u16-strcoll.c: New file.
16948
16949         New module 'unistr/u8-strcoll'.
16950         * modules/unistr/u8-strcoll: New file.
16951         * lib/unistr/u8-strcoll.c: New file.
16952         * lib/unistr/u-strcoll.h: New file.
16953
16954 2009-02-07  Bruno Haible  <bruno@clisp.org>
16955
16956         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
16957         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
16958         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
16959         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
16960         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
16961         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
16962
16963 2009-02-07  Bruno Haible  <bruno@clisp.org>
16964
16965         Make 64-bit clean.
16966         * lib/unictype/gen-ctype.c (output_predicate, output_category,
16967         output_combclass, output_bidi_category, output_decimal_digit,
16968         output_digit, output_numeric, output_mirror, output_scripts,
16969         output_ident_category): Use proper width specifier in format strings.
16970
16971 2009-02-07  Bruno Haible  <bruno@clisp.org>
16972
16973         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
16974         failure behaviour.
16975
16976 2009-02-07  Jim Meyering  <meyering@redhat.com>
16977
16978         regex: avoid compilation failure with upcoming gcc-4.4
16979         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
16980         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
16981         "... error: integer overflow in preprocessor expression".
16982
16983 2009-02-05  Ben Pfaff  <blp@gnu.org>
16984
16985         Fix link errors on Windows when close module is used.
16986         * modules/close: Add $(LIB_CLOSE) to Link section.
16987         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
16988         $(LIB_CLOSE) on Windows.
16989
16990 2009-02-05  Jim Meyering  <meyering@redhat.com>
16991
16992         still avoid unused-parameter warnings, but do it cleanly
16993         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
16994         (get_fs_usage): Cast to void instead.
16995         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
16996         (dev_from_mount_options, read_file_system_list): Cast to void.
16997         Prompted by Bruno Haible.
16998
16999 2009-02-04  Jim Meyering  <meyering@redhat.com>
17000
17001         fsusage.c: correct copyright year
17002         * lib/fsusage.c: Reflect year in which the change is pushed into
17003
17004         avoid misc. warnings
17005         * lib/fsusage.c (UNUSED_PARAM): Define.
17006         (get_fs_usage): Mark parameter "disk" as unused.
17007         * lib/getugroups.c (getgrent): Use "void" in prototype.
17008         * lib/mountlist.c: Mark unused parameters.
17009         (read_file_system_list): Declare a local with "const".
17010         * lib/nanosleep.c (getnow): Declare static.
17011         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
17012
17013         dirfd: set errno upon failure
17014         * lib/dirfd.c: Include <errno.h>.
17015         Set errno to ENOTSUP when returning -1.
17016         * modules/dirfd (Depends-on): Add errno.
17017         Suggested by John Kodis <kodis@comcast.net>.
17018
17019 2009-02-01  Bruno Haible  <bruno@clisp.org>
17020
17021         Don't assume sizeof (long) >= sizeof (void *).
17022         * lib/memcmp.c: Include stdint.h.
17023         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
17024         srcp2 to 'const byte *'.
17025         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
17026         types to uintptr_t.
17027         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
17028         * modules/memcmp (Depends-on): Add stdint.
17029         Reported by Ozkan Sezer <sezeroz@gmail.com>.
17030
17031 2009-01-30  Eric Blake  <ebb9@byu.net>
17032
17033         fix more require-before-expand issues
17034         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
17035         expand, AC_PROG_AWK.
17036         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
17037
17038 2009-01-28  Eric Blake  <ebb9@byu.net>
17039
17040         version-etc: use consistent URL formatting
17041         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
17042         Improve formatting.  Use fputs for string without %.
17043
17044 2009-01-28  Jim Meyering  <meyering@redhat.com>
17045
17046         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
17047         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
17048         "underquoted definition of NAME" from autoconf-2.59.
17049
17050 2009-01-28  Bruno Haible  <bruno@clisp.org>
17051
17052         * doc/gnulib.texi: Add "Obsolete modules" to index.
17053
17054 2009-01-28  Jim Meyering  <meyering@redhat.com>
17055
17056         useless-if-before-free: recognize more variants
17057         * build-aux/useless-if-before-free: Also recognize e.g.,
17058         if (NULL != p) free (p);
17059
17060 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
17061
17062         test-getaddrinfo: skip (don't fail) this test when there's no network
17063         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
17064         on the presumption that it means you lack network access.
17065
17066 2009-01-26  Jim Meyering  <meyering@redhat.com>
17067
17068         fflush: avoid warnings on modern systems
17069         * lib/fflush.c (rpl_fflush): Move declarations of locals,
17070         pos and result, into scopes where they're used.
17071
17072 2009-01-26  Eric Blake  <ebb9@byu.net>
17073
17074         Silence warning reintroduced by recent extensions patch.
17075         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
17076         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
17077         autoconf.
17078
17079         Backport improved autoconf semantics of AC_DEFUN_ONCE.
17080         * m4/00gnulib.m4: New file.
17081         * gnulib-tool (func_get_filelist): Always use it.
17082         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
17083         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
17084
17085 2009-01-25  Bruno Haible  <bruno@clisp.org>
17086
17087         Make test-quotearg work on MacOS X and AIX.
17088         * tests/test-quotearg.sh: New file.
17089         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
17090         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
17091         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
17092         include <libintl.h>.
17093         (fake_locale): Remove variable.
17094         (gettext, dgettext, dcgettext): Remove functions.
17095         (main): Instead of setting a fake locale, set a real locale. Call
17096         textdomain and bindtextdomain.
17097         * modules/quotearg-tests (Files): Add the new files.
17098         (Depends-on): Add gettext, setenv, unsetenv.
17099         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
17100         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
17101         Augment TESTS_ENVIRONMENT.
17102
17103 2009-01-25  Bruno Haible  <bruno@clisp.org>
17104
17105         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
17106         fr_FR.ISO8859-1 locale on MacOS X.
17107         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
17108         ja_JP.eucJP locale on MacOS X.
17109         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
17110         zh_CN.GB18030 locale on MacOS X.
17111
17112 2009-01-25  Bruno Haible  <bruno@clisp.org>
17113
17114         Avoid link errors on MacOS X 10.3.
17115         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
17116         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
17117
17118 2009-01-25  Bruno Haible  <bruno@clisp.org>
17119
17120         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
17121         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
17122         * modules/pipe (Files): Remove m4/posix_spawn.m4.
17123         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
17124         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
17125         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
17126         posix_spawnattr_init, posix_spawnattr_setsigmask,
17127         posix_spawnattr_setflags, posix_spawnattr_destroy.
17128
17129         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
17130         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
17131         * modules/execute (Files): Remove m4/posix_spawn.m4.
17132         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
17133         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
17134         posix_spawnattr_init, posix_spawnattr_setsigmask,
17135         posix_spawnattr_setflags, posix_spawnattr_destroy.
17136
17137 2009-01-25  Bruno Haible  <bruno@clisp.org>
17138
17139         * lib/glthread/threadlib.c: Include <stdlib.h>.
17140
17141 2009-01-25  Bruno Haible  <bruno@clisp.org>
17142
17143         * lib/glthread/threadlib.c (dummy): New declaration.
17144
17145 2009-01-25  Bruno Haible  <bruno@clisp.org>
17146
17147         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
17148         multibyte characters also for the GB18030 encoding. Don't crash when
17149         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
17150
17151 2009-01-25  Bruno Haible  <bruno@clisp.org>
17152
17153         Avoid redefining 'struct random_data' on OSF/1 5.1.
17154         * lib/stdlib.in.h: Include <random.h> if it exists.
17155         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
17156         HAVE_RANDOM_H. Include <random.h> when testing whether
17157         'struct random_data' exists.
17158         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
17159
17160 2009-01-25  Bruno Haible  <bruno@clisp.org>
17161
17162         Don't install charset.alias on MacOS X >= 10.3.
17163         * lib/localcharset.c (DARWIN7): New macro.
17164         (get_charset_aliases): Hardcode the result for Darwin7.
17165         * modules/localcharset (install-exec-local): Don't install
17166         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
17167
17168 2009-01-25  Bruno Haible  <bruno@clisp.org>
17169
17170         Don't install charset.alias on mingw and Cygwin.
17171         * modules/localcharset (install-exec-local): Don't install
17172         charset.alias on mingw and Cygwin, if the file does not yet exist.
17173         The result for these platforms is hardcoded in localcharset.c.
17174
17175 2009-01-25  Bruno Haible  <bruno@clisp.org>
17176
17177         Make it possible again to use AC_GNU_SOURCE together with gnulib.
17178         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
17179         before requiring AC_USE_SYSTEM_EXTENSIONS.
17180
17181 2009-01-25  Jim Meyering  <meyering@redhat.com>
17182
17183         c-strtod: avoid warnings
17184         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
17185         "assignment discards qualifiers from pointer target type" warnings.
17186
17187 2009-01-24  Bruno Haible  <bruno@clisp.org>
17188
17189         Add support for non-UTF-8 locales on MacOS X.
17190         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
17191         canonical encodings. For Darwin 7 and newer, don't map traditional
17192         encodings to UTF-8.
17193         Reported by Vincent Lefevre <vincent@vinc17.org>
17194         at <http://savannah.gnu.org/bugs/?25235>.
17195
17196 2009-01-24  Bruno Haible  <bruno@clisp.org>
17197
17198         * doc/gnulib.texi (Obsolete modules): New section.
17199         Reported by Mike Frysinger <vapier@gentoo.org>.
17200
17201 2009-01-24  Bruno Haible  <bruno@clisp.org>
17202
17203         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
17204         (%.dvi): New rule.
17205
17206 2009-01-24  Bruno Haible  <bruno@clisp.org>
17207
17208         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
17209         Reported by Eric Blake.
17210
17211 2009-01-24  Bruno Haible  <bruno@clisp.org>
17212
17213         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
17214         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
17215         Reported by Gary V. Vaughan <gary@gnu.org>.
17216
17217 2009-01-24  Bruno Haible  <bruno@clisp.org>
17218
17219         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
17220
17221 2009-01-23  Bruno Haible  <bruno@clisp.org>
17222
17223         Make c-strtod, c-strtold usable in libraries.
17224         * lib/c-strtod.c: Include string.h instead of xalloc.h.
17225         (C_STRTOD): Call strdup instead of xstrdup.
17226         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
17227         * modules/c-strtold (Depends-on): Likewise.
17228         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
17229         * NEWS: Mention the change.
17230         Reported by Michael Gold <mgold@ncf.ca>.
17231
17232 2009-01-23  Jim Meyering  <meyering@redhat.com>
17233
17234         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
17235         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
17236         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
17237
17238 2009-01-23  Simon Josefsson  <simon@josefsson.org>
17239
17240         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
17241         GNU CoreUtils.
17242         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
17243         * modules/version-etc (Description): Update.
17244
17245 2009-01-22  Bruno Haible  <bruno@clisp.org>
17246
17247         Cache the C locale object.
17248         * lib/c-strtod.c (c_locale_cache): New variable.
17249         (c_locale): New function.
17250         (C_STRTOD): Use it, and don't call freelocale.
17251         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
17252         Suggested by Paolo Bonzini.
17253
17254 2009-01-21  Bruno Haible  <bruno@clisp.org>
17255
17256         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
17257         conditions other than overflow.
17258
17259 2009-01-21  Bruno Haible  <bruno@clisp.org>
17260
17261         * lib/c-strtod.c: Include errno.h.
17262         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
17263         value from STRTOD_L and STRTOD.
17264
17265 2009-01-21  Bruno Haible  <bruno@clisp.org>
17266         and Jim Meyering  <meyering@redhat.com>
17267
17268         nanosleep: skip configure test (fail it) for apple universal builds
17269         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
17270         universal builds, assume that nanosleep does not work.
17271         * modules/nanosleep (Depends-on): Add multiarch.
17272
17273         mktime: skip configure test (fail it) for apple universal builds
17274         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
17275         universal builds, assume that mktime does not work.
17276         * modules/mktime (Depends-on): Add multiarch.
17277
17278 2009-01-21  Eric Blake  <ebb9@byu.net>
17279
17280         multiarch: avoid expand-before-require warning
17281         * modules/multiarch (configure.ac): Require, rather than expand,
17282         gl_MULTIARCH.
17283         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
17284         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
17285         enforce that all clients require it.  Partial reversion of
17286         2008-12-29 patch.
17287
17288         error: avoid expand-before-require warning
17289         * modules/errno (configure.ac): Require, rather than expand,
17290         gl_HEADER_ERRNO_H.
17291         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
17292         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
17293         enforce that all clients require it.
17294
17295         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
17296         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
17297         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
17298         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
17299
17300 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
17301
17302         Revert:
17303         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
17304
17305         regex: do not depend on obsolete modules.
17306         * modules/regex: Remove memcmp and memmove.
17307
17308 2009-01-20  Bruno Haible  <bruno@clisp.org>
17309
17310         Make the 'link' module link on Windows NT 4.
17311         * lib/link.c (_WIN32_WINNT): Don't define.
17312         (CreateHardLinkFuncType): New type.
17313         (CreateHardLinkFunc, initialized): New variables.
17314         (initialize): New function.
17315         (link): Invoke CreateHardLink indirectly through the function pointer.
17316
17317 2009-01-20  Bruno Haible  <bruno@clisp.org>
17318
17319         Fix compilation failure on mingw.
17320         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
17321
17322 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
17323
17324         * doc/c-strtod.texi: Mention a couple of restrictions.
17325
17326 2009-01-20  Jim Meyering  <meyering@redhat.com>
17327
17328         gettimeofday: move more declarations out of functions
17329         * lib/gettimeofday.c: Move extern declarations of tzset and
17330         gmtime out of containing functions.  Prompted by Bruno Haible.
17331
17332 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
17333
17334         regex: do not depend on obsolete modules.
17335         * modules/regex: Remove memcmp and memmove.
17336
17337 2009-01-19  Bruno Haible  <bruno@clisp.org>
17338
17339         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
17340         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
17341         gl_BIGENDIAN, not AC_C_BIGENDIAN.
17342         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
17343         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
17344
17345 2009-01-19  Bruno Haible  <bruno@clisp.org>
17346
17347         * tests/test-link.c: Include <errno.h>.
17348         (main): Exit with code 77 when a hard link cannot be created due to
17349         the file system.
17350         * tests/test-link.sh: Skip test when a hard link cannot be created due
17351         to the file system.
17352         Suggested by Eric Blake.
17353
17354 2009-01-19  Martin Lambers  <marlam@marlam.de>
17355
17356         * modules/link-tests: New file.
17357         * tests/test-link.sh: New file.
17358         * tests/test-link.c: New file.
17359
17360 2009-01-19  Eric Blake  <ebb9@byu.net>
17361
17362         doc: mention another function added in cygwin 1.7.0
17363         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
17364         Another new function in cygwin 1.7.
17365
17366 2009-01-19  Bruno Haible  <bruno@clisp.org>
17367
17368         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
17369         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
17370         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
17371         gl_BIGENDIAN, not AC_C_BIGENDIAN.
17372         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
17373         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
17374         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
17375         * m4/md4.m4 (gl_MD4): Likewise.
17376         * m4/md5.m4 (gl_MD5): Likewise.
17377         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
17378         * m4/sha1.m4 (gl_SHA1): Likewise.
17379         * m4/sha256.m4 (gl_SHA256): Likewise.
17380         * m4/sha512.m4 (gl_SHA512): Likewise.
17381
17382 2009-01-19  Bruno Haible  <bruno@clisp.org>
17383
17384         * modules/uniname/uniname-tests (Depends-on): Add progname.
17385         * tests/uniname/test-uninames.c: Include progname.h.
17386         (main): Call set_program_name.
17387
17388         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
17389         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
17390         (main): Call set_program_name.
17391
17392         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
17393         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
17394         (main): Call set_program_name.
17395
17396         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
17397         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
17398         (main): Call set_program_name.
17399
17400         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
17401         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
17402         (main): Call set_program_name.
17403
17404         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
17405         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
17406         (main): Call set_program_name.
17407
17408         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
17409         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
17410         (main): Call set_program_name.
17411
17412         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
17413         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
17414         (main): Call set_program_name.
17415
17416         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
17417         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
17418         (main): Call set_program_name.
17419
17420 2009-01-19  Eric Blake  <ebb9@byu.net>
17421
17422         test-unistd: test previous patch
17423         * tests/test-unistd.c: Test *_FILENO macros.
17424
17425         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
17426         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17427         Guarantee a definition.
17428         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
17429         * modules/unistd-safer (Depends-on): Add dependency on unistd.
17430         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
17431         * lib/dup-safer.c (STDERR_FILENO): Likewise.
17432         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17433         Likewise.
17434         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
17435         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
17436         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17437         Likewise.
17438         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
17439         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
17440         (STDERR_FILENO): Likewise.
17441         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
17442         (STDERR_FILENO): Likewise.
17443         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
17444         (STDERR_FILENO): Likewise.
17445         Reported by Elbert Pol.
17446
17447 2009-01-19  Eric Blake  <ebb9@byu.net>
17448
17449         doc: mention more functions added in cygwin 1.7.0
17450         * doc/posix-functions/abort.texi (abort): Update wording related
17451         to cygwin.
17452         * doc/posix-functions/daylight.texi (daylight): Likewise.
17453         * doc/posix-functions/optarg.texi (optarg): Likewise.
17454         * doc/posix-functions/optarg.texi (opterr): Likewise.
17455         * doc/posix-functions/optarg.texi (optind): Likewise.
17456         * doc/posix-functions/optarg.texi (optopt): Likewise.
17457         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
17458         worked in 1.5.x, and was withdrawn in 1.7.
17459         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
17460         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
17461         cygwin versions.
17462         * doc/posix-functions/perror.texi (perror): Likewise.
17463         * doc/posix-functions/printf.texi (printf): Likewise.
17464         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
17465         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
17466         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
17467         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
17468         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17469         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
17470         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
17471         Likewise.
17472         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
17473         Likewise.
17474         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
17475         this function.
17476         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
17477         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
17478         Likewise.
17479         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
17480         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
17481         * doc/posix-functions/confstr.texi (confstr): Likewise.
17482         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
17483         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
17484         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
17485         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
17486         * doc/posix-functions/fputws.texi (fputws): Likewise.
17487         * doc/posix-functions/fwide.texi (fwide): Likewise.
17488         * doc/posix-functions/getwc.texi (getwc): Likewise.
17489         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
17490         * doc/posix-functions/putwc.texi (putwc): Likewise.
17491         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
17492         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
17493         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
17494         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
17495         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
17496         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
17497         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
17498         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
17499         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
17500         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
17501         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
17502
17503 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
17504
17505         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
17506         * lib/ioctl.c: Include <sys/ioctl.h>.
17507
17508 2009-01-19  Simon Josefsson  <simon@josefsson.org>
17509
17510         * modules/getdate-tests (Depends-on): Add progname.
17511         * tests/test-getdate.c: Use progname module, to avoid link errors
17512         on non-glibc systems.
17513
17514 2009-01-18  Simon Josefsson  <simon@josefsson.org>
17515
17516         * modules/filenamecat-tests (Depends-on): Add progname.
17517         * modules/fstrcmp-tests (Depends-on): Likewise.
17518
17519         * tests/test-filenamecat.c: Use progname module, to avoid link
17520         errors on non-glibc systems.
17521         * tests/test-fstrcmp.c: Likewise.
17522
17523 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
17524
17525         gettimeofday: avoid warning: nested extern declaration of 'localtime'
17526         * lib/gettimeofday.c: Move extern declaration out of function.
17527
17528 2009-01-18  Bruno Haible  <bruno@clisp.org>
17529
17530         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
17531         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
17532         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
17533
17534 2009-01-18  Bruno Haible  <bruno@clisp.org>
17535
17536         * lib/strftime.c (MEMPCPY): Remove unused macro.
17537         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
17538
17539 2009-01-18  Martin Lambers  <marlam@marlam.de>
17540
17541         New module 'link'.
17542         * lib/unistd.in.h (link): New declaration.
17543         * lib/link.c: New file.
17544         * m4/link.m4: New file.
17545         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
17546         HAVE_LINK.
17547         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
17548         * modules/link: New file.
17549         * doc/posix-functions/link.texi: Mention the new module.
17550
17551 2009-01-18  Bruno Haible  <bruno@clisp.org>
17552
17553         * tests/test-avltree_list.c (main): Call set_program_name.
17554         * tests/test-avltree_oset.c (main): Likewise.
17555         * tests/test-obstack-printf.c: Include progname.h.
17556         (main): Call set_program_name.
17557         * tests/test-quotearg.c: Include progname.h.
17558         (main): Call set_program_name.
17559         * tests/test-xmemdup0.c: Include progname.h.
17560         (main): Call set_program_name.
17561
17562 2009-01-18  Bruno Haible  <bruno@clisp.org>
17563
17564         New module 'alphasort'.
17565         * lib/dirent.in.h (alphasort): New declaration.
17566         * lib/alphasort.c: New file, from glibc with modifications.
17567         * m4/alphasort.m4: New file.
17568         * modules/alphasort: New file.
17569         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
17570         HAVE_ALPHASORT.
17571         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
17572         HAVE_ALPHASORT.
17573         * doc/posix-functions/alphasort.texi: Mention the new module and the
17574         portability problems.
17575
17576 2009-01-18  Bruno Haible  <bruno@clisp.org>
17577
17578         New module 'scandir'.
17579         * lib/dirent.in.h (scandir): New declaration.
17580         * lib/scandir.c: New file, from glibc with modifications.
17581         * m4/scandir.m4: New file.
17582         * modules/scandir: New file.
17583         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
17584         HAVE_SCANDIR.
17585         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
17586         HAVE_SCANDIR.
17587         * doc/posix-functions/scandir.texi: Mention the new module and the
17588         portability problems.
17589
17590 2009-01-17  Bruno Haible  <bruno@clisp.org>
17591
17592         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
17593         Update documentation.
17594         (func_remove_suffix): Escape all dots in the suffix. Update
17595         documentation.
17596         (func_filter_filelist): Update documentation.
17597         Reported by Ralf Wildenhues.
17598
17599 2009-01-17  Bruno Haible  <bruno@clisp.org>
17600
17601         * modules/dprintf-posix-tests: New file.
17602         * tests/test-dprintf-posix.sh: New file.
17603         * tests/test-dprintf-posix.c: New file.
17604
17605         New modules 'dprintf', 'dprintf-posix'.
17606         * lib/stdio.in.h (dprintf): New declaration.
17607         * lib/dprintf.c: New file.
17608         * m4/dprintf.m4: New file.
17609         * m4/dprintf-posix.m4: New file.
17610         * modules/dprintf: New file.
17611         * modules/dprintf-posix: New file.
17612         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
17613         HAVE_DPRINTF, REPLACE_DPRINTF.
17614         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
17615         HAVE_DPRINTF, REPLACE_DPRINTF.
17616         * doc/posix-functions/dprintf.texi: Mention the new modules.
17617
17618 2009-01-17  Bruno Haible  <bruno@clisp.org>
17619
17620         * modules/vdprintf-posix-tests: New file.
17621         * tests/test-vdprintf-posix.sh: New file.
17622         * tests/test-vdprintf-posix.c: New file.
17623
17624         New modules 'vdprintf', 'vdprintf-posix'.
17625         * lib/stdio.in.h (vdprintf): New declaration.
17626         * lib/vdprintf.c: New file.
17627         * m4/vdprintf.m4: New file.
17628         * m4/vdprintf-posix.m4: New file.
17629         * modules/vdprintf: New file.
17630         * modules/vdprintf-posix: New file.
17631         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
17632         HAVE_VDPRINTF, REPLACE_VDPRINTF.
17633         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
17634         HAVE_VDPRINTF, REPLACE_VDPRINTF.
17635         * doc/posix-functions/vdprintf.texi: Mention the new modules.
17636
17637 2009-01-17  Bruno Haible  <bruno@clisp.org>
17638
17639         Fix replacement of fopen on mingw.
17640         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
17641         mingw.
17642
17643 2009-01-17  Bruno Haible  <bruno@clisp.org>
17644
17645         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
17646         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
17647
17648 2009-01-17  Bruno Haible  <bruno@clisp.org>
17649
17650         Avoid test-fflush2.sh failure on mingw.
17651         * tests/test-fflush2.c: Include binary-io.h.
17652         (main): Put standard input into binary mode.
17653         * modules/fflush-tests (Depends-on): Add binary-io.
17654
17655 2009-01-17  Bruno Haible  <bruno@clisp.org>
17656
17657         * lib/wchar.in.h: In another particular situation, include only the
17658         system's <wchar.h> file.
17659         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
17660         Reported by Albert Chin-A-Young <china@thewrittenword.com>
17661         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
17662
17663 2009-01-17  Bruno Haible  <bruno@clisp.org>
17664
17665         Support for stripping executables in --enable-relocatable.
17666         * build-aux/install-reloc: Expect one more argument, or an environment
17667         variable RELOC_STRIP_PROG. If set, strip the destination program and
17668         its wrapper.
17669         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
17670         RELOC_STRIP_PROG.
17671         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
17672         to set RELOCATABLE_STRIP.
17673         * NEWS: Mention the new Makefile requirement.
17674
17675 2009-01-17  Bruno Haible  <bruno@clisp.org>
17676
17677         * build-aux/install-reloc: Remove debugging information left over by
17678         C compiler on MacOS X.
17679
17680 2009-01-17  Bruno Haible  <bruno@clisp.org>
17681
17682         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
17683         * lib/progreloc.c (find_executable): Fix type of pointer passed to
17684         _NSGetExecutablePath.
17685
17686 2009-01-16  Jim Meyering  <meyering@redhat.com>
17687
17688         strerror: avoid warnings about discarding "const"
17689         * lib/strerror.c (rpl_strerror): Instead of returning a const
17690         string from each and every "case", use a variable, and add a single
17691         cast after the switch.
17692
17693 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
17694
17695         * lib/arpa_inet.in.h: Add extern "C" block for C++.
17696
17697 2009-01-16  Bruno Haible  <bruno@clisp.org>
17698
17699         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
17700         array initializer syntax that also works in C++ mode.
17701         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17702
17703 2009-01-16  Jim Meyering  <meyering@redhat.com>
17704
17705         poll: suppress a warning
17706         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
17707         to ignore "...unsigned expression < 0 is always false" warnings.
17708
17709 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
17710
17711         poll: remove declarations of unused variables
17712         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
17713         sockbuf and optlen.
17714
17715 2009-01-15  Bruno Haible  <bruno@clisp.org>
17716
17717         Make fflush-after-ungetc POSIX compliant on BSD systems.
17718         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
17719         (clear_ungetc_buffer): Implement also for other systems.
17720         (rpl_fflush): On glibc systems, invoke
17721         clear_ungetc_buffer_preserving_position. Otherwise, invoke
17722         clear_ungetc_buffer after fetching the stream's position, not before.
17723
17724 2009-01-15  Bruno Haible  <bruno@clisp.org>
17725
17726         Make fflush-after-ungetc POSIX compliant on glibc systems.
17727         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
17728         after ungetc.
17729         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
17730         (rpl_fflush): On glibc systems, simply call the system's fflush
17731         function after clearing the ungetc buffer.
17732         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
17733         Instead, lseek only to the end of file, then use the system's fseeko
17734         for the rest. On glibc systems, reset the EOF indicator bit.
17735
17736 2009-01-15  Jim Meyering  <meyering@redhat.com>
17737
17738         openmp.m4: revert quote-adding change, for portability to older autoconf
17739         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
17740         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
17741         Simon Josefsson noticed the problem when using autoconf-2.61.
17742
17743 2009-01-15  Bruno Haible  <bruno@clisp.org>
17744
17745         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
17746         * tests/test-fflush2.c (ASSERT): Always fail.
17747         (main): Add two tests for fflush() after ungetc(), taking into account
17748         the Austin Group's clarification.
17749         Suggested by Eric Blake.
17750
17751 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
17752
17753         mktime.m4: remove K&R-style function prototypes
17754         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
17755         for the Sun C++ compiler.
17756
17757 2009-01-14  Bruno Haible  <bruno@clisp.org>
17758
17759         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
17760         while including <wchar.h>.
17761         * lib/wchar.in.h: In two particular situations on HP-UX, include only
17762         the system's <wchar.h> file.
17763         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17764
17765 2009-01-14  Bruno Haible  <bruno@clisp.org>
17766
17767         * m4/csharp.m4: Don't mention gettext on the serial number line.
17768         * m4/csharpexec.m4: Likewise.
17769         * m4/eaccess.m4: Likewise.
17770         * m4/javaexec.m4: Likewise.
17771         * m4/sig_atomic_t.m4: Likewise.
17772         * m4/tmpdir.m4: Likewise.
17773         * m4/intldir.m4: Bump gettext version.
17774         * m4/lib-ld.m4: Likewise.
17775
17776 2009-01-14  Bruno Haible  <bruno@clisp.org>
17777
17778         * lib/progname.c (set_program_name): Add more comments.
17779         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
17780
17781 2009-01-14  Simon Josefsson  <simon@josefsson.org>
17782
17783         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
17784         were sys/stat.h does not define it.
17785
17786 2009-01-14  Jim Meyering  <meyering@redhat.com>
17787
17788         many *.m4 files: improve m4 quoting
17789         99% of this change was performed by running the following commands:
17790         git ls-files | grep '\.m4$' | xargs perl -pi \
17791           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
17792           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
17793           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
17794           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
17795         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
17796         The remainder were to add Copyright dates, increment serial numbers,
17797         undo some changes in comments, exclude m4/intl.m4, and add quotes
17798         around the "1" in ",1" where the unusual spacing prohibited the
17799         above regexps from doing the job.  For more details, see
17800         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
17801         * m4/acl.m4: Modified.
17802         * m4/afs.m4: Likewise.
17803         * m4/alloca.m4: Likewise.
17804         * m4/argp.m4: Likewise.
17805         * m4/argz.m4: Likewise.
17806         * m4/atexit.m4: Likewise.
17807         * m4/bison-i18n.m4: Likewise.
17808         * m4/bison.m4: Likewise.
17809         * m4/byteswap.m4: Likewise.
17810         * m4/c-stack.m4: Likewise.
17811         * m4/c-strtod.m4: Likewise.
17812         * m4/calloc.m4: Likewise.
17813         * m4/canonicalize-lgpl.m4: Likewise.
17814         * m4/chown.m4: Likewise.
17815         * m4/clock_time.m4: Likewise.
17816         * m4/codeset.m4: Likewise.
17817         * m4/copy-file.m4: Likewise.
17818         * m4/csharp.m4: Likewise.
17819         * m4/csharpcomp.m4: Likewise.
17820         * m4/csharpexec.m4: Likewise.
17821         * m4/d-ino.m4: Likewise.
17822         * m4/d-type.m4: Likewise.
17823         * m4/dirfd.m4: Likewise.
17824         * m4/double-slash-root.m4: Likewise.
17825         * m4/eaccess.m4: Likewise.
17826         * m4/eealloc.m4: Likewise.
17827         * m4/environ.m4: Likewise.
17828         * m4/errno_h.m4: Likewise.
17829         * m4/euidaccess.m4: Likewise.
17830         * m4/execute.m4: Likewise.
17831         * m4/fatal-signal.m4: Likewise.
17832         * m4/fchdir.m4: Likewise.
17833         * m4/fcntl_h.m4: Likewise.
17834         * m4/fileblocks.m4: Likewise.
17835         * m4/filenamecat.m4: Likewise.
17836         * m4/findprog.m4: Likewise.
17837         * m4/flexmember.m4: Likewise.
17838         * m4/fnmatch.m4: Likewise.
17839         * m4/fopen.m4: Likewise.
17840         * m4/fpending.m4: Likewise.
17841         * m4/fprintf-posix.m4: Likewise.
17842         * m4/free.m4: Likewise.
17843         * m4/frexp.m4: Likewise.
17844         * m4/frexpl.m4: Likewise.
17845         * m4/fsusage.m4: Likewise.
17846         * m4/ftruncate.m4: Likewise.
17847         * m4/gc-camellia.m4: Likewise.
17848         * m4/gc-random.m4: Likewise.
17849         * m4/gc.m4: Likewise.
17850         * m4/getaddrinfo.m4: Likewise.
17851         * m4/getcwd-abort-bug.m4: Likewise.
17852         * m4/getcwd-path-max.m4: Likewise.
17853         * m4/getdate.m4: Likewise.
17854         * m4/getdomainname.m4: Likewise.
17855         * m4/getgroups.m4: Likewise.
17856         * m4/gethostname.m4: Likewise.
17857         * m4/gethrxtime.m4: Likewise.
17858         * m4/getline.m4: Likewise.
17859         * m4/getloadavg.m4: Likewise.
17860         * m4/getndelim2.m4: Likewise.
17861         * m4/getpass.m4: Likewise.
17862         * m4/gettext.m4: Likewise.
17863         * m4/gettime.m4: Likewise.
17864         * m4/gettimeofday.m4: Likewise.
17865         * m4/gnulib-common.m4: Likewise.
17866         * m4/group-member.m4: Likewise.
17867         * m4/host-os.m4: Likewise.
17868         * m4/iconv.m4: Likewise.
17869         * m4/iconv_open.m4: Likewise.
17870         * m4/inet_ntop.m4: Likewise.
17871         * m4/inet_pton.m4: Likewise.
17872         * m4/inline.m4: Likewise.
17873         * m4/intldir.m4: Likewise.
17874         * m4/intlmacosx.m4: Likewise.
17875         * m4/intmax.m4: Likewise.
17876         * m4/intmax_t.m4: Likewise.
17877         * m4/inttypes.m4: Likewise.
17878         * m4/inttypes_h.m4: Likewise.
17879         * m4/inttypes-pri.m4: Likewise.
17880         * m4/isapipe.m4: Likewise.
17881         * m4/isnand.m4: Likewise.
17882         * m4/isnanf.m4: Likewise.
17883         * m4/isnanl.m4: Likewise.
17884         * m4/javacomp.m4: Likewise.
17885         * m4/javaexec.m4: Likewise.
17886         * m4/jm-winsz1.m4: Likewise.
17887         * m4/jm-winsz2.m4: Likewise.
17888         * m4/lchown.m4: Likewise.
17889         * m4/lcmessage.m4: Likewise.
17890         * m4/ldexpl.m4: Likewise.
17891         * m4/lib-ld.m4: Likewise.
17892         * m4/lib-link.m4: Likewise.
17893         * m4/libsigsegv.m4: Likewise.
17894         * m4/link-follow.m4: Likewise.
17895         * m4/localcharset.m4: Likewise.
17896         * m4/locale-fr.m4: Likewise.
17897         * m4/locale-ja.m4: Likewise.
17898         * m4/locale-tr.m4: Likewise.
17899         * m4/locale-zh.m4: Likewise.
17900         * m4/lock.m4: Likewise.
17901         * m4/longlong.m4: Likewise.
17902         * m4/ls-mntd-fs.m4: Likewise.
17903         * m4/lstat.m4: Likewise.
17904         * m4/malloc.m4: Likewise.
17905         * m4/mathl.m4: Likewise.
17906         * m4/mbrtowc.m4: Likewise.
17907         * m4/mbstate_t.m4: Likewise.
17908         * m4/mbswidth.m4: Likewise.
17909         * m4/memchr.m4: Likewise.
17910         * m4/memcmp.m4: Likewise.
17911         * m4/memcpy.m4: Likewise.
17912         * m4/memmem.m4: Likewise.
17913         * m4/memmove.m4: Likewise.
17914         * m4/mempcpy.m4: Likewise.
17915         * m4/memrchr.m4: Likewise.
17916         * m4/memset.m4: Likewise.
17917         * m4/minmax.m4: Likewise.
17918         * m4/mkdir-slash.m4: Likewise.
17919         * m4/mkdtemp.m4: Likewise.
17920         * m4/mktime.m4: Likewise.
17921         * m4/mmap-anon.m4: Likewise.
17922         * m4/mountlist.m4: Likewise.
17923         * m4/nanosleep.m4: Likewise.
17924         * m4/nls.m4: Likewise.
17925         * m4/nocrash.m4: Likewise.
17926         * m4/open.m4: Likewise.
17927         * m4/openat.m4: Likewise.
17928         * m4/openmp.m4: Likewise.
17929         * m4/pathmax.m4: Likewise.
17930         * m4/perl.m4: Likewise.
17931         * m4/physmem.m4: Likewise.
17932         * m4/pipe.m4: Likewise.
17933         * m4/po.m4: Likewise.
17934         * m4/poll.m4: Likewise.
17935         * m4/posixtm.m4: Likewise.
17936         * m4/posixver.m4: Likewise.
17937         * m4/printf-frexp.m4: Likewise.
17938         * m4/printf-frexpl.m4: Likewise.
17939         * m4/printf-posix.m4: Likewise.
17940         * m4/printf-posix-rpl.m4: Likewise.
17941         * m4/printf.m4: Likewise.
17942         * m4/progtest.m4: Likewise.
17943         * m4/putenv.m4: Likewise.
17944         * m4/readline.m4: Likewise.
17945         * m4/readlink.m4: Likewise.
17946         * m4/readutmp.m4: Likewise.
17947         * m4/realloc.m4: Likewise.
17948         * m4/regex.m4: Likewise.
17949         * m4/relocatable.m4: Likewise.
17950         * m4/relocatable-lib.m4: Likewise.
17951         * m4/rename-dest-slash.m4: Likewise.
17952         * m4/rename.m4: Likewise.
17953         * m4/rmdir-errno.m4: Likewise.
17954         * m4/rmdir.m4: Likewise.
17955         * m4/roundf.m4: Likewise.
17956         * m4/roundl.m4: Likewise.
17957         * m4/rpmatch.m4: Likewise.
17958         * m4/save-cwd.m4: Likewise.
17959         * m4/selinux-selinux-h.m4: Likewise.
17960         * m4/setenv.m4: Likewise.
17961         * m4/settime.m4: Likewise.
17962         * m4/sig2str.m4: Likewise.
17963         * m4/sig_atomic_t.m4: Likewise.
17964         * m4/signalblocking.m4: Likewise.
17965         * m4/signbit.m4: Likewise.
17966         * m4/sigpipe.m4: Likewise.
17967         * m4/sockets.m4: Likewise.
17968         * m4/sockpfaf.m4: Likewise.
17969         * m4/st_dm_mode.m4: Likewise.
17970         * m4/stat-time.m4: Likewise.
17971         * m4/stdbool.m4: Likewise.
17972         * m4/stdint.m4: Likewise.
17973         * m4/stdint_h.m4: Likewise.
17974         * m4/stpcpy.m4: Likewise.
17975         * m4/stpncpy.m4: Likewise.
17976         * m4/strcase.m4: Likewise.
17977         * m4/strchrnul.m4: Likewise.
17978         * m4/strcspn.m4: Likewise.
17979         * m4/strdup.m4: Likewise.
17980         * m4/strftime.m4: Likewise.
17981         * m4/strndup.m4: Likewise.
17982         * m4/strnlen.m4: Likewise.
17983         * m4/strpbrk.m4: Likewise.
17984         * m4/strptime.m4: Likewise.
17985         * m4/strsep.m4: Likewise.
17986         * m4/strtod.m4: Likewise.
17987         * m4/strtoimax.m4: Likewise.
17988         * m4/strtok_r.m4: Likewise.
17989         * m4/strtol.m4: Likewise.
17990         * m4/strtoll.m4: Likewise.
17991         * m4/strtoul.m4: Likewise.
17992         * m4/strtoull.m4: Likewise.
17993         * m4/strtoumax.m4: Likewise.
17994         * m4/strverscmp.m4: Likewise.
17995         * m4/threadlib.m4: Likewise.
17996         * m4/timegm.m4: Likewise.
17997         * m4/tm_gmtoff.m4: Likewise.
17998         * m4/tmpdir.m4: Likewise.
17999         * m4/tmpfile.m4: Likewise.
18000         * m4/tzset.m4: Likewise.
18001         * m4/uintmax_t.m4: Likewise.
18002         * m4/unlinkdir.m4: Likewise.
18003         * m4/unlocked-io.m4: Likewise.
18004         * m4/uptime.m4: Likewise.
18005         * m4/userspec.m4: Likewise.
18006         * m4/utimbuf.m4: Likewise.
18007         * m4/utime.m4: Likewise.
18008         * m4/utimes-null.m4: Likewise.
18009         * m4/utimes.m4: Likewise.
18010         * m4/vararrays.m4: Likewise.
18011         * m4/vasnprintf.m4: Likewise.
18012         * m4/vfprintf-posix.m4: Likewise.
18013         * m4/vprintf-posix.m4: Likewise.
18014         * m4/wait-process.m4: Likewise.
18015         * m4/wchar_t.m4: Likewise.
18016         * m4/wint_t.m4: Likewise.
18017         * m4/write-any-file.m4: Likewise.
18018         * m4/yield.m4: Likewise.
18019
18020 2009-01-13  Bruno Haible  <bruno@clisp.org>
18021
18022         Avoid test-copy-file.sh failures when ACL support insufficient.
18023         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
18024         TESTS_ENVIRONMENT.
18025         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
18026         Reported by Jim Meyering.
18027
18028 2009-01-13  Bruno Haible  <bruno@clisp.org>
18029
18030         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
18031         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
18032         * modules/unistdio/u8-printf-parse (Files): Likewise.
18033         * modules/unistdio/u32-printf-parse (Files): Likewise.
18034         * modules/unistdio/ulc-printf-parse (Files): Likewise.
18035
18036 2009-01-13  Simon Josefsson  <simon@josefsson.org>
18037
18038         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
18039         and m4/inttypes_h.m4 too.
18040
18041 2009-01-12  Eric Blake  <ebb9@byu.net>
18042
18043         tests: IRIX 6.2 cc can't compile -0.0 into .data
18044         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
18045         rather than at compile-time.
18046         * tests/test-floorl.c (minus_zero): Likewise.
18047         * tests/test-frexpl.c (minus_zero): Likewise.
18048         * tests/test-isnan.c (minus_zerol): Likewise.
18049         * tests/test-isnanl.h (minus_zero): Likewise.
18050         * tests/test-ldexpl.c (minus_zero): Likewise.
18051         * tests/test-roundl.c (minus_zero): Likewise.
18052         * tests/test-signbit.c (minus_zerol): Likewise.
18053         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
18054         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
18055         * tests/test-truncl.c (minus_zero): Likewise.
18056         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
18057         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
18058         Reported by Tom G. Christensen and Nelson H. F. Beebe.
18059
18060 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
18061
18062         regex: fix glibc bug 9697
18063         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
18064         handling.
18065
18066 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
18067
18068         regex: fix glibc bug 697
18069         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
18070         being NULL also if there are no backreferences.
18071
18072 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
18073
18074         regex: merge glibc changes
18075         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
18076         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
18077         re_string_skip_chars, re_string_reconstruct): Likewise.
18078         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
18079
18080 2009-01-07  Jim Meyering  <meyering@redhat.com>
18081
18082         poll: filter through cppi
18083         * lib/poll.c: Indent cpp directives to reflect nesting.
18084
18085 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
18086
18087         poll: don't return uninitialized
18088         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
18089
18090 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
18091
18092         avoid compile failure on AIX 6.1
18093         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
18094         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
18095
18096 2009-01-04  Jim Meyering  <meyering@redhat.com>
18097
18098         remove duplicate inclusion of <stdio.h>
18099         * tests/test-fprintf-posix.c: Likewise.
18100         * tests/test-printf-posix.c: Likewise.
18101         * tests/test-snprintf-posix.c: Likewise.
18102         * tests/test-sprintf-posix.c: Likewise.
18103         * tests/test-vasprintf-posix.c: Likewise.
18104         * tests/test-vfprintf-posix.c: Likewise.
18105         * tests/test-vprintf-posix.c: Likewise.
18106         * tests/test-vsnprintf-posix.c: Likewise.
18107         * tests/test-vsprintf-posix.c: Likewise.
18108
18109 2009-01-03  Jim Meyering  <meyering@redhat.com>
18110
18111         gnulib-tool: fix sed-based filtering
18112         * gnulib-tool (func_filter_filelist): Remove extra backslash
18113         in sed_fff_filter definition.
18114
18115 2009-01-02  Jim Meyering  <meyering@redhat.com>
18116
18117         strftime: avoid compilation failure on Solaris 2.6
18118         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
18119         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
18120         Don't #define mbrlen or mbsinit, since now they're guaranteed to
18121         be available.  Reported by Tom G. Christensen.  Details in
18122         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
18123
18124 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18125             Bruno Haible  <bruno@clisp.org>
18126
18127         Speed up gnulib-tool by doing more string processing through shell
18128         built-ins.
18129         * gnulib-tool (fast_func_append): New variable.
18130         (func_remove_prefix, func_remove_suffix): New functions.
18131         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
18132         (func_filter_filelist): New function.
18133         (func_get_dependencies): Use func_remove_suffix instead of sed.
18134         (func_get_automake_snippet): Use func_filter_filelist instead of a
18135         subshell and sed invocation.
18136
18137 2009-01-01  Bruno Haible  <bruno@clisp.org>
18138
18139         Fix a security bug.
18140         * gnulib-tool (func_import, import, update): Don't allow the characters
18141         '"', '$', '`', '\' in macro arguments that become part of commands that
18142         are evaluated.
18143
18144 2009-01-01  Bruno Haible  <bruno@clisp.org>
18145
18146         * gnulib-tool (func_reset_sigpipe): Add more comments.
18147
18148 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18149
18150         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
18151         func_emit_tests_Makefile_am, func_import): Abort loops early if we
18152         already know the answer.
18153
18154 2009-01-01  Jim Meyering  <meyering@redhat.com>
18155
18156         * lib/version-etc.c (version_etc_va): Update copyright year.
18157
18158 2008-12-30  Bruno Haible  <bruno@clisp.org>
18159
18160         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
18161         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
18162         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
18163
18164 2008-12-29  Eric Blake  <ebb9@byu.net>
18165
18166         multiarch: avoid autoconf AC_REQUIRE bug
18167         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
18168         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
18169         2.63 and older.
18170         Reported by Bruno Haible, and analyzed in
18171         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
18172
18173 2008-12-29  Bruno Haible  <bruno@clisp.org>
18174
18175         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
18176         files in subdirectories correctly.
18177         Reported by Ralf Wildenhues.
18178
18179 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18180
18181         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
18182         rather than 'join FILE -', for Solaris join.
18183
18184 2008-12-29  Bruno Haible  <bruno@clisp.org>
18185
18186         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
18187         quoting.
18188         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
18189         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
18190         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
18191         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
18192         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
18193         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
18194         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
18195         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
18196         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
18197         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
18198         * m4/nls.m4 (AM_NLS): Likewise.
18199         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
18200         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
18201         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
18202         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
18203         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
18204         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
18205         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
18206         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
18207         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
18208         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
18209         * m4/xsize.m4 (gl_XSIZE): Likewise.
18210         Suggested by Jim Meyering.
18211
18212 2008-11-17  Bruce Korb  <bkorb@gnu.org>
18213
18214         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
18215         * lib/parse-duration.c: use a switch instead of cascading if's.
18216
18217 2008-12-29  Eric Blake  <ebb9@byu.net>
18218
18219         wchar.h: supply WEOF on Irix 5.3
18220         * lib/wchar.in.h (wint_t): Also supply WEOF.
18221         * lib/wctype.in.h (wint_t): Likewise.
18222         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
18223         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
18224         Reported by Tom G. Christensen.
18225
18226 2008-12-26  Bruno Haible  <bruno@clisp.org>
18227
18228         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
18229         i486, i586, i686.
18230
18231 2008-12-26  Bruno Haible  <bruno@clisp.org>
18232
18233         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
18234
18235 2008-12-26  Bruno Haible  <bruno@clisp.org>
18236
18237         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
18238         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
18239         not __STDC_CONSTANT_MACROS.
18240         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
18241
18242 2008-12-25  Bruno Haible  <bruno@clisp.org>
18243
18244         Add support for universal builds to vasnprintf.
18245         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
18246         universal builds, guess no.
18247         * modules/vasnprintf-posix (Depends-on): Add multiarch.
18248         * modules/vasprintf-posix (Depends-on): Likewise.
18249         * modules/fprintf-posix (Depends-on): Likewise.
18250         * modules/vfprintf-posix (Depends-on): Likewise.
18251         * modules/snprintf-posix (Depends-on): Likewise.
18252         * modules/vsnprintf-posix (Depends-on): Likewise.
18253         * modules/sprintf-posix (Depends-on): Likewise.
18254         * modules/vsprintf-posix (Depends-on): Likewise.
18255         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
18256         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18257         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18258         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18259         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18260         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18261         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18262
18263         Add support for universal builds to <inttypes.h>.
18264         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
18265         _SCNu64_PREFIX): In Apple
18266         universal builds, define directly, using _LP64.
18267         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
18268         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
18269         * modules/inttypes (Depends-on): Add multiarch.
18270         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
18271
18272         Add support for universal builds to <stdint.h>.
18273         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
18274         universal builds, define directly, using _LP64.
18275         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
18276         Apple universal builds, don't test for the size and suffix of ptrdiff_t
18277         and size_t.
18278         * modules/stdint (Depends-on): Add multiarch.
18279         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
18280
18281         New module 'multiarch'.
18282         * modules/multiarch: New file.
18283         * m4/multiarch.m4: New file.
18284
18285 2008-12-25  Bruno Haible  <bruno@clisp.org>
18286
18287         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
18288
18289 2008-12-25  Bruno Haible  <bruno@clisp.org>
18290
18291         * modules/btowc (License): Relicense under LGPLv2+.
18292         * modules/mbsinit (License): Likewise.
18293         * modules/mbrtowc (License): Likewise.
18294         * modules/wcrtomb (License): Likewise.
18295         * modules/streq (License): Likewise.
18296         Reported by David Lutterkort <lutter@redhat.com>.
18297
18298 2008-12-23  Bruno Haible  <bruno@clisp.org>
18299
18300         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
18301
18302 2008-12-23  Bruno Haible  <bruno@clisp.org>
18303
18304         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
18305         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
18306         GETADDRINFO_LIB, not in LIBS.
18307         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
18308         * modules/canon-host (Link): Likewise.
18309         * NEWS: Mention the change.
18310         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
18311         GETADDRINFO_LIB.
18312
18313 2008-12-22  Bruno Haible  <bruno@clisp.org>
18314
18315         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
18316         * doc/posix-functions/iswalpha_l.texi: Likewise.
18317         * doc/posix-functions/iswblank_l.texi: Likewise.
18318         * doc/posix-functions/iswcntrl_l.texi: Likewise.
18319         * doc/posix-functions/iswctype_l.texi: Likewise.
18320         * doc/posix-functions/iswdigit_l.texi: Likewise.
18321         * doc/posix-functions/iswgraph_l.texi: Likewise.
18322         * doc/posix-functions/iswlower_l.texi: Likewise.
18323         * doc/posix-functions/iswprint_l.texi: Likewise.
18324         * doc/posix-functions/iswpunct_l.texi: Likewise.
18325         * doc/posix-functions/iswspace_l.texi: Likewise.
18326         * doc/posix-functions/iswupper_l.texi: Likewise.
18327         * doc/posix-functions/iswxdigit_l.texi: Likewise.
18328         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
18329         * doc/posix-functions/open_wmemstream.texi: Likewise.
18330         * doc/posix-functions/swscanf.texi: Likewise.
18331         * doc/posix-functions/towctrans_l.texi: Likewise.
18332         * doc/posix-functions/towlower.texi: Likewise.
18333         * doc/posix-functions/towlower_l.texi: Likewise.
18334         * doc/posix-functions/towupper.texi: Likewise.
18335         * doc/posix-functions/towupper_l.texi: Likewise.
18336         * doc/posix-functions/vfwprintf.texi: Likewise.
18337         * doc/posix-functions/vfwscanf.texi: Likewise.
18338         * doc/posix-functions/vswscanf.texi: Likewise.
18339         * doc/posix-functions/vwprintf.texi: Likewise.
18340         * doc/posix-functions/vwscanf.texi: Likewise.
18341         * doc/posix-functions/wcpcpy.texi: Likewise.
18342         * doc/posix-functions/wcpncpy.texi: Likewise.
18343         * doc/posix-functions/wcscasecmp.texi: Likewise.
18344         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
18345         * doc/posix-functions/wcscoll_l.texi: Likewise.
18346         * doc/posix-functions/wcsdup.texi: Likewise.
18347         * doc/posix-functions/wcsncasecmp.texi: Likewise.
18348         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
18349         * doc/posix-functions/wcsnlen.texi: Likewise.
18350         * doc/posix-functions/wcsnrtombs.texi: Likewise.
18351         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
18352         * doc/posix-functions/wctrans_l.texi: Likewise.
18353         * doc/posix-functions/wctype_l.texi: Likewise.
18354         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
18355         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
18356         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
18357         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
18358         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
18359         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
18360         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
18361         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
18362         * doc/glibc-functions/wcschrnul.texi: Likewise.
18363         * doc/glibc-functions/wcsftime_l.texi: Likewise.
18364         * doc/glibc-functions/wcstod_l.texi: Likewise.
18365         * doc/glibc-functions/wcstof_l.texi: Likewise.
18366         * doc/glibc-functions/wcstol_l.texi: Likewise.
18367         * doc/glibc-functions/wcstold_l.texi: Likewise.
18368         * doc/glibc-functions/wcstoll_l.texi: Likewise.
18369         * doc/glibc-functions/wcstoq.texi: Likewise.
18370         * doc/glibc-functions/wcstoul_l.texi: Likewise.
18371         * doc/glibc-functions/wcstoull_l.texi: Likewise.
18372         * doc/glibc-functions/wcstouq.texi: Likewise.
18373         * doc/glibc-functions/wmempcpy.texi: Likewise.
18374
18375 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
18376             Eric Blake  <ebb9@byu.net>
18377             Paolo Bonzini  <bonzini@gnu.org>
18378             Bruno Haible  <bruno@clisp.org>
18379
18380         Make c-stack work on Haiku.
18381         * lib/c-stack.c (SA_ONSTACK): Define fallback.
18382         (c_stack_action): Use SA_ONSTACK flag.
18383
18384 2008-12-22  Bruno Haible  <bruno@clisp.org>
18385
18386         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
18387
18388 2008-12-22  Bruno Haible  <bruno@clisp.org>
18389
18390         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
18391         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
18392         being overridden.
18393         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
18394         New macros.
18395         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
18396         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
18397         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
18398         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
18399
18400 2008-12-22  Bruno Haible  <bruno@clisp.org>
18401
18402         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
18403         from test code.
18404
18405 2008-12-22  Eric Blake  <ebb9@byu.net>
18406
18407         Avoid gcc warnings on cygwin.
18408         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
18409         Avoid unused variable.
18410         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
18411         Likewise.
18412
18413 2008-12-22  Bruno Haible  <bruno@clisp.org>
18414
18415         Remove HAVE_MBRTOWC conditionals.
18416         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
18417         (mbscasecmp): Assume mbrtowc function.
18418         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
18419         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
18420         * lib/mbschr.c: Include mbuiter.h unconditionally.
18421         (mbschr): Assume mbrtowc function.
18422         * lib/mbscspn.c: Include mbuiter.h unconditionally.
18423         (mbscspn): Assume mbrtowc function.
18424         * lib/mbslen.c: Include mbuiter.h unconditionally.
18425         (mbslen): Assume mbrtowc function.
18426         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
18427         (mbsncasecmp): Assume mbrtowc function.
18428         * lib/mbsnlen.c: Include mbiter.h unconditionally.
18429         (mbsnlen): Assume mbrtowc function.
18430         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
18431         (mbspbrk): Assume mbrtowc function.
18432         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
18433         (mbspcasecmp): Assume mbrtowc function.
18434         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
18435         (mbsrchr): Assume mbrtowc function.
18436         * lib/mbssep.c: Include mbuiter.h unconditionally.
18437         (mbssep): Assume mbrtowc function.
18438         * lib/mbsspn.c: Include mbuiter.h unconditionally.
18439         (mbsspn): Assume mbrtowc function.
18440         * lib/mbsstr.c: Include mbuiter.h unconditionally.
18441         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
18442         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
18443         (mbstok_r): Assume mbrtowc function.
18444         * lib/propername.c: Include mbuiter.h unconditionally.
18445         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
18446         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
18447         (trim2): Assume mbrtowc function.
18448         * lib/mbswidth.c (mbsinit): Remove fallback definition.
18449         (mbsnwidth): Assume mbrtowc function.
18450         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
18451         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
18452         fallback definitions.
18453         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
18454
18455 2008-12-22  Bruno Haible  <bruno@clisp.org>
18456
18457         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
18458
18459 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
18460
18461         * modules/regex: Request emulations for the mb*/wc* functions we need.
18462         * m4/regex.m4: Don't look for those functions here.
18463         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
18464
18465 2008-12-22  Bruno Haible  <bruno@clisp.org>
18466
18467         * modules/fnmatch (Depends-on): Remove duplicated dependency.
18468
18469 2008-12-21  Bruno Haible  <bruno@clisp.org>
18470
18471         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
18472         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
18473         (Include): Remove conditionalization.
18474         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
18475         (Include): Remove conditionalization.
18476         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
18477         (Include): Remove conditionalization.
18478         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
18479         * m4/mbfile.m4 (gl_MBFILE): Likewise.
18480         * NEWS: Mention the change.
18481         Reported by Alan Hourihane <alanh@fairlite.co.uk>
18482         via Sergey Poznyakoff <gray@gnu.org.ua>.
18483
18484 2008-12-21  Bruno Haible  <bruno@clisp.org>
18485
18486         * MODULES.html.sh (Extended multibyte and wide character utilities
18487         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
18488         wcrtomb, wcsrtombs.
18489         (Support for systems lacking POSIX:2008): Add accept, bind, close,
18490         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
18491         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
18492         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
18493
18494 2008-12-21  Bruno Haible  <bruno@clisp.org>
18495
18496         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
18497
18498 2008-12-21  Bruno Haible  <bruno@clisp.org>
18499
18500         * modules/wcsnrtombs-tests: New file.
18501         * tests/test-wcsnrtombs1.sh: New file.
18502         * tests/test-wcsnrtombs2.sh: New file.
18503         * tests/test-wcsnrtombs3.sh: New file.
18504         * tests/test-wcsnrtombs4.sh: New file.
18505         * tests/test-wcsnrtombs.c: New file.
18506
18507         New module 'wcsnrtombs'.
18508         * lib/wchar.in.h (wcsnrtombs): New declaration.
18509         * lib/wcsnrtombs.c: New file.
18510         * lib/wcsrtombs-state.c: New file.
18511         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
18512         (internal_state): Remove variable.
18513         * m4/wcsnrtombs.m4: New file.
18514         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
18515         compilation units.
18516         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
18517         HAVE_WCSNRTOMBS.
18518         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
18519         HAVE_WCSNRTOMBS.
18520         * modules/wcsnrtombs: New file.
18521         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
18522         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
18523
18524 2008-12-21  Bruno Haible  <bruno@clisp.org>
18525
18526         * modules/wcsrtombs-tests: New file.
18527         * tests/test-wcsrtombs1.sh: New file.
18528         * tests/test-wcsrtombs2.sh: New file.
18529         * tests/test-wcsrtombs3.sh: New file.
18530         * tests/test-wcsrtombs4.sh: New file.
18531         * tests/test-wcsrtombs.c: New file.
18532
18533         New module 'wcsrtombs'.
18534         * lib/wchar.in.h (wcsrtombs): New declaration.
18535         * lib/wcsrtombs.c: New file.
18536         * m4/wcsrtombs.m4: New file.
18537         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
18538         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
18539         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
18540         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
18541         * modules/wcsrtombs: New file.
18542         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
18543         bugs.
18544
18545 2008-12-21  Bruno Haible  <bruno@clisp.org>
18546
18547         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
18548         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
18549         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
18550         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
18551         if not correct.
18552         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
18553         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
18554         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
18555         m4/locale-zh.m4, m4/codeset.m4.
18556         * doc/posix-functions/wcrtomb.texi: Document the bug.
18557
18558 2008-12-21  Bruno Haible  <bruno@clisp.org>
18559
18560         Work around a btowc() bug on IRIX 6.5.
18561         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
18562         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
18563         REPLACE_WTOBC if not.
18564         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
18565         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
18566         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
18567
18568 2008-12-21  Bruno Haible  <bruno@clisp.org>
18569
18570         * modules/wcrtomb-tests: New file.
18571         * tests/test-wcrtomb.sh: New file.
18572         * tests/test-wcrtomb.c: New file.
18573
18574         New module 'wcrtomb'.
18575         * lib/wchar.in.h (wcrtomb): New declaration.
18576         * lib/wcrtomb.c: New file.
18577         * m4/wcrtomb.m4: New file.
18578         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
18579         HAVE_WCRTOMB.
18580         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
18581         HAVE_WCRTOMB.
18582         * modules/wcrtomb: New file.
18583         * doc/posix-functions/wcrtomb.texi: Mention the new module.
18584
18585 2008-12-21  Bruno Haible  <bruno@clisp.org>
18586
18587         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
18588         * modules/mbsrtowcs (Files): Likewise.
18589         * modules/wctob (Files): Likewise.
18590         * modules/c-strcase-tests (Files): Likewise.
18591         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
18592         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
18593         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
18594         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
18595         * modules/vasnprintf-posix-tests (Files): Likewise.
18596
18597 2008-12-21  William Pursell  <bill.pursell@gmail.com>
18598
18599         gitlog-to-changelog: pass all command-line arguments to git-log
18600         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
18601         it is sometimes convenient to filter the commits in various ways.
18602         gitlog-to-changelog only allows --since to specify a start date,
18603         but git-log itself supports many other filtering mechanisms.
18604         At the moment, I want to filter by branch name.  Rather than
18605         adding a --branch option to gitlog-to-changelog, it seems more
18606         flexible to simply pass all options directly to git-log and let
18607         git do the work.  Notice that this effectively makes --since a
18608         redundant option for gitlog-to-changelog, but removing it would
18609         require current usage to change since calls would then require
18610         an additional '--'.
18611
18612 2008-12-21  Bruno Haible  <bruno@clisp.org>
18613
18614         * modules/mbsnrtowcs-tests: New file.
18615         * tests/test-mbsnrtowcs1.sh: New file.
18616         * tests/test-mbsnrtowcs2.sh: New file.
18617         * tests/test-mbsnrtowcs3.sh: New file.
18618         * tests/test-mbsnrtowcs4.sh: New file.
18619         * tests/test-mbsnrtowcs.c: New file.
18620
18621         New module 'mbsnrtowcs'.
18622         * lib/wchar.in.h (mbsnrtowcs): New declaration.
18623         * lib/mbsnrtowcs.c: New file.
18624         * lib/mbsrtowcs-state.c: New file.
18625         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
18626         (internal_state): Remove variable.
18627         * m4/mbsnrtowcs.m4: New file.
18628         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
18629         compilation units.
18630         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
18631         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
18632         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
18633         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
18634         * modules/mbsnrtowcs: New file.
18635         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
18636         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
18637         portability problem.
18638
18639 2008-12-21  Bruno Haible  <bruno@clisp.org>
18640
18641         Work around mbsrtowcs bug.
18642         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
18643         (gl_FUNC_MBSRTOWCS): Invoke it.
18644         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
18645         m4/locale-zh.m4.
18646         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
18647
18648 2008-12-21  Bruno Haible  <bruno@clisp.org>
18649
18650         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
18651
18652 2008-12-21  Bruno Haible  <bruno@clisp.org>
18653
18654         Update doc for AIX.
18655         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
18656         16-bit wchar_t type.
18657         * doc/posix-functions/btowc.texi: Likewise.
18658         * doc/posix-functions/fgetwc.texi: Likewise.
18659         * doc/posix-functions/fgetws.texi: Likewise.
18660         * doc/posix-functions/fputwc.texi: Likewise.
18661         * doc/posix-functions/fputws.texi: Likewise.
18662         * doc/posix-functions/fwide.texi: Likewise.
18663         * doc/posix-functions/fwprintf.texi: Likewise.
18664         * doc/posix-functions/fwscanf.texi: Likewise.
18665         * doc/posix-functions/getwchar.texi: Likewise.
18666         * doc/posix-functions/getwc.texi: Likewise.
18667         * doc/posix-functions/iswalnum.texi: Likewise.
18668         * doc/posix-functions/iswalpha.texi: Likewise.
18669         * doc/posix-functions/iswblank.texi: Likewise.
18670         * doc/posix-functions/iswcntrl.texi: Likewise.
18671         * doc/posix-functions/iswctype.texi: Likewise.
18672         * doc/posix-functions/iswdigit.texi: Likewise.
18673         * doc/posix-functions/iswgraph.texi: Likewise.
18674         * doc/posix-functions/iswlower.texi: Likewise.
18675         * doc/posix-functions/iswprint.texi: Likewise.
18676         * doc/posix-functions/iswpunct.texi: Likewise.
18677         * doc/posix-functions/iswspace.texi: Likewise.
18678         * doc/posix-functions/iswupper.texi: Likewise.
18679         * doc/posix-functions/iswxdigit.texi: Likewise.
18680         * doc/posix-functions/mbrtowc.texi: Likewise.
18681         * doc/posix-functions/mbsrtowcs.texi: Likewise.
18682         * doc/posix-functions/mbstowcs.texi: Likewise.
18683         * doc/posix-functions/mbtowc.texi: Likewise.
18684         * doc/posix-functions/putwchar.texi: Likewise.
18685         * doc/posix-functions/putwc.texi: Likewise.
18686         * doc/posix-functions/swprintf.texi: Likewise.
18687         * doc/posix-functions/tolower.texi: Likewise.
18688         * doc/posix-functions/toupper.texi: Likewise.
18689         * doc/posix-functions/towctrans.texi: Likewise.
18690         * doc/posix-functions/ungetwc.texi: Likewise.
18691         * doc/posix-functions/vswprintf.texi: Likewise.
18692         * doc/posix-functions/wcrtomb.texi: Likewise.
18693         * doc/posix-functions/wcscat.texi: Likewise.
18694         * doc/posix-functions/wcschr.texi: Likewise.
18695         * doc/posix-functions/wcscmp.texi: Likewise.
18696         * doc/posix-functions/wcscoll.texi: Likewise.
18697         * doc/posix-functions/wcscpy.texi: Likewise.
18698         * doc/posix-functions/wcscspn.texi: Likewise.
18699         * doc/posix-functions/wcsftime.texi: Likewise.
18700         * doc/posix-functions/wcslen.texi: Likewise.
18701         * doc/posix-functions/wcsncat.texi: Likewise.
18702         * doc/posix-functions/wcsncmp.texi: Likewise.
18703         * doc/posix-functions/wcsncpy.texi: Likewise.
18704         * doc/posix-functions/wcspbrk.texi: Likewise.
18705         * doc/posix-functions/wcsrchr.texi: Likewise.
18706         * doc/posix-functions/wcsrtombs.texi: Likewise.
18707         * doc/posix-functions/wcsspn.texi: Likewise.
18708         * doc/posix-functions/wcsstr.texi: Likewise.
18709         * doc/posix-functions/wcstod.texi: Likewise.
18710         * doc/posix-functions/wcstof.texi: Likewise.
18711         * doc/posix-functions/wcstoimax.texi: Likewise.
18712         * doc/posix-functions/wcstok.texi: Likewise.
18713         * doc/posix-functions/wcstold.texi: Likewise.
18714         * doc/posix-functions/wcstoll.texi: Likewise.
18715         * doc/posix-functions/wcstol.texi: Likewise.
18716         * doc/posix-functions/wcstombs.texi: Likewise.
18717         * doc/posix-functions/wcstoull.texi: Likewise.
18718         * doc/posix-functions/wcstoul.texi: Likewise.
18719         * doc/posix-functions/wcstoumax.texi: Likewise.
18720         * doc/posix-functions/wcswidth.texi: Likewise.
18721         * doc/posix-functions/wcsxfrm.texi: Likewise.
18722         * doc/posix-functions/wctob.texi: Likewise.
18723         * doc/posix-functions/wctomb.texi: Likewise.
18724         * doc/posix-functions/wctrans.texi: Likewise.
18725         * doc/posix-functions/wctype.texi: Likewise.
18726         * doc/posix-functions/wcwidth.texi: Likewise.
18727         * doc/posix-functions/wmemchr.texi: Likewise.
18728         * doc/posix-functions/wmemcmp.texi: Likewise.
18729         * doc/posix-functions/wmemcpy.texi: Likewise.
18730         * doc/posix-functions/wmemmove.texi: Likewise.
18731         * doc/posix-functions/wmemset.texi: Likewise.
18732         * doc/posix-functions/wprintf.texi: Likewise.
18733         * doc/posix-functions/wscanf.texi: Likewise.
18734
18735 2008-12-21  Bruno Haible  <bruno@clisp.org>
18736
18737         Update doc for HP-UX 11.11.
18738         * doc/posix-functions/btowc.texi: Clarify that the function is missing
18739         in HP-UX version 11.00, not in all versions of HP-UX 11.
18740         * doc/posix-functions/fwide.texi: Likewise.
18741         * doc/posix-functions/fwprintf.texi: Likewise.
18742         * doc/posix-functions/fwscanf.texi: Likewise.
18743         * doc/posix-functions/inet_ntop.texi: Likewise.
18744         * doc/posix-functions/inet_pton.texi: Likewise.
18745         * doc/posix-functions/mbrlen.texi: Likewise.
18746         * doc/posix-functions/mbrtowc.texi: Likewise.
18747         * doc/posix-functions/mbsinit.texi: Likewise.
18748         * doc/posix-functions/mbsrtowcs.texi: Likewise.
18749         * doc/posix-functions/swprintf.texi: Likewise.
18750         * doc/posix-functions/swscanf.texi: Likewise.
18751         * doc/posix-functions/towctrans.texi: Likewise.
18752         * doc/posix-functions/vfwprintf.texi: Likewise.
18753         * doc/posix-functions/vswprintf.texi: Likewise.
18754         * doc/posix-functions/vwprintf.texi: Likewise.
18755         * doc/posix-functions/wcrtomb.texi: Likewise.
18756         * doc/posix-functions/wcsrtombs.texi: Likewise.
18757         * doc/posix-functions/wcsstr.texi: Likewise.
18758         * doc/posix-functions/wctob.texi: Likewise.
18759         * doc/posix-functions/wctrans.texi: Likewise.
18760         * doc/posix-functions/wmemchr.texi: Likewise.
18761         * doc/posix-functions/wmemcmp.texi: Likewise.
18762         * doc/posix-functions/wmemcpy.texi: Likewise.
18763         * doc/posix-functions/wmemmove.texi: Likewise.
18764         * doc/posix-functions/wmemset.texi: Likewise.
18765         * doc/posix-functions/wprintf.texi: Likewise.
18766         * doc/posix-functions/wscanf.texi: Likewise.
18767
18768 2008-12-21  Bruno Haible  <bruno@clisp.org>
18769
18770         Work around a portability problem.
18771         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
18772         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
18773
18774 2008-12-20  Bruno Haible  <bruno@clisp.org>
18775
18776         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
18777         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
18778         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
18779         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
18780         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
18781
18782         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
18783         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
18784         set.
18785         (GNULIB_defined_mbstate_t): New macro.
18786         (mbsinit): Redefine if REPLACE_MBSINIT is set.
18787         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
18788         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
18789         reuses the system's mbrtowc function but works around the bugs.
18790         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
18791         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
18792         macros.
18793         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
18794         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
18795         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
18796         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
18797         REPLACE_MBSINIT if mbsinit needs to be overridden.
18798         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
18799         REPLACE_MBSINIT, REPLACE_MBRTOWC.
18800         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
18801         REPLACE_MBSINIT, REPLACE_MBRTOWC.
18802         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
18803         m4/locale-zh.m4.
18804         (Depends): Add mbsinit.
18805         * modules/mbsinit (Depends): Add mbrtowc.
18806         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
18807
18808 2008-12-20  Bruno Haible  <bruno@clisp.org>
18809
18810         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
18811         so that there are no conversion errors on AIX.
18812         * tests/test-mbsrtowcs.c (main): LIkewise.
18813
18814 2008-12-20  Bruno Haible  <bruno@clisp.org>
18815
18816         Work around wctob bug on Solaris <= 9.
18817         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
18818         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
18819         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
18820         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
18821         * modules/wctob (Files): Add m4/locale-fr.m4.
18822         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
18823
18824 2008-12-20  Bruno Haible  <bruno@clisp.org>
18825
18826         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
18827         /dev/null.
18828         * tests/test-select-in.sh: Likewise.
18829         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18830
18831 2008-12-20  Bruno Haible  <bruno@clisp.org>
18832
18833         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
18834         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
18835         Cygwin 1.5.x.
18836
18837 2008-12-20  Bruno Haible  <bruno@clisp.org>
18838
18839         Ensure mbstate_t is defined on HP-UX 11.11.
18840         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
18841         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
18842         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
18843         AC_USE_SYSTEM_EXTENSIONS.
18844         * modules/fnmatch (Depends-on): Add extensions.
18845         * modules/mbrlen (Depends-on): Likewise.
18846         * modules/mbrtowc (Depends-on): Likewise.
18847         * modules/mbsinit (Depends-on): Likewise.
18848         * modules/mbsrtowcs (Depends-on): Likewise.
18849         * modules/mbswidth (Depends-on): Likewise.
18850         * modules/quotearg (Depends-on): Likewise.
18851         * modules/strftime (Depends-on): Likewise.
18852
18853 2008-12-20  Bruno Haible  <bruno@clisp.org>
18854
18855         Ensure wctob is declared on IRIX 6.5.
18856         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
18857         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
18858         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
18859         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
18860         of HAVE_WCTOB.
18861         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
18862         HAVE_WCTOB.
18863         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
18864
18865 2008-12-19  Bruno Haible  <bruno@clisp.org>
18866
18867         * modules/mbsrtowcs-tests: New file.
18868         * tests/test-mbsrtowcs1.sh: New file.
18869         * tests/test-mbsrtowcs2.sh: New file.
18870         * tests/test-mbsrtowcs3.sh: New file.
18871         * tests/test-mbsrtowcs4.sh: New file.
18872         * tests/test-mbsrtowcs.c: New file.
18873
18874         New module 'mbsrtowcs'.
18875         * lib/wchar.in.h (mbsrtowcs): New declaration.
18876         * lib/mbsrtowcs.c: New file.
18877         * m4/mbsrtowcs.m4: New file.
18878         * modules/mbsrtowcs: New file.
18879         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
18880         HAVE_MBSRTOWCS.
18881         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
18882         HAVE_MBSRTOWCS.
18883         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
18884
18885 2008-12-19  Bruno Haible  <bruno@clisp.org>
18886
18887         New module 'mbrlen'.
18888         * lib/wchar.in.h (mbrlen): New declaration.
18889         * lib/mbrlen.c: New file.
18890         * m4/mbrlen.m4: New file.
18891         * modules/mbrlen: New file.
18892         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
18893         HAVE_MBRLEN.
18894         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
18895         HAVE_MBRLEN.
18896         * doc/posix-functions/mbrlen.texi: Document the new module.
18897
18898 2008-12-19  Bruno Haible  <bruno@clisp.org>
18899
18900         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
18901         * modules/mbrtowc (Depends-on): Add verify.
18902         Suggested by Paul Eggert.
18903
18904 2008-12-18  Bruno Haible  <bruno@clisp.org>
18905
18906         * modules/mbsinit-tests: New file.
18907         * tests/test-mbsinit.sh: New file.
18908         * tests/test-mbsinit.c: New file.
18909
18910 2008-12-18  Bruno Haible  <bruno@clisp.org>
18911
18912         * modules/mbrtowc-tests: New file.
18913         * tests/test-mbrtowc1.sh: New file.
18914         * tests/test-mbrtowc2.sh: New file.
18915         * tests/test-mbrtowc3.sh: New file.
18916         * tests/test-mbrtowc4.sh: New file.
18917         * tests/test-mbrtowc.c: New file.
18918
18919         New module 'mbrtowc'.
18920         * lib/wchar.in.h (mbstate_t): Override when the system does not have
18921         mbsinit and mbrtowc.
18922         (mbrtowc): New declaration.
18923         * lib/mbrtowc.c: New file.
18924         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
18925         * modules/mbrtowc: New file.
18926         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
18927         HAVE_MBRTOWC.
18928         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
18929         HAVE_MBRTOWC.
18930         * doc/posix-functions/mbrtowc.texi: Document the new module.
18931
18932 2008-12-18  Bruno Haible  <bruno@clisp.org>
18933
18934         New module 'wctob'.
18935         * lib/wchar.in.h (wctob): New declaration.
18936         * lib/wctob.c: New file.
18937         * m4/wctob.m4: New file.
18938         * modules/wctob: New file.
18939         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
18940         HAVE_WCTOB.
18941         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
18942         * doc/posix-functions/wctob.texi: Document the new module.
18943
18944 2008-12-18  Bruno Haible  <bruno@clisp.org>
18945
18946         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
18947         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
18948
18949 2008-12-18  Simon Josefsson  <simon@josefsson.org>
18950
18951         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
18952         G. Christensen" <tgc@jupiterrise.com>.
18953
18954         * lib/flock.c: Need to include errno.h.  Reported by "Tom
18955         G. Christensen" <tgc@jupiterrise.com>.
18956
18957         * lib/flock.c: Need to include string.h.  Reported by "Tom
18958         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
18959         <ebb9@byu.net>.
18960
18961 2008-12-18  Bruno Haible  <bruno@clisp.org>
18962
18963         * m4/locale-ja.m4: New file, from GNU gettext.
18964
18965 2008-12-17  Bruno Haible  <bruno@clisp.org>
18966
18967         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
18968         Suggested by Eric Blake.
18969
18970 2008-12-17  Bruno Haible  <bruno@clisp.org>
18971
18972         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
18973
18974 2008-12-17  Bruno Haible  <bruno@clisp.org>
18975
18976         * lib/mbsinit.c: Include verify.h. Verify an assumption.
18977         * modules/mbsinit (Depends-on): Add verify.
18978         Suggested by Paul Eggert.
18979
18980 2008-12-17  Bruno Haible  <bruno@clisp.org>
18981
18982         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
18983         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
18984         gl_FUNC_MBRTOWC.
18985         * m4/mbiter.m4 (gl_MBITER): LIkewise.
18986         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
18987         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
18988         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
18989         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
18990         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
18991         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
18992         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
18993         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
18994         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
18995         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
18996         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
18997         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
18998         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
18999         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
19000         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
19001         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
19002         * modules/trim (configure.ac): Likewise.
19003
19004 2008-12-17  Bruno Haible  <bruno@clisp.org>
19005
19006         * modules/btowc-tests: New file.
19007         * tests/test-btowc1.sh: New file.
19008         * tests/test-btowc2.sh: New file.
19009         * tests/test-btowc.c: New file.
19010
19011         New module 'btowc'.
19012         * lib/wchar.in.h (btowc): New declaration.
19013         * lib/btowc.c: New file.
19014         * m4/btowc.m4: New file.
19015         * modules/btowc: New file.
19016         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
19017         HAVE_BTOWC.
19018         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
19019         * doc/posix-functions/btowc.texi: Document the new module.
19020
19021 2008-12-17  Bruno Haible  <bruno@clisp.org>
19022
19023         New module 'mbsinit'.
19024         * lib/wchar.in.h (mbsinit): New declaration.
19025         * lib/mbsinit.c: New file.
19026         * m4/mbsinit.m4: New file.
19027         * modules/mbsinit: New file.
19028         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
19029         HAVE_MBSINIT.
19030         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
19031         HAVE_MBSINIT.
19032         * doc/posix-functions/mbsinit.texi: Document the new module.
19033
19034 2008-12-16  Bruno Haible  <bruno@clisp.org>
19035
19036         * lib/unistd.in.h: Add comment.
19037         * tests/test-environ.c: Don't include <stdlib.h>.
19038
19039 2008-12-16  Bruno Haible  <bruno@clisp.org>
19040
19041         * lib/parse-duration.h (parse_duration): Document return value
19042         convention.
19043         * lib/parse-duration.c: Include specification header first. Add
19044         comments.
19045         (_): Remove macro.
19046         (parse_year_month_day, parse_hour_minute_second): Move side effects
19047         outside of strchr call.
19048         (parse_non_iso8601): Move side effects outside of isspace call.
19049         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
19050         call.
19051
19052 2008-12-16  Bruno Haible  <bruno@clisp.org>
19053
19054         * tests/test-parse-duration.sh: Produce no output when the test
19055         succeeds.
19056
19057 2008-12-16  Bruno Haible  <bruno@clisp.org>
19058
19059         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
19060         expressions.
19061
19062 2008-12-15  Bruno Haible  <bruno@clisp.org>
19063
19064         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
19065         * doc/glibc-functions/flistxattr.texi: Likewise.
19066         * doc/glibc-functions/fopencookie.texi: Likewise.
19067         * doc/glibc-functions/fremovexattr.texi: Likewise.
19068         * doc/glibc-functions/fsetxattr.texi: Likewise.
19069         * doc/glibc-functions/getxattr.texi: Likewise.
19070         * doc/glibc-functions/lgetxattr.texi: Likewise.
19071         * doc/glibc-functions/listxattr.texi: Likewise.
19072         * doc/glibc-functions/llistxattr.texi: Likewise.
19073         * doc/glibc-functions/lremovexattr.texi: Likewise.
19074         * doc/glibc-functions/lsetxattr.texi: Likewise.
19075         * doc/glibc-functions/removexattr.texi: Likewise.
19076         * doc/glibc-functions/setxattr.texi: Likewise.
19077         * doc/posix-functions/open_memstream.texi: Likewise.
19078
19079 2008-12-15  Eric Blake  <ebb9@byu.net>
19080
19081         Update doc for cygwin 1.7.
19082         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
19083         functions.
19084         * doc/posix-functions/fchmodat.texi: Likewise.
19085         * doc/posix-functions/fchownat.texi: Likewise.
19086         * doc/posix-functions/fdopendir.texi: Likewise.
19087         * doc/posix-functions/fmemopen.texi: Likewise.
19088         * doc/posix-functions/freeaddrinfo.texi: Likewise.
19089         * doc/posix-functions/fstatat.texi: Likewise.
19090         * doc/posix-functions/futimens.texi: Likewise.
19091         * doc/posix-functions/gai_strerror.texi: Likewise.
19092         * doc/posix-functions/getaddrinfo.texi: Likewise.
19093         * doc/posix-functions/getnameinfo.texi: Likewise.
19094         * doc/posix-functions/if_freenameindex.texi: Likewise.
19095         * doc/posix-functions/if_indextoname.texi: Likewise.
19096         * doc/posix-functions/if_nameindex.texi: Likewise.
19097         * doc/posix-functions/if_nametoindex.texi: Likewise.
19098         * doc/posix-functions/insque.texi: Likewise.
19099         * doc/posix-functions/linkat.texi: Likewise.
19100         * doc/posix-functions/llrint.texi: Likewise.
19101         * doc/posix-functions/llrintf.texi: Likewise.
19102         * doc/posix-functions/llrintl.texi: Likewise.
19103         * doc/posix-functions/lockf.texi: Likewise.
19104         * doc/posix-functions/lrintl.texi: Likewise.
19105         * doc/posix-functions/mkdirat.texi: Likewise.
19106         * doc/posix-functions/mkfifoat.texi: Likewise.
19107         * doc/posix-functions/mknodat.texi: Likewise.
19108         * doc/posix-functions/mq_close.texi: Likewise.
19109         * doc/posix-functions/mq_getattr.texi: Likewise.
19110         * doc/posix-functions/mq_notify.texi: Likewise.
19111         * doc/posix-functions/mq_open.texi: Likewise.
19112         * doc/posix-functions/mq_receive.texi: Likewise.
19113         * doc/posix-functions/mq_send.texi: Likewise.
19114         * doc/posix-functions/mq_setattr.texi: Likewise.
19115         * doc/posix-functions/mq_timedreceive.texi: Likewise.
19116         * doc/posix-functions/mq_timedsend.texi: Likewise.
19117         * doc/posix-functions/mq_unlink.texi: Likewise.
19118         * doc/posix-functions/open_memstream.texi: Likewise.
19119         * doc/posix-functions/openat.texi: Likewise.
19120         * doc/posix-functions/posix_fadvise.texi: Likewise.
19121         * doc/posix-functions/posix_fallocate.texi: Likewise.
19122         * doc/posix-functions/posix_madvise.texi: Likewise.
19123         * doc/posix-functions/posix_memalign.texi: Likewise.
19124         * doc/posix-functions/posix_openpt.texi: Likewise.
19125         * doc/posix-functions/readlinkat.texi: Likewise.
19126         * doc/posix-functions/remque.texi: Likewise.
19127         * doc/posix-functions/renameat.texi: Likewise.
19128         * doc/posix-functions/rintl.texi: Likewise.
19129         * doc/posix-functions/sem_unlink.texi: Likewise.
19130         * doc/posix-functions/shm_open.texi: Likewise.
19131         * doc/posix-functions/shm_unlink.texi: Likewise.
19132         * doc/posix-functions/signgam.texi: Likewise.
19133         * doc/posix-functions/sigset.texi: Likewise.
19134         * doc/posix-functions/stpcpy.texi: Likewise.
19135         * doc/posix-functions/stpncpy.texi: Likewise.
19136         * doc/posix-functions/strerror.texi: Likewise.
19137         * doc/posix-functions/strtod.texi: Likewise.
19138         * doc/posix-functions/symlinkat.texi: Likewise.
19139         * doc/posix-functions/unlinkat.texi: Likewise.
19140         * doc/posix-functions/utimensat.texi: Likewise.
19141         * doc/glibc-functions/bindresvport.texi: Likewise.
19142         * doc/glibc-functions/dn_expand.texi: Likewise.
19143         * doc/glibc-functions/exp10.texi: Likewise.
19144         * doc/glibc-functions/exp10f.texi: Likewise.
19145         * doc/glibc-functions/fgetxattr.texi: Likewise.
19146         * doc/glibc-functions/flistxattr.texi: Likewise.
19147         * doc/glibc-functions/fopencookie.texi: Likewise.
19148         * doc/glibc-functions/freeifaddrs.texi: Likewise.
19149         * doc/glibc-functions/fremovexattr.texi: Likewise.
19150         * doc/glibc-functions/fsetxattr.texi: Likewise.
19151         * doc/glibc-functions/getifaddrs.texi: Likewise.
19152         * doc/glibc-functions/getxattr.texi: Likewise.
19153         * doc/glibc-functions/lgetxattr.texi: Likewise.
19154         * doc/glibc-functions/listxattr.texi: Likewise.
19155         * doc/glibc-functions/llistxattr.texi: Likewise.
19156         * doc/glibc-functions/lremovexattr.texi: Likewise.
19157         * doc/glibc-functions/lsetxattr.texi: Likewise.
19158         * doc/glibc-functions/pow10.texi: Likewise.
19159         * doc/glibc-functions/pow10f.texi: Likewise.
19160         * doc/glibc-functions/rcmd_af.texi: Likewise.
19161         * doc/glibc-functions/removexattr.texi: Likewise.
19162         * doc/glibc-functions/res_init.texi: Likewise.
19163         * doc/glibc-functions/res_mkquery.texi: Likewise.
19164         * doc/glibc-functions/res_query.texi: Likewise.
19165         * doc/glibc-functions/res_querydomain.texi: Likewise.
19166         * doc/glibc-functions/res_send.texi: Likewise.
19167         * doc/glibc-functions/rresvport_af.texi: Likewise.
19168         * doc/glibc-functions/setxattr.texi: Likewise.
19169         * doc/glibc-functions/strcasestr.texi: Likewise.
19170
19171 2008-12-15  Bruno Haible  <bruno@clisp.org>
19172
19173         Fix compilation error on OSF/1 4.0.
19174         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
19175         <sys/time.h>, simply delegate to the system header.
19176         Reported by Daniel Richard G. <oss@teragram.com>.
19177
19178 2008-12-15  Bruno Haible  <bruno@clisp.org>
19179
19180         * doc/posix-functions/openat.texi: Mention the 'openat' module.
19181         * doc/posix-functions/fchmodat.texi: Likewise.
19182         * doc/posix-functions/fchownat.texi: Likewise.
19183         * doc/posix-functions/fdopendir.texi: Likewise.
19184         * doc/posix-functions/fstatat.texi: Likewise.
19185         * doc/posix-functions/mkdirat.texi: Likewise.
19186         * doc/posix-functions/unlinkat.texi: Likewise.
19187
19188 2008-12-14  Bruno Haible  <bruno@clisp.org>
19189
19190         Update doc for POSIX:2008.
19191         * doc/posix-functions/faccessat.texi: New file.
19192         * doc/posix-functions/fchmodat.texi: New file.
19193         * doc/posix-functions/fchownat.texi: New file.
19194         * doc/posix-functions/fdopendir.texi: New file.
19195         * doc/posix-functions/fstatat.texi: New file.
19196         * doc/posix-functions/futimens.texi: New file.
19197         * doc/posix-functions/linkat.texi: New file.
19198         * doc/posix-functions/mkdirat.texi: New file.
19199         * doc/posix-functions/mkfifoat.texi: New file.
19200         * doc/posix-functions/mknodat.texi: New file.
19201         * doc/posix-functions/open_wmemstream.texi: New file.
19202         * doc/posix-functions/openat.texi: New file.
19203         * doc/posix-functions/psiginfo.texi: New file.
19204         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
19205         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
19206         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
19207         * doc/posix-functions/readlinkat.texi: New file.
19208         * doc/posix-functions/renameat.texi: New file.
19209         * doc/posix-functions/strerror_l.texi: New file.
19210         * doc/posix-functions/symlinkat.texi: New file.
19211         * doc/posix-functions/unlinkat.texi: New file.
19212         * doc/posix-functions/utimensat.texi: New file.
19213         * doc/gnulib.texi (Function Substitutes): Add these subsections.
19214
19215 2008-12-14  Bruno Haible  <bruno@clisp.org>
19216
19217         Update doc for POSIX:2008.
19218         * doc/posix-functions/alphasort.texi: Renamed from
19219         doc/glibc-functions/alphasort.texi.
19220         * doc/posix-functions/dirfd.texi: Renamed from
19221         doc/glibc-functions/dirfd.texi.
19222         * doc/posix-functions/dprintf.texi: Renamed from
19223         doc/glibc-functions/dprintf.texi.
19224         * doc/posix-functions/duplocale.texi: Renamed from
19225         doc/glibc-functions/duplocale.texi.
19226         * doc/posix-functions/fexecve.texi: Renamed from
19227         doc/glibc-functions/fexecve.texi.
19228         * doc/posix-functions/fmemopen.texi: Renamed from
19229         doc/glibc-functions/fmemopen.texi.
19230         * doc/posix-functions/freelocale.texi: Renamed from
19231         doc/glibc-functions/freelocale.texi.
19232         * doc/posix-functions/getdate_err.texi: Renamed from
19233         doc/glibc-functions/getdate_err.texi.
19234         * doc/posix-functions/isalnum_l.texi: Renamed from
19235         doc/glibc-functions/isalnum_l.texi.
19236         * doc/posix-functions/isalpha_l.texi: Renamed from
19237         doc/glibc-functions/isalpha_l.texi.
19238         * doc/posix-functions/isblank_l.texi: Renamed from
19239         doc/glibc-functions/isblank_l.texi.
19240         * doc/posix-functions/iscntrl_l.texi: Renamed from
19241         doc/glibc-functions/iscntrl_l.texi.
19242         * doc/posix-functions/isdigit_l.texi: Renamed from
19243         doc/glibc-functions/isdigit_l.texi.
19244         * doc/posix-functions/isgraph_l.texi: Renamed from
19245         doc/glibc-functions/isgraph_l.texi.
19246         * doc/posix-functions/islower_l.texi: Renamed from
19247         doc/glibc-functions/islower_l.texi.
19248         * doc/posix-functions/isprint_l.texi: Renamed from
19249         doc/glibc-functions/isprint_l.texi.
19250         * doc/posix-functions/ispunct_l.texi: Renamed from
19251         doc/glibc-functions/ispunct_l.texi.
19252         * doc/posix-functions/isspace_l.texi: Renamed from
19253         doc/glibc-functions/isspace_l.texi.
19254         * doc/posix-functions/isupper_l.texi: Renamed from
19255         doc/glibc-functions/isupper_l.texi.
19256         * doc/posix-functions/iswalnum_l.texi: Renamed from
19257         doc/glibc-functions/iswalnum_l.texi.
19258         * doc/posix-functions/iswalpha_l.texi: Renamed from
19259         doc/glibc-functions/iswalpha_l.texi.
19260         * doc/posix-functions/iswblank_l.texi: Renamed from
19261         doc/glibc-functions/iswblank_l.texi.
19262         * doc/posix-functions/iswcntrl_l.texi: Renamed from
19263         doc/glibc-functions/iswcntrl_l.texi.
19264         * doc/posix-functions/iswctype_l.texi: Renamed from
19265         doc/glibc-functions/iswctype_l.texi.
19266         * doc/posix-functions/iswdigit_l.texi: Renamed from
19267         doc/glibc-functions/iswdigit_l.texi.
19268         * doc/posix-functions/iswgraph_l.texi: Renamed from
19269         doc/glibc-functions/iswgraph_l.texi.
19270         * doc/posix-functions/iswlower_l.texi: Renamed from
19271         doc/glibc-functions/iswlower_l.texi.
19272         * doc/posix-functions/iswprint_l.texi: Renamed from
19273         doc/glibc-functions/iswprint_l.texi.
19274         * doc/posix-functions/iswpunct_l.texi: Renamed from
19275         doc/glibc-functions/iswpunct_l.texi.
19276         * doc/posix-functions/iswspace_l.texi: Renamed from
19277         doc/glibc-functions/iswspace_l.texi.
19278         * doc/posix-functions/iswupper_l.texi: Renamed from
19279         doc/glibc-functions/iswupper_l.texi.
19280         * doc/posix-functions/iswxdigit_l.texi: Renamed from
19281         doc/glibc-functions/iswxdigit_l.texi.
19282         * doc/posix-functions/isxdigit_l.texi: Renamed from
19283         doc/glibc-functions/isxdigit_l.texi.
19284         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
19285         doc/glibc-functions/mbsnrtowcs.texi.
19286         * doc/posix-functions/mkdtemp.texi: Renamed from
19287         doc/glibc-functions/mkdtemp.texi.
19288         * doc/posix-functions/newlocale.texi: Renamed from
19289         doc/glibc-functions/newlocale.texi.
19290         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
19291         doc/glibc-functions/nl_langinfo_l.texi.
19292         * doc/posix-functions/open_memstream.texi: Renamed from
19293         doc/glibc-functions/open_memstream.texi.
19294         * doc/posix-functions/opterr.texi: Renamed from
19295         doc/glibc-functions/opterr.texi.
19296         * doc/posix-functions/optind.texi: Renamed from
19297         doc/glibc-functions/optind.texi.
19298         * doc/posix-functions/optopt.texi: Renamed from
19299         doc/glibc-functions/optopt.texi.
19300         * doc/posix-functions/psignal.texi: Renamed from
19301         doc/glibc-functions/psignal.texi.
19302         * doc/posix-functions/scandir.texi: Renamed from
19303         doc/glibc-functions/scandir.texi.
19304         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
19305         doc/glibc-functions/sched_get_priority_min.texi.
19306         * doc/posix-functions/signgam.texi: Renamed from
19307         doc/glibc-functions/signgam.texi.
19308         * doc/posix-functions/stpcpy.texi: Renamed from
19309         doc/glibc-functions/stpcpy.texi.
19310         * doc/posix-functions/stpncpy.texi: Renamed from
19311         doc/glibc-functions/stpncpy.texi.
19312         * doc/posix-functions/strcasecmp_l.texi: Renamed from
19313         doc/glibc-functions/strcasecmp_l.texi.
19314         * doc/posix-functions/strcoll_l.texi: Renamed from
19315         doc/glibc-functions/strcoll_l.texi.
19316         * doc/posix-functions/strfmon_l.texi: Renamed from
19317         doc/glibc-functions/strfmon_l.texi.
19318         * doc/posix-functions/strftime_l.texi: Renamed from
19319         doc/glibc-functions/strftime_l.texi.
19320         * doc/posix-functions/strncasecmp_l.texi: Renamed from
19321         doc/glibc-functions/strncasecmp_l.texi.
19322         * doc/posix-functions/strndup.texi: Renamed from
19323         doc/glibc-functions/strndup.texi.
19324         * doc/posix-functions/strnlen.texi: Renamed from
19325         doc/glibc-functions/strnlen.texi.
19326         * doc/posix-functions/strsignal.texi: Renamed from
19327         doc/glibc-functions/strsignal.texi.
19328         * doc/posix-functions/strxfrm_l.texi: Renamed from
19329         doc/glibc-functions/strxfrm_l.texi.
19330         * doc/posix-functions/timer_gettime.texi: Renamed from
19331         doc/glibc-functions/timer_gettime.texi.
19332         * doc/posix-functions/tolower_l.texi: Renamed from
19333         doc/glibc-functions/tolower_l.texi.
19334         * doc/posix-functions/toupper_l.texi: Renamed from
19335         doc/glibc-functions/toupper_l.texi.
19336         * doc/posix-functions/towctrans_l.texi: Renamed from
19337         doc/glibc-functions/towctrans_l.texi.
19338         * doc/posix-functions/towlower_l.texi: Renamed from
19339         doc/glibc-functions/towlower_l.texi.
19340         * doc/posix-functions/towupper_l.texi: Renamed from
19341         doc/glibc-functions/towupper_l.texi.
19342         * doc/posix-functions/uselocale.texi: Renamed from
19343         doc/glibc-functions/uselocale.texi.
19344         * doc/posix-functions/vdprintf.texi: Renamed from
19345         doc/glibc-functions/vdprintf.texi.
19346         * doc/posix-functions/wcpcpy.texi:
19347         Renamed from doc/glibc-functions/wcpcpy.texi.
19348         * doc/posix-functions/wcpncpy.texi: Renamed from
19349         doc/glibc-functions/wcpncpy.texi.
19350         * doc/posix-functions/wcscasecmp.texi: Renamed from
19351         doc/glibc-functions/wcscasecmp.texi.
19352         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
19353         doc/glibc-functions/wcscasecmp_l.texi.
19354         * doc/posix-functions/wcscoll_l.texi: Renamed from
19355         doc/glibc-functions/wcscoll_l.texi.
19356         * doc/posix-functions/wcsdup.texi: Renamed from
19357         doc/glibc-functions/wcsdup.texi.
19358         * doc/posix-functions/wcsncasecmp.texi: Renamed from
19359         doc/glibc-functions/wcsncasecmp.texi.
19360         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
19361         doc/glibc-functions/wcsncasecmp_l.texi.
19362         * doc/posix-functions/wcsnlen.texi: Renamed from
19363         doc/glibc-functions/wcsnlen.texi.
19364         * doc/posix-functions/wcsnrtombs.texi: Renamed from
19365         doc/glibc-functions/wcsnrtombs.texi.
19366         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
19367         doc/glibc-functions/wcsxfrm_l.texi.
19368         * doc/posix-functions/wctrans_l.texi: Renamed from
19369         doc/glibc-functions/wctrans_l.texi.
19370         * doc/posix-functions/wctype_l.texi: Renamed from
19371         doc/glibc-functions/wctype_l.texi.
19372         * doc/gnulib.texi (Function Substitutes): Add these subsections.
19373         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
19374         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
19375         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
19376         these subsections.
19377         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
19378         Remove sections.
19379
19380 2008-12-14  Bruno Haible  <bruno@clisp.org>
19381
19382         Update doc for POSIX:2008.
19383         * doc/posix-functions/*.texi: Update URL of POSIX specification.
19384
19385 2008-12-14  Bruno Haible  <bruno@clisp.org>
19386
19387         Update doc for POSIX:2008.
19388         * doc/pastposix-functions/bcmp.texi: Renamed from
19389         doc/posix-functions/bcmp.texi.
19390         * doc/pastposix-functions/bcopy.texi: Renamed from
19391         doc/posix-functions/bcopy.texi.
19392         * doc/pastposix-functions/bsd_signal.texi: Renamed from
19393         doc/posix-functions/bsd_signal.texi.
19394         * doc/pastposix-functions/bzero.texi: Renamed from
19395         doc/posix-functions/bzero.texi.
19396         * doc/pastposix-functions/ecvt.texi: Renamed from
19397         doc/posix-functions/ecvt.texi.
19398         * doc/pastposix-functions/fcvt.texi: Renamed from
19399         doc/posix-functions/fcvt.texi.
19400         * doc/pastposix-functions/ftime.texi: Renamed from
19401         doc/posix-functions/ftime.texi.
19402         * doc/pastposix-functions/gcvt.texi: Renamed from
19403         doc/posix-functions/gcvt.texi.
19404         * doc/pastposix-functions/getcontext.texi: Renamed from
19405         doc/posix-functions/getcontext.texi.
19406         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
19407         doc/posix-functions/gethostbyaddr.texi.
19408         * doc/pastposix-functions/gethostbyname.texi: Renamed from
19409         doc/posix-functions/gethostbyname.texi.
19410         * doc/pastposix-functions/getwd.texi: Renamed from
19411         doc/posix-functions/getwd.texi.
19412         * doc/pastposix-functions/h_errno.texi: Renamed from
19413         doc/posix-functions/h_errno.texi.
19414         * doc/pastposix-functions/index.texi: Renamed from
19415         doc/posix-functions/index.texi.
19416         * doc/pastposix-functions/makecontext.texi: Renamed from
19417         doc/posix-functions/makecontext.texi.
19418         * doc/pastposix-functions/mktemp.texi: Renamed from
19419         doc/posix-functions/mktemp.texi.
19420         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
19421         doc/posix-functions/pthread_attr_getstackaddr.texi.
19422         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
19423         doc/posix-functions/pthread_attr_setstackaddr.texi.
19424         * doc/pastposix-functions/rindex.texi: Renamed from
19425         doc/posix-functions/rindex.texi.
19426         * doc/pastposix-functions/scalb.texi: Renamed from
19427         doc/posix-functions/scalb.texi.
19428         * doc/pastposix-functions/setcontext.texi: Renamed from
19429         doc/posix-functions/setcontext.texi.
19430         * doc/pastposix-functions/swapcontext.texi: Renamed from
19431         doc/posix-functions/swapcontext.texi.
19432         * doc/pastposix-functions/ualarm.texi: Renamed from
19433         doc/posix-functions/ualarm.texi.
19434         * doc/pastposix-functions/usleep.texi: Renamed from
19435         doc/posix-functions/usleep.texi.
19436         * doc/pastposix-functions/vfork.texi: Renamed from
19437         doc/posix-functions/vfork.texi.
19438         * doc/pastposix-functions/wcswcs.texi: Renamed from
19439         doc/posix-functions/wcswcs.texi.
19440         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
19441         (Function Substitutes): Update.
19442
19443 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19444
19445         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
19446         m4/strerror.m4.
19447
19448 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19449             Bruno Haible  <bruno@clisp.org>
19450
19451         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
19452
19453 2008-12-13  Bruno Haible  <bruno@clisp.org>
19454
19455         * modules/strtoull (Depends-on): Remove unistd.
19456
19457 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19458
19459         * modules/strtoull (Depends-on): Add stdlib.
19460
19461 2008-12-11  Simon Josefsson  <simon@josefsson.org>
19462
19463         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
19464
19465 2008-12-10  Jim Meyering  <meyering@redhat.com>
19466
19467         gl_ASSERT: don't say assertions are disabled when they're not
19468         * m4/assert.m4 (gl_ASSERT): Do not make configure report
19469         "checking whether to enable assertions... no", when they are in
19470         fact enabled.  This is solely a bug in the output of configure.
19471         In spite of saying "no", NDEBUG was not defined in that case.
19472         Also, as noted by Eric Blake, leave assertions enabled upon
19473         --enable-assert=INVALID.
19474
19475 2008-12-10  Bruno Haible  <bruno@clisp.org>
19476
19477         Change MODULES.html to refer to POSIX:2008 where possible.
19478         * MODULES.html.sh (POSIX2008_URL): New variable.
19479         (posix_headers): Remove sys/timeb, ucontext.
19480         (posix2001_headers): New variable.
19481         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
19482         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
19483         index, makecontext, mktemp, pthread_attr_getstackaddr,
19484         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
19485         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
19486         (posix2001_functions): New variable.
19487         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
19488         otherwise.
19489
19490 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19491
19492         add missing include to parse-duration.c
19493         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
19494         * modules/parse-duration (Depends-on): Add xalloc.
19495
19496         fix sed script reading maint.mk
19497         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
19498         (syntax-check-rules): Use it.
19499
19500 2008-12-09  Bruno Haible  <bruno@clisp.org>
19501
19502         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
19503         MacOS X 10.4/PowerPC.
19504         Reported by Simon Josefsson.
19505
19506 2008-12-08  Jim Meyering  <meyering@redhat.com>
19507
19508         work around mingw's lack of some S_IF definitions
19509         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
19510         Reported by Simon Josefsson.
19511
19512 2008-12-08  Bruno Haible  <bruno@clisp.org>
19513
19514         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
19515         applied to variables. Needed on MacOS X 10.4/PowerPC.
19516         Reported by Simon Josefsson.
19517
19518 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
19519         and Eric Blake  <ebb9@byu.net>
19520
19521         assert: honor --enable-assert
19522         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
19523         order to honor --enable-assert, rather than treating it as a
19524         synonym for --disable-assert.
19525
19526 2008-12-08  Jim Meyering  <meyering@redhat.com>
19527
19528         * lib/posixtm.c: Remove now-useless declaration of mktime.
19529
19530         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
19531
19532 2008-12-07  Bruno Haible  <bruno@clisp.org>
19533
19534         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
19535         test_once): Mark functions as static.
19536         * tests/test-tls.c (test_tls): Likewise.
19537
19538 2008-12-07  Bruno Haible  <bruno@clisp.org>
19539
19540         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
19541         iconv_register_autodetect.
19542
19543 2008-12-07  Jim Meyering  <meyering@redhat.com>
19544
19545         posixtm.c: avoid a warning
19546         * lib/posixtm.c (posixtime): Don't initialize tm0.
19547         It's no longer needed to placate gcc4's -Wuninitialized,
19548         and the attempt to placate would elicit a new warning.
19549
19550         unicodeio.c: mark unused parameters
19551         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
19552         (fallback_failure_callback): Likewise.
19553
19554 2008-12-07  Bruno Haible  <bruno@clisp.org>
19555
19556         * gnulib-tool (func_create_testdir): When building the tests
19557         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
19558         Reported by Simon Josefsson.
19559
19560 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19561
19562         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
19563
19564 2008-12-06  Bruno Haible  <bruno@clisp.org>
19565
19566         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
19567         Suggested by Eric Blake.
19568
19569 2008-12-06  Bruno Haible  <bruno@clisp.org>
19570
19571         Fix a c-stack test failure on MacOS X.
19572         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
19573         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
19574         handler for SIGBUS as well.
19575         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
19576         install a signal handler for SIGBUS as well.
19577         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
19578
19579 2008-12-06  Bruno Haible  <bruno@clisp.org>
19580
19581         Advocacy documentation.
19582         * doc/gnulib-intro.texi (Benefits): New section.
19583         * doc/gnulib.texi: Update.
19584
19585 2008-12-06  Bruno Haible  <bruno@clisp.org>
19586
19587         Document the 'manywarnings' module.
19588         * doc/manywarnings.texi: New file.
19589         * doc/gnulib.texi: Include it.
19590
19591 2008-12-05  Eric Blake  <ebb9@byu.net>
19592
19593         tests: silence some gcc warnings
19594         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
19595         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
19596         type mismatches.
19597
19598 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19599             Bruno Haible  <bruno@clisp.org>
19600
19601         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
19602
19603 2008-11-29  Jim Meyering  <meyering@redhat.com>
19604
19605         unicodeio.c: mark unused parameters
19606         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
19607         (fallback_failure_callback): Likewise.
19608
19609         fts: fix a thinko
19610         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
19611         (set_stat_type): Return S_IF*-valued "type" directly.
19612         Prompted by James Youngman's spotting a related bug.
19613         Confirmed by further testing through find.
19614
19615         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
19616         * lib/fts.c (D_TYPE): Define.
19617         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
19618         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
19619         (s_ifmt_shift_bits): New function.
19620         (set_stat_type): New function.
19621         (fts_build): When not calling fts_stat, call set_stat_type
19622         to propagate dirent.d_type info to fts_read caller.
19623         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
19624         fts_statp->st_mode type information may be valid.
19625
19626 2008-11-28  Simon Josefsson  <simon@josefsson.org>
19627
19628         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
19629         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
19630         <sds@gnu.org>.
19631
19632 2008-11-20  Bruno Haible  <bruno@clisp.org>
19633
19634         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
19635         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
19636         INCLUDE_NEXT.
19637         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
19638         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
19639         * modules/math (Makefile.am): Substitute
19640         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
19641         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19642
19643 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
19644             Bruno Haible  <bruno@clisp.org>
19645
19646         * lib/stdint.in.h: Define all type macros so that their expansion is
19647         a single typedef'ed token. Fixes a compilation failure in Boost which
19648         does "using ::int8_t;".
19649
19650 2008-11-18  Simon Josefsson  <simon@josefsson.org>
19651
19652         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
19653         gl_MANYWARN_ALL_GCC.
19654         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
19655         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
19656         * modules/manywarnings: New file.
19657         * MODULES.html.sh: Mention manywarnings module.
19658
19659 2008-11-18  Bruno Haible  <bruno@clisp.org>
19660
19661         * doc/gnulib-tool.texi (Unit tests): New section.
19662
19663 2008-11-18  Simon Josefsson  <simon@josefsson.org>
19664
19665         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
19666         paths like 'lib/po/foo.po'.
19667
19668 2008-11-17  Simon Josefsson  <simon@josefsson.org>
19669
19670         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
19671         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
19672
19673 2008-11-17  Simon Josefsson  <simon@josefsson.org>
19674
19675         * m4/warnings.m4: Use CPPFLAGS to really check whether the
19676         parameter works.
19677
19678 2008-11-17  Simon Josefsson  <simon@josefsson.org>
19679
19680         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
19681
19682 2008-11-17  Bruce Korb  <bkorb@gnu.org>
19683
19684         * modules/parse-duration-tests: New file.
19685         * tests/test-parse-duration.sh: New file.
19686         * tests/test-parse-duration.c: New file.
19687
19688         New module 'parse-duration'.
19689         * lib/parse-duration.h: New file.
19690         * lib/parse-duration.c: New file.
19691         * modules/parse-duration: New file.
19692
19693 2008-11-17  Bruno Haible  <bruno@clisp.org>
19694
19695         * tests/test-select-out.sh: Comment out the first pipe test.
19696         Reported by Simon Josefsson.
19697
19698 2008-11-17  Bruno Haible  <bruno@clisp.org>
19699
19700         * modules/getaddrinfo (Depends-on): Add servent, hostent.
19701         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
19702         gl_HOSTENT.
19703
19704 2008-11-17  Bruno Haible  <bruno@clisp.org>
19705
19706         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
19707         -lnetwork and -lnet. Needed for Haiku and BeOS.
19708
19709 2008-11-16  Bruno Haible  <bruno@clisp.org>
19710
19711         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
19712
19713 2008-11-16  Bruno Haible  <bruno@clisp.org>
19714
19715         Avoid test failure on Haiku.
19716         * tests/test-fsync.c: Include <errno.h>.
19717         (main): Don't require that fsync (0) fails.
19718
19719 2008-11-15  Bruno Haible  <bruno@clisp.org>
19720
19721         New module 'hostent'.
19722         * modules/hostent: New file.
19723         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
19724
19725 2008-11-15  Bruno Haible  <bruno@clisp.org>
19726
19727         New module 'servent'.
19728         * modules/servent: New file.
19729         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
19730
19731 2008-11-15  Bruno Haible  <bruno@clisp.org>
19732
19733         Avoid generating same test program with two different rules.
19734         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
19735         test-frexp to test-frexp-nolibm.
19736         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
19737         test-frexpl to test-frexpl-nolibm.
19738
19739 2008-11-15  Bruno Haible  <bruno@clisp.org>
19740
19741         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
19742         $(FREXPL_LIBM).
19743
19744 2008-11-15  Bruno Haible  <bruno@clisp.org>
19745
19746         * lib/netdb.in.h: Activate the definitions also when the system's
19747         <netdb.h> has 'struct addrinfo'.
19748         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
19749         EAI_OVERFLOW or AI_NUMERICSERV.
19750         * doc/posix-headers/netdb.texi: Document the problem.
19751
19752 2008-11-15  Bruno Haible  <bruno@clisp.org>
19753
19754         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
19755
19756         Make the 'sched' module work on platforms where <sched.h> exists but
19757         is incomplete (such as Haiku).
19758         * lib/sched.in.h; Include the system's <sched.h> if it exists.
19759         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
19760         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
19761         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
19762         HAVE_STRUCT_SCHED_PARAM.
19763         * modules/sched (Depends-on): Add include_next.
19764         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
19765         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
19766         * doc/posix-headers/sched.texi: Document the issue.
19767
19768 2008-11-13  Jim Meyering  <meyering@redhat.com>
19769
19770         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
19771         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
19772         test would fail due to the difference in the Report bugs to ...
19773         line.  The expected address is empty, "<>", while the actual
19774         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
19775
19776 2008-11-12  Bruno Haible  <bruno@clisp.org>
19777
19778         lstat: don't compile lstat.c on systems lacking lstat
19779         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
19780         which don't have lstat; this is handled by lib/sys_stat.in.h already.
19781         Reported by Daniel P. Berrange via Jim Meyering.
19782
19783 2008-11-12  Jim Meyering  <meyering@redhat.com>
19784
19785         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
19786
19787 2008-11-12  Simon Josefsson  <simon@josefsson.org>
19788
19789         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
19790         instead.
19791
19792 2008-11-12  Bruno Haible  <bruno@clisp.org>
19793
19794         * lib/unicodeio.c: Include unistr.h.
19795         (utf8_wctomb): Remove function.
19796         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
19797
19798 2008-11-12  Simon Josefsson  <simon@josefsson.org>
19799
19800         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
19801         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
19802         <bruno@clisp.org>.
19803         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
19804
19805 2008-11-12  Simon Josefsson  <simon@josefsson.org>
19806
19807         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
19808         * doc/gnulib.texi: Add section for warnings.
19809
19810 2008-11-11  Bruno Haible  <bruno@clisp.org>
19811
19812         * lib/sockets.h: Add a comment.
19813
19814 2008-11-11  Karl Berry  <karl@gnu.org>
19815
19816         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
19817
19818 2008-11-11  Eric Blake  <ebb9@byu.net>
19819
19820         fdl.texi: avoid git symlinks
19821         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
19822
19823 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19824
19825         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
19826
19827 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19828
19829         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
19830         (gl_WARN_ADD): Substitute $2 if literal.
19831
19832 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19833
19834         * m4/warning.m4: Remove.
19835
19836 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19837
19838         * m4/warnings.m4: Almost complete rewrite. :-)
19839
19840 2008-11-10  Simon Josefsson  <simon@josefsson.org>
19841
19842         * modules/warnings: New module.
19843         * m4/warnings.m4: New file.
19844         * MODULES.html.sh: Mention warnings module.
19845         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
19846         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19847
19848 2008-11-10  Eric Blake  <ebb9@byu.net>
19849
19850         fdl.texi: make a symlink to the latest version
19851         * doc/standards.texi: Revert today's earlier change.
19852         * doc/fdl-1.2.texi: Rename from old fdl.texi...
19853         * doc/fdl.texi: ...and replace this with a symlink to the newer
19854         fdl-1.3.texi.
19855
19856 2008-11-10  Bruno Haible  <bruno@clisp.org>
19857
19858         * tests/test-select-fd.c (main): Accept the result file name as fourth
19859         argument.
19860         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
19861         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
19862
19863 2008-11-10  Bruno Haible  <bruno@clisp.org>
19864
19865         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
19866         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
19867         as autoconf-substituted macros.
19868         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
19869         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
19870         gl_NETDB_H_DEFAULTS. Set these variables.
19871         * modules/netdb (Makefile.am): Substitute these variables.
19872
19873 2008-11-10  Eric Blake  <ebb9@byu.net>
19874
19875         standards.texi: include correct file for FDL 1.3
19876         * doc/standards.texi (GNU Free Documentation License): Change
19877         include file to pull in FDL 1.3, not 1.2.
19878
19879         fdl.texi: revert accidental change to license
19880         * doc/fdl.texi: This is FDL 1.2, not 1.3.
19881
19882 2008-11-10  Bruno Haible  <bruno@clisp.org>
19883
19884         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
19885         cross-compiling guesses also when the native compile gives no result.
19886
19887 2008-11-10  Bruno Haible  <bruno@clisp.org>
19888
19889         * lib/spawni.c (__spawni): Force variable into the stack.
19890
19891 2008-11-10  Bruno Haible  <bruno@clisp.org>
19892
19893         Add support for Haiku.
19894         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
19895         glibc and BeOS, but also on Haiku.
19896         * lib/fpurge.c (fpurge): Likewise.
19897         * lib/freadable.c (freadable): Likewise.
19898         * lib/freadahead.c (freadahead): Likewise.
19899         * lib/freading.c (freading): Likewise.
19900         * lib/freadptr.c (freadptr): Likewise.
19901         * lib/freadseek.c (freadptrinc): Likewise.
19902         * lib/fseeko.c (rpl_fseeko): Likewise.
19903         * lib/fseterr.c (fseterr): Likewise.
19904         * lib/fwritable.c (fwritable): Likewise.
19905         * lib/fwriting.c (fwriting): Likewise.
19906         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
19907
19908 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
19909
19910         * lib/config.charset: Treat Haiku like BeOS.
19911
19912 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
19913
19914         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
19915         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
19916
19917 2008-11-08  Bruno Haible  <bruno@clisp.org>
19918
19919         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
19920         AC_CACHE_CHECK.
19921
19922 2008-11-08  Bruno Haible  <bruno@clisp.org>
19923
19924         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
19925
19926 2008-11-08  Bruno Haible  <bruno@clisp.org>
19927
19928         * tests/test-select-fd.c: New file.
19929         * tests/test-select-in.sh: New file.
19930         * tests/test-select-out.sh: New file.
19931         * tests/test-select-stdin.c: New file.
19932         * modules/select-tests (Files): Add the new files.
19933         (Depends-on): Add gettimeofday.
19934         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
19935         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
19936         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
19937
19938 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
19939             Bruno Haible  <bruno@clisp.org>
19940
19941         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
19942
19943 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
19944
19945         * build-aux/pmccabe2html: Added support for C++ source files.
19946
19947 2008-11-05  Ben Pfaff  <blp@gnu.org>
19948
19949         Fix lib/close.c build on Windows.
19950         * modules/close (Files): Add lib/w32sock.h.
19951
19952 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
19953
19954         Accept Bison's NEWS format.
19955         * build-aux/announce-gen (print_news_deltas): Tweak
19956         $re_prefix.
19957
19958 2008-11-04  Bruno Haible  <bruno@clisp.org>
19959
19960         * modules/random_r (Maintainer): Add glibc.
19961
19962 2008-11-04  Simon Josefsson  <simon@josefsson.org>
19963
19964         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
19965         by karl@freefriends.org (Karl Berry).
19966         * doc/alloca.texi: Likewise.
19967         * doc/c-ctype.texi: Likewise.
19968         * doc/c-strcase.texi: Likewise.
19969         * doc/c-strcaseeq.texi: Likewise.
19970         * doc/c-strcasestr.texi: Likewise.
19971         * doc/c-strstr.texi: Likewise.
19972         * doc/c-strtod.texi: Likewise.
19973         * doc/c-strtold.texi: Likewise.
19974         * doc/ctime.texi: Likewise.
19975         * doc/error.texi: Likewise.
19976         * doc/fdl.texi: Likewise.
19977         * doc/gcd.texi: Likewise.
19978         * doc/getdate.texi: Likewise.
19979         * doc/gnulib-intro.texi: Likewise.
19980         * doc/gnulib-tool.texi: Likewise.
19981         * doc/gnulib.texi: Likewise.
19982         * doc/inet_ntoa.texi: Likewise.
19983         * doc/maintain.texi: Likewise.
19984         * doc/make-stds.texi: Likewise.
19985         * doc/quote.texi: Likewise.
19986         * doc/regexprops-generic.texi: Likewise.
19987         * doc/standards.texi: Likewise.
19988         * doc/verify.texi: Likewise.
19989         * doc/visibility.texi: Likewise.
19990         * doc/gnulib.texi (GNU Free Documentation License): Include
19991         fdl-1.3.texi instead of fdl.texi.
19992
19993 2008-11-04  Simon Josefsson  <simon@josefsson.org>
19994
19995         * doc/fdl-1.3.texi: New file, from
19996         <http://www.gnu.org/licenses/fdl-1.3.texi>.
19997         * modules/fdl-1.3: Add.
19998         * MODULES.html.sh: Add fdl-1.3.
19999
20000 2008-11-03  Bruno Haible  <bruno@clisp.org>
20001
20002         Make determination of absolute name of header file work with AIX xlc.
20003         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
20004         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
20005         preprocessing.
20006         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
20007         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
20008
20009 2008-11-03  Simon Josefsson  <simon@josefsson.org>
20010
20011         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
20012         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
20013         <ludo@gnu.org>.
20014
20015 2008-11-02  Bruno Haible  <bruno@clisp.org>
20016
20017         Mark 'strpbrk' obsolete.
20018         * modules/strpbrk (Status, Notice): New sections.
20019         * modules/strtok_r (Depends-on): Add strpbrk.
20020
20021 2008-11-02  Bruno Haible  <bruno@clisp.org>
20022
20023         Mark 'strdup' obsolete.
20024         * modules/strdup (Status, Notice): New sections.
20025         * modules/findprog (Depends-on): Add strdup.
20026         * modules/getaddrinfo (Depends-on): Likewise.
20027         * modules/localename (Depends-on): Likewise.
20028         * modules/relocatable-lib (Depends-on): Likewise.
20029         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
20030         * modules/relocatable-prog (Depends-on): Likewise.
20031         * modules/trim (Depends-on): Likewise.
20032         * modules/unictype/gen-ctype (Depends-on): Likewise.
20033         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
20034
20035 2008-11-02  Bruno Haible  <bruno@clisp.org>
20036
20037         Mark 'strcspn' obsolete.
20038         * modules/strcspn (Status, Notice): New sections.
20039
20040 2008-11-02  Bruno Haible  <bruno@clisp.org>
20041
20042         Mark 'rmdir' obsolete.
20043         * modules/rmdir (Status, Notice): New sections.
20044         * modules/clean-temp (Depends-on): Add rmdir.
20045         * modules/openat (Depends-on): Likewise.
20046
20047 2008-11-02  Bruno Haible  <bruno@clisp.org>
20048
20049         Mark 'raise' obsolete.
20050         * modules/raise (Status, Notice): New sections.
20051         (Include): Specify <signal.h>.
20052         * modules/stdio (Depends-on): Add raise.
20053         * modules/write (Depends-on): Likewise.
20054
20055 2008-11-02  Bruno Haible  <bruno@clisp.org>
20056
20057         Mark 'memset' obsolete.
20058         * modules/memset (Status, Notice): New sections.
20059
20060 2008-11-02  Bruno Haible  <bruno@clisp.org>
20061
20062         Mark 'memmove' obsolete.
20063         * modules/memmove (Status, Notice): New sections.
20064         * modules/argp (Depends-on): Add memmove.
20065         * modules/argz (Depends-on): Likewise.
20066         * modules/canonicalize (Depends-on): Likewise.
20067         * modules/canonicalize-lgpl (Depends-on): Likewise.
20068         * modules/fts (Depends-on): Likewise.
20069         * modules/getcwd (Depends-on): Likewise.
20070         * modules/human (Depends-on): Likewise.
20071         * modules/regex (Depends-on): Likewise.
20072         * modules/striconveh (Depends-on): Likewise.
20073         * modules/trim (Depends-on): Likewise.
20074         * modules/unistr/u8-move (Depends-on): Likewise.
20075         * modules/unistr/u16-move (Depends-on): Likewise.
20076         * modules/unistr/u32-move (Depends-on): Likewise.
20077
20078 2008-11-02  Bruno Haible  <bruno@clisp.org>
20079
20080         Mark 'memcpy' obsolete.
20081         * modules/memcpy (Status, Notice): New sections.
20082
20083 2008-11-02  Bruno Haible  <bruno@clisp.org>
20084
20085         Mark 'memcmp' obsolete.
20086         * modules/memcmp (Status, Notice): New sections.
20087         * modules/argmatch (Depends-on): Add memchr.
20088         * modules/backupfile (Depends-on): Likewise.
20089         * modules/c-strcasestr (Depends-on): Likewise.
20090         * modules/crypto/des (Depends-on): Likewise.
20091         * modules/csharpcomp (Depends-on): Likewise.
20092         * modules/fnmatch (Depends-on): Likewise.
20093         * modules/git-merge-changelog (Depends-on): Likewise.
20094         * modules/isnand (Depends-on): Likewise.
20095         * modules/isnand-nolibm (Depends-on): Likewise.
20096         * modules/isnanf (Depends-on): Likewise.
20097         * modules/isnanf-nolibm (Depends-on): Likewise.
20098         * modules/isnanl (Depends-on): Likewise.
20099         * modules/isnanl-nolibm (Depends-on): Likewise.
20100         * modules/mbchar (Depends-on): Likewise.
20101         * modules/memcoll (Depends-on): Likewise.
20102         * modules/quotearg (Depends-on): Likewise.
20103         * modules/regex (Depends-on): Likewise.
20104         * modules/relocatable-prog (Depends-on): Likewise.
20105         * modules/same (Depends-on): Likewise.
20106         * modules/signbit (Depends-on): Likewise.
20107         * modules/strcasestr-simple (Depends-on): Likewise.
20108         * modules/unictype/gen-ctype (Depends-on): Likewise.
20109         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
20110         * modules/uniname/uniname (Depends-on): Likewise.
20111         * modules/unistr/u8-cmp (Depends-on): Likewise.
20112
20113 2008-11-02  Bruno Haible  <bruno@clisp.org>
20114
20115         Mark 'memchr' obsolete.
20116         * modules/memchr (Status, Notice): New sections.
20117         * modules/argp (Depends-on): Add memchr.
20118         * modules/base64 (Depends-on): Likewise.
20119         * modules/c-strcasestr (Depends-on): Likewise.
20120         * modules/chdir-long (Depends-on): Likewise.
20121         * modules/fnmatch (Depends-on): Likewise.
20122         * modules/getsubopt (Depends-on): Likewise.
20123         * modules/git-merge-changelog (Depends-on): Likewise.
20124         * modules/glob (Depends-on): Likewise.
20125         * modules/strcasestr-simple (Depends-on): Likewise.
20126         * modules/strnlen (Depends-on): Likewise.
20127
20128 2008-11-02  Bruno Haible  <bruno@clisp.org>
20129
20130         Mark 'atexit' obsolete.
20131         * modules/atexit (Status, Notice): New sections.
20132         * modules/chdir-long (Depends-on): Add atexit.
20133         * modules/wait-process (Depends-on): Likewise.
20134
20135 2008-11-02  Bruno Haible  <bruno@clisp.org>
20136
20137         * gnulib-tool: New option --with-obsolete.
20138         (func_usage): Document it.
20139         (func_modules_transitive_closure): Drop obsolete dependencies if
20140         incobsolete is not true.
20141         (func_import): Read and save the incobsolete variable to the cache.
20142
20143 2008-11-02  Bruno Haible  <bruno@clisp.org>
20144
20145         * modules/TEMPLATE-EXTENDED: New field 'Status'.
20146         * gnulib-tool: New option --extract-status.
20147         (func_usage): Document it.
20148         (sed_extract_prog): Recognize it.
20149         (func_get_status): New function.
20150
20151 2008-10-30  Simon Josefsson  <simon@josefsson.org>
20152
20153         * modules/sockets (License): Change from LGPL to LGPLv2+.
20154
20155 2008-10-28  Simon Josefsson  <simon@josefsson.org>
20156
20157         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
20158
20159 2008-10-28  Simon Josefsson  <simon@josefsson.org>
20160
20161         * MODULES.html.sh (Support for systems lacking POSIX:2001):
20162         Mention times and sys_times.
20163         * modules/sys_times, modules/sys_times-tests: New modules.
20164         * modules/times, modules/times-tests: Likewise
20165         * m4/sys_times_h.m4: New file.
20166         * lib/sys_times.in.h: Likewise
20167         * lib/times.c: Likewise.
20168         * tests/test-sys_times.c: Likewise.
20169         * tests/test-times.c: Likewise.
20170         * doc/posix-headers/sys_times.texi: Update.
20171         * doc/posix-functions/times.texi: Update.
20172
20173 2008-10-28  Jim Meyering  <meyering@redhat.com>
20174
20175         * modules/tempname (Depends-on): Add lstat.
20176
20177         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
20178
20179 2008-10-28  Simon Josefsson  <simon@josefsson.org>
20180
20181         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
20182         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
20183         using idiom used elsewhere in gnulib.
20184
20185 2008-10-27  Jim Meyering  <meyering@redhat.com>
20186
20187         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
20188
20189 2008-10-27  Simon Josefsson  <simon@josefsson.org>
20190
20191         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
20192         TESTS_ENVIRONMENT, for shell scripts that needs to call built
20193         programs.
20194         * tests/test-argp-2.sh: Use $EXEEXT when needed.
20195
20196 2008-10-27  Simon Josefsson  <simon@josefsson.org>
20197
20198         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
20199
20200 2008-10-27  Bruno Haible  <bruno@clisp.org>
20201
20202         * tests/test-lstat.c: Include <stdio.h>.
20203
20204 2008-10-27  Simon Josefsson  <simon@josefsson.org>
20205
20206         * modules/lstat-tests: New module.
20207         * tests/test-lstat.c: New file.
20208
20209 2008-10-26  Jim Meyering  <meyering@redhat.com>
20210
20211         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
20212
20213 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20214             Bruno Haible  <bruno@clisp.org>
20215
20216         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
20217         * modules/configmake (Include): Add a note that the include must come
20218         after all system headers.
20219         * lib/javaversion.c: Include configmake.h after all other includes.
20220
20221 2008-10-26  Bruno Haible  <bruno@clisp.org>
20222
20223         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
20224         HAVE_STRUCT_RANDOM_DATA to 1.
20225         (gl_STDLIB_H): Simplify.
20226
20227 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20228
20229         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
20230         substitute HAVE_STRUCT_RANDOM_DATA.
20231         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
20232         random_data.
20233         * modules/stdlib (Makefile.am): Substitute
20234         HAVE_STRUCT_RANDOM_DATA.
20235
20236 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20237
20238         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
20239         * doc/gnulib-intro.texi (Copyright): Likewise.
20240
20241 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20242
20243         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
20244         findings.
20245
20246 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
20247             Bruno Haible  <bruno@clisp.org>
20248
20249         * lib/unistd.in.h: Include <winsock2.h>.
20250         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
20251         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
20252         Provide dummy declarations.
20253         (gethostname): Override.
20254         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
20255         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
20256         gl_PREREQ_SYS_H_WINSOCK2.
20257         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
20258         * doc/posix-functions/gethostname.texi: More details.
20259
20260 2008-10-25  Bruno Haible  <bruno@clisp.org>
20261
20262         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
20263         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
20264         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
20265
20266         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
20267         here ...
20268         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
20269         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
20270         gl_UNISTD_H_DEFAULTS.
20271
20272 2008-10-25  Eric Blake  <ebb9@byu.net>
20273
20274         signbit: avoid spurious compiler failure
20275         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
20276         declarations inside function.
20277
20278 2008-10-24  Simon Josefsson  <simon@josefsson.org>
20279             Bruno Haible  <bruno@clisp.org>
20280
20281         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
20282         * modules/random_r (Depends-on): Add stdint.
20283
20284 2008-10-24  Bruno Haible  <bruno@clisp.org>
20285
20286         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
20287         Eggert.
20288         * modules/strerror (License): Likewise.
20289
20290 2008-10-24  Jim Meyering  <meyering@redhat.com>
20291
20292         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
20293         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
20294
20295 2008-10-24  Eric Blake  <ebb9@byu.net>
20296
20297         getgroups: fix compilation when getgroups is available
20298         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
20299         but with <config.h> override of getgroups disabled.
20300
20301 2008-10-24  Simon Josefsson  <simon@josefsson.org>
20302
20303         * doc/gnulib.texi (Header files): Add note about C++ problems.
20304         Explained by Bruno Haible <bruno@clisp.org>.
20305
20306 2008-10-23  Bruno Haible  <bruno@clisp.org>
20307
20308         Define a dummy SA_NODEFER macro on Interix.
20309         * lib/signal.in.h (SA_NODEFER): Define fallback.
20310         Reported by Aleksey Cheusov <cheusov@tut.by> via
20311         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
20312
20313 2008-10-23  Bruno Haible  <bruno@clisp.org>
20314
20315         * modules/freadahead (License): Change to LGPLv2+.
20316         Suggested by Simon Josefsson.
20317
20318 2008-10-23  Jim Meyering  <meyering@redhat.com>
20319
20320         random_r: new module
20321         * modules/random_r: New file.
20322         * m4/random_r.m4: New file.
20323         * lib/random_r.c: New file, from glibc.
20324         * modules/random_r-tests: New file.
20325         * tests/test-random_r.c: New file.
20326         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
20327          Declare.
20328         (RAND_MAX): Define.
20329         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
20330         * modules/stdlib: Substitute them, too.
20331         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
20332         * doc/glibc-functions/initstate_r.texi: Mention the new module.
20333         * doc/glibc-functions/random_r.texi: Likewise.
20334         * doc/glibc-functions/setstate_r.texi: Likewise.
20335         * doc/glibc-functions/srandom_r.texi: Likewise.
20336         * config/srclist.txt: Mention it.
20337
20338 2008-10-23  David Lutterkort  <lutter@redhat.com>
20339
20340         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
20341         link requirement
20342
20343 2008-10-23  Jim Meyering  <meyering@redhat.com>
20344
20345         selinux-h: mark parameters of stub functions as intentionally unused
20346         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
20347         * lib/se-context.in.h: Likewise.
20348
20349 2008-10-22  Simon Josefsson  <simon@josefsson.org>
20350
20351         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
20352
20353 2008-10-22  Simon Josefsson  <simon@josefsson.org>
20354
20355         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
20356
20357 2008-10-22  Eric Blake  <ebb9@byu.net>
20358
20359         glthread/thread: avoid compiler warning
20360         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
20361         Add unreachable abort to silence compiler.
20362
20363 2008-10-22  Eric Blake  <ebb9@byu.net>
20364
20365         netdb: also supply struct addrinfo for cygwin 1.5.x
20366         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
20367         older cygwin.
20368         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
20369         cygwin.
20370         * doc/posix-headers/netdb.texi (netdb.h): Document this.
20371
20372 2008-10-22  Bruno Haible  <bruno@clisp.org>
20373
20374         * users.txt: Update entry about pspp.
20375
20376 2008-10-21  Bruno Haible  <bruno@clisp.org>
20377
20378         Simplification.
20379         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
20380         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
20381
20382         Simplification.
20383         * lib/ioctl.c (ioctl): Don't undefine.
20384         * lib/socket.c (socket): Don't undefine.
20385
20386         Remove unused module indicator macros.
20387         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
20388         GNULIB_$1 as a C macro.
20389
20390         * doc/posix-functions/close.texi: Undo last change.
20391         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
20392         Windows platforms.
20393
20394 2008-10-21  Bruno Haible  <bruno@clisp.org>
20395
20396         Add gethostname() declaration to <unistd.h>.
20397         * lib/unistd.in.h (gethostname): New declaration.
20398         * lib/gethostname.c: Include <unistd.h>.
20399         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
20400         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
20401         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
20402         and HAVE_GETHOSTNAME.
20403         * modules/gethostname (Depends-on): Add unistd.
20404         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20405         (Include): Specify <unistd.h>.
20406         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
20407         HAVE_GETHOSTNAME.
20408         * tests/test-gethostname.c: Include <unistd.h> first.
20409
20410 2008-10-21  Bruno Haible  <bruno@clisp.org>
20411
20412         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
20413         * modules/select-tests (Depends-on): Likewise.
20414         Reported by Simon Josefsson.
20415
20416 2008-10-21  Simon Josefsson  <simon@josefsson.org>
20417
20418         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
20419         * lib/accept.c: New file, based on winsock.c.
20420         * lib/bind.c: New file, based on winsock.c.
20421         * lib/connect.c: New file, based on winsock.c.
20422         * lib/getpeername.c: New file, based on winsock.c.
20423         * lib/getsockname.c: New file, based on winsock.c.
20424         * lib/getsockopt.c: New file, based on winsock.c.
20425         * lib/ioctl.c: New file, based on winsock.c.
20426         * lib/listen.c: New file, based on winsock.c.
20427         * lib/recv.c: New file, based on winsock.c.
20428         * lib/recvfrom.c: New file, based on winsock.c.
20429         * lib/send.c: New file, based on winsock.c.
20430         * lib/sendto.c: New file, based on winsock.c.
20431         * lib/setsockopt.c: New file, based on winsock.c.
20432         * lib/shutdown.c: New file, based on winsock.c.
20433         * lib/socket.c: New file, based on winsock.c.
20434         * lib/w32sock.h: New file, based on winsock.c.
20435         * lib/winsock.c: Remove file.
20436         * modules/accept: Likewise.
20437         * modules/bind: Likewise.
20438         * modules/connect: Likewise.
20439         * modules/getpeername: Likewise.
20440         * modules/getsockname: Likewise.
20441         * modules/getsockopt: Likewise.
20442         * modules/ioctl: Likewise.
20443         * modules/listen: Likewise.
20444         * modules/recv: Likewise.
20445         * modules/recvfrom: Likewise.
20446         * modules/send: Likewise.
20447         * modules/sendto: Likewise.
20448         * modules/setsockopt: Likewise.
20449         * modules/shutdown: Likewise.
20450         * modules/socket: Use socket.c instead of winsock.c.
20451         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
20452         * doc/posix-functions/accept.texi: Doc fix.
20453         * doc/posix-functions/bind.texi: Doc fix.
20454         * doc/posix-functions/close.texi: Doc fix.
20455         * doc/posix-functions/connect.texi: Doc fix.
20456         * doc/posix-functions/getpeername.texi: Doc fix.
20457         * doc/posix-functions/getsockname.texi: Doc fix.
20458         * doc/posix-functions/getsockopt.texi: Doc fix.
20459         * doc/posix-functions/ioctl.texi: Doc fix.
20460         * doc/posix-functions/listen.texi: Doc fix.
20461         * doc/posix-functions/recv.texi: Doc fix.
20462         * doc/posix-functions/recvfrom.texi: Doc fix.
20463         * doc/posix-functions/send.texi: Doc fix.
20464         * doc/posix-functions/sendto.texi: Doc fix.
20465         * doc/posix-functions/setsockopt.texi: Doc fix.
20466         * doc/posix-functions/shutdown.texi: Doc fix.
20467         * doc/posix-functions/socket.texi: Doc fix.
20468
20469 2008-10-20  Bruno Haible  <bruno@clisp.org>
20470
20471         Take into account the role of SIGABRT_COMPAT on Windows 2008.
20472         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
20473         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
20474         as an alias for SIGABRT.
20475         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
20476         (sigaction): Map it to SIGABRT.
20477         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
20478
20479 2008-10-20  Bruno Haible  <bruno@clisp.org>
20480
20481         * lib/fts.c: Don't include lstat.h.
20482         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
20483
20484         Move the lstat() declaration to <sys/stat.h>.
20485         * lib/lstat.h: Remove file.
20486         * lib/sys_stat.in.h: Add special invocation convention.
20487         (lstat): New declaration.
20488         * lib/lstat.c (orig_lstat): New function.
20489         (rpl_lstat): Use orig_lstat instead of lstat.
20490         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
20491         AC_C_INLINE. Set REPLACE_LSTAT.
20492         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
20493         and REPLACE_LSTAT.
20494         * modules/lstat (Files): Remove lib/lstat.h.
20495         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
20496         (Include): Specify <sys/stat.h> instead of lstat.h.
20497         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
20498         REPLACE_LSTAT.
20499         * NEWS: Mention the change.
20500
20501 2008-10-20  Bruno Haible  <bruno@clisp.org>
20502
20503         * modules/posix_spawn-tests: New file.
20504         * tests/test-posix_spawn3.c: New file.
20505
20506 2008-10-20  Bruno Haible  <bruno@clisp.org>
20507
20508         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
20509         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
20510         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
20511         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
20512         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
20513
20514 2008-10-20  Bruno Haible  <bruno@clisp.org>
20515
20516         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
20517         of posix_spawn on AIX 5.3.
20518
20519 2008-10-20  Bruno Haible  <bruno@clisp.org>
20520
20521         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
20522
20523 2008-10-20  Bruno Haible  <bruno@clisp.org>
20524
20525         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
20526         of AC_LANG_PROGRAM.
20527
20528 2008-10-20  Simon Josefsson  <simon@josefsson.org>
20529
20530         * lib/netdb.in.h: Don't define GNU specific constants until they
20531         are supported or needed.  Reported by Bruno Haible
20532         <bruno@clisp.org>.
20533
20534 2008-10-20  Simon Josefsson  <simon@josefsson.org>
20535
20536         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
20537
20538 2008-10-20  Simon Josefsson  <simon@josefsson.org>
20539
20540         * lib/getaddrinfo.h: Remove file.
20541         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
20542         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
20543         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
20544         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
20545         * modules/netdb: Substitute GNULIB_GETADDRINFO.
20546         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
20547         * tests/test-getaddrinfo.c: Likewise.
20548         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
20549         * NEWS: Mention change.
20550
20551 2008-10-19  Bruno Haible  <bruno@clisp.org>
20552
20553         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
20554
20555 2008-10-19  Bruno Haible  <bruno@clisp.org>
20556
20557         * lib/wait-process.c: Include simply <sys/wait.h>.
20558         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
20559         WIFSTOPPED): Remove fallback definitions.
20560         * modules/wait-process (Depends-on): Add sys_wait.
20561
20562         New module 'sys_wait'.
20563         * modules/sys_wait: New file.
20564         * lib/sys_wait.in.h: New file, partially copied from
20565         lib/wait-process.c.
20566         * m4/sys_wait_h.m4: New file.
20567         * doc/posix-headers/sys_wait.texi: Mention the new module.
20568
20569 2008-10-19  Bruno Haible  <bruno@clisp.org>
20570
20571         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
20572
20573 2008-10-19  Bruno Haible  <bruno@clisp.org>
20574
20575         Assume that waitpid() fills an 'int' status, not a 'union wait'.
20576         * lib/wait-process.c (WAIT_T): Remove type.
20577         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
20578         (wait_subprocess): Update.
20579
20580 2008-10-19  Bruno Haible  <bruno@clisp.org>
20581
20582         New module 'atoll'.
20583         * modules/atoll: New file.
20584         * lib/stdlib.in.h (atoll): New declaration.
20585         * lib/atoll.c: New file, from glibc with modifications.
20586         * m4/atoll.m4: New file.
20587         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
20588         HAVE_ATOLL.
20589         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
20590         * doc/posix-functions/atoll.texi: Mention the new module.
20591
20592 2008-10-19  Bruno Haible  <bruno@clisp.org>
20593
20594         Add strtoull() declaration to <stdlib.h>.
20595         * lib/stdlib.in.h (strtoull): New declaration.
20596         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
20597         Set HAVE_STRTOULL.
20598         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
20599         HAVE_STRTOULL.
20600         * modules/strtoull (Depends-on): Add stdlib.
20601         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20602         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
20603         HAVE_STRTOULL.
20604
20605 2008-10-19  Bruno Haible  <bruno@clisp.org>
20606
20607         Add strtoll() declaration to <stdlib.h>.
20608         * lib/stdlib.in.h (strtoll): New declaration.
20609         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
20610         Set HAVE_STRTOLL.
20611         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
20612         HAVE_STRTOLL.
20613         * modules/strtoll (Depends-on): Add stdlib.
20614         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20615         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
20616
20617 2008-10-19  Bruno Haible  <bruno@clisp.org>
20618
20619         * modules/bcopy (Depends-on): Add strings.
20620         (Include): Specify <strings.h>.
20621
20622 2008-10-19  Bruno Haible  <bruno@clisp.org>
20623
20624         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
20625
20626 2008-10-19  Bruno Haible  <bruno@clisp.org>
20627
20628         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
20629         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
20630         mingw.
20631
20632 2008-10-19  Bruno Haible  <bruno@clisp.org>
20633
20634         * lib/atanl.c: Don't include isnanl.h.
20635         * lib/cosl.c: Likewise.
20636         * lib/ldexpl.c: Likewise.
20637         * lib/logl.c: Likewise.
20638         * lib/sinl.c: Likewise.
20639         * lib/sqrtl.c: Likewise.
20640         * lib/tanl.c: Likewise.
20641
20642         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
20643         * lib/isnanf.h: Remove file.
20644         * lib/isnand.h: Remove file.
20645         * lib/isnanl.h: Remove file.
20646         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
20647         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
20648         macros.
20649         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
20650         HAVE_ISNANF, don't define it as a C macro.
20651         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
20652         HAVE_ISNAND, don't define it as a C macro.
20653         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
20654         HAVE_ISNANL, don't define it as a C macro.
20655         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
20656         HAVE_ISNAN[FDL].
20657         * modules/isnanf (Files): Remove lib/isnanf.h.
20658         (Depends-on): Add math.
20659         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20660         (Include): Specify <math.h> instead of isnanf.h.
20661         * modules/isnand (Files): Remove lib/isnand.h.
20662         (Depends-on): Add math.
20663         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20664         (Include): Specify <math.h> instead of isnand.h.
20665         * modules/isnanl (Files): Remove lib/isnanl.h.
20666         (Depends-on): Add math.
20667         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20668         (Include): Specify <math.h> instead of isnanl.h.
20669         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
20670         HAVE_ISNAN[FDL].
20671         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
20672         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
20673         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
20674         * NEWS: Mention the change.
20675
20676 2008-10-18  Bruno Haible  <bruno@clisp.org>
20677
20678         Add getusershell(), setusershell(), endusershell() declarations to
20679         <unistd.h>.
20680         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
20681         declarations.
20682         * lib/getusershell.c: Include unistd.h.
20683         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
20684         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
20685         HAVE_GETUSERSHELL.
20686         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
20687         and HAVE_GETUSERSHELL.
20688         * modules/getusershell (Depends-on): Add unistd, extensions.
20689         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20690         (Include): Specify <unistd.h>.
20691         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
20692         HAVE_GETUSERSHELL.
20693
20694 2008-10-18  Bruno Haible  <bruno@clisp.org>
20695
20696         Add a getloadavg() declaration to <stdlib.h>.
20697         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
20698         getloadavg declaration.
20699         (getloadavg): New declaration.
20700         * lib/getloadavg.c: Include <stdlib.h> first.
20701         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
20702         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
20703         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
20704         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
20705         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
20706         * modules/getloadavg (Depends-on): Add stdlib, extensions.
20707         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20708         (Include): Specify <stdlib.h>.
20709         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
20710         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
20711
20712 2008-10-18  Bruno Haible  <bruno@clisp.org>
20713
20714         * lib/dirchownmod.c: Don't include lchmod.h.
20715
20716         Move the lchmod() declaration to <sys/stat.h>.
20717         * lib/lchmod.h: Remove file.
20718         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
20719         (lchmod): New declaration, moved here from lib/lchown.h.
20720         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
20721         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
20722         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
20723         and HAVE_LCHMOD.
20724         * modules/lchmod (Files): Remove lib/lchmod.h.
20725         (Depends-on): Add sys_stat, extensions.
20726         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
20727         (Include): Specify <sys/stat.h> instead of lchmod.h.
20728         * modules/sys_stat (Depends-on): Add link-warning.
20729         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
20730         definition of GL_LINK_WARNING.
20731         * NEWS: Mention the change.
20732
20733 2008-10-18  Bruno Haible  <bruno@clisp.org>
20734
20735         * lib/fchdir.c: Don't include dirfd.h.
20736         * lib/fts.c: Likewise.
20737         * lib/getcwd.c: Likewise.
20738         * lib/glob.c: Likewise.
20739
20740         Move the dirfd() declaration to <dirent.h>.
20741         * lib/dirfd.h: Remove file.
20742         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
20743         (dirfd): New declaration.
20744         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
20745         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
20746         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
20747         HAVE_DECL_DIRFD.
20748         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
20749         HAVE_DECL_DIRFD.
20750         * modules/dirfd (Files): Remove lib/dirfd.h.
20751         (Depends-on): Add dirent, extensions.
20752         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
20753         (Include): Specify <dirent.h> instead of dirfd.h.
20754         * modules/dirent (Depends-on): Add link-warning.
20755         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
20756         definition of GL_LINK_WARNING.
20757         * NEWS: Mention the change.
20758
20759 2008-10-18  Bruno Haible  <bruno@clisp.org>
20760
20761         Move the euidaccess() declaration to <unistd.h>.
20762         * lib/euidaccess.h: Remove file.
20763         * lib/unistd.in.h (euidaccess): New declaration.
20764         * lib/euidaccess.c: Don't include euidaccess.h.
20765         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
20766         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
20767         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
20768         and HAVE_EUIDACCESS.
20769         * modules/euidaccess (Files): Remove lib/euidaccess.h.
20770         (Depends-on): Add unistd.
20771         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20772         (Include): Specify <unistd.h> instead of euidaccess.h.
20773         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
20774         HAVE_EUIDACCESS.
20775         * NEWS: Mention the change.
20776
20777 2008-10-18  Bruno Haible  <bruno@clisp.org>
20778
20779         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
20780
20781         Move the getdomainname() declaration to <unistd.h>.
20782         * lib/getdomainname.h: Remove file.
20783         * lib/unistd.in.h (getdomainname): New declaration.
20784         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
20785         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
20786         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
20787         HAVE_GETDOMAINNAME.
20788         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20789         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
20790         * modules/getdomainname (Files): Remove lib/getdomainname.h.
20791         (Depends-on): Add unistd, extensions.
20792         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20793         (Includes): Specify <unistd.h> instead of getdomainname.h.
20794         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
20795         HAVE_GETDOMAINNAME.
20796         * NEWS: Mention the change.
20797
20798 2008-10-18  Bruno Haible  <bruno@clisp.org>
20799
20800         * modules/dirent: New file.
20801         * m4/dirent_h.m4: New file.
20802         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
20803         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
20804         * modules/fchdir (Files): Remove lib/dirent.in.h.
20805         (Depends-on): Add dirent.
20806         (Makefile.am): Move rules to modules/dirent.
20807         * doc/posix-headers/dirent.texi: Mention the new module.
20808
20809 2008-10-18  Bruno Haible  <bruno@clisp.org>
20810
20811         Avoid -Wunused-parameter warnings in public gnulib header files.
20812         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
20813         macro.
20814         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
20815
20816 2008-10-18  Bruno Haible  <bruno@clisp.org>
20817
20818         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
20819         * doc/glibc-functions/error.texi: Mention the module 'error'.
20820         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
20821         * doc/glibc-functions/getdomainname.texi: Mention the module
20822         'getdomainname'.
20823         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
20824         * doc/glibc-functions/getpagesize.texi: Mention the module
20825         'getpagesize'.
20826         * doc/glibc-functions/getusershell.texi: Mention the module
20827         'getusershell'.
20828         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
20829         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
20830         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
20831         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
20832         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
20833         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
20834         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
20835         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
20836         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
20837         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
20838         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
20839         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
20840         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
20841         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
20842
20843 2008-10-17  Bruno Haible  <bruno@clisp.org>
20844
20845         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
20846         HP-UX and IRIX, use -0.0L.
20847         * tests/test-ceill.c (minus_zero): Likewise.
20848         * tests/test-floorl.c (minus_zero): Likewise.
20849         * tests/test-frexpl.c (minus_zero): Likewise.
20850         * tests/test-isnan.c (minus_zerol): Likewise.
20851         * tests/test-isnanl.h (minus_zero): Likewise.
20852         * tests/test-ldexpl.c (minus_zero): Likewise.
20853         * tests/test-roundl.c (minus_zero): Likewise.
20854         * tests/test-signbit.c (minus_zerol): Likewise.
20855         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
20856         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
20857         * tests/test-truncl.c (minus_zero): Likewise.
20858         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
20859         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
20860         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
20861         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
20862
20863 2008-10-17  Bruno Haible  <bruno@clisp.org>
20864
20865         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
20866         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
20867         that it gets activated only for gcc >= 3.0.
20868         * lib/dirent.in.h: Likewise.
20869         * lib/errno.in.h: Likewise.
20870         * lib/fcntl.in.h: Likewise.
20871         * lib/float.in.h: Likewise.
20872         * lib/iconv.in.h: Likewise.
20873         * lib/inttypes.in.h: Likewise.
20874         * lib/locale.in.h: Likewise.
20875         * lib/math.in.h: Likewise.
20876         * lib/netdb.in.h: Likewise.
20877         * lib/netinet_in.in.h: Likewise.
20878         * lib/search.in.h: Likewise.
20879         * lib/signal.in.h: Likewise.
20880         * lib/spawn.in.h: Likewise.
20881         * lib/stdarg.in.h: Likewise.
20882         * lib/stdint.in.h: Likewise.
20883         * lib/stdio.in.h: Likewise.
20884         * lib/stdlib.in.h: Likewise.
20885         * lib/string.in.h: Likewise.
20886         * lib/strings.in.h: Likewise.
20887         * lib/sys_file.in.h: Likewise.
20888         * lib/sys_ioctl.in.h: Likewise.
20889         * lib/sys_select.in.h: Likewise.
20890         * lib/sys_socket.in.h: Likewise.
20891         * lib/sys_stat.in.h: Likewise.
20892         * lib/sys_time.in.h: Likewise.
20893         * lib/sysexits.in.h: Likewise.
20894         * lib/time.in.h: Likewise.
20895         * lib/unistd.in.h: Likewise.
20896         * lib/wchar.in.h: Likewise.
20897         * lib/wctype.in.h: Likewise.
20898         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20899
20900 2008-10-17  Jim Meyering  <meyering@redhat.com>
20901
20902         ignore-value: don't depend on inline module
20903         * modules/ignore-value (Depends-on): Remove 'inline'.
20904         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
20905         Suggestion from Bruno Haible.
20906
20907 2008-10-17  Bruno Haible  <bruno@clisp.org>
20908
20909         New implementation of condition variables for Win32.
20910         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
20911         (gl_linked_waitqueue_t): New type.
20912         (gl_cond_t): Use it.
20913         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
20914         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
20915         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
20916         (glthread_cond_init_func, glthread_cond_wait_func,
20917         glthread_cond_timedwait_func, glthread_cond_signal_func,
20918         glthread_cond_broadcast_func, glthread_cond_destroy_func):
20919         Reimplemented on the basis of gl_linked_waitqueue_t.
20920         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
20921         gl_waitqueue_t.
20922         (gl_rwlock_t): Update.
20923         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
20924
20925 2008-10-17  Simon Josefsson  <simon@josefsson.org>
20926
20927         * modules/recvfrom (Depends-on): Add dependency on getpeername.
20928         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
20929
20930 2008-10-17  Jim Meyering  <meyering@redhat.com>
20931
20932         ignore-value: new module
20933         * modules/ignore-value: New file.
20934         * lib/ignore-value.h: New file.
20935         * MODULES.html.sh (Compiler warning management): New section,
20936         just for this module.  More to come.
20937
20938 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
20939
20940         open-safer.c: avoid 'signed and unsigned in conditional...' warning
20941         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
20942         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
20943
20944 2008-10-16  Jim Meyering  <meyering@redhat.com>
20945
20946         openat-die.c: avoid 'no previous prototype' warning
20947         * lib/openat-die.c: Include "openat.h".
20948         Reported by Reuben Thomas <rrt@sc3d.org>.
20949
20950 2008-10-16  Simon Josefsson  <simon@josefsson.org>
20951
20952         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
20953         * lib/netdb.in.h: Fix typo.
20954         Reported by Bruno Haible  <bruno@clisp.org>
20955
20956         * lib/netdb.in.h: Include sys/socket.h for platforms without
20957         netdb.h, to get structures like hostent on MinGW.
20958         * modules/netdb (Depends-on): Add sys_socket.
20959
20960 2008-10-15  Simon Josefsson  <simon@josefsson.org>
20961
20962         * modules/netdb, modules/netdb-tests: New file.
20963         * m4/netdb_h.m4: New file.
20964         * lib/netdb.in.h: Add, currently just an empty file pending
20965         definitions.
20966         * tests/test-netdb.c: New file.
20967         * doc/posix-headers/netdb.texi: Mention that we replace it if
20968         needed.
20969         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20970         netdb.
20971
20972 2008-10-15  Simon Josefsson  <simon@josefsson.org>
20973
20974         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
20975         with code.
20976
20977 2008-10-13  Bruno Haible  <bruno@clisp.org>
20978
20979         * lib/glthread/cond.c (glthread_cond_wait_func,
20980         glthread_cond_timedwait_func): Add a comment.
20981
20982 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
20983
20984         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
20985         * tests/test-select.c: Likewise,
20986
20987 2008-10-13  Bruno Haible  <bruno@clisp.org>
20988
20989         * lib/glthread/cond.c (glthread_cond_wait_func,
20990         glthread_cond_timedwait_func): Fix variable name.
20991         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
20992
20993 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
20994
20995         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
20996         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
20997         struct sockaddr.sa_len.
20998         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
20999
21000 2008-10-13  Simon Josefsson  <simon@josefsson.org>
21001
21002         * build-aux/pmccabe2html: Add css and css_url parameters.
21003
21004 2008-10-12  Bruno Haible  <bruno@clisp.org>
21005
21006         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
21007         calling aclx_get.
21008         Reported by Rainer Tammer <tammer@tammer.net>.
21009
21010 2008-10-12  Bruno Haible  <bruno@clisp.org>
21011
21012         Use msvcrt aware primitives for creation/termination of Win32 threads.
21013         * lib/glthread/thread.c: Include <process.h>.
21014         (glthread_create_func): Use _beginthreadex instead of CreateThread.
21015         (wrapper_func): Update signature.
21016         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
21017
21018 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
21019             Bruno Haible  <bruno@clisp.org>
21020
21021         Provide a Win32 implementation of the 'cond' module.
21022         * lib/glthread/cond.h [USE_WIN32]: New implementation.
21023         * lib/glthread/cond.c (glthread_cond_init_func,
21024         glthread_cond_wait_func, glthread_cond_timedwait_func,
21025         glthread_cond_signal_func, glthread_cond_broadcast_func,
21026         glthread_cond_destroy_func) [USE_WIN32]: New functions.
21027         * modules/cond (Dependencies): Add gettimeofday.
21028
21029 2008-10-11  Bruno Haible  <bruno@clisp.org>
21030
21031         Make sleep work on older versions of mingw.
21032         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
21033         only whether it exists.
21034         * doc/posix-functions/sleep.texi: Mention the problem with older
21035         versions of mingw.
21036
21037 2008-10-11  Bruno Haible  <bruno@clisp.org>
21038
21039         New module 'shutdown'.
21040         * modules/shutdown: New file.
21041         * lib/sys_socket.in.h (shutdown): New declaration.
21042         * lib/winsock.c (shutdown): New function.
21043         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
21044         GNULIB_SHUTDOWN.
21045         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
21046         * doc/posix-functions/shutdown.texi: Document the new module.
21047
21048 2008-10-11  Jim Meyering  <meyering@redhat.com>
21049
21050         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
21051
21052 2008-10-11  Bruno Haible  <bruno@clisp.org>
21053
21054         New module 'fclose'.
21055         * modules/fclose: New file.
21056         * lib/stdio.in.h (fclose): New declaration.
21057         * lib/fclose.c: New file.
21058         * m4/fclose.m4: New file.
21059         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
21060         REPLACE_FCLOSE.
21061         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
21062         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
21063         REPLACE_FCLOSE.
21064         * modules/close (Depends-on): fclose.
21065         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
21066
21067 2008-10-11  Bruno Haible  <bruno@clisp.org>
21068
21069         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
21070         set errno and don't call _close.
21071
21072 2008-10-10  Bruno Haible  <bruno@clisp.org>
21073
21074         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
21075         ACL, not afterwards. Fixes test failure on Cygwin.
21076
21077 2008-10-09  Ben Pfaff  <blp@gnu.org>
21078
21079         * build-aux/announce-gen: Fix gnulib version related part of usage
21080         message.  Die with a useful error message if no tarballs are
21081         found.
21082
21083 2008-10-10  Jim Meyering  <meyering@redhat.com>
21084
21085         bootstrap: use git's --depth=N option only if it's supported
21086         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
21087         recognize the --depth option.  Reported by Pádraig Brady.
21088
21089 2008-10-09  Bruno Haible  <bruno@clisp.org>
21090
21091         New module 'ioctl'.
21092         * modules/ioctl: New file.
21093         * lib/sys_socket.in.h (ioctl): Remove declaration.
21094         * lib/winsock.c: Include <sys/ioctl.h>.
21095         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
21096         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
21097         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
21098         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
21099         * doc/posix-functions/ioctl.texi: Mention the new module.
21100
21101 2008-10-09  Bruno Haible  <bruno@clisp.org>
21102
21103         New module 'sys_ioctl'.
21104         * lib/sys_ioctl.in.h: New file.
21105         * m4/sys_ioctl_h.m4: New file.
21106         * modules/sys_ioctl: New file.
21107         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
21108
21109 2008-10-09  Bruno Haible  <bruno@clisp.org>
21110
21111         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
21112         * lib/winsock.c: Include <stdarg.h>.
21113         (rpl_ioctl): Change to second argument 'int' and then varargs.
21114
21115 2008-10-09  Bruno Haible  <bruno@clisp.org>
21116
21117         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
21118         when the sys_socket module is present and the system has <winsock2.h>.
21119
21120 2008-10-09  Bruno Haible  <bruno@clisp.org>
21121
21122         * doc/posix-functions/close.texi: Mention module 'close' instead of
21123         module 'sys_socket'.
21124
21125 2008-10-09  Bruno Haible  <bruno@clisp.org>
21126
21127         * doc/glibc-headers/sys_ioctl.texi: New file.
21128         * doc/gnulib.texi: Include it.
21129
21130 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21131             Bruno Haible  <bruno@clisp.org>
21132
21133         Combine the two replacements of 'close'.
21134         * lib/sys_socket.in.h (close): Define to a reminder to include
21135         <unistd.h>.
21136         (_gl_close_fd_maybe_socket): New declaration.
21137         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
21138         * lib/winsock.c (close): Remove undefinition.
21139         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
21140         needed for the gnulib module 'close'.
21141         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
21142         define to an error symbol or to a warning, if suitable.
21143         * lib/close.c: Include <sys/socket.h>.
21144         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
21145         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
21146         UNISTD_H_HAVE_WINSOCK2_H.
21147         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
21148         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21149         UNISTD_H_HAVE_WINSOCK2_H.
21150         * modules/sys_socket (Files): Add m4/unistd_h.m4.
21151         (configure.ac): Set a module indicator.
21152         (Makefile.am): Substitute GNULIB_CLOSE.
21153         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
21154         * modules/poll-tests (Depends-on): Add close.
21155         * modules/select-tests (Depends-on): Likewise.
21156
21157 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21158             Bruno Haible  <bruno@clisp.org>
21159
21160         New module 'close'.
21161         * modules/close: New file.
21162         * lib/unistd.in.h (close): Move declaration out of the
21163         FCHDIR_REPLACEMENT scope.
21164         (_gl_unregister_fd): New declaration.
21165         * lib/close.c: New file.
21166         * lib/fchdir.c (rpl_close): Remove function.
21167         * m4/close.m4: New file.
21168         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
21169         close.
21170         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
21171         REPLACE_CLOSE.
21172         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
21173         REPLACE_CLOSE.
21174         * modules/fchdir (Depends-on): Add close.
21175
21176 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21177             Bruno Haible  <bruno@clisp.org>
21178
21179         * lib/fcntl.in.h (open): Simplify conditionals.
21180         (_gl_register_fd): New declaration.
21181         * lib/fchdir.c (rpl_open): Remove function.
21182         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
21183         also.
21184         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
21185         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
21186         open.
21187
21188 2008-10-09  Jim Meyering  <meyering@redhat.com>
21189
21190         GNUmakefile: use the more name-space-friendly "_version"
21191         * top/GNUmakefile (_dummy): Update.
21192         (_version): Rename from "version".
21193
21194 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21195             Bruno Haible  <bruno@clisp.org>
21196
21197         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
21198         rpl_close.
21199         (_gl_register_fd): New function, extracted from rpl_open.
21200         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
21201         (rpl_open, rpl_opendir): Use _gl_register_fd.
21202
21203 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21204
21205         Fix organization of 'open' replacement.
21206         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
21207         (gl_FUNC_OPEN): Use it.
21208         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
21209
21210 2008-10-08  Bruno Haible  <bruno@clisp.org>
21211
21212         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
21213
21214 2008-10-08  Simon Josefsson  <simon@josefsson.org>
21215
21216         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
21217         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
21218         listen).
21219
21220 2008-10-08  Eric Blake  <ebb9@byu.net>
21221
21222         GNUmakefile: add 'make version' target
21223         * top/GNUmakefile (_curr-ver): Split version update rules...
21224         (version): ...into a target.
21225
21226 2008-10-07  Bruno Haible  <bruno@clisp.org>
21227
21228         Use a more portable replacement expression for -0.0L.
21229         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
21230         instead of -0.0L. Fix m4 quotation.
21231
21232         * tests/test-signbit.c: Include <float.h>.
21233         (minus_zero): New variable.
21234         (test_signbitl): Use minus_zero instead of -zero.
21235         * modules/signbit-tests (Depends-on): Add float.
21236
21237         * tests/test-ceill.c: Include <float.h>.
21238         (zero): Remove variable.
21239         (minus_zero): New variable.
21240         (main): Use minus_zero instead of -zero.
21241         * modules/ceill-tests (Depends-on): Add float.
21242
21243         * tests/test-floorl.c: Include <float.h>.
21244         (zero): Remove variable.
21245         (minus_zero): New variable.
21246         (main): Use minus_zero instead of -zero.
21247         * modules/floorl-tests (Depends-on): Add float.
21248
21249         * tests/test-roundl.c: Include <float.h>.
21250         (zero): Remove variable.
21251         (minus_zero): New variable.
21252         (main): Use minus_zero instead of -zero.
21253         * modules/roundl-tests (Depends-on): Add float.
21254
21255         * tests/test-truncl.c: Include <float.h>.
21256         (zero): Remove variable.
21257         (minus_zero): New variable.
21258         (main): Use minus_zero instead of -zero.
21259         * modules/truncl-tests (Depends-on): Add float.
21260
21261         * tests/test-frexpl.c (zero): Remove variable.
21262         (minus_zero): New variable.
21263         (main): Use minus_zero instead of -zero.
21264         * modules/frexpl-tests (Depends-on): Add float.
21265
21266         * tests/test-isnan.c (zerol): Remove variable.
21267         (minus_zerol): New variable.
21268         (test_long_double): Use minus_zerol instead of -zerol.
21269         * modules/isnan-tests (Depends-on): Add float.
21270
21271         * tests/test-isnanl.h (zero): Remove variable.
21272         (minus_zero): New variable.
21273         (main): Use minus_zero instead of -zero.
21274         * modules/isnanl-nolibm-tests (Depends-on): Add float.
21275         * modules/isnanl-tests (Depends-on): Add float.
21276
21277         * tests/test-ldexpl.c (zero): Remove variable.
21278         (minus_zero): New variable.
21279         (main): Use minus_zero instead of -zero.
21280         * modules/ldexpl-tests (Depends-on): Add float.
21281
21282         * tests/test-snprintf-posix.h (zerol): Remove variable.
21283         (minus_zerol): New variable.
21284         (test_function): Use minus_zerol instead of -zerol.
21285         * modules/snprintf-posix-tests (Depends-on): Add float.
21286         * modules/vsnprintf-posix-tests (Depends-on): Add float.
21287
21288         * tests/test-sprintf-posix.h (zerol): Remove variable.
21289         (minus_zerol): New variable.
21290         (test_function): Use minus_zerol instead of -zerol.
21291         * modules/sprintf-posix-tests (Depends-on): Add float.
21292         * modules/vsprintf-posix-tests (Depends-on): Add float.
21293
21294         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
21295         (minus_zerol): New variable.
21296         (test_function): Use minus_zerol instead of -zerol.
21297         * modules/vasnprintf-posix-tests (Depends-on): Add float.
21298
21299         * tests/test-vasprintf-posix.c (zerol): Remove variable.
21300         (minus_zerol): New variable.
21301         (test_function): Use minus_zerol instead of -zerol.
21302         * modules/vasprintf-posix-tests (Depends-on): Add float.
21303
21304 2008-10-07  Simon Josefsson  <simon@josefsson.org>
21305
21306         * MODULES.html.sh (Support for building documentation): Mention
21307         pmccabe2html.  Sort entries.
21308
21309         Add pmccabe2html module, from gnupdf.
21310         * build-aux/pmccabe.css: New file.
21311         * build-aux/pmccabe2html: New file.
21312         * m4/pmccabe2html.m4: New file.
21313         * modules/pmccabe2html: New file.
21314
21315 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
21316
21317         flock: new module
21318         * MODULES.html.sh: Add to list of modules.
21319         * lib/flock.c: flock implementation for Windows and Unix systems
21320         which have fcntl.
21321         * doc/glibc-functions/flock.texi: Update documentation.
21322         * lib/sys_file.in.h: <sys/file.h> header file.
21323         * m4/flock.m4: M4 macros.
21324         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
21325         * modules/flock: flock module.
21326         * modules/flock-tests: flock tests module.
21327         * modules/sys_file: sys/file.h module.
21328         * tests/test-flock.c: test suite for flock.
21329
21330 2008-10-06  Jim Meyering  <meyering@redhat.com>
21331
21332         bootstrap: check for LT_INIT more portably still ;-)
21333         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
21334         Spotted by Bruno Haible.
21335
21336 2008-10-06  Eric Blake  <ebb9@byu.net>
21337
21338         test-signbit: avoid tripping Irix cc bug on -0.0L
21339         * tests/test-signbit.c (minus_zerol): Delete, and replace with
21340         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
21341         entire testsuite consistent and avoids an Irix 6.2 bug.
21342
21343 2008-10-05  Bruno Haible  <bruno@clisp.org>
21344             Jim Meyering  <jim@meyering.net>
21345
21346         Add an option for ignoring EPIPE during close_stdout.
21347         * lib/closeout.h: Include <stdbool.h>.
21348         (close_stdout_set_ignore_EPIPE): New declaration.
21349         * lib/closeout.c: Include <stdbool.h>.
21350         (ignore_EPIPE): New variable.
21351         (close_stdout_set_ignore_EPIPE): New function.
21352         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
21353         * lib/close-stream.c (close_stream): Mention the possible EPIPE
21354         failure.
21355         * modules/closeout (Depends-on): Add stdbool.
21356
21357 2008-10-05  Bruno Haible  <bruno@clisp.org>
21358
21359         * modules/accept: New file.
21360         * modules/bind: New file.
21361         * modules/connect: New file.
21362         * modules/getpeername: New file.
21363         * modules/getsockname: New file.
21364         * modules/getsockopt: New file.
21365         * modules/listen: New file.
21366         * modules/recv: New file.
21367         * modules/recvfrom: New file.
21368         * modules/send: New file.
21369         * modules/sendto: New file.
21370         * modules/setsockopt: New file.
21371         * modules/socket: New file.
21372         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
21373         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
21374         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
21375         the particular module is requested. Add a link warning when the
21376         particular module is not requested.
21377         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
21378         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
21379         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
21380         the particular module is requested.
21381         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
21382         gl_SYS_SOCKET_H_DEFAULTS): New macros.
21383         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
21384         * modules/sys_socket (Depends-on): Add link-warning.
21385         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
21386         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
21387         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
21388         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
21389         GL_LINK_WARNING.
21390         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
21391         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
21392         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
21393         * doc/posix-functions/getpeername.texi: Mention the new module
21394         'getpeername'.
21395         * doc/posix-functions/getsockname.texi: Mention the new module
21396         'getsockname'.
21397         * doc/posix-functions/getsockopt.texi: Mention the new module
21398         'getsockopt'.
21399         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
21400         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
21401         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
21402         * doc/posix-functions/send.texi: Mention the new module 'send'.
21403         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
21404         * doc/posix-functions/setsockopt.texi: Mention the new module
21405         'setsockopt'.
21406         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
21407         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
21408         listen, connect, accept.
21409         * modules/select-tests (Depends-on): Likewise.
21410
21411 2008-10-05  Bruno Haible  <bruno@clisp.org>
21412
21413         * lib/winsock.c (strerror): Remove unused #undef.
21414         (rpl_close): Remove unused local variable.
21415
21416         * modules/sys_socket (Depends-on); Add errno.
21417
21418 2008-10-05  Bruno Haible  <bruno@clisp.org>
21419
21420         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
21421         (select): Add a link warning when the 'select' module is not used.
21422         * modules/sys_select (Depends-on): Add link-warning.
21423         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
21424         Suggested by Paolo Bonzini.
21425
21426 2008-10-05  Jim Meyering  <meyering@redhat.com>
21427
21428         bootstrap: check for LT_INIT more portably
21429         * build-aux/bootstrap: Avoid using grep -E, since it's not
21430         portable enough.  Suggestion from Bruno Haible.
21431
21432 2008-10-05  Bruno Haible  <bruno@clisp.org>
21433
21434         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
21435         as being fixed by gnulib.
21436
21437 2008-10-05  Bruno Haible  <bruno@clisp.org>
21438
21439         * modules/select-tests: New file, mostly copied from
21440         modules/sys_select-tests.
21441         * tests/test-select.c: New file, mostly copied from
21442         tests/test-sys_select.c.
21443         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
21444         * modules/sys_select-tests (Depends-on): Remove all dependencies.
21445         (Makefile.am): Remove test_sys_select_LDADD.
21446
21447         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
21448         to an undefined symbol, for an error message.
21449         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
21450         (gl_SYS_SELECT_H_DEFAULTS): New macro.
21451         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
21452         winsock-select.c here.
21453         * modules/sys_select (Files): Remove lib/winsock-select.c.
21454         (Depends-on): Remove alloca.
21455         (Makefile.am): Substitute GNULIB_SELECT.
21456         * modules/select: New file.
21457         * doc/posix-functions/select.texi: Update.
21458
21459 2008-10-05  Bruno Haible  <bruno@clisp.org>
21460
21461         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
21462         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
21463         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
21464         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
21465         getdtablesize.
21466         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
21467         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
21468
21469 2008-10-05  Bruno Haible  <bruno@clisp.org>
21470
21471         * modules/getdtablesize-tests: New file.
21472         * tests/test-getdtablesize.c: New file.
21473
21474         New module 'getdtablesize'.
21475         * lib/unistd.in.h (getdtablesize): New declaration.
21476         * lib/getdtablesize.c: New file.
21477         * m4/getdtablesize.m4: New file.
21478         * modules/getdtablesize: New file.
21479         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21480         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
21481         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
21482         HAVE_GETDTABLESIZE.
21483         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
21484
21485 2008-10-05  Bruno Haible  <bruno@clisp.org>
21486
21487         * modules/sched (Makefile.am): Fix typo.
21488         Reported by Simon Josefsson.
21489
21490 2008-10-05  Jim Meyering  <meyering@redhat.com>
21491
21492         bootstrap: check for LT_INIT, too
21493         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
21494         are deprecated.  Suggestion from Ralf Wildenhues.
21495
21496 2008-10-05  Bruno Haible  <bruno@clisp.org>
21497
21498         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
21499         overriding them by ours.
21500         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
21501
21502 2008-10-05  Jim Meyering  <meyering@redhat.com>
21503
21504         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
21505         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
21506         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
21507
21508 2008-10-04  Bruno Haible  <bruno@clisp.org>
21509
21510         * modules/dup2 (License): Change to LGPLv2+.
21511         * modules/sleep (License): Likewise.
21512         * modules/perror (License): Likewise.
21513         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
21514         Blake.
21515         * modules/signal (License): Likewise.
21516         * modules/sigprocmask (License): Likewise.
21517         * modules/raise (License): Change to LGPLv2+, with approval by Jim
21518         Meyering.
21519
21520 2008-10-04  Bruno Haible  <bruno@clisp.org>
21521
21522         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
21523         Reported by Rainer Tammer <tammer@tammer.net>.
21524
21525 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
21526             Bruno Haible  <bruno@clisp.org>
21527
21528         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
21529         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
21530         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
21531
21532 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
21533
21534         filevercmp: new module
21535         * lib/filevercmp.h: New function filevercmp comparing version strings.
21536         * lib/filevercmp.c: Implementation of filevercmp function.
21537         * modules/filevercmp: Module metadata.
21538         * tests/test-filevercmp.c: Unit test for new module.
21539         * modules/filevercmp-tests: Unit test metadata.
21540         * MODULES.html.sh: Add filevercmp module.
21541
21542 2008-10-03  Bruno Haible  <bruno@clisp.org>
21543
21544         * lib/c-ctype.h: Add comment.
21545         Reported by Jim Meyering.
21546
21547 2008-10-02  Bruno Haible  <bruno@clisp.org>
21548
21549         * modules/posix_spawn-internal (Depends-on): Add 'open'.
21550
21551 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
21552
21553         * build-aux/bootstrap: Allow renaming bootstrap, and change the
21554         name of bootstrap.conf accordingly.
21555
21556 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
21557
21558         * build-aux/bootstrap: Install git-merge-changelog configuration
21559         items into .gitconfig if needed.
21560
21561 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
21562
21563         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
21564         git repository, and initialize/update it accordingly.
21565
21566 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
21567
21568         * modules/fsync-tests: New file.
21569         * tests/test-fsync.c: New file.
21570
21571         New module 'fsync'.
21572         * lib/fsync.c: New file.
21573         * m4/fsync.m4: New file.
21574         * modules/fsync: New file.
21575         * lib/unistd.in.h (fsync): New declaration.
21576         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
21577         GNULIB_FSYNC and HAVE_FSYNC.
21578         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
21579         * MODULES.html.sh (posix_functions): Add fsync.
21580         * doc/posix-functions/fsync.texi: Mention the new module.
21581
21582 2008-10-02  Jim Meyering  <meyering@redhat.com>
21583
21584         fts.c: sync with similar code from coreutils' remove.c
21585         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
21586         Guard also with "#if defined __linux__", since for now at least,
21587         this code is Linux-kernel-specific.
21588
21589 2008-10-02  Jim Meyering  <meyering@redhat.com>
21590
21591         fts: bug fixes
21592         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
21593         Include <sys/vfs.h>, not <sys/statfs.h>.
21594
21595         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
21596         Include <sys/vfs.h>, not <sys/statfs.h>.
21597
21598 2008-10-01  Bruno Haible  <bruno@clisp.org>
21599
21600         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
21601         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
21602         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
21603         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
21604         * doc/posix-functions/posix_spawnp.texi: Likewise.
21605         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
21606         whether posix_spawn actually works.
21607         * m4/pipe.m4 (gl_PIPE): Likewise.
21608         * modules/execute (Files): Add m4/posix_spawn.m4.
21609         * modules/pipe (Files): Add m4/posix_spawn.m4.
21610         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
21611
21612 2008-10-01  Jim Meyering  <meyering@redhat.com>
21613
21614         remove trailing spaces
21615         * NEWS: Likewise.
21616         * lib/poll.c (poll): Likewise.
21617         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
21618         * lib/winsock.c (rpl_close): Likewise.
21619         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
21620         * modules/yield: Likewise.
21621         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
21622         * tests/test-sys_select.c (connect_to_socket): Likewise.
21623
21624         fts.c: adjust a new interface to be more generally useful
21625         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
21626         (fts_build): Adjust caller.
21627
21628 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21629
21630         * modules/cond-tests: New file.
21631         * tests/test-cond.c: New file.
21632
21633 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21634             Bruno Haible  <bruno@clisp.org>
21635
21636         * modules/cond (Dependencies): Add errno, time.
21637         * lib/glthread/cond.h: Include <time.h>.
21638         (gl_cond_define, gl_cond_define_initialized): Use the same definition
21639         across platforms.
21640
21641 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21642             Bruno Haible  <bruno@clisp.org>
21643
21644         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
21645
21646 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21647             Bruno Haible  <bruno@clisp.org>
21648
21649         * modules/tls-tests (Depends-on): Add thread, yield.
21650         (configure.ac): Remove all checks.
21651         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
21652         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
21653         gl_thread_self): Remove definitions. Include glthread/thread.h and
21654         glthread/yield.h instead.
21655         (test_tls): Pass an additional NULL argument to gl_thread_join.
21656
21657 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21658             Bruno Haible  <bruno@clisp.org>
21659
21660         * modules/lock-tests (Depends-on): Add thread, yield.
21661         (configure.ac): Remove all checks.
21662         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
21663         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
21664         gl_thread_self): Remove definitions. Include glthread/thread.h and
21665         glthread/yield.h instead.
21666         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
21667         additional NULL argument to gl_thread_join.
21668
21669 2008-09-30  Bruno Haible  <bruno@clisp.org>
21670
21671         Fix the Win32 implementation of the 'thread' module.
21672         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
21673         pointer type.
21674         (gl_thread_self): Invoke gl_thread_self_func.
21675         (gl_thread_self_func): New declaration.
21676         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
21677         (do_init_self_key, init_self_key): New functions.
21678         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
21679         Remove some fields.
21680         (running_threads, running_lock): Remove variables.
21681         (get_current_thread_handle): New function.
21682         (gl_thread_self_func, wrapper_func, glthread_create_func,
21683         glthread_join_func, gl_thread_exit_func): Largely rewritten and
21684         simplified.
21685
21686 2008-09-30  Bruno Haible  <bruno@clisp.org>
21687
21688         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
21689         files.
21690
21691 2008-09-30  Jim Meyering  <meyering@redhat.com>
21692
21693         fts.m4: correct the test for statfs.f_type
21694         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
21695         when checking for statfs.f_type.
21696
21697 2008-09-15  Simon Josefsson  <simon@josefsson.org>
21698
21699         tests: avoid some compiler warnings
21700         * tests/test-memchr.c (main): Pass NULL indirectly.
21701         * tests/test-getdate.c (main): Remove unused variable 'ret'.
21702
21703 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
21704
21705         getdate.y: disallow countable dayshifts like "4 yesterday ago"
21706         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
21707         exactly specified dayshifts.
21708         (dayshift): New rule.
21709         (rel): Add dayshift.
21710         (relative_time_table) [tomorrow, yesterday, today, now]:
21711         Use tDAY_SHIFT in place of tDAY_UNIT.
21712         * tests/test-getdate.c: Add tests for now-disallowed countable
21713         dayshifts, e.g., "4 yesterday ago".
21714
21715 2008-09-29  Bruno Haible  <bruno@clisp.org>
21716
21717         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
21718         * tests/test-posix_spawn1.in.sh: Renamed from
21719         tests/test-posix_spawn.in.sh.
21720         * tests/test-posix_spawn2.c: New file.
21721         * tests/test-posix_spawn2.in.sh: New file.
21722         * modules/posix_spawnp-tests (Files): Update.
21723         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
21724
21725 2008-09-29  Bruno Haible  <bruno@clisp.org>
21726
21727         Propagate effects of putenv/setenv/unsetenv to child processes.
21728         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
21729         * lib/pipe.c (create_pipe): Likewise.
21730
21731 2008-09-29  Bruno Haible  <bruno@clisp.org>
21732
21733         Enable use of shell scripts as executables in mingw.
21734         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
21735         run the program as a shell script.
21736         * lib/pipe.c (create_pipe): Likewise.
21737         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
21738         resulting array.
21739
21740 2008-09-29  Eric Blake  <ebb9@byu.net>
21741
21742         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
21743
21744 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
21745
21746         * doc/posix-functions/accept.texi: Update mingw problems.
21747         * doc/posix-functions/bind.texi: Update mingw problems.
21748         * doc/posix-functions/close.texi: Update mingw problems.
21749         * doc/posix-functions/connect.texi: Update mingw problems.
21750         * doc/posix-functions/getpeername.texi: Update mingw problems.
21751         * doc/posix-functions/getsockname.texi: Update mingw problems.
21752         * doc/posix-functions/getsockopt.texi: Update mingw problems.
21753         * doc/posix-functions/ioctl.texi: Update mingw problems.
21754         * doc/posix-functions/listen.texi: Update mingw problems.
21755         * doc/posix-functions/recv.texi: Update mingw problems.
21756         * doc/posix-functions/recvfrom.texi: Update mingw problems.
21757         * doc/posix-functions/select.texi: Update mingw problems.
21758         * doc/posix-functions/send.texi: Update mingw problems.
21759         * doc/posix-functions/sendto.texi: Update mingw problems.
21760         * doc/posix-functions/setsockopt.texi: Update mingw problems.
21761         * doc/posix-functions/socket.texi: Update mingw problems.
21762
21763 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
21764             Bruno Haible  <bruno@clisp.org>
21765
21766         * lib/sys_select.in.h: Include sys/time.h.
21767         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
21768         * modules/sys_select: Depend on sys_time.
21769         * tests/test-sys_select.c: Test that sys/select.h defines struct
21770         timeval fully.
21771
21772 2008-09-29  Bruno Haible  <bruno@clisp.org>
21773
21774         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
21775         * lib/sys_select.in.h: Likewise.
21776
21777 2008-09-29  Bruno Haible  <bruno@clisp.org>
21778
21779         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
21780
21781 2008-09-29  Bruno Haible  <bruno@clisp.org>
21782
21783         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
21784         Set LIBSOCKET instead of augmenting LIBS.
21785         * modules/sockets (Link): New section.
21786         * modules/sockets-tests (test_sockets_LDADD): New variable.
21787         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
21788         * modules/poll-tests (test_poll_LDADD): New variable.
21789         * NEWS: Document the change.
21790
21791 2008-09-29  Bruno Haible  <bruno@clisp.org>
21792
21793         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
21794         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
21795         ARPA_INET_H directly.
21796         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
21797
21798 2008-09-28  Bruno Haible  <bruno@clisp.org>
21799
21800         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
21801         from gl_HEADER_SYS_SOCKET.
21802         (gl_HEADER_SYS_SOCKET): Invoke it.
21803         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21804
21805 2008-09-28  Bruno Haible  <bruno@clisp.org>
21806
21807         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
21808         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
21809         Needed on OSF/1 4.0.
21810
21811 2008-09-28  Bruno Haible  <bruno@clisp.org>
21812
21813         Override open more carefully.
21814         * lib/open.c (orig_open): New function.
21815         (rpl_open): Use orig_open instead of open.
21816         * lib/fcntl.in.h: Add special invocation convention.
21817         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
21818         (gl_FUNC_OPEN): Invoke it.
21819
21820         Override freopen more carefully.
21821         * lib/freopen.c (orig_freopen): New function.
21822         (rpl_freopen): Use orig_freopen instead of freopen.
21823         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
21824         (gl_FUNC_FREOPEN): Invoke it.
21825
21826         Override fopen more carefully.
21827         * lib/fopen.c (orig_fopen): New function.
21828         (rpl_fopen): Use orig_fopen instead of fopen.
21829         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
21830         (gl_FUNC_FOPEN): Invoke it.
21831         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
21832
21833 2008-09-28  Bruno Haible  <bruno@clisp.org>
21834
21835         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
21836         SIGPIPE.
21837
21838 2008-09-28  Bruno Haible  <bruno@clisp.org>
21839
21840         * tests/test-sigaction.c (handler, main): Disable the check whether
21841         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
21842         glibc systems with LinuxThreads.
21843
21844 2008-09-28  Bruno Haible  <bruno@clisp.org>
21845
21846         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
21847
21848         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
21849         with AIX xlc.
21850         * lib/fcntl.in.h (open): Likewise.
21851         Reported by Rainer Tammer <tammer@tammer.net>.
21852
21853 2008-09-28  Bruno Haible  <bruno@clisp.org>
21854
21855         * modules/posix_spawnp-tests: New file.
21856         * tests/test-posix_spawn.c: New file.
21857         * tests/test-posix_spawn.in.sh: New file.
21858
21859         New module 'posix_spawnp'.
21860         * modules/posix_spawnp: New file.
21861         * lib/spawnp.c: New file, from GNU libc with modifications.
21862         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
21863
21864         New module 'posix_spawn'.
21865         * modules/posix_spawn: New file.
21866         * lib/spawn.c: New file, from GNU libc with modifications.
21867         * doc/posix-functions/posix_spawn.texi: Mention the new module.
21868
21869         New module 'posix_spawnattr_destroy'.
21870         * modules/posix_spawnattr_destroy: New file.
21871         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
21872         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
21873         module.
21874
21875         New module 'posix_spawnattr_setsigmask'.
21876         * modules/posix_spawnattr_setsigmask: New file.
21877         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
21878         modifications.
21879         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
21880         new module.
21881
21882         New module 'posix_spawnattr_getsigmask'.
21883         * modules/posix_spawnattr_getsigmask: New file.
21884         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
21885         modifications.
21886         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
21887         new module.
21888
21889         New module 'posix_spawnattr_setsigdefault'.
21890         * modules/posix_spawnattr_setsigdefault: New file.
21891         * lib/spawnattr_setdefault.c: New file, from GNU libc with
21892         modifications.
21893         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
21894         new module.
21895
21896         New module 'posix_spawnattr_getsigdefault'.
21897         * modules/posix_spawnattr_getsigdefault: New file.
21898         * lib/spawnattr_getdefault.c: New file, from GNU libc with
21899         modifications.
21900         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
21901         new module.
21902
21903         New module 'posix_spawnattr_setschedpolicy'.
21904         * modules/posix_spawnattr_setschedpolicy: New file.
21905         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
21906         modifications.
21907         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
21908         new module.
21909
21910         New module 'posix_spawnattr_getschedpolicy'.
21911         * modules/posix_spawnattr_getschedpolicy: New file.
21912         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
21913         modifications.
21914         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
21915         new module.
21916
21917         New module 'posix_spawnattr_setschedparam'.
21918         * modules/posix_spawnattr_setschedparam: New file.
21919         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
21920         modifications.
21921         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
21922         new module.
21923
21924         New module 'posix_spawnattr_getschedparam'.
21925         * modules/posix_spawnattr_getschedparam: New file.
21926         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
21927         modifications.
21928         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
21929         new module.
21930
21931         New module 'posix_spawnattr_setpgroup'.
21932         * modules/posix_spawnattr_setpgroup: New file.
21933         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
21934         modifications.
21935         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
21936         module.
21937
21938         New module 'posix_spawnattr_getpgroup'.
21939         * modules/posix_spawnattr_getpgroup: New file.
21940         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
21941         modifications.
21942         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
21943         module.
21944
21945         New module 'posix_spawnattr_setflags'.
21946         * modules/posix_spawnattr_setflags: New file.
21947         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
21948         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
21949         module.
21950
21951         New module 'posix_spawnattr_getflags'.
21952         * modules/posix_spawnattr_getflags: New file.
21953         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
21954         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
21955         module.
21956
21957         New module 'posix_spawnattr_init'.
21958         * modules/posix_spawnattr_init: New file.
21959         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
21960         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
21961         module.
21962
21963         New module 'posix_spawn_file_actions_destroy'.
21964         * modules/posix_spawn_file_actions_destroy: New file.
21965         * lib/spawn_faction_destroy.c: New file, from GNU libc with
21966         modifications.
21967         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
21968         the new module.
21969
21970         New module 'posix_spawn_file_actions_addopen'.
21971         * modules/posix_spawn_file_actions_addopen: New file.
21972         * lib/spawn_faction_addopen.c: New file, from GNU libc with
21973         modifications.
21974         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
21975         the new module.
21976
21977         New module 'posix_spawn_file_actions_adddup2'.
21978         * modules/posix_spawn_file_actions_adddup2: New file.
21979         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
21980         modifications.
21981         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
21982         the new module.
21983
21984         New module 'posix_spawn_file_actions_addclose'.
21985         * modules/posix_spawn_file_actions_addclose: New file.
21986         * lib/spawn_faction_addclose.c: New file, from GNU libc with
21987         modifications.
21988         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
21989         the new module.
21990
21991         New module 'posix_spawn_file_actions_init'.
21992         * modules/posix_spawn_file_actions_init: New file.
21993         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
21994         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
21995         new module.
21996
21997         New module 'posix_spawn-internal'.
21998         * modules/posix_spawn-internal: New file.
21999         * lib/spawn_int.h: New file, from GNU libc with modifications.
22000         * lib/spawni.c: New file, from GNU libc with modifications.
22001         * m4/posix_spawn.m4: New file.
22002
22003         New module 'spawn'.
22004         * modules/spawn: New file.
22005         * lib/spawn.in.h: New file, from GNU libc with modifications.
22006         * m4/spawn_h.m4: New file.
22007         * doc/posix-headers/spawn.texi: Mention the new module.
22008
22009 2008-09-28  Bruno Haible  <bruno@clisp.org>
22010
22011         * modules/sched-tests: New file.
22012         * tests/test-sched.c: New file.
22013
22014         New module 'sched'.
22015         * modules/sched: New file.
22016         * lib/sched.in.h: New file.
22017         * m4/sched_h.m4: New file.
22018         * doc/posix-headers/sched.texi: Mention the new module.
22019
22020 2008-09-27  Eric Blake  <ebb9@byu.net>
22021
22022         Fix previous patch, and tweak references to $0.
22023         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
22024         (func_version, func_gnulib_dir): Don't call this program
22025         gnulib-tool.
22026         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
22027         with using $0 in function.
22028         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
22029         (func_fatal_error): Reuse the name the user invoked us with.
22030
22031 2008-09-27  Bruno Haible  <bruno@clisp.org>
22032
22033         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
22034         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
22035         (gl_ICONV_H): Not here.
22036         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
22037         instead of assigning ICONV_H directly.
22038
22039         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
22040         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
22041         WCHAR_H directly.
22042
22043 2008-09-27  Bruno Haible  <bruno@clisp.org>
22044
22045         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
22046         * modules/arpa_inet (Depends-on): Add link-warning.
22047         (Makefile.am): Insert the definition of GL_LINK-WARNING.
22048         * modules/unistd (Makefile.am): Likewise.
22049
22050 2008-09-26  Bruno Haible  <bruno@clisp.org>
22051
22052         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
22053         variables.
22054         (func_version): Essentially copied from gnulib-tool.
22055         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
22056         func_readlink): Copied from gnulib-tool.
22057
22058 2008-09-26  Bruno Haible  <bruno@clisp.org>
22059
22060         * gnulib-tool (func_version): Change directory to $gnulib_dir before
22061         invoking git-version-gen.
22062
22063 2008-09-26  Bruno Haible  <bruno@clisp.org>
22064
22065         * posix-modules: Update to directory names changed on 2008-01-19.
22066         Remove commas in output before splitting into words. No more need to
22067         avoid 'ftruncate' since 2007-02-19.
22068
22069 2008-09-26  Bruno Haible  <bruno@clisp.org>
22070
22071         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
22072
22073 2008-09-26  Bruno Haible  <bruno@clisp.org>
22074
22075         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
22076         * modules/fwriteerror (Depends-on): Add errno.
22077
22078 2008-09-26  Bruno Haible  <bruno@clisp.org>
22079
22080         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
22081         * tests/test-vc-list-files-cvs.sh: Likewise.
22082
22083 2008-09-26  Bruno Haible  <bruno@clisp.org>
22084
22085         * doc/posix-headers/sys_resource.texi: Reorder items.
22086
22087 2008-09-26  Jim Meyering  <meyering@redhat.com>
22088
22089         fts: tweak inode comparison function
22090         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
22091         inode numbers, as documented.
22092
22093         fts: sort dirent entries on inode number before traversing
22094         This avoids a quadratic, seek-related performance penalty when
22095         operating on a directory containing many entries (measurable at 10k;
22096         3.5 hours at 2 million entries with a cold cache) on certain types
22097         of file systems, including ext3 and ext4, but not tmpfs.
22098         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
22099         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
22100         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
22101         (fs_handles_readdir_ordered_dirents_efficiently): New function.
22102         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
22103         (fts_build): Set the stat.st_ino member from D_INO.
22104         If it is likely to be useful, sort dirent entries on inode number.
22105
22106         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
22107         and the struct statfs.f_type member.
22108         * modules/fts (Depends-on): Add d-ino.
22109
22110 2008-09-26  Bruno Haible  <bruno@clisp.org>
22111
22112         * modules/sigpipe-die (Depends-on): Add sigpipe.
22113
22114         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
22115         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
22116         and GNULIB_STDIO_H_SIGPIPE are set.
22117         * lib/stdio-write.c: New file.
22118         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
22119         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
22120         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
22121         REPLACE_STDIO_WRITE_FUNCS.
22122         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
22123         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
22124         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
22125         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
22126         * modules/stdio (Files): Add lib/stdio-write.c.
22127         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
22128         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
22129         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
22130         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
22131         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
22132         REPLACE_FPRINTF_POSIX.
22133         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
22134         REPLACE_PRINTF_POSIX.
22135         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
22136         REPLACE_VFPRINTF_POSIX.
22137         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
22138         REPLACE_VPRINTF_POSIX.
22139         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
22140         SIGPIPE issue.
22141         * doc/posix-functions/fputc.texi: Likewise.
22142         * doc/posix-functions/fputs.texi: Likewise.
22143         * doc/posix-functions/fwrite.texi: Likewise.
22144         * doc/posix-functions/printf.texi: Likewise.
22145         * doc/posix-functions/putc.texi: Likewise.
22146         * doc/posix-functions/putchar.texi: Likewise.
22147         * doc/posix-functions/puts.texi: Likewise.
22148         * doc/posix-functions/vfprintf.texi: Likewise.
22149         * doc/posix-functions/vprintf.texi: Likewise.
22150
22151         * modules/safe-write (Depends-on): Add write.
22152
22153         * modules/sigpipe-tests: New file.
22154         * tests/test-sigpipe.c: New file.
22155         * tests/test-sigpipe.sh: New file.
22156
22157         * modules/write: New file.
22158         * lib/unistd.in.h: Include <sys/types.h>.
22159         (write): New declaration.
22160         * lib/write.c: New file.
22161         * m4/write.m4: New file.
22162         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22163         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
22164         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
22165         GNULIB_WRITE, REPLACE_WRITE.
22166         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
22167         and the SIGPIPE issue.
22168
22169         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
22170         (raise): New declaration.
22171         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
22172         (ext_signal): New function.
22173         (rpl_raise): New function.
22174         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
22175         GNULIB_SIGNAL_H_SIGPIPE.
22176         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
22177         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
22178
22179         * modules/sigpipe: New file.
22180         * m4/sigpipe.m4: New file.
22181
22182 2008-09-25  Derek Price  <derek@ximbiot.com>
22183             Bruno Haible  <bruno@clisp.org>
22184
22185         * gnulib-tool (func_import): Report all license incompatibilities, not
22186         just the first one.
22187
22188 2008-09-25  Bruno Haible  <bruno@clisp.org>
22189
22190         * gnulib-tool (func_import): When computing the edits, consider not
22191         only the Makefile.ams that exist but also those that will be generated.
22192
22193 2008-09-25  Simon Josefsson  <simon@josefsson.org>
22194
22195         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
22196         fixes gnulib-tool --test warning about duplicate dependency.
22197
22198 2008-09-25  Bruno Haible  <bruno@clisp.org>
22199
22200         * gnulib-tool: Don't ask the user to perform edits in the generated
22201         Makefile.ams.
22202         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
22203         apply to the Makefile.am being generated.
22204         (func_emit_tests_Makefile_am): Execute edits that apply to the
22205         Makefile.am being generated.
22206         (func_import): Setup list of Makefile.am edits before emitting the
22207         Makefile.ams, not at the end.
22208         (func_create_testdir): Update.
22209         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
22210
22211 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22212
22213         * gnulib-tool (func_import): Store the --tests-base option in the
22214         comment in gnulib-cache.m4.
22215
22216 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
22217
22218         * NEWS: Document increased portability that sys_select now provides.
22219
22220         * lib/sys_select.in.h: Install select wrapper.
22221         * lib/sys_socket.in.h: Use more descriptive name when there is no
22222         select wrapper.
22223         * lib/winsock-select.c: New.
22224         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
22225         Require gl_HEADER_SYS_SOCKET.
22226         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
22227         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
22228         * tests/test-sys_select.c: Add functional tests.
22229
22230 2008-09-24  Eric Blake  <ebb9@byu.net>
22231
22232         open, fopen: close fd leak in last patch
22233         * lib/open.c (rpl_open): Close fd before returning error.
22234         * lib/fopen.c (rpl_fopen): Close fd before returning error.
22235         * doc/posix-functions/open.texi (open): Document that Irix also
22236         has the bug.
22237         * doc/posix-functions/fopen.texi (fopen): Likewise.
22238         Reported by Paolo Bonzini.
22239
22240 2008-09-24  Bruno Haible  <bruno@clisp.org>
22241
22242         Ensure that a filename ending in a slash cannot be used to access a
22243         non-directory.
22244         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
22245         to check whether it's really a directory.
22246         * lib/fopen.c: Include fcntl.h, unistd.h.
22247         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
22248         and fdopen().
22249         * modules/fopen (Depends-on): Add unistd.
22250         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
22251         * tests/test-fopen.c (main): Likewise.
22252         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
22253         * doc/posix-functions/fopen.texi: Likewise.
22254         Reported by Eric Blake.
22255
22256 2008-09-23  Eric Blake  <ebb9@byu.net>
22257
22258         c-stack: avoid compiler optimizations when provoking overflow
22259         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
22260         recursion harder to optimize, to ensure a stack overflow occurs.
22261         * tests/test-c-stack.c (recurse): Likewise.
22262         Borrowed from libsigsegv.
22263
22264         c-stack: work around Irix sigaltstack bug
22265         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
22266         whether sigaltstack uses wrong end of stack_t (copied in part from
22267         libsigsegv).
22268         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
22269         Irix bug, without requiring an over-allocation.
22270         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
22271         bug.
22272
22273         fopen: document mingw bug on directories
22274         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
22275         not allowing a stream visiting a directory, even though reading
22276         from such a stream is not portable.
22277
22278 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
22279
22280         * lib/poll.c: Rewrite.
22281         * modules/poll: Depend on alloca.
22282
22283 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
22284
22285         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
22286         instead define prototypes for a full set of wrappers.  Ensure
22287         that Cygwin does not use the compatibility code, which is only
22288         for MinGW.
22289         * lib/winsock.c: New.
22290         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
22291         * modules/sys_socket: Add lib/winsock.c.
22292
22293         * modules/poll-tests: Add errno and perror.
22294         * tests/test-poll.c: Use ioctl, not ioctlsocket.
22295
22296 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
22297
22298         * tests/test-poll.c: Downgrade minimum needed Winsock version.
22299
22300 2008-09-23  Bruno Haible  <bruno@clisp.org>
22301
22302         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
22303         * doc/glibc-functions/*: Likewise.
22304
22305 2008-09-23  Simon Josefsson  <simon@josefsson.org>
22306
22307         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
22308         success.
22309
22310 2008-09-22  Eric Blake  <ebb9@byu.net>
22311             Bruno Haible  <bruno@clisp.org>
22312
22313         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
22314         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
22315         supply %A but mishandle pseudo-NaN.
22316         Reported by Simon Josefsson.
22317
22318 2008-09-21  Bruno Haible  <bruno@clisp.org>
22319
22320         * tests/test-lock.c (main): Tweak skip message.
22321         * tests/test-tls.c (main): Likewise.
22322
22323 2008-09-21  Bruno Haible  <bruno@clisp.org>
22324
22325         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
22326         whether 'struct sigaction' has sa_sigaction here...
22327         (gl_PREREQ_SIG_HANDLER_H): ... not here.
22328         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
22329
22330 2008-09-21  Bruno Haible  <bruno@clisp.org>
22331
22332         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
22333         section.
22334         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
22335         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
22336         the new section.
22337         (Support for obsolete systems lacking POSIX:2001): New section.
22338         (String handling <string.h>): Move strdup to the new section.
22339         Suggested by Simon Josefsson and Paolo Bonzini.
22340
22341 2008-09-21  Bruno Haible  <bruno@clisp.org>
22342
22343         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
22344         exponents in %e and %g results on 'long double'. Needed for mingw's
22345         improved *printf functions.
22346         * tests/test-vasprintf-posix.c (test_function): Likewise.
22347         * tests/test-snprintf-posix.h (test_function): Likewise.
22348         * tests/test-sprintf-posix.h (test_function): Likewise.
22349         Reported by Eric Blake.
22350
22351 2008-09-21  Bruno Haible  <bruno@clisp.org>
22352
22353         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
22354         * tests/test-sprintf-posix.h (test_function): Likewise.
22355
22356 2008-09-21  Bruno Haible  <bruno@clisp.org>
22357
22358         * modules/getpass (Depends-on): Add strdup-posix.
22359
22360         New module 'strdup-posix'.
22361         * modules/strdup-posix: New file.
22362         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
22363         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
22364         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
22365         REPLACE_STRDUP.
22366         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
22367         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
22368         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22369         strdup-posix.
22370
22371         * modules/strdup (Depends-on): Remove malloc-posix.
22372
22373 2008-09-20  Bruno Haible  <bruno@clisp.org>
22374
22375         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
22376         Wildenhues.
22377
22378 2008-09-20  Bruno Haible  <bruno@clisp.org>
22379
22380         Ensure that wint_t gets defined on IRIX 5.3.
22381         * lib/wchar.in.h (wint_t): Define if not defined by the system.
22382         * lib/wctype.in.h (wint_t): Likewise.
22383         (__wctype_wint_t): Remove type.
22384         (isw*): Use wint_t instead of __wctype_wint_t.
22385         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
22386         * modules/wchar (Files): Add m4/wint_t.m4.
22387         (Makefile.am): Substitute HAVE_WINT_T.
22388         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
22389         * tests/test-wctype.c: Check that wint_t is defined.
22390         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
22391         * doc/posix-headers/wctype.texi: Likewise.
22392         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22393
22394 2008-09-18  Bruno Haible  <bruno@clisp.org>
22395
22396         * gnulib-tool (func_exit): Update comment.
22397
22398 2008-09-18  Simon Josefsson  <simon@josefsson.org>
22399
22400         * modules/getaddrinfo (Depends-on): Remove strdup, this module
22401         assumes strdup exists and does not depend on strdup to return
22402         ENOMEM on out of memory conditions.
22403
22404 2008-09-18  Bruno Haible  <bruno@clisp.org>
22405
22406         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
22407         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
22408         digits for the exponent.
22409
22410 2008-09-18  Jim Meyering  <meyering@redhat.com>
22411             Bruno Haible  <bruno@clisp.org>
22412
22413         * lib/vasnprintf.c (decimal_point_char): Define also if
22414         NEED_PRINTF_INFINITE_LONG_DOUBLE.
22415
22416 2008-09-16  Bruno Haible  <bruno@clisp.org>
22417         and Eric Blake  <ebb9@byu.net>
22418
22419         vasnprintf: support Irix 5.3
22420         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
22421         that mishandle long double infinity.
22422         Reported by Tom G. Christensen.
22423
22424 2008-09-16  Bruno Haible  <bruno@clisp.org>
22425
22426         * doc/glibc-functions/scandir.texi: Mention the function is missing on
22427         Solaris 9.
22428         * doc/glibc-functions/alphasort.texi: Likewise.
22429         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
22430
22431 2008-09-16  Jim Meyering  <meyering@redhat.com>
22432
22433         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
22434         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
22435         a umask modification leak out of a subshell.  Otherwise, the
22436         opensolaris /bin/sh would be accepted and thus cause unwarranted
22437         failures in the coreutils test suite.
22438
22439 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
22440
22441         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
22442         to succeed.
22443
22444 2008-09-16  Jim Meyering  <meyering@redhat.com>
22445
22446         avoid spurious test failure when library is built without ACL support
22447         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
22448         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
22449         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
22450         * tests/test-copy-acl.sh: Likewise.
22451
22452 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22453
22454         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
22455         based on character occurrence counts.
22456
22457 2008-09-15  Eric Blake  <ebb9@byu.net>
22458
22459         tests: avoid some compiler warnings
22460         * tests/test-memchr.c (main): Pass NULL indirectly.
22461         * tests/test-closein.c (main): Avoid unused variable.
22462
22463 2008-09-15  Bruno Haible  <bruno@clisp.org>
22464
22465         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
22466         are missing on OpenBSD 4.0 individually.
22467         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
22468
22469 2008-09-15  Bruno Haible  <bruno@clisp.org>
22470
22471         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
22472         * doc/posix-functions/strerror.texi: Mention also Cygwin.
22473         * doc/posix-functions/perror.texi: Likewise.
22474         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
22475         is missing.
22476         Reported by Eric Blake.
22477
22478         * lib/errno.in.h: Use replacement values >= 2000.
22479         Reported by Eric Blake.
22480
22481 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22482
22483         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
22484         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
22485         limit.
22486         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
22487         compareseq was aborted.
22488
22489 2008-09-14  Bruno Haible  <bruno@clisp.org>
22490
22491         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
22492         yvec_edit_count.
22493         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
22494         (fstrcmp_bounded): Simplify result computation accordingly.
22495
22496 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22497
22498         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
22499         (fstrcmp): Define in terms of fstrcmp_bounded.
22500         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
22501         lower_bound argument.
22502         Return quickly if the result is certainly < lower_bound.
22503         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
22504
22505 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22506
22507         * lib/diffseq.h (EARLY_ABORT): New macro.
22508         (compareseq): Change return type to bool. Return true when EARLY_ABORT
22509         evaluates to true.
22510
22511 2008-09-14  Bruno Haible  <bruno@clisp.org>
22512
22513         * modules/perror-tests: New file.
22514         * tests/test-perror.sh: New file.
22515         * tests/test-perror.c: New file.
22516
22517         New module 'perror'.
22518         * lib/stdio.in.h (perror): New declaration.
22519         * lib/perror.c: New file.
22520         * m4/perror.m4: New file.
22521         * modules/perror: New file.
22522         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
22523         * doc/posix-functions/perror.texi: Mention the perror module.
22524         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
22525         REPLACE_PERROR.
22526         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
22527         REPLACE_PERROR.
22528
22529 2008-09-14  Bruno Haible  <bruno@clisp.org>
22530
22531         * modules/stdio (Makefile.am): Reorder to match the order in
22532         lib/stdio.in.h.
22533         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
22534
22535 2008-09-13  Bruno Haible  <bruno@clisp.org>
22536
22537         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
22538
22539 2008-09-13  Bruno Haible  <bruno@clisp.org>
22540
22541         Extend strerror to cover the added errno values.
22542         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
22543         (rpl_strerror): Provide error messages for the added errno values and
22544         for the WSA* values.
22545         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
22546         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
22547         strerror.
22548         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
22549         * modules/strerror (Depends-on): Add errno.
22550         * doc/posix-functions/strerror.texi: Document the change.
22551         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
22552         and EOVERFLOW.
22553
22554 2008-09-13  Bruno Haible  <bruno@clisp.org>
22555
22556         * modules/EOVERFLOW: Remove file.
22557         * m4/eoverflow.m4: Remove file.
22558         * modules/EOVERFLOW-tests: Remove file.
22559         * tests/test-EOVERFLOW.c: Remove file.
22560         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
22561         * modules/ftell (Depends-on): Likewise.
22562         * modules/getdelim (Depends-on): Likewise.
22563         * modules/getugroups (Depends-on): Likewise.
22564         * modules/poll (Depends-on): Likewise.
22565         * modules/snprintf (Depends-on): Likewise.
22566         * modules/sprintf-posix (Depends-on): Likewise.
22567         * modules/vasnprintf (Depends-on): Likewise.
22568         * modules/vasprintf (Depends-on): Likewise.
22569         * modules/vfprintf-posix (Depends-on): Likewise.
22570         * modules/vsnprintf (Depends-on): Likewise.
22571         * modules/vsprintf-posix (Depends-on): Likewise.
22572         * modules/xvasprintf (Depends-on): Likewise.
22573         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
22574         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
22575         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
22576         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
22577         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
22578         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
22579         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
22580         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
22581         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
22582         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
22583         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
22584         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
22585         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
22586         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
22587         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
22588         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
22589         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
22590         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
22591         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
22592         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
22593         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
22594         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
22595         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
22596         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
22597         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
22598         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
22599         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
22600         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
22601         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
22602         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
22603         * MODULES.html.sh: Remove EOVERFLOW.
22604         * NEWS: Mention the change.
22605
22606 2008-09-13  Bruno Haible  <bruno@clisp.org>
22607
22608         * modules/errno-tests: New file.
22609         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
22610
22611         * lib/errno.in.h: New file.
22612         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
22613         * modules/errno: New file.
22614         * doc/posix-headers/errno.texi: Update documentation.
22615         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
22616
22617 2008-09-13  Bruno Haible  <bruno@clisp.org>
22618
22619         * tests/test-poll.c: Use #if for native Windows, rather than testing
22620         __MSVCRT__.
22621
22622 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22623             Bruno Haible  <bruno@clisp.org>
22624
22625         * lib/glob.c: Don't include <pwd.h> on native Windows.
22626         (WINDOWS32): New macro.
22627         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
22628
22629 2008-09-13  Bruno Haible  <bruno@clisp.org>
22630
22631         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
22632         (ETIMEDOUT): Remove macro.
22633         (glthread_cond_timedwait_multithreaded): New declaration.
22634         (glthread_cond_timedwait): Use it.
22635         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
22636         (glthread_cond_timedwait_multithreaded): New function.
22637
22638 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
22639
22640         * modules/poll-tests: Do not check for io.h.
22641         * tests/test-poll.c: Check for __MSVCRT__ instead.
22642
22643 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
22644
22645         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
22646         * modules/poll-tests: Add inet_pton, stdbool, sockets.
22647         * tests/test-poll.c: Use them.  Use _pipe on Windows.
22648
22649 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
22650
22651         * modules/poll-tests: New.
22652         * tests/test-poll.c: New.
22653
22654 2008-09-12  Eric Blake  <ebb9@byu.net>
22655
22656         frexp: test for NetBSD failure on -0.0
22657         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
22658         not all, bugs from NetBSD 3.0 have been fixed.
22659         * doc/posix-functions/frexp.texi (frexp): Document bug.
22660         Reported by Thomas Klausner.
22661
22662         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
22663         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
22664         literal -0.0.
22665         Reported by Jonathan C. Patschke <jp@centtech.com>.
22666
22667 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22668
22669         * lib/glthread/cond.h: Use dummy implementation also if
22670         USE_WIN32_THREADS.
22671
22672 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22673
22674         * modules/fnmatch-posix (License): Change to LGPLv2+.
22675         * modules/fnmatch-gnu (License): Likewise.
22676
22677 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22678
22679         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
22680
22681 2008-09-11  Jim Meyering  <meyering@redhat.com>
22682
22683         * users.txt: Add gtk-vnc.
22684
22685 2008-09-08  Simon Josefsson  <simon@josefsson.org>
22686
22687         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
22688         rotate amounts.
22689
22690         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
22691         required for 16-bit and 8-bit rotates.
22692         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
22693         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
22694         UINT8_MAX instead of hard-coded constants.
22695         Suggested by Paul Eggert.
22696
22697 2008-09-07  Bruno Haible  <bruno@clisp.org>
22698
22699         * tests/test-striconveh.c (main): Check behaviour when converting from
22700         UTF-7.
22701
22702         Make striconveh work better with stateful encodings.
22703         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
22704         that iconv does not increment the inptr when returning -1/EINVAL.
22705
22706 2008-09-07  Bruno Haible  <bruno@clisp.org>
22707
22708         * build-aux/config.rpath: Update according to libtool-2.2.6.
22709         * build-aux/config.libpath: Likewise.
22710
22711 2008-09-06  Bruno Haible  <bruno@clisp.org>
22712
22713         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
22714         * lib/freadptr.c (freadptr): Likewise.
22715         * lib/freadseek.c (freadptrinc): Likewise.
22716         Reported by Simon Josefsson.
22717
22718 2008-09-06  Bruno Haible  <bruno@clisp.org>
22719
22720         * modules/freadptr (License): Change to LGPLv2+.
22721         * modules/freadseek (License): Likewise.
22722         Suggested by Eric Blake.
22723
22724         * modules/memchr2 (License): Change to LGPLv2+.
22725         Approved by Eric Blake.
22726
22727 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22728             Bruno Haible  <bruno@clisp.org>
22729
22730         Make gnulib-tool work with native 'sed' on AIX.
22731         * gnulib-tool (sed_noop): New variable.
22732         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
22733         func_add_or_update, func_create_testdir): Use it to initialize sed
22734         script variables.
22735         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22736
22737 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
22738             Bruno Haible  <bruno@clisp.org>
22739
22740         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
22741         also works after #include directives.
22742
22743 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
22744
22745         getdate.y: reject an out-of-range timezone value
22746         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
22747         the range [-24...+24].  When specified with only one or two digits,
22748         * tests/test-getdate.c: Tests for the fix.
22749         * doc/getdate.texi: Document this change.
22750
22751 2008-09-03  Bruno Haible  <bruno@clisp.org>
22752
22753         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
22754
22755 2008-09-02  Simon Josefsson  <simon@josefsson.org>
22756
22757         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
22758         <bruce.korb@gmail.com> with ideas from Ben Pfaff
22759         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
22760         Blake <ebb9@byu.net>.
22761
22762         * tests/test-bitrotate.c: Add more test vectors.
22763
22764 2008-09-02  Eric Blake  <ebb9@byu.net>
22765
22766         vasnprintf-posix: handle large precision via %.*d
22767         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
22768         when handling it ourselves.
22769         * tests/test-vasnprintf-posix.c (test_function): Add test.
22770         * tests/test-snprintf-posix.h (test_function): Likewise.
22771         * tests/test-sprintf-posix.h (test_function): Likewise.
22772         * tests/test-vasprintf-posix.c (test_function): Likewise.
22773         Reported by Alain Guibert.
22774
22775 2008-09-01  Eric Blake  <ebb9@byu.net>
22776
22777         c-stack: make configure-time check more robust
22778         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
22779         successful sigaction call.
22780         Reported by Tom G. Christensen.
22781
22782 2008-09-01  Bruno Haible  <bruno@clisp.org>
22783
22784         New module 'findprog-lgpl'.
22785         * modules/findprog-lgpl: New file.
22786         * lib/findprog-lgpl.c: New file.
22787         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
22788         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
22789         to decide whether to use strdup or xstrdup, concatenated_filename or
22790         xconcatenated_filename.
22791
22792 2008-09-01  Bruno Haible  <bruno@clisp.org>
22793
22794         Split module 'concat-filename' into 'concat-filename' (LGPL) and
22795         'xconcat-filename' (GPL).
22796         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
22797         (License): Change to LGPLv2+.
22798         * modules/xconcat-filename: New file.
22799         * lib/concat-filename.h (concatenated_filename): Change specification.
22800         (xconcatenated_filename): New declaration.
22801         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
22802         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
22803         memory situations.
22804         * lib/xconcat-filename.c: New file.
22805         * NEWS: Mention the change.
22806         * lib/findprog.c: Include concat-filename.h, not filename.h.
22807         (find_in_path): Use xconcatenated_filename instead of
22808         concatenated_filename.
22809         * lib/javacomp.c: Include concat-filename.h, not filename.h.
22810         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
22811         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
22812         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
22813         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
22814         instead of concatenated_filename.
22815         * lib/javaexec.c: Include concat-filename.h, not filename.h.
22816         (execute_java_class): Use xconcatenated_filename instead of
22817         concatenated_filename.
22818         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
22819         * modules/javacomp (Depends-on): Likewise.
22820         * modules/javaexec (Depends-on): Likewise.
22821
22822 2008-09-01  Bruno Haible  <bruno@clisp.org>
22823
22824         Split module 'filename' into 'filename' and 'concat-filename'.
22825         * modules/filename: Keep only lib/filename.h.
22826         (License): Change to LGPLv2+.
22827         * modules/concat-filename: New file, extracted from modules/filename.
22828         * lib/filename.h (concatenated_filename): Remove declaration.
22829         * lib/concat-filename.h: New file, extracted from lib/filename.h.
22830         * lib/concat-filename.c: Include concat-filename.h.
22831         * NEWS: Mention the change.
22832
22833 2008-09-01  Simon Josefsson  <simon@josefsson.org>
22834
22835         * lib/bitrotate.h (rotl8, rotr8): Add.
22836
22837         * modules/bitrotate (configure.ac): Need
22838         AC_REQUIRE([AC_C_INLINE]).
22839         (Description): Mention stdint.h.  Reported by Bruno Haible
22840         <bruno@clisp.org>.
22841
22842         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
22843         Paolo Bonzini <bonzini@gnu.org>.
22844
22845 2008-08-31  Bruno Haible  <bruno@clisp.org>
22846
22847         Assume Solaris specific bi-arch conventions on Solaris systems.
22848         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
22849         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
22850         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
22851         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
22852         like acl_libdirstem.
22853         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
22854         acl_libdirstem.
22855         * NEWS: Mention the change.
22856         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
22857
22858 2008-08-31  Jim Meyering  <meyering@redhat.com>
22859
22860         * lib/strftime.h: Add comments describing the two added arguments.
22861
22862         remove duplicate #include directives
22863         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
22864         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
22865
22866 2008-08-31  Bruno Haible  <bruno@clisp.org>
22867
22868         New module 'sigpipe-die'.
22869         * modules/sigpipe-die: New file.
22870         * lib/sigpipe-die.h: New file.
22871         * lib/sigpipe-die.c: New file.
22872         * MODULES.html.sh (Signal handling): Add sigpipe-die.
22873
22874 2008-08-31  Bruno Haible  <bruno@clisp.org>
22875
22876         Don't override previously installed signal handlers.
22877         * lib/fatal-signal.c (saved_sigactions): New variable.
22878         (uninstall_handlers): Reset the signal to the saved handler, not
22879         to SIG_DFL (except when ignored).
22880         (install_handlers): Save the previous handlers.
22881
22882 2008-08-30  Bruno Haible  <bruno@clisp.org>
22883
22884         * gnulib-tool (func_reset_sigpipe): New function.
22885         (func_get_automake_snippet, func_modules_transitive_closure,
22886         func_import): Invoke it before a join command that reads from stdin,
22887         to avoid "echo: write error: Broken pipe" error messages on stderr.
22888         Reported by Sam Steingold <sds@gnu.org>.
22889
22890 2008-08-30  Bruno Haible  <bruno@clisp.org>
22891
22892         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
22893         Code copied from m4/open.m4.
22894         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
22895         access and the filename ends in a slash. Code copied from lib/open.c.
22896         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
22897         * tests/test-fopen.c (main): Check against bug with trailing slash.
22898
22899 2008-08-29  Bruno Haible  <bruno@clisp.org>
22900
22901         Avoid some "gcc -pedantic" warnings.
22902         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
22903         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
22904         * lib/dirent.in.h: Likewise.
22905         * lib/fcntl.in.h: Likewise.
22906         * lib/float.in.h: Likewise.
22907         * lib/iconv.in.h: Likewise.
22908         * lib/inttypes.in.h: Likewise.
22909         * lib/locale.in.h: Likewise.
22910         * lib/math.in.h: Likewise.
22911         * lib/netinet_in.in.h: Likewise.
22912         * lib/search.in.h: Likewise.
22913         * lib/signal.in.h: Likewise.
22914         * lib/stdarg.in.h: Likewise.
22915         * lib/stdint.in.h: Likewise.
22916         * lib/stdio.in.h: Likewise.
22917         * lib/stdlib.in.h: Likewise.
22918         * lib/string.in.h: Likewise.
22919         * lib/strings.in.h: Likewise.
22920         * lib/sys_select.in.h: Likewise.
22921         * lib/sys_socket.in.h: Likewise.
22922         * lib/sys_stat.in.h: Likewise.
22923         * lib/sys_time.in.h: Likewise.
22924         * lib/sysexits.in.h: Likewise.
22925         * lib/time.in.h: Likewise.
22926         * lib/unistd.in.h: Likewise.
22927         * lib/wchar.in.h: Likewise.
22928         * lib/wctype.in.h: Likewise.
22929         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
22930         * modules/fchdir (Makefile.am): Likewise.
22931         * modules/fcntl (Makefile.am): Likewise.
22932         * modules/float (Makefile.am): Likewise.
22933         * modules/iconv_open (Makefile.am): Likewise.
22934         * modules/inttypes (Makefile.am): Likewise.
22935         * modules/locale (Makefile.am): Likewise.
22936         * modules/math (Makefile.am): Likewise.
22937         * modules/netinet_in (Makefile.am): Likewise.
22938         * modules/search (Makefile.am): Likewise.
22939         * modules/signal (Makefile.am): Likewise.
22940         * modules/stdarg (Makefile.am): Likewise.
22941         * modules/stdint (Makefile.am): Likewise.
22942         * modules/stdio (Makefile.am): Likewise.
22943         * modules/stdlib (Makefile.am): Likewise.
22944         * modules/string (Makefile.am): Likewise.
22945         * modules/strings (Makefile.am): Likewise.
22946         * modules/sys_select (Makefile.am): Likewise.
22947         * modules/sys_socket (Makefile.am): Likewise.
22948         * modules/sys_stat (Makefile.am): Likewise.
22949         * modules/sys_time (Makefile.am): Likewise.
22950         * modules/sysexits (Makefile.am): Likewise.
22951         * modules/time (Makefile.am): Likewise.
22952         * modules/unistd (Makefile.am): Likewise.
22953         * modules/wchar (Makefile.am): Likewise.
22954         * modules/wctype (Makefile.am): Likewise.
22955         Reported by Reuben Thomas <rrt@sc3d.org>.
22956
22957 2008-08-29  Bruno Haible  <bruno@clisp.org>
22958
22959         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
22960         any more.
22961
22962 2008-08-29  Simon Josefsson  <simon@josefsson.org>
22963
22964         * MODULES.html.sh (Misc): Add bitrotate.
22965
22966         * modules/bitrotate: New file.
22967
22968         * lib/bitrotate.h: New file.
22969
22970         * modules/bitrotate-tests: New file.
22971
22972         * tests/test-bitrotate.c: New file.
22973
22974         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
22975         on the bitrotate module.
22976
22977         * lib/arctwo.c: Use new bitrotate module.
22978
22979 2008-08-29  Jim Meyering  <meyering@redhat.com>
22980
22981         bootstrap: merge changes from coreutils
22982         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
22983         of copied files.  Remove a kludge, now that this is fixed.
22984         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
22985         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
22986         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
22987
22988 2008-08-29  Bruno Haible  <bruno@clisp.org>
22989
22990         * MODULES.html.sh: Remove --cvs-urls option.
22991
22992 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
22993
22994         maint.mk: adjust to file name change
22995         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
22996
22997 2008-08-28  Jim Meyering  <meyering@redhat.com>
22998
22999         * modules/getndelim2 (License): Relicense to LGPLv2+.
23000         Approved by Richard Stallman for the version of 1995, and by
23001         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
23002
23003 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
23004
23005         * lib/getdelim.c (flockfile, funlockfile): Make all of them
23006         dummy if one is not available.  Do not touch them if
23007         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
23008         (getc_maybe_unlocked): New.
23009         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
23010
23011 2008-08-26  Eric Blake  <ebb9@byu.net>
23012
23013         doc/INSTALL: resync from autoconf
23014         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
23015         (INSTALL_PRELUDE): Delete; this is done more efficiently by
23016         moving...
23017         * install.texi [!autoconf]: ...here.  Resync from autoconf.
23018         * INSTALL: Regenerate.
23019         * INSTALL.ISO: New file.
23020         * INSTALL.UTF-8: Likewise.
23021
23022 2008-08-26  Jim Meyering  <meyering@redhat.com>
23023
23024         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
23025         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
23026         these definitions conditional, so that they may be overridden, too.
23027
23028 2008-08-26  Bruno Haible  <bruno@clisp.org>
23029
23030         Generate INSTALL file variants with prettier quotes.
23031         * doc/Makefile (INSTALL_PRELUDE): New macro.
23032         (INSTALL): Use it.
23033         (INSTALL.ISO, INSTALL.UTF-8): New rules.
23034
23035 2008-08-26  Bruno Haible  <bruno@clisp.org>
23036
23037         Run makeinfo in an English locale.
23038         * doc/Makefile (MAKEINFO): New variable.
23039
23040 2008-08-26  Bruno Haible  <bruno@clisp.org>
23041
23042         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
23043         Suggested by Eric Blake.
23044
23045 2008-08-25  Bruno Haible  <bruno@clisp.org>
23046
23047         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
23048
23049 2008-08-25  Eric Blake  <ebb9@byu.net>
23050
23051         c-stack: test that stack overflow can be caught
23052         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
23053         that platform allows handling stack overflow; at least OS/2 EMX
23054         has sigaltstack, but crashes before transferring control to
23055         handler on stack overflow.
23056         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
23057         check for HAVE_STACK_OVERFLOW_HANDLING.
23058         Reported by Elbert Pol.
23059
23060 2008-08-25  Bruno Haible  <bruno@clisp.org>
23061
23062         * doc/posix-functions/strftime.texi: Fix description of strftime
23063         module.
23064
23065 2008-08-24  Bruno Haible  <bruno@clisp.org>
23066
23067         * tests/uniwidth/test-uc_width2.c: New file.
23068         * tests/uniwidth/test-uc_width2.sh: New file.
23069         * modules/uniwidth/width-tests (Files): Add the new files.
23070         (TESTS): Add uniwidth/test-uc_width2.sh.
23071         (TESTS_ENVIRONMENT): New variable.
23072         (check_PROGRAMS): Add test-uc_width2.
23073         (test_uc_width2_SOURCES): New variable.
23074
23075         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
23076         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
23077         not 0x00AB.
23078         Reported by Alexander V. Lukyanov <lav@netis.ru>.
23079
23080 2008-08-22  Eric Blake  <ebb9@byu.net>
23081
23082         test-lock, test-tls: mention why a test is skipped
23083         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
23084         skipped.
23085         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
23086
23087         count-one-bits: relax license
23088         * modules/count-one-bits (License): Relicense to LGPLv2+.
23089         Suggested by Ludovic Courtès, approved by Ben Pfaff.
23090
23091 2008-08-22  Andreas Schwab  <schwab@suse.de>
23092
23093         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
23094         Remove spurious space in assignment.
23095
23096 2008-08-21  Simon Josefsson  <simon@josefsson.org>
23097
23098         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
23099         Paul Eggert <eggert@CS.UCLA.EDU>.
23100
23101 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
23102
23103         * modules/gettext: Add m4/threadlib.m4.
23104
23105 2008-08-19  Eric Blake  <ebb9@byu.net>
23106
23107         test-c-stack: fix compilation failure on FreeBSD 5.0
23108         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
23109         headers before <sys/resource.h>.
23110         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
23111         the bug.
23112         Reported by Nelson H. F. Beebe.
23113
23114         strverscmp: migrate from "strverscmp.h" to <string.h>
23115         * modules/string (Makefile.am): Add new hooks.
23116         * modules/strverscmp (Files): Remove strverscmp.h.
23117         (Depends-on): Add string.
23118         (configure.ac): Add indicator.
23119         (Include): Mention new header.
23120         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
23121         defaults.
23122         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
23123         results.
23124         * lib/strverscmp.h: Delete.
23125         * lib/string.in.h (strverscmp): Provide declaration, when needed.
23126         * tests/test-strverscmp.c (includes): Adjust client.
23127         * lib/check-version.c (includes): Likewise.
23128         * NEWS: Document the change.
23129
23130         strverscmp: add unit test
23131         * modules/strverscmp-tests: New file.
23132         * tests/test-strverscmp.c: Likewise.
23133
23134 2008-08-19  Simon Josefsson  <simon@josefsson.org>
23135
23136         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
23137         regarding Windows crypto stuff, from Mono.
23138
23139 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
23140
23141         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
23142         if present, for intel RND.  Return error on failures.
23143
23144 2008-08-18  Ben Pfaff  <blp@gnu.org>
23145
23146         gitlog-to-changelog: give better diagnostic for failed pipe-open
23147         * build-aux/gitlog-to-changelog: Improve error message: suggest
23148         that the version of Git may be too old.
23149
23150 2008-08-18  Simon Josefsson  <simon@josefsson.org>
23151
23152         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
23153         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
23154
23155 2008-08-18  Bruno Haible  <bruno@clisp.org>
23156
23157         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
23158         pthread_in_use().
23159
23160 2008-08-18  Bruno Haible  <bruno@clisp.org>
23161
23162         * lib/glthread/threadlib.c: Include <pthread.h>.
23163
23164 2008-08-18  Bruno Haible  <bruno@clisp.org>
23165
23166         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
23167         glthread_recursive_lock_* macros.
23168         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
23169         Fix syntax error.
23170
23171 2008-08-18  Bruno Haible  <bruno@clisp.org>
23172
23173         * lib/glthread/thread.c: Avoid forcing a context switch right after
23174         thread creation.
23175
23176 2008-08-17  Bruno Haible  <bruno@clisp.org>
23177
23178         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
23179         * lib/glthread/thread.h: Provide Win32 specific implementation.
23180         * modules/thread (Files): Add lib/glthread/thread.c.
23181         (Depends-on): Add lock.
23182         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
23183
23184 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23185
23186         New module 'yield'.
23187         * modules/yield: New file.
23188         * lib/glthread/yield.h: New file.
23189         * m4/yield.m4: New file.
23190         * MODULES.html.sh (Multithreading): Add yield.
23191
23192 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23193
23194         New module 'thread'.
23195         * modules/thread: New file.
23196         * lib/glthread/thread.h: New file.
23197         * m4/thread.m4: New file.
23198         * MODULES.html.sh (Multithreading): Add thread.
23199
23200 2008-08-17  Bruno Haible  <bruno@clisp.org>
23201
23202         * lib/glthread/lock.h: Include <stdlib.h> always.
23203         * lib/glthread/tls.h: Likewise.
23204         * lib/glthread/cond.h: Likewise.
23205
23206 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23207
23208         New module 'cond'.
23209         * modules/cond: New file.
23210         * lib/glthread/cond.h: New file.
23211         * lib/glthread/cond.c: New file.
23212         * m4/cond.m4: New file.
23213         * MODULES.html.sh (Multithreading): Add cond.
23214
23215 2008-08-16  Eric Blake  <ebb9@byu.net>
23216
23217         c-stack: fix regression on Irix 5.3 from 2008-06-21
23218         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
23219         sa_sigaction...
23220         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
23221         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
23222         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
23223         * modules/signal (Makefile.am): Use the value.
23224         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
23225         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
23226         * doc/posix-headers/signal.texi (signal.h): Document this
23227         portability issue.
23228         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
23229         Reported by Tom G. Christensen.
23230
23231 2008-08-17  Bruno Haible  <bruno@clisp.org>
23232
23233         New module 'threadlib'.
23234         * modules/threadlib: New file.
23235         * lib/glthread/threadlib.c: New file, extracted from
23236         lib/glthread/lock.c.
23237         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
23238         functions.
23239         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
23240         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
23241         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
23242         macros.
23243         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
23244         (gl_DISABLE_THREADS): Remove macro.
23245         * modules/lock (Files): Remove build-aux/config.rpath.
23246         (Depends-on): Remove havelib. Add threadlib.
23247         (configure.ac-early): Remove section.
23248         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
23249         * modules/tls (Depends-on): Remove lock. Add threadlib.
23250         (Link): New section, copied from threadlib.
23251         * MODULES.html.sh (Multithreading): Add threadlib.
23252
23253 2008-08-14  Bruno Haible  <bruno@clisp.org>
23254
23255         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
23256         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
23257         glthread_rwlock_unlock, glthread_rwlock_destroy,
23258         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
23259         glthread_recursive_lock_destroy): Define as macros always.
23260         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
23261         glthread_lock_lock.
23262         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
23263         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
23264         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
23265         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
23266         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
23267         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
23268         (glthread_recursive_lock_lock_func): Renamed from
23269         glthread_recursive_lock_lock.
23270         (glthread_recursive_lock_unlock_func): Renamed from
23271         glthread_recursive_lock_unlock.
23272         (glthread_recursive_lock_destroy_func): Renamed from
23273         glthread_recursive_lock_destroy.
23274
23275 2008-08-14  Bruno Haible  <bruno@clisp.org>
23276
23277         * lib/glthread/lock.h: Renamed from lib/lock.h.
23278         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
23279         * lib/glthread/tls.h: Renamed from lib/tls.h.
23280         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
23281         * lib/fstrcmp.c: Update includes.
23282         * lib/strsignal.c: Update includes.
23283         * modules/lock (Files, Makefile.am): Update.
23284         (Include): Change to "glthread/lock.h".
23285         * modules/tls (Files, Makefile.am): Update.
23286         (Include): Change to "glthread/tls.h".
23287         * tests/test-lock.c: Update includes.
23288         * tests/test-tls.c: Update includes.
23289         * NEWS: Mention the renamed header files.
23290
23291 2008-08-11  Jim Meyering  <meyering@redhat.com>
23292
23293         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
23294
23295 2008-08-11  Eric Blake  <ebb9@byu.net>
23296
23297         test-c-stack: avoid C99-ism
23298         * tests/test-c-stack.c (main): Fix whitespace, move declaration
23299         before statement.
23300         Reported by Alain Guibert.
23301
23302 2008-08-10  Jim Meyering  <meyering@redhat.com>
23303
23304         ensure that return value of uinttostr et al are not ignored
23305         * lib/inttostr.h (__GNUC_PREREQ): Define.
23306         (__attribute_warn_unused_result__): Define.
23307         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
23308
23309 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
23310
23311         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
23312         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
23313
23314 2008-08-07  Jim Meyering  <meyering@redhat.com>
23315
23316         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
23317
23318         * modules/mkstemp (License): Relicense under LGPLv2+.
23319         * modules/tempname (License): Likewise.
23320
23321 2008-08-06  Bruno Haible  <bruno@clisp.org>
23322
23323         * lib/poll.c (poll): Further micro-optimization.
23324
23325 2008-08-06  Jim Meyering  <meyering@redhat.com>
23326
23327         inet_pton.c: use locale-independent tolower
23328         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
23329         (inet_pton6): Use c_tolower rather than tolower.
23330         * modules/inet_pton (Depends-on): Add c-ctype.
23331
23332 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
23333
23334         * lib/poll.c (poll): Avoid division when timeout is 0, cache
23335         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
23336
23337 2008-08-06  Jim Meyering  <meyering@redhat.com>
23338
23339         * modules/inet_pton (License): Relicense under LGPLv2+.
23340
23341 2008-08-03  Bruno Haible  <bruno@clisp.org>
23342
23343         Additional non-aborting API for lock and tls.
23344         * lib/lock.h: Include <errno.h>.
23345         (glthread_lock_init): New macro/function.
23346         (gl_lock_init): Define as wrapper around glthread_lock_init.
23347         (glthread_lock_lock): New macro/function.
23348         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
23349         (glthread_lock_unlock): New macro/function.
23350         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
23351         (glthread_lock_destroy): New macro/function.
23352         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
23353         (glthread_rwlock_init): New macro/function.
23354         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
23355         (glthread_rwlock_rdlock): New macro/function.
23356         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
23357         (glthread_rwlock_wrlock): New macro/function.
23358         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
23359         (glthread_rwlock_unlock): New macro/function.
23360         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
23361         (glthread_rwlock_destroy): New macro/function.
23362         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
23363         (glthread_recursive_lock_init): New macro/function.
23364         (gl_recursive_lock_init): Define as wrapper around
23365         glthread_recursive_lock_init.
23366         (glthread_recursive_lock_lock): New macro/function.
23367         (gl_recursive_lock_lock): Define as wrapper around
23368         glthread_recursive_lock_lock.
23369         (glthread_recursive_lock_unlock): New macro/function.
23370         (gl_recursive_lock_unlock): Define as wrapper around
23371         glthread_recursive_lock_unlock.
23372         (glthread_recursive_lock_destroy): New macro/function.
23373         (gl_recursive_lock_destroy): Define as wrapper around
23374         glthread_recursive_lock_destroy.
23375         (glthread_once): New macro/function.
23376         (gl_once): Define as wrapper around glthread_once.
23377         Update function declarations.
23378         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
23379         glthread_rwlock_init. Return error code.
23380         (glthread_rwlock_rdlock_multithreaded): Renamed from
23381         glthread_rwlock_rdlock. Return error code.
23382         (glthread_rwlock_wrlock_multithreaded): Renamed from
23383         glthread_rwlock_wrlock. Return error code.
23384         (glthread_rwlock_unlock_multithreaded): Renamed from
23385         glthread_rwlock_unlock. Return error code.
23386         (glthread_rwlock_destroy_multithreaded): Renamed from
23387         glthread_rwlock_destroy. Return error code.
23388         (glthread_recursive_lock_init_multithreaded): Renamed from
23389         glthread_recursive_lock_init. Return error code.
23390         (glthread_recursive_lock_lock_multithreaded): Renamed from
23391         glthread_recursive_lock_lock. Return error code.
23392         (glthread_recursive_lock_unlock_multithreaded): Renamed from
23393         glthread_recursive_lock_unlock. Return error code.
23394         (glthread_recursive_lock_destroy_multithreaded): Renamed from
23395         glthread_recursive_lock_destroy. Return error code.
23396         (glthread_once_call): Make static.
23397         (glthread_once_multithreaded): Renamed from glthread_once.
23398         * lib/tls.h: Include <errno.h>.
23399         (glthread_tls_key_init): New macro/function.
23400         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
23401         (glthread_tls_set): New macro/function.
23402         (gl_tls_set): Define as wrapper around glthread_tls_set.
23403         (glthread_tls_key_destroy): New macro/function.
23404         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
23405         Update function declarations.
23406         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
23407         glthread_tls_get.
23408         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
23409
23410 2008-08-04  Eric Blake  <ebb9@byu.net>
23411
23412         gnumakefile: use space, not TAB, outside of targets
23413         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
23414
23415 2008-08-02  Jim Meyering  <meyering@redhat.com>
23416
23417         getdate.y: avoid locale-dependent date parsing failure
23418         In Turkish locales, getdate would fail to recognize keywords
23419         containing a lowercase "i".  The solution is not to rely on
23420         locale-sensitive case-conversion.
23421         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
23422         (lookup_word): Use c_toupper in place of toupper.
23423         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
23424         Reported by Vefa Bicakci <bicave@superonline.com> in
23425         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
23426         * modules/getdate (Depends-on): Add c-ctype.
23427
23428 2008-08-02  Bruno Haible  <bruno@clisp.org>
23429
23430         * gnulib-tool (func_import): When updating or creating a .gitignore
23431         file, prepend each added line with a slash, and ignore leading slashes
23432         from the existing lines.
23433         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
23434
23435 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23436
23437         Portability fix for GNU make 3.79.1.
23438         * top/GNUmakefile: Avoid 'else COND', which older GNU make
23439         versions do not understand.
23440
23441 2008-08-01  Bruno Haible  <bruno@clisp.org>
23442
23443         Work around bug of HP-UX 10.20 cc with -0.0 literal.
23444         * tests/test-isnanf.h (zero): New variable.
23445         (main): Avoid literal -0.0f.
23446         * tests/test-isnand.h (zero): New variable.
23447         (main): Avoid literal -0.0.
23448         * tests/test-isnanl.h (zero): New variable.
23449         (main): Avoid literal -0.0L.
23450         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
23451         (test_float, test_double, test_long_double): Avoid literals -0.0f,
23452         -0.0, -0.0L.
23453         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
23454         (test_signbitd): Avoid literal -0.0.
23455         (test_signbitl): Avoid literal -0.0L.
23456         * tests/test-ceilf1.c (zero): New variable.
23457         (main): Avoid literal -0.0f.
23458         * tests/test-ceill.c (zero): New variable.
23459         (main): Avoid literal -0.0L.
23460         * tests/test-floorf1.c (zero): New variable.
23461         (main): Avoid literal -0.0f.
23462         * tests/test-floorl.c (zero): New variable.
23463         (main): Avoid literal -0.0L.
23464         * tests/test-roundf1.c (zero): New variable.
23465         (main): Avoid literal -0.0f.
23466         * tests/test-round1.c (zero): New variable.
23467         (main): Avoid literal -0.0.
23468         * tests/test-roundl.c (zero): New variable.
23469         (main): Avoid literal -0.0L.
23470         * tests/test-truncf1.c (zero): New variable.
23471         (main): Avoid literal -0.0f.
23472         * tests/test-trunc1.c (zero): New variable.
23473         (main): Avoid literal -0.0.
23474         * tests/test-truncl.c (zero): New variable.
23475         (main): Avoid literal -0.0L.
23476         * tests/test-frexp.c (zero): New variable.
23477         (main): Avoid literal -0.0.
23478         * tests/test-frexpl.c (zero): New variable.
23479         (main): Avoid literal -0.0L.
23480         * tests/test-ldexpl.c (zero): New variable.
23481         (main): Avoid literal -0.0L.
23482         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
23483         (zerod, zerol): New variables.
23484         (test_function): Avoid literals -0.0, -0.0L.
23485         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
23486         (zerod, zerol): New variables.
23487         (test_function): Avoid literals -0.0, -0.0L.
23488         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
23489         (zerod, zerol): New variables.
23490         (test_function): Avoid literals -0.0, -0.0L.
23491         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
23492         (zerod, zerol): New variables.
23493         (test_function): Avoid literals -0.0, -0.0L.
23494         * tests/test-strtod.c (zero): New variable.
23495         (main): Avoid literal -0.0.
23496         Reported by Jonathan C. Patschke <jp@centtech.com>.
23497
23498 2008-07-31  Jim Meyering  <meyering@redhat.com>
23499
23500         sha256.h: correct definition of SHA224_DIGEST_SIZE
23501         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
23502         Reported by Paulie Pena IV <paulie4@gmail.com>.
23503         Define as 224 / 8, rather than as a literal.
23504         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
23505         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
23506         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
23507
23508 2008-07-31  Bruno Haible  <bruno@clisp.org>
23509
23510         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
23511         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
23512         Reported by Jonathan Patschke <jp@centtech.com>.
23513
23514 2008-07-31  Bruno Haible  <bruno@clisp.org>
23515
23516         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
23517         Reported by Paolo Bonzini <bonzini@gnu.org>.
23518
23519 2008-07-30  Eric Blake  <ebb9@byu.net>
23520
23521         test-strtod: allow compilation without -lm
23522         * tests/test-strtod.c (main): Avoid link dependence on fabs.
23523         Reported by Dennis Clarke <blastwave@gmail.com>.
23524
23525 2008-07-28  Jim Meyering  <meyering@redhat.com>
23526
23527         bootstrap: work also when there are no .po files in po/
23528         * build-aux/bootstrap (update_po_files): Complete the change
23529         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
23530
23531 2008-07-27  Jim Meyering  <meyering@redhat.com>
23532
23533         * users.txt: Add zile.
23534
23535 2008-07-26  Ben Pfaff  <blp@gnu.org>
23536
23537         Add missing dependencies on new m4/exponent[fdl].m4 files.
23538         * modules/isnanf-nolibm: Add m4/exponentf.m4.
23539         * modules/isnand-nolibm: Add m4/exponentd.m4.
23540         * modules/isnanl-nolibm: Add m4/exponentl.m4.
23541         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
23542         m4/isnan[fdl].m4, because the macros actually used moved.
23543         Reported by Jim Meyering.
23544
23545 2008-07-14  Ben Pfaff  <blp@gnu.org>
23546
23547         Add isinf module.
23548         * lib/isinf.c: New file.
23549         * lib/math.in.h: Define isinf macro if we have decided to replace
23550         it.
23551         * m4/isinf.m4: New file.
23552         * m4/math_h.m4: Initialize and substitute variables for isinf
23553         module.
23554         * modules/isinf: New file.
23555         * modules/isinf-tests: New file.
23556         * modules/math: Add substitutions for new module.
23557         * tests/test-isinf.c: New file.
23558         * doc/posix-functions/isinf.texi: Mention new module.
23559         * MODULES.html.sh: Mention new module.
23560
23561 2008-07-14  Ben Pfaff  <blp@gnu.org>
23562
23563         Factor out some macros for use by additional modules.
23564         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
23565         exponentf.m4.
23566         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
23567         exponentd.m4.
23568         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
23569         file exponentl.m4.
23570         * m4/exponentf.m4: New file.
23571         * m4/exponentd.m4: New file.
23572         * m4/exponentl.m4: New file.
23573         * modules/isnanf: Use new file m4/exponentf.m4.
23574         * modules/isnand: Use new file m4/exponentd.m4.
23575         * modules/isnanl: Use new file m4/exponentl.m4.
23576
23577 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
23578
23579         mktime.c: normalize tp->tm_isdst value to -1/0/1.
23580         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
23581         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
23582         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
23583
23584         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
23585         readlink on platforms without PATH_MAX.
23586
23587 2008-07-21  Eric Blake  <ebb9@byu.net>
23588
23589         Warn, not fail, on stale version.
23590         * top/GNUmakefile (_curr-ver): Tone down previous patch.
23591
23592         Don't allow installation with stale devel version number.
23593         * top/GNUmakefile (_is-install-target): New macro.
23594         (_curr-ver): Forbid installation with stale version number.
23595
23596 2008-07-20  Bruno Haible  <bruno@clisp.org>
23597
23598         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
23599         TESTS_ENVIRONMENT.
23600         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
23601
23602 2008-07-20  Bruno Haible  <bruno@clisp.org>
23603
23604         * lib/c-stack.h (c_stack_action): Add documentation.
23605         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
23606
23607 2008-07-20  Bruno Haible  <bruno@clisp.org>
23608
23609         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
23610         * modules/readlink (License): Likewise.
23611
23612 2008-07-17  Eric Blake  <ebb9@byu.net>
23613
23614         * modules/c-stack (Link): Fix typo.
23615
23616         Make c-stack use libsigsegv, when available.
23617         * modules/c-stack (Depends-on): Add libsigsegv.
23618         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
23619         needed.
23620         * lib/c-stack.c (SIGSTKSZ): Define fallback.
23621         (segv_handler, overflow_handler, c_stack_action)
23622         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
23623         implementation when libsigsegv is available, but only when using
23624         the library is necessary.
23625         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
23626         comment, explaining why XSI check fails on Linux.
23627         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
23628         * tests/test-c-stack2.sh: Tweak skip message.
23629         * NEWS: Document new link-time requirements.
23630
23631 2008-07-16  Eric Blake  <ebb9@byu.net>
23632
23633         c-stack: Expose false positives when not using libsigsegv.
23634         * modules/c-stack-tests (Files): Expand test.
23635         * tests/test-c-stack.c (main): Add means to conditionally trigger
23636         non-overflow SIGSEGV.
23637         * tests/test-c-stack2.sh: New file.
23638
23639 2008-07-14  Bruno Haible  <bruno@clisp.org>
23640
23641         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
23642         Reported by Eric Blake.
23643
23644 2008-07-14  Sam Steingold  <sds@gnu.org>
23645             Bruno Haible  <bruno@clisp.org>
23646
23647         New module libsigsegv.
23648         * modules/libsigsegv: New file.
23649         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
23650         modifications.
23651         * MODULES.html.sh (Signal handling): New section.
23652
23653 2008-07-14  Bruno Haible  <bruno@clisp.org>
23654
23655         * modules/unictype/ctype-* (Description): Add the word "function".
23656         Improves the resulting doc in MODULES.html.
23657
23658 2008-07-12  Ben Pfaff  <blp@gnu.org>
23659
23660         Add longlong module.
23661         * modules/longlong: New file.
23662
23663 2008-07-12  Bruno Haible  <bruno@clisp.org>
23664
23665         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
23666         to empty.
23667
23668 2008-07-10  Ben Pfaff  <blp@gnu.org>
23669
23670         Add isnan module.
23671         * doc/posix-functions/isnan.texi: Mention new module.
23672         * lib/math.in.h: Define isnan macro if we have decided to replace
23673         it.
23674         * m4/isnan.m4: New file.
23675         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
23676         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
23677         also.
23678         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
23679         redundancy.
23680         * m4/math_h.m4: Initialize and substitute variables for isnan
23681         module.
23682         * modules/isnan: New file.
23683         * modules/isnan-tests: New file.
23684         * modules/math: Add substitutions for new module.
23685         * tests/test-isnan.c: New file.
23686         * MODULES.html.sh: Mention new module.
23687
23688 2008-07-10  Ben Pfaff  <blp@gnu.org>
23689
23690         Add isnanf module.
23691         * lib/isnanf.m4: New file.
23692         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
23693         (gl_HAVE_ISNANF_IN_LIBM): New macro.
23694         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
23695         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
23696         * modules/isnanf: New file.
23697         * modules/isnanf-tests: New file.
23698         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
23699         files.
23700         * tests/test-isnanf-nolibm.c: factored most of its contents into
23701         new file tests/test-isnanf.h.
23702         * tests/test-isnanf.h: New file.
23703         * tests/test-isnanf.c: New file.
23704         * MODULES.html.sh: Mention new module.
23705         * doc/glibc-functions/isnanf.texi: Mention new module.
23706
23707 2008-07-10  Ben Pfaff  <blp@gnu.org>
23708
23709         Add isnand module.
23710         * lib/isnand.h: New file.
23711         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
23712         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
23713         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
23714         functionality also.
23715         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
23716         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
23717         (gl_HAVE_ISNAND_IN_LIBM): New macro.
23718         * modules/isnand: New file.
23719         * modules/isnand-tests: New file.
23720         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
23721         files.
23722         * tests/test-isnand-nolibm.c: factored most of its contents into
23723         new file tests/test-isnand.h.
23724         * tests/test-isnand.h: New file.
23725         * tests/test-isnand.c: New file.
23726         * MODULES.html.sh: Mention new module.
23727
23728 2008-07-10  Ben Pfaff  <blp@gnu.org>
23729
23730         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
23731         * lib/isnand.h: Rename lib/isnand-nolibm.h.
23732         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
23733         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
23734         * modules/isnanf-nolibm: Update references to renamed files.
23735         * modules/isnand-nolibm: Likewise.
23736         * modules/isnanf-nolibm-tests: Likewise.
23737         * modules/isnand-nolibm-tests: Likewise.
23738         * lib/frexp.c: Likewise.
23739         * lib/isfinite.c: Likewise.
23740         * lib/signbitd.c: Likewise.
23741         * lib/signbitf.c: Likewise.
23742         * lib/vasnprintf.c: Likewise.
23743         * tests/test-ceilf1.c: Likewise.
23744         * tests/test-ceilf2.c: Likewise.
23745         * tests/test-floorf1.c: Likewise.
23746         * tests/test-floorf2.c: Likewise.
23747         * tests/test-frexp.c: Likewise.
23748         * tests/test-round1.c: Likewise.
23749         * tests/test-round2.c: Likewise.
23750         * tests/test-roundf1.c: Likewise.
23751         * tests/test-strtod.c: Likewise.
23752         * tests/test-trunc1.c: Likewise.
23753         * tests/test-trunc2.c: Likewise.
23754         * tests/test-truncf1.c: Likewise.
23755         * tests/test-truncf2.c: Likewise.
23756         * NEWS: Mention the renamed header files.
23757
23758 2008-07-11  Jim Meyering  <meyering@redhat.com>
23759
23760         vc-list-files: make the last-resort awk code more portable
23761         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
23762         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
23763         does not support it.
23764
23765 2008-07-10  Eric Blake  <ebb9@byu.net>
23766
23767         Work with tar's bootstrap.
23768         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
23769         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
23770         an m4 comment.
23771
23772 2008-07-09  Jim Meyering  <meyering@redhat.com>
23773
23774         posix-shell.m4: fix typo that made this test malfunction
23775         * m4/posix-shell.m4: Remove capitalization in variable name.
23776
23777 2008-07-08  Bruno Haible  <bruno@clisp.org>
23778
23779         * m4/onceonly.m4: Update comments.
23780         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23781
23782 2008-07-04  Jim Meyering  <meyering@redhat.com>
23783
23784         * users.txt: Add vc-dwim.
23785         (bison, coreutils): Use the gitweb URL.
23786
23787 2008-07-03  Jim Meyering  <meyering@redhat.com>
23788
23789         * users.txt: Add libffcall.  From Sam Steingold.
23790
23791 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
23792
23793         getdate.y: do not ignore TZ with relative day, month or year offset
23794         * lib/getdate.y (get_date): Move the tz-handling block to follow the
23795         relative-date-handling, since otherwise, the latter would clobber the
23796         sole output (an updated Start value) of the tz-handling block.
23797         * tests/test-getdate.c: Tests for the fix
23798
23799 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23800
23801         Recognize 'foo_LIBRARIES += libgnu.a'.
23802         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
23803         makefile snippet has already specified an installation location,
23804         also using '+='.
23805
23806 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
23807
23808         getdate.y: factor out common actions
23809         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
23810         Use them in place of open-coded actions.
23811
23812 2008-07-01  Simon Josefsson  <simon@josefsson.org>
23813
23814         Add self-test for getdate module.
23815         * modules/getdate-tests: New file.
23816         * tests/test-getdate.c: New file.
23817
23818 2008-06-29  Bruno Haible  <bruno@clisp.org>
23819
23820         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
23821         .gitignore.
23822         Reported by Sylvain Beucler <beuc@beuc.net>.
23823
23824 2008-06-29  Bruno Haible  <bruno@clisp.org>
23825
23826         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
23827         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
23828
23829 2008-06-29  Bruno Haible  <bruno@clisp.org>
23830
23831         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
23832         EXTRA_DIST.
23833         Reported by Sylvain Beucler <beuc@beuc.net>.
23834
23835 2008-06-26  Jim Meyering  <meyering@redhat.com>
23836
23837         make several modules depend on the "open" module
23838         This provides slightly increased consistency when opening-for-write
23839         the name of a non-directory spelled with a trailing slash.
23840         * modules/chdir-safer: Likewise.
23841         * modules/chown: Likewise.
23842         * modules/clean-temp: Likewise.
23843         * modules/copy-file: Likewise.
23844         * modules/fchdir: Likewise.
23845         * modules/fcntl-safer: Likewise.
23846         * modules/pipe: Likewise.
23847         * modules/utime: Likewise.
23848         Prompted by Eric Blake and Bruno Haible.
23849
23850 2008-06-24  Andreas Schwab  <schwab@suse.de>
23851
23852         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
23853         literals can be used as initializers for global variables.
23854
23855 2008-06-23  Eric Blake  <ebb9@byu.net>
23856
23857         Make gnulib-cache.m4 easier to diff.
23858         * gnulib-tool (func_import): Allow newlines when reading cached
23859         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
23860
23861 2008-06-23  Bruno Haible  <bruno@clisp.org>
23862
23863         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
23864         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
23865         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
23866         m4/signalblocking.m4.
23867         (gl_PREREQ_SIGACTION): Don't invoke it.
23868         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
23869         gl_PREREQ_SIG_HANDLER_H.
23870         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
23871         Don't check for sigaction here.
23872
23873 2008-06-23  Bruno Haible  <bruno@clisp.org>
23874
23875         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
23876         (install_handlers): Don't set the SA_RESETHAND flag.
23877
23878 2008-06-23  Bruno Haible  <bruno@clisp.org>
23879
23880         * m4/sigaction.m4: Comment fixes.
23881         * lib/signal.in.h: Likewise.
23882
23883 2008-06-23  Eric Blake  <ebb9@byu.net>
23884
23885         Fix typo.
23886         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
23887
23888         Avoid SA_ namespace.
23889         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
23890         Reported by Ralf Wildenhues.
23891
23892         Avoid test failure due to SA_RESTORER.
23893         * tests/test-sigaction.c (SA_MASK): New macro.
23894         (main): Avoid failing due to extension flags being set.
23895         Reported by Jim Meyering.
23896
23897         Revert use of sig-handler.h in sigprocmask.c.
23898         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
23899         it requires the existence of struct sigaction.
23900         * lib/sigprocmask.c (handler_t): Restore typedef.
23901         (rpl_signal, old_handlers): Use local type.
23902
23903 2008-06-22  Bruno Haible  <bruno@clisp.org>
23904
23905         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
23906         conditionally.
23907         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23908
23909 2008-06-22  Bruno Haible  <bruno@clisp.org>
23910
23911         * doc/posix-functions/siginterrupt.texi: Move note.
23912
23913         * lib/signal.in.h (SA_RESTART): New macro.
23914         * lib/sigaction.c: Update comment.
23915
23916         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
23917
23918         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
23919         (gl_PREREQ_SIGPROCMASK): Invoke it.
23920         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
23921
23922         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
23923
23924         * lib/sigprocmask.c: Update a comment.
23925
23926 2008-06-21  Eric Blake  <ebb9@byu.net>
23927
23928         Use sigaction module rather than signal().
23929         * modules/c-stack (Depends-on): Add sigaction.
23930         * modules/fatal-signal (Depends-on): Likewise.
23931         * modules/nanosleep (Depends-on): Likewise.
23932         * modules/sigprocmask (Files): Add sig-handler.h.
23933         * modules/sigaction (Files): Likewise.
23934         * lib/sig-handler.h (get_handler): New file, suggested by Paul
23935         Eggert.
23936         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
23937         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
23938         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
23939         (init_fatal_signals): Likewise.
23940         * lib/nanosleep.c (rpl_nanosleep): Likewise.
23941         (siginterrupt): Delete fallback.
23942         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
23943         instead.
23944         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
23945         siginterrupt.
23946
23947         New module sigaction, for mingw.
23948         * modules/sigaction: New module...
23949         * modules/sigaction-tests: ...and its test.
23950         * m4/sigaction.m4: New file.
23951         * lib/sigaction.c: Likewise.
23952         * tests/test-sigaction.c: Likewise.
23953         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
23954         * modules/signal (Makefile.am): Likewise.
23955         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
23956         needed.
23957         * doc/posix-headers/signal.texi (signal.h): Mention provided
23958         types.
23959         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
23960         that sigaction is preferable.
23961         * doc/posix-functions/sigaction.texi (sigaction): Mention new
23962         module.
23963         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
23964         sigaction.
23965
23966         Improve robustness of sigprocmask by overriding signal.
23967         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
23968         is in use.
23969         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
23970         (SIGKILL, SIGSTOP): Provide fallbacks.
23971         (rpl_signal): Implement.
23972         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
23973         signal can be called inside handlers.
23974
23975         Fix nanosleep module on mingw.
23976         * modules/nanosleep (Depends-on): Add sys_select.
23977         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
23978
23979         Fix licensing of sigprocmask.
23980         * modules/raise (License): Relicense as LGPL.
23981
23982 2008-06-21  Bruno Haible  <bruno@clisp.org>
23983
23984         * lib/propername.c (proper_name_utf8): Don't use the transliterated
23985         result if it contains question marks.
23986         Reported by Michael Geng <linux@michaelgeng.de>.
23987
23988 2008-06-19  Bruno Haible  <bruno@clisp.org>
23989
23990         Fix CVS-ism.
23991         * doc/gnulib.texi: Include updated-stamp.texi.
23992         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
23993         (updated-stamp.texi): New rule.
23994         (gnulib.info): Depend on it.
23995         * doc/.gitignore: Add updated-stamp.texi.
23996         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
23997
23998 2008-06-19  Bruno Haible  <bruno@clisp.org>
23999
24000         * doc/Makefile (gnulib.info): Update and simplify dependencies.
24001         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
24002
24003 2008-06-19  Eric Blake  <ebb9@byu.net>
24004
24005         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
24006         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
24007         Reported by Stepan Kasal.
24008
24009 2008-06-18  Bruno Haible  <bruno@clisp.org>
24010
24011         * lib/fatal-signal.c (init_fatal_signals): Add comment.
24012         Reported by Eric Blake.
24013
24014 2008-06-18  Eric Blake  <ebb9@byu.net>
24015
24016         Work around cygwin 1.5.25 strsignal bug.
24017         * tests/test-strsignal.c: Allow for const char *.
24018         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
24019
24020 2008-06-18  Simon Josefsson  <simon@josefsson.org>
24021
24022         * users.txt: Update URL to article and add author/date
24023         information.
24024
24025 2008-06-17  Bruno Haible  <bruno@clisp.org>
24026
24027         New macro gl_DISABLE_THREADS.
24028         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
24029         if the user did not pass --enable-threads or --disable-threads option.
24030         (gl_DISABLE_THREADS): New macro.
24031         Reported by Eric Blake <ebb9@byu.net>.
24032
24033 2008-06-17  Bruno Haible  <bruno@clisp.org>
24034
24035         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
24036         when the macro ignores it.
24037         Based on a patch by Eric Blake <ebb9@byu.net>.
24038
24039 2008-06-17  Bruno Haible  <bruno@clisp.org>
24040
24041         * modules/tls (License): Change to LGPLv2+.
24042         Reported by Eric Blake.
24043
24044 2008-06-17  Eric Blake  <ebb9@byu.net>
24045
24046         Simplify c-stack prerequisites.
24047         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
24048         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
24049         no longer requires <ucontext.h> to exist.  Optimize setrlimit
24050         check.
24051         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
24052         <sys/resource.h>.
24053
24054         Move c-stack test into testsuite.
24055         * modules/c-stack-tests: New file.
24056         * lib/c-stack.c [DEBUG]: Move test program...
24057         * tests/test-c-stack.c: ...into this new file.  Skip rather than
24058         fail test if sigaltstack is lacking.
24059         * tests/test-c-stack.sh: New driver file.
24060
24061 2008-06-16  Eric Blake  <ebb9@byu.net>
24062
24063         Use raise module consistently.
24064         * modules/fatal-signal (Depends-on): Add raise.
24065         * modules/sigprocmask (Depends-on): Likewise.
24066         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
24067         * lib/sigprocmask.c (sigprocmask): Likewise.
24068         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
24069         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
24070
24071         Fix compliance bug in sigpending.
24072         * lib/sigprocmask.c (sigpending): Return pending array via
24073         parameter, not return value.
24074
24075 2008-06-14  Eric Blake  <ebb9@byu.net>
24076
24077         Improve obstack-printf test code.
24078         * tests/test-obstack-printf.c (test_function): Fix comment, and
24079         simplify usage of obstack_* in macros.  Add a test for coverage.
24080         Reported by Bruno Haible.
24081
24082 2008-06-14  Bruno Haible  <bruno@clisp.org>
24083
24084         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
24085         array size as a constant, not as a const variable.
24086         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
24087         AC_USE_SYSTEM_EXTENSIONS.
24088         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
24089         Test whether the obstack_printf function actually exists.
24090         * modules/obstack-printf (Depends-on): Add extensions.
24091         (Include): Remove obstack.h.
24092         * modules/obstack-printf-posix (Depends-on): Add extensions.
24093         (Include): Remove obstack.h.
24094
24095 2008-06-13  Eric Blake  <ebb9@byu.net>
24096
24097         Add obstack-printf and obstack-printf-posix modules.
24098         * modules/obstack-printf: New file.
24099         * modules/obstack-printf-posix: Likewise.
24100         * MODULES.html.sh (Misc): Mention them.
24101         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
24102         Likewise.
24103         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
24104         Likewise.
24105         * modules/stdio (Makefile.am): Accomodate new modules.
24106         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
24107         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
24108         Declare.
24109         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
24110         functions.
24111         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
24112         (gl_REPLACE_OBSTACK_PRINTF): New macros
24113         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
24114         * tests/test-obstack-printf.c: New file.
24115         * modules/obstack-printf-tests: Likewise.
24116         * modules/obstack-printf-posix-tests: Likewise.
24117
24118 2008-06-11  Bruno Haible  <bruno@clisp.org>
24119
24120         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
24121         * lib/open.c: Include errno.h.
24122         (open): Fail when attempting to write to a file that has a trailing
24123         slash.
24124         * tests/test-open.c (main): Test against trailing slash bug.
24125         * doc/posix-functions/open.texi: Mention the trailing slash bug.
24126
24127 2008-06-10  Bruno Haible  <bruno@clisp.org>
24128
24129         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
24130         for $? to work inside the trap command, with various /bin/sh-s.
24131         * tests/test-vc-list-files-cvs.sh: Likewise.
24132
24133 2008-06-10  Bruno Haible  <bruno@clisp.org>
24134
24135         * lib/acl-internal.h: Don't include gettext.h here.
24136         * lib/set-mode-acl.c: Include gettext.h here.
24137         * lib/copy-acl.c: Likewise.
24138
24139 2008-06-10  Bruno Haible  <bruno@clisp.org>
24140
24141         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
24142         * lib/wait-process.c (wait_subprocess): Likewise.
24143         * lib/execute.h (execute): Add termsigp argument.
24144         * lib/execute.c (execute): Likewise.
24145         * lib/csharpcomp.c (compile_csharp_using_pnet,
24146         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
24147         * lib/csharpexec.c (execute_csharp_using_pnet,
24148         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
24149         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
24150         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
24151         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
24152         is_jikes_present): Update.
24153         * lib/javaexec.c (execute_java_class): Update.
24154         * lib/javaversion.c (execute_and_read_line): Update.
24155         * NEWS: Document the changes.
24156         Reported by Eric Blake.
24157
24158 2008-06-10  Eric Blake  <ebb9@byu.net>
24159
24160         Add missing include.
24161         * tests/test-strstr.c (includes): Add <signal.h>.
24162         * tests/test-strcasestr.c (includes): Likewise.
24163         * tests/test-memmem.c (includes): Likewise.
24164
24165 2008-06-10  Bruno Haible  <bruno@clisp.org>
24166
24167         * lib/wait-process.c (wait_subprocess): Add an assertion.
24168
24169 2008-06-10  Bruno Haible  <bruno@clisp.org>
24170
24171         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
24172
24173 2008-06-10  Bruno Haible  <bruno@clisp.org>
24174
24175         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
24176         using alarm().
24177         * tests/test-strcasestr.c (main): Likewise.
24178         * tests/test-strstr.c (main): Likewise.
24179
24180 2008-06-09  Bruno Haible  <bruno@clisp.org>
24181
24182         Work around the Solaris 10 ACE ACLs ABI change.
24183         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
24184         declare if ACL_NO_TRIVIAL is present.
24185         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
24186         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
24187         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
24188         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
24189         define if ACL_NO_TRIVIAL is present.
24190         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
24191         and use the current ABI.
24192         (file_has_acl): Use same #if condition as elsewhere.
24193         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
24194         in use, and use the current ABI.
24195         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
24196         Reported by Jim Meyering.
24197
24198 2008-06-09  Eric Blake  <ebb9@byu.net>
24199
24200         Work around environments that (stupidly) ignore SIGALRM.
24201         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
24202         before using alarm().
24203         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24204         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
24205         Reported by Ian Beckwith <ianb@erislabs.net>.
24206
24207         Produce autobuild blurb earlier in log.
24208         * modules/autobuild (configure.ac-early): Move AB_INIT here.
24209
24210 2008-06-09  Jim Meyering  <meyering@redhat.com>
24211         and OndÅ™ej Vašík  <ovasik@redhat.com>
24212
24213         utimens.c: correct kernel bug work-around
24214         OndÅ™ej Vašík found that the invalid return value of 280 indicates
24215         failure, not success, and the kernel bug we're trying to work
24216         around affects not just the utimensat call, but also the fallback
24217         futimens call.
24218         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
24219         not success.
24220         [HAVE_FUTIMENS]: Use the same work-around, here.
24221
24222 2008-06-09  Jim Meyering  <meyering@redhat.com>
24223
24224         add more guards around definition of ACE_-related code
24225         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
24226         ALLOW and ACE_OWNER are also defined.
24227
24228 2008-06-08  Bruno Haible  <bruno@clisp.org>
24229
24230         * lib/acl-internal.h: Add me as co-author.
24231         * lib/file-has-acl.c: Likewise.
24232         * lib/set-mode-acl.c: Likewise.
24233         * lib/copy-acl.c: Likewise.
24234
24235 2008-06-08  Bruno Haible  <bruno@clisp.org>
24236
24237         Add support for AIX ACLs.
24238         * lib/acl-internal.h (acl_nontrivial): New declaration.
24239         * lib/file-has-acl.c (acl_nontrivial): New function.
24240         (file_has_acl): Add implementation using AIX 4 ACL API.
24241         * lib/set-mode-acl.c (qset_acl): Likewise.
24242         * lib/copy-acl.c (qcopy_acl): Likewise.
24243
24244 2008-06-08  Bruno Haible  <bruno@clisp.org>
24245
24246         Add support for HP-UX ACLs.
24247         * lib/acl-internal.h (acl_nontrivial): New declaration.
24248         * lib/file-has-acl.c (acl_nontrivial): New function.
24249         (file_has_acl): Add implementation using HP-UX 11 ACL API.
24250         * lib/set-mode-acl.c (qset_acl): Likewise.
24251         * lib/copy-acl.c (qcopy_acl): Likewise.
24252
24253 2008-06-08  Bruno Haible  <bruno@clisp.org>
24254
24255         Add support for Cygwin ACLs.
24256         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
24257         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
24258         the chmod_or_fchmod call.
24259         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
24260
24261 2008-06-08  Bruno Haible  <bruno@clisp.org>
24262
24263         Fix bug with setuid modes in Solaris 10+ code.
24264         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
24265         succeeded, when the mode contains some special bits.
24266
24267 2008-06-08  Bruno Haible  <bruno@clisp.org>
24268
24269         Add support for Solaris 7..10 ACLs.
24270         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
24271         declarations.
24272         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
24273         functions.
24274         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
24275         * lib/set-mode-acl.c (qset_acl): Likewise.
24276         * lib/copy-acl.c (qcopy_acl): Likewise.
24277
24278 2008-06-08  Bruno Haible  <bruno@clisp.org>
24279
24280         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
24281         declaration.
24282         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
24283         (acl_access_nontrivial): Remove MacOS X case.
24284         (file_has_acl): Use acl_extended_nontrivial.
24285         * lib/copy-acl.c (qcopy_acl): Likewise.
24286
24287 2008-06-08  Bruno Haible  <bruno@clisp.org>
24288
24289         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
24290
24291 2008-06-08  Jim Meyering  <meyering@redhat.com>
24292
24293         * modules/acl (Maintainer): Add Bruno Haible.
24294
24295 2008-06-07  Bruno Haible  <bruno@clisp.org>
24296
24297         Improve support for Tru64 ACLs.
24298         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
24299         ACL on OSF/1.
24300
24301 2008-06-07  Bruno Haible  <bruno@clisp.org>
24302
24303         Add support for MacOS X ACLs.
24304         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
24305         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
24306         * lib/set-mode-acl.c (qset_acl): Likewise.
24307         * lib/copy-acl.c (qcopy_acl): Likewise.
24308
24309 2008-06-07  Bruno Haible  <bruno@clisp.org>
24310
24311         Fix memory leak introduced on 2008-05-22.
24312         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
24313         use.
24314
24315 2008-06-07  Bruno Haible  <bruno@clisp.org>
24316
24317         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
24318         to construct an empty ACL.
24319
24320 2008-06-07  Bruno Haible  <bruno@clisp.org>
24321
24322         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
24323         precisely.
24324         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
24325
24326 2008-06-07  Bruno Haible  <bruno@clisp.org>
24327
24328         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
24329         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
24330
24331 2008-06-07  Bruno Haible  <bruno@clisp.org>
24332
24333         * doc/posix-functions/_setjmp.texi: Explain the use of this function
24334         regardless of POSIX.
24335         * doc/posix-functions/_longjmp.texi: Likewise.
24336         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
24337         SystemV platform in this case.
24338
24339 2008-06-06  Eric Blake  <ebb9@byu.net>
24340
24341         Document abort() bugs.
24342         * doc/posix-functions/abort.texi (abort): Mention anomalies.
24343
24344         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
24345         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
24346         sigsetjmp.
24347         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
24348         siglongjmp, but only as a macro.
24349         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
24350         is obsolete.
24351         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
24352
24353         Tweak documentation to cover cygwin argz bugs.
24354         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
24355         argz bug fix; no code change needed since no cygwin releases
24356         occurred between the last fix and the bug being tested.
24357         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
24358         module and recently fixed cygwin bugs.
24359         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
24360         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
24361         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
24362         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
24363         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
24364         Likewise.
24365         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
24366         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
24367         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
24368         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
24369         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
24370         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
24371         Likewise.
24372
24373         Avoid gcc warning on cygwin.
24374         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
24375         !ACL_NO_TRIVIAL]: Avoid unused variable.
24376
24377 2008-06-05  Eric Blake  <ebb9@byu.net>
24378
24379         Be tolerant of UNKNOWN version in gnulib-tool test dir.
24380         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
24381         git-version-gen fails to come up with a version.
24382         Reported by Simon Josefsson.
24383
24384 2008-06-05  Jim Meyering  <meyering@redhat.com>
24385             Paul Eggert  <eggert@cs.ucla.edu>
24386
24387         utimens.c: work around a probable Linux kernel bug
24388         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
24389         appears to be a kernel bug that causes utimensat to return 280
24390         instead of 0, indicating success.
24391
24392 2008-06-04  Bruno Haible  <bruno@clisp.org>
24393
24394         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
24395         2008-06-01 commit.
24396
24397 2008-06-04  Bruno Haible  <bruno@clisp.org>
24398
24399         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
24400         * lib/file-has-acl.c (acl_access_nontrivial): New function.
24401         (file_has_acl): Use it. Save errno afterwards.
24402         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
24403
24404 2008-06-03  Bruno Haible  <bruno@clisp.org>
24405
24406         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
24407         draft code. Simplify #ifs.
24408         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
24409         Put Solaris code after POSIX-draft code. Fix comments regarding
24410         Solaris 10, HP-UX. Mention Cygwin.
24411         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
24412
24413 2008-06-03  Eric Blake  <ebb9@byu.net>
24414
24415         Provide fallback for older kernels.
24416         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
24417         Provide runtime fallback if kernel lacks support.
24418         Reported by Mike Frysinger.
24419
24420 2008-06-02  Bruno Haible  <bruno@clisp.org>
24421
24422         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
24423         it exists.
24424
24425 2008-06-02  Bruno Haible  <bruno@clisp.org>
24426
24427         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
24428         * lib/copy-acl.c (qcopy_acl): Update comment.
24429
24430 2008-06-02  Bruno Haible  <bruno@clisp.org>
24431
24432         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
24433         like ACL APIs.
24434
24435 2008-06-02  Bruno Haible  <bruno@clisp.org>
24436
24437         * tests/test-file-has-acl.sh: Use different code for Cygwin.
24438         * tests/test-set-mode-acl.sh: Likewise.
24439         * tests/test-copy-acl.sh: Likewise.
24440         * tests/test-copy-file.sh: Likewise.
24441
24442 2008-06-02  Bruno Haible  <bruno@clisp.org>
24443
24444         * tests/test-file-has-acl.sh: Remove unused code.
24445
24446 2008-06-01  Bruno Haible  <bruno@clisp.org>
24447
24448         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
24449         (copy_acl): Just a wrapper around qcopy_acl that emits the error
24450         messages.
24451         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
24452
24453 2008-06-01  Bruno Haible  <bruno@clisp.org>
24454
24455         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
24456         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
24457         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
24458         APIs.
24459         * modules/acl-tests (configure.ac): Remove tests now contained in
24460         m4/acl.m4.
24461
24462 2008-06-02  Jim Meyering  <meyering@redhat.com>
24463
24464         announce-gen: use a better key-server host name
24465         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
24466         it may be more consistently reliable.  Suggested by Werner Koch
24467         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
24468
24469 2008-06-01  Bruno Haible  <bruno@clisp.org>
24470
24471         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
24472         Reported by Voroskoi Andras <voroskoi@gmail.com>.
24473
24474 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
24475
24476         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
24477
24478 2008-06-01  Bruno Haible  <bruno@clisp.org>
24479
24480         New ACL tests.
24481         * tests/test-file-has-acl.sh: New file.
24482         * tests/test-file-has-acl.c: New file.
24483         * tests/test-set-mode-acl.sh: New file.
24484         * tests/test-set-mode-acl.c: New file.
24485         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
24486         * tests/test-copy-acl.c: New file.
24487         * modules/acl-tests: New file, based on modules/copy-file-tests.
24488         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
24489         (Depends-on): Add acl-tests.
24490         (configure.ac): Remove checks.
24491         (Makefile.am): Don't create test-sameacls program here any more.
24492
24493 2008-06-01  Bruno Haible  <bruno@clisp.org>
24494
24495         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
24496         * tests/test-sameacls.c: Include progname.h.
24497         (main): Invoke set_program_name. Portability fixes for MacOS X,
24498         Solaris, HP-UX.
24499
24500 2008-06-01  Bruno Haible  <bruno@clisp.org>
24501
24502         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
24503         function.
24504         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
24505
24506 2008-06-01  Bruno Haible  <bruno@clisp.org>
24507
24508         * modules/rpmatch (Depends-on): Add strdup.
24509
24510 2008-06-01  Bruno Haible  <bruno@clisp.org>
24511
24512         * lib/pipe.c: Include unistd-safer.h.
24513         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
24514         * modules/pipe (Depends-on): Add unistd-safer.
24515
24516 2008-05-30  Simon Josefsson  <simon@josefsson.org>
24517
24518         * modules/autobuild (configure.ac): Call AB_INIT.
24519
24520 2008-05-30  Simon Josefsson  <simon@josefsson.org>
24521
24522         * tests/test-getaddrinfo.c: Don't print debug messages by default.
24523         Suggested by Bruno Haible <bruno@clisp.org>.
24524
24525 2008-05-30  Simon Josefsson  <simon@josefsson.org>
24526
24527         * tests/test-base64.c: Cast size_t to unsigned long when invoking
24528         printf.  Use %lu instead of %d.  Reported by Bruno Haible
24529         <bruno@clisp.org>.
24530
24531 2008-05-29  Eric Blake  <ebb9@byu.net>
24532
24533         Prefer new POSIX 200x interfaces over futimesat.
24534         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
24535         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
24536         when available.
24537         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
24538
24539 2008-05-28  Bruno Haible  <bruno@clisp.org>
24540
24541         * modules/stpcpy (License): Change to LGPLv2+.
24542         Requested by David Lutterkort <dlutter@redhat.com>.
24543
24544 2008-05-27  Bruno Haible  <bruno@clisp.org>
24545
24546         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
24547         current mingw.
24548         Reported by Jose E. Marchesi <jemarch@gnu.org>.
24549
24550 2008-05-27  Bruno Haible  <bruno@clisp.org>
24551
24552         * modules/iconv_open (Link): New section, from module 'iconv'.
24553         * modules/striconv (Link): Likewise.
24554         * modules/striconveh (Link): Likewise.
24555         * modules/xstriconv (Link): Likewise.
24556         * modules/unicodeio (Link): Likewise.
24557         * modules/propername (Link): Likewise.
24558         Reported by Jim Meyering.
24559
24560 2008-05-26  Jim Meyering  <meyering@redhat.com>
24561
24562         sha256: do not artificially restrict buffer length to be < 2^32
24563         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
24564         uint32_t to size_t.
24565         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
24566         to match.
24567
24568         avoid unaligned access errors, e.g., on sparc
24569         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
24570         direct access through a possibly-unaligned uint64* pointer.
24571         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
24572         direct access through a possibly-unaligned uint32* pointer.
24573         Prompted by this patch from Tom "spot" Callaway:
24574         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
24575
24576         sha512.c: fix typo in comment
24577         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
24578
24579 2008-05-25  Bruno Haible  <bruno@clisp.org>
24580
24581         * lib/set-mode-acl.c: Renamed from lib/acl.c.
24582         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
24583         (Makefile.am): Update lib_SOURCES.
24584
24585 2008-05-25  Bruno Haible  <bruno@clisp.org>
24586
24587         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
24588
24589 2008-05-25  Jim Meyering  <meyering@redhat.com>
24590
24591         useless-if-before-free: freed expr may have white-space differences
24592         * build-aux/useless-if-before-free: Recognize cases in which the
24593         freed expression differs from the tested one in embedded white
24594         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
24595         $1 was used, so we can't make any regexp shy.  Improved tests now
24596         detect this.
24597
24598         useless-if-before-free: accept white space in the expression.
24599         * build-aux/useless-if-before-free: For now, any white space
24600         in the expression must be identical in the free argument.
24601
24602         useless-if-before-free: efficiency tweak
24603         * build-aux/useless-if-before-free: Make the expression-matching
24604         regexp "shy".
24605         Make the *outer* regexp shy, not the expr-matching one.
24606
24607         update code-in-comment to accept cast of free arg
24608         * build-aux/useless-if-before-free: Update regexp.
24609
24610 2008-05-25  Bruno Haible  <bruno@clisp.org>
24611
24612         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
24613         * modules/copy-file-tests (Files, Makefile.am): Update.
24614         * tests/test-copy-file.c (func_test_copy): Update.
24615
24616 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
24617
24618         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
24619
24620 2008-05-23  Bruno Haible  <bruno@clisp.org>
24621
24622         Improve support for ACLs on OSF/1.
24623         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
24624         Remove fallback for unknown flavors of ACLs.
24625
24626 2008-05-22  Bruno Haible  <bruno@clisp.org>
24627
24628         Add support for ACLs on OSF/1.
24629         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
24630         replacements.
24631         (acl_free_text): New macro fallback.
24632         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
24633         acl_free.
24634         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
24635         acl_free_text function. Require AC_C_INLINE.
24636
24637 2008-05-22  Bruno Haible  <bruno@clisp.org>
24638
24639         Make copy_acl work on MacOS X 10.5.
24640         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
24641         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
24642         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
24643         If MODE_INSIDE_ACL, don't assume that every system has the same text
24644         representation for ACLs as FreeBSD.
24645         * lib/copy-acl.c (copy_acl): Add support for platforms with
24646         !MODE_INSIDE_ACL.
24647         * lib/file-has-acl.c (file_has_acl): Likewise.
24648         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
24649         FreeBSD, MacOS X, or IRIX, respectively.
24650
24651 2008-05-22  Bruno Haible  <bruno@clisp.org>
24652
24653         * lib/acl.h: Don't include <sys/acl.h>.
24654         (GETACLCNT): Move fallback to lib/acl-internal.h.
24655         * lib/acl-internal.h: Include <sys/acl.h> here.
24656         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
24657
24658 2008-05-22  Bruno Haible  <bruno@clisp.org>
24659
24660         Split off copy_acl function to separate file.
24661         * lib/copy-acl.c: New file, extracted from lib/acl.c.
24662         * lib/acl.c (copy_acl): Moved function to separate file.
24663         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
24664         * modules/acl (Files): Add lib/copy-acl.c.
24665         (Makefiles.am): Augment lib_SOURCES.
24666
24667 2008-05-22  Bruno Haible  <bruno@clisp.org>
24668
24669         * modules/copy-file-tests: New file.
24670         * tests/test-copy-file.sh: New file.
24671         * tests/test-copy-file.c: New file.
24672         * tests/test-copy-file-sameacls.c: New file.
24673
24674 2008-05-22  Eric Blake  <ebb9@byu.net>
24675
24676         Avoid gcc warning.
24677         * tests/test-memcmp.c (main): Pass NULL indirectly.
24678
24679 2008-05-21  Bruno Haible  <bruno@clisp.org>
24680
24681         Add reference doc about ACLs.
24682         * doc/acl-resources.txt: New file.
24683         * doc/acl-cygwin.txt: New file.
24684
24685 2008-05-21  Bruno Haible  <bruno@clisp.org>
24686
24687         Avoid one more warning from gcc.
24688         * lib/vasnprintf.c (IF_LINT): Update comments.
24689         (VASNPRINTF): Use it also for the 'prefix' array initializer.
24690
24691 2008-05-21  Jim Meyering  <meyering@redhat.com>
24692
24693         avoid a warning from gcc
24694         * lib/vasnprintf.c (IF_LINT): Define.
24695         (scale10_round_decimal_long_double):
24696         Use it to avoid a "may be used uninitialized" warning.
24697         (scale10_round_decimal_double): Likewise.
24698
24699 2008-05-21  Simon Josefsson  <simon@josefsson.org>
24700
24701         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
24702         declared.
24703
24704 2008-05-20  Bruno Haible  <bruno@clisp.org>
24705
24706         * tests/test-memcmp.c (main): Test also the sign of the result. Test
24707         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
24708
24709 2008-05-20  Simon Josefsson  <simon@josefsson.org>
24710
24711         * modules/memcmp-tests: New file.
24712         * tests/test-memcmp.c: New file.
24713
24714 2008-05-19  Bruno Haible  <bruno@clisp.org>
24715
24716         * modules/propername (Notice, configure.ac): Put quoted "..." into
24717         --keyword option.
24718         * lib/propername.h: Update comments accordingly.
24719         Reported by Eric Blake.
24720
24721 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
24722
24723         * modules/getpass-gnu (Depends-on): Add fseeko.
24724
24725 2008-05-19  Simon Josefsson  <simon@josefsson.org>
24726
24727         * modules/base64-tests: New file.
24728
24729 2008-05-19  Bo Borgerson <gigabo@gmail.com>
24730
24731         * lib/base64.c (base64_decode_ctx): If a decode context structure
24732         was passed in use it to ignore newlines.  If a context structure
24733         was _not_ passed in, continue to treat newlines as garbage (this
24734         is the historical behavior).  Formerly base64_decode.
24735         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
24736         takes a decode context structure.
24737         * lib/base64.h (base64_decode): Macro for four-argument calls.
24738         (base64_decode_alloc): Likewise.
24739         * lib/base64.c (base64_decode_ctx): If a decode context structure
24740         was passed in use it to ignore newlines.  If a context structure
24741         was _not_ passed in, continue to treat newlines as garbage (this
24742         is the historical behavior).  Formerly base64_decode.
24743         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
24744         takes a decode context structure.
24745         * lib/base64.h (base64_decode): Macro for four-argument calls.
24746         (base64_decode_alloc): Likewise.
24747
24748 2008-05-19  Jim Meyering  <meyering@redhat.com>
24749
24750         avoid a warning from gcc
24751         * lib/trim.c (IF_LINT): Define.
24752         (trim2): Use it to avoid a "may be used uninitialized" warning.
24753
24754         Fix doc typo.
24755         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
24756
24757 2008-05-19  Bruno Haible  <bruno@clisp.org>
24758
24759         * doc/glibc-functions/getpass.texi: Document limits of other
24760         implementations.
24761
24762 2008-05-19  Simon Josefsson  <simon@josefsson.org>
24763             Bruno Haible <bruno@clisp.org>
24764
24765         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
24766
24767 2008-05-18  Bruno Haible  <bruno@clisp.org>
24768
24769         * modules/propername: New file, from GNU gettext.
24770         * lib/propername.h: New file, from GNU gettext.
24771         * lib/propername.c: New file, from GNU gettext.
24772         * MODULES.html.sh (Internationalization functions): Add propername.
24773
24774 2008-05-16  Jim Meyering  <meyering@redhat.com>
24775             Bruno Haible  <bruno@clisp.org>
24776
24777         Avoid some warnings from "gcc -Wshadow".
24778         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
24779
24780 2008-05-15  Eric Blake  <ebb9@byu.net>
24781
24782         Extend previous patch to cygwin 1.7.0.
24783         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
24784         fast implementation in cygwin >= 1.7.0.
24785         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24786         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24787
24788 2008-05-15  Bruno Haible  <bruno@clisp.org>
24789
24790         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
24791         implementation in glibc >= 2.9.
24792         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24793         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24794
24795 2008-05-15  Bruno Haible  <bruno@clisp.org>
24796
24797         * MODULES.html.sh (Internationalization functions): Remove linebreak.
24798         (Unicode string functions): Add unilbrk/*.
24799         Reported by Karl Berry.
24800
24801 2008-05-15  Eric Blake  <ebb9@byu.net>
24802
24803         Fix violation of <stdbool.h> replacement in regex.
24804         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
24805         * lib/regexec.c (re_search_internal): Likewise.
24806         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
24807
24808 2008-05-15  Jim Meyering  <meyering@redhat.com>
24809
24810         avoid distracting test output when git or cvs is not found
24811         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
24812         * tests/test-vc-list-files-git.sh: Likewise.
24813
24814 2008-05-15  Eric Blake  <ebb9@byu.net>
24815
24816         Glibc finally accepted the memmem speedup code, bugzilla #5514.
24817         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
24818         glibc version.
24819         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
24820         * doc/posix-functions/strstr.texi (strstr): Likewise.
24821         * lib/str-two-way.h (MAX): Sychronize with glibc.
24822
24823 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
24824
24825         * lib/regcomp.c (optimize_utf8): Add a note on why we test
24826         opr.ctx_type.
24827         (calc_first): Initialize constraint field.
24828         (duplicate_node_closure): Use it instead of special casing ANCHORS.
24829         Fix grammar.
24830         (duplicate_node): Merge constraint field for all node types.
24831         (calc_eclosure_iter): Look at constraint field for all node types.
24832         * lib/regex_internal.c (create_cd_newstate): Don't look at
24833         opr.ctx_type.
24834
24835 2008-05-14  Bruno Haible  <bruno@clisp.org>
24836
24837         Help GCC to do better code generation.
24838         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
24839         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
24840         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
24841         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
24842         Declare with attribute 'malloc' if supported.
24843
24844 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
24845
24846         use "echo STR|wc -c" rather than unportable "expr length STR"
24847         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
24848         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
24849
24850 2008-05-14  Jim Meyering  <meyering@redhat.com>
24851
24852         use dd ibs=$n count=1 ... rather than less-portable head -c$n
24853         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
24854         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
24855         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
24856         via Collin Lasse.
24857
24858 2008-05-14  Eric Blake  <ebb9@byu.net>
24859
24860         Avoid quadratic growth in gl_LIBSOURCES.
24861         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
24862         Suggested by Bruno Haible.
24863
24864         Test xmemdup0.
24865         * modules/xmemdup0-tests: New file.
24866         * tests/test-xmemdup0.c: Likewise.
24867
24868 2008-05-13  Eric Blake  <ebb9@byu.net>
24869
24870         Split xmemdup0 into its own module.
24871         * modules/xmemdup0: New file.
24872         * lib/xmemdup0.h: Likewise.
24873         * lib/xmemdup0.c: Likewise.
24874         * MODULES.html.sh (Memory management functions): Add xmemdup0.
24875         * lib/xalloc.h (xmemdup0): Remove.
24876         * lib/xmalloc.c (xmemdup0): Likewise.
24877
24878 2008-05-13  Eric Blake  <ebb9@byu.net>
24879             Bruno Haible  <bruno@clisp.org>
24880
24881         Reduce number of forks required during autoconf.
24882         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
24883         and gl_LIBSOURCES_DIR.
24884         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
24885         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
24886         m4_syscmd per file.
24887         <m4_foreach_w>: Move...
24888         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
24889
24890 2008-05-13  Eric Blake  <ebb9@byu.net>
24891
24892         * gnulib-tool: Fix various comment typos.
24893
24894 2008-05-12  Bruno Haible  <bruno@clisp.org>
24895
24896         Tailor the linebreaking algorithm.
24897         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
24898
24899 2008-05-12  Bruno Haible  <bruno@clisp.org>
24900
24901         Update to Unicode 5.0.0.
24902         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
24903         LBP_JV, LBP_JT. Redistribute values.
24904         (unilbrk_table): Change size.
24905         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
24906         Unicode TR#14 rev. 22.
24907         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
24908         LBP_JV, LBP_JT. Redistribute values.
24909         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
24910         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
24911         Update.
24912         * lib/unilbrk/lbrkprop1.h: Regenerated.
24913         * lib/unilbrk/lbrkprop2.h: Regenerated.
24914         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
24915         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
24916         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
24917         Likewise.
24918         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
24919         Likewise.
24920         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
24921         result.
24922         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
24923         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
24924         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
24925         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
24926         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
24927         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
24928
24929 2008-05-11  Bruno Haible  <bruno@clisp.org>
24930
24931         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
24932
24933 2008-05-11  Bruno Haible  <bruno@clisp.org>
24934
24935         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
24936         * modules/unilbrk/gen-lbrk: New file.
24937
24938 2008-05-11  Bruno Haible  <bruno@clisp.org>
24939
24940         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
24941         * m4/sha512.m4 (gl_SHA512): Likewise.
24942
24943 2008-05-11  Jim Meyering  <meyering@redhat.com>
24944
24945         New modules: crypto/sha256, crypto/sha512 (from coreutils)
24946         * modules/crypto/sha256: New file.
24947         * modules/crypto/sha512: Likewise.
24948         * lib/sha256.c: Likewise.
24949         * lib/sha256.h: Likewise.
24950         * lib/sha512.c: Likewise.
24951         * lib/sha512.h: Likewise.
24952         * lib/u64.h: Likewise.
24953         * m4/sha256.m4: Likewise.
24954         * m4/sha512.m4: Likewise.
24955         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
24956
24957 2008-05-10  Bruno Haible  <bruno@clisp.org>
24958
24959         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
24960         (Input/Output <stdio.h>): Add xprintf.
24961         (Signal handling <signal.h>): Add strsignal.
24962         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
24963         (Core language properties): Add func.
24964         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
24965         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
24966         strings.
24967         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
24968         (Input/output): New section.
24969         (File system functions): Add openat-die, stat-macros.
24970         (Networking functions): Add sockets.
24971         (Unicode string functions): Add unictype/*.
24972         (Support for building libraries and executables): Add gperf.
24973         (Support for building documentation): Add agpl-3.0.
24974         (Misc): Add nocrash.
24975
24976 2008-05-10  Bruno Haible  <bruno@clisp.org>
24977
24978         * modules/unictype/gen-ctype: New file.
24979
24980 2008-05-10  Jim Meyering  <meyering@redhat.com>
24981
24982         Make chdir-safer.c more efficient on a system with no symlinks.
24983         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
24984         also if ELOOP is zero.  Suggested by Bruno Haible.
24985
24986         Make chdir-safer.c slightly safer.
24987         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
24988         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
24989
24990         Avoid compile failure on systems without ELOOP (like mingw).
24991         * lib/chdir-safer.c (ELOOP): Define if not already defined.
24992         Reported by Bruno Haible.
24993
24994 2008-05-10  Bruno Haible  <bruno@clisp.org>
24995
24996         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
24997         (is_utf8_encoding): Use a case-insensitive comparison.
24998         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
24999         streq.
25000
25001 2008-05-10  Bruno Haible  <bruno@clisp.org>
25002
25003         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
25004         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
25005         * lib/unilbrk/ulc-common.h (iconv_string_length,
25006         iconv_string_keeping_offsets): Remove declarations.
25007         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
25008         Don't include <iconv.h>, streq.h, xsize.h.
25009         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
25010         conversion.
25011         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
25012         <iconv.h>, streq.h, xsize.h.
25013         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
25014         conversion.
25015         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
25016         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
25017         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
25018         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
25019
25020 2008-05-10  Bruno Haible  <bruno@clisp.org>
25021
25022         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
25023         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
25024
25025         * modules/unilbrk/u32-width-linebreaks-tests: New file.
25026         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
25027
25028         * modules/unilbrk/u16-width-linebreaks-tests: New file.
25029         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
25030
25031         * modules/unilbrk/u8-width-linebreaks-tests: New file.
25032         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
25033
25034         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
25035         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
25036
25037         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
25038         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
25039
25040         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
25041         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
25042
25043         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
25044         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
25045
25046 2008-05-10  Bruno Haible  <bruno@clisp.org>
25047
25048         Split up 'linebreak' module.
25049         * lib/unilbrk.h: New file, based on lib/linebreak.h.
25050         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
25051         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
25052         modifications.
25053         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
25054         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
25055         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
25056         lib/linebreak.c.
25057         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
25058         lib/linebreak.c.
25059         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
25060         lib/linebreak.c.
25061         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
25062         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
25063         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
25064         lib/linebreak.c.
25065         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
25066         lib/linebreak.c.
25067         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
25068         lib/linebreak.c.
25069         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
25070         lib/linebreak.c.
25071         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
25072         lib/linebreak.c.
25073         * modules/unilbrk/base: New file.
25074         * modules/unilbrk/tables: New file.
25075         * modules/unilbrk/u8-possible-linebreaks: New file.
25076         * modules/unilbrk/u16-possible-linebreaks: New file.
25077         * modules/unilbrk/u32-possible-linebreaks: New file.
25078         * modules/unilbrk/ulc-common: New file.
25079         * modules/unilbrk/ulc-possible-linebreaks: New file.
25080         * modules/unilbrk/u8-width-linebreaks: New file.
25081         * modules/unilbrk/u16-width-linebreaks: New file.
25082         * modules/unilbrk/u32-width-linebreaks: New file.
25083         * modules/unilbrk/ulc-width-linebreaks: New file.
25084         * lib/linebreak.h: Remove file.
25085         * lib/linebreak.c: Remove file.
25086         * m4/linebreak.m4: Remove file.
25087         * modules/linebreak: Remove file.
25088         * NEWS: Mention the changes.
25089
25090 2008-05-09  Eric Blake  <ebb9@byu.net>
25091
25092         Add xmemdup0.
25093         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
25094         implementation.
25095         * lib/xmalloc.c (xmemdup0): New C implementation.
25096
25097 2008-05-08  Bruno Haible  <bruno@clisp.org>
25098
25099         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
25100
25101 2008-05-07  Eric Blake  <ebb9@byu.net>
25102
25103         Support cross-compilation of <wctype.h>.
25104         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
25105         AC_CACHE_CHECK.
25106
25107 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
25108
25109         * build-aux/vc-list-files: Add support for bzr.
25110
25111 2008-05-03  Jim Meyering  <meyering@redhat.com>
25112
25113         avoid failed assertion with tight malloc
25114         * tests/test-getndelim2.c: Correct an off-by-one assertion.
25115
25116 2008-05-03  Simon Josefsson  <simon@josefsson.org>
25117
25118         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
25119         are needed from arpa/inet.h.
25120         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
25121         Reported by Bruno Haible.
25122
25123 2008-05-02  Jim Meyering  <meyering@redhat.com>
25124
25125         avoid compilation error on FreeBSD 6
25126         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
25127
25128 2008-05-01  Jim Meyering  <meyering@redhat.com>
25129
25130         useless-if-before-free: correct --help's exit status description
25131         * build-aux/useless-if-before-free (usage): Like grep, exit 0
25132         for one or more matches, etc.  Reported by Bruno Haible.
25133
25134         vc-list-files: make the stand-alone gnulib test work
25135         * modules/vc-list-files-tests (configure.ac):
25136         Define and AC_SUBST abs_aux_dir.
25137         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
25138         $(abs_top_srcdir) to each script and having each of them
25139         duplicate the work of setting PATH, set PATH here, using
25140         the new variable, abs_aux_dir instead.
25141         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
25142         * tests/test-vc-list-files-git.sh: Likewise.
25143         Reported by Bruno Haible.
25144
25145 2008-05-01  Bruno Haible  <bruno@clisp.org>
25146
25147         * lib/getndelim2.c (getndelim2): Fix newsize computation during
25148         reallocation. Rename 'done' to 'found_delimiter'.
25149
25150 2008-05-01  Jim Meyering  <meyering@redhat.com>
25151
25152         vc-list-files: accommodate /bin/sh like the one from Solaris 10
25153         * build-aux/vc-list-files: Use `...`, not $(...).
25154
25155 2008-04-30  Jim Meyering  <meyering@redhat.com>
25156
25157         add tests for vc-list-files
25158         * modules/vc-list-files-tests: New module.
25159         * tests/test-vc-list-files-cvs.sh: New file.
25160         * tests/test-vc-list-files-git.sh: New file.
25161
25162         avoid a warning from gcc
25163         * lib/getndelim2.c (IF_LINT): Define.
25164         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
25165
25166         vc-list-files: work properly with build-aux/cvsu, too
25167         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
25168         to all cvs-based clauses.
25169
25170         vc-list-files: work properly in the CVS+awk case, too
25171         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
25172
25173         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
25174         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
25175         take more than one file argument, so .  Add quotes, just in case $dir
25176         ever contains a shell meta-character.  Prompted by Soren Hansen in
25177         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
25178
25179 2008-04-29  Eric Blake  <ebb9@byu.net>
25180
25181         Optimize getndelim2 to use block operations when possible.
25182         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
25183         freadseek, and memchr2.
25184         * lib/getndelim2.c (getndelim2): Use them for block reads.
25185
25186 2008-04-29  Bruno Haible  <bruno@clisp.org>
25187
25188         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
25189         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25190         * modules/inet_ntop (Depends-on): Add extensions.
25191         * modules/inet_pton (Depends-on): Likewise.
25192         Reported by Simon Josefsson.
25193
25194 2008-04-29  Jim Meyering  <meyering@redhat.com>
25195
25196         When the is more than one match in a block, match all of them.
25197         * build-aux/useless-if-before-free: Iterate through each block
25198         until there are no more matches.
25199
25200         Fix broken useless-if-before-free script.
25201         * build-aux/useless-if-before-free: Fix typo: missing "?" after
25202         the expression to match cast of argument to free-like function.
25203
25204 2008-04-29  Eric Blake  <ebb9@byu.net>
25205
25206         Use new header.
25207         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
25208
25209 2008-04-29  Jim Meyering  <meyering@redhat.com>
25210
25211         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
25212         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
25213         by gnulib to exist and to declare e.g., inet_ntop.
25214         Don't include "inet_ntop.h", now removed.
25215
25216         * m4/arpa_inet_h.m4: Remove trailing blanks.
25217
25218 2008-04-29  Eric Blake  <ebb9@byu.net>
25219
25220         Silence valgrind on safe reads beyond potential array bounds.
25221         * lib/rawmemchr.valgrind: New file.
25222         * lib/strchrnul.valgrind: Likewise.
25223         * modules/rawmemchr (Files): Distribute new file.
25224         * modules/strchrnul (Files): Likewise.
25225         Suggested by Bruno Haible.
25226
25227 2008-04-29  Bruno Haible  <bruno@clisp.org>
25228
25229         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
25230         (inet_ntop, inet_pton): Change portability warning's wording.
25231         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
25232         Invoke gl_CHECK_NEXT_HEADERS.
25233         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
25234         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
25235         set ARPA_INET_H.
25236         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25237         * modules/arpa_inet (Description): No longer only for systems that
25238         lack it.
25239         (Depends-on): Add include_next.
25240         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
25241         HAVE_ARPA_INET_H.
25242
25243 2008-04-29  Jim Meyering  <meyering@redhat.com>
25244
25245         * modules/mkdir (License): Re-license as LGPLv2+.
25246
25247 2008-04-29  Bruno Haible  <bruno@clisp.org>
25248
25249         * modules/rawmemchr (Maintainer): Set to Eric.
25250         * modules/strchrnul (Maintainer): Likewise.
25251
25252 2008-04-29  Simon Josefsson  <simon@josefsson.org>
25253
25254         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
25255         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
25256
25257         * modules/arpa_inet (arpa/inet.h): Use them.
25258
25259 2008-04-28  Eric Blake  <ebb9@byu.net>
25260
25261         Test getndelim2.
25262         * modules/getndelim2-tests: New file.
25263         * tests/test-getndelim2.c: Likewise.
25264         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
25265         stream.
25266         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
25267
25268         * MODULES.html.sh: Document new module.
25269
25270 2008-04-20  Bruno Haible  <bruno@clisp.org>
25271
25272         * lib/c-stack.c (die): Use raise.
25273         * modules/c-stack (Depends-on): Add raise.
25274
25275 2008-04-28  Bruno Haible  <bruno@clisp.org>
25276
25277         Expect rpmatch to be declared.
25278         * lib/yesno.c (rpmatch): Remove declaration.
25279
25280         Declare rpmatch.
25281         * lib/stdlib.in.h (rpmatch): New declaration.
25282         * lib/rpmatch.c: Include <stdlib.h> first.
25283         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
25284         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
25285         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
25286         HAVE_RPMATCH.
25287         * modules/rpmatch (Depends-on): Add stdlib, extensions.
25288         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25289         (Include): Set to <stdlib.h>.
25290         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
25291         HAVE_RPMATCH.
25292         * NEWS: Document the change.
25293
25294 2008-04-28  Bruno Haible  <bruno@clisp.org>
25295
25296         Change rpmatch to use nl_langinfo when appropriate.
25297         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
25298         (N_): New macro.
25299         (localized_pattern): New function/macro.
25300         (try): Remove match, nomatch arguments. Copy the pattern into safe
25301         memory before caching it.
25302         (rpmatch): Use localized_pattern. Add translator comments.
25303         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
25304         Suggested by Eric Blake.
25305         * modules/rpmatch (Depends-on): Add stdbool.
25306
25307 2008-04-28  Eric Blake  <ebb9@byu.net>
25308
25309         Add rawmemchr module, matching glibc.
25310         * modules/string (Makefile.am): New indicator.
25311         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
25312         * lib/string.in.h (rawmemchr): Declare when appropriate.
25313         * modules/rawmemchr: New file.
25314         * m4/rawmemchr.m4: Likewise.
25315         * lib/rawmemchr.c: Likewise.
25316         * modules/rawmemchr-tests: Likewise.
25317         * tests/test-rawmemchr.c: Likewise.
25318         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
25319         module.
25320         * modules/strchrnul (Depends-on): Add rawmemchr.
25321         * lib/strchrnul.c (strchrnul): Optimize a corner case.
25322
25323         Whitespace cleanup.
25324         * tests/test-strchrnul.c: Reindent.
25325         * lib/strchrnul.c: Likewise.
25326
25327         Optimize and test strchrnul.
25328         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
25329         * modules/strchrnul-tests: New file.
25330         * tests/test-strchrnul.c: Likewise.
25331
25332         Remove intprops dependency.
25333         * modules/memchr (Depends-on): Remove intprops.
25334         * modules/memrchr (Depends-on): Likewise.
25335         * modules/memchr2 (Depends-on): Likewise.
25336         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
25337         * lib/memrchr.c (__memrchr): Likewise.
25338         * lib/memrchr2.c (memchr2): Likewise.
25339         Reported by Simon Josefsson.
25340
25341 2008-04-28  Simon Josefsson  <simon@josefsson.org>
25342
25343         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
25344         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25345
25346 2008-04-28  Simon Josefsson  <simon@josefsson.org>
25347
25348         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
25349
25350         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
25351
25352         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
25353
25354         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
25355         declarations.
25356         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
25357
25358         * m4/inet_pton.m4: Don't check for header files.
25359
25360         * m4/inet_ntop.m4: Don't check for header files.
25361
25362 2008-04-28  Simon Josefsson  <simon@josefsson.org>
25363
25364         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
25365         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
25366         trigger for cygwin).
25367         Reported by Bruno Haible  <bruno@clisp.org>.
25368
25369 2008-04-28  Bruno Haible  <bruno@clisp.org>
25370
25371         * doc/posix-functions/strdup.texi: Mention mingw problem.
25372
25373 2008-04-27  Bruno Haible  <bruno@clisp.org>
25374
25375         * modules/stat-time-tests (Depends-on): Add sleep.
25376         * tests/test-stat-time.c (force_unlink): New function.
25377         (cleanup): Use it.
25378         (test_mtime): Remove the ctime related tests.
25379         (test_ctime): New function, containing the ctime related tests.
25380         (main): Call test_ctime, except on native Windows platforms.
25381
25382 2008-04-27  Bruno Haible  <bruno@clisp.org>
25383
25384         * lib/rpmatch.c (rpmatch): Add some comments.
25385         Reported by James Youngman <jay@gnu.org>.
25386
25387 2008-04-27  Bruno Haible  <bruno@clisp.org>
25388
25389         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
25390         quiet NaNs.
25391
25392 2008-04-27  Bruno Haible  <bruno@clisp.org>
25393
25394         Make test-yesno.sh work on mingw.
25395         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
25396         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
25397         (main): Set stdin to binary mode.
25398         * modules/yesno-tests (Depends-on): Add binary-io.
25399
25400 2008-04-27  Bruno Haible  <bruno@clisp.org>
25401
25402         Fix 'isfinite' on x86, x86_64, ia64 platforms.
25403         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
25404         argument that lie outside the IEEE 854 domain.
25405         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
25406         (gl_ISFINITE): Use it.
25407         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
25408
25409 2008-04-27  Bruno Haible  <bruno@clisp.org>
25410
25411         Allow local renaming in config.h.
25412         * lib/memrchr.c (memrchr): Don't undefine outside libc.
25413
25414 2008-04-27  Bruno Haible  <bruno@clisp.org>
25415
25416         * lib/memchr.c (__memchr): Change type of 'i'.
25417         * lib/memchr2.c (memchr2): Likewise.
25418
25419 2008-04-26  Eric Blake  <ebb9@byu.net>
25420         and Bruno Haible  <bruno@clisp.org>
25421
25422         Optimize and test memrchr.
25423         * modules/memrchr (Depends-on): Add intprops.
25424         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
25425         * modules/memrchr-tests: New file.
25426         * tests/test-memrchr.c: New file.
25427
25428 2008-04-26  Bruno Haible  <bruno@clisp.org>
25429
25430         Add tentative support for DragonFly BSD.
25431         * lib/stdio-impl.h: Add macros for DragonFly BSD.
25432         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
25433         fp.
25434         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
25435         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
25436         * lib/fpurge.c (fpurge): Likewise.
25437         * lib/freadable.c (freaadable): Likewise.
25438         * lib/freadahead.c (freadahead): Likewise.
25439         * lib/freading.c (freading): Likewise.
25440         * lib/freadptr.c (freadptr): Likewise.
25441         * lib/freadseek.c (freadptrinc): Likewise.
25442         * lib/fseeko.c (fseeko): Likewise.
25443         * lib/fseterr.c (fseterr): Likewise.
25444         * lib/fwritable.c (fwritable): Likewise.
25445         * lib/fwriting.c (fwriting): Likewise.
25446
25447 2008-04-26  Bruno Haible  <bruno@clisp.org>
25448
25449         * lib/stdio-impl.h: New file.
25450         * lib/fbufmode.c: Include stdio-impl.h.
25451         (fbufmode): Use fp_, remove redundant #defines.
25452         * lib/fflush.c: Include stdio-impl.h.
25453         (clear_ungetc_buffer): Remove redundant #defines.
25454         * lib/fpurge.c: Include stdio-impl.h.
25455         (fpurge): Remove redundant #defines.
25456         * lib/freadable.c: Include stdio-impl.h.
25457         (freadable): Remove redundant #defines.
25458         * lib/freadahead.c: Include stdio-impl.h.
25459         (freadahead): Remove redundant #defines.
25460         * lib/freading.c: Include stdio-impl.h.
25461         (freading): Remove redundant #defines.
25462         * lib/freadptr.c: Include stdio-impl.h.
25463         (freadptr): Remove redundant #defines.
25464         * lib/freadseek.c: Include stdio-impl.h.
25465         (freadptrinc): Remove redundant #defines.
25466         * lib/fseeko.c: Include stdio-impl.h.
25467         (rpl_fseeko): Remove redundant #defines.
25468         * lib/fseterr.c: Include stdio-impl.h.
25469         (fseterr): Remove redundant #defines.
25470         * lib/fwritable.c: Include stdio-impl.h.
25471         (fwritable: Remove redundant #defines.
25472         * lib/fwriting.c: Include stdio-impl.h.
25473         (fwriting): Remove redundant #defines.
25474         * modules/fbufmode (Files): Add lib/stdio-impl.h.
25475         * modules/fflush (Files): Likewise.
25476         * modules/fpurge (Files): Likewise.
25477         * modules/freadable (Files): Likewise.
25478         * modules/freadahead (Files): Likewise.
25479         * modules/freading (Files): Likewise.
25480         * modules/freadptr (Files): Likewise.
25481         * modules/freadseek (Files): Likewise.
25482         * modules/fseeko (Files): Likewise.
25483         * modules/fseterr (Files): Likewise.
25484         * modules/fwritable (Files): Likewise.
25485         * modules/fwriting (Files): Likewise.
25486
25487 2008-04-26  Bruno Haible  <bruno@clisp.org>
25488
25489         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
25490         restore_seek_optimization, update_fpos_cache): New functions, extracted
25491         from rpl_fflush.
25492         (rpl_fflush): Use them.
25493         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
25494         (gl_REPLACE_FFLUSH): Use it.
25495
25496 2008-04-26  Bruno Haible  <bruno@clisp.org>
25497
25498         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
25499         on Solaris.
25500         * tests/test-xstrtoimax.sh: Likewise.
25501         * tests/test-xstrtoumax.sh: Likewise.
25502         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25503
25504 2008-04-26  Bruno Haible  <bruno@clisp.org>
25505
25506         * modules/memchr-tests: New file.
25507         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
25508
25509 2008-04-26  Eric Blake  <ebb9@byu.net>
25510             Bruno Haible  <bruno@clisp.org>
25511
25512         * lib/memchr.c: Include intprops.h.
25513         (__memchr): Optimize parallel detection of matching bytes. Rename local
25514         variables. Add explanatory comments.
25515
25516 2008-04-26  Bruno Haible  <bruno@clisp.org>
25517
25518         Fix module 'memchr', broken since 2000-10-28.
25519         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
25520
25521 2008-04-26  Bruno Haible  <bruno@clisp.org>
25522
25523         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
25524         comments.
25525
25526 2008-04-25  Eric Blake  <ebb9@byu.net>
25527
25528         Use native fstatat on cygwin 1.7.0.
25529         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
25530         first.
25531
25532 2008-04-23  Eric Blake  <ebb9@byu.net>
25533
25534         Improve memchr2 performance.
25535         * lib/memchr2.c (memchr2): Further optimize parallel detection of
25536         NUL bytes.
25537         * modules/memchr2 (Depends-on): Use intprops.h.
25538
25539 2008-04-23  Simon Josefsson  <simon@josefsson.org>
25540
25541         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
25542         an inline function instead of a CPP macro.  Patch by Ben Pfaff
25543         <blp@cs.stanford.edu>.
25544
25545 2008-04-23  Simon Josefsson  <simon@josefsson.org>
25546
25547         * lib/arpa_inet.in.h: New file.
25548
25549         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
25550         (Makefile.am): Sed in substitute header file.
25551
25552         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
25553         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
25554
25555         * modules/inet_ntop (configure.ac): Use
25556         gl_ARPA_INET_MODULE_INDICATOR.
25557
25558         * modules/inet_pton (configure.ac): Use
25559         gl_ARPA_INET_MODULE_INDICATOR.
25560
25561 2008-04-22  Jim Meyering  <meyering@redhat.com>
25562
25563         * modules/verify (License): Re-license as LGPLv2+.
25564
25565 2008-04-22  Simon Josefsson  <simon@josefsson.org>
25566
25567         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
25568         parameter to void* as per POSIX standard (MinGW uses char*).
25569
25570 2008-04-21  Bruno Haible  <bruno@clisp.org>
25571
25572         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
25573         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
25574         Define to replacements if REPLACE_ISWCNTRL is 1.
25575         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
25576         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
25577         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
25578         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
25579         what it fixes.
25580         * doc/posix-functions/iswalpha.texi: Likewise.
25581         * doc/posix-functions/iswblank.texi: Likewise.
25582         * doc/posix-functions/iswcntrl.texi: Likewise.
25583         * doc/posix-functions/iswdigit.texi: Likewise.
25584         * doc/posix-functions/iswgraph.texi: Likewise.
25585         * doc/posix-functions/iswlower.texi: Likewise.
25586         * doc/posix-functions/iswprint.texi: Likewise.
25587         * doc/posix-functions/iswpunct.texi: Likewise.
25588         * doc/posix-functions/iswspace.texi: Likewise.
25589         * doc/posix-functions/iswupper.texi: Likewise.
25590         * doc/posix-functions/iswxdigit.texi: Likewise.
25591         Reported by Alain Guibert.
25592
25593 2008-04-21  Bruno Haible  <bruno@clisp.org>
25594
25595         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
25596         Patch by Alain Guibert.
25597
25598 2008-04-21  Bruno Haible  <bruno@clisp.org>
25599
25600         Fix test failures on mingw.
25601         * tests/test-xstrtol.c (print_no_progname): New function.
25602         (main): Install it in error_print_progname hook.
25603         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
25604         * tests/test-xstrtoimax.sh: Likewise.
25605         * tests/test-xstrtoumax.sh: Likewise.
25606
25607 2008-04-21  Bruno Haible  <bruno@clisp.org>
25608
25609         Fix test failure on mingw.
25610         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
25611
25612 2008-04-21  Bruno Haible  <bruno@clisp.org>
25613
25614         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
25615         Actually assign a value.
25616
25617 2008-04-20  Bruno Haible  <bruno@clisp.org>
25618
25619         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
25620         take 2.
25621         * lib/canonicalize.c (canonicalize_file_name): Elide if the
25622         'canonicalize-lgpl' module is also used.
25623         * lib/canonicalize-lgpl.c: Undo last change.
25624         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
25625
25626 2008-04-20  Bruno Haible  <bruno@clisp.org>
25627
25628         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
25629         config.h. Provide _mkdir based fallback for mingw.
25630         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
25631         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
25632         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
25633         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
25634         rather than defining mkdir in config.h.
25635         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
25636         (gl_SYS_STAT_H_DEFAULTS): New macro.
25637         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
25638         HAVE_IO_H any more.
25639         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
25640         HAVE_DECL_MKDIR and HAVE_IO_H.
25641
25642 2008-04-20  Bruno Haible  <bruno@clisp.org>
25643
25644         * lib/isapipe.c: Port to native Windows platforms.
25645
25646 2008-04-20  Bruno Haible  <bruno@clisp.org>
25647
25648         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
25649
25650 2008-04-21  Eric Blake  <ebb9@byu.net>
25651
25652         Work around preprocessors that don't handle UINTMAX_MAX.
25653         * lib/memchr2.c (memchr2): Avoid embedded #if.
25654         Reported by Alain Guibert, fix suggested by Bruno Haible.
25655
25656 2008-04-21  Simon Josefsson  <simon@josefsson.org>
25657
25658         * doc/posix-functions/strftime.texi (strftime): Explain better
25659         Windows incompatibility.  Suggested by Micah Cowan
25660         <micah@cowan.name>.
25661
25662 2008-04-20  Bruno Haible  <bruno@clisp.org>
25663
25664         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
25665         unistr/u8-mblen.
25666
25667 2008-04-20  Bruno Haible  <bruno@clisp.org>
25668
25669         Fix test failure on platforms with non-GNU iconv.
25670         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
25671         (U_TO_U8): Use it, rather than u16_to_u8.
25672         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
25673         units at the end of the input string.
25674         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
25675
25676 2008-04-20  Bruno Haible  <bruno@clisp.org>
25677
25678         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
25679         when the resulting length is 0.
25680         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
25681
25682 2008-04-20  Bruno Haible  <bruno@clisp.org>
25683
25684         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
25685         works.
25686         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
25687
25688 2008-04-20  Bruno Haible  <bruno@clisp.org>
25689
25690         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
25691         * modules/tsearch-tests (configure.ac): Test for initstate function.
25692
25693 2008-04-20  Bruno Haible  <bruno@clisp.org>
25694
25695         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
25696         for nlink_t if missing.
25697         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
25698
25699 2008-04-19  Bruno Haible  <bruno@clisp.org>
25700
25701         Work around snprintf bug on Linux libc5.
25702         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
25703         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
25704         gl_SNPRINTF_SIZE1.
25705         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25706         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
25707         that test failed.
25708         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
25709         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
25710         * modules/snprintf (Files): Add m4/printf.m4.
25711         * modules/vsnprintf (Files): Likewise.
25712         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
25713         * doc/posix-functions/vsnprintf.texi: Likewise.
25714
25715 2008-04-19  Bruno Haible  <bruno@clisp.org>
25716
25717         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
25718         from 0.0058 to less than 10^-7.
25719
25720 2008-04-19  Bruno Haible  <bruno@clisp.org>
25721
25722         Fix rounding when a precision is given.
25723         * lib/vasnprintf.c (is_borderline): New function.
25724         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
25725         9...9x.
25726         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
25727         %e, %g.
25728         * tests/test-vasprintf-posix.c (test_function): Likewise.
25729         * tests/test-snprintf-posix.h (test_function): Likewise.
25730         * tests/test-sprintf-posix.h (test_function): Likewise.
25731         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
25732         * tests/test-printf-posix.h (test_function): Likewise.
25733         * tests/test-printf-posix.output: Update.
25734         Reported by John Darrington <john@darrington.wattle.id.au> via
25735         Ben Pfaff <blp@cs.stanford.edu>.
25736
25737 2008-04-18  Simon Josefsson  <simon@josefsson.org>
25738
25739         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
25740         Suggested by Bruno Haible <bruno@clisp.org>.
25741
25742 2008-04-17  Bruno Haible  <bruno@clisp.org>
25743
25744         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
25745         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
25746         implementation.
25747         Patch by Bruce Merry <bmerry@gmail.com>.
25748
25749 2008-04-17  Simon Josefsson  <simon@josefsson.org>
25750
25751         * doc/posix-functions/strftime.texi (strftime): Mention that %e
25752         doesn't work under Windows.
25753
25754 2008-04-16  Bruno Haible  <bruno@clisp.org>
25755
25756         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
25757         New macros.
25758         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
25759         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
25760         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
25761         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
25762         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
25763         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
25764         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
25765         macros.
25766         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
25767         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
25768         Northern Sotho, Uighur.
25769
25770 2008-04-16  Bruno Haible  <bruno@clisp.org>
25771
25772         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
25773         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
25774         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
25775         Reported by Daniel Bergström <daniel@octocode.com>.
25776
25777 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
25778             Bruno Haible  <bruno@clisp.org>
25779
25780         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
25781         function.
25782         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
25783         New functions, mostly extracted from gl_locale_name_default.
25784         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
25785
25786 2008-04-16  Eric Blake  <ebb9@byu.net>
25787
25788         Adjust strtod detection to catch glibc 2.7 bug.
25789         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
25790         Reported by John Gatewood Ham.
25791
25792 2008-04-16  Bruno Haible  <bruno@clisp.org>
25793
25794         Add tentative support for Linux libc5.
25795         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
25796         * lib/fpurge.c (fpurge): Likewise.
25797         * lib/freadable.c (freadable): Likewise.
25798         * lib/freadahead.c (freadahead): Likewise.
25799         * lib/freading.c (freading): Likewise.
25800         * lib/freadptr.c (freadptr): Likewise.
25801         * lib/freadseek.c (freadptrinc): Likewise.
25802         * lib/fseeko.c (rpl_fseeko): Likewise.
25803         * lib/fseterr.c (fseterr): Likewise.
25804         * lib/fwritable.c (fwritable): Likewise.
25805         * lib/fwriting.c (fwriting): Likewise.
25806         Reported by Alain Guibert <alguibert+bts@free.fr>.
25807
25808 2008-04-15  Bruno Haible  <bruno@clisp.org>
25809
25810         * modules/mathl (configure.ac): Define module indicator.
25811
25812 2008-04-15  Bruno Haible  <bruno@clisp.org>
25813
25814         * lib/logl.c (logl): Remove unused variables.
25815
25816 2008-04-15  Bruno Haible  <bruno@clisp.org>
25817
25818         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
25819         fails.
25820
25821 2008-04-15  Bruno Haible  <bruno@clisp.org>
25822
25823         * lib/trim.c (trim2): Fix argument of isspace() macro.
25824
25825 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
25826
25827         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
25828         to 0.
25829         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
25830
25831 2008-04-14  Bruno Haible  <bruno@clisp.org>
25832
25833         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
25834         AC_LANG_PROGRAM argument.
25835         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
25836         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
25837         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
25838         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
25839         * m4/math_h.m4 (gl_MATH_H): Likewise.
25840         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
25841         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25842         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
25843         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
25844         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
25845         * m4/regex.m4 (gl_REGEX): Likewise.
25846         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
25847         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
25848         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25849         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
25850         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
25851         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
25852         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25853         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
25854
25855 2008-04-14  Jim Meyering  <meyering@redhat.com>
25856
25857         test-strtod: fix typos: s/abs/fabs/
25858         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
25859
25860 2008-04-13  Bruno Haible  <bruno@clisp.org>
25861
25862         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
25863         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
25864         module is also used and while not building the reloc-wrapper.
25865
25866 2008-04-13  Bruno Haible  <bruno@clisp.org>
25867
25868         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
25869
25870 2008-04-13  Bruno Haible  <bruno@clisp.org>
25871
25872         Fix AIX compilation failure introduced on 2008-04-02.
25873         * tests/test-frexp.c (exp): Undefine before redefining.
25874         * tests/test-frexpl.c (exp): Likewise.
25875
25876 2008-04-13  Bruno Haible  <bruno@clisp.org>
25877
25878         Work around a HP-UX stdio bug.
25879         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
25880         * tests/test-ftello.c (main): Likewise.
25881         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
25882         * doc/posix-functions/ftello.texi: Likewise.
25883
25884 2008-04-13  Bruno Haible  <bruno@clisp.org>
25885
25886         Make test-signbit pass on HP-UX/hppa.
25887         * tests/test-signbit.c (minus_zerol): New variable.
25888         (test_signbitl): Use it.
25889
25890 2008-04-13  Bruno Haible  <bruno@clisp.org>
25891
25892         Make truncl work on OSF/1 4.0.
25893         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
25894         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
25895         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
25896         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
25897         HAVE_DECL_TRUNCL.
25898         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
25899         HAVE_DECL_TRUNCL.
25900         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
25901
25902 2008-04-13  Bruno Haible  <bruno@clisp.org>
25903
25904         * lib/unictype.h: Remove trailing comma from enumeration definitions.
25905
25906 2008-04-13  Bruno Haible  <bruno@clisp.org>
25907
25908         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
25909         expression, so as to avoid HP-UX 11 cc compiler bug.
25910
25911 2008-04-13  Bruno Haible  <bruno@clisp.org>
25912
25913         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
25914
25915 2008-04-13  Bruno Haible  <bruno@clisp.org>
25916
25917         * lib/git-merge-changelog.c: Remove empty declaration outside of
25918         functions.
25919
25920 2008-04-13  Bruno Haible  <bruno@clisp.org>
25921
25922         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
25923
25924 2008-04-13  Bruno Haible  <bruno@clisp.org>
25925
25926         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
25927         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
25928         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
25929         also if it exists but lacks definitions of the SHUT_* macros.
25930         * modules/sys_socket (Description): Update.
25931         Reported by Elbert Pol <e.pol@chello.nl>.
25932
25933 2008-04-13  Bruno Haible  <bruno@clisp.org>
25934
25935         * lib/localcharset.c (OS2): Don't redefine if already defined.
25936         Reported by Elbert Pol <e.pol@chello.nl>.
25937
25938 2008-04-13  Bruno Haible  <bruno@clisp.org>
25939
25940         * lib/binary-io.h [__EMX__]: Include <io.h>.
25941         Reported by Elbert Pol <e.pol@chello.nl>.
25942
25943 2008-04-12  Bruno Haible  <bruno@clisp.org>
25944
25945         * lib/fpucw.h: Enable the definitions also for x86_64.
25946         Needed for NetBSD/x86_64.
25947         Reported by Thomas Klausner <tk@giga.or.at>.
25948
25949 2008-04-12  Bruno Haible  <bruno@clisp.org>
25950
25951         * tests/test-strtod.c: Include isnand.h.
25952         (main): Use isnand instead of isnan.
25953         Reported by Jim Meyering.
25954
25955 2008-04-12  Bruno Haible  <bruno@clisp.org>
25956
25957         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
25958         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
25959
25960 2008-04-12  Jim Meyering  <meyering@redhat.com>
25961
25962         * m4/math_h.m4 (gl_MATH_H): Fix typos.
25963
25964 2008-04-12  Bruno Haible  <bruno@clisp.org>
25965
25966         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
25967         Reported by Elbert Pol <e.pol@chello.nl>.
25968
25969 2008-04-12  Eric Blake  <ebb9@byu.net>
25970
25971         Work around Solaris 10 math.h bug.
25972         * m4/math_h.m4 (gl_MATH_H): Check for bug.
25973         (gl_MATH_H_DEFAULTS): Set up default.
25974         * modules/math (Makefile.am): Replace new indicators.
25975         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
25976         * tests/test-math.c (main): Test this.
25977         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
25978         * doc/posix-headers/math.texi (math.h): Mention bug.
25979         Reported by Nelson H. F. Beebe and Jim Meyering.
25980
25981 2008-04-11  Bruno Haible  <bruno@clisp.org>
25982
25983         Adapt to future versions of Apple GCC.
25984         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
25985         Reported by Peter O'Gorman <peter@pogma.com>.
25986
25987 2008-04-11  Bruno Haible  <bruno@clisp.org>
25988
25989         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
25990
25991 2008-04-11  Bruno Haible  <bruno@clisp.org>
25992
25993         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
25994
25995         * modules/getaddrinfo-tests (Makefile.am): Define
25996         test_getaddrinfo_LDADD.
25997
25998 2008-04-11  Bruno Haible  <bruno@clisp.org>
25999
26000         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
26001         (init): Fix syntax error.
26002         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
26003         is declared.
26004
26005 2008-04-11  Bruno Haible  <bruno@clisp.org>
26006
26007         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
26008         * modules/glob (Depends-on): Add stdbool.
26009
26010 2008-04-11  Bruno Haible  <bruno@clisp.org>
26011
26012         * lib/trim.c: Include <string.h>.
26013
26014 2008-04-11  Eric Blake  <ebb9@byu.net>
26015
26016         Avoid compile failure on OS/2.
26017         * lib/regex_internal.h (internal_function): Disable optimization
26018         on OS/2 (__EMX__), where it caused compiler error.
26019         Reported by Elbert Pol.
26020
26021 2008-04-11  Bruno Haible  <bruno@clisp.org>
26022
26023         Flush the standard error stream before aborting. Needed on mingw.
26024         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
26025         * tests/test-array_list.c (ASSERT): Likewise.
26026         * tests/test-array_oset.c (ASSERT): Likewise.
26027         * tests/test-avltree_list.c (ASSERT): Likewise.
26028         * tests/test-avltree_oset.c (ASSERT): Likewise.
26029         * tests/test-avltreehash_list.c (ASSERT): Likewise.
26030         * tests/test-binary-io.c (ASSERT): Likewise.
26031         * tests/test-byteswap.c (ASSERT): Likewise.
26032         * tests/test-c-ctype.c (ASSERT): Likewise.
26033         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
26034         * tests/test-c-strcasestr.c (ASSERT): Likewise.
26035         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
26036         * tests/test-c-strstr.c (ASSERT): Likewise.
26037         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
26038         * tests/test-canonicalize.c (ASSERT): Likewise.
26039         * tests/test-carray_list.c (ASSERT): Likewise.
26040         * tests/test-ceilf1.c (ASSERT): Likewise.
26041         * tests/test-ceilf2.c (ASSERT): Likewise.
26042         * tests/test-ceill.c (ASSERT): Likewise.
26043         * tests/test-count-one-bits.c (ASSERT): Likewise.
26044         * tests/test-fbufmode.c (ASSERT): Likewise.
26045         * tests/test-fflush2.c (ASSERT): Likewise.
26046         * tests/test-floorf1.c (ASSERT): Likewise.
26047         * tests/test-floorf2.c (ASSERT): Likewise.
26048         * tests/test-floorl.c (ASSERT): Likewise.
26049         * tests/test-fopen.c (ASSERT): Likewise.
26050         * tests/test-fpending.c (ASSERT): Likewise.
26051         * tests/test-fprintf-posix.c (ASSERT): Likewise.
26052         * tests/test-fpurge.c (ASSERT): Likewise.
26053         * tests/test-freadable.c (ASSERT): Likewise.
26054         * tests/test-freadahead.c (ASSERT): Likewise.
26055         * tests/test-freading.c (ASSERT): Likewise.
26056         * tests/test-freadptr.c (ASSERT): Likewise.
26057         * tests/test-freadptr2.c (ASSERT): Likewise.
26058         * tests/test-freadseek.c (ASSERT): Likewise.
26059         * tests/test-freopen.c (ASSERT): Likewise.
26060         * tests/test-frexp.c (ASSERT): Likewise.
26061         * tests/test-frexpl.c (ASSERT): Likewise.
26062         * tests/test-fseek.c (ASSERT): Likewise.
26063         * tests/test-fseeko.c (ASSERT): Likewise.
26064         * tests/test-fstrcmp.c (ASSERT): Likewise.
26065         * tests/test-ftell.c (ASSERT): Likewise.
26066         * tests/test-ftello.c (ASSERT): Likewise.
26067         * tests/test-func.c (ASSERT): Likewise.
26068         * tests/test-fwritable.c (ASSERT): Likewise.
26069         * tests/test-fwriting.c (ASSERT): Likewise.
26070         * tests/test-getdelim.c (ASSERT): Likewise.
26071         * tests/test-getline.c (ASSERT): Likewise.
26072         * tests/test-i-ring.c (ASSERT): Likewise.
26073         * tests/test-iconv-utf.c (ASSERT): Likewise.
26074         * tests/test-iconv.c (ASSERT): Likewise.
26075         * tests/test-isfinite.c (ASSERT): Likewise.
26076         * tests/test-isnand.c (ASSERT): Likewise.
26077         * tests/test-isnanf.c (ASSERT): Likewise.
26078         * tests/test-isnanl.h (ASSERT): Likewise.
26079         * tests/test-ldexpl.c (ASSERT): Likewise.
26080         * tests/test-linked_list.c (ASSERT): Likewise.
26081         * tests/test-linkedhash_list.c (ASSERT): Likewise.
26082         * tests/test-localename.c (ASSERT): Likewise.
26083         * tests/test-lseek.c (ASSERT): Likewise.
26084         * tests/test-mbscasecmp.c (ASSERT): Likewise.
26085         * tests/test-mbscasestr1.c (ASSERT): Likewise.
26086         * tests/test-mbscasestr2.c (ASSERT): Likewise.
26087         * tests/test-mbscasestr3.c (ASSERT): Likewise.
26088         * tests/test-mbscasestr4.c (ASSERT): Likewise.
26089         * tests/test-mbschr.c (ASSERT): Likewise.
26090         * tests/test-mbscspn.c (ASSERT): Likewise.
26091         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
26092         * tests/test-mbspbrk.c (ASSERT): Likewise.
26093         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
26094         * tests/test-mbsrchr.c (ASSERT): Likewise.
26095         * tests/test-mbsspn.c (ASSERT): Likewise.
26096         * tests/test-mbsstr1.c (ASSERT): Likewise.
26097         * tests/test-mbsstr2.c (ASSERT): Likewise.
26098         * tests/test-mbsstr3.c (ASSERT): Likewise.
26099         * tests/test-memchr2.c (ASSERT): Likewise.
26100         * tests/test-memmem.c (ASSERT): Likewise.
26101         * tests/test-open.c (ASSERT): Likewise.
26102         * tests/test-printf-frexp.c (ASSERT): Likewise.
26103         * tests/test-printf-frexpl.c (ASSERT): Likewise.
26104         * tests/test-printf-posix.c (ASSERT): Likewise.
26105         * tests/test-quotearg.c (ASSERT): Likewise.
26106         * tests/test-rbtree_list.c (ASSERT): Likewise.
26107         * tests/test-rbtree_oset.c (ASSERT): Likewise.
26108         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
26109         * tests/test-round1.c (ASSERT): Likewise.
26110         * tests/test-roundf1.c (ASSERT): Likewise.
26111         * tests/test-roundl.c (ASSERT): Likewise.
26112         * tests/test-signbit.c (ASSERT): Likewise.
26113         * tests/test-sleep.c (ASSERT): Likewise.
26114         * tests/test-snprintf-posix.c (ASSERT): Likewise.
26115         * tests/test-snprintf.c (ASSERT): Likewise.
26116         * tests/test-sprintf-posix.c (ASSERT): Likewise.
26117         * tests/test-stat-time.c (ASSERT): Likewise.
26118         * tests/test-strcasestr.c (ASSERT): Likewise.
26119         * tests/test-strerror.c (ASSERT): Likewise.
26120         * tests/test-striconv.c (ASSERT): Likewise.
26121         * tests/test-striconveh.c (ASSERT): Likewise.
26122         * tests/test-striconveha.c (ASSERT): Likewise.
26123         * tests/test-strsignal.c (ASSERT): Likewise.
26124         * tests/test-strstr.c (ASSERT): Likewise.
26125         * tests/test-strtod.c (ASSERT): Likewise.
26126         * tests/test-trunc1.c (ASSERT): Likewise.
26127         * tests/test-trunc2.c (ASSERT): Likewise.
26128         * tests/test-truncf1.c (ASSERT): Likewise.
26129         * tests/test-truncf2.c (ASSERT): Likewise.
26130         * tests/test-truncl.c (ASSERT): Likewise.
26131         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
26132         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
26133         * tests/test-vasnprintf.c (ASSERT): Likewise.
26134         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
26135         * tests/test-vasprintf.c (ASSERT): Likewise.
26136         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
26137         * tests/test-vprintf-posix.c (ASSERT): Likewise.
26138         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
26139         * tests/test-vsnprintf.c (ASSERT): Likewise.
26140         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
26141         * tests/test-wcwidth.c (ASSERT): Likewise.
26142         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
26143         * tests/test-xprintf-posix.c (ASSERT): Likewise.
26144         * tests/test-xvasprintf.c (ASSERT): Likewise.
26145         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
26146         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
26147         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
26148         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
26149         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
26150         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
26151         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
26152         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
26153         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
26154         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
26155         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
26156         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
26157         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
26158         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
26159         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
26160         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
26161         * tests/unictype/test-block_list.c (ASSERT): Likewise.
26162         * tests/unictype/test-block_of.c (ASSERT): Likewise.
26163         * tests/unictype/test-block_test.c (ASSERT): Likewise.
26164         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
26165         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
26166         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
26167         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
26168         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
26169         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
26170         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
26171         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
26172         * tests/unictype/test-combining.c (ASSERT): Likewise.
26173         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
26174         * tests/unictype/test-digit.c (ASSERT): Likewise.
26175         * tests/unictype/test-mirror.c (ASSERT): Likewise.
26176         * tests/unictype/test-numeric.c (ASSERT): Likewise.
26177         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
26178         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
26179         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
26180         * tests/unictype/test-scripts.c (ASSERT): Likewise.
26181         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
26182         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
26183         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
26184         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
26185         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
26186         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
26187         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
26188         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
26189         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
26190         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
26191         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
26192         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
26193         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
26194         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
26195         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
26196         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
26197         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
26198         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
26199         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
26200         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
26201         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
26202         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
26203         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
26204         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
26205         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
26206         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
26207         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
26208         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
26209         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
26210         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
26211         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
26212         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
26213         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
26214         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
26215         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
26216         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
26217         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
26218         Reported by Eric Blake.
26219
26220 2008-04-11  Bruno Haible  <bruno@clisp.org>
26221
26222         * lib/wchar.in.h: Tweak comment.
26223
26224 2008-04-11  Bruno Haible  <bruno@clisp.org>
26225
26226         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
26227         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
26228         gl_COMMON.
26229         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
26230
26231 2008-04-11  Bruno Haible  <bruno@clisp.org>
26232
26233         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
26234
26235 2008-04-11  Simon Josefsson  <simon@josefsson.org>
26236
26237         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
26238         of attempting to use non-existing /dev/*random.  Based on patch
26239         from Adam Strzelecki <ono@java.pl> in
26240         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
26241
26242 2008-04-08  Bruno Haible  <bruno@clisp.org>
26243
26244         Add tentative support for emx+gcc.
26245         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
26246         * lib/fpurge.c (fpurge): Likewise.
26247         * lib/freadable.c (freadable): Likewise.
26248         * lib/freadahead.c (freadahead): Likewise.
26249         * lib/freading.c (freading): Likewise.
26250         * lib/freadptr.c (freadptr): Likewise.
26251         * lib/freadseek.c (freadptrinc): Likewise.
26252         * lib/fseeko.c (rpl_fseeko): Likewise.
26253         * lib/fseterr.c (fseterr): Likewise.
26254         * lib/fwritable.c (fwritable): Likewise.
26255         * lib/fwriting.c (fwriting): Likewise.
26256         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
26257
26258 2008-04-09  Eric Blake  <ebb9@byu.net>
26259
26260         Avoid some autoconf warnings.
26261         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
26262         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
26263         * m4/afs.m4 (gl_AFS): Likewise.
26264         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
26265         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
26266         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
26267         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
26268         (gl_INTEGER_TYPE_SUFFIX): Likewise.
26269         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
26270         (AC_CHECK_DECLS_ONCE): Likewise.
26271         Rename file...
26272         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
26273         gnulib-tool requires autoconf 2.59 or better.
26274         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
26275
26276 2008-04-08  Eric Blake  <ebb9@byu.net>
26277
26278         Use 'git describe --match' if present (added in git 1.5.5).
26279         * build-aux/git-version-gen: Limit result to tags that match 'v*'
26280         if possible.
26281
26282 2008-04-08  Bruno Haible  <bruno@clisp.org>
26283
26284         Add tentative support for OpenServer.
26285         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
26286         _ptr, _cnt.
26287         * lib/fpurge.c (fpurge): Likewise.
26288         * lib/freadable.c (freadable): Likewise.
26289         * lib/freadahead.c (freadahead): Likewise.
26290         * lib/freading.c (freading): Likewise.
26291         * lib/freadptr.c (freadptr): Likewise.
26292         * lib/freadseek.c (freadptrinc): Likewise.
26293         * lib/fseeko.c (rpl_fseeko): Likewise.
26294         * lib/fseterr.c (fseterr): Likewise.
26295         * lib/fwritable.c (fwritable): Likewise.
26296         * lib/fwriting.c (fwriting): Likewise.
26297         Reported by Roger Cornelius <rac@tenzing.org> and
26298         Brian K. White <brian@aljex.com>.
26299
26300 2008-04-06  Jim Meyering  <meyering@redhat.com>
26301
26302         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
26303
26304 2008-04-06  Bruno Haible  <bruno@clisp.org>
26305
26306         Avoid possible error with non-ASCII bytes in UTF-8 locales.
26307         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
26308         * tests/test-printf-posix.sh: Likewise.
26309         * tests/test-vfprintf-posix.sh: Likewise.
26310         * tests/test-vprintf-posix.sh: Likewise.
26311         * tests/test-xprintf-posix.sh: Likewise.
26312
26313 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26314
26315         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
26316         hide error from 'ls', needed on OS/2.
26317         Report by Elbert Pol <elbert.pol@gmail.com>.
26318
26319 2008-04-04  Eric Blake  <ebb9@byu.net>
26320
26321         Make test-fseeko.c failures meaningful.
26322         * tests/test-fseeko.c: Print line number on failure.
26323         * tests/test-fseek.c: Likewise.
26324         Reported by Nelson H. F. Beebe.
26325
26326         Improve strtod bug detection check.
26327         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
26328         required for Solaris 10.
26329         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
26330
26331 2008-04-04  Bruno Haible  <bruno@clisp.org>
26332
26333         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
26334         by m4/setenv.m4.
26335
26336 2008-04-03  Eric Blake  <ebb9@byu.net>
26337
26338         Ensure sane .version contents.
26339         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
26340         version string.
26341         * build-aux/git-version-gen: Improve documentation.
26342
26343         Make GNU make output nicer.
26344         * top/GNUmakefile [!_have-Makefile]: Add dependency on
26345         MAKECMDGOALS to enforce message for all command line targets.  Set
26346         srcdir for use in maint.mk.
26347
26348         Another maintainer tweak.
26349         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
26350         a target that regenerates version.
26351
26352 2008-04-03  Jim Meyering  <meyering@redhat.com>
26353
26354         vc-list-files: don't cause coreutils "make po-check" failure
26355         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
26356
26357 2008-04-03  Eric Blake  <ebb9@byu.net>
26358
26359         Allow VPATH usage of vc-list-files.
26360         * build-aux/vc-list-files (scriptversion): Add timestamp.
26361         (options): Add --help, --version, -C.
26362         (CVS): Support installed cvsu.
26363
26364 2008-04-02  Bruno Haible  <bruno@clisp.org>
26365
26366         Avoid some "statement with no effect" warnings from gcc.
26367         * tests/test-wctype.c (main): Explicitly ignore unused values.
26368         Reported by Jim Meyering.
26369
26370 2008-04-02  Jim Meyering  <meyering@redhat.com>
26371
26372         Avoid some warnings from "gcc -Wshadow".
26373         * tests/test-frexp.c (exp): Define to a different identifier.
26374         * tests/test-frexpl.c (exp): Likewise.
26375
26376 2008-04-03  Jim Meyering  <meyering@redhat.com>
26377
26378         bootstrap: remove dangling *.[ch] symlinks from lib
26379         * build-aux/bootstrap [dangling symlink removal]: Move find's
26380         -depth option to precede all others, to avoid a warning.
26381         Remove *.[ch] files too, and from "$source_base" (usually lib/).
26382
26383 2008-04-02  Bruno Haible  <bruno@clisp.org>
26384
26385         Avoid some warnings from "gcc -Wshadow".
26386         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
26387         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
26388         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
26389         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
26390         Reported by Jim Meyering.
26391
26392 2008-04-01  Bruno Haible  <bruno@clisp.org>
26393
26394         Fix test to work on IRIX 6.5 with cc.
26395         * tests/test-math.c (numeric_equal): New function.
26396         (main): Use it.
26397
26398 2008-04-01  Bruno Haible  <bruno@clisp.org>
26399
26400         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
26401
26402 2008-04-01  Bruno Haible  <bruno@clisp.org>
26403
26404         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
26405         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26406         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
26407         (Depends-on): Remove math.
26408
26409         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
26410         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26411         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
26412         (Depends-on): Remove math.
26413
26414         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
26415         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26416         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
26417         (Depends-on): Remove math.
26418         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
26419         (Depends-on): Remove math.
26420
26421         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
26422         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26423         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
26424         (Depends-on): Remove math.
26425         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
26426         (Depends-on): Remove math.
26427
26428         * tests/test-round1.c: Include nan.h.
26429         (main): Use NaNd instead of NAN.
26430         * modules/round-tests (Files): Add tests/nan.h.
26431
26432         * tests/test-trunc1.c: Include nan.h.
26433         (main): Use NaNd instead of NAN.
26434         * modules/trunc-tests (Files): Add tests/nan.h.
26435
26436         * tests/test-roundf1.c: Include nan.h.
26437         (main): Use NaNf instead of NAN.
26438         * modules/roundf-tests (Files): Add tests/nan.h.
26439
26440         * tests/test-truncf1.c: Include nan.h.
26441         (main): Use NaNf instead of NAN.
26442         * modules/truncf-tests (Files): Add tests/nan.h.
26443
26444         * tests/test-ceilf1.c: Include nan.h.
26445         (main): Use NaNf instead of NAN.
26446         * modules/ceilf-tests (Files): Add tests/nan.h.
26447
26448         * tests/test-floorf1.c: Include nan.h.
26449         (main): Use NaNf instead of NAN.
26450         * modules/floorf-tests (Files): Add tests/nan.h.
26451
26452         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
26453         (main): Use NaNf instead of NAN.
26454         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
26455
26456         * tests/test-isnand.c: Include nan.h instead of <math.h>.
26457         (main): Use NaNd instead of NAN.
26458         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
26459
26460         * tests/test-frexp.c: Include nan.h.
26461         (main): Use NaNd instead of NAN.
26462         * modules/frexp-tests (Files): Add tests/nan.h.
26463
26464         * lib/isnan.c: Don't include <math.h>.
26465         (FUNC): Don't use NAN macro.
26466         * modules/isnand-nolibm (Depends-on): Remove math.
26467         * modules/isnanf-nolibm (Depends-on): Remove math.
26468         * modules/isnanl (Depends-on): Remove math.
26469         * modules/isnanl-nolibm (Depends-on): Remove math.
26470
26471         * tests/nan.h: New file.
26472
26473 2008-04-01  Eric Blake  <ebb9@byu.net>
26474
26475         Fix typos.
26476         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
26477         values to be the right type.
26478
26479         For now, cater to gnulib strtod inaccuracies.
26480         * tests/test-strtod.c (main): Allow 1-ulp error on expected
26481         fractional results.  While not as nice from a QoI perspective, it
26482         is a quicker patch than correctly implementing decimal to binary
26483         rounding.
26484
26485 2008-03-31  Eric Blake  <ebb9@byu.net>
26486
26487         Guarantee a definition of NAN.
26488         * lib/math.in.h (NAN): Define if missing.
26489         * tests/test-math.c (main): Test it.
26490         * doc/posix-headers/math.texi (math.h): Document this.
26491         * lib/isnan.c (rpl_isnand): Use it.
26492         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
26493         * tests/test-floorf1.c (NaN): Likewise.
26494         * tests/test-frexp.c (NaN): Likewise.
26495         * tests/test-isnand.c (NaN): Likewise.
26496         * tests/test-isnanf.c (NaN): Likewise.
26497         * tests/test-round1.c (NaN): Likewise.
26498         * tests/test-roundf1.c (NaN): Likewise.
26499         * tests/test-snprintf-posix.h (NaN): Likewise.
26500         * tests/test-sprintf-posix.h (NaN): Likewise.
26501         * tests/test-trunc1.c (NaN): Likewise.
26502         * tests/test-truncf1.c (NaN): Likewise.
26503         * tests/test-vasnprintf-posix.c (NaN): Likewise.
26504         * tests/test-vasprintf-posix.c (NaN): Likewise.
26505         * modules/isnand-nolibm (Depends-on): Add math.
26506         * modules/isnanf-nolibm (Depends-on): Likewise.
26507         * modules/isnanl (Depends-on): Likewise.
26508         * modules/isnanl-nolibm (Depends-on): Likewise.
26509         * modules/snprintf-posix-tests (Depends-on): Likewise.
26510         * modules/sprintf-posix-tests (Depends-on): Likewise.
26511         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
26512         * modules/vsprintf-posix-tests (Depends-on): Likewise.
26513         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
26514         * modules/vasprintf-posix-tests (Depends-on): Likewise.
26515
26516 2008-03-31  Bruno Haible  <bruno@clisp.org>
26517
26518         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
26519         * doc/posix-functions/strtod.texi: Likewise.
26520
26521 2008-03-31  Bruno Haible  <bruno@clisp.org>
26522
26523         * tests/test-strtod.c (main): Don't use C99 syntax.
26524
26525 2008-03-31  Bruno Haible  <bruno@clisp.org>
26526
26527         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
26528         Reported by Eric Blake.
26529
26530 2008-03-31  Jim Meyering  <meyering@redhat.com>
26531
26532         Don't compare actual signbit return values.
26533         * tests/test-strtod.c (main): Rather, compare only their
26534         zero/non-zero nature.
26535
26536 2008-03-31  Eric Blake  <ebb9@byu.net>
26537
26538         More strtod documentation.
26539         * doc/posix-functions/strtod.texi (strtod): Interpret more test
26540         failures as distinct bugs.
26541
26542 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
26543
26544         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
26545         Problem reported by Erik Benada in
26546         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
26547
26548 2008-03-30  Bruno Haible  <bruno@clisp.org>
26549
26550         * tests/test-strtod.c: Add comments about which assertion fails on which
26551         platform.
26552         * doc/posix-functions/strtod.texi: Add info about many more platforms.
26553
26554 2008-03-30  Eric Blake  <ebb9@byu.net>
26555
26556         Test signbit behavior on zeros.
26557         * tests/test-signbit.c (test_signbitf): Add tests for zero.
26558         (test_signbitd, test_signbitl): Likewise.
26559
26560         More strtod touchups.
26561         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
26562         sign of negative underflow, for now.  Use .5, not .1.
26563         * doc/posix-functions/strtod.texi (strtod): Mention these
26564         limitations.
26565         Reported by Jim Meyering.
26566
26567 2008-03-30  Bruno Haible  <bruno@clisp.org>
26568
26569         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
26570         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
26571
26572 2008-03-30  Bruno Haible  <bruno@clisp.org>
26573
26574         Avoid failure when attempting to return empty iconv results on some
26575         platforms.
26576         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
26577         allocation, don't report ENOMEM when the resulting string is empty.
26578
26579 2008-03-30  Bruno Haible  <bruno@clisp.org>
26580
26581         Fix buffer overrun.
26582         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
26583         Don't consider the width for tmp_length. Check count against tmp_length
26584         before doing the padding. Ensure enough allocation during padding.
26585
26586 2008-03-30  Eric Blake  <ebb9@byu.net>
26587
26588         strtod touchups.
26589         * lib/strtod.c (strtod): Avoid compiler warnings.
26590         Reported by Jim Meyering.
26591
26592 2008-03-30  Bruno Haible  <bruno@clisp.org>
26593
26594         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
26595         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
26596         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
26597         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
26598         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
26599         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
26600         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
26601         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
26602
26603         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
26604         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
26605         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
26606         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
26607         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
26608         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
26609         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
26610         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
26611
26612         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
26613         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
26614         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
26615         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
26616         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
26617         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
26618         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
26619         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
26620
26621         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
26622         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
26623
26624         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
26625         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
26626
26627         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
26628         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
26629
26630         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
26631         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
26632         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
26633
26634         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
26635         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
26636         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
26637
26638         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
26639         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
26640         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
26641
26642         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
26643         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
26644         * modules/vasprintf (Depends-on): Add EOVERFLOW.
26645
26646         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
26647         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
26648         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
26649         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
26650         (Depends-on): Add EOVERFLOW.
26651         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
26652         (Depends-on): Add EOVERFLOW.
26653         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
26654         (Depends-on): Add EOVERFLOW.
26655         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
26656         (Depends-on): Add EOVERFLOW.
26657         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
26658         (Depends-on): Add EOVERFLOW.
26659         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
26660         (Depends-on): Add EOVERFLOW.
26661         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
26662         (Depends-on): Add EOVERFLOW.
26663         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
26664         (Depends-on): Add EOVERFLOW.
26665
26666         * lib/sprintf.c (EOVERFLOW): Remove fallback.
26667         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
26668         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
26669
26670         * lib/snprintf.c (EOVERFLOW): Remove fallback.
26671         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
26672         * modules/snprintf (Depends-on): Add EOVERFLOW.
26673
26674         * lib/poll.c (EOVERFLOW): Remove fallback.
26675         * modules/poll (Depends-on): Add EOVERFLOW.
26676
26677         * lib/getugroups.c (EOVERFLOW): Remove fallback.
26678         * modules/getugroups (Depends-on): Add EOVERFLOW.
26679
26680         * lib/getdelim.c (EOVERFLOW): Remove fallback.
26681         * modules/getdelim (Depends-on): Add EOVERFLOW.
26682
26683         * lib/ftell.c (EOVERFLOW): Remove fallback.
26684         * modules/ftell (Depends-on): Add EOVERFLOW.
26685
26686         * lib/fprintf.c (EOVERFLOW): Remove fallback.
26687         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
26688         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
26689
26690         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
26691
26692         * modules/EOVERFLOW-tests: New file.
26693         * tests/test-EOVERFLOW.c: New file.
26694
26695         * modules/EOVERFLOW: New file.
26696         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
26697
26698 2008-03-30  Bruno Haible  <bruno@clisp.org>
26699
26700         Fix bug introduced on 2007-06-10.
26701         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
26702         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
26703
26704 2008-03-30  Bruno Haible  <bruno@clisp.org>
26705
26706         Improve freadseek's efficiency after ungetc.
26707         * lib/freadseek.c: Include freadahead.h.
26708         (freadptrinc): New function, extracted from freadseek.
26709         (freadseek): Use it in a loop. Use freadahead to determine the number
26710         of loop iterations.
26711         * modules/freadseek (Depends-on): Add freadahead.
26712         (configure.ac): Require AC_C_INLINE.
26713
26714 2008-03-30  Bruno Haible  <bruno@clisp.org>
26715
26716         * lib/freadseek.c (freadseek): Don't ignore the return value of
26717         freadptr.
26718
26719 2008-03-29  Eric Blake  <ebb9@byu.net>
26720
26721         Add hex float support.
26722         * modules/strtod (Depends-on): Add c-ctype.
26723         (Link): Mention POW_LIB.
26724         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
26725         whitespace between 'e' and exponent.
26726         * tests/test-strtod.c (main): Enable hex float tests.
26727         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
26728         now provides.
26729
26730         Document various strtod bugs, with some fixes.
26731         * doc/posix-functions/strtod.texi (strtod): Document bugs with
26732         "-0x", "inf", "nan", and hex constants.
26733         * doc/posix-functions/atof.texi (atof): Likewise.
26734         * modules/stdlib (Makefile.am): Support strtod.
26735         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
26736         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
26737         detect additional strtod bugs.
26738         * lib/stdlib.in.h (rpl_strtod): Add declarations.
26739         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
26740         bool where appropriate.  Parse 'inf' and 'nan'.
26741         * tests/test-strtod.c: New file.
26742         * modules/strtod (Depends-on): Add stdbool, stdlib.
26743         (configure.ac): Turn on module indicator.
26744         * modules/strtod-tests: New module.
26745
26746 2008-03-29  Eric Blake  <ebb9@byu.net>
26747
26748         Fix ftell on mingw.
26749         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
26750         * modules/ftell-tests (Depends-on): Add binary-io.
26751         * modules/ftello-tests (Depends-on): Likewise.
26752         * tests/test-ftell.c (main): Enhance test to cover behavior after
26753         ungetc.  Enforce binary mode.
26754         * tests/test-ftello.c (main): Likewise.
26755
26756         Pass test-freadseek on cygwin.
26757         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
26758         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
26759         ungetc buffer.
26760
26761         * tests/test-fflush2.c (main): Fix typo.
26762
26763 2008-03-29  Bruno Haible  <bruno@clisp.org>
26764
26765         * tests/test-fflush2.c (main): Temporarily disable the contents of
26766         this test.
26767         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
26768         Reported by Eric Blake.
26769
26770 2008-03-28  Simon Josefsson  <simon@josefsson.org>
26771
26772         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
26773         (GC_SHA224_DIGEST_SIZE): Add.
26774
26775         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
26776         (gc_hash_digest_length): Likewise.
26777         (gc_hash_buffer): Likewise.
26778
26779 2008-03-25  Bruno Haible  <bruno@clisp.org>
26780
26781         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
26782         detail which gettext release to use.
26783         Reported by Simon Josefsson.
26784
26785 2008-03-26  Jim Meyering  <meyering@redhat.com>
26786
26787         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
26788         * modules/gnumakefile (clean-GNUmakefile): Also, use
26789         test ... && ... || : syntax rather than if-then ... fi.
26790
26791         gnumakefile: Don't double-quote-expand $(VPATH) value.
26792         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
26793
26794 2008-03-24  Eric Blake  <ebb9@byu.net>
26795
26796         Alter GNUmakefile to install into top directory.
26797         * modules/maintainer-makefile: Split, and add dependency...
26798         * modules/gnumakefile: to this new module.
26799         * build-aux/GNUmakefile: Move...
26800         * top/GNUmakefile: ...here.
26801         * build-aux/maint.mk: Move...
26802         * top/maint.mk: ...here.
26803         * MODULES.html.sh (Support for maintaining...): Document new
26804         module.
26805
26806 2008-03-23  Bruno Haible  <bruno@clisp.org>
26807
26808         * gnulib-tool: New options --vc-files, --no-vc-files.
26809         (func_usage): Document them.
26810         (vc_files): New variable.
26811         (func_import): Consider vc_files.
26812         (func_create_testdir): Set vc_files to empty.
26813         Suggested by Jim Meyering and Karl Berry.
26814
26815 2008-03-23  Bruno Haible  <bruno@clisp.org>
26816
26817         Fix regex compilation error on HP-UX 11.
26818         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
26819         * modules/regex (Files): Add m4/mbstate_t.m4.
26820         Reported by Ton Voon <ton.voon@altinity.com>.
26821
26822 2008-03-23  Bruno Haible  <bruno@clisp.org>
26823
26824         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
26825
26826 2008-03-23  Eric Blake  <ebb9@byu.net>
26827             Bruno Haible  <bruno@clisp.org>
26828
26829         Install files from top/ in the destination directory.
26830         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
26831         augmentation also for the files from top/.
26832         (func_import, func_create_testdir): Rewrite file names:
26833         top/filename -> filename.
26834
26835 2008-03-23  Bruno Haible  <bruno@clisp.org>
26836
26837         Tweak "gnulib --version" output.
26838         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
26839
26840 2008-03-23  Bruno Haible  <bruno@clisp.org>
26841
26842         Tweak "gnulib --version" output.
26843         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
26844         rather than contents of ChangeLog, when possible.
26845
26846 2008-03-21  Eric Blake  <ebb9@byu.net>
26847
26848         More --version tweaks.
26849         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
26850         date of last ChangeLog entry.
26851
26852 2008-03-21  Jim Meyering  <meyering@redhat.com>
26853
26854         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
26855
26856 2008-03-20  Eric Blake  <ebb9@byu.net>
26857
26858         VPATH fix.
26859         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
26860
26861 2008-03-20  Simon Josefsson  <simon@josefsson.org>
26862
26863         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
26864         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
26865
26866 2008-03-20  Eric Blake  <ebb9@byu.net>
26867
26868         Sync GNUmakefile with coreutils.
26869         * build-aux/GNUmakefile (have-Makefile): Rename...
26870         (_have-Makefile): ...to this, for namespace consideration.
26871         (GNUmakefile.cfg): Include, if present.
26872         (_autoreconf): Define a default.
26873         (_is-dist-target): New rule for rebuilds to pick up intra-release
26874         version.
26875         (maint-cfg.mk): Rename...
26876         (cfg.mk): ...to this.
26877
26878 2008-03-18  Jim Meyering  <meyering@redhat.com>
26879
26880         New script and module: mktempd
26881         * MODULES.html.sh (maint+release support): Add mktempd.
26882         * build-aux/mktempd: New file.
26883         * modules/mktempd: New file.
26884
26885 2008-03-15  Jim Meyering  <meyering@redhat.com>
26886
26887         Undo last change.
26888         * lib/sha1.c, lib/md5.c: 63 != ~63.
26889         Reported by Andreas Schwab.
26890
26891         sha1.c, md5.c: Hoist a redundant expression.
26892         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
26893         "ctx->buflen" only once, before calling *_process_block.
26894         * lib/md5.c (md5_process_bytes): Likewise.
26895
26896 2008-03-14  Eric Blake  <ebb9@byu.net>
26897
26898         Bump copyright year in files generated by gnulib-tool.
26899         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
26900         gnulib-tool, rather than hard-coding it.
26901
26902         Fix 'gnulib-tool --version' output to work with git.
26903         * gnulib-tool (func_gnulib_dir): New function, extracted from...
26904         (startup): ...here.
26905         (func_version): Use it to invoke git-version-gen, rather than
26906         relying on CVS keyword expansion.  Modernize wording.
26907         (cvsdatestamp, last_checkin_date, version): Kill unused
26908         variables.
26909
26910 2008-03-12  Jim Meyering  <meyering@redhat.com>
26911
26912         Recognize optional cast of the argument to free.
26913         * build-aux/useless-if-before-free: Update regexps.
26914
26915         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
26916
26917 2008-03-11  Bruno Haible  <bruno@clisp.org>
26918
26919         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
26920         by a single package.
26921         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
26922         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
26923         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
26924         Reported by Sam Steingold <sds@gnu.org>.
26925
26926 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
26927
26928         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
26929         repositories.
26930
26931 2008-03-11  Bruno Haible  <bruno@clisp.org>
26932
26933         Avoid conflicts between local macro definitions.
26934         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
26935         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
26936
26937 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
26938             Bruno Haible  <bruno@clisp.org>
26939
26940         Make va_copy work with some version of xlc on AIX 5.1.
26941         * lib/stdarg.in.h: New file.
26942         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
26943         On AIX, use a <stdarg.h> file substitute.
26944         * modules/stdarg (Files): Add lib/stdarg.in.h.
26945         (Depends-on): Add include_next.
26946         (Makefile.am): Build a stdarg.h substitute if requested.
26947         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
26948
26949 2008-03-10  Bruno Haible  <bruno@clisp.org>
26950
26951         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
26952         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
26953         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
26954
26955 2008-03-10  Bruno Haible  <bruno@clisp.org>
26956
26957         * modules/stdlib (Depends-on): Add include_next, remove
26958         absolute-header.
26959
26960 2008-03-09  Bruno Haible  <bruno@clisp.org>
26961
26962         * lib/freadahead.h (freadahead): Document more precisely.
26963         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
26964         the sum of both buffer sizes.
26965         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
26966         * NEWS: Document the change.
26967
26968 2008-03-09  Bruno Haible  <bruno@clisp.org>
26969
26970         Extend freadptr to return also the buffer size.
26971         * lib/freadptr.h (freadptr): Add sizep argument.
26972         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
26973         (freadptr): Add sizep argument. Determine buffer size like freadahead
26974         does.
26975         * tests/test-freadptr.c: Don't include freadahead.h.
26976         (main): Adapt for new calling convention of freadptr.
26977         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
26978         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
26979         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
26980         tests/test-freadptr2.sh.
26981         (Depends): Remove freadahead.
26982         (TESTS): Add test-freadptr2.sh.
26983         (check_PROGRAMS): Add test-freadptr2.
26984
26985 2008-03-09  Bruno Haible  <bruno@clisp.org>
26986
26987         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
26988         Report and solution by Simon Josefsson.
26989
26990 2008-03-06  Bruno Haible  <bruno@clisp.org>
26991
26992         Make fflush after ungetc work on BSD platforms.
26993         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
26994         * tests/test-fflush2.c: New file.
26995         * tests/test-fflush2.sh: New file.
26996         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
26997         tests/test-fflush2.c.
26998         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
26999         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
27000
27001 2008-03-06  Eric Blake  <ebb9@byu.net>
27002
27003         Likewise for ftello.
27004         * modules/ftello (Dependencies): Add extensions.
27005         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
27006
27007 2008-03-06  Bruno Haible  <bruno@clisp.org>
27008
27009         * modules/fseeko (Dependencies): Add extensions.
27010         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
27011         Needed on glibc systems.
27012
27013 2008-03-06  Bruno Haible  <bruno@clisp.org>
27014
27015         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
27016         email address.
27017         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27018
27019 2008-03-06  Bruno Haible  <bruno@clisp.org>
27020
27021         * users.txt: Add libgnupdf.
27022
27023 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27024
27025         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
27026         (Header File Substitutes, Function Substitutes,
27027         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
27028         (Build robot for gnulib): Fix typo.
27029
27030 2008-03-06  Bruno Haible  <bruno@clisp.org>
27031
27032         * doc/gnulib-tool.texi (VCS Issues): Small updates.
27033         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27034
27035 2008-03-06  Bruno Haible  <bruno@clisp.org>
27036
27037         * doc/func.texi: New file, extracted from doc/gnulib.texi.
27038         * doc/gnulib.texi: Include it.
27039
27040 2008-03-06  Simon Josefsson  <simon@josefsson.org>
27041
27042         * modules/func (License): Change license to unlimited; there was
27043         no LGPL parts in the module anyway.
27044
27045 2008-03-06  Simon Josefsson  <simon@josefsson.org>
27046
27047         * modules/__func__: Renamed to modules/func.
27048         * modules/__func__-tests: Renamed to modules/func-tests.
27049         * tests/test-__func__.c: Renamed to tests/test-func.c.
27050         * m4/__func__.m4: Renamed to m4/func.m4.
27051         * doc/gnulib.texi (__func__): Section renamed to func.
27052         Suggested by Eric Blake <ebb9@byu.net>.
27053
27054 2008-03-06  Simon Josefsson  <simon@josefsson.org>
27055
27056         * doc/gnulib.texi (__func__): Use C99 terminology when talking
27057         about __func__.  Make example self-contained.  Suggested by Eric
27058         Blake <ebb9@byu.net>.
27059
27060         * tests/test-__func__.c (main): Avoid extraneous () around __func.
27061         Suggested by Eric Blake <ebb9@byu.net>.
27062
27063 2008-03-06  Simon Josefsson  <simon@josefsson.org>
27064
27065         * modules/__func__: New file.
27066         * modules/__func__-tests: New file.
27067         * tests/test-__func__.c: New file.
27068         * m4/__func__.m4: New file.
27069         * doc/gnulib.texi (__func__): Document __func__ module.
27070
27071 2008-03-05  Simon Josefsson  <simon@josefsson.org>
27072
27073         * modules/byteswap (License): Re-license as LGPLv2+.
27074
27075 2008-03-05  Simon Josefsson  <simon@josefsson.org>
27076
27077         * doc/Makefile: Add pdf target.
27078
27079 2008-03-05  Simon Josefsson  <simon@josefsson.org>
27080
27081         * modules/inline (License): Use 'unlimited', since there are only
27082         *.m4 files in this module.
27083
27084 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
27085             Bruno Haible  <bruno@clisp.org>
27086
27087         Add support for HP C 7.1 on OpenVMS 8.3.
27088         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
27089
27090 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
27091
27092         Update VMS specifics.
27093         * lib/getopt.c [VMS]: Remove include of unixlib.h.
27094
27095 2008-03-02  Jim Meyering  <meyering@redhat.com>
27096
27097         Remove the last dependency on the "free" module.
27098         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
27099         Reported by Bob Proulx.
27100
27101         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
27102
27103         Remove useless "if" tests before free.  Deprecate "free" module.
27104         * doc/posix-functions/free.texi: Mention that this
27105         module is no longer useful.
27106         * modules/free (Notice): Say this module is obsolete.
27107         * modules/readutmp (Depends-on): Remove free.
27108         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
27109         * lib/putenv.c (putenv): Likewise.
27110         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
27111         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
27112         * tests/test-c-strcasestr.c (main): Likewise.
27113         * tests/test-c-strstr.c (main): Likewise.
27114         * tests/test-mbscasestr1.c (main): Likewise.
27115         * tests/test-mbscasestr2.c (main): Likewise.
27116         * tests/test-mbsstr1.c (main): Likewise.
27117         * tests/test-mbsstr2.c (main): Likewise.
27118         * tests/test-memmem.c (main): Likewise.
27119         * tests/test-strcasestr.c (main): Likewise.
27120         * tests/test-striconv.c (main): Likewise.
27121         * tests/test-striconveh.c (main): Likewise.
27122         * tests/test-striconveha.c (main): Likewise.
27123         * tests/test-strstr.c (main): Likewise.
27124
27125         * build-aux/git-version-gen: Adjust a comment and the Usage string.
27126
27127         bootstrap: sync from coreutils again
27128         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
27129
27130 2008-03-01  Jim Meyering  <meyering@redhat.com>
27131
27132         bootstrap: sync from coreutils
27133         * build-aux/bootstrap (update_po_files): Copy a .po file into place
27134         also when the target doesn't exist.
27135
27136 2008-03-01  Eric Blake  <ebb9@byu.net>
27137
27138         Fix bugs in last patch.
27139         * lib/memchr2.c (memchr2): Fix typo.
27140         * tests/test-memchr2.c: Test previous bug, and don't use GNU
27141         extension.
27142         Reported by Bruce Korb.
27143
27144         New module 'memchr2'.
27145         * modules/memchr2: New file.
27146         * modules/memchr2-tests: Likewise.
27147         * lib/memchr2.h: Likewise.
27148         * lib/memchr2.c: Likewise, based on memchr.c.
27149         * tests/test-memchr2.c: New test.
27150         * MODULES.html.sh (String handling): Add memchr2.
27151
27152 2008-02-29  Bruno Haible  <bruno@clisp.org>
27153
27154         * modules/freadseek-tests: New file.
27155         * tests/test-freadseek.sh: New file.
27156         * tests/test-freadseek.c: New file.
27157
27158         New module 'freadseek'.
27159         * modules/freadseek: New file.
27160         * lib/freadseek.h: New file.
27161         * lib/freadseek.c: New file.
27162         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
27163
27164 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
27165
27166         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
27167         wydawca.
27168
27169         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
27170         program_invocation_name and program_invocation_short_name are
27171         present.
27172
27173 2008-02-28  Bruno Haible  <bruno@clisp.org>
27174
27175         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
27176         * tests/test-freadptr.sh: Also test non-seekable stdin.
27177
27178 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
27179
27180         * build-aux/bootstrap (source_base, m4_base)
27181         (doc_base, tests_base): New variables.
27182         (gnulib_tool_options): Do not hardcode base directories, use
27183         the above variables instead.
27184
27185 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
27186
27187         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
27188
27189 2008-02-28  Bruno Haible  <bruno@clisp.org>
27190
27191         * modules/freadptr-tests: New file.
27192         * tests/test-freadptr.sh: New file.
27193         * tests/test-freadptr.c: New file.
27194
27195         New module 'freadptr'.
27196         * modules/freadptr: New file.
27197         * lib/freadptr.h: New file.
27198         * lib/freadptr.c: New file.
27199         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
27200
27201 2008-02-26  Karl Berry  <karl@freefriends.org>
27202
27203         Sync from Libtool:
27204         * libltdl/argz.c (argz_add, argz_count): New functions.
27205         * libltdl/argz.in.h: Declare them.
27206         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
27207
27208 2008-02-22  Bruno Haible  <bruno@clisp.org>
27209
27210         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
27211         is a pointer type.  Needed for HP-UX 10.
27212         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
27213         * doc/posix-functions/gmtime_r.texi: Likewise.
27214         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
27215
27216 2008-02-24  Bruno Haible  <bruno@clisp.org>
27217
27218         * modules/environ-tests: New file.
27219         * tests/test-environ.c: New file.
27220
27221         New module 'environ'.
27222         * modules/environ: New file.
27223         * lib/unistd.in.h (environ): New declaration.
27224         * m4/environ.m4: New file.
27225         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
27226         after use.
27227         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
27228         HAVE_DECL_ENVIRON.
27229         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
27230         HAVE_DECL_ENVIRON.
27231         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
27232         wrong claim that 'environ' is missing on some systems.
27233         * modules/execute (Depends-on): Add environ.
27234         * lib/execute.c (environ): Remove fallback declaration.
27235         * modules/pipe (Depends-on): Add environ.
27236         * lib/pipe.c (environ): Remove fallback declaration.
27237         * modules/setenv (Depends-on): Add environ.
27238         * lib/setenv.c (environ): Remove fallback declaration.
27239         * modules/unsetenv (Depends-on): Add environ.
27240         * lib/unsetenv.c (environ): Remove fallback declaration.
27241         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
27242         m4/environ.m4.
27243         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
27244         (gl_PREREQ_UNSETENV): Likewise.
27245
27246 2008-02-24  Bruno Haible  <bruno@clisp.org>
27247
27248         * doc/posix-functions/environ.texi: Document the MacOS X problem.
27249
27250 2008-02-20  Bob Proulx  <bob@proulx.com>
27251
27252         Enable use of older two part flavor 'git describe'.
27253         * build-aux/git-version-gen: If using the older two part flavor of
27254         git version then recreate the third part now present in the
27255         newer three part flavor of git describe.
27256
27257 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
27258
27259         * lib/fts.c (fts_build): Typo correction to comment.
27260
27261 2008-02-17  Bruno Haible  <bruno@clisp.org>
27262
27263         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
27264         generating no-op conflicts.
27265
27266 2008-02-17  Bruno Haible  <bruno@clisp.org>
27267
27268         Speed up by 10%.
27269         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
27270         result_entries, rather than an index-based loop.
27271
27272 2008-02-17  Bruno Haible  <bruno@clisp.org>
27273
27274         Speed up by 25%.
27275         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
27276         'hashcode_cached'.
27277         (entry_create): New function.
27278         (entry_hashcode): Use the cached hashcode if possible.
27279         (read_changelog_file, try_split_merged_entry): Use entry_create.
27280
27281 2008-02-17  Bruno Haible  <bruno@clisp.org>
27282
27283         Speed up from O(n^2) to O(n) for long ChangeLog files.
27284         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
27285         (read_changelog_file): Change implementation of entries_reversed list
27286         to rbtreehash.
27287         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
27288
27289 2008-02-17  Bruno Haible  <bruno@clisp.org>
27290
27291         New option --split-merged-entry.
27292         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
27293         (find_paragraph_end, try_split_merged_entry): New functions.
27294         (long_options): Add option --split-merged-entry.
27295         (usage): Document option --split-merged-entry.
27296         (main): Implement option --split-merged-entry.
27297         Reported by Eric Blake.
27298
27299 2008-02-17  Bruno Haible  <bruno@clisp.org>
27300
27301         * lib/git-merge-changelog.c: Include c-strstr.h.
27302         (main): Support the "git pull --rebase" situation.
27303         * modules/git-merge-changelog (Depends-on): Add c-strstr.
27304         Reported by Eric Blake.
27305
27306 2008-02-16  Eric Blake  <ebb9@byu.net>
27307
27308         Avoid doubling \ in common case of "c-maybe" quoting style.
27309         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
27310         eliding outer quotes.
27311         * lib/quotearg.h: Document this.
27312         * tests/test-quotearg.c (result_strings, inputs, results_g)
27313         (flag_results, locale_results): Test it by adding a new string to
27314         each test group.
27315         (compare_strings): Test new string.
27316
27317 2008-02-13  Eric Blake  <ebb9@byu.net>
27318
27319         Avoid trigraph quoting in default output.
27320         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
27321         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
27322         unless explicitly requested.
27323         * tests/test-quotearg.c (flag_results, main): Add additional tests.
27324
27325 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
27326
27327         Don't rely on signed integer overflowing to negative value.
27328         * lib/getugroups.c (getugroups): Include <limits.h>.
27329         Instead, compare against INT_MAX, and increment only if the test passes.
27330
27331 2008-02-13  Jim Meyering  <meyering@redhat.com>
27332         and Eric Blake  <ebb9@byu.net>
27333
27334         Avoid shadowing warning and compile errors on Linux.
27335         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
27336         forwarding macros on Linux.
27337         (dcgettext): Define a stub, for Linux.
27338         (results_g, main): Avoid warnings.
27339
27340 2008-02-12  Eric Blake  <ebb9@byu.net>
27341
27342         Silence warning in last patch.
27343         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
27344
27345         Quotearg part 4: add tests, fix c-maybe colon quoting.
27346         * lib/quotearg.h: Improve documentation.
27347         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
27348         escapes when adding outer quotes.  When quoting trigraphs, use
27349         valid C notation.  When quoting NUL, omit extra characters if next
27350         character is not digit.  Alter prototype.
27351         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
27352         callers.
27353         * modules/quotearg-tests: New module.
27354         * tests/test-quotearg.c: New test.
27355
27356 2008-02-07  Eric Blake  <ebb9@byu.net>
27357
27358         Quotearg part 3: add flag to control outer quote elision.
27359         * lib/quotearg.h (c_maybe_quoting_style): New style.
27360         (enum quoting_flags): Better documentation of flags.
27361         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
27362         c-maybe style.
27363         (quotearg_buffer_restyled): Handle new flag to elide outer
27364         quotes.
27365
27366         Quotearg part 2: add flag that can control NUL elision.
27367         * lib/quotearg.h (set_quoting_flags): New prototype.
27368         * lib/quotearg.c (struct quoting_options): Add flag field.
27369         (set_quoting_flags): New function.
27370         (quotearg_buffer_restyled): Add flags parameter.
27371         (quotearg_alloc_mem): Set the flag if length cannot be returned.
27372         (quotearg_n_options): Set the flag, since length cannot be
27373         returned.
27374         (quoting_options_from_style): Default flags correctly.
27375
27376         Quotearg part 1: more wrappers, restore quotearg_char state.
27377         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
27378         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
27379         (quotearg_colon_mem): New wrappers.
27380         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
27381         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
27382         functions.
27383         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
27384         (quotearg_colon_mem): New functions.
27385
27386 2008-02-11  Bruno Haible  <bruno@clisp.org>
27387
27388         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
27389         library in the current directory: it does not work with parallel make.
27390         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27391
27392 2008-02-11  Bruno Haible  <bruno@clisp.org>
27393
27394         * .gitattributes: New file.
27395
27396 2008-02-11  Jim Meyering  <meyering@redhat.com>
27397
27398         useless-if-before-free: Fix reversed exit values.
27399         * build-aux/useless-if-before-free: Use correct values
27400         for EXIT_MATCH and EXIT_NO_MATCH.
27401
27402         * build-aux/useless-if-before-free: Close stdout carefully.
27403
27404 2008-02-10  Bruno Haible  <bruno@clisp.org>
27405
27406         New module 'git-merge-changelog'.
27407         * modules/git-merge-changelog: New file.
27408         * lib/git-merge-changelog.c: New file.
27409
27410 2008-02-10  Jim Meyering  <meyering@redhat.com>
27411
27412         useless-if-before-free: New option: --list (-l).
27413
27414         useless-if-before-free: Don't exit immediately upon open failure.
27415         * build-aux/useless-if-before-free: Exit 2 for errors.
27416         Upon failure to open a file, don't exit immediately.
27417         Rather, just warn and continue with any remaining files.
27418
27419 2008-02-10  Bruno Haible  <bruno@clisp.org>
27420
27421         New abstract list operation 'node_set_value'.
27422         * lib/gl_list.h (gl_list_node_set_value): New function.
27423         (struct gl_list_implementation): New field node_set_value.
27424         * lib/gl_list.c (gl_list_node_set_value): New function.
27425         * lib/gl_array_list.c (gl_array_node_set_value): New function.
27426         (gl_array_list_implementation): Update.
27427         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
27428         (gl_carray_list_implementation): Update.
27429         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
27430         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
27431         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
27432         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
27433         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
27434         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
27435         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
27436         Update.
27437         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
27438         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
27439         (gl_sublist_list_implementation): Update.
27440
27441 2008-02-10  Bruno Haible  <bruno@clisp.org>
27442
27443         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
27444         Needed when ELEMENT is #defined to 'some_type *'.
27445
27446 2008-02-10  Jim Meyering  <meyering@redhat.com>
27447
27448         New script and module: useless-if-before-free
27449         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
27450         * build-aux/useless-if-before-free: New file.
27451         * modules/useless-if-before-free: New file.
27452
27453         * build-aux/gitlog-to-changelog: Use committer date, not author date.
27454
27455         xstrtol_error: Fix typo.
27456         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
27457         s/exit_failure/exit_status/.
27458
27459 2008-02-09  Jim Meyering  <meyering@redhat.com>
27460
27461         New script and module: gitlog-to-changelog
27462         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
27463         * modules/gitlog-to-changelog: New file.
27464         * build-aux/gitlog-to-changelog: New file.
27465
27466 2008-02-08  Jim Meyering  <meyering@redhat.com>
27467
27468         Avoid two "parameter unused" warnings.
27469         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
27470         Mark "st" as used.
27471
27472         Use "git COMMAND", not "git-COMMAND".
27473         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
27474         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
27475         * build-aux/git-version-gen: Use "git status", not "git-status".
27476
27477 2008-02-07  Bruno Haible  <bruno@clisp.org>
27478
27479         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
27480         Avoids a crash on Windows Vista.
27481         Reported by Adam Strzelecki <ono@java.pl> via
27482         Simon Josefsson <simon@josefsson.org>.
27483
27484 2008-02-06  Bruno Haible  <bruno@clisp.org>
27485
27486         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
27487         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
27488         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
27489         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
27490         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
27491         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
27492         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
27493         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
27494         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
27495         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
27496         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
27497         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
27498         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
27499         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
27500         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
27501         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
27502         left-adjust flag.
27503         * tests/test-snprintf-posix.h (test_function): Likewise.
27504         * tests/test-sprintf-posix.h (test_function): Likewise.
27505         * tests/test-vasprintf-posix.c (test_function): Likewise.
27506         * doc/posix-functions/fprintf.texi: Update.
27507         * doc/posix-functions/printf.texi: Update.
27508         * doc/posix-functions/snprintf.texi: Update.
27509         * doc/posix-functions/sprintf.texi: Update.
27510         * doc/posix-functions/vfprintf.texi: Update.
27511         * doc/posix-functions/vprintf.texi: Update.
27512         * doc/posix-functions/vsnprintf.texi: Update.
27513         * doc/posix-functions/vsprintf.texi: Update.
27514         Reported by Peter Fales <psfales@alcatel-lucent.com>.
27515
27516 2008-02-06  Bruno Haible  <bruno@clisp.org>
27517
27518         Fix bug introduced on 2008-01-26.
27519         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
27520
27521 2008-02-06  Bruno Haible  <bruno@clisp.org>
27522
27523         Fix bug introduced on 2007-06-10.
27524         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
27525         !NEED_PRINTF_FLAG_ZERO.
27526
27527 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
27528
27529         getloadavg: use libperfstat on AIX5
27530         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
27531
27532 2008-02-03  Bruno Haible  <bruno@clisp.org>
27533
27534         * lib/diffseq.h: Add comments about required #includes.
27535         Reported by Michael Biggs <gnulib@doubleplum.net>.
27536
27537 2008-02-01  Bruno Haible  <bruno@clisp.org>
27538
27539         * users.txt: Add gnuit.
27540
27541 2008-01-31  Bruno Haible  <bruno@clisp.org>
27542
27543         * lib/md4.c (set_uint32): Mark as inline.
27544         * lib/md5.c (set_uint32): Likewise.
27545         * lib/sha1.c (set_uint32): Likewise.
27546         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
27547         * m4/md5.m4 (gl_MD5): Likewise.
27548         * m4/sha1.m4 (gl_SHA1): Likewise.
27549
27550 2008-01-31  Jim Meyering  <meyering@redhat.com>
27551
27552         Use "sizeof VAR", rather than a literal "4".
27553         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
27554         * lib/md4.c (md4_read_ctx): Likewise.
27555         * lib/sha1.c (sha1_read_ctx): Likewise.
27556
27557 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27558
27559         * tests/test-sha1.c: New file, based on test-md5.c.
27560
27561         * modules/crypto/sha1-tests: New file.
27562
27563 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27564
27565         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
27566
27567 2008-01-31  Jim Meyering  <meyering@redhat.com>
27568
27569         Prefer "sizeof v" over the equivalent "4".
27570         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
27571         * lib/md5.c (set_uint32): Likewise.
27572         * lib/sha1.c (set_uint32): Likewise.
27573
27574 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27575
27576         * lib/sha1.c (set_uint32): Mark function as static.
27577
27578 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27579
27580         md2: clarify comments to say that alignment is not required.
27581         * lib/md2.h: Remove warning about alignment in comment.
27582         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
27583         never been required.
27584
27585 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27586
27587         md4: adapt alignment constraint fix from sha1.
27588         * lib/md4.c (set_uint32): New function, from sha1.c
27589         (md4_read_ctx): Use it.
27590         (md4_finish_ctx): Doc fix.
27591         * lib/md4.h: Doc fix.
27592
27593 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27594
27595         md5: adapt alignment constraint fix from sha1.
27596         * lib/md5.c (set_uint32): New function, from sha1.c
27597         (md5_read_ctx): Use it.
27598         (md5_finish_ctx): Doc fix.
27599         * lib/md5.h: Doc fix.
27600
27601 2008-01-30  Peter Palfrader  <weasel@debian.org>
27602
27603         sha1: remove the result buffer alignment constraint
27604         * lib/sha1.c (set_uint32): New function.
27605         (sha1_read_ctx): Rewrite to remove the result buffer alignment
27606         constraint.
27607         (sha1_finish_ctx): Remove comment warning about alignment constraint.
27608         * lib/sha1.h: Likewise.
27609
27610 2008-01-30  Andreas Schwab  <schwab@suse.de>
27611             Bruno Haible  <bruno@clisp.org>
27612
27613         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
27614         correct definition of LDBL_MIN_EXP.
27615
27616 2008-01-30  Karl Berry  <karl@gnu.org>
27617
27618         * config/srclist-update: try to preserve x bit on updates.
27619         * config/srclistvars.sh: update for karl.
27620
27621 2008-01-29  Jim Meyering  <meyering@redhat.com>
27622
27623         vasnprintf.c: Avoid warning about unused label
27624         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
27625         "overflow" label definition and associated code with the
27626         same cpp condition that guards the sole use of that label.
27627
27628 2008-01-26  Bruno Haible  <bruno@clisp.org>
27629
27630         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
27631         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
27632         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
27633         * lib/isnanl-nolibm.h (isnanl): Likewise.
27634         Reported by Paul Eggert <eggert@cs.ucla.edu>.
27635
27636 2008-01-26  Bruno Haible  <bruno@clisp.org>
27637
27638         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
27639         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
27640
27641 2008-01-26  Bruno Haible  <bruno@clisp.org>
27642
27643         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
27644         GCC >= 4.0 built-in.
27645         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
27646
27647 2008-01-26  Bruno Haible  <bruno@clisp.org>
27648
27649         Rename isnan, applicable to 'double' only, to isnand.
27650         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
27651         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
27652         (configure.ac): Update.
27653         (Include): Replace "isnan.h" with "isnand.h".
27654         * m4/isnand.m4: Renamed from m4/isnan.m4.
27655         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
27656         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
27657         instead of isnan.c.
27658         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
27659         instead of HAVE_ISNAN_IN_LIBC.
27660         (isnand): Renamed from isnan.
27661         * lib/isnand.c: New file.
27662         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
27663         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
27664         (Makefile.am): Update.
27665         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
27666         Include isnand.h instead of isnan.h.
27667         (main): Test isnand instead of isnan.
27668         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
27669         isnan-nolibm.
27670         * modules/frexp (Depends-on): Likewise.
27671         * modules/frexp-tests (Depends-on): Likewise.
27672         * modules/frexp-nolibm (Depends-on): Likewise.
27673         * modules/frexp-nolibm-tests (Depends-on): Likewise.
27674         * modules/isfinite (Depends-on): Likewise.
27675         * modules/round-tests (Depends-on): Likewise.
27676         * modules/signbit (Depends-on): Likewise.
27677         * modules/signbit-tests (Depends-on): Likewise.
27678         * modules/snprintf-posix (Depends-on): Likewise.
27679         * modules/sprintf-posix (Depends-on): Likewise.
27680         * modules/trunc-tests (Depends-on): Likewise.
27681         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27682         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27683         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27684         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27685         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27686         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27687         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27688         * modules/vasnprintf-posix (Depends-on): Likewise.
27689         * modules/vasprintf-posix (Depends-on): Likewise.
27690         * modules/vfprintf-posix (Depends-on): Likewise.
27691         * modules/vsnprintf-posix (Depends-on): Likewise.
27692         * modules/vsprintf-posix (Depends-on): Likewise.
27693         * lib/frexp.c: Include isnand.h instead of isnan.h.
27694         (ISNAN): Set to isnand instead of isnan.
27695         * lib/isfinite.c: Include isnand.h instead of isnan.h.
27696         (gl_isfinited): Use isnand instead of isnan.
27697         * lib/signbitd.c: Include isnand.h instead of isnan.h.
27698         (gl_signbitd): Use isnand instead of isnan.
27699         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
27700         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
27701         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
27702         (main): Use isnand instead of isnan.
27703         * tests/test-round1.c: Include isnand.h.
27704         (main): Use isnand instead of isnan.
27705         * tests/test-round2.c: Include isnand.h instead of isnan.h.
27706         (ISNAN): Set to isnand instead of isnan.
27707         * tests/test-trunc1.c: Include isnand.h.
27708         (main): Use isnand instead of isnan.
27709         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
27710         (equal): Use isnand instead of isnan.
27711         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
27712         isnand-nolibm.
27713         * NEWS: Mention the change.
27714
27715 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
27716             Bruno Haible  <bruno@clisp.org>
27717
27718         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
27719         the GCC builtins for signbits are present and set
27720         REPLACE_SIGNBIT_USING_GCC if so.
27721         * lib/math.in.h (signbit): Define using GCC builtins if
27722         REPLACE_SIGNBIT_USING_GCC is set.
27723         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
27724         REPLACE_SIGNBIT_USING_GCC.
27725         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
27726
27727 2008-01-25  Jim Meyering  <meyering@redhat.com>
27728
27729         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
27730         * lib/poll.c: Include <config.h>, not "config.h".
27731         * tests/test-getaddrinfo.c: Likewise.
27732
27733 2008-01-25  Simon Josefsson  <simon@josefsson.org>
27734
27735         * modules/sockets-tests: New file.
27736
27737 2008-01-24  Simon Josefsson  <simon@josefsson.org>
27738
27739         * modules/sockets: New module, can be used to call WSA_Startup and
27740         WSA_Cleanup when needed.
27741
27742         * lib/sockets.h, lib/sockets.c: New files.
27743
27744         * m4/sockets.m4: New file.
27745
27746         * tests/test-sockets.c: New file.
27747
27748 2008-01-19  Bruno Haible  <bruno@clisp.org>
27749
27750         * doc/posix-headers: Renamed from doc/headers.
27751         * doc/posix-functions: Renamed from doc/functions.
27752         * doc/gnulib.texi: Update.
27753
27754 2008-01-19  Bruno Haible  <bruno@clisp.org>
27755
27756         * doc/glibc-functions/strcasestr.texi: Include contents of
27757         doc/functions/strcasestr.texi, fixing the list of platforms.
27758         * doc/functions/strcasestr.texi: Remove file.
27759
27760 2008-01-19  Bruno Haible  <bruno@clisp.org>
27761
27762         * doc/glibc-functions/memmem.texi: Include contents of
27763         doc/functions/memmem.texi.
27764         * doc/functions/memmem.texi: Remove file.
27765
27766 2008-01-18  Bruno Haible  <bruno@clisp.org>
27767
27768         * doc/glibc-functions/*.texi: New files.
27769         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
27770         to use the new files.
27771
27772 2008-01-17  Bruno Haible  <bruno@clisp.org>
27773
27774         * tests/test-gethostname.c (main): Fix printf statement.
27775
27776 2008-01-17  Simon Josefsson  <simon@josefsson.org>
27777
27778         * modules/gethostname-tests: New file.
27779
27780         * tests/test-gethostname.c: New file.
27781
27782 2008-01-17  Simon Josefsson  <simon@josefsson.org>
27783
27784         * lib/gethostname.c: Include string.h unconditionally, strncpy is
27785         used by the UNAME case.  Reported by Bruno Haible
27786         <bruno@clisp.org>.
27787
27788 2008-01-17  Eric Blake  <ebb9@byu.net>
27789
27790         Convert c-strcasestr to be more efficient.
27791         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
27792         (Depends-on): Add c-strcase, remove malloca, strnlen.
27793         * tests/test-c-strcasestr.c (main): Enhance test.
27794         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
27795
27796 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
27797
27798         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
27799         Use it in creating po/Makevars.
27800
27801 2008-01-15  Simon Josefsson  <simon@josefsson.org>
27802
27803         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
27804         Applications that requires it should initialize libgcrypt
27805         manually.
27806
27807 2008-01-16  Simon Josefsson  <simon@josefsson.org>
27808
27809         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
27810
27811 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
27812
27813         Fix problem with getdate on mingw32 reported by Simon Josefsson
27814         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
27815         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
27816         tzname", when deciding whether to declare tzname.
27817         * lib/strftime.c (tzname): Likewise.
27818
27819 2008-01-15  Bruno Haible  <bruno@clisp.org>
27820
27821         Work around a MacOS X 10.5 bug in frexpl().
27822         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
27823         * doc/functions/frexpl.texi: Document the bug.
27824         Reported by Elias Pipping <pipping@gentoo.org>.
27825
27826 2008-01-14  Eric Blake  <ebb9@byu.net>
27827
27828         Touch up previous patch.
27829         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
27830         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
27831
27832         Convert strcasestr module to use Two-Way algorithm.
27833         * modules/strcasestr-simple: New module, based on the old
27834         strcasestr, but with Two-Way rather than KMP.
27835         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
27836         * lib/string.in.h (rpl_strcasestr): Declare.
27837         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
27838         performance.
27839         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
27840         * modules/string (Makefile.am): Support strcasestr.
27841         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
27842         * modules/strcasestr-tests (Depends-on): Check for alarm.
27843         * tests/test-strcasestr.c: Augment test.
27844         * lib/str-two-way.h: Clean up stray macro.
27845         * NEWS: Document new module.
27846         * MODULES.html.sh (string handling): Likewise.
27847         * doc/functions/strcasestr.texi: New file.
27848         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
27849         here, since it is not a POSIX function.
27850
27851 2008-01-14  Colin Watson  <cjwatson@debian.org>
27852             Bruno Haible  <bruno@clisp.org>
27853
27854         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
27855         works fine; if not, set REPLACE_STRSIGNAL.
27856         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
27857         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27858         REPLACE_STRSIGNAL.
27859         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
27860         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
27861         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
27862
27863 2008-01-14  Bruno Haible  <bruno@clisp.org>
27864
27865         * modules/strsignal (Include): Change to <string.h>.
27866
27867 2008-01-14  Colin Watson  <cjwatson@debian.org>
27868
27869         * modules/argp (Notice): Add a notice recommending to change
27870         XGETTEXT_OPTIONS.
27871         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
27872
27873 2008-01-13  Colin Watson  <cjwatson@debian.org>
27874
27875         * modules/strsignal-tests: New file.
27876         * tests/test-strsignal.c: New file.
27877
27878         * lib/strsignal.c: New file, from glibc with modifications.
27879         * lib/siglist.h: New file, from glibc with modifications.
27880         * lib/string.in.h (strsignal): New declaration.
27881         * m4/strsignal.m4: New file.
27882         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27883         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
27884         * modules/strsignal: New file.
27885         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
27886         HAVE_DECL_STRSIGNAL.
27887
27888 2008-01-13  Bruno Haible  <bruno@clisp.org>
27889
27890         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
27891         locale encoding is not ASCII. Needed for OpenBSD 4.0.
27892         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
27893         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
27894
27895 2008-01-13  Bruno Haible  <bruno@clisp.org>
27896
27897         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
27898         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
27899         * lib/argp.h (__attribute__): Likewise.
27900         * lib/c-stack.c (__attribute__): Likewise.
27901         * lib/error.h (__attribute__): Likewise.
27902         * lib/fts.c (__attribute__): Likewise.
27903         * lib/openat.h (__attribute__): Likewise.
27904         * lib/stdio.in.h (__attribute__): Likewise.
27905         * lib/string.in.h (__attribute__): Likewise.
27906         * lib/utimens.c (__attribute__): Likewise.
27907         * lib/vasnprintf.h (__attribute__): Likewise.
27908         * lib/xalloc.h (__attribute__): Likewise.
27909         * lib/xprintf.h (__attribute__): Likewise.
27910         * lib/xstrtol.h (__attribute__): Likewise.
27911         * lib/xvasprintf.h (__attribute__): Likewise.
27912
27913 2008-01-12  Bruno Haible  <bruno@clisp.org>
27914
27915         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
27916         * doc/glibc-headers/a.out.texi: New file.
27917         * doc/glibc-headers/aliases.texi: New file.
27918         * doc/glibc-headers/alloca.texi: New file.
27919         * doc/glibc-headers/ar.texi: New file.
27920         * doc/glibc-headers/argp.texi: New file.
27921         * doc/glibc-headers/argz.texi: New file.
27922         * doc/glibc-headers/byteswap.texi: New file.
27923         * doc/glibc-headers/crypt.texi: New file.
27924         * doc/glibc-headers/endian.texi: New file.
27925         * doc/glibc-headers/envz.texi: New file.
27926         * doc/glibc-headers/err.texi: New file.
27927         * doc/glibc-headers/error.texi: New file.
27928         * doc/glibc-headers/execinfo.texi: New file.
27929         * doc/glibc-headers/fpu_control.texi: New file.
27930         * doc/glibc-headers/fstab.texi: New file.
27931         * doc/glibc-headers/fts.texi: New file.
27932         * doc/glibc-headers/getopt.texi: New file.
27933         * doc/glibc-headers/ieee754.texi: New file.
27934         * doc/glibc-headers/ifaddrs.texi: New file.
27935         * doc/glibc-headers/libintl.texi: New file.
27936         * doc/glibc-headers/mcheck.texi: New file.
27937         * doc/glibc-headers/mntent.texi: New file.
27938         * doc/glibc-headers/obstack.texi: New file.
27939         * doc/glibc-headers/paths.texi: New file.
27940         * doc/glibc-headers/printf.texi: New file.
27941         * doc/glibc-headers/pty.texi: New file.
27942         * doc/glibc-headers/resolv.texi: New file.
27943         * doc/glibc-headers/shadow.texi: New file.
27944         * doc/glibc-headers/sysexits.texi: New file.
27945         * doc/glibc-headers/ttyent.texi: New file.
27946
27947 2008-01-12  Jim Meyering  <meyering@redhat.com>
27948
27949         announce-gen: emit Gnulib's git-based version string.
27950         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
27951         New option --gnulib-version=V, where V is expected to be
27952         the output of running git describe in the gnulib directory.
27953         (get_tool_versions): Request feedback on xdelta.  I suspect it's
27954         not useful, and plan to stop publishing an xdelta file with each
27955         coreutils release.
27956
27957         * build-aux/announce-gen: Also check for lzma-compressed files.
27958
27959 2008-01-11  Bruno Haible  <bruno@clisp.org>
27960
27961         * tests/test-memmem.c (main): Increase maximum allowed time.
27962         * tests/test-strstr.c (main): Likewise.
27963
27964 2008-01-11  Bruno Haible  <bruno@clisp.org>
27965
27966         * doc/functions/memmem.texi: Add more precisions about platforms.
27967         * doc/functions/strstr.texi: Likewise.
27968
27969 2008-01-10  Eric Blake  <ebb9@byu.net>
27970
27971         * m4/strstr.m4: Delete cruft from copy-n-paste.
27972         Reported by Bruno Haible.
27973
27974 2008-01-10  Bruno Haible  <bruno@clisp.org>
27975
27976         Make c-strstr rely on strstr.
27977         * lib/c-strstr.c: Don't include str-kmp.h.
27978         (c_strstr): Define in terms of strstr.
27979         * modules/c-strstr (Files): Remove lib/str-kmp.h.
27980         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
27981
27982 2008-01-10  Bruno Haible  <bruno@clisp.org>
27983
27984         * doc/gnulib.texi (String Functions in C Locale): New section.
27985         * doc/c-ctype.texi: New file.
27986         * doc/c-strcase.texi: New file.
27987         * doc/c-strcaseeq.texi: New file.
27988         * doc/c-strcasestr.texi: New file.
27989         * doc/c-strstr.texi: New file.
27990         * doc/c-strtod.texi: New file.
27991         * doc/c-strtold.texi: New file.
27992
27993 2008-01-10  Eric Blake  <ebb9@byu.net>
27994
27995         * lib/relocatable.h: Fix a comment.
27996
27997 2008-01-10  Eric Blake  <ebb9@byu.net>
27998
27999         Share two-way algorithm.
28000         * lib/str-two-way.h: New file, merged from...
28001         * lib/memmem.c: ...here...
28002         * lib/strstr.c: ...and here.
28003         * modules/memmem (Files): Use it.
28004         * modules/strstr (Files): Likewise.
28005
28006         Avoid quadratic strstr implementations.
28007         * lib/strstr.c: New file.
28008         * m4/strstr.m4: Likewise.
28009         * modules/strstr: Likewise.
28010         * modules/strstr-tests: Likewise.
28011         * tests/test-strstr.c: Likewise.
28012         * lib/string.in.h (rpl_strstr): Declare.
28013         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
28014         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
28015         * modules/string (Makefile.am): Likewise.
28016         * MODULES.html.sh (string handling): Mention new module.
28017         * doc/functions/strstr.texi (strstr): Document the bug.
28018
28019 2008-01-10  Bruno Haible  <bruno@clisp.org>
28020
28021         * lib/relocatable.h (relocate): State whether result is freshly
28022         allocated or not.
28023         * lib/relocatable.c (relocate): Return a freshly allocated string
28024         instead of a pointer to a privately held string.
28025         Reported by Sylvain Beucler <beuc@gnu.org>.
28026
28027 2008-01-10  Colin Watson  <cjwatson@debian.org>
28028
28029         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
28030         s/S_ISNLK/S_ISLNK/.
28031
28032 2008-01-09  Bruno Haible  <bruno@clisp.org>
28033
28034         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
28035         and other files.
28036         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
28037         if it's only a guess.
28038         * modules/memmem: Simplify by depending on memmem-simple.
28039
28040 2008-01-09  Bruno Haible  <bruno@clisp.org>
28041
28042         Work around OpenBSD 4.0 tdelete() bug.
28043         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
28044         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
28045         macros and don't redefine the enum values.
28046         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
28047         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
28048         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
28049
28050 2008-01-09  Bruno Haible  <bruno@clisp.org>
28051
28052         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
28053         (main): Don't perform the tests if setlocale did not install a UTF-8
28054         locale. Needed on OpenBSD 4.0.
28055         * modules/wcwidth-tests (Depends-on): Add localcharset.
28056
28057 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
28058
28059         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
28060         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
28061         * NEWS: announce this.
28062         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
28063
28064 2008-01-09  Simon Josefsson  <simon@josefsson.org>
28065         and Eric Blake  <ebb9@byu.net>
28066
28067         Add memmem-simple module.
28068         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
28069         (gl_FUNC_MEMMEM): Separate performance from presence checks.
28070         * modules/memmem-simple: New file.
28071         * modules/memmem (Description): Tweak.
28072         * MODULES.html.sh (string handling): Mention new module.
28073         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
28074         addressed by memmem-simple.
28075         * NEWS: Document the difference.
28076
28077 2008-01-09  Eric Blake  <ebb9@byu.net>
28078
28079         Give gcc some memmem optimization hints.
28080         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
28081         (strcasestr): Declare as pure.
28082         * modules/memmem (Maintainer): Claim my implementation.
28083
28084 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28085
28086         Support AIX 6.1 and higher.
28087         * build-aux/config.libpath: Likewise.
28088         * build-aux/config.rpath: Likewise.
28089
28090 2008-01-08  Jim Meyering  <meyering@redhat.com>
28091             Bruno Haible  <bruno@clisp.org>
28092
28093         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
28094         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
28095         Reported by Peter Fales in
28096         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
28097
28098 2008-01-08  Bruno Haible  <bruno@clisp.org>
28099
28100         * modules/unictype/category-of (Depends-on): Add
28101         unictype/category-none.
28102         * modules/unictype/category-and-tests (Depends-on): Add
28103         unictype/category-{L,N,Lu,Nd}.
28104         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
28105         * modules/unictype/category-or-tests (Depends-on): Add
28106         unictype/category-{L,N}.
28107         * modules/unictype/category-name-tests (Depends-on): Add
28108         unictype/category-{Z,Nl}.
28109         Reported by Simon Josefsson.
28110
28111 2008-01-08  Bruno Haible  <bruno@clisp.org>
28112
28113         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
28114         convention better.
28115         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
28116         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
28117         Reported by Peter Miller <millerp@canb.auug.org.au>.
28118
28119 2008-01-08  Eric Blake  <ebb9@byu.net>
28120
28121         Rewrite memmem to guarantee linear complexity without malloc.
28122         * lib/memmem.c (memmem): Use Two-Way rather than
28123         Knuth-Morris-Pratt, to allow O(1) space usage.
28124         (critical_factorization, two_way_short_needle)
28125         (two_way_long_needle): New functions.
28126         (knuth_morris_pratt): Delete.
28127         * modules/memmem (Depends-on): No longer need malloca or stdbool.
28128         Add stdint.
28129         * tests/test-memmem.c (main): Add tests for periodic needle and
28130         sublinear performance.
28131         * doc/functions/memmem.texi (memmem): Document other deficiencies
28132         in cygwin and older glibc.
28133
28134 2008-01-08  Bruno Haible  <bruno@clisp.org>
28135
28136         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
28137         augmentation.
28138
28139 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
28140
28141         Add a configure time option: --disable-acl.
28142         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
28143         AC_ARG_ENABLE(acl).
28144
28145 2008-01-06  Simon Josefsson  <simon@josefsson.org>
28146
28147         * tests/test-localename.c: Don't include obsolete "setenv.h".
28148
28149         * modules/localename-tests (Depends-on): Need unsetenv.
28150
28151 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28152
28153         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
28154
28155 2008-01-06  Colin Watson  <cjwatson@debian.org>
28156
28157         * users.txt: Add man-db.
28158
28159 2008-01-07  Bruno Haible  <bruno@clisp.org>
28160
28161         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
28162         previous section name.
28163
28164 2008-01-07  Bruno Haible  <bruno@clisp.org>
28165
28166         * lib/progname.c (set_program_name): Don't strip off a leading
28167         "lt-" prefix outside a .libs directory.
28168         Suggested by Paul Eggert.
28169
28170 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
28171             Bruno Haible  <bruno@clisp.org>
28172
28173         Improve memory cleanup in 'relocatable' module.
28174         * lib/relocatable.h (compute_curr_prefix): Change return type to
28175         'char *'.
28176         * lib/relocatable.c (compute_curr_prefix): Change return type to
28177         'char *'. Free curr_installdir after use.
28178         (relocate): Free curr_prefix_better after use.
28179         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
28180
28181 2008-01-01  Bruno Haible  <bruno@clisp.org>
28182
28183         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
28184         failure on older glibc systems.
28185         Reported by Peter Fales <psfales@alcatel-lucent.com>.
28186
28187 2008-01-05  Eric Blake  <ebb9@byu.net>
28188
28189         Avoid quadratic system memmem.
28190         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
28191         Reported by Ralf Wildenhues.
28192
28193         Fix memmem test for mingw.
28194         * modules/memmem-tests (configure.ac): Check for alarm.
28195         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
28196         it.
28197         * doc/functions/memmem.texi: New file.
28198         * doc/gnulib.texi (Function Substitutes): Add memmem.
28199         Reported by Bruno Haible.
28200
28201 2008-01-04  Bruno Haible  <bruno@clisp.org>
28202
28203         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
28204         Require gl_HEADER_STRINGS_H_DEFAULTS, not
28205         gl_HEADER_STRING_H_DEFAULTS.
28206
28207 2008-01-04  Eric Blake  <ebb9@byu.net>
28208
28209         Shorten duration of memmem test.
28210         * tests/test-memmem.c (main): Use alarm to declare failure if test
28211         is taking too long.
28212         Reported by Ralf Wildenhues.
28213
28214 2007-12-21  Simon Josefsson  <simon@josefsson.org>
28215
28216         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
28217         string, needed by strerror.
28218
28219 2008-01-03  Colin Watson  <cjwatson@debian.org>
28220             Bruno Haible  <bruno@clisp.org>
28221
28222         * doc/gnulib-tool.texi (Localization): New section.
28223
28224 2008-01-02  Bruno Haible  <bruno@clisp.org>
28225
28226         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
28227         variables to 'unsigned char *' type.
28228         Reported by Paul Eggert.
28229
28230 2008-01-02  Jim Meyering  <jim@meyering.net>
28231
28232         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
28233
28234 2007-12-31  Jim Meyering  <jim@meyering.net>
28235
28236         Avoid use of private FTS type name.
28237         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
28238
28239 2007-12-30  Karl Berry  <karl@gnu.org>
28240
28241         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
28242         work around defect in Texinfo and/or the standalone Info browser.
28243
28244 2007-12-30  Bruno Haible  <bruno@clisp.org>
28245
28246         Unify 5 copies of the KMP code.
28247         * lib/str-kmp.h: New file.
28248         * lib/c-strcasestr.c: Include str-kmp.h.
28249         (knuth_morris_pratt): Remove function.
28250         (c_strcasestr): Update.
28251         * lib/c-strstr.c: Include str-kmp.h.
28252         (knuth_morris_pratt): Remove function.
28253         (c_strcasestr): Update.
28254         * lib/mbscasestr.c: Include str-kmp.h.
28255         (knuth_morris_pratt_unibyte): Remove function.
28256         * lib/mbsstr.c: Include str-kmp.h.
28257         (knuth_morris_pratt_unibyte): Remove function.
28258         * lib/strcasestr.c: Include str-kmp.h.
28259         (knuth_morris_pratt): Remove function.
28260         (strcasestr): Update.
28261         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
28262         * modules/c-strstr (Files): Likewise.
28263         * modules/mbscasestr (Files): Likewise.
28264         * modules/mbsstr (Files): Likewise.
28265         * modules/strcasestr (Files): Likewise.
28266         Suggested by Paul Eggert.
28267
28268 2007-12-30  Bruno Haible  <bruno@clisp.org>
28269
28270         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
28271         defined.
28272
28273 2007-12-30  Bruno Haible  <bruno@clisp.org>
28274
28275         * lib/xmalloca.h: Include xalloc.h.
28276         (xnmalloca): New macro.
28277
28278 2007-12-30  Bruno Haible  <bruno@clisp.org>
28279
28280         * lib/malloca.h (nmalloca): New macro.
28281         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
28282         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
28283         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
28284         knuth_morris_pratt_multibyte): Likewise.
28285         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
28286         knuth_morris_pratt_multibyte): Likewise.
28287         * lib/memmem.c (knuth_morris_pratt): Likewise.
28288         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
28289
28290 2007-12-25  Bruno Haible  <bruno@clisp.org>
28291
28292         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
28293         * lib/glob.c: Don't include openat.h.
28294         (link_exists2_p): Add back the code that deals with the
28295         !GLOB_ALTDIRFUNC case.
28296         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
28297         let it do the filename concatenation.
28298         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
28299         * modules/glob (Depends-on): Remove openat.
28300
28301 2007-12-31  Bruno Haible  <bruno@clisp.org>
28302
28303         * modules/dirfd (License): Change to LGPLv2+.
28304         Approved by Jim Meyering.
28305
28306 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
28307
28308         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
28309         when multiplying M by sizeof (size_t).
28310
28311 2007-12-10  Martin Lambers  <marlam@marlam.de>
28312
28313         Override getpagesize on mingw.
28314         * lib/getpagesize.c: New file.
28315         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
28316         * modules/getpagesize (Files): Add lib/getpagesize.c.
28317         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
28318         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28319         REPLACE_GETPAGESIZE.
28320         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
28321
28322 2007-12-25  Bruno Haible  <bruno@clisp.org>
28323
28324         * modules/localcharset (Notice): New field.
28325         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
28326         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
28327
28328 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
28329             Bruno Haible  <bruno@clisp.org>
28330
28331         Avoid using the syntax symbol() in formatted documentation.
28332         * MODULES.html.sh (func_module): When replacing symbol() with a
28333         hyperlink, remove the parentheses. Show an error if some remain.
28334         Recognize and render the '...' syntax.
28335         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
28336         Rework. Add paragraph about GCC's inlining.
28337         * doc/alloca.texi: Likewise.
28338         * doc/error.texi: Remove parentheses from symbol reference.
28339         * doc/gnulib-intro.texi: Likewise.
28340         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
28341         * modules/fnmatch (Description): Reword to say "the ... function".
28342         * modules/full-read (Description): Likewise.
28343         * modules/full-write (Description): Likewise.
28344         * modules/safe-read (Description): Likewise.
28345         * modules/safe-write (Description): Likewise.
28346         * modules/strchrnul (Description): Likewise.
28347         * modules/trim (Description): Likewise.
28348         * modules/error (Description): Remove parentheses from symbol
28349         references.
28350         * modules/verror (Description): Likewise.
28351         Reported by Karl Berry.
28352
28353 2007-12-25  Bruno Haible  <bruno@clisp.org>
28354
28355         Fixup after 2007-10-16 commit.
28356         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
28357
28358 2007-12-24  Bruno Haible  <bruno@clisp.org>
28359
28360         Make --enable-relocatable work with DESTDIR.
28361         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
28362         to compute installdir from destprog.
28363         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
28364         also set the RELOC_DESTDIR variable.
28365         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
28366
28367 2007-12-24  Bruno Haible  <bruno@clisp.org>
28368
28369         Fix link error due to xalloc_die().
28370         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
28371         of xreadlink.
28372         * lib/relocwrapper.c: Update comments.
28373         * build-aux/install-reloc: Remove xreadlink.c from file list.
28374         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
28375         xreadlink.c.
28376         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
28377
28378 2007-12-24  Bruno Haible  <bruno@clisp.org>
28379
28380         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
28381         * lib/setenv.h: Remove file.
28382         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
28383         lib/setenv.h.
28384         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
28385         (Depends-on): Add stdlib.
28386         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
28387         gl_FUNC_UNSETENV.
28388         (Include): Replace setenv.h with <stdlib.h>.
28389         * modules/unsetenv: New file.
28390         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
28391         * lib/unsetenv.c: Include <stdlib.h> first.
28392         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
28393         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
28394         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
28395         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
28396         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
28397         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
28398         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
28399         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
28400         * doc/functions/unsetenv.texi: Update.
28401         * modules/xsetenv (Depends-on): Add unsetenv.
28402         * modules/getdate (Depends-on): Likewise.
28403         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
28404         * lib/xsetenv.c: Don't include setenv.h.
28405         * lib/getdate.y: Likewise.
28406         * lib/relocwrapper.c: Likewise.
28407         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
28408         (Depends-on): Add stdlib.
28409         * NEWS: Mention the changes.
28410         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
28411
28412 2007-12-23  Bruno Haible  <bruno@clisp.org>
28413
28414         * lib/memmem.c (memmem): Use lowercase variable names. Tab
28415         indentation.
28416
28417 2007-12-23  Bruno Haible  <bruno@clisp.org>
28418
28419         * lib/c-strcasestr.c: Add more comments.
28420         * lib/c-strstr.c: Likewise.
28421         * lib/mbscasestr.c: Likewise.
28422         * lib/mbsstr.c: Likewise.
28423         * lib/strcasestr.c: Likewise.
28424         * lib/memmem.c: Likewise.
28425
28426 2007-12-23  Bruno Haible  <bruno@clisp.org>
28427
28428         * tests/test-memmem.c: Include <string.h> first.
28429
28430 2007-12-22  Bruno Haible  <bruno@clisp.org>
28431
28432         * gnulib-tool (func_create_testdir): Change $auxdir while generating
28433         the contents of $testsbase.
28434         Reported by Ralf Wildenhues.
28435
28436 2007-12-22  Bruno Haible  <bruno@clisp.org>
28437
28438         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
28439         two variables local_ldadd_before, local_ldadd_last.
28440
28441 2007-12-20  Eric Blake  <ebb9@byu.net>
28442
28443         Work around circular library issue when cross-compiling.
28444         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
28445         that progname.o does not need to pull in rpl_memcmp.
28446
28447 2007-12-19  Eric Blake  <ebb9@byu.net>
28448
28449         Fix memmem to avoid O(n^2) worst-case complexity.
28450         * lib/memmem.c (knuth_morris_pratt): New function.
28451         (memmem): Use it if first few naive iterations fail.
28452         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
28453         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
28454         * modules/memchr (License): Likewise.
28455         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
28456         malloca.
28457         * tests/test-memmem.c: Rewrite, borrowing ideas from
28458         test-mbsstr1.c; the old version wouldn't even compile!
28459         * modules/memmem-tests: New file.
28460         * lib/string.in.h (rpl_memmem): Add declaration.
28461         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
28462         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
28463         REPLACE_MEMMEM.
28464
28465 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
28466
28467         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
28468         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
28469         before any system include files, and undef after them all.  This
28470         should fix a problem on VMS reported by John E. Malmberg in
28471         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
28472
28473 2007-12-17  Eric Blake  <ebb9@byu.net>
28474
28475         Revert addition of verify, for BSD/OS.
28476         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
28477         can't handle large files, for the sake of obsolete platforms.
28478         * modules/fseeko (Depends-on): Remove verify.
28479         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
28480         * doc/functions/ftello.texi (ftello): Likewise.
28481         * doc/functions/fgetpos.texi (fgetpos): Likewise.
28482         Reported by Larry Jones.
28483
28484 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
28485
28486         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
28487         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
28488
28489 2007-12-17  Jim Meyering  <meyering@redhat.com>
28490
28491         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
28492         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
28493         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
28494         * modules/getcwd (Depends-on): Add openat.
28495         Reported by Petr Salinger.
28496
28497 2007-12-17  Bruno Haible  <bruno@clisp.org>
28498
28499         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
28500         avoid a segmentation fault of the configure test on x86_64 systems.
28501
28502 2007-12-15  Jim Meyering  <meyering@redhat.com>
28503
28504         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
28505
28506 2007-12-13  Eric Blake  <ebb9@byu.net>
28507
28508         Another fseek test.
28509         * tests/test-fseek.c (main): Also test ungetc handling.
28510         * tests/test-fseeko.c (main): Likewise.
28511         * modules/fseeko (Depends-on): Add verify.
28512         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
28513         large.
28514         Reported by Larry Jones.
28515
28516         Fix fseeko on mingw.
28517         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
28518         seek.
28519
28520         Beef up fseek tests.
28521         * tests/test-fseek.c (main): Also test eof handling.
28522         * tests/test-fseeko.c (main): Likewise.
28523         Reported by Larry Jones.
28524
28525 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
28526
28527         Fix fseeko on BSD-based platforms.
28528         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
28529         successful seek.
28530
28531 2007-12-12  Eric Blake  <ebb9@byu.net>
28532
28533         Allow circular dependency of separate libtests.a
28534         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
28535         when use_libtests.
28536
28537 2007-12-11  Eric Blake  <ebb9@byu.net>
28538
28539         Fix bug with -0.0L in previous patch.
28540         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
28541         * tests/test-isnan.c (main): Also test on zeroes.
28542         * tests/test-isnanf.c (main): Likewise.
28543         * tests/test-isnanl.h (main): Likewise.
28544
28545         Detect pseudo-denormals on x86 even when cross-compiling.
28546         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
28547         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
28548         invalid bit patterns that happen to satisfy ==.
28549
28550         Avoid link failures with separate libtests.a.
28551         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
28552         last, to satisfy circular dependencies.
28553
28554 2007-12-11  Eric Blake  <ebb9@byu.net>
28555         and Bruno Haible  <bruno@clisp.org>
28556
28557         Fix OpenBSD 4.0 <float.h> handling of long double.
28558         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
28559         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
28560         * doc/headers/float.texi (float.h): Document OpenBSD bug.
28561
28562 2007-12-11  Jim Meyering  <meyering@redhat.com>
28563
28564         * users.txt: Add libvirt.
28565
28566         Support versions of autoconf prior to 2.59c.
28567         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
28568         if it is not already defined.
28569
28570 2007-12-09  Bruno Haible  <bruno@clisp.org>
28571
28572         Let 'gnulib-tool --import' collect sources needed for the tests in
28573         tests/ rather than in lib/.
28574         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
28575         argument. If true, add rules to generate libtests.a, and put libtests.a
28576         into $(LDADD). Consider source files in subdirectories and set
28577         uses_subdirs.
28578         (func_emit_initmacro_start, func_emit_initmacro_end,
28579         func_emit_initmacro_done): Pass all arguments explicitly.
28580         (func_import): Determine two module lists main_modules,
28581         testsrelated_modules. Determine use_libtests. Determine two variables
28582         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
28583         instead of just sed_transform_lib_file. Determine two variables
28584         main_files and testsrelated_files. Compute 'files' as the union of
28585         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
28586         func_add_or_update. In the generated gnulib-comp.m4, collect the
28587         object files for tests/ in different variables than those for lib/.
28588         Substitute LIBTESTS_LIBDEPS.
28589         (func_create_testdir): Combine the uses_subdirs results from
28590         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
28591
28592 2007-12-09  Bruno Haible  <bruno@clisp.org>
28593
28594         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
28595         the build-aux directory.
28596
28597 2007-12-09  Bruno Haible  <bruno@clisp.org>
28598
28599         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
28600         introduced on 2006-09-09.
28601
28602 2007-12-07  Jim Meyering  <meyering@redhat.com>
28603
28604         Let these macros work also with autoconf-2.59.
28605         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
28606         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
28607         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
28608
28609 2007-12-06  Jim Meyering  <meyering@redhat.com>
28610
28611         Avoid a configure-time syntax error in gl_FUNC_ACL.
28612         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
28613         function in each branch, before testing the cache variable.
28614
28615 2007-12-04  Eric Blake  <ebb9@byu.net>
28616
28617         Make scripts executable.
28618         * build-aux/config.guess: Add execute permissions.
28619         * build-aux/config.sub: Likewise.
28620         * build-aux/gendocs.sh: Likewise.
28621
28622         Fix frexp on mingw.
28623         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
28624         cross-compiling.
28625         * doc/functions/frexp.texi (frexp): Document the bug.
28626
28627         Make cygwin fseeko check more reliable.
28628         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
28629         version numbers, rather than unrelated feature check.
28630         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
28631         * doc/functions/ftello.texi (ftello): Likewise.
28632         Reported by Bruno Haible.
28633
28634         * m4/strerror.m4: Bump version number.
28635
28636 2007-12-03  Bruno Haible  <bruno@clisp.org>
28637
28638         * doc/functions/mprotect.texi: Mention the mingw problem.
28639
28640 2007-12-03  Eric Blake  <ebb9@byu.net>
28641
28642         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
28643         REPLACE_STRERROR is initialized before this macro.
28644
28645 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
28646
28647         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
28648         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
28649         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
28650         put -lsec in even for programs other than 'ls'.  This fixes a problem
28651         for gettext reported by Bruno Haible in
28652         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
28653         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
28654         Add support for Solaris 10.  This isn't efficient, but should get the
28655         job done for now.
28656
28657 2007-12-03  James Youngman  <jay@gnu.org>
28658
28659         * doc/regexprops-generic.texi: change "an close-group" to "a
28660         close-group" and "illegal" to "not allowed".
28661
28662 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28663
28664         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
28665         pr_byname.h. Needed for the rare case when the maintainer has done
28666         "make maintainer-clean" in the source directory and then attempts a
28667         build outside the source directory.
28668         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
28669         scripts_byname.h.
28670
28671 2007-12-02  Martin Lambers <marlam@marlam.de>
28672             Bruno Haible  <bruno@clisp.org>
28673
28674         * lib/getpagesize.h: Remove file.
28675         * lib/unistd.in.h: Include declaration of getpagesize here.
28676         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
28677         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
28678         HAVE_SYS_PARAM_H.
28679         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
28680         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
28681         * modules/getpagesize (Files): Remove lib/getpagesize.h.
28682         (Depends-on): Add unistd.
28683         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28684         (Include): Use <unistd.h> instead of getpagesize.h.
28685         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
28686         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
28687         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
28688         gl_GETPAGESIZE invocation, already handled by module dependency.
28689         * lib/pagealign_alloc.c: Don't include getpagesize.h.
28690
28691 2007-12-02  Bruno Haible  <bruno@clisp.org>
28692
28693         * modules/strings-tests: New file.
28694         * tests/test-strings.c: New file.
28695
28696         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
28697         * lib/strings.in.h: New file.
28698         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
28699         * m4/strings_h.m4: New file.
28700         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
28701         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
28702         * modules/strings: New file.
28703         * modules/string (Makefile.am): Update.
28704         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
28705         Reported by Karl Berry.
28706
28707 2007-12-01  Eric Blake  <ebb9@byu.net>
28708
28709         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
28710         accomodate fix in cygwin 1.5.25.
28711
28712 2007-12-01  Jim Meyering  <meyering@redhat.com>
28713
28714         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
28715         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
28716         that would inhibit utf8-optimization of a regexp containing line-
28717         or buffer-anchors, e.g., `^', `$'.
28718
28719 2007-11-30  Bruno Haible  <bruno@clisp.org>
28720
28721         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
28722         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
28723         glthread_recursive_lock_init.
28724         * lib/lock.c (glthread_recursive_lock_init)
28725         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
28726         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28727
28728 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
28729
28730         New function qset_acl, like set_acl but with syscall semantics.
28731         * lib/acl.h (qset_acl): New decl.
28732         * lib/acl.c (qset_acl): New function.
28733         (set_acl): Use new function.  Use more-consistent diagnostics.
28734
28735 2007-11-28  Jim Meyering  <meyering@redhat.com>
28736
28737         * modules/physmem (License): Change from GPL to LGPLv2+.
28738
28739 2007-11-26  Bruno Haible  <bruno@clisp.org>
28740
28741         * lib/vasnprintf.c (decode_long_double): Don't abort if the
28742         'long double' type has excess precision.
28743         Reported by Jim Meyering in
28744         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
28745
28746 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28747
28748         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
28749         Sync from <http://gnu.org/licenses>.
28750         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
28751         with license text from same location.
28752         * doc/maintain.texi, doc/standards.texi:  Sync from
28753         <http://savannah.gnu.org/projects/gnustandards>.
28754
28755 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
28756         and Jim Meyering  <meyering@redhat.com>
28757
28758         Adjust getdate' grammar to accept a slightly more regular language.
28759         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
28760         Before, the former was rejected.
28761         * lib/getdate.y (digits_to_date_time): New function, factored
28762         out of ...
28763         (number): ...here.  Just call digits_to_date_time.
28764         (hybrid): New non-terminal to handle an <unsigned number,
28765         signed relative offset> sequence consistently.
28766
28767 2007-11-18  Jim Meyering  <meyering@redhat.com>
28768
28769         Pull my changes from coreutils:
28770         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
28771         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
28772         use of $gnulib_tool_option_extras, so that it's separated from the
28773         preceding argument.
28774
28775         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
28776         * build-aux/bootstrap (cp_mark_as_generated): Create any required
28777         parent destination directories before copying a file into place.
28778
28779 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
28780
28781         bootstrap: work also with 4-argument variant of AC_INIT
28782         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
28783
28784 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
28785
28786         Port test-getaddrinfo to Solaris.
28787         Problem reported by Bruno Haible in
28788         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
28789         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
28790         explanation of setting 'hints'.
28791         Don't reject an implementation merely because it returns EAI_SERVICE.
28792         (EAI_SERVICE): Define to 0 if not defined.
28793
28794 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
28795
28796         The license of gnu-make and posix-shell is now "GPLed build tool".
28797         * modules/gnu-make (License): Likewise.
28798         * modules/posix-shell (License): Likewise.
28799
28800         New module posix-shell, for determining a POSIX shell
28801         or perhaps something that is close enough to a POSIX shell.
28802         * m4/posix-shell.m4: New file.
28803         * modules/posix-shell: New file.
28804
28805         * MODULES.html.sh: Mention new module.
28806
28807         New module gnu-make, for determining whether we're using GNU Make.
28808         * m4/gnu-make.m4: New file.
28809         * modules/gnu-make: New file.
28810         * MODULES.html.sh: Mention new module.
28811
28812 2007-11-14  Jim Meyering  <meyering@redhat.com>
28813
28814         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
28815         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
28816         use this macro to create a function _definition_.
28817         Remove useless "#undef ARGMATCH_DIE".
28818
28819 2007-11-14  Bruno Haible  <bruno@clisp.org>
28820
28821         * lib/config.charset: Update for OpenBSD 4.1.
28822         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
28823
28824 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
28825
28826         Document 64-bit #if problems in stdint.texi.
28827         * doc/headers/stdint.texi (stdint.h): Mention problems with
28828         64-bit-#if, and how to work around them.
28829
28830         Don't insist on 'long long int' support in the preprocessor.  It
28831         breaks too many things.  For example, PRIdMAX still uses a 'long
28832         long int' format with the latest Sun compiler, even though
28833         HAVE_LONG_LONG_INT isn't defined due to that compiler's
28834         preprocessor problem.  This causes the latest coreutils to dump
28835         core on Solaris 10 sparc with the Sun C compiler.
28836         Instead, fix the 2007-10-16 problem in a different way, by evaluating
28837         the troublesome expressions at configure-time, not at #if-time.
28838         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
28839         preprocessor.
28840         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
28841         compile-time C checks, done at 'configure'-time.
28842         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
28843         * modules/inttypes (Makefile): Substitute the new symbols that
28844         gl_INTTYPES_H now generates.
28845         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
28846
28847 2007-11-12  Bruno Haible  <bruno@clisp.org>
28848
28849         Tests for Unicode character classification functions.
28850
28851         * modules/unictype/bidicategory-byname-tests: New file.
28852         * modules/unictype/bidicategory-name-tests: New file.
28853         * modules/unictype/bidicategory-of-tests: New file.
28854         * modules/unictype/bidicategory-test-tests: New file.
28855         * modules/unictype/block-list-tests: New file.
28856         * modules/unictype/block-of-tests: New file.
28857         * modules/unictype/block-test-tests: New file.
28858         * modules/unictype/category-C-tests: New file.
28859         * modules/unictype/category-Cc-tests: New file.
28860         * modules/unictype/category-Cf-tests: New file.
28861         * modules/unictype/category-Cn-tests: New file.
28862         * modules/unictype/category-Co-tests: New file.
28863         * modules/unictype/category-Cs-tests: New file.
28864         * modules/unictype/category-L-tests: New file.
28865         * modules/unictype/category-Ll-tests: New file.
28866         * modules/unictype/category-Lm-tests: New file.
28867         * modules/unictype/category-Lo-tests: New file.
28868         * modules/unictype/category-Lt-tests: New file.
28869         * modules/unictype/category-Lu-tests: New file.
28870         * modules/unictype/category-M-tests: New file.
28871         * modules/unictype/category-Mc-tests: New file.
28872         * modules/unictype/category-Me-tests: New file.
28873         * modules/unictype/category-Mn-tests: New file.
28874         * modules/unictype/category-N-tests: New file.
28875         * modules/unictype/category-Nd-tests: New file.
28876         * modules/unictype/category-Nl-tests: New file.
28877         * modules/unictype/category-No-tests: New file.
28878         * modules/unictype/category-P-tests: New file.
28879         * modules/unictype/category-Pc-tests: New file.
28880         * modules/unictype/category-Pd-tests: New file.
28881         * modules/unictype/category-Pe-tests: New file.
28882         * modules/unictype/category-Pf-tests: New file.
28883         * modules/unictype/category-Pi-tests: New file.
28884         * modules/unictype/category-Po-tests: New file.
28885         * modules/unictype/category-Ps-tests: New file.
28886         * modules/unictype/category-S-tests: New file.
28887         * modules/unictype/category-Sc-tests: New file.
28888         * modules/unictype/category-Sk-tests: New file.
28889         * modules/unictype/category-Sm-tests: New file.
28890         * modules/unictype/category-So-tests: New file.
28891         * modules/unictype/category-Z-tests: New file.
28892         * modules/unictype/category-Zl-tests: New file.
28893         * modules/unictype/category-Zp-tests: New file.
28894         * modules/unictype/category-Zs-tests: New file.
28895         * modules/unictype/category-and-not-tests: New file.
28896         * modules/unictype/category-and-tests: New file.
28897         * modules/unictype/category-byname-tests: New file.
28898         * modules/unictype/category-name-tests: New file.
28899         * modules/unictype/category-none-tests: New file.
28900         * modules/unictype/category-of-tests: New file.
28901         * modules/unictype/category-or-tests: New file.
28902         * modules/unictype/category-test-withtable-tests: New file.
28903         * modules/unictype/combining-class-tests: New file.
28904         * modules/unictype/ctype-alnum-tests: New file.
28905         * modules/unictype/ctype-alpha-tests: New file.
28906         * modules/unictype/ctype-blank-tests: New file.
28907         * modules/unictype/ctype-cntrl-tests: New file.
28908         * modules/unictype/ctype-digit-tests: New file.
28909         * modules/unictype/ctype-graph-tests: New file.
28910         * modules/unictype/ctype-lower-tests: New file.
28911         * modules/unictype/ctype-print-tests: New file.
28912         * modules/unictype/ctype-punct-tests: New file.
28913         * modules/unictype/ctype-space-tests: New file.
28914         * modules/unictype/ctype-upper-tests: New file.
28915         * modules/unictype/ctype-xdigit-tests: New file.
28916         * modules/unictype/decimal-digit-tests: New file.
28917         * modules/unictype/digit-tests: New file.
28918         * modules/unictype/mirror-tests: New file.
28919         * modules/unictype/numeric-tests: New file.
28920         * modules/unictype/property-alphabetic-tests: New file.
28921         * modules/unictype/property-ascii-hex-digit-tests: New file.
28922         * modules/unictype/property-bidi-arabic-digit-tests: New file.
28923         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
28924         * modules/unictype/property-bidi-block-separator-tests: New file.
28925         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
28926         * modules/unictype/property-bidi-common-separator-tests: New file.
28927         * modules/unictype/property-bidi-control-tests: New file.
28928         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
28929         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
28930         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
28931         * modules/unictype/property-bidi-european-digit-tests: New file.
28932         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
28933         * modules/unictype/property-bidi-left-to-right-tests: New file.
28934         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
28935         * modules/unictype/property-bidi-other-neutral-tests: New file.
28936         * modules/unictype/property-bidi-pdf-tests: New file.
28937         * modules/unictype/property-bidi-segment-separator-tests: New file.
28938         * modules/unictype/property-bidi-whitespace-tests: New file.
28939         * modules/unictype/property-byname-tests: New file.
28940         * modules/unictype/property-combining-tests: New file.
28941         * modules/unictype/property-composite-tests: New file.
28942         * modules/unictype/property-currency-symbol-tests: New file.
28943         * modules/unictype/property-dash-tests: New file.
28944         * modules/unictype/property-decimal-digit-tests: New file.
28945         * modules/unictype/property-default-ignorable-code-point-tests: New file.
28946         * modules/unictype/property-deprecated-tests: New file.
28947         * modules/unictype/property-diacritic-tests: New file.
28948         * modules/unictype/property-extender-tests: New file.
28949         * modules/unictype/property-format-control-tests: New file.
28950         * modules/unictype/property-grapheme-base-tests: New file.
28951         * modules/unictype/property-grapheme-extend-tests: New file.
28952         * modules/unictype/property-grapheme-link-tests: New file.
28953         * modules/unictype/property-hex-digit-tests: New file.
28954         * modules/unictype/property-hyphen-tests: New file.
28955         * modules/unictype/property-id-continue-tests: New file.
28956         * modules/unictype/property-id-start-tests: New file.
28957         * modules/unictype/property-ideographic-tests: New file.
28958         * modules/unictype/property-ids-binary-operator-tests: New file.
28959         * modules/unictype/property-ids-trinary-operator-tests: New file.
28960         * modules/unictype/property-ignorable-control-tests: New file.
28961         * modules/unictype/property-iso-control-tests: New file.
28962         * modules/unictype/property-join-control-tests: New file.
28963         * modules/unictype/property-left-of-pair-tests: New file.
28964         * modules/unictype/property-line-separator-tests: New file.
28965         * modules/unictype/property-logical-order-exception-tests: New file.
28966         * modules/unictype/property-lowercase-tests: New file.
28967         * modules/unictype/property-math-tests: New file.
28968         * modules/unictype/property-non-break-tests: New file.
28969         * modules/unictype/property-not-a-character-tests: New file.
28970         * modules/unictype/property-numeric-tests: New file.
28971         * modules/unictype/property-other-alphabetic-tests: New file.
28972         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
28973         * modules/unictype/property-other-grapheme-extend-tests: New file.
28974         * modules/unictype/property-other-id-continue-tests: New file.
28975         * modules/unictype/property-other-id-start-tests: New file.
28976         * modules/unictype/property-other-lowercase-tests: New file.
28977         * modules/unictype/property-other-math-tests: New file.
28978         * modules/unictype/property-other-uppercase-tests: New file.
28979         * modules/unictype/property-paired-punctuation-tests: New file.
28980         * modules/unictype/property-paragraph-separator-tests: New file.
28981         * modules/unictype/property-pattern-syntax-tests: New file.
28982         * modules/unictype/property-pattern-white-space-tests: New file.
28983         * modules/unictype/property-private-use-tests: New file.
28984         * modules/unictype/property-punctuation-tests: New file.
28985         * modules/unictype/property-quotation-mark-tests: New file.
28986         * modules/unictype/property-radical-tests: New file.
28987         * modules/unictype/property-sentence-terminal-tests: New file.
28988         * modules/unictype/property-soft-dotted-tests: New file.
28989         * modules/unictype/property-space-tests: New file.
28990         * modules/unictype/property-terminal-punctuation-tests: New file.
28991         * modules/unictype/property-test-tests: New file.
28992         * modules/unictype/property-titlecase-tests: New file.
28993         * modules/unictype/property-unassigned-code-value-tests: New file.
28994         * modules/unictype/property-unified-ideograph-tests: New file.
28995         * modules/unictype/property-uppercase-tests: New file.
28996         * modules/unictype/property-variation-selector-tests: New file.
28997         * modules/unictype/property-white-space-tests: New file.
28998         * modules/unictype/property-xid-continue-tests: New file.
28999         * modules/unictype/property-xid-start-tests: New file.
29000         * modules/unictype/property-zero-width-tests: New file.
29001         * modules/unictype/scripts-tests: New file.
29002         * modules/unictype/syntax-c-ident-tests: New file.
29003         * modules/unictype/syntax-c-whitespace-tests: New file.
29004         * modules/unictype/syntax-java-ident-tests: New file.
29005         * modules/unictype/syntax-java-whitespace-tests: New file.
29006         * tests/unictype/test-bidi_byname.c: New file.
29007         * tests/unictype/test-bidi_name.c: New file.
29008         * tests/unictype/test-bidi_of.c: New file.
29009         * tests/unictype/test-bidi_test.c: New file.
29010         * tests/unictype/test-block_list.c: New file.
29011         * tests/unictype/test-block_of.c: New file.
29012         * tests/unictype/test-block_test.c: New file.
29013         * tests/unictype/test-categ_and.c: New file.
29014         * tests/unictype/test-categ_and_not.c: New file.
29015         * tests/unictype/test-categ_byname.c: New file.
29016         * tests/unictype/test-categ_name.c: New file.
29017         * tests/unictype/test-categ_none.c: New file.
29018         * tests/unictype/test-categ_of.c: New file.
29019         * tests/unictype/test-categ_or.c: New file.
29020         * tests/unictype/test-categ_test_withtable.c: New file.
29021         * tests/unictype/test-combining.c: New file.
29022         * tests/unictype/test-decdigit.c: New file.
29023         * tests/unictype/test-digit.c: New file.
29024         * tests/unictype/test-mirror.c: New file.
29025         * tests/unictype/test-numeric.c: New file.
29026         * tests/unictype/test-pr_byname.c: New file.
29027         * tests/unictype/test-pr_test.c: New file.
29028         * tests/unictype/test-predicate-part1.h: New file.
29029         * tests/unictype/test-predicate-part2.h: New file.
29030         * tests/unictype/test-scripts.c: New file.
29031         * tests/unictype/test-sy_c_ident.c: New file.
29032         * tests/unictype/test-sy_java_ident.c: New file.
29033
29034         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
29035         for Unicode 5.0.0.
29036         * tests/unictype/test-categ_Cc.c: Likewise.
29037         * tests/unictype/test-categ_Cf.c: Likewise.
29038         * tests/unictype/test-categ_Cn.c: Likewise.
29039         * tests/unictype/test-categ_Co.c: Likewise.
29040         * tests/unictype/test-categ_Cs.c: Likewise.
29041         * tests/unictype/test-categ_L.c: Likewise.
29042         * tests/unictype/test-categ_Ll.c: Likewise.
29043         * tests/unictype/test-categ_Lm.c: Likewise.
29044         * tests/unictype/test-categ_Lo.c: Likewise.
29045         * tests/unictype/test-categ_Lt.c: Likewise.
29046         * tests/unictype/test-categ_Lu.c: Likewise.
29047         * tests/unictype/test-categ_M.c: Likewise.
29048         * tests/unictype/test-categ_Mc.c: Likewise.
29049         * tests/unictype/test-categ_Me.c: Likewise.
29050         * tests/unictype/test-categ_Mn.c: Likewise.
29051         * tests/unictype/test-categ_N.c: Likewise.
29052         * tests/unictype/test-categ_Nd.c: Likewise.
29053         * tests/unictype/test-categ_Nl.c: Likewise.
29054         * tests/unictype/test-categ_No.c: Likewise.
29055         * tests/unictype/test-categ_P.c: Likewise.
29056         * tests/unictype/test-categ_Pc.c: Likewise.
29057         * tests/unictype/test-categ_Pd.c: Likewise.
29058         * tests/unictype/test-categ_Pe.c: Likewise.
29059         * tests/unictype/test-categ_Pf.c: Likewise.
29060         * tests/unictype/test-categ_Pi.c: Likewise.
29061         * tests/unictype/test-categ_Po.c: Likewise.
29062         * tests/unictype/test-categ_Ps.c: Likewise.
29063         * tests/unictype/test-categ_S.c: Likewise.
29064         * tests/unictype/test-categ_Sc.c: Likewise.
29065         * tests/unictype/test-categ_Sk.c: Likewise.
29066         * tests/unictype/test-categ_Sm.c: Likewise.
29067         * tests/unictype/test-categ_So.c: Likewise.
29068         * tests/unictype/test-categ_Z.c: Likewise.
29069         * tests/unictype/test-categ_Zl.c: Likewise.
29070         * tests/unictype/test-categ_Zp.c: Likewise.
29071         * tests/unictype/test-categ_Zs.c: Likewise.
29072         * tests/unictype/test-ctype_alnum.c: Likewise.
29073         * tests/unictype/test-ctype_alpha.c: Likewise.
29074         * tests/unictype/test-ctype_blank.c: Likewise.
29075         * tests/unictype/test-ctype_cntrl.c: Likewise.
29076         * tests/unictype/test-ctype_digit.c: Likewise.
29077         * tests/unictype/test-ctype_graph.c: Likewise.
29078         * tests/unictype/test-ctype_lower.c: Likewise.
29079         * tests/unictype/test-ctype_print.c: Likewise.
29080         * tests/unictype/test-ctype_punct.c: Likewise.
29081         * tests/unictype/test-ctype_space.c: Likewise.
29082         * tests/unictype/test-ctype_upper.c: Likewise.
29083         * tests/unictype/test-ctype_xdigit.c: Likewise.
29084         * tests/unictype/test-decdigit.h: Likewise.
29085         * tests/unictype/test-digit.h: Likewise.
29086         * tests/unictype/test-numeric.h: Likewise.
29087         * tests/unictype/test-pr_alphabetic.c: Likewise.
29088         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
29089         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
29090         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
29091         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
29092         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
29093         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
29094         * tests/unictype/test-pr_bidi_control.c: Likewise.
29095         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
29096         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
29097         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
29098         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
29099         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
29100         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
29101         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
29102         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
29103         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
29104         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
29105         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
29106         * tests/unictype/test-pr_combining.c: Likewise.
29107         * tests/unictype/test-pr_composite.c: Likewise.
29108         * tests/unictype/test-pr_currency_symbol.c: Likewise.
29109         * tests/unictype/test-pr_dash.c: Likewise.
29110         * tests/unictype/test-pr_decimal_digit.c: Likewise.
29111         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
29112         * tests/unictype/test-pr_deprecated.c: Likewise.
29113         * tests/unictype/test-pr_diacritic.c: Likewise.
29114         * tests/unictype/test-pr_extender.c: Likewise.
29115         * tests/unictype/test-pr_format_control.c: Likewise.
29116         * tests/unictype/test-pr_grapheme_base.c: Likewise.
29117         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
29118         * tests/unictype/test-pr_grapheme_link.c: Likewise.
29119         * tests/unictype/test-pr_hex_digit.c: Likewise.
29120         * tests/unictype/test-pr_hyphen.c: Likewise.
29121         * tests/unictype/test-pr_id_continue.c: Likewise.
29122         * tests/unictype/test-pr_id_start.c: Likewise.
29123         * tests/unictype/test-pr_ideographic.c: Likewise.
29124         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
29125         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
29126         * tests/unictype/test-pr_ignorable_control.c: Likewise.
29127         * tests/unictype/test-pr_iso_control.c: Likewise.
29128         * tests/unictype/test-pr_join_control.c: Likewise.
29129         * tests/unictype/test-pr_left_of_pair.c: Likewise.
29130         * tests/unictype/test-pr_line_separator.c: Likewise.
29131         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
29132         * tests/unictype/test-pr_lowercase.c: Likewise.
29133         * tests/unictype/test-pr_math.c: Likewise.
29134         * tests/unictype/test-pr_non_break.c: Likewise.
29135         * tests/unictype/test-pr_not_a_character.c: Likewise.
29136         * tests/unictype/test-pr_numeric.c: Likewise.
29137         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
29138         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
29139         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
29140         * tests/unictype/test-pr_other_id_continue.c: Likewise.
29141         * tests/unictype/test-pr_other_id_start.c: Likewise.
29142         * tests/unictype/test-pr_other_lowercase.c: Likewise.
29143         * tests/unictype/test-pr_other_math.c: Likewise.
29144         * tests/unictype/test-pr_other_uppercase.c: Likewise.
29145         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
29146         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
29147         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
29148         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
29149         * tests/unictype/test-pr_private_use.c: Likewise.
29150         * tests/unictype/test-pr_punctuation.c: Likewise.
29151         * tests/unictype/test-pr_quotation_mark.c: Likewise.
29152         * tests/unictype/test-pr_radical.c: Likewise.
29153         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
29154         * tests/unictype/test-pr_soft_dotted.c: Likewise.
29155         * tests/unictype/test-pr_space.c: Likewise.
29156         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
29157         * tests/unictype/test-pr_titlecase.c: Likewise.
29158         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
29159         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
29160         * tests/unictype/test-pr_uppercase.c: Likewise.
29161         * tests/unictype/test-pr_variation_selector.c: Likewise.
29162         * tests/unictype/test-pr_white_space.c: Likewise.
29163         * tests/unictype/test-pr_xid_continue.c: Likewise.
29164         * tests/unictype/test-pr_xid_start.c: Likewise.
29165         * tests/unictype/test-pr_zero_width.c: Likewise.
29166         * tests/unictype/test-sy_c_whitespace.c: Likewise.
29167         * tests/unictype/test-sy_java_whitespace.c: Likewise.
29168
29169 2007-11-12  Bruno Haible  <bruno@clisp.org>
29170
29171         Unicode character classification functions.
29172         * lib/unictype.h: New file.
29173         * modules/unictype/base: New file.
29174         * modules/unictype/category-L: New file.
29175         * modules/unictype/category-Lu: New file.
29176         * modules/unictype/category-Ll: New file.
29177         * modules/unictype/category-Lt: New file.
29178         * modules/unictype/category-Lm: New file.
29179         * modules/unictype/category-Lo: New file.
29180         * modules/unictype/category-M: New file.
29181         * modules/unictype/category-Mn: New file.
29182         * modules/unictype/category-Mc: New file.
29183         * modules/unictype/category-Me: New file.
29184         * modules/unictype/category-N: New file.
29185         * modules/unictype/category-Nd: New file.
29186         * modules/unictype/category-Nl: New file.
29187         * modules/unictype/category-No: New file.
29188         * modules/unictype/category-P: New file.
29189         * modules/unictype/category-Pc: New file.
29190         * modules/unictype/category-Pd: New file.
29191         * modules/unictype/category-Ps: New file.
29192         * modules/unictype/category-Pe: New file.
29193         * modules/unictype/category-Pi: New file.
29194         * modules/unictype/category-Pf: New file.
29195         * modules/unictype/category-Po: New file.
29196         * modules/unictype/category-S: New file.
29197         * modules/unictype/category-Sm: New file.
29198         * modules/unictype/category-Sc: New file.
29199         * modules/unictype/category-Sk: New file.
29200         * modules/unictype/category-So: New file.
29201         * modules/unictype/category-Z: New file.
29202         * modules/unictype/category-Zs: New file.
29203         * modules/unictype/category-Zl: New file.
29204         * modules/unictype/category-Zp: New file.
29205         * modules/unictype/category-C: New file.
29206         * modules/unictype/category-Cc: New file.
29207         * modules/unictype/category-Cf: New file.
29208         * modules/unictype/category-Cs: New file.
29209         * modules/unictype/category-Co: New file.
29210         * modules/unictype/category-Cn: New file.
29211         * modules/unictype/category-or: New file.
29212         * modules/unictype/category-of: New file.
29213         * modules/unictype/category-test: New file.
29214         * modules/unictype/category-test-withtable: New file.
29215         * modules/unictype/category-byname: New file.
29216         * modules/unictype/category-none: New file.
29217         * modules/unictype/category-and: New file.
29218         * modules/unictype/category-and-not: New file.
29219         * modules/unictype/category-name: New file.
29220         * modules/unictype/combining-class: New file.
29221         * modules/unictype/category-all: New file.
29222         * modules/unictype/bidicategory-all: New file.
29223         * modules/unictype/bidicategory-byname: New file.
29224         * modules/unictype/bidicategory-name: New file.
29225         * modules/unictype/bidicategory-of: New file.
29226         * modules/unictype/bidicategory-test: New file.
29227         * modules/unictype/decimal-digit: New file.
29228         * modules/unictype/digit: New file.
29229         * modules/unictype/numeric: New file.
29230         * modules/unictype/mirror: New file.
29231         * modules/unictype/property-white-space: New file.
29232         * modules/unictype/property-alphabetic: New file.
29233         * modules/unictype/property-other-alphabetic: New file.
29234         * modules/unictype/property-not-a-character: New file.
29235         * modules/unictype/property-default-ignorable-code-point: New file.
29236         * modules/unictype/property-other-default-ignorable-code-point: New
29237         file.
29238         * modules/unictype/property-deprecated: New file.
29239         * modules/unictype/property-logical-order-exception: New file.
29240         * modules/unictype/property-variation-selector: New file.
29241         * modules/unictype/property-private-use: New file.
29242         * modules/unictype/property-unassigned-code-value: New file.
29243         * modules/unictype/property-uppercase: New file.
29244         * modules/unictype/property-other-uppercase: New file.
29245         * modules/unictype/property-lowercase: New file.
29246         * modules/unictype/property-other-lowercase: New file.
29247         * modules/unictype/property-titlecase: New file.
29248         * modules/unictype/property-soft-dotted: New file.
29249         * modules/unictype/property-id-start: New file.
29250         * modules/unictype/property-other-id-start: New file.
29251         * modules/unictype/property-id-continue: New file.
29252         * modules/unictype/property-other-id-continue: New file.
29253         * modules/unictype/property-xid-start: New file.
29254         * modules/unictype/property-xid-continue: New file.
29255         * modules/unictype/property-pattern-white-space: New file.
29256         * modules/unictype/property-pattern-syntax: New file.
29257         * modules/unictype/property-join-control: New file.
29258         * modules/unictype/property-grapheme-base: New file.
29259         * modules/unictype/property-grapheme-extend: New file.
29260         * modules/unictype/property-other-grapheme-extend: New file.
29261         * modules/unictype/property-grapheme-link: New file.
29262         * modules/unictype/property-bidi-control: New file.
29263         * modules/unictype/property-bidi-left-to-right: New file.
29264         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
29265         * modules/unictype/property-bidi-arabic-right-to-left: New file.
29266         * modules/unictype/property-bidi-european-digit: New file.
29267         * modules/unictype/property-bidi-eur-num-separator: New file.
29268         * modules/unictype/property-bidi-eur-num-terminator: New file.
29269         * modules/unictype/property-bidi-arabic-digit: New file.
29270         * modules/unictype/property-bidi-common-separator: New file.
29271         * modules/unictype/property-bidi-block-separator: New file.
29272         * modules/unictype/property-bidi-segment-separator: New file.
29273         * modules/unictype/property-bidi-whitespace: New file.
29274         * modules/unictype/property-bidi-non-spacing-mark: New file.
29275         * modules/unictype/property-bidi-boundary-neutral: New file.
29276         * modules/unictype/property-bidi-pdf: New file.
29277         * modules/unictype/property-bidi-embedding-or-override: New file.
29278         * modules/unictype/property-bidi-other-neutral: New file.
29279         * modules/unictype/property-hex-digit: New file.
29280         * modules/unictype/property-ascii-hex-digit: New file.
29281         * modules/unictype/property-ideographic: New file.
29282         * modules/unictype/property-unified-ideograph: New file.
29283         * modules/unictype/property-radical: New file.
29284         * modules/unictype/property-ids-binary-operator: New file.
29285         * modules/unictype/property-ids-trinary-operator: New file.
29286         * modules/unictype/property-zero-width: New file.
29287         * modules/unictype/property-space: New file.
29288         * modules/unictype/property-non-break: New file.
29289         * modules/unictype/property-iso-control: New file.
29290         * modules/unictype/property-format-control: New file.
29291         * modules/unictype/property-dash: New file.
29292         * modules/unictype/property-hyphen: New file.
29293         * modules/unictype/property-punctuation: New file.
29294         * modules/unictype/property-line-separator: New file.
29295         * modules/unictype/property-paragraph-separator: New file.
29296         * modules/unictype/property-quotation-mark: New file.
29297         * modules/unictype/property-sentence-terminal: New file.
29298         * modules/unictype/property-terminal-punctuation: New file.
29299         * modules/unictype/property-currency-symbol: New file.
29300         * modules/unictype/property-math: New file.
29301         * modules/unictype/property-other-math: New file.
29302         * modules/unictype/property-paired-punctuation: New file.
29303         * modules/unictype/property-left-of-pair: New file.
29304         * modules/unictype/property-combining: New file.
29305         * modules/unictype/property-composite: New file.
29306         * modules/unictype/property-decimal-digit: New file.
29307         * modules/unictype/property-numeric: New file.
29308         * modules/unictype/property-diacritic: New file.
29309         * modules/unictype/property-extender: New file.
29310         * modules/unictype/property-ignorable-control: New file.
29311         * modules/unictype/property-test: New file.
29312         * modules/unictype/property-byname: New file.
29313         * modules/unictype/property-all: New file.
29314         * modules/unictype/scripts: New file.
29315         * modules/unictype/scripts-all: New file.
29316         * modules/unictype/block-of: New file.
29317         * modules/unictype/block-test: New file.
29318         * modules/unictype/block-list: New file.
29319         * modules/unictype/block-all: New file.
29320         * modules/unictype/syntax-c-whitespace: New file.
29321         * modules/unictype/syntax-java-whitespace: New file.
29322         * modules/unictype/syntax-c-ident: New file.
29323         * modules/unictype/syntax-java-ident: New file.
29324         * modules/unictype/ctype-alnum: New file.
29325         * modules/unictype/ctype-alpha: New file.
29326         * modules/unictype/ctype-cntrl: New file.
29327         * modules/unictype/ctype-digit: New file.
29328         * modules/unictype/ctype-graph: New file.
29329         * modules/unictype/ctype-lower: New file.
29330         * modules/unictype/ctype-print: New file.
29331         * modules/unictype/ctype-punct: New file.
29332         * modules/unictype/ctype-space: New file.
29333         * modules/unictype/ctype-upper: New file.
29334         * modules/unictype/ctype-xdigit: New file.
29335         * modules/unictype/ctype-blank: New file.
29336         * lib/unictype/bidi_byname.c: New file.
29337         * lib/unictype/bidi_name.c: New file.
29338         * lib/unictype/bidi_of.c: New file.
29339         * lib/unictype/bidi_test.c: New file.
29340         * lib/unictype/bitmap.h: New file.
29341         * lib/unictype/block_test.c: New file.
29342         * lib/unictype/blocks.c: New file.
29343         * lib/unictype/categ_C.c: New file.
29344         * lib/unictype/categ_Cc.c: New file.
29345         * lib/unictype/categ_Cf.c: New file.
29346         * lib/unictype/categ_Cn.c: New file.
29347         * lib/unictype/categ_Co.c: New file.
29348         * lib/unictype/categ_Cs.c: New file.
29349         * lib/unictype/categ_L.c: New file.
29350         * lib/unictype/categ_Ll.c: New file.
29351         * lib/unictype/categ_Lm.c: New file.
29352         * lib/unictype/categ_Lo.c: New file.
29353         * lib/unictype/categ_Lt.c: New file.
29354         * lib/unictype/categ_Lu.c: New file.
29355         * lib/unictype/categ_M.c: New file.
29356         * lib/unictype/categ_Mc.c: New file.
29357         * lib/unictype/categ_Me.c: New file.
29358         * lib/unictype/categ_Mn.c: New file.
29359         * lib/unictype/categ_N.c: New file.
29360         * lib/unictype/categ_Nd.c: New file.
29361         * lib/unictype/categ_Nl.c: New file.
29362         * lib/unictype/categ_No.c: New file.
29363         * lib/unictype/categ_P.c: New file.
29364         * lib/unictype/categ_Pc.c: New file.
29365         * lib/unictype/categ_Pd.c: New file.
29366         * lib/unictype/categ_Pe.c: New file.
29367         * lib/unictype/categ_Pf.c: New file.
29368         * lib/unictype/categ_Pi.c: New file.
29369         * lib/unictype/categ_Po.c: New file.
29370         * lib/unictype/categ_Ps.c: New file.
29371         * lib/unictype/categ_S.c: New file.
29372         * lib/unictype/categ_Sc.c: New file.
29373         * lib/unictype/categ_Sk.c: New file.
29374         * lib/unictype/categ_Sm.c: New file.
29375         * lib/unictype/categ_So.c: New file.
29376         * lib/unictype/categ_Z.c: New file.
29377         * lib/unictype/categ_Zl.c: New file.
29378         * lib/unictype/categ_Zp.c: New file.
29379         * lib/unictype/categ_Zs.c: New file.
29380         * lib/unictype/categ_and.c: New file.
29381         * lib/unictype/categ_and_not.c: New file.
29382         * lib/unictype/categ_byname.c: New file.
29383         * lib/unictype/categ_name.c: New file.
29384         * lib/unictype/categ_none.c: New file.
29385         * lib/unictype/categ_of.c: New file.
29386         * lib/unictype/categ_or.c: New file.
29387         * lib/unictype/categ_test.c: New file.
29388         * lib/unictype/combining.c: New file.
29389         * lib/unictype/ctype_alnum.c: New file.
29390         * lib/unictype/ctype_alpha.c: New file.
29391         * lib/unictype/ctype_blank.c: New file.
29392         * lib/unictype/ctype_cntrl.c: New file.
29393         * lib/unictype/ctype_digit.c: New file.
29394         * lib/unictype/ctype_graph.c: New file.
29395         * lib/unictype/ctype_lower.c: New file.
29396         * lib/unictype/ctype_print.c: New file.
29397         * lib/unictype/ctype_punct.c: New file.
29398         * lib/unictype/ctype_space.c: New file.
29399         * lib/unictype/ctype_upper.c: New file.
29400         * lib/unictype/ctype_xdigit.c: New file.
29401         * lib/unictype/decdigit.c: New file.
29402         * lib/unictype/digit.c: New file.
29403         * lib/unictype/identsyntaxmap.h: New file.
29404         * lib/unictype/mirror.c: New file.
29405         * lib/unictype/numeric.c: New file.
29406         * lib/unictype/pr_alphabetic.c: New file.
29407         * lib/unictype/pr_ascii_hex_digit.c: New file.
29408         * lib/unictype/pr_bidi_arabic_digit.c: New file.
29409         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
29410         * lib/unictype/pr_bidi_block_separator.c: New file.
29411         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
29412         * lib/unictype/pr_bidi_common_separator.c: New file.
29413         * lib/unictype/pr_bidi_control.c: New file.
29414         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
29415         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
29416         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
29417         * lib/unictype/pr_bidi_european_digit.c: New file.
29418         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
29419         * lib/unictype/pr_bidi_left_to_right.c: New file.
29420         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
29421         * lib/unictype/pr_bidi_other_neutral.c: New file.
29422         * lib/unictype/pr_bidi_pdf.c: New file.
29423         * lib/unictype/pr_bidi_segment_separator.c: New file.
29424         * lib/unictype/pr_bidi_whitespace.c: New file.
29425         * lib/unictype/pr_byname.c: New file.
29426         * lib/unictype/pr_byname.gperf: New file.
29427         * lib/unictype/pr_combining.c: New file.
29428         * lib/unictype/pr_composite.c: New file.
29429         * lib/unictype/pr_currency_symbol.c: New file.
29430         * lib/unictype/pr_dash.c: New file.
29431         * lib/unictype/pr_decimal_digit.c: New file.
29432         * lib/unictype/pr_default_ignorable_code_point.c: New file.
29433         * lib/unictype/pr_deprecated.c: New file.
29434         * lib/unictype/pr_diacritic.c: New file.
29435         * lib/unictype/pr_extender.c: New file.
29436         * lib/unictype/pr_format_control.c: New file.
29437         * lib/unictype/pr_grapheme_base.c: New file.
29438         * lib/unictype/pr_grapheme_extend.c: New file.
29439         * lib/unictype/pr_grapheme_link.c: New file.
29440         * lib/unictype/pr_hex_digit.c: New file.
29441         * lib/unictype/pr_hyphen.c: New file.
29442         * lib/unictype/pr_id_continue.c: New file.
29443         * lib/unictype/pr_id_start.c: New file.
29444         * lib/unictype/pr_ideographic.c: New file.
29445         * lib/unictype/pr_ids_binary_operator.c: New file.
29446         * lib/unictype/pr_ids_trinary_operator.c: New file.
29447         * lib/unictype/pr_ignorable_control.c: New file.
29448         * lib/unictype/pr_iso_control.c: New file.
29449         * lib/unictype/pr_join_control.c: New file.
29450         * lib/unictype/pr_left_of_pair.c: New file.
29451         * lib/unictype/pr_line_separator.c: New file.
29452         * lib/unictype/pr_logical_order_exception.c: New file.
29453         * lib/unictype/pr_lowercase.c: New file.
29454         * lib/unictype/pr_math.c: New file.
29455         * lib/unictype/pr_non_break.c: New file.
29456         * lib/unictype/pr_not_a_character.c: New file.
29457         * lib/unictype/pr_numeric.c: New file.
29458         * lib/unictype/pr_other_alphabetic.c: New file.
29459         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
29460         * lib/unictype/pr_other_grapheme_extend.c: New file.
29461         * lib/unictype/pr_other_id_continue.c: New file.
29462         * lib/unictype/pr_other_id_start.c: New file.
29463         * lib/unictype/pr_other_lowercase.c: New file.
29464         * lib/unictype/pr_other_math.c: New file.
29465         * lib/unictype/pr_other_uppercase.c: New file.
29466         * lib/unictype/pr_paired_punctuation.c: New file.
29467         * lib/unictype/pr_paragraph_separator.c: New file.
29468         * lib/unictype/pr_pattern_syntax.c: New file.
29469         * lib/unictype/pr_pattern_white_space.c: New file.
29470         * lib/unictype/pr_private_use.c: New file.
29471         * lib/unictype/pr_punctuation.c: New file.
29472         * lib/unictype/pr_quotation_mark.c: New file.
29473         * lib/unictype/pr_radical.c: New file.
29474         * lib/unictype/pr_sentence_terminal.c: New file.
29475         * lib/unictype/pr_soft_dotted.c: New file.
29476         * lib/unictype/pr_space.c: New file.
29477         * lib/unictype/pr_terminal_punctuation.c: New file.
29478         * lib/unictype/pr_test.c: New file.
29479         * lib/unictype/pr_titlecase.c: New file.
29480         * lib/unictype/pr_unassigned_code_value.c: New file.
29481         * lib/unictype/pr_unified_ideograph.c: New file.
29482         * lib/unictype/pr_uppercase.c: New file.
29483         * lib/unictype/pr_variation_selector.c: New file.
29484         * lib/unictype/pr_white_space.c: New file.
29485         * lib/unictype/pr_xid_continue.c: New file.
29486         * lib/unictype/pr_xid_start.c: New file.
29487         * lib/unictype/pr_zero_width.c: New file.
29488         * lib/unictype/scripts.c: New file.
29489         * lib/unictype/sy_c_ident.c: New file.
29490         * lib/unictype/sy_c_whitespace.c: New file.
29491         * lib/unictype/sy_java_ident.c: New file.
29492         * lib/unictype/sy_java_whitespace.c: New file.
29493
29494         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
29495         Unicode 5.0.0.
29496         * lib/unictype/blocks.h: Likewise.
29497         * lib/unictype/categ_C.h: Likewise.
29498         * lib/unictype/categ_Cc.h: Likewise.
29499         * lib/unictype/categ_Cf.h: Likewise.
29500         * lib/unictype/categ_Cn.h: Likewise.
29501         * lib/unictype/categ_Co.h: Likewise.
29502         * lib/unictype/categ_Cs.h: Likewise.
29503         * lib/unictype/categ_L.h: Likewise.
29504         * lib/unictype/categ_Ll.h: Likewise.
29505         * lib/unictype/categ_Lm.h: Likewise.
29506         * lib/unictype/categ_Lo.h: Likewise.
29507         * lib/unictype/categ_Lt.h: Likewise.
29508         * lib/unictype/categ_Lu.h: Likewise.
29509         * lib/unictype/categ_M.h: Likewise.
29510         * lib/unictype/categ_Mc.h: Likewise.
29511         * lib/unictype/categ_Me.h: Likewise.
29512         * lib/unictype/categ_Mn.h: Likewise.
29513         * lib/unictype/categ_N.h: Likewise.
29514         * lib/unictype/categ_Nd.h: Likewise.
29515         * lib/unictype/categ_Nl.h: Likewise.
29516         * lib/unictype/categ_No.h: Likewise.
29517         * lib/unictype/categ_P.h: Likewise.
29518         * lib/unictype/categ_Pc.h: Likewise.
29519         * lib/unictype/categ_Pd.h: Likewise.
29520         * lib/unictype/categ_Pe.h: Likewise.
29521         * lib/unictype/categ_Pf.h: Likewise.
29522         * lib/unictype/categ_Pi.h: Likewise.
29523         * lib/unictype/categ_Po.h: Likewise.
29524         * lib/unictype/categ_Ps.h: Likewise.
29525         * lib/unictype/categ_S.h: Likewise.
29526         * lib/unictype/categ_Sc.h: Likewise.
29527         * lib/unictype/categ_Sk.h: Likewise.
29528         * lib/unictype/categ_Sm.h: Likewise.
29529         * lib/unictype/categ_So.h: Likewise.
29530         * lib/unictype/categ_Z.h: Likewise.
29531         * lib/unictype/categ_Zl.h: Likewise.
29532         * lib/unictype/categ_Zp.h: Likewise.
29533         * lib/unictype/categ_Zs.h: Likewise.
29534         * lib/unictype/categ_of.h: Likewise.
29535         * lib/unictype/combining.h: Likewise.
29536         * lib/unictype/ctype_alnum.h: Likewise.
29537         * lib/unictype/ctype_alpha.h: Likewise.
29538         * lib/unictype/ctype_blank.h: Likewise.
29539         * lib/unictype/ctype_cntrl.h: Likewise.
29540         * lib/unictype/ctype_digit.h: Likewise.
29541         * lib/unictype/ctype_graph.h: Likewise.
29542         * lib/unictype/ctype_lower.h: Likewise.
29543         * lib/unictype/ctype_print.h: Likewise.
29544         * lib/unictype/ctype_punct.h: Likewise.
29545         * lib/unictype/ctype_space.h: Likewise.
29546         * lib/unictype/ctype_upper.h: Likewise.
29547         * lib/unictype/ctype_xdigit.h: Likewise.
29548         * lib/unictype/decdigit.h: Likewise.
29549         * lib/unictype/digit.h: Likewise.
29550         * lib/unictype/mirror.h: Likewise.
29551         * lib/unictype/numeric.h: Likewise.
29552         * lib/unictype/pr_alphabetic.h: Likewise.
29553         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
29554         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
29555         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
29556         * lib/unictype/pr_bidi_block_separator.h: Likewise.
29557         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
29558         * lib/unictype/pr_bidi_common_separator.h: Likewise.
29559         * lib/unictype/pr_bidi_control.h: Likewise.
29560         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
29561         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
29562         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
29563         * lib/unictype/pr_bidi_european_digit.h: Likewise.
29564         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
29565         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
29566         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
29567         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
29568         * lib/unictype/pr_bidi_pdf.h: Likewise.
29569         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
29570         * lib/unictype/pr_bidi_whitespace.h: Likewise.
29571         * lib/unictype/pr_combining.h: Likewise.
29572         * lib/unictype/pr_composite.h: Likewise.
29573         * lib/unictype/pr_currency_symbol.h: Likewise.
29574         * lib/unictype/pr_dash.h: Likewise.
29575         * lib/unictype/pr_decimal_digit.h: Likewise.
29576         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
29577         * lib/unictype/pr_deprecated.h: Likewise.
29578         * lib/unictype/pr_diacritic.h: Likewise.
29579         * lib/unictype/pr_extender.h: Likewise.
29580         * lib/unictype/pr_format_control.h: Likewise.
29581         * lib/unictype/pr_grapheme_base.h: Likewise.
29582         * lib/unictype/pr_grapheme_extend.h: Likewise.
29583         * lib/unictype/pr_grapheme_link.h: Likewise.
29584         * lib/unictype/pr_hex_digit.h: Likewise.
29585         * lib/unictype/pr_hyphen.h: Likewise.
29586         * lib/unictype/pr_id_continue.h: Likewise.
29587         * lib/unictype/pr_id_start.h: Likewise.
29588         * lib/unictype/pr_ideographic.h: Likewise.
29589         * lib/unictype/pr_ids_binary_operator.h: Likewise.
29590         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
29591         * lib/unictype/pr_ignorable_control.h: Likewise.
29592         * lib/unictype/pr_iso_control.h: Likewise.
29593         * lib/unictype/pr_join_control.h: Likewise.
29594         * lib/unictype/pr_left_of_pair.h: Likewise.
29595         * lib/unictype/pr_line_separator.h: Likewise.
29596         * lib/unictype/pr_logical_order_exception.h: Likewise.
29597         * lib/unictype/pr_lowercase.h: Likewise.
29598         * lib/unictype/pr_math.h: Likewise.
29599         * lib/unictype/pr_non_break.h: Likewise.
29600         * lib/unictype/pr_not_a_character.h: Likewise.
29601         * lib/unictype/pr_numeric.h: Likewise.
29602         * lib/unictype/pr_other_alphabetic.h: Likewise.
29603         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
29604         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
29605         * lib/unictype/pr_other_id_continue.h: Likewise.
29606         * lib/unictype/pr_other_id_start.h: Likewise.
29607         * lib/unictype/pr_other_lowercase.h: Likewise.
29608         * lib/unictype/pr_other_math.h: Likewise.
29609         * lib/unictype/pr_other_uppercase.h: Likewise.
29610         * lib/unictype/pr_paired_punctuation.h: Likewise.
29611         * lib/unictype/pr_paragraph_separator.h: Likewise.
29612         * lib/unictype/pr_pattern_syntax.h: Likewise.
29613         * lib/unictype/pr_pattern_white_space.h: Likewise.
29614         * lib/unictype/pr_private_use.h: Likewise.
29615         * lib/unictype/pr_punctuation.h: Likewise.
29616         * lib/unictype/pr_quotation_mark.h: Likewise.
29617         * lib/unictype/pr_radical.h: Likewise.
29618         * lib/unictype/pr_sentence_terminal.h: Likewise.
29619         * lib/unictype/pr_soft_dotted.h: Likewise.
29620         * lib/unictype/pr_space.h: Likewise.
29621         * lib/unictype/pr_terminal_punctuation.h: Likewise.
29622         * lib/unictype/pr_titlecase.h: Likewise.
29623         * lib/unictype/pr_unassigned_code_value.h: Likewise.
29624         * lib/unictype/pr_unified_ideograph.h: Likewise.
29625         * lib/unictype/pr_uppercase.h: Likewise.
29626         * lib/unictype/pr_variation_selector.h: Likewise.
29627         * lib/unictype/pr_white_space.h: Likewise.
29628         * lib/unictype/pr_xid_continue.h: Likewise.
29629         * lib/unictype/pr_xid_start.h: Likewise.
29630         * lib/unictype/pr_zero_width.h: Likewise.
29631         * lib/unictype/scripts.h: Likewise.
29632         * lib/unictype/scripts_byname.gperf: Likewise.
29633         * lib/unictype/sy_c_ident.h: Likewise.
29634         * lib/unictype/sy_c_whitespace.h: Likewise.
29635         * lib/unictype/sy_java_ident.h: Likewise.
29636         * lib/unictype/sy_java_whitespace.h: Likewise.
29637
29638         * lib/unictype/Makefile: New file.
29639         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
29640         glibc.
29641         * lib/unictype/3level.h: New file, copied from glibc.
29642         * lib/unictype/3levelbit.h: New file.
29643
29644 2007-11-11  Bruno Haible  <bruno@clisp.org>
29645
29646         * modules/gperf: New file.
29647         * modules/iconv_open (Depends-on): Add it.
29648         (Makefile.am): Remove the GPERF definition.
29649
29650 2007-11-11  Bruno Haible  <bruno@clisp.org>
29651
29652         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
29653         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
29654
29655 2007-11-11  Bruno Haible  <bruno@clisp.org>
29656
29657         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
29658         (usage): Remove function.
29659
29660 2007-11-11  Bruno Haible  <bruno@clisp.org>
29661
29662         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
29663         gl_FUNC_CEILF_LIBS.
29664         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
29665         gl_FUNC_CEIL_LIBS.
29666         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
29667         gl_FUNC_CEILL_LIBS.
29668         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
29669         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
29670         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
29671
29672 2007-11-11  Bruno Haible  <bruno@clisp.org>
29673
29674         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
29675         roundf were declared but do not exist on functions.
29676         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
29677         roundl were declared but do not exist on functions.
29678         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
29679         HAVE_FLOORL_AND_CEILL, respectively.
29680         Needed for Sun C on Solaris 10.
29681
29682 2007-11-11  Bruno Haible  <bruno@clisp.org>
29683
29684         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
29685         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
29686         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
29687         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
29688         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
29689         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
29690         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
29691         HAVE_DECL_ROUNDF.
29692         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
29693         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
29694         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
29695         of HAVE_DECL_ROUND*.
29696         * modules/math (Makefile.am): Update.
29697
29698 2007-11-10  Bruno Haible  <bruno@clisp.org>
29699
29700         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
29701         ptrdiff_t as m4/intl.m4.
29702
29703 2007-11-10  Jim Meyering  <meyering@redhat.com>
29704
29705         Avoid link failure for the argmatch test.
29706         * tests/test-argmatch.c (usage): Define function to avoid a link
29707         failure: argmatch_die requires a usage function.
29708
29709 2007-11-09  Bruno Haible  <bruno@clisp.org>
29710
29711         * doc/functions/snprintf.texi: Mention BeOS deficiency.
29712         * doc/functions/vsnprintf.texi: Likewise.
29713         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
29714         with a size argument < 2.
29715
29716 2007-11-09  Bruno Haible  <bruno@clisp.org>
29717
29718         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
29719         buffer. Fixes an inefficiency introduced on 2007-11-03.
29720
29721 2007-11-09  Bruno Haible  <bruno@clisp.org>
29722
29723         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
29724         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
29725
29726 2007-11-08  Jim Meyering  <meyering@redhat.com>
29727
29728         Change cache variable name prefix "jm_" to "gl_" everywhere.
29729         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
29730         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
29731         * m4/uptime.m4: s/gl_/jm_/
29732
29733 2007-11-07  Bruno Haible  <bruno@clisp.org>
29734
29735         Update to GNU gettext 0.17.
29736         * m4/intl.m4: Update to GNU gettext 0.17.
29737         * m4/po.m4: Likewise.
29738         * modules/gettext (Files): Remove m4/ulonglong.m4.
29739         (configure.ac): Require gettext infrastructure from version 0.17.
29740
29741 2007-11-06  Bruno Haible  <bruno@clisp.org>
29742
29743         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
29744         symbolic values are not defined in a public header.
29745         * lib/freadable.c (freadable) [QNX]: Likewise.
29746         * lib/freadahead.c (freadahead) [QNX]: Likewise.
29747         * lib/freading.c (freading) [QNX]: Likewise.
29748         * lib/fseterr.c (fseterr) [QNX]: Likewise.
29749         * lib/fwritable.c (fwritable) [QNX]: Likewise.
29750         * lib/fwriting.c (fwriting) [QNX]: Likewise.
29751         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
29752         Reported by Alain Magloire.
29753
29754         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
29755
29756 2007-11-05  Bruno Haible  <bruno@clisp.org>
29757
29758         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
29759         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
29760         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
29761         Reported by Eric Blake.
29762
29763 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29764             Bruno Haible  <bruno@clisp.org>
29765
29766         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
29767         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
29768         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
29769         (malloc): Undefine also before including <stdlib.h>.
29770         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
29771         Needed on OSF/1 4.0.
29772
29773 2007-11-05  Jim Meyering  <meyering@redhat.com>
29774
29775         git-version-gen: sync from coreutils.
29776         * build-aux/git-version-gen: Add comments.
29777         Change the first '-' to '.' in the snapshot version string,
29778         e.g., 6.9-377-08144 -> 6.9.377-08144
29779         Remove first parameter.
29780         Don't declare a version "-dirty" merely because a time
29781         stamp has changed.
29782
29783 2007-11-04  Bruno Haible  <bruno@clisp.org>
29784
29785         * lib/lock.h: Protect all macro definitions containing an 'if'
29786         statement through a "do { ... } while (0)".
29787         * lib/tls.h: Likewise.
29788
29789 2007-11-04  Bruno Haible  <bruno@clisp.org>
29790
29791         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
29792
29793 2007-11-04  Bruno Haible  <bruno@clisp.org>
29794
29795         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
29796         * modules/fprintf-posix (Depends-on): Add nocrash.
29797         * modules/snprintf-posix (Depends-on): Likewise.
29798         * modules/sprintf-posix (Depends-on): Likewise.
29799         * modules/vasnprintf-posix (Depends-on): Likewise.
29800         * modules/vasprintf-posix (Depends-on): Likewise.
29801         * modules/vfprintf-posix (Depends-on): Likewise.
29802         * modules/vsnprintf-posix (Depends-on): Likewise.
29803         * modules/vsprintf-posix (Depends-on): Likewise.
29804         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
29805         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29806         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29807         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29808         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29809         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29810         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29811
29812 2007-11-04  Bruno Haible  <bruno@clisp.org>
29813
29814         * modules/nocrash: New file.
29815         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
29816         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
29817
29818 2007-11-04  Bruno Haible  <bruno@clisp.org>
29819
29820         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
29821         precision handling.
29822         * tests/test-vasprintf-posix.c (test_function): Likewise.
29823         * tests/test-snprintf-posix.h (test_function): Likewise.
29824         * tests/test-sprintf-posix.h (test_function): Likewise.
29825
29826         Fix *printf behaviour for large precisions on mingw and BeOS.
29827         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
29828         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
29829         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
29830         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
29831         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29832         gl_PRINTF_PRECISION and test its result. Invoke
29833         gl_PREREQ_VASNPRINTF_PRECISION.
29834         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29835         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29836         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29837         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29838         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29839         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29840         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29841         * doc/functions/fprintf.texi: Update.
29842         * doc/functions/printf.texi: Update.
29843         * doc/functions/snprintf.texi: Update.
29844         * doc/functions/sprintf.texi: Update.
29845         * doc/functions/vfprintf.texi: Update.
29846         * doc/functions/vprintf.texi: Update.
29847         * doc/functions/vsnprintf.texi: Update.
29848         * doc/functions/vsprintf.texi: Update.
29849
29850 2007-11-04  Bruno Haible  <bruno@clisp.org>
29851
29852         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
29853
29854 2007-11-04  Bruno Haible  <bruno@clisp.org>
29855
29856         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
29857         Reported by Sylvain Beucler <beuc@gnu.org>.
29858
29859 2007-11-03  Bruno Haible  <bruno@clisp.org>
29860
29861         * tests/test-fprintf-posix2.sh: New file.
29862         * tests/test-fprintf-posix2.c: New file.
29863         * modules/fprintf-posix-tests (Files): Add them.
29864         (TESTS): Add test-fprintf-posix2.sh.
29865         (configure.ac): Check for getrlimit and setrlimit.
29866         (check_PROGRAMS): Add test-fprintf-posix2.
29867
29868         * tests/test-printf-posix2.sh: New file.
29869         * tests/test-printf-posix2.c: New file.
29870         * modules/printf-posix-tests (Files): Add them.
29871         (TESTS): Add test-printf-posix2.sh.
29872         (configure.ac): Check for getrlimit and setrlimit.
29873         (check_PROGRAMS): Add test-printf-posix2.
29874
29875         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
29876         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
29877         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
29878         (decode_double): New function, copied from decode_long_double.
29879         (scale10_round_decimal_decoded): New function, extracted from
29880         scale10_round_decimal_long_double.
29881         (scale10_round_decimal_long_double): Use it.
29882         (scale10_round_decimal_double): New function.
29883         (floorlog10): New function.
29884         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
29885         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
29886         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
29887         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29888         gl_PRINTF_ENOMEM and test its result. Invoke
29889         gl_PREREQ_VASNPRINTF_ENOMEM.
29890         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29891         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29892         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29893         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29894         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29895         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29896         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29897         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
29898         * modules/snprintf-posix (Depends-on): Likewise.
29899         * modules/sprintf-posix (Depends-on): Likewise.
29900         * modules/vasnprintf-posix (Depends-on): Likewise.
29901         * modules/vasprintf-posix (Depends-on): Likewise.
29902         * modules/vfprintf-posix (Depends-on): Likewise.
29903         * modules/vsnprintf-posix (Depends-on): Likewise.
29904         * modules/vsprintf-posix (Depends-on): Likewise.
29905         * doc/functions/fprintf.texi: Update.
29906         * doc/functions/printf.texi: Update.
29907         * doc/functions/snprintf.texi: Update.
29908         * doc/functions/sprintf.texi: Update.
29909         * doc/functions/vfprintf.texi: Update.
29910         * doc/functions/vprintf.texi: Update.
29911         * doc/functions/vsnprintf.texi: Update.
29912         * doc/functions/vsprintf.texi: Update.
29913
29914 2007-11-03  Bruno Haible  <bruno@clisp.org>
29915
29916         * modules/frexp-nolibm-tests: New file.
29917
29918         * modules/frexp-nolibm: New file.
29919         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
29920
29921 2007-11-03  Bruno Haible  <bruno@clisp.org>
29922
29923         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
29924         value is C99 compliant.
29925         Needed for OSF/1 5.1.
29926
29927 2007-11-03  Bruno Haible  <bruno@clisp.org>
29928
29929         Fix out-of-memory handling of vasnprintf.
29930         * lib/printf-parse.c: Include <errno.h>.
29931         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
29932         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
29933         is already set.
29934
29935 2007-11-02  Eric Blake  <ebb9@byu.net>
29936
29937         Fix tests on cygwin.
29938         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
29939
29940 2007-11-01  Bruno Haible  <bruno@clisp.org>
29941
29942         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
29943         warning.
29944         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
29945         needed for POSIX compatibility.
29946
29947 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
29948
29949         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
29950         for compatibility with GNU.
29951
29952 2007-11-01  Bruno Haible  <bruno@clisp.org>
29953
29954         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
29955         (putenv): Renamed from rpl_putenv. Change argument type from
29956         'const char *' to 'char *'.
29957         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
29958         of defining putenv in config.h, just set REPLACE_PUTENV.
29959         * modules/putenv (Depends-on): Add stdlib.
29960         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29961         (Include): Use <stdlib.h>.
29962         * lib/stdlib.in.h (putenv): New declaration.
29963         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
29964         REPLACE_PUTENV.
29965         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
29966         REPLACE_PUTENV.
29967         Needed for MacOS X 10.5.0.
29968         Reported by Peter O'Gorman <peter@pogma.com>.
29969
29970 2007-11-01  Jim Meyering  <meyering@redhat.com>
29971
29972         Treat an empty date string exactly like "0".
29973         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
29974         if the remaining date string (to be parsed) is empty, use "0".
29975         Reported by Mischa Molhoek and discussed in this thread:
29976         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
29977
29978 2007-10-31  Bruno Haible  <bruno@clisp.org>
29979
29980         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
29981         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
29982         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
29983         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
29984         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
29985         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
29986
29987 2007-10-31  Bruno Haible  <bruno@clisp.org>
29988
29989         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
29990         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
29991         (AC_TYPE_LONG_LONG_INT): Use it.
29992         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
29993         it as well.
29994         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
29995         to m4/longlong.m4.
29996         * modules/stdint (Files): Remove m4/ulonglong.m4.
29997         * modules/strtoull (Files): Use m4/longlong.m4 instead of
29998         m4/ulonglong.m4.
29999         * modules/strtoumax (Files): Likewise.
30000
30001 2007-10-30  Bruno Haible  <bruno@clisp.org>
30002
30003         * modules/xvasprintf-posix: New file.
30004         Suggested by Eric Blake.
30005
30006 2007-10-30  Bruno Haible  <bruno@clisp.org>
30007
30008         * modules/xprintf-posix-tests: New file.
30009         * tests/test-xprintf-posix.sh: New file.
30010         * tests/test-xprintf-posix.c: New file.
30011         * tests/test-xfprintf-posix.c: New file.
30012
30013         * modules/xprintf-posix: New file.
30014
30015 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30016
30017         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
30018         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
30019         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
30020
30021 2007-10-29  Bruno Haible  <bruno@clisp.org>
30022
30023         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
30024         contain the special marker '_cv_'.
30025         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
30026         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
30027         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
30028         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
30029         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
30030         Reported by Ralf Wildenhues.
30031
30032 2007-10-29  Bruno Haible  <bruno@clisp.org>
30033
30034         * gnulib-tool (func_import): When --lgpl is not specified, set
30035         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
30036         GPLv3.
30037         Reported by Simon Josefsson.
30038
30039 2007-10-28  Bruno Haible  <bruno@clisp.org>
30040
30041         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
30042         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
30043         HAVE_DECL_ISFINITE.
30044         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
30045         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
30046         HAVE_DECL_ISFINITE.
30047
30048 2007-10-28  Bruno Haible  <bruno@clisp.org>
30049
30050         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
30051         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
30052
30053 2007-10-28  Bruno Haible  <bruno@clisp.org>
30054
30055         Fix link errors with Sun C 5.0 on Solaris 10.
30056         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
30057         function is declared but not present in the compiler's libm.
30058         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
30059         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
30060         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
30061         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
30062         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
30063         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
30064         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
30065         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
30066         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
30067         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
30068         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
30069         HAVE_DECL_FLOORL.
30070
30071 2007-10-28  Bruno Haible  <bruno@clisp.org>
30072
30073         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
30074         gl_FUNC_FLOORL. Cache the result.
30075         (gl_FUNC_FLOORL): Use it.
30076         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
30077         gl_FUNC_CEILL. Cache the result.
30078         (gl_FUNC_CEILL): Use it.
30079
30080         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
30081         gl_FUNC_FLOOR. Cache the result.
30082         (gl_FUNC_FLOOR): Use it.
30083         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
30084         gl_FUNC_CEIL. Cache the result.
30085         (gl_FUNC_CEIL): Use it.
30086
30087         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
30088         gl_FUNC_FLOORF. Cache the result.
30089         (gl_FUNC_FLOORF): Use it.
30090         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
30091         gl_FUNC_CEILF. Cache the result.
30092         (gl_FUNC_CEILF): Use it.
30093
30094 2007-10-28  Bruno Haible  <bruno@clisp.org>
30095
30096         * gnulib-tool: Allow specifying the LGPL version number through
30097         --lgpl=2 or --lgpl=3.
30098         (func_usage): Document --lgpl with argument.
30099         Handle --lgpl=... arguments.
30100         (func_import): Recognize also gl_LGPL calls with an argument. When
30101         --lgpl=2 is used and the module's license is just LGPL, report an
30102         error. Set sed_transform_lib_file according to the lgpl variable. In
30103         the generated files, use --lgpl or gl_LGPL invocations with argument,
30104         if necessary.
30105         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
30106         an LGPv2+ license.
30107         * doc/gnulib-tool.texi (Modified imports): Update explanation of
30108         gl_LGPL macro.
30109
30110 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30111             Bruno Haible  <bruno@clisp.org>
30112
30113         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
30114         (u16_uctomb_aux): Likewise.
30115         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
30116         !HAVE_INLINE.
30117         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
30118
30119 2007-10-28  Bruno Haible  <bruno@clisp.org>
30120
30121         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
30122         Invoke AM_GETTEXT_OPTION if it exists.
30123         * modules/vasprintf: Likewise.
30124         * modules/verror: Likewise.
30125         * modules/xprintf: Likewise.
30126         * modules/xvasprintf: Likewise.
30127
30128 2007-10-27  Ben Pfaff  <blp@gnu.org>
30129
30130         * lib/math.in.h: Define isfinite macro and prototypes for
30131         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
30132         implementations.
30133         * m4/math_h.m4: New substitutions for isfinite module.
30134         * lib/isfinite.c: New file.
30135         * m4/isfinite.m4: New file.
30136         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
30137         * modules/isfinite: New file.
30138         * modules/isfinite-tests: New file.
30139         * tests/tests-isfinite.c: New file.
30140         * doc/functions/isfinite.texi: Mention isfinite module.
30141         * MODULES.html.sh: Mention new module.
30142
30143 2007-10-27  Ben Pfaff  <blp@gnu.org>
30144
30145         Ralf Wildenhues reported that Tru64 4.0D declares the round
30146         functions but does not have definitions.
30147         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
30148         cannot be found in any library, set the output variable to
30149         "missing" instead of "".
30150         * m4/round.m4: Also use our substitute if we cannot find round in
30151         any library, even if it is declared.
30152         * m4/roundf.m4: Likewise for roundf.
30153         * m4/roundl.m4: Likewise for roundl.
30154         * lib/math.in.h: Undefine roundf, round, roundl before defining
30155         their replacements, to allow for hypothetical systems where these
30156         may be defined as macros but not available in libraries.
30157
30158 2007-10-27  Bruno Haible  <bruno@clisp.org>
30159
30160         * doc/gnulib.texi: Invoke @firstparagraphindent.
30161         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
30162         changes in gnulib.
30163         (Source changes): New section.
30164
30165 2007-10-26  Bruno Haible  <bruno@clisp.org>
30166
30167         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
30168         borrowed from autoconf.
30169
30170 2007-10-26  Bruno Haible  <bruno@clisp.org>
30171
30172         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
30173         strerror returned the empty string. Needed on HP-UX 11.00.
30174
30175 2007-10-24  Micah Cowan  <micah@cowan.name>
30176
30177         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
30178         * build-aux/bootstrap: Remove support for now-unnecessary option,
30179         --cvs-user, and envvars CVS_USER, CVS_RSH.
30180
30181 2007-10-24  Jim Meyering  <meyering@redhat.com>
30182
30183         Avoid diagnostics from sha1sum when there is no cached checksum.
30184         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
30185         if the po.s1 file hasn't been created yet.
30186
30187         * build-aux/bootstrap: Sync from coreutils:
30188         2007-10-24  Jim Meyering  <meyering@redhat.com>
30189         Get gnulib from the git repository, not from an obsolete cvs one.
30190         * build-aux/bootstrap: Suggestion from Micah Cowan.
30191         2007-10-04  Jim Meyering  <jim@meyering.net>
30192         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
30193         (update_po_files): Work also when there are no .po files in po/.
30194
30195 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
30196
30197         * README: Append ".git" to git and cg examples.
30198         Problem reported by Benoit Sigoure.
30199
30200 2007-10-23  Micah Cowan  <micah@cowan.name>
30201
30202         * users.txt: Add wget.
30203
30204 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30205
30206         Fix linking of some unistdio tests on FreeBSD.
30207         * modules/unistdio/u16-vsnprintf-tests
30208         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
30209         * modules/unistdio/u16-vsprintf-tests
30210         (test_u16_vsnprintf1_LDADD): Likewise.
30211         * modules/unistdio/u32-vsnprintf-tests
30212         (test_u32_vsnprintf1_LDADD): Likewise.
30213         * modules/unistdio/u32-vsprintf-tests
30214         (test_u32_vsprintf1_LDADD): Likewise.
30215         * modules/unistdio/u8-vsnprintf-tests
30216         (test_u8_vsnprintf1_LDADD): Likewise.
30217         * modules/unistdio/u8-vsprintf-tests
30218         (test_u8_vsprintf1_LDADD): Likewise.
30219         * modules/unistdio/ulc-vsnprintf-tests
30220         (test_ulc_vsnprintf1_LDADD): Likewise.
30221         * modules/unistdio/ulc-vsprintf-tests
30222         (test_ulc_vsprintf1_LDADD): Likewise.
30223
30224         Fix linking of some uniconv tests on FreeBSD.
30225         * modules/uniconv/u16-conv-from-enc-tests
30226         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
30227         * modules/uniconv/u16-conv-to-enc-tests
30228         (test_u16_conv_to_enc_LDADD): Likewise.
30229         * modules/uniconv/u16-strconv-from-enc-tests
30230         (test_u16_strconv_from_enc_LDADD): Likewise.
30231         * modules/uniconv/u16-strconv-to-enc-tests
30232         (test_u16_strconv_to_enc_LDADD): Likewise.
30233         * modules/uniconv/u32-conv-from-enc-tests
30234         (test_u32_conv_from_enc_LDADD): Likewise.
30235         * modules/uniconv/u32-conv-to-enc-tests
30236         (test_u32_conv_to_enc_LDADD): Likewise.
30237         * modules/uniconv/u32-strconv-from-enc-tests
30238         (test_u32_strconv_from_enc_LDADD): Likewise.
30239         * modules/uniconv/u32-strconv-to-enc-tests
30240         (test_u32_strconv_to_enc_LDADD): Likewise.
30241         * modules/uniconv/u8-conv-from-enc-tests
30242         (test_u8_conv_from_enc_LDADD): Likewise.
30243         * modules/uniconv/u8-conv-to-enc-tests
30244         (test_u8_conv_to_enc_LDADD): Likewise.
30245         * modules/uniconv/u8-strconv-from-enc-tests
30246         (test_u8_strconv_from_enc_LDADD): Likewise.
30247         * modules/uniconv/u8-strconv-to-enc-tests
30248         (test_u8_strconv_to_enc_LDADD): Likewise.
30249
30250 2007-10-22  Bruno Haible  <bruno@clisp.org>
30251
30252         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
30253         size.
30254
30255 2007-10-22  Eric Blake  <ebb9@byu.net>
30256
30257         Tweak x*printf documentation.
30258         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
30259         variable name and comments.
30260         Suggested by Bruno Haible.
30261
30262 2007-10-22  Bruno Haible  <bruno@clisp.org>
30263
30264         * lib/acl.c (copy_acl): Fix file name in comment.
30265
30266 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
30267
30268         Fix Tru64 problem with stdbool.h.
30269         * lib/stdbool.in.h (false, true):
30270         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
30271         Don't declare as an enum in this situation; it runs afoul of Tru64.
30272         Problem reported by Steven M. Schweda in
30273         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
30274
30275 2007-10-22  Eric Blake  <ebb9@byu.net>
30276
30277         Also wrap vf?printf.
30278         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
30279         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
30280         (xvprintf, xvfprintf): New functions.
30281
30282 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30283
30284         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
30285         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
30286
30287         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
30288         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
30289
30290 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
30291
30292         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
30293         by Bruno Haible.
30294
30295 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30296
30297         * lib/getloadavg.c
30298         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
30299         Undef `sys' after including sys/table.h, for Tru64 4.0D.
30300
30301         * tests/test-i-ring.c: Work for C89.
30302
30303 2007-10-22  Bruno Haible  <bruno@clisp.org>
30304
30305         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
30306         -1u, in preprocessor expression, so that we don't test for the bug
30307         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
30308         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
30309
30310 2007-10-22  Eric Blake  <ebb9@byu.net>
30311
30312         * tests/test-yesno.sh: Silence stderr during test.
30313
30314 2007-10-22  Simon Josefsson  <simon@josefsson.org>
30315
30316         * modules/crypto/gc-camellia: New file.
30317
30318         * m4/gc-camellia.m4: New file.
30319
30320         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
30321
30322         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
30323
30324 2007-10-22  Simon Josefsson  <simon@josefsson.org>
30325
30326         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
30327         --help to stdout.  Reported by sms@antinode.org (Steven
30328         M. Schweda).
30329
30330 2007-10-22  Simon Josefsson  <simon@josefsson.org>
30331
30332         * users.txt: Fix link to libksba.
30333
30334 2007-10-21  Ben Pfaff  <blp@gnu.org>
30335
30336         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
30337         round.c roundf implementation that depends on floorf and ceilf to
30338         be tested unconditionally.
30339
30340 2007-10-21  Ben Pfaff  <blp@gnu.org>
30341
30342         * m4/check-libm-func.m4: Removed.
30343         * m4/check-math-lib.m4: New file.
30344         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
30345         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
30346         definition and lack of AC_LIBOBJ([roundf]).
30347         * m4/roundl.m4: Ditto, and similarly for roundl.
30348         * modules/round: Reference new m4 file.
30349         * modules/roundf: Ditto.
30350         * modules/roundl: Ditto.
30351         * tests/test-round2.c (main): Use ROUND instead of round.
30352         Bug report from Bruno Haible.
30353
30354 2007-10-21  Bruno Haible  <bruno@clisp.org>
30355
30356         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
30357         context.
30358
30359 2007-10-21  Bruno Haible  <bruno@clisp.org>
30360
30361         * tests/test-wcwidth.c (main): Allow negative result for some control
30362         characters.
30363
30364         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
30365         Needed on OSF/1 5.1.
30366
30367 2007-10-21  Bruno Haible  <bruno@clisp.org>
30368
30369         * tests/test-floorf1.c: Include isnanf.h.
30370         (main): Use isnanf() instead of isnan().
30371         * tests/test-ceilf1.c: Include isnanf.h.
30372         (main): Use isnanf() instead of isnan().
30373         * tests/test-truncf1.c: Include isnanf.h.
30374         (main): Use isnanf() instead of isnan().
30375         * tests/test-roundf1.c: Include isnanf.h.
30376         (main): Use isnanf() instead of isnan().
30377
30378 2007-10-21  Eric Blake  <ebb9@byu.net>
30379
30380         * users.txt: Update URL for m4.
30381
30382 2007-10-21  Bruno Haible  <bruno@clisp.org>
30383
30384         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
30385
30386 2007-10-21  Bruno Haible  <bruno@clisp.org>
30387
30388         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
30389         Git's management files if the CVS files are not present.
30390
30391 2007-10-20  Bruno Haible  <bruno@clisp.org>
30392
30393         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
30394         gcc-3.4.x.
30395
30396 2007-10-20  Ben Pfaff  <blp@gnu.org>
30397
30398         * lib/math.in.h: Declare round, roundf, roundl if we are providing
30399         implementations.
30400         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
30401         * lib/round.c: New file.
30402         * lib/roundf.c: New file.
30403         * lib/roundl.c: New file.
30404         * m4/round.m4: New file.
30405         * m4/roundf.m4: New file.
30406         * m4/roundl.m4: New file.
30407         * m4/check-libm-func-m4: New file.
30408         * modules/math: Replace round, roundf, roundl related @VARS@ in
30409         math.in.h.
30410         * modules/round: New file.
30411         * modules/round-tests: New file.
30412         * modules/roundf: New file.
30413         * modules/roundf-tests: New file.
30414         * modules/roundl: New file.
30415         * modules/roundl-tests: New file.
30416         * tests/test-round1.c: New file.
30417         * tests/test-round2.c: New file.
30418         * tests/test-roundf1.c: New file.
30419         * tests/test-roundf2.c: New file.
30420         * tests/test-roundl.c: New file.
30421         * doc/functions/round.texi: Mention round module.
30422         * doc/functions/roundf.texi: Mention roundf module.
30423         * doc/functions/roundl.texi: Mention roundl module.
30424         * MODULES.html.sh: Mention new modules.
30425         Thanks to Bruno Haible for suggestions.
30426
30427 2007-10-20  Jim Meyering  <meyering@redhat.com>
30428
30429         * lib/xprintf.c: Include <config.h> unconditionally.
30430
30431         Change xprintf's license to GPL.
30432         * modules/xprintf (License): s/LGPL/GPL/, since this module
30433         depends on modules (exit and exitfail) which are GPL.
30434         Suggestion from Bruno Haible.
30435
30436         xprintf fixes.
30437         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
30438         Use a clearer diagnostic.
30439         Patch from Bruno Haible.
30440
30441 2007-10-20  Bruno Haible  <bruno@clisp.org>
30442
30443         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
30444         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
30445         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30446
30447 2007-10-20  Bruno Haible  <bruno@clisp.org>
30448
30449         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
30450         precision in the comparison result > x - 1 or similar.
30451         * tests/test-ceilf2.c (correct_result_p): Likewise.
30452         * tests/test-truncf2.c (correct_result_p): Likewise.
30453         * tests/test-trunc2.c (correct_result_p): Likewise.
30454         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30455
30456 2007-10-20  Bruno Haible  <bruno@clisp.org>
30457
30458         * modules/ceil: New file.
30459         * m4/ceil.m4: New file.
30460         * doc/functions/ceil.texi: Mention the 'ceil' module.
30461
30462 2007-10-20  Bruno Haible  <bruno@clisp.org>
30463
30464         * modules/floor: New file.
30465         * m4/floor.m4: New file.
30466         * doc/functions/floor.texi: Mention the 'floor' module.
30467
30468 2007-10-20  Bruno Haible  <bruno@clisp.org>
30469
30470         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
30471         of %a.
30472         * modules/floorf-tests (Depends-on): Likewise.
30473         * modules/truncf-tests (Depends-on): Likewise.
30474         * modules/trunc-tests (Depends-on): Likewise.
30475         Reported by Ben Pfaff.
30476
30477 2007-10-19  Jim Meyering  <meyering@redhat.com>
30478
30479         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
30480         Don't bother testing specific errno values.  Just test ferror.
30481
30482         New module: xprintf
30483         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
30484
30485 2007-10-19  Bruno Haible  <bruno@clisp.org>
30486
30487         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
30488         syntax.
30489         * modules/javaexec (Makefile.am): Likewise.
30490         * modules/relocatable-prog (Makefile.am): Likewise.
30491         Suggested by Jim Meyering.
30492
30493 2007-10-18  Bruno Haible  <bruno@clisp.org>
30494
30495         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
30496         Reported by Jim Meyering.
30497
30498 2007-10-18  Eric Blake  <ebb9@byu.net>
30499
30500         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
30501
30502 2007-10-18  Bruno Haible  <bruno@clisp.org>
30503
30504         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
30505         the format string into writable memory. Needed in Fortify conditions.
30506
30507 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
30508             Bruno Haible  <bruno@clisp.org>
30509
30510         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
30511         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
30512         * modules/trim (Depends-on): Add mbchar.
30513         (configure.ac): Add gl_FUNC_MBRTOWC.
30514         (Makefile.am): Augment lib_SOURCES.
30515
30516 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
30517
30518         Modify glob.c to use fstatat and dirfd, to simplify it.
30519         Suggested by Eric Blake.
30520         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
30521         Don't include <stdbool.h>; not used.
30522         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
30523         (link_exists_p): Simplify implementation, since we can now assume
30524         dirfd and fstatat.
30525         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
30526
30527 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30528
30529         * gnulib-tool (func_get_dependencies): Fix sed script to
30530         match only tests.
30531
30532 2007-10-17  Bruno Haible  <bruno@clisp.org>
30533
30534         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
30535         allow locale names without encoding suffix.
30536         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
30537         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
30538
30539 2007-10-16  Bruno Haible  <bruno@clisp.org>
30540
30541         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
30542         * lib/getgroups.c (getgroups): Likewise.
30543         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
30544
30545 2007-10-16  Bruno Haible  <bruno@clisp.org>
30546
30547         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
30548         * modules/malloc-posix (License): Likewise.
30549         * modules/realloc-posix (License): Likewise.
30550         * modules/calloc-posix (License): Likewise.
30551         * modules/intprops (License): Change from GPL to LGPL, with
30552         Paul Eggert's approval.
30553
30554 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
30555
30556         Merge glibc changes into lib/glob.c.
30557
30558         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
30559         2007-10-15 04:59:03 UTC.  Here are the changes:
30560
30561         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
30562
30563         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
30564
30565         * lib/glob.c: Add some branch prediction throughout.
30566
30567         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
30568
30569         [BZ #5103]
30570         * lib/glob.c (glob): Recognize patterns starting \/.
30571
30572         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
30573
30574         [BZ #3996]
30575         * lib/glob.c (attribute_hidden): Define if not defined.
30576         (glob): Unescape dirname, filename or username when needed and not
30577         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
30578         is NULL.  Handle unescaped [ in pattern without closing ].
30579         Don't pass GLOB_CHECK down to recursive glob for directories.
30580         (__glob_pattern_type): New function.
30581         (__glob_pattern_p): Implement using __glob_pattern_type.
30582         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
30583         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
30584         Remove unreachable code.
30585
30586         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
30587
30588         * lib/glob.c (glob_in_dir): Add some comments and asserts to
30589         explain why there are no leaks.
30590
30591         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
30592
30593         [BZ #3253]
30594         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
30595         time, rather allocate increasingly bigger arrays of pointers, if
30596         possible with alloca, if too large with malloc.
30597
30598 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
30599
30600         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
30601         Problem reported by H.Merijn Brand in
30602         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
30603         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
30604         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
30605
30606 2007-10-15  Bruno Haible  <bruno@clisp.org>
30607
30608         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
30609         with explicit rpl_ prefix.
30610         * lib/fopen.c (fopen): Likewise.
30611         * lib/freopen.c (freopen): Likewise.
30612         * lib/iconv.c (iconv): Likewise.
30613         * lib/iconv_close.c (iconv_close): Likewise.
30614
30615 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30616
30617         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
30618
30619 2007-10-15  Bruno Haible  <bruno@clisp.org>
30620
30621         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
30622         <stddef.h> instead of <stdlib.h> since we only need NULL.
30623         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30624
30625 2007-10-15  Bruno Haible  <bruno@clisp.org>
30626
30627         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
30628         Replace paragraph talking about LIBOBJS.
30629         Reported by Colin Watson <cjwatson@debian.org>.
30630
30631 2007-10-15  Bruno Haible  <bruno@clisp.org>
30632
30633         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
30634         <stdlib.h> before using NULL.
30635
30636 2007-10-15  Simon Josefsson  <simon@josefsson.org>
30637
30638         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
30639         Reported by Albert Chin <china@thewrittenword.com>.
30640
30641 2007-10-14  Bruno Haible  <bruno@clisp.org>
30642
30643         * modules/iconv_open-utf-tests: New file.
30644         * tests/test-iconv-utf.c: New file.
30645
30646         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
30647         * modules/iconv_open-utf: New file.
30648         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
30649         (iconv, iconv_close): New declarations.
30650         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
30651         be defined.
30652         (iconv_open): Add special handling of conversion between UTF-8 and
30653         UTF-{16,32}{BE,LE}.
30654         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
30655         * lib/iconv_close.c: New file.
30656         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
30657         gl_FUNC_ICONV_OPEN.
30658         (gl_FUNC_ICONV_OPEN): Use it.
30659         (gl_FUNC_ICONV_OPEN_UTF): New macro.
30660         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
30661         and REPLACE_ICONV_UTF.
30662         * modules/iconv_open (Depends-on): Add c-strcase.
30663         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
30664         ICONV_CONST.
30665         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
30666
30667 2007-10-13  Albert Chin  <china@thewrittenword.com>
30668             Bruno Haible  <bruno@clisp.org>
30669
30670         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
30671         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
30672
30673 2007-10-13  Bruno Haible  <bruno@clisp.org>
30674
30675         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
30676         defined, use the ISO C99 inline semantics.
30677         * lib/argp.h (ARGP_EI): Likewise.
30678
30679 2007-10-13  Bruno Haible  <bruno@clisp.org>
30680
30681         Handle 'inline' change in gcc 4.3.0.
30682         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
30683         argp_fmtstream_write, argp_fmtstream_set_lmargin,
30684         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
30685         argp_fmtstream_point): Disable 'extern' declaration if the function
30686         definition is going to be provided inline.
30687         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
30688         semantics, not the ISO C99 inline semantics.
30689         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
30690         'extern' declaration if the function definition is going to be provided
30691         inline.
30692         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
30693         the GNU C inline semantics, not the ISO C99 inline semantics. With
30694         GCC 4.2, avoid a warning.
30695
30696 2007-10-13  Bruno Haible  <bruno@clisp.org>
30697
30698         * lib/freading.h (freading): Enable the use of __freading for
30699         glibc >= 2.7.
30700         * lib/freading.c (freading): Likewise.
30701
30702 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
30703
30704         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
30705         "warning: C99 inline functions are not supported; using GNU89".
30706
30707 2007-10-12  Bruno Haible  <bruno@clisp.org>
30708
30709         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
30710         of 2.
30711         * tests/test-ceilf2.c: New file.
30712         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
30713
30714         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
30715         * modules/ceilf-tests: Update.
30716
30717 2007-10-12  Bruno Haible  <bruno@clisp.org>
30718
30719         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
30720         of 2.
30721         * tests/test-floorf2.c: New file.
30722         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
30723
30724         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
30725         * modules/floorf-tests: Update.
30726
30727 2007-10-12  Bruno Haible  <bruno@clisp.org>
30728
30729         * tests/test-trunc2.c: New file.
30730         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
30731
30732         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
30733         * modules/trunc-tests: Update.
30734
30735 2007-10-12  Bruno Haible  <bruno@clisp.org>
30736
30737         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
30738         of 2.
30739         * tests/test-truncf2.c: New file.
30740         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
30741
30742         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
30743         * modules/truncf-tests: Update.
30744
30745 2007-10-11  Eric Blake  <ebb9@byu.net>
30746
30747         Don't claim strerror is broken on Interix.
30748         * doc/functions/strerror.texi (strerror): Known broken systems are
30749         now Solaris 8, and not Interix.
30750         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
30751         Interix on cross-compile.
30752         Reported by Martin Koeppe in
30753         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
30754
30755 2007-10-11  Bruno Haible  <bruno@clisp.org>
30756
30757         * modules/i-ring-tests: New file.
30758         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
30759         instead of assert.
30760
30761 2007-10-11  Bruno Haible  <bruno@clisp.org>
30762
30763         * modules/filenamecat-tests: New file.
30764         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
30765         * lib/filenamecat.c: Remove test code.
30766
30767 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
30768
30769         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
30770
30771         * lib/strerror.c: Include <string.h> always, to test interface,
30772         and to remove the need for the dummy.
30773         Include intprops.h to compute width instead of doing it ourselves
30774         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
30775         (strerror): Define it to return NULL if there's no system strerror.
30776         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
30777         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
30778         ancient pre-strerror Unix systems well any more.  Saying "unknown
30779         system error" is enough.
30780         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
30781         simpler strerror.c implementation.
30782         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
30783         Simplify the tests to reflect the simpler strerror implementation.
30784         * modules/strerror (Depends-on): Add intprops.
30785
30786 2007-10-09  Eric Blake  <ebb9@byu.net>
30787
30788         Silence test-fpending.
30789         * modules/fpending-tests (Files): Add wrapper script.
30790         * tests/test-fpending.sh: New file.
30791
30792 2007-10-09  Bruno Haible  <bruno@clisp.org>
30793
30794         * MODULES.html.sh (func_module): Don't create a hyperlink for
30795         function names like 'printf_frexp'.
30796         (Misc): Add crc, memxor.
30797         (Characteristics of floating types): New section.
30798         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
30799         isnanf-nolibm, signbit, trunc, truncf, truncl.
30800         (Enhancements for ISO C 99 functions): New subsection Input/output.
30801         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
30802         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
30803         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
30804         (Compatibility checks for POSIX:2001 functions): Add clock-time.
30805         (Enhancements for POSIX:2001 functions): Add chdir-long.
30806         (File system functions): Add areadlink, chdir-safer, read-file.
30807         Remove cycle-check.
30808         (File system as inode set): New section.
30809         (Date and time): Add gethrxtime.
30810         (Multithreading): Add openmp.
30811         (Internationalization functions): Add localename.
30812         (Unicode string functions): Add unistr/u*-mbsnlen.
30813         (Support for maintaining and releasing projects): Add git-version-gen.
30814         (Lone files): Remove directories.
30815
30816 2007-10-08  Ben Pfaff  <blp@gnu.org>
30817
30818         * lib/xmalloca.h: Fix typo in comment.
30819
30820 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
30821
30822         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
30823         when avoiding problems with integer overflow.  Use a portable test
30824         instead.
30825
30826 2007-10-08  Simon Josefsson  <simon@josefsson.org>
30827
30828         * modules/dummy (License): Change to LGPLv2+.
30829         * modules/float (License): Likewise
30830         * modules/realloc (License): Likewise
30831         * modules/stdlib (License): Likewise
30832
30833 2007-10-07  Bruno Haible  <bruno@clisp.org>
30834
30835         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
30836         * floor.c (TWO_MANT_DIG): Likewise.
30837         * ceil.c (TWO_MANT_DIG): Likewise.
30838         Reported by Ben Pfaff.
30839
30840 2007-10-07  Bruno Haible  <bruno@clisp.org>
30841
30842         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
30843         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
30844         * lib/frexp.c (FUNC): Likewise.
30845         * lib/printf-frexp.h (printf_frexp): Likewise.
30846         * lib/printf-frexpl.h (printf_frexpl): Likewise.
30847         * lib/printf-frexp.c (FUNC): Likewise.
30848         Suggested by Jim Meyering.
30849
30850 2007-10-07  Jim Meyering  <meyering@redhat.com>
30851
30852         Make xnanosleep's integer overflow test more robust.
30853         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
30854         so that gcc-4.3.0 doesn't optimize away this test for overflow.
30855
30856 2007-10-07  Bruno Haible  <bruno@clisp.org>
30857
30858         * NEWS: Mention the license change.
30859
30860         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
30861         abbreviations in the modules files.
30862
30863         Change copyright notice from GPLv2+ to GPLv3+.
30864         * README: Change copyright notice.
30865         * MODULES.html.sh: Likewise.
30866         * build-aux/bootstrap.conf: Likewise.
30867         * build-aux/config.libpath: Likewise.
30868         * build-aux/csharpcomp.sh.in: Likewise.
30869         * build-aux/csharpexec.sh.in: Likewise.
30870         * build-aux/install-reloc: Likewise.
30871         * build-aux/javacomp.sh.in: Likewise.
30872         * build-aux/javaexec.sh.in: Likewise.
30873         * build-aux/ldd.sh.in: Likewise.
30874         * build-aux/reloc-ldflags: Likewise.
30875         * build-aux/relocatable.sh.in: Likewise.
30876         * build-aux/x-to-1.in: Likewise.
30877         * check-module: Likewise.
30878         * config/srclistvars.sh: Likewise.
30879         * gnulib-tool: Likewise.
30880         * lib/acl-internal.h: Likewise.
30881         * lib/acl.c: Likewise.
30882         * lib/acl.h: Likewise.
30883         * lib/acl_entries.c: Likewise.
30884         * lib/areadlink-with-size.c: Likewise.
30885         * lib/areadlink.c: Likewise.
30886         * lib/areadlink.h: Likewise.
30887         * lib/argmatch.c: Likewise.
30888         * lib/argmatch.h: Likewise.
30889         * lib/argp-ba.c: Likewise.
30890         * lib/argp-eexst.c: Likewise.
30891         * lib/argp-fmtstream.c: Likewise.
30892         * lib/argp-fmtstream.h: Likewise.
30893         * lib/argp-fs-xinl.c: Likewise.
30894         * lib/argp-help.c: Likewise.
30895         * lib/argp-namefrob.h: Likewise.
30896         * lib/argp-parse.c: Likewise.
30897         * lib/argp-pin.c: Likewise.
30898         * lib/argp-pv.c: Likewise.
30899         * lib/argp-pvh.c: Likewise.
30900         * lib/argp-xinl.c: Likewise.
30901         * lib/argp.h: Likewise.
30902         * lib/at-func.c: Likewise.
30903         * lib/atanl.c: Likewise.
30904         * lib/backupfile.c: Likewise.
30905         * lib/backupfile.h: Likewise.
30906         * lib/basename.c: Likewise.
30907         * lib/binary-io.h: Likewise.
30908         * lib/byteswap.in.h: Likewise.
30909         * lib/c-stack.c: Likewise.
30910         * lib/c-stack.h: Likewise.
30911         * lib/c-strcasestr.c: Likewise.
30912         * lib/c-strcasestr.h: Likewise.
30913         * lib/c-strstr.c: Likewise.
30914         * lib/c-strstr.h: Likewise.
30915         * lib/c-strtod.c: Likewise.
30916         * lib/calloc.c: Likewise.
30917         * lib/canon-host.c: Likewise.
30918         * lib/canon-host.h: Likewise.
30919         * lib/canonicalize-lgpl.c: Likewise.
30920         * lib/canonicalize.c: Likewise.
30921         * lib/canonicalize.h: Likewise.
30922         * lib/ceil.c: Likewise.
30923         * lib/ceilf.c: Likewise.
30924         * lib/ceill.c: Likewise.
30925         * lib/chdir-long.c: Likewise.
30926         * lib/chdir-long.h: Likewise.
30927         * lib/chdir-safer.c: Likewise.
30928         * lib/chdir-safer.h: Likewise.
30929         * lib/chown.c: Likewise.
30930         * lib/classpath.c: Likewise.
30931         * lib/classpath.h: Likewise.
30932         * lib/clean-temp.c: Likewise.
30933         * lib/clean-temp.h: Likewise.
30934         * lib/cloexec.c: Likewise.
30935         * lib/close-stream.c: Likewise.
30936         * lib/closein.c: Likewise.
30937         * lib/closein.h: Likewise.
30938         * lib/closeout.c: Likewise.
30939         * lib/closeout.h: Likewise.
30940         * lib/concat-filename.c: Likewise.
30941         * lib/copy-file.c: Likewise.
30942         * lib/copy-file.h: Likewise.
30943         * lib/count-one-bits.h: Likewise.
30944         * lib/crc.c: Likewise.
30945         * lib/crc.h: Likewise.
30946         * lib/creat-safer.c: Likewise.
30947         * lib/csharpcomp.c: Likewise.
30948         * lib/csharpcomp.h: Likewise.
30949         * lib/csharpexec.c: Likewise.
30950         * lib/csharpexec.h: Likewise.
30951         * lib/cycle-check.c: Likewise.
30952         * lib/cycle-check.h: Likewise.
30953         * lib/diacrit.c: Likewise.
30954         * lib/diacrit.h: Likewise.
30955         * lib/diffseq.h: Likewise.
30956         * lib/dirchownmod.c: Likewise.
30957         * lib/dirent.in.h: Likewise.
30958         * lib/dirfd.c: Likewise.
30959         * lib/dirfd.h: Likewise.
30960         * lib/dirname.c: Likewise.
30961         * lib/dirname.h: Likewise.
30962         * lib/dummy.c: Likewise.
30963         * lib/dup-safer.c: Likewise.
30964         * lib/dup2.c: Likewise.
30965         * lib/eealloc.h: Likewise.
30966         * lib/error.c: Likewise.
30967         * lib/error.h: Likewise.
30968         * lib/euidaccess.c: Likewise.
30969         * lib/exclude.c: Likewise.
30970         * lib/exclude.h: Likewise.
30971         * lib/execute.c: Likewise.
30972         * lib/execute.h: Likewise.
30973         * lib/exitfail.c: Likewise.
30974         * lib/exitfail.h: Likewise.
30975         * lib/expl.c: Likewise.
30976         * lib/fatal-signal.c: Likewise.
30977         * lib/fatal-signal.h: Likewise.
30978         * lib/fbufmode.c: Likewise.
30979         * lib/fbufmode.h: Likewise.
30980         * lib/fchdir.c: Likewise.
30981         * lib/fchmodat.c: Likewise.
30982         * lib/fchownat.c: Likewise.
30983         * lib/fcntl--.h: Likewise.
30984         * lib/fcntl-safer.h: Likewise.
30985         * lib/fcntl.in.h: Likewise.
30986         * lib/fd-safer.c: Likewise.
30987         * lib/fflush.c: Likewise.
30988         * lib/file-has-acl.c: Likewise.
30989         * lib/file-set.c: Likewise.
30990         * lib/file-type.c: Likewise.
30991         * lib/file-type.h: Likewise.
30992         * lib/fileblocks.c: Likewise.
30993         * lib/filemode.c: Likewise.
30994         * lib/filemode.h: Likewise.
30995         * lib/filename.h: Likewise.
30996         * lib/filenamecat.c: Likewise.
30997         * lib/filenamecat.h: Likewise.
30998         * lib/findprog.c: Likewise.
30999         * lib/findprog.h: Likewise.
31000         * lib/float.in.h: Likewise.
31001         * lib/floor.c: Likewise.
31002         * lib/floorf.c: Likewise.
31003         * lib/floorl.c: Likewise.
31004         * lib/fopen-safer.c: Likewise.
31005         * lib/fopen.c: Likewise.
31006         * lib/fpending.c: Likewise.
31007         * lib/fpending.h: Likewise.
31008         * lib/fprintf.c: Likewise.
31009         * lib/fprintftime.h: Likewise.
31010         * lib/fpucw.h: Likewise.
31011         * lib/fpurge.c: Likewise.
31012         * lib/fpurge.h: Likewise.
31013         * lib/freadable.c: Likewise.
31014         * lib/freadable.h: Likewise.
31015         * lib/freadahead.c: Likewise.
31016         * lib/freadahead.h: Likewise.
31017         * lib/freading.c: Likewise.
31018         * lib/freading.h: Likewise.
31019         * lib/free.c: Likewise.
31020         * lib/freopen.c: Likewise.
31021         * lib/frexp.c: Likewise.
31022         * lib/frexpl.c: Likewise.
31023         * lib/fseek.c: Likewise.
31024         * lib/fseterr.c: Likewise.
31025         * lib/fseterr.h: Likewise.
31026         * lib/fstatat.c: Likewise.
31027         * lib/fstrcmp.c: Likewise.
31028         * lib/fstrcmp.h: Likewise.
31029         * lib/fsusage.c: Likewise.
31030         * lib/fsusage.h: Likewise.
31031         * lib/ftell.c: Likewise.
31032         * lib/ftello.c: Likewise.
31033         * lib/fts-cycle.c: Likewise.
31034         * lib/fts.c: Likewise.
31035         * lib/fts_.h: Likewise.
31036         * lib/full-read.c: Likewise.
31037         * lib/full-read.h: Likewise.
31038         * lib/full-write.c: Likewise.
31039         * lib/full-write.h: Likewise.
31040         * lib/fwritable.c: Likewise.
31041         * lib/fwritable.h: Likewise.
31042         * lib/fwriteerror.c: Likewise.
31043         * lib/fwriteerror.h: Likewise.
31044         * lib/fwriting.c: Likewise.
31045         * lib/fwriting.h: Likewise.
31046         * lib/gcd.c: Likewise.
31047         * lib/gcd.h: Likewise.
31048         * lib/getcwd.c: Likewise.
31049         * lib/getdate.h: Likewise.
31050         * lib/getdate.y: Likewise.
31051         * lib/getdomainname.c: Likewise.
31052         * lib/getdomainname.h: Likewise.
31053         * lib/getgroups.c: Likewise.
31054         * lib/gethostname.c: Likewise.
31055         * lib/gethrxtime.c: Likewise.
31056         * lib/gethrxtime.h: Likewise.
31057         * lib/getloadavg.c: Likewise.
31058         * lib/getndelim2.c: Likewise.
31059         * lib/getndelim2.h: Likewise.
31060         * lib/getnline.c: Likewise.
31061         * lib/getnline.h: Likewise.
31062         * lib/getopt.c: Likewise.
31063         * lib/getopt.in.h: Likewise.
31064         * lib/getopt1.c: Likewise.
31065         * lib/getopt_int.h: Likewise.
31066         * lib/getpagesize.h: Likewise.
31067         * lib/getsubopt.c: Likewise.
31068         * lib/gettime.c: Likewise.
31069         * lib/getugroups.c: Likewise.
31070         * lib/getugroups.h: Likewise.
31071         * lib/getusershell.c: Likewise.
31072         * lib/gl_anyavltree_list1.h: Likewise.
31073         * lib/gl_anyavltree_list2.h: Likewise.
31074         * lib/gl_anyhash_list1.h: Likewise.
31075         * lib/gl_anyhash_list2.h: Likewise.
31076         * lib/gl_anylinked_list1.h: Likewise.
31077         * lib/gl_anylinked_list2.h: Likewise.
31078         * lib/gl_anyrbtree_list1.h: Likewise.
31079         * lib/gl_anyrbtree_list2.h: Likewise.
31080         * lib/gl_anytree_list1.h: Likewise.
31081         * lib/gl_anytree_list2.h: Likewise.
31082         * lib/gl_anytree_oset.h: Likewise.
31083         * lib/gl_anytreehash_list1.h: Likewise.
31084         * lib/gl_anytreehash_list2.h: Likewise.
31085         * lib/gl_array_list.c: Likewise.
31086         * lib/gl_array_list.h: Likewise.
31087         * lib/gl_array_oset.c: Likewise.
31088         * lib/gl_array_oset.h: Likewise.
31089         * lib/gl_avltree_list.c: Likewise.
31090         * lib/gl_avltree_list.h: Likewise.
31091         * lib/gl_avltree_oset.c: Likewise.
31092         * lib/gl_avltree_oset.h: Likewise.
31093         * lib/gl_avltreehash_list.c: Likewise.
31094         * lib/gl_avltreehash_list.h: Likewise.
31095         * lib/gl_carray_list.c: Likewise.
31096         * lib/gl_carray_list.h: Likewise.
31097         * lib/gl_linked_list.c: Likewise.
31098         * lib/gl_linked_list.h: Likewise.
31099         * lib/gl_linkedhash_list.c: Likewise.
31100         * lib/gl_linkedhash_list.h: Likewise.
31101         * lib/gl_list.c: Likewise.
31102         * lib/gl_list.h: Likewise.
31103         * lib/gl_oset.c: Likewise.
31104         * lib/gl_oset.h: Likewise.
31105         * lib/gl_rbtree_list.c: Likewise.
31106         * lib/gl_rbtree_list.h: Likewise.
31107         * lib/gl_rbtree_oset.c: Likewise.
31108         * lib/gl_rbtree_oset.h: Likewise.
31109         * lib/gl_rbtreehash_list.c: Likewise.
31110         * lib/gl_rbtreehash_list.h: Likewise.
31111         * lib/gl_sublist.c: Likewise.
31112         * lib/gl_sublist.h: Likewise.
31113         * lib/group-member.c: Likewise.
31114         * lib/group-member.h: Likewise.
31115         * lib/hard-locale.c: Likewise.
31116         * lib/hard-locale.h: Likewise.
31117         * lib/hash-pjw.c: Likewise.
31118         * lib/hash-pjw.h: Likewise.
31119         * lib/hash-triple.c: Likewise.
31120         * lib/hash.c: Likewise.
31121         * lib/hash.h: Likewise.
31122         * lib/human.c: Likewise.
31123         * lib/human.h: Likewise.
31124         * lib/i-ring.c: Likewise.
31125         * lib/i-ring.h: Likewise.
31126         * lib/idcache.c: Likewise.
31127         * lib/imaxabs.c: Likewise.
31128         * lib/imaxdiv.c: Likewise.
31129         * lib/inet_pton.c: Likewise.
31130         * lib/inet_pton.h: Likewise.
31131         * lib/intprops.h: Likewise.
31132         * lib/inttostr.c: Likewise.
31133         * lib/inttostr.h: Likewise.
31134         * lib/inttypes.in.h: Likewise.
31135         * lib/isapipe.c: Likewise.
31136         * lib/isdir.c: Likewise.
31137         * lib/isnan.c: Likewise.
31138         * lib/isnan.h: Likewise.
31139         * lib/isnanf.c: Likewise.
31140         * lib/isnanf.h: Likewise.
31141         * lib/isnanl-nolibm.h: Likewise.
31142         * lib/isnanl.c: Likewise.
31143         * lib/isnanl.h: Likewise.
31144         * lib/javacomp.c: Likewise.
31145         * lib/javacomp.h: Likewise.
31146         * lib/javaexec.c: Likewise.
31147         * lib/javaexec.h: Likewise.
31148         * lib/javaversion.c: Likewise.
31149         * lib/javaversion.h: Likewise.
31150         * lib/javaversion.java: Likewise.
31151         * lib/lbrkprop.h: Likewise.
31152         * lib/lchmod.h: Likewise.
31153         * lib/lchown.c: Likewise.
31154         * lib/ldexpl.c: Likewise.
31155         * lib/linebreak.c: Likewise.
31156         * lib/linebreak.h: Likewise.
31157         * lib/linebuffer.c: Likewise.
31158         * lib/linebuffer.h: Likewise.
31159         * lib/locale.in.h: Likewise.
31160         * lib/logl.c: Likewise.
31161         * lib/long-options.c: Likewise.
31162         * lib/long-options.h: Likewise.
31163         * lib/lstat.c: Likewise.
31164         * lib/lstat.h: Likewise.
31165         * lib/math.in.h: Likewise.
31166         * lib/mbchar.c: Likewise.
31167         * lib/mbchar.h: Likewise.
31168         * lib/mbfile.h: Likewise.
31169         * lib/mbiter.h: Likewise.
31170         * lib/mbscasecmp.c: Likewise.
31171         * lib/mbscasestr.c: Likewise.
31172         * lib/mbschr.c: Likewise.
31173         * lib/mbscspn.c: Likewise.
31174         * lib/mbslen.c: Likewise.
31175         * lib/mbsncasecmp.c: Likewise.
31176         * lib/mbsnlen.c: Likewise.
31177         * lib/mbspbrk.c: Likewise.
31178         * lib/mbspcasecmp.c: Likewise.
31179         * lib/mbsrchr.c: Likewise.
31180         * lib/mbssep.c: Likewise.
31181         * lib/mbsspn.c: Likewise.
31182         * lib/mbsstr.c: Likewise.
31183         * lib/mbstok_r.c: Likewise.
31184         * lib/mbswidth.c: Likewise.
31185         * lib/mbswidth.h: Likewise.
31186         * lib/mbuiter.h: Likewise.
31187         * lib/memcasecmp.c: Likewise.
31188         * lib/memcasecmp.h: Likewise.
31189         * lib/memchr.c: Likewise.
31190         * lib/memcmp.c: Likewise.
31191         * lib/memcoll.c: Likewise.
31192         * lib/memcoll.h: Likewise.
31193         * lib/memcpy.c: Likewise.
31194         * lib/memrchr.c: Likewise.
31195         * lib/mkancesdirs.c: Likewise.
31196         * lib/mkdir-p.c: Likewise.
31197         * lib/mkdir-p.h: Likewise.
31198         * lib/mkdir.c: Likewise.
31199         * lib/mkdirat.c: Likewise.
31200         * lib/mkdtemp.c: Likewise.
31201         * lib/mkstemp-safer.c: Likewise.
31202         * lib/mkstemp.c: Likewise.
31203         * lib/modechange.c: Likewise.
31204         * lib/modechange.h: Likewise.
31205         * lib/mountlist.c: Likewise.
31206         * lib/mountlist.h: Likewise.
31207         * lib/mpsort.c: Likewise.
31208         * lib/nanosleep.c: Likewise.
31209         * lib/obstack.c: Likewise.
31210         * lib/obstack.h: Likewise.
31211         * lib/open-safer.c: Likewise.
31212         * lib/open.c: Likewise.
31213         * lib/openat-die.c: Likewise.
31214         * lib/openat-priv.h: Likewise.
31215         * lib/openat-proc.c: Likewise.
31216         * lib/openat.c: Likewise.
31217         * lib/openat.h: Likewise.
31218         * lib/pagealign_alloc.c: Likewise.
31219         * lib/pagealign_alloc.h: Likewise.
31220         * lib/physmem.c: Likewise.
31221         * lib/physmem.h: Likewise.
31222         * lib/pipe-safer.c: Likewise.
31223         * lib/pipe.c: Likewise.
31224         * lib/pipe.h: Likewise.
31225         * lib/posixtm.c: Likewise.
31226         * lib/posixtm.h: Likewise.
31227         * lib/posixver.c: Likewise.
31228         * lib/printf-frexp.c: Likewise.
31229         * lib/printf-frexp.h: Likewise.
31230         * lib/printf-frexpl.c: Likewise.
31231         * lib/printf-frexpl.h: Likewise.
31232         * lib/printf.c: Likewise.
31233         * lib/progname.c: Likewise.
31234         * lib/progname.h: Likewise.
31235         * lib/progreloc.c: Likewise.
31236         * lib/putenv.c: Likewise.
31237         * lib/quote.c: Likewise.
31238         * lib/quote.h: Likewise.
31239         * lib/quotearg.c: Likewise.
31240         * lib/quotearg.h: Likewise.
31241         * lib/raise.c: Likewise.
31242         * lib/readline.c: Likewise.
31243         * lib/readline.h: Likewise.
31244         * lib/readlink.c: Likewise.
31245         * lib/readtokens.c: Likewise.
31246         * lib/readtokens.h: Likewise.
31247         * lib/readtokens0.c: Likewise.
31248         * lib/readtokens0.h: Likewise.
31249         * lib/readutmp.c: Likewise.
31250         * lib/readutmp.h: Likewise.
31251         * lib/realloc.c: Likewise.
31252         * lib/relocwrapper.c: Likewise.
31253         * lib/rename-dest-slash.c: Likewise.
31254         * lib/rename.c: Likewise.
31255         * lib/rmdir.c: Likewise.
31256         * lib/rpmatch.c: Likewise.
31257         * lib/safe-read.c: Likewise.
31258         * lib/safe-read.h: Likewise.
31259         * lib/safe-write.c: Likewise.
31260         * lib/safe-write.h: Likewise.
31261         * lib/same-inode.h: Likewise.
31262         * lib/same.c: Likewise.
31263         * lib/same.h: Likewise.
31264         * lib/save-cwd.c: Likewise.
31265         * lib/save-cwd.h: Likewise.
31266         * lib/savedir.c: Likewise.
31267         * lib/savedir.h: Likewise.
31268         * lib/savewd.c: Likewise.
31269         * lib/savewd.h: Likewise.
31270         * lib/search.in.h: Likewise.
31271         * lib/setenv.c: Likewise.
31272         * lib/setenv.h: Likewise.
31273         * lib/settime.c: Likewise.
31274         * lib/sh-quote.c: Likewise.
31275         * lib/sh-quote.h: Likewise.
31276         * lib/sig2str.c: Likewise.
31277         * lib/sig2str.h: Likewise.
31278         * lib/signal.in.h: Likewise.
31279         * lib/signbitd.c: Likewise.
31280         * lib/signbitf.c: Likewise.
31281         * lib/signbitl.c: Likewise.
31282         * lib/sigprocmask.c: Likewise.
31283         * lib/sincosl.c: Likewise.
31284         * lib/sleep.c: Likewise.
31285         * lib/sprintf.c: Likewise.
31286         * lib/sqrtl.c: Likewise.
31287         * lib/stat-time.h: Likewise.
31288         * lib/stdio--.h: Likewise.
31289         * lib/stdio-safer.h: Likewise.
31290         * lib/stdlib--.h: Likewise.
31291         * lib/stdlib-safer.h: Likewise.
31292         * lib/stdlib.in.h: Likewise.
31293         * lib/stpcpy.c: Likewise.
31294         * lib/stpncpy.c: Likewise.
31295         * lib/strchrnul.c: Likewise.
31296         * lib/strcspn.c: Likewise.
31297         * lib/strerror.c: Likewise.
31298         * lib/strftime.c: Likewise.
31299         * lib/strftime.h: Likewise.
31300         * lib/striconveh.c: Likewise.
31301         * lib/striconveh.h: Likewise.
31302         * lib/striconveha.c: Likewise.
31303         * lib/striconveha.h: Likewise.
31304         * lib/stripslash.c: Likewise.
31305         * lib/strnlen1.c: Likewise.
31306         * lib/strnlen1.h: Likewise.
31307         * lib/strtod.c: Likewise.
31308         * lib/strtoimax.c: Likewise.
31309         * lib/strtok_r.c: Likewise.
31310         * lib/strtol.c: Likewise.
31311         * lib/strtoll.c: Likewise.
31312         * lib/strtoul.c: Likewise.
31313         * lib/strtoull.c: Likewise.
31314         * lib/sysexits.in.h: Likewise.
31315         * lib/tempname.c: Likewise.
31316         * lib/tempname.h: Likewise.
31317         * lib/timespec.h: Likewise.
31318         * lib/tls.c: Likewise.
31319         * lib/tls.h: Likewise.
31320         * lib/tmpdir.c: Likewise.
31321         * lib/tmpdir.h: Likewise.
31322         * lib/tmpfile-safer.c: Likewise.
31323         * lib/tmpfile.c: Likewise.
31324         * lib/trigl.c: Likewise.
31325         * lib/trigl.h: Likewise.
31326         * lib/trim.c: Likewise.
31327         * lib/trim.h: Likewise.
31328         * lib/trunc.c: Likewise.
31329         * lib/truncf.c: Likewise.
31330         * lib/truncl.c: Likewise.
31331         * lib/tsearch.c: Likewise.
31332         * lib/unicodeio.c: Likewise.
31333         * lib/unicodeio.h: Likewise.
31334         * lib/unistd--.h: Likewise.
31335         * lib/unistd-safer.h: Likewise.
31336         * lib/unistdio/ulc-fprintf.c: Likewise.
31337         * lib/unistdio/ulc-vfprintf.c: Likewise.
31338         * lib/unlinkdir.c: Likewise.
31339         * lib/unlinkdir.h: Likewise.
31340         * lib/unlocked-io.h: Likewise.
31341         * lib/unsetenv.c: Likewise.
31342         * lib/userspec.c: Likewise.
31343         * lib/utime.c: Likewise.
31344         * lib/utimecmp.c: Likewise.
31345         * lib/utimecmp.h: Likewise.
31346         * lib/utimens.c: Likewise.
31347         * lib/verify.h: Likewise.
31348         * lib/verror.c: Likewise.
31349         * lib/verror.h: Likewise.
31350         * lib/version-etc-fsf.c: Likewise.
31351         * lib/version-etc.c: Likewise.
31352         * lib/version-etc.h: Likewise.
31353         * lib/vfprintf.c: Likewise.
31354         * lib/vprintf.c: Likewise.
31355         * lib/vsprintf.c: Likewise.
31356         * lib/w32spawn.h: Likewise.
31357         * lib/wait-process.c: Likewise.
31358         * lib/wait-process.h: Likewise.
31359         * lib/wcwidth.c: Likewise.
31360         * lib/write-any-file.c: Likewise.
31361         * lib/xalloc-die.c: Likewise.
31362         * lib/xalloc.h: Likewise.
31363         * lib/xasprintf.c: Likewise.
31364         * lib/xgetcwd.c: Likewise.
31365         * lib/xgetcwd.h: Likewise.
31366         * lib/xgetdomainname.c: Likewise.
31367         * lib/xgetdomainname.h: Likewise.
31368         * lib/xgethostname.c: Likewise.
31369         * lib/xmalloc.c: Likewise.
31370         * lib/xmalloca.c: Likewise.
31371         * lib/xmalloca.h: Likewise.
31372         * lib/xmemcoll.c: Likewise.
31373         * lib/xnanosleep.c: Likewise.
31374         * lib/xreadlink.c: Likewise.
31375         * lib/xreadlink.h: Likewise.
31376         * lib/xsetenv.c: Likewise.
31377         * lib/xsetenv.h: Likewise.
31378         * lib/xstriconv.c: Likewise.
31379         * lib/xstriconv.h: Likewise.
31380         * lib/xstrndup.c: Likewise.
31381         * lib/xstrndup.h: Likewise.
31382         * lib/xstrtod.c: Likewise.
31383         * lib/xstrtod.h: Likewise.
31384         * lib/xstrtol-error.c: Likewise.
31385         * lib/xstrtol.c: Likewise.
31386         * lib/xstrtol.h: Likewise.
31387         * lib/xtime.h: Likewise.
31388         * lib/xvasprintf.c: Likewise.
31389         * lib/xvasprintf.h: Likewise.
31390         * lib/yesno.c: Likewise.
31391         * lib/yesno.h: Likewise.
31392         * posix-modules: Likewise.
31393         * tests/test-alloca-opt.c: Likewise.
31394         * tests/test-arcfour.c: Likewise.
31395         * tests/test-arctwo.c: Likewise.
31396         * tests/test-argmatch.c: Likewise.
31397         * tests/test-argp-2.sh: Likewise.
31398         * tests/test-argp.c: Likewise.
31399         * tests/test-arpa_inet.c: Likewise.
31400         * tests/test-array_list.c: Likewise.
31401         * tests/test-array_oset.c: Likewise.
31402         * tests/test-atexit.c: Likewise.
31403         * tests/test-avltree_list.c: Likewise.
31404         * tests/test-avltree_oset.c: Likewise.
31405         * tests/test-avltreehash_list.c: Likewise.
31406         * tests/test-base64.c: Likewise.
31407         * tests/test-binary-io.c: Likewise.
31408         * tests/test-byteswap.c: Likewise.
31409         * tests/test-c-ctype.c: Likewise.
31410         * tests/test-c-strcasecmp.c: Likewise.
31411         * tests/test-c-strcasestr.c: Likewise.
31412         * tests/test-c-strncasecmp.c: Likewise.
31413         * tests/test-c-strstr.c: Likewise.
31414         * tests/test-canonicalize-lgpl.c: Likewise.
31415         * tests/test-canonicalize.c: Likewise.
31416         * tests/test-carray_list.c: Likewise.
31417         * tests/test-ceilf.c: Likewise.
31418         * tests/test-ceill.c: Likewise.
31419         * tests/test-count-one-bits.c: Likewise.
31420         * tests/test-crc.c: Likewise.
31421         * tests/test-dirname.c: Likewise.
31422         * tests/test-fbufmode.c: Likewise.
31423         * tests/test-fcntl.c: Likewise.
31424         * tests/test-fflush.c: Likewise.
31425         * tests/test-floorf.c: Likewise.
31426         * tests/test-floorl.c: Likewise.
31427         * tests/test-fopen.c: Likewise.
31428         * tests/test-fprintf-posix.c: Likewise.
31429         * tests/test-fprintf-posix.h: Likewise.
31430         * tests/test-fpurge.c: Likewise.
31431         * tests/test-freadable.c: Likewise.
31432         * tests/test-freadahead.c: Likewise.
31433         * tests/test-freading.c: Likewise.
31434         * tests/test-freopen.c: Likewise.
31435         * tests/test-frexp.c: Likewise.
31436         * tests/test-frexpl.c: Likewise.
31437         * tests/test-fseek.c: Likewise.
31438         * tests/test-fseeko.c: Likewise.
31439         * tests/test-fseterr.c: Likewise.
31440         * tests/test-fstrcmp.c: Likewise.
31441         * tests/test-ftell.c: Likewise.
31442         * tests/test-ftello.c: Likewise.
31443         * tests/test-fwritable.c: Likewise.
31444         * tests/test-fwriting.c: Likewise.
31445         * tests/test-getaddrinfo.c: Likewise.
31446         * tests/test-getpass.c: Likewise.
31447         * tests/test-gettimeofday.c: Likewise.
31448         * tests/test-hmac-md5.c: Likewise.
31449         * tests/test-hmac-sha1.c: Likewise.
31450         * tests/test-iconv.c: Likewise.
31451         * tests/test-iconvme.c: Likewise.
31452         * tests/test-inttypes.c: Likewise.
31453         * tests/test-isnan.c: Likewise.
31454         * tests/test-isnanf.c: Likewise.
31455         * tests/test-isnanl-nolibm.c: Likewise.
31456         * tests/test-isnanl.c: Likewise.
31457         * tests/test-isnanl.h: Likewise.
31458         * tests/test-ldexpl.c: Likewise.
31459         * tests/test-linked_list.c: Likewise.
31460         * tests/test-linkedhash_list.c: Likewise.
31461         * tests/test-locale.c: Likewise.
31462         * tests/test-localename.c: Likewise.
31463         * tests/test-lock.c: Likewise.
31464         * tests/test-lseek.c: Likewise.
31465         * tests/test-malloca.c: Likewise.
31466         * tests/test-math.c: Likewise.
31467         * tests/test-mbscasecmp.c: Likewise.
31468         * tests/test-mbscasestr1.c: Likewise.
31469         * tests/test-mbscasestr2.c: Likewise.
31470         * tests/test-mbscasestr3.c: Likewise.
31471         * tests/test-mbscasestr4.c: Likewise.
31472         * tests/test-mbschr.c: Likewise.
31473         * tests/test-mbscspn.c: Likewise.
31474         * tests/test-mbsncasecmp.c: Likewise.
31475         * tests/test-mbspbrk.c: Likewise.
31476         * tests/test-mbspcasecmp.c: Likewise.
31477         * tests/test-mbsrchr.c: Likewise.
31478         * tests/test-mbsspn.c: Likewise.
31479         * tests/test-mbsstr1.c: Likewise.
31480         * tests/test-mbsstr2.c: Likewise.
31481         * tests/test-mbsstr3.c: Likewise.
31482         * tests/test-md5.c: Likewise.
31483         * tests/test-memmem.c: Likewise.
31484         * tests/test-netinet_in.c: Likewise.
31485         * tests/test-open.c: Likewise.
31486         * tests/test-printf-frexp.c: Likewise.
31487         * tests/test-printf-frexpl.c: Likewise.
31488         * tests/test-printf-posix.c: Likewise.
31489         * tests/test-printf-posix.h: Likewise.
31490         * tests/test-rbtree_list.c: Likewise.
31491         * tests/test-rbtree_oset.c: Likewise.
31492         * tests/test-rbtreehash_list.c: Likewise.
31493         * tests/test-read-file.c: Likewise.
31494         * tests/test-rijndael.c: Likewise.
31495         * tests/test-search.c: Likewise.
31496         * tests/test-signbit.c: Likewise.
31497         * tests/test-sleep.c: Likewise.
31498         * tests/test-snprintf-posix.c: Likewise.
31499         * tests/test-snprintf-posix.h: Likewise.
31500         * tests/test-snprintf.c: Likewise.
31501         * tests/test-sprintf-posix.c: Likewise.
31502         * tests/test-sprintf-posix.h: Likewise.
31503         * tests/test-stat-time.c: Likewise.
31504         * tests/test-stdbool.c: Likewise.
31505         * tests/test-stdint.c: Likewise.
31506         * tests/test-stdio.c: Likewise.
31507         * tests/test-stdlib.c: Likewise.
31508         * tests/test-stpncpy.c: Likewise.
31509         * tests/test-strcasestr.c: Likewise.
31510         * tests/test-striconv.c: Likewise.
31511         * tests/test-striconveh.c: Likewise.
31512         * tests/test-striconveha.c: Likewise.
31513         * tests/test-string.c: Likewise.
31514         * tests/test-sys_select.c: Likewise.
31515         * tests/test-sys_socket.c: Likewise.
31516         * tests/test-sys_stat.c: Likewise.
31517         * tests/test-sys_time.c: Likewise.
31518         * tests/test-sysexits.c: Likewise.
31519         * tests/test-time.c: Likewise.
31520         * tests/test-tls.c: Likewise.
31521         * tests/test-trunc.c: Likewise.
31522         * tests/test-truncf.c: Likewise.
31523         * tests/test-truncl.c: Likewise.
31524         * tests/test-unistd.c: Likewise.
31525         * tests/test-vasnprintf-posix.c: Likewise.
31526         * tests/test-vasnprintf-posix2.c: Likewise.
31527         * tests/test-vasnprintf.c: Likewise.
31528         * tests/test-vasprintf-posix.c: Likewise.
31529         * tests/test-vasprintf.c: Likewise.
31530         * tests/test-verify.c: Likewise.
31531         * tests/test-vfprintf-posix.c: Likewise.
31532         * tests/test-vprintf-posix.c: Likewise.
31533         * tests/test-vsnprintf-posix.c: Likewise.
31534         * tests/test-vsnprintf.c: Likewise.
31535         * tests/test-vsprintf-posix.c: Likewise.
31536         * tests/test-wchar.c: Likewise.
31537         * tests/test-wctype.c: Likewise.
31538         * tests/test-wcwidth.c: Likewise.
31539         * tests/test-xstrtol.c: Likewise.
31540         * tests/test-xvasprintf.c: Likewise.
31541         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
31542         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
31543         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
31544         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
31545         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
31546         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
31547         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
31548         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
31549         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
31550         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
31551         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
31552         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
31553         * tests/uniname/test-uninames.c: Likewise.
31554         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
31555         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
31556         * tests/unistdio/test-u16-printf1.h: Likewise.
31557         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
31558         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
31559         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
31560         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
31561         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
31562         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
31563         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
31564         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
31565         * tests/unistdio/test-u32-printf1.h: Likewise.
31566         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
31567         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
31568         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
31569         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
31570         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
31571         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
31572         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
31573         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
31574         * tests/unistdio/test-u8-printf1.h: Likewise.
31575         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
31576         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
31577         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
31578         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
31579         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
31580         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
31581         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
31582         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
31583         * tests/unistdio/test-ulc-printf1.h: Likewise.
31584         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
31585         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
31586         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
31587         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
31588         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
31589         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
31590         * tests/uniwidth/test-u16-strwidth.c: Likewise.
31591         * tests/uniwidth/test-u16-width.c: Likewise.
31592         * tests/uniwidth/test-u32-strwidth.c: Likewise.
31593         * tests/uniwidth/test-u32-width.c: Likewise.
31594         * tests/uniwidth/test-u8-strwidth.c: Likewise.
31595         * tests/uniwidth/test-u8-width.c: Likewise.
31596         * tests/uniwidth/test-uc_width.c: Likewise.
31597         * config/srclist-update: Likewise.
31598         (fixlicense): Update to GPLv3+.
31599
31600         Change copyright notice from LGPLv2.1+ to LGPLv3+.
31601         * tests/test-tsearch.c: Change copyright notice.
31602
31603         Change copyright notice from LGPLv2.0+ to LGPLv3+.
31604         * lib/c-strcaseeq.h: Change copyright notice.
31605         * lib/streq.h: Likewise.
31606         * lib/uniconv.h: Likewise.
31607         * lib/uniconv/u-conv-from-enc.h: Likewise.
31608         * lib/uniconv/u-conv-to-enc.h: Likewise.
31609         * lib/uniconv/u-strconv-from-enc.h: Likewise.
31610         * lib/uniconv/u-strconv-to-enc.h: Likewise.
31611         * lib/uniconv/u16-conv-from-enc.c: Likewise.
31612         * lib/uniconv/u16-conv-to-enc.c: Likewise.
31613         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
31614         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
31615         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
31616         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
31617         * lib/uniconv/u32-conv-from-enc.c: Likewise.
31618         * lib/uniconv/u32-conv-to-enc.c: Likewise.
31619         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
31620         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
31621         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
31622         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
31623         * lib/uniconv/u8-conv-from-enc.c: Likewise.
31624         * lib/uniconv/u8-conv-to-enc.c: Likewise.
31625         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
31626         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
31627         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
31628         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
31629         * lib/uniname.h: Likewise.
31630         * lib/uniname/uniname.c: Likewise.
31631         * lib/unistdio.h: Likewise.
31632         * lib/unistdio/u-asnprintf.h: Likewise.
31633         * lib/unistdio/u-asprintf.h: Likewise.
31634         * lib/unistdio/u-printf-args.c: Likewise.
31635         * lib/unistdio/u-printf-args.h: Likewise.
31636         * lib/unistdio/u-printf-parse.h: Likewise.
31637         * lib/unistdio/u-snprintf.h: Likewise.
31638         * lib/unistdio/u-sprintf.h: Likewise.
31639         * lib/unistdio/u-vasprintf.h: Likewise.
31640         * lib/unistdio/u-vsnprintf.h: Likewise.
31641         * lib/unistdio/u-vsprintf.h: Likewise.
31642         * lib/unistdio/u16-asnprintf.c: Likewise.
31643         * lib/unistdio/u16-asprintf.c: Likewise.
31644         * lib/unistdio/u16-printf-parse.c: Likewise.
31645         * lib/unistdio/u16-snprintf.c: Likewise.
31646         * lib/unistdio/u16-sprintf.c: Likewise.
31647         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
31648         * lib/unistdio/u16-u16-asprintf.c: Likewise.
31649         * lib/unistdio/u16-u16-snprintf.c: Likewise.
31650         * lib/unistdio/u16-u16-sprintf.c: Likewise.
31651         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
31652         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
31653         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
31654         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
31655         * lib/unistdio/u16-vasnprintf.c: Likewise.
31656         * lib/unistdio/u16-vasprintf.c: Likewise.
31657         * lib/unistdio/u16-vsnprintf.c: Likewise.
31658         * lib/unistdio/u16-vsprintf.c: Likewise.
31659         * lib/unistdio/u32-asnprintf.c: Likewise.
31660         * lib/unistdio/u32-asprintf.c: Likewise.
31661         * lib/unistdio/u32-printf-parse.c: Likewise.
31662         * lib/unistdio/u32-snprintf.c: Likewise.
31663         * lib/unistdio/u32-sprintf.c: Likewise.
31664         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
31665         * lib/unistdio/u32-u32-asprintf.c: Likewise.
31666         * lib/unistdio/u32-u32-snprintf.c: Likewise.
31667         * lib/unistdio/u32-u32-sprintf.c: Likewise.
31668         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
31669         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
31670         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
31671         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
31672         * lib/unistdio/u32-vasnprintf.c: Likewise.
31673         * lib/unistdio/u32-vasprintf.c: Likewise.
31674         * lib/unistdio/u32-vsnprintf.c: Likewise.
31675         * lib/unistdio/u32-vsprintf.c: Likewise.
31676         * lib/unistdio/u8-asnprintf.c: Likewise.
31677         * lib/unistdio/u8-asprintf.c: Likewise.
31678         * lib/unistdio/u8-printf-parse.c: Likewise.
31679         * lib/unistdio/u8-snprintf.c: Likewise.
31680         * lib/unistdio/u8-sprintf.c: Likewise.
31681         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
31682         * lib/unistdio/u8-u8-asprintf.c: Likewise.
31683         * lib/unistdio/u8-u8-snprintf.c: Likewise.
31684         * lib/unistdio/u8-u8-sprintf.c: Likewise.
31685         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
31686         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
31687         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
31688         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
31689         * lib/unistdio/u8-vasnprintf.c: Likewise.
31690         * lib/unistdio/u8-vasprintf.c: Likewise.
31691         * lib/unistdio/u8-vsnprintf.c: Likewise.
31692         * lib/unistdio/u8-vsprintf.c: Likewise.
31693         * lib/unistdio/ulc-asnprintf.c: Likewise.
31694         * lib/unistdio/ulc-asprintf.c: Likewise.
31695         * lib/unistdio/ulc-printf-parse.c: Likewise.
31696         * lib/unistdio/ulc-snprintf.c: Likewise.
31697         * lib/unistdio/ulc-sprintf.c: Likewise.
31698         * lib/unistdio/ulc-vasnprintf.c: Likewise.
31699         * lib/unistdio/ulc-vasprintf.c: Likewise.
31700         * lib/unistdio/ulc-vsnprintf.c: Likewise.
31701         * lib/unistdio/ulc-vsprintf.c: Likewise.
31702         * lib/unistr.h: Likewise.
31703         * lib/unistr/u-cpy-alloc.h: Likewise.
31704         * lib/unistr/u-cpy.h: Likewise.
31705         * lib/unistr/u-endswith.h: Likewise.
31706         * lib/unistr/u-move.h: Likewise.
31707         * lib/unistr/u-set.h: Likewise.
31708         * lib/unistr/u-startswith.h: Likewise.
31709         * lib/unistr/u-stpcpy.h: Likewise.
31710         * lib/unistr/u-stpncpy.h: Likewise.
31711         * lib/unistr/u-strcat.h: Likewise.
31712         * lib/unistr/u-strcpy.h: Likewise.
31713         * lib/unistr/u-strcspn.h: Likewise.
31714         * lib/unistr/u-strdup.h: Likewise.
31715         * lib/unistr/u-strlen.h: Likewise.
31716         * lib/unistr/u-strncat.h: Likewise.
31717         * lib/unistr/u-strncpy.h: Likewise.
31718         * lib/unistr/u-strnlen.h: Likewise.
31719         * lib/unistr/u-strpbrk.h: Likewise.
31720         * lib/unistr/u-strspn.h: Likewise.
31721         * lib/unistr/u-strstr.h: Likewise.
31722         * lib/unistr/u-strtok.h: Likewise.
31723         * lib/unistr/u16-check.c: Likewise.
31724         * lib/unistr/u16-chr.c: Likewise.
31725         * lib/unistr/u16-cmp.c: Likewise.
31726         * lib/unistr/u16-cpy-alloc.c: Likewise.
31727         * lib/unistr/u16-cpy.c: Likewise.
31728         * lib/unistr/u16-endswith.c: Likewise.
31729         * lib/unistr/u16-mblen.c: Likewise.
31730         * lib/unistr/u16-mbsnlen.c: Likewise.
31731         * lib/unistr/u16-mbtouc-aux.c: Likewise.
31732         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
31733         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
31734         * lib/unistr/u16-mbtouc.c: Likewise.
31735         * lib/unistr/u16-mbtoucr.c: Likewise.
31736         * lib/unistr/u16-move.c: Likewise.
31737         * lib/unistr/u16-next.c: Likewise.
31738         * lib/unistr/u16-prev.c: Likewise.
31739         * lib/unistr/u16-set.c: Likewise.
31740         * lib/unistr/u16-startswith.c: Likewise.
31741         * lib/unistr/u16-stpcpy.c: Likewise.
31742         * lib/unistr/u16-stpncpy.c: Likewise.
31743         * lib/unistr/u16-strcat.c: Likewise.
31744         * lib/unistr/u16-strchr.c: Likewise.
31745         * lib/unistr/u16-strcmp.c: Likewise.
31746         * lib/unistr/u16-strcpy.c: Likewise.
31747         * lib/unistr/u16-strcspn.c: Likewise.
31748         * lib/unistr/u16-strdup.c: Likewise.
31749         * lib/unistr/u16-strlen.c: Likewise.
31750         * lib/unistr/u16-strmblen.c: Likewise.
31751         * lib/unistr/u16-strmbtouc.c: Likewise.
31752         * lib/unistr/u16-strncat.c: Likewise.
31753         * lib/unistr/u16-strncmp.c: Likewise.
31754         * lib/unistr/u16-strncpy.c: Likewise.
31755         * lib/unistr/u16-strnlen.c: Likewise.
31756         * lib/unistr/u16-strpbrk.c: Likewise.
31757         * lib/unistr/u16-strrchr.c: Likewise.
31758         * lib/unistr/u16-strspn.c: Likewise.
31759         * lib/unistr/u16-strstr.c: Likewise.
31760         * lib/unistr/u16-strtok.c: Likewise.
31761         * lib/unistr/u16-to-u32.c: Likewise.
31762         * lib/unistr/u16-to-u8.c: Likewise.
31763         * lib/unistr/u16-uctomb-aux.c: Likewise.
31764         * lib/unistr/u16-uctomb.c: Likewise.
31765         * lib/unistr/u32-check.c: Likewise.
31766         * lib/unistr/u32-chr.c: Likewise.
31767         * lib/unistr/u32-cmp.c: Likewise.
31768         * lib/unistr/u32-cpy-alloc.c: Likewise.
31769         * lib/unistr/u32-cpy.c: Likewise.
31770         * lib/unistr/u32-endswith.c: Likewise.
31771         * lib/unistr/u32-mblen.c: Likewise.
31772         * lib/unistr/u32-mbsnlen.c: Likewise.
31773         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
31774         * lib/unistr/u32-mbtouc.c: Likewise.
31775         * lib/unistr/u32-mbtoucr.c: Likewise.
31776         * lib/unistr/u32-move.c: Likewise.
31777         * lib/unistr/u32-next.c: Likewise.
31778         * lib/unistr/u32-prev.c: Likewise.
31779         * lib/unistr/u32-set.c: Likewise.
31780         * lib/unistr/u32-startswith.c: Likewise.
31781         * lib/unistr/u32-stpcpy.c: Likewise.
31782         * lib/unistr/u32-stpncpy.c: Likewise.
31783         * lib/unistr/u32-strcat.c: Likewise.
31784         * lib/unistr/u32-strchr.c: Likewise.
31785         * lib/unistr/u32-strcmp.c: Likewise.
31786         * lib/unistr/u32-strcpy.c: Likewise.
31787         * lib/unistr/u32-strcspn.c: Likewise.
31788         * lib/unistr/u32-strdup.c: Likewise.
31789         * lib/unistr/u32-strlen.c: Likewise.
31790         * lib/unistr/u32-strmblen.c: Likewise.
31791         * lib/unistr/u32-strmbtouc.c: Likewise.
31792         * lib/unistr/u32-strncat.c: Likewise.
31793         * lib/unistr/u32-strncmp.c: Likewise.
31794         * lib/unistr/u32-strncpy.c: Likewise.
31795         * lib/unistr/u32-strnlen.c: Likewise.
31796         * lib/unistr/u32-strpbrk.c: Likewise.
31797         * lib/unistr/u32-strrchr.c: Likewise.
31798         * lib/unistr/u32-strspn.c: Likewise.
31799         * lib/unistr/u32-strstr.c: Likewise.
31800         * lib/unistr/u32-strtok.c: Likewise.
31801         * lib/unistr/u32-to-u16.c: Likewise.
31802         * lib/unistr/u32-to-u8.c: Likewise.
31803         * lib/unistr/u32-uctomb.c: Likewise.
31804         * lib/unistr/u8-check.c: Likewise.
31805         * lib/unistr/u8-chr.c: Likewise.
31806         * lib/unistr/u8-cmp.c: Likewise.
31807         * lib/unistr/u8-cpy-alloc.c: Likewise.
31808         * lib/unistr/u8-cpy.c: Likewise.
31809         * lib/unistr/u8-endswith.c: Likewise.
31810         * lib/unistr/u8-mblen.c: Likewise.
31811         * lib/unistr/u8-mbsnlen.c: Likewise.
31812         * lib/unistr/u8-mbtouc-aux.c: Likewise.
31813         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
31814         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
31815         * lib/unistr/u8-mbtouc.c: Likewise.
31816         * lib/unistr/u8-mbtoucr.c: Likewise.
31817         * lib/unistr/u8-move.c: Likewise.
31818         * lib/unistr/u8-next.c: Likewise.
31819         * lib/unistr/u8-prev.c: Likewise.
31820         * lib/unistr/u8-set.c: Likewise.
31821         * lib/unistr/u8-startswith.c: Likewise.
31822         * lib/unistr/u8-stpcpy.c: Likewise.
31823         * lib/unistr/u8-stpncpy.c: Likewise.
31824         * lib/unistr/u8-strcat.c: Likewise.
31825         * lib/unistr/u8-strchr.c: Likewise.
31826         * lib/unistr/u8-strcmp.c: Likewise.
31827         * lib/unistr/u8-strcpy.c: Likewise.
31828         * lib/unistr/u8-strcspn.c: Likewise.
31829         * lib/unistr/u8-strdup.c: Likewise.
31830         * lib/unistr/u8-strlen.c: Likewise.
31831         * lib/unistr/u8-strmblen.c: Likewise.
31832         * lib/unistr/u8-strmbtouc.c: Likewise.
31833         * lib/unistr/u8-strncat.c: Likewise.
31834         * lib/unistr/u8-strncmp.c: Likewise.
31835         * lib/unistr/u8-strncpy.c: Likewise.
31836         * lib/unistr/u8-strnlen.c: Likewise.
31837         * lib/unistr/u8-strpbrk.c: Likewise.
31838         * lib/unistr/u8-strrchr.c: Likewise.
31839         * lib/unistr/u8-strspn.c: Likewise.
31840         * lib/unistr/u8-strstr.c: Likewise.
31841         * lib/unistr/u8-strtok.c: Likewise.
31842         * lib/unistr/u8-to-u16.c: Likewise.
31843         * lib/unistr/u8-to-u32.c: Likewise.
31844         * lib/unistr/u8-uctomb-aux.c: Likewise.
31845         * lib/unistr/u8-uctomb.c: Likewise.
31846         * lib/unitypes.h: Likewise.
31847         * lib/uniwidth.h: Likewise.
31848         * lib/uniwidth/cjk.h: Likewise.
31849         * lib/uniwidth/u16-strwidth.c: Likewise.
31850         * lib/uniwidth/u16-width.c: Likewise.
31851         * lib/uniwidth/u32-strwidth.c: Likewise.
31852         * lib/uniwidth/u32-width.c: Likewise.
31853         * lib/uniwidth/u8-strwidth.c: Likewise.
31854         * lib/uniwidth/u8-width.c: Likewise.
31855         * lib/uniwidth/width.c: Likewise.
31856
31857 2007-10-07  Bruno Haible  <bruno@clisp.org>
31858
31859         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
31860         The file is still under LGPL (see modules/inttypes).
31861
31862 2007-10-06  Bruno Haible  <bruno@clisp.org>
31863
31864         * modules/trunc (Dependencies): Add 'extensions'.
31865         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
31866         Reported by Ben Pfaff <blp@gnu.org>.
31867
31868 2007-10-06  Bruno Haible  <bruno@clisp.org>
31869
31870         * modules/freopen-tests: New file.
31871         * tests/test-freopen.c: New file.
31872
31873         * modules/fopen-tests: New file.
31874         * tests/test-fopen.c: New file.
31875
31876         * modules/fopen: New file.
31877         * lib/fopen.c: New file.
31878         * m4/fopen.m4: New file.
31879         * modules/freopen: New file.
31880         * lib/freopen.c: New file.
31881         * m4/freopen.m4: New file.
31882         * lib/stdio.in.h (fopen, freopen): New declarations.
31883         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
31884         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
31885         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
31886         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
31887         * doc/functions/fopen.texi: Mention the 'fopen' module.
31888         * doc/functions/freopen.texi: Mention the 'freopen' module.
31889
31890 2007-10-06  Bruno Haible  <bruno@clisp.org>
31891
31892         * modules/open-tests: New file.
31893         * tests/test-open.c: New file.
31894
31895         * modules/open: New file.
31896         * lib/open.c: New file.
31897         * m4/open.m4: New file.
31898         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
31899         lib/open.c does.
31900         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
31901         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
31902         macros.
31903         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
31904         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
31905         REPLACE_OPEN.
31906         * doc/functions/open.texi: Mention the 'open' module.
31907
31908 2007-10-04  Bruno Haible  <bruno@clisp.org>
31909
31910         * modules/ceill-tests: New file.
31911         * tests/test-ceill.c: New file.
31912
31913         * modules/ceill: New file.
31914         * lib/ceill.c: Replace entire file.
31915         * m4/ceill.m4: New file.
31916         * lib/math.in.h (ceill): Replace declaration.
31917         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
31918         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
31919         * doc/functions/ceill.texi: Mention the 'ceill' module.
31920         * modules/mathl (Files): Remove lib/ceill.c.
31921         (Depends-on): Add ceill.
31922
31923 2007-10-04  Bruno Haible  <bruno@clisp.org>
31924
31925         * modules/ceilf-tests: New file.
31926         * tests/test-ceilf.c: New file.
31927
31928         * modules/ceilf: New file.
31929         * lib/ceil.c: New file.
31930         * lib/ceilf.c: New file.
31931         * m4/ceilf.m4: New file.
31932         * lib/math.in.h (ceilf): New declaration.
31933         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
31934         HAVE_DECL_CEILF.
31935         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
31936         HAVE_DECL_CEILF.
31937         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
31938
31939 2007-10-04  Bruno Haible  <bruno@clisp.org>
31940
31941         * modules/floorl-tests: New file.
31942         * tests/test-floorl.c: New file.
31943
31944         * modules/floorl: New file.
31945         * lib/floorl.c: Replace entire file.
31946         * m4/floorl.m4: New file.
31947         * lib/math.in.h (floorl): Replace declaration.
31948         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
31949         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
31950         * doc/functions/floorl.texi: Mention the 'floorl' module.
31951         * modules/mathl (Files): Remove lib/floorl.c.
31952         (Depends-on): Add floorl.
31953
31954 2007-10-04  Bruno Haible  <bruno@clisp.org>
31955
31956         * modules/floorf-tests: New file.
31957         * tests/test-floorf.c: New file.
31958
31959         * modules/floorf: New file.
31960         * lib/floor.c: New file.
31961         * lib/floorf.c: New file.
31962         * m4/floorf.m4: New file.
31963         * lib/math.in.h (floorf): New declaration.
31964         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
31965         HAVE_DECL_FLOORF.
31966         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
31967         HAVE_DECL_FLOORF.
31968         * doc/functions/floorf.texi: Mention the 'floorf' module.
31969
31970 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
31971             Bruno Haible  <bruno@clisp.org>
31972
31973         Advertise for the Git server instead of the CVS server.
31974         * doc/gnulib-intro.texi (Steady Development): Mention the Git
31975         repository instead of the CVS one.
31976         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
31977         about all VCS systems generically.
31978         * doc/gnulib.texi (Introduction): Capitalize `Git'.
31979
31980 2007-10-04  Bruno Haible  <bruno@clisp.org>
31981
31982         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
31983         means.
31984         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
31985
31986 2007-10-04  Bruno Haible  <bruno@clisp.org>
31987
31988         * modules/truncl-tests: New file.
31989         * tests/test-truncl.c: New file.
31990
31991         * modules/truncl: New file.
31992         * lib/truncl.c: New file.
31993         * m4/truncl.m4: New file.
31994         * lib/math.in.h (truncl): New declaration.
31995         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
31996         HAVE_DECL_TRUNCL.
31997         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
31998         HAVE_DECL_TRUNCL.
31999         * doc/functions/truncl.texi: Mention the 'truncl' module.
32000
32001 2007-10-04  Bruno Haible  <bruno@clisp.org>
32002
32003         * modules/truncf-tests: New file.
32004         * tests/test-truncf.c: New file.
32005
32006         * modules/truncf: New file.
32007         * lib/trunc.c: Make paramerizable through USE_* macros.
32008         * lib/truncf.c: New file.
32009         * m4/truncf.m4: New file.
32010         * lib/math.in.h (truncf): New declaration.
32011         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
32012         HAVE_DECL_TRUNCF.
32013         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
32014         HAVE_DECL_TRUNCF.
32015         * doc/functions/truncf.texi: Mention the 'truncf' module.
32016
32017 2007-10-03  Bruno Haible  <bruno@clisp.org>
32018
32019         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
32020         augmentation also for tests modules.
32021         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
32022         * modules/atexit-tests (Makefile.am): Likewise.
32023         * modules/binary-io-tests (Makefile.am): Likewise.
32024         * modules/c-strcase-tests (Makefile.am): Likewise.
32025         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
32026         * modules/canonicalize-tests (Makefile.am): Likewise.
32027         * modules/closein-tests (Makefile.am): Likewise.
32028         * modules/fprintf-posix-tests (Makefile.am): Likewise.
32029         * modules/freadahead-tests (Makefile.am): Likewise.
32030         * modules/fseek-tests (Makefile.am): Likewise.
32031         * modules/fseeko-tests (Makefile.am): Likewise.
32032         * modules/ftell-tests (Makefile.am): Likewise.
32033         * modules/ftello-tests (Makefile.am): Likewise.
32034         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
32035         * modules/isnanl-tests (Makefile.am): Likewise.
32036         * modules/lseek-tests (Makefile.am): Likewise.
32037         * modules/mbscasecmp-tests (Makefile.am): Likewise.
32038         * modules/mbscasestr-tests (Makefile.am): Likewise.
32039         * modules/mbschr-tests (Makefile.am): Likewise.
32040         * modules/mbscspn-tests (Makefile.am): Likewise.
32041         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
32042         * modules/mbspbrk-tests (Makefile.am): Likewise.
32043         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
32044         * modules/mbsrchr-tests (Makefile.am): Likewise.
32045         * modules/mbsspn-tests (Makefile.am): Likewise.
32046         * modules/mbsstr-tests (Makefile.am): Likewise.
32047         * modules/printf-posix-tests (Makefile.am): Likewise.
32048         * modules/snprintf-posix-tests (Makefile.am): Likewise.
32049         * modules/sprintf-posix-tests (Makefile.am): Likewise.
32050         * modules/tsearch-tests (Makefile.am): Likewise.
32051         * modules/uniname/uniname-tests (Makefile.am): Likewise.
32052         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
32053         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
32054         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
32055         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
32056         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
32057         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
32058         * modules/vprintf-posix-tests (Makefile.am): Likewise.
32059         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
32060         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
32061         * modules/xstrtoimax-tests (Makefile.am): Likewise.
32062         * modules/xstrtol-tests (Makefile.am): Likewise.
32063         * modules/xstrtoumax-tests (Makefile.am): Likewise.
32064         * modules/yesno-tests (Makefile.am): Likewise.
32065
32066 2007-10-03  Bruno Haible  <bruno@clisp.org>
32067
32068         * modules/trunc-tests: New file.
32069         * tests/test-trunc.c: New file.
32070
32071         * modules/trunc: New file.
32072         * lib/trunc.c: New file.
32073         * m4/trunc.m4: New file.
32074         * lib/math.in.h (trunc): New declaration.
32075         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
32076         HAVE_DECL_TRUNC.
32077         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
32078         HAVE_DECL_TRUNC.
32079         * doc/functions/trunc.texi: Mention the 'trunc' module.
32080
32081 2007-10-03  Bruno Haible  <bruno@clisp.org>
32082
32083         * tests/test-fpending.c: New file, mostly copied
32084         from coreutils/lib/t-fpending.c.
32085         * modules/fpending-tests: New file.
32086
32087 2007-10-03  Bruno Haible  <bruno@clisp.org>
32088
32089         Port the stdio extensions to QNX (untested).
32090         * lib/fseterr.c (fseterr): Add support for QNX.
32091         * lib/fbufmode.c (fbufmode): Likewise.
32092         * lib/freadable.c (freadable): Likewise.
32093         * lib/fwritable.c (fwritable): Likewise.
32094         * lib/freading.c (freading): Likewise.
32095         * lib/fwriting.c (fwriting): Likewise.
32096         * lib/freadahead.c (freadahed): Likewise.
32097         * lib/fpurge.c (fpurge): Likewise.
32098         * lib/fseeko.c (rpl_fseeko): Likewise.
32099
32100 2007-10-03  Bruno Haible  <bruno@clisp.org>
32101             Jim Meyering  <jim@meyering.net>
32102             Eric Blake  <ebb9@byu.net>
32103
32104         * doc/relocatable.texi: Use @command instead of @program.
32105
32106 2007-10-02  Jim Meyering  <jim@meyering.net>
32107
32108         Perform one more "_.h" -> ".in.h" substitution.
32109         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
32110         instead of unistd_.h here, too.
32111
32112 2007-10-01  Bruno Haible  <bruno@clisp.org>
32113
32114         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
32115         Needed for the alloca-opt module.
32116
32117 2007-09-30  Bruno Haible  <bruno@clisp.org>
32118
32119         * lib/alloca.in.h: Renamed from lib/alloca_.h.
32120         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
32121         alloca_.h.
32122         * lib/argz.in.h: Renamed from lib/argz_.h.
32123         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
32124         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
32125         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
32126         byteswap_.h.
32127         * lib/dirent.in.h: Renamed from lib/dirent_.h.
32128         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
32129         dirent_.h.
32130         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
32131         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
32132         fcntl_.h.
32133         * lib/float.in.h: Renamed from lib/float_.h.
32134         * modules/float (Files, Makefile.am): Use float.in.h instead of
32135         float_.h.
32136         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
32137         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
32138         fnmatch_.h.
32139         * lib/getopt.in.h: Renamed from lib/getopt_.h.
32140         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
32141         getopt_.h.
32142         * lib/glob.in.h: Renamed from lib/glob_.h.
32143         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
32144         * lib/iconv.in.h: Renamed from lib/iconv_.h.
32145         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
32146         iconv_.h.
32147         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
32148         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
32149         inttypes_.h.
32150         * lib/locale.in.h: Renamed from lib/locale_.h.
32151         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
32152         locale_.h.
32153         * lib/math.in.h: Renamed from lib/math_.h.
32154         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
32155         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
32156         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
32157         of netinet_in_.h. Add dependency.
32158         * lib/poll.in.h: Renamed from lib/poll_.h.
32159         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
32160         * lib/search.in.h: Renamed from lib/search_.h.
32161         * modules/search (Files, Makefile.am): Use search.in.h instead of
32162         search_.h.
32163         * lib/signal.in.h: Renamed from lib/signal_.h.
32164         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
32165         _signal.h.
32166         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
32167         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
32168         stdbool_.h.
32169         * lib/stdint.in.h: Renamed from lib/stdint_.h.
32170         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
32171         stdint_.h.
32172         * lib/stdio.in.h: Renamed from lib/stdio_.h.
32173         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
32174         stdio_.h.
32175         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
32176         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
32177         stdlib_.h.
32178         * lib/string.in.h: Renamed from lib/string_.h.
32179         * modules/string (Files, Makefile.am): Use string.in.h instead of
32180         string_.h.
32181         * doc/gnulib-tool.texi (Initial import): Update.
32182         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
32183         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
32184         of sys_select_.h. Add dependency.
32185         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
32186         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
32187         of sys_socket_.h.
32188         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
32189         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
32190         sys_stat_.h.
32191         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
32192         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
32193         sys_time_.h.
32194         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
32195         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
32196         sysexits_.h.
32197         * lib/time.in.h: Renamed from lib/time_.h.
32198         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
32199         * lib/unistd.in.h: Renamed from lib/unistd_.h.
32200         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
32201         unistd_.h.
32202         * lib/wchar.in.h: Renamed from lib/wchar_.h.
32203         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
32204         wchar_.h.
32205         * lib/wctype.in.h: Renamed from lib/wctype_.h.
32206         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
32207         wctype_.h.
32208         * build-aux/bootstrap (slurp): Update.
32209         * lib/.cppi-disable: Update.
32210
32211 2007-09-30  Bruno Haible  <bruno@clisp.org>
32212
32213         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
32214         Needed on BeOS.
32215
32216 2007-09-30  Bruno Haible  <bruno@clisp.org>
32217
32218         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
32219
32220 2007-09-29  Bruno Haible  <bruno@clisp.org>
32221
32222         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
32223
32224 2007-09-29  Bruno Haible  <bruno@clisp.org>
32225
32226         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
32227         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
32228         * build-aux/install-reloc: Compile also areadlink.c.
32229         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
32230
32231 2007-09-29  Bruno Haible  <bruno@clisp.org>
32232
32233         * gnulib-tool (func_emit_initmacro_done): Indentation.
32234
32235 2007-09-29  Bruno Haible  <bruno@clisp.org>
32236
32237         * README: Add CVS checkout update instructions.
32238         Info from Bob Proulx <bob@proulx.com>.
32239
32240 2007-09-28  Eric Blake  <ebb9@byu.net>
32241
32242         Provide move-if-change.
32243         * build-aux/move-if-change: New file, based on best practice
32244         rather than any canonical upstream location.
32245
32246 2007-09-28  Jim Meyering  <jim@meyering.net>
32247
32248         Fix canonicalize loop-detection corner case.
32249         Do not attempt to stat the symlink values stored via seen_triple.
32250         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
32251         on linux-2.6.18, (but not 2.6.22).
32252         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
32253         triple_compare.  The former compares dev,ino,filename, while the latter
32254         would actually stat dirname(filename) when dev and ino were equal.
32255         * lib/hash-triple.c: Install <string.h>.
32256         (STREQ): Define.
32257         (triple_compare_ino_str): New function.
32258         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
32259
32260 2007-09-28  Eric Blake  <ebb9@byu.net>
32261
32262         Enforce that AC_REPLACE_FUNCS files exist.
32263         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
32264         override check for typos.
32265
32266         Fix test-closein on Solaris 10.
32267         * tests/test-closein.c (main): Don't assume stdin can be inherited
32268         closed on all systems.
32269         * tests/test-closein.sh: Likewise.
32270         Reported by Piotr Tarnowski.
32271
32272 2007-09-28  Jim Meyering  <jim@meyering.net>
32273
32274         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
32275
32276 2007-09-27  Jim Meyering  <jim@meyering.net>
32277
32278         canonicalize: Avoid a false-positive cycle failure.
32279         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
32280         Sort.  Remove cycle-check.
32281         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
32282         not cycle-check.h.
32283         (seen_triple): New function.
32284         (canonicalize_filename_mode): Use it instead of cycle-check.
32285         * tests/test-canonicalize.c: Add a test for this bug.
32286         * tests/test-canonicalize.sh: Set up and run the test.
32287
32288         New module, file-set, from coreutils.
32289         * modules/file-set: Define it.
32290         * lib/file-set.c, lib/file-set.h: Implement.
32291
32292         New module, hash-triple, from coreutils.
32293         * modules/hash-triple: Define it.
32294         * lib/hash-triple.c, lib/hash-triple.h: Implement.
32295
32296 2007-09-25  Eric Blake  <ebb9@byu.net>
32297
32298         Fix strerror on Interix.
32299         * lib/string_.h (strerror): Declare replacement.
32300         * doc/functions/strerror.texi (strerror): Document the Interix
32301         shortcoming.
32302         * modules/string (Makefile.am): Support new hooks.
32303         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
32304         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
32305         gl_FUNC_STRERROR_SEPARATE.
32306         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
32307         * lib/strerror.c (rpl_strerror): Provide replacement.
32308         * modules/strerror (Depends-on): Add string.
32309         (configure.ac): Detect use of module.
32310         * tests/test-strerror.c: New file.
32311         * modules/strerror-tests: New test module.
32312         * modules/argp (Depends-on): Add strerror.
32313         * modules/error (Depends-on): Likewise.
32314         Reported by Martin Koeppe.
32315
32316 2007-09-24  Bruno Haible  <bruno@clisp.org>
32317
32318         * README: Update git instructions.
32319
32320 2007-09-24  Eric Blake  <ebb9@byu.net>
32321
32322         Revert fpending breakage from 2007-09-08.
32323         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
32324         __fpending.c.
32325
32326 2007-09-24  Jim Meyering  <jim@meyering.net>
32327
32328         filenamecat.c: Add a test.
32329         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
32330         showing how the function works when DIR is the empty string.
32331
32332 2007-09-21  Simon Josefsson  <simon@josefsson.org>
32333
32334         * tests/test-canonicalize.sh: Turn on executable bit.
32335
32336 2007-09-19  Eric Blake  <ebb9@byu.net>
32337
32338         * README: Update CVS instructions.
32339
32340 2007-09-18  Bruno Haible  <bruno@clisp.org>
32341
32342         * modules/areadlink: New file.
32343         * lib/areadlink.h (areadlink): New declaration.
32344         * lib/areadlink.c: New file, based on lib/xreadlink.c.
32345
32346 2007-09-17  Jim Meyering  <jim@meyering.net>
32347
32348         * lib/savewd.c (ESTALE) [!defined]: Define.
32349         Reported to be required on Interix by Martin Koeppe.
32350
32351 2007-09-17  Bruno Haible  <bruno@clisp.org>
32352
32353         * gnulib-tool (func_version): Use $version.
32354
32355 2007-09-16  Bruno Haible  <bruno@clisp.org>
32356
32357         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
32358         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
32359         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
32360         Reported by Greg Schafer <gschafer@zip.com.au>.
32361
32362 2007-09-15  Bruno Haible  <bruno@clisp.org>
32363
32364         * gnulib-tool (sed): Try a little harder to make bash understand the
32365         alias.
32366         Reported by Bruce Korb <bruce.korb@gmail.com>.
32367
32368 2007-09-13  Eric Blake  <ebb9@byu.net>
32369
32370         * ChangeLog: Remove conflict markers.
32371
32372 2007-09-13  Simon Josefsson  <simon@josefsson.org>
32373
32374         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
32375         Reported by Bruno Haible <bruno@clisp.org>.
32376
32377 2007-09-12  Bruno Haible  <bruno@clisp.org>
32378
32379         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
32380         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
32381         is not defined.
32382
32383 2007-09-12  Eric Blake  <ebb9@byu.net>
32384
32385         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
32386         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
32387         Autoconf definition.
32388         * modules/euidaccess (Depends-on): Add extensions, for
32389         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
32390         * modules/fnmatch (Depends-on): Likewise.
32391         * modules/getaddrinfo (Depends-on): Likewise.
32392         * modules/getdelim (Depends-on): Likewise.
32393         * modules/getline (Depends-on): Likewise.
32394         * modules/getsubopt (Depends-on): Likewise.
32395         * modules/gettext (Depends-on): Likewise.
32396         * modules/group-member (Depends-on): Likewise.
32397         * modules/mbchar (Depends-on): Likewise.
32398         * modules/memmem (Depends-on): Likewise.
32399         * modules/mempcpy (Depends-on): Likewise.
32400         * modules/memrchr (Depends-on): Likewise.
32401         * modules/pagealign_alloc (Depends-on): Likewise.
32402         * modules/readutmp (Depends-on): Likewise.
32403         * modules/stpcpy (Depends-on): Likewise.
32404         * modules/stpncpy (Depends-on): Likewise.
32405         * modules/strchrnul (Depends-on): Likewise.
32406         * modules/strndup (Depends-on): Likewise.
32407         * modules/strsep (Depends-on): Likewise.
32408         * modules/strverscmp (Depends-on): Likewise.
32409         * modules/vasprintf (Depends-on): Likewise.
32410         * modules/wcwidth (Depends-on): Likewise.
32411         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
32412         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
32413         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
32414         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
32415         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
32416         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
32417         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
32418         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
32419         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
32420         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
32421         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
32422         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
32423         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
32424         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
32425         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
32426         * m4/readutmp.m4 (gl_READUTMP): Likewise.
32427         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
32428         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
32429         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
32430         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
32431         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
32432         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
32433         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
32434         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
32435         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
32436         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
32437         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
32438         so that lock.m4 can be used in gettext without extensions module.
32439
32440 2007-09-11  Bruno Haible  <bruno@clisp.org>
32441
32442         * m4/isc-posix.m4: Remove file.
32443         Suggested by Eric Blake.
32444
32445 2007-09-11  Eric Blake  <ebb9@byu.net>
32446
32447         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
32448
32449 2007-09-10  Bruno Haible  <bruno@clisp.org>
32450
32451         * posix-modules: Fix typo in error message.
32452         Reported by Matt <mkraai@beckman.com>.
32453
32454 2007-09-09  Bruno Haible  <bruno@clisp.org>
32455
32456         * doc/functions/getdelim.texi: Update list of platforms lacking the
32457         function.
32458         * doc/functions/getline.texi: Likewise.
32459
32460 2007-09-09  Jim Meyering  <jim@meyering.net>
32461
32462         * lib/hash.c (hash_initialize): Detect calloc failure.
32463         Reported by Bruno Haible.
32464
32465 2007-09-09  Bruno Haible  <bruno@clisp.org>
32466
32467         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
32468         malloc or realloc fails.
32469
32470 2007-09-09  Bruno Haible  <bruno@clisp.org>
32471
32472         * modules/getcwd (Depends-on): Add malloc-posix.
32473         * modules/glob (Depends-on): Likewise.
32474         * modules/putenv (Depends-on): Likewise.
32475         * modules/strdup (Depends-on): Likewise.
32476         * modules/getdelim (Depends-on): Add realloc-posix.
32477         * modules/read-file (Depends-on): Likewise.
32478
32479 2007-09-09  Bruno Haible  <bruno@clisp.org>
32480
32481         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
32482         (gl_FUNC_MALLOC_POSIX): Require it.
32483         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
32484         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
32485         * modules/realloc (Files): Add m4/malloc.m4.
32486         * modules/calloc (Files): Likewise.
32487
32488 2007-09-09  Bruno Haible  <bruno@clisp.org>
32489
32490         * modules/malloc-posix: New file.
32491         * modules/malloc (Depends-on): Add malloc-posix.
32492         * lib/malloc.c: Include errno.h.
32493         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
32494         and a POSIX-compatible malloc into a single function. Set ENOMEM
32495         when returning NULL.
32496         * m4/malloc.m4: New file.
32497         * doc/functions/malloc.texi: Mention the malloc-posix module.
32498         * lib/stdlib_.h (malloc): New declaration.
32499         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
32500         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
32501         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
32502         and HAVE_MALLOC_POSIX.
32503
32504 2007-09-09  Bruno Haible  <bruno@clisp.org>
32505
32506         * modules/realloc-posix: New file.
32507         * modules/realloc (Depends-on): Add realloc-posix.
32508         * lib/realloc.c: Include errno.h.
32509         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
32510         and a POSIX-compatible realloc into a single function. Set ENOMEM
32511         when returning NULL.
32512         * m4/realloc.m4: New file.
32513         * doc/functions/realloc.texi: Mention the realloc-posix module.
32514         * lib/stdlib_.h (realloc): New declaration.
32515         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
32516         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
32517         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
32518         and HAVE_REALLOC_POSIX.
32519
32520 2007-09-09  Bruno Haible  <bruno@clisp.org>
32521
32522         * modules/calloc-posix: New file.
32523         * modules/calloc (Depends-on): Add calloc-posix.
32524         * lib/calloc.c: Include errno.h.
32525         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
32526         and a POSIX-compatible calloc into a single function. Set ENOMEM
32527         when returning NULL.
32528         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
32529         * doc/functions/calloc.texi: Mention the calloc-posix module.
32530         * lib/stdlib_.h (calloc): New declaration.
32531         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
32532         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
32533         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
32534         and HAVE_CALLOC_POSIX.
32535
32536 2007-09-09  Bruno Haible  <bruno@clisp.org>
32537
32538         Allow for modules to show an arbitrary notice.
32539         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
32540         * gnulib-tool: New option --extract-notice.
32541         (func_usage): Document it.
32542         (sed_extract_prog): Update.
32543         (func_get_notice): New function.
32544         (func_modules_notice): New function.
32545         (func_import, func_create_testdir): Invoke it.
32546         Suggested by Jim Meyering.
32547
32548 2007-09-09  Bruno Haible  <bruno@clisp.org>
32549
32550         * gnulib-tool: New options --verbose, --quiet.
32551         (func_usage): Document them.
32552         (verbose): New variable.
32553         (func_execute_command): New function.
32554         (func_import): Don't show the module list and the file list if
32555         $verbose < 0.
32556         (func_create_testdir): Likewise. Use func_execute_command.
32557         (func_create_megatestdir): Use func_execute_command.
32558
32559 2007-09-08  Bruno Haible  <bruno@clisp.org>
32560
32561         * gnulib-tool (func_import): Prefer rsync over wget when available,
32562         for fetching the PO files.
32563
32564 2007-09-08  Bruno Haible  <bruno@clisp.org>
32565
32566         * posix-modules: New file. Portions copied from gnulib-tool.
32567         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
32568
32569 2007-09-08  Jim Meyering  <jim@meyering.net>
32570
32571         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
32572         * lib/fpending.h: Rename from __fpending.h.
32573         * lib/fpending.c: Rename from __fpending.c.
32574         Include "fpending.h", not "__fpending.h".
32575         * lib/__fpending.h, lib/__fpending.c: Remove files.
32576         * modules/fpending (Files): Reflect new file names.
32577         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
32578
32579 2007-09-08  Bruno Haible  <bruno@clisp.org>
32580
32581         * m4/inttypes-h.m4: Remove stub file.
32582
32583 2007-09-07  Simon Josefsson  <simon@josefsson.org>
32584
32585         * doc/headers/stdint.texi: Discuss #include_next issue.
32586
32587 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
32588
32589         * build-aux/bootstrap: Remove obsolete comment about wget --help.
32590
32591 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32592
32593         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
32594         in variable name.
32595
32596 2007-09-03  Jim Meyering  <jim@meyering.net>
32597
32598         New module: git-version-gen.
32599         * modules/git-version-gen: New file.
32600
32601         Import changes from coreutils for bootstrap script.
32602
32603         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
32604
32605         bootstrap: uses rsync to download the .po files
32606         * build-aux/bootstrap (po_download_command_format): New global.
32607         (download_po_files): Use rsync.
32608         (update_po_files): Don't remove .po files after download,
32609         so future rsync runs can take advantage of the copies.
32610
32611         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
32612
32613         Solve the unnecessary-.po-file-regeneration problem once and for all.
32614         * build-aux/bootstrap (download_po_files): New function, renamed from
32615         get_translations.  Now, downloads, but doesn't update LINGUAS.
32616         (update_po_files): New function.
32617
32618         bootstrap: Ignore more.
32619         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
32620         uniwidth to e.g., lib/.gitignore.
32621         (slurp): Handle the sys_stat_.h -> sys mapping, too.
32622
32623         * build-aux/bootstrap: New setting: vc_ignore.
32624         (insert_sorted_if_absent): Create $file if absent.
32625         Adapt to new, possibly empty, list: $vc_ignore.
32626
32627         bootstrap: generate more ignorable names
32628         * build-aux/bootstrap (slurp): When generating ignorable names,
32629         also map .sin to .sed, .gperf to .c, and .y to .c.
32630
32631 2007-09-03  Jim Meyering  <jim@meyering.net>
32632
32633         * build-aux/git-version-gen: New file, from coreutils.  For details, see
32634         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
32635
32636 2007-09-02  Bruno Haible  <bruno@clisp.org>
32637
32638         Fix mis-recognition of 'mcs' on QNX 6.
32639         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
32640         output contains the string "Mono".
32641         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
32642         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
32643
32644 2007-09-01  Bruno Haible  <bruno@clisp.org>
32645
32646         Fix collision between uniwidth/* and linebreak modules.
32647         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
32648         u32_width): Remove declarations.
32649         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
32650         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
32651         streq3, streq2, streq1, streq0): Remove functions.
32652         (STREQ): Remove macro.
32653         (is_cjk_encoding): Remove function.
32654         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
32655         (uc_width, u8_width, u16_width, u32_width): Remove functions.
32656         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
32657         * NEWS: Document the change.
32658
32659 2007-09-01  Bruno Haible  <bruno@clisp.org>
32660
32661         * lib/streq.h: Add double-inclusion guard.
32662
32663 2007-09-01  Karl Berry  <karl@gnu.org>
32664
32665         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
32666
32667 2007-08-28  Jim Meyering  <jim@meyering.net>
32668
32669         Rename mreadlink_with_size to areadlink_with_size.
32670         * NEWS: Document the change.
32671         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
32672         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
32673         * lib/mreadlink.h: Rename this to...
32674         * lib/areadlink.h: ...this.
32675         * modules/mreadlink-with-size: Rename this to...
32676         * modules/areadlink-with-size: ...this.
32677         * lib/canonicalize.c: Reflect the renaming.
32678         * modules/canonicalize: Likewise.
32679
32680 2007-08-26  Bruno Haible  <bruno@clisp.org>
32681
32682         * gnulib-tool (func_import): When deciding which files to remove,
32683         consider also dangling symbolic links.
32684         Reported by Eric Blake.
32685
32686 2007-08-26  Bruno Haible  <bruno@clisp.org>
32687
32688         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
32689
32690 2007-08-23  Simon Josefsson  <simon@josefsson.org>
32691
32692         * lib/readline.c: Don't include getline.h, the prototype is now
32693         found in stdio.h.
32694
32695 2007-08-23  Jim Meyering  <jim@meyering.net>
32696
32697         Getdelim touchup.
32698         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
32699         around the funlockfile call, since funlockfile never sets errno.
32700         Don't set errno upon failed realloc.
32701
32702 2007-08-22  Eric Blake  <ebb9@byu.net>
32703
32704         Getline touchups.
32705         * lib/getdelim.c (getdelim): Revert regression that required *n to
32706         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
32707         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
32708         getdelim, rather than whether implementation is missing.
32709         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
32710         * lib/stdio_.h (getline): Also declare if replacement is
32711         required.
32712         * doc/functions/getdelim.texi: New file.
32713         * doc/functions/getline.texi: Likewise.
32714         * doc/gnulib.texi (Function Substitutes): Add new files.
32715         Reported by Bruno Haible.
32716
32717 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
32718
32719         * users.txt: Add Guile.
32720
32721 2007-08-22  Eric Blake  <ebb9@byu.net>
32722
32723         * tests/test-getdelim.c (main): Use remove, not unlink.
32724         * tests/test-getline.c (main): Likewise.
32725
32726         Move getline and getdelim into stdio.h, per POSIX 200x.
32727         * modules/getline (Files): Remove getline.h.
32728         (Depends-on): Add stdio.
32729         (configure.ac): Add module indicator.
32730         * modules/getdelim (Files): Remove getdelim.h.
32731         (Depends-on): Add stdio.
32732         (configure.ac): Add module indicator.
32733         * modules/stdio (Makefile.am): Work with new indicators.
32734         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
32735         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
32736         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
32737         * lib/getdelim.h: Delete.
32738         * lib/getline.h: Delete.
32739         * lib/stdio_.h (getdelim, getline): Declare.
32740         * modules/getdelim-tests: New module.
32741         * modules/getline-tests: Likewise.
32742         * tests/test-getdelim.c: New file.
32743         * tests/test-getline.c: Likewise.
32744         * NEWS: Document the change.
32745         * lib/getline.c: Update choice of header.
32746         * lib/csharpcomp.c: Likewise.
32747         * lib/getpass.c: Likewise.
32748         * lib/javacomp.c: Likewise.
32749         * lib/javaversion.c: Likewise.
32750         * lib/yesno.c: Likewise.
32751         * lib/getdelim.c: Likewise.
32752         (getdelim): Set errno on failure, and avoid memory leak.
32753
32754 2007-08-19  Bruno Haible  <bruno@clisp.org>
32755
32756         * modules/closein (Depends-on): Add freadahead.
32757         * lib/closein.c: Include freadahead.h.
32758         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
32759         is zero.
32760
32761 2007-08-19  Bruno Haible  <bruno@clisp.org>
32762
32763         * modules/freadahead-tests: New file.
32764         * tests/test-freadahead.sh: New file.
32765         * tests/test-freadahead.c: New file.
32766
32767         * modules/freadahead: New file.
32768         * lib/freadahead.h: New file.
32769         * lib/freadahead.c: New file.
32770         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
32771         fbufmode, fpurge, freadable, fwritable.
32772
32773 2007-08-19  Eric Blake  <ebb9@byu.net>
32774
32775         Test yesno in combination with closein.
32776         * lib/yesno.c (yesno): Document use of stdin.
32777         * modules/yesno-tests (Files): New module.
32778         * tests/test-yesno.c (main): New file.
32779         * tests/test-yesno.sh: Likewise.
32780
32781 2007-08-19  Bruno Haible  <bruno@clisp.org>
32782
32783         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
32784         * lib/fseeko.c (rpl_fseeko): Likewise.
32785         * lib/fseterr.c (fseterr): Likewise.
32786
32787 2007-08-19  Bruno Haible  <bruno@clisp.org>
32788
32789         * tests/test-lseek.c (main): Disable a test for BeOS.
32790         * doc/functions/lseek.texi: Document the BeOS bug.
32791
32792 2007-08-19  Bruno Haible  <bruno@clisp.org>
32793             Eric Blake  <ebb9@byu.net>
32794
32795         * lib/lseek.c: Include <sys/stat.h>.
32796         (rpl_lseek): Add workaround code also for Unix platforms.
32797         Needed for BeOS.
32798         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
32799         * doc/functions/lseek.texi: Document BeOS definiency.
32800
32801 2007-08-18  Bruno Haible  <bruno@clisp.org>
32802
32803         * modules/fstrcmp-tests: New file.
32804         * tests/test-fstrcmp.c: New file.
32805
32806 2007-08-18  Bruno Haible  <bruno@clisp.org>
32807
32808         * modules/fstrcmp: New file, from GNU gettext with modifications.
32809         * lib/fstrcmp.h: New file, from GNU gettext.
32810         * lib/fstrcmp.c: New file, from GNU gettext.
32811         * MODULES.html.sh (String handling): Add fstrcmp.
32812
32813 2007-08-18  Bruno Haible  <bruno@clisp.org>
32814
32815         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
32816         'bool'.
32817         (diag, compareseq): Remove const from the ctxt argument.
32818         (USE_HEURISTIC): Undefine at the end.
32819
32820 2007-08-18  Jim Meyering  <jim@meyering.net>
32821
32822         New file: lib/idcache.h
32823         * NEWS: Mention the addition.
32824         * modules/idcache (Files): Add lib/idcache.h
32825         * lib/idcache.c: Include "idcache.h".
32826         Don't include <sys/types.h>.
32827         Add a FIXME comment.
32828         Move file-scoped "static" declarations to the top.
32829         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
32830
32831 2007-08-17  Bruno Haible  <bruno@clisp.org>
32832         and Paul Eggert  <eggert@cs.ucla.edu>
32833
32834         * MODULES.html.sh: Add diffseq.
32835         * modules/diffseq: New file.
32836         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
32837         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
32838
32839 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
32840
32841         Import changes from coreutils for bootstrap script.
32842
32843         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
32844
32845         * build-aux/bootstrap (slurp): Work even in environments where
32846         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
32847         current code does not slurp files whose names start with ".", and
32848         this looks like it might be a troublesome area.
32849
32850         2007-07-11  Jim Meyering  <jim@meyering.net>
32851
32852         If there's a GPL vN copyright comment, require that N == 3.
32853
32854         2007-07-08  Jim Meyering  <jim@meyering.net>
32855
32856         Run the coreutils-specific code only if tests/Makefile.am.in exists.
32857         * build-aux/bootstrap (mam_template): Move definition out of loop.
32858
32859         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
32860
32861         * build-aux/bootstrap (symlink_to_dir): Rename function from
32862         symlink_to_gnulib.  Add a directory parameter.  Update all
32863         callers.
32864         (cp_mark_as_generated): Also check for -- and link to -- files in
32865         gl/.
32866
32867         2007-07-08  Jim Meyering  <jim@meyering.net>
32868
32869         Adapt to deeper hierarchy in gnulib.
32870         * build-aux/bootstrap (symlink_to_dir): If the destination
32871         directory doesn't exist, create it. This is required at least for
32872         "lib/uniwidth/cjk.h".
32873
32874         2007-05-15  Jim Meyering  <jim@meyering.net>
32875
32876         * build-aux/bootstrap: Now that generated Makefile.am files
32877         are no longer under version control, they must be created at
32878         bootstrap time.
32879
32880 2007-08-14  Ben Pfaff  <blp@gnu.org>
32881
32882         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
32883
32884 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
32885
32886         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
32887         given the changes below.
32888         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
32889         even on hosts that have padding bits beyond the supported 64.
32890
32891 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
32892
32893         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
32894         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
32895         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
32896         depends on it.
32897         (xstrtol_error): Remove.
32898         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
32899         but with a different signature.
32900         (ATTRIBUTE_NORETURN, __attribute__): New macros.
32901         * lib/xstrtol-error.c: Include exitfail.h.
32902         (xstrtol_fatal): New function, with a different signature from the
32903         old xstrtol_error, so that the caller need not worry about passing
32904         in an exit status, or about storage management of the option argument.
32905         (xstrtol_error): Now a static function.  Redo signature to
32906         implement xstrtol_fatal.  Output the correct number of hyphens in
32907         front of the option so that the caller need not worry about
32908         storage management.
32909         (N_): New macro.
32910         (_): Remove; not used now.
32911         * modules/xstrtol: Depend on getopt.
32912         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
32913         of old STRTOL_FATAL_ERROR macro.
32914         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
32915         of test program.
32916         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
32917         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
32918
32919 2007-08-08  Eric Blake  <ebb9@byu.net>
32920
32921         * lib/xstrtol-error.c: Add missing include.
32922
32923         Move xstrtol messages into gnulib domain, when --pobase is used.
32924         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
32925         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
32926         * modules/xstrtol (Files): Distribute new file.
32927         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
32928         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
32929         * tests/test-xstrtol.c: ...into new file.
32930         * tests/test-xstrtoul.c: Also test xstrtoul.
32931         * tests/test-xstrtoimax.c: Also test xstrtoimax.
32932         * tests/test-xstrtoumax.c: Also test xstrtoumax.
32933         * tests/test-xstrtol.sh: Drive the tests.
32934         * tests/test-xstrtoimax.sh: Likewise.
32935         * tests/test-xstrtoumax.sh: Likewise.
32936         * modules/xstrtol-tests: New module.
32937         * modules/xstrtoimax-tests: Likewise.
32938         * modules/xstrtoumax-tests: Likewise.
32939
32940 2007-08-08  Jim Meyering  <jim@meyering.net>
32941
32942         New function: mfile_name_concat.
32943         * lib/filenamecat.c (mfile_name_concat): New function, just like
32944         file_name_concat, but return NULL upon failure rather than exiting
32945         with a diagnostic.
32946         * lib/filenamecat.h: Declare it.
32947
32948 2007-08-07  Bruno Haible  <bruno@clisp.org>
32949
32950         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
32951         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
32952         warning from gcc.
32953         Reported by Eric Blake.
32954
32955 2007-08-07  Simon Josefsson  <simon@josefsson.org>
32956
32957         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
32958         * modules/crypto/arcfour (License): Likewise.
32959         * modules/crypto/des-tests (License): Likewise.
32960         * modules/crypto/gc-arctwo-tests (License): Likewise.
32961         * modules/crypto/gc-des-tests (License): Likewise.
32962         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
32963         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
32964         * modules/crypto/gc-md2-tests (License): Likewise.
32965         * modules/crypto/gc-md4-tests (License): Likewise.
32966         * modules/crypto/gc-md5-tests (License): Likewise.
32967         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
32968         * modules/crypto/gc-rijndael-tests (License): Likewise.
32969         * modules/crypto/gc-sha1-tests (License): Likewise.
32970         * modules/crypto/gc-tests (License): Likewise.
32971         * modules/crypto/hmac-md5 (License): Likewise.
32972         * modules/crypto/hmac-sha1 (License): Likewise.
32973         * modules/crypto/md2-tests (License): Likewise.
32974         * modules/crypto/md4-tests (License): Likewise.
32975         * modules/crypto/md5 (License): Likewise.
32976         * modules/crypto/rijndael (License): Likewise.
32977         * modules/crypto/sha1 (License): Likewise.
32978         * modules/memxor (License): Likewise.
32979
32980 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
32981         and Bruno Haible  <bruno@clisp.org>
32982
32983         * NEWS: Describe interface changes to human, xstrtol.
32984         * lib/human.h: Include <xstrtol.h>.
32985         (human_options): Return enum strtol_error, not int.  Remove
32986         bool arg; take int * instead.
32987         * lib/human.c: Don't include "gettext.h".
32988         (_): Remove; no longer used.
32989         Don't include <xstrtol.h>, since human.h does it.
32990         (human_options): Adjust to abovementioned interface changes.
32991         Do not report error to stderr; that's now the caller's
32992         responsibility.
32993         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
32994         interface change.
32995         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
32996         Str, Argument_type_string.  All uses changed.  Put " argument"
32997         in diagnostics to make them clearer.  Change wording of suffix
32998         message for clarity.
32999         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
33000         Argument_type_string.
33001         (STRTOL_FATAL_WARN): Remove; no longer used.
33002         * modules/human (Depends-on): Remove gettext-h.
33003
33004 2007-08-06  Simon Josefsson  <simon@josefsson.org>
33005
33006         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
33007
33008 2007-07-31  Bruno Haible  <bruno@clisp.org>
33009
33010         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
33011         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
33012         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
33013
33014 2007-07-31  Bruno Haible  <bruno@clisp.org>
33015
33016         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
33017         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
33018
33019 2007-07-30  Bruno Haible  <bruno@clisp.org>
33020
33021         * modules/base64 (License): Use the synonymous term "LGPLv2+".
33022         * modules/c-ctype (License): Likewise.
33023         * modules/c-strcase (License): Likewise.
33024         * modules/check-version (License): Likewise.
33025         * modules/iconv (License): Likewise.
33026         * modules/iconv_open (License): Likewise.
33027         * modules/read-file (License): Likewise.
33028         * modules/striconv (License): Likewise.
33029         * modules/strverscmp (License): Likewise.
33030         * modules/vasprintf (License): Likewise.
33031         * modules/crypto/des (License): Likewise.
33032         * modules/crypto/gc (License): Likewise.
33033         * modules/crypto/gc-arcfour (License): Likewise.
33034         * modules/crypto/gc-arctwo (License): Likewise.
33035         * modules/crypto/gc-des (License): Likewise.
33036         * modules/crypto/gc-hmac-md5 (License): Likewise.
33037         * modules/crypto/gc-hmac-sha1 (License): Likewise.
33038         * modules/crypto/gc-md2 (License): Likewise.
33039         * modules/crypto/gc-md4 (License): Likewise.
33040         * modules/crypto/gc-md5 (License): Likewise.
33041         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
33042         * modules/crypto/gc-random (License): Likewise.
33043         * modules/crypto/gc-rijndael (License): Likewise.
33044         * modules/crypto/gc-sha1 (License): Likewise.
33045         * modules/crypto/md2 (License): Likewise.
33046         * modules/crypto/md4 (License): Likewise.
33047
33048 2007-07-30  Jim Meyering  <jim@meyering.net>
33049
33050         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
33051         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
33052         it has valid stat data.  This bug would cause du not to count the
33053         sizes of inaccessible directories.
33054         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
33055         in <http://bugzilla.redhat.com/250077>.
33056
33057 2007-07-25  Peter O'Gorman  <peter@pogma.com>
33058             Bruno Haible  <bruno@clisp.org>
33059
33060         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
33061         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
33062         #include_next, gives a diagnostic about it, but reports no error in
33063         the exit code.
33064         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
33065
33066 2007-07-24  Ben Pfaff  <blp@gnu.org>
33067
33068         Improve name: "count-one-bits" is better than "popcount".
33069         * MODULES.html.sh: Update name.
33070         * lib/popcount.h: Renamed lib/count-one-bits.h.
33071         (popcount): Renamed count_one_bits.
33072         (popcountl): Renamed count_one_bits_l.
33073         (popcountll): Renamed count_one_bits_ll.
33074         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
33075         * modules/popcount: Renamed module/count-one-bits.
33076         * modules/popcount-tests: Renamed module/count-one-bits-tests.
33077         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
33078
33079 2007-07-23  Ben Pfaff  <blp@gnu.org>
33080
33081         * lib/popcount.h (popcount32): Reduce size of constants, to allow
33082         better code generation, and add U to large constants to avoid
33083         warnings, in non-GCC case.
33084         Suggested by Bruno Haible.
33085
33086 2007-07-23  Ben Pfaff  <blp@gnu.org>
33087
33088         * lib/popcount.h: Use verify_true instead of if...abort.
33089         * modules/popcount: Depend on verify module.
33090         Suggested by Jim Meyering.
33091
33092 2007-07-23  Bruno Haible  <bruno@clisp.org>
33093
33094         * gnulib-tool (func_import): Create a .cvsignore file also when the
33095         directory is not yet in CVS but the toplevel directory is. When
33096         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
33097         Reported by Karl Berry.
33098
33099 2007-07-22  Ben Pfaff  <blp@gnu.org>
33100
33101         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
33102         case.
33103         Suggested by Eric Blake.
33104
33105 2007-07-22  Ben Pfaff  <blp@gnu.org>
33106
33107         New module: popcount.
33108         * MODULES.html.sh: Add popcount.
33109         * modules/popcount: New file.
33110         * modules/popcount-tests: New file.
33111         * tests/test-popcount.c: New file.
33112         * lib/popcount.h: New file.
33113         * m4/popcount.m4: New file.
33114
33115 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
33116
33117         * build-aux/announce-gen: Update to GPLv3.
33118
33119         * build-aux/config.guess: Update from config.
33120
33121 2007-07-21  Bruno Haible  <bruno@clisp.org>
33122
33123         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
33124         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
33125
33126 2007-07-20  Jim Meyering  <jim@meyering.net>
33127
33128         * check-module: Diagnose a self-dependency.
33129
33130 2007-07-19  Bruno Haible  <bruno@clisp.org>
33131
33132         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
33133         empty.
33134         Reported by Eric Blake.
33135
33136 2007-07-18  Bruno Haible  <bruno@clisp.org>
33137
33138         * gnulib-tool: New options --po-base, --po-domain.
33139         (func_usage): Document them.
33140         (pobase, po_domain): New variables.
33141         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
33142         DEFAULT_TEXT_DOMAIN.
33143         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
33144         (func_import): Consider pobase and po_domain. Create a po/ directory.
33145         (func_create_testdir): Set pobase and po_domain to empty.
33146         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
33147         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
33148
33149 2007-07-18  Bruno Haible  <bruno@clisp.org>
33150
33151         * gnulib-tool (func_get_automake_snippet): Synthesize also an
33152         EXTRA_DIST augmentation for files in build-aux/.
33153
33154 2007-07-16  Bruno Haible  <bruno@clisp.org>
33155
33156         * modules/lseek (License): Use the synonymous term "LGPLv2+".
33157         * modules/getdelim (License): Likewise.
33158
33159 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33160
33161         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
33162         * modules/d-type (License): Likewise.
33163         * modules/extensions (License): Likewise.
33164         * modules/fnmatch (License): Likewise.
33165         * modules/fseeko (License): Likewise.
33166         * modules/getaddrinfo (License): Likewise.
33167         * modules/getline (License): Likewise.
33168         * modules/getlogin_r (License): Likewise.
33169         * modules/getpass (License): Likewise.
33170         * modules/gettimeofday (License): Likewise.
33171         * modules/glob (License): Likewise.
33172         * modules/inet_ntop (License): Likewise.
33173         * modules/malloc (License): Likewise.
33174         * modules/malloca (License): Likewise.
33175         * modules/memmem (License): Likewise.
33176         * modules/mempcpy (License): Likewise.
33177         * modules/memset (License): Likewise.
33178         * modules/minmax (License): Likewise.
33179         * modules/mktime (License): Likewise.
33180         * modules/netinet_in (License): Likewise.
33181         * modules/pathmax (License): Likewise.
33182         * modules/poll (License): Likewise.
33183         * modules/regex (License): Likewise.
33184         * modules/snprintf (License): Likewise.
33185         * modules/stdbool (License): Likewise.
33186         * modules/stdint (License): Likewise.
33187         * modules/stdio (License): Likewise.
33188         * modules/strcase (License): Likewise.
33189         * modules/strcasestr (License): Likewise.
33190         * modules/strdup (License): Likewise.
33191         * modules/string (License): Likewise.
33192         * modules/strndup (License): Likewise.
33193         * modules/strnlen (License): Likewise.
33194         * modules/strpbrk (License): Likewise.
33195         * modules/strptime (License): Likewise.
33196         * modules/strsep (License): Likewise.
33197         * modules/sys_select (License): Likewise.
33198         * modules/sys_socket (License): Likewise.
33199         * modules/sys_stat (License): Likewise.
33200         * modules/sys_time (License): Likewise.
33201         * modules/time (License): Likewise.
33202         * modules/time_r (License): Likewise.
33203         * modules/timegm (License): Likewise.
33204         * modules/unistd (License): Likewise.
33205         * modules/vsnprintf (License): Likewise.
33206         * modules/wctype (License): Likewise.
33207
33208 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33209
33210         * modules/argz (License): LGPLv2+.
33211
33212 2007-07-15  Karl Berry  <karl@gnu.org>
33213
33214         * doc/gnulib.texi: revise node structure per new fdl.texi.
33215
33216 2007-07-14  Bruno Haible  <bruno@clisp.org>
33217
33218         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
33219         the output file.
33220         * lib/uniname/uninames.h: Regenerated.
33221
33222 2007-07-14  Karl Berry  <karl@gnu.org>
33223
33224         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
33225         omitting sectioning and index commands.
33226
33227 2007-07-13  Bruno Haible  <bruno@clisp.org>
33228
33229         New gnulib-tool option --more-symlinks.
33230         * gnulib-tool (func_usage): Document --more-symlinks.
33231         (do_copyrights): New variable.
33232         Recognize option --more-symlinks.
33233         (func_import): Don't add a copyright notice transform to
33234         sed_transform_lib_file if do_copyrights is empty.
33235
33236 2007-07-13  Bruno Haible  <bruno@clisp.org>
33237
33238         * lib/vasnprintf.c (decimal_point_char): Define also if
33239         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
33240         && !NEED_PRINTF_DIRECTIVE_A.
33241         Reported by Clemens Koller <clemens.koller@anagramm.de> via
33242         Gary V. Vaughan <gary@gnu.org>.
33243
33244 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
33245
33246         * lib/inttypes_.h: Undo previous change, since it was fixed
33247         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
33248
33249 2007-07-13  Bruno Haible  <bruno@clisp.org>
33250
33251         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
33252         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
33253
33254 2007-07-13  Jim Meyering  <jim@meyering.net>
33255
33256         df: Don't fail for Tru64's "file-on-file mount".
33257         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
33258         so we fall through and use statfs instead.  Details here:
33259         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
33260         Reported by Albert Chin.
33261
33262 2007-07-13  Bruno Haible  <bruno@clisp.org>
33263
33264         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
33265         * modules/configmake (License): Likewise.
33266         * modules/gettext (License): Likewise.
33267         * modules/gettext-h (License): Likewise.
33268         * modules/include_next (License): Likewise.
33269         * modules/link-warning (License): Likewise.
33270         * modules/localcharset (License): Likewise.
33271         * modules/localename (License): Likewise.
33272         * modules/lock (License): Likewise.
33273         * modules/relocatable-lib-lgpl (License): Likewise.
33274         * modules/size_max (License): Likewise.
33275         * modules/vasnprintf (License): Likewise.
33276         * modules/wchar (License): Likewise.
33277         * modules/xsize (License): Likewise.
33278
33279 2007-07-13  Bruno Haible  <bruno@clisp.org>
33280
33281         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
33282         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
33283
33284 2007-07-12  Bruno Haible  <bruno@clisp.org>
33285
33286         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
33287         in the modules files.
33288
33289 2007-07-11  Karl Berry  <karl@gnu.org>
33290
33291         * MODULES.html.sh (func_module): use
33292          sed -e '\|^'"${includefile}"'$|d'
33293          instead of /.../d, to avoid errors on $includefile's containing /.
33294
33295 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
33296
33297         * gnulib-tool (func_import): Avoid duplication of --avoid
33298         statements
33299         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
33300         names to `_' in variable names.
33301
33302 2007-07-10  Eric Blake  <ebb9@byu.net>
33303
33304         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
33305         * NEWS: Document this change.
33306
33307 2007-07-08  Bruno Haible  <bruno@clisp.org>
33308
33309         Update to Unicode 5.0.
33310         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
33311         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
33312         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
33313         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
33314         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
33315         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
33316         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
33317         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
33318         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
33319         U+10A3F, U+1D242..U+1D244.
33320         (nonspacing_table_ind): Update.
33321         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
33322         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
33323
33324 2007-07-08  Bruno Haible  <bruno@clisp.org>
33325
33326         Update to Unicode 5.0.
33327         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
33328         code transform. Extend the name index field of unicode_name_to_code and
33329         unicode_code_to_name from 16 to 24 bits.
33330         * lib/uniname/uniname.c (unicode_character_name,
33331         unicode_name_character): Add the range 0x12xxx to the code transform.
33332         * lib/uniname/uninames.h: Regenerated.
33333         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
33334
33335 2007-07-07  Bruno Haible  <bruno@clisp.org>
33336
33337         * modules/wcwidth-tests: New file.
33338         * tests/test-wcwidth.c: New file.
33339
33340         Work around MacOS X wcwidth() bug.
33341         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
33342         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
33343         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
33344         original wcwidth in non-UTF-8 locales.
33345         * modules/wcwidth (Depends-on): Add localcharset, streq,
33346         uniwidth/width.
33347         * doc/functions/wcwidth.texi: Update.
33348
33349 2007-07-07  Bruno Haible  <bruno@clisp.org>
33350
33351         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
33352         (wcwidth): New declaration.
33353         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
33354         macros.
33355         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
33356         here. Prepare for creating <wchar.h> unconditionally.
33357         * modules/wchar (Depends-on): Add link-warning.
33358         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
33359         REPLACE_WCWIDTH, and GL_LINK_WARNING.
33360         * lib/wcwidth.h: Remove file.
33361         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
33362         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
33363         * modules/wcwidth (Files): Remove lib/wcwidth.h.
33364         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
33365         (Include): Replace wcwidth.h with <wchar.h>.
33366         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
33367         * lib/mbchar.h: Don't include wcwidth.h.
33368         * lib/mbswidth.c: Likewise.
33369         * NEWS: Mention the change.
33370
33371 2007-07-07  Bruno Haible  <bruno@clisp.org>
33372
33373         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
33374         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
33375         definition with an external declaration.
33376         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
33377         defined as a function. Remove AC_C_INLINE requirement.
33378         * modules/wcwidth (Files): Add lib/wcwidth.c.
33379         (Makefile.am): Remove redundant statement.
33380
33381 2007-07-07  Bruno Haible  <bruno@clisp.org>
33382
33383         * MODULES.html.sh (Unicode string functions): Add the new modules.
33384
33385         * tests/uniwidth/test-u32-strwidth.c: New file.
33386         * modules/uniwidth/u32-strwidth-tests: New file.
33387
33388         * lib/uniwidth/u32-strwidth.c: New file.
33389         * modules/uniwidth/u32-strwidth: New file.
33390
33391         * tests/uniwidth/test-u16-strwidth.c: New file.
33392         * modules/uniwidth/u16-strwidth-tests: New file.
33393
33394         * lib/uniwidth/u16-strwidth.c: New file.
33395         * modules/uniwidth/u16-strwidth: New file.
33396
33397         * tests/uniwidth/test-u8-strwidth.c: New file.
33398         * modules/uniwidth/u8-strwidth-tests: New file.
33399
33400         * lib/uniwidth/u8-strwidth.c: New file.
33401         * modules/uniwidth/u8-strwidth: New file.
33402
33403         * tests/uniwidth/test-u32-width.c: New file.
33404         * modules/uniwidth/u32-width-tests: New file.
33405
33406         * lib/uniwidth/u32-width.c: New file.
33407         * modules/uniwidth/u32-width: New file.
33408
33409         * tests/uniwidth/test-u16-width.c: New file.
33410         * modules/uniwidth/u16-width-tests: New file.
33411
33412         * lib/uniwidth/u16-width.c: New file.
33413         * modules/uniwidth/u16-width: New file.
33414
33415         * tests/uniwidth/test-u8-width.c: New file.
33416         * modules/uniwidth/u8-width-tests: New file.
33417
33418         * lib/uniwidth/u8-width.c: New file.
33419         * modules/uniwidth/u8-width: New file.
33420
33421         * tests/uniwidth/test-uc_width.c: New file.
33422         * modules/uniwidth/width-tests: New file.
33423
33424         * lib/uniwidth/width.c: New file, from GNU libiconv.
33425         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
33426         * modules/uniwidth/width: New file.
33427
33428         * lib/uniwidth.h: New file, from GNU libiconv.
33429         * modules/uniwidth/base: New file.
33430
33431 2007-07-07  Bruno Haible  <bruno@clisp.org>
33432
33433         * lib/uniname.h: New file, from GNU gettext.
33434         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
33435         * lib/uniname/uninames.h: New file, from GNU gettext.
33436         * lib/uniname/uniname.c: New file, from GNU gettext.
33437         * tests/uniname/test-uninames.sh: New file.
33438         * tests/uniname/test-uninames.c: New file, from GNU gettext.
33439         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
33440         * modules/uniname/base: New file.
33441         * modules/uniname/uniname: New file.
33442         * modules/uniname/uniname-tests: New file.
33443         * MODULES.html.sh (Unicode string functions): Add the new modules.
33444
33445 2007-07-06  Bruno Haible  <bruno@clisp.org>
33446
33447         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
33448
33449 2007-07-06  Bruno Haible  <bruno@clisp.org>
33450
33451         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
33452         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
33453         includes <cygwin/sys_time.h> which includes <sys/select.h> which
33454         include <sys/time.h>.
33455         Reported by Eric Blake.
33456
33457 2007-07-06  Eric Blake  <ebb9@byu.net>
33458
33459         Fix testing canonicalize on cygwin.
33460         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
33461         Revert patch from 2007-06-19.
33462         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
33463         canonicalize module is also in use.
33464         * tests/test-canonicalize.c: New file.
33465         * tests/test-canonicalize.sh: Likewise.
33466         * modules/canonicalize-tests: Likewise.
33467
33468 2007-07-06  Jim Meyering  <jim@meyering.net>
33469
33470         * lib/getugroups.c (getugroups): Detect getgrent failure.
33471         Adjust comment to reflect reality: this function may return -1.
33472
33473 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
33474
33475         * build-aux/bootstrap (TP_URL,get_translations): Update to use
33476         the new TP address.
33477         (usage): Fix typo
33478         (gnulib_mk): New variable.
33479
33480 2007-07-05  Jim Meyering  <jim@meyering.net>
33481
33482         Don't let endgrent clobber errno, no matter how improbable.
33483         * lib/getugroups.c (getugroups): Save and restore errno around
33484         endgrent call.
33485
33486         Close the group DB even when failing with 2^31 or more members.
33487         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
33488
33489 2007-07-04  Jim Meyering  <jim@meyering.net>
33490
33491         * lib/getugroups.h: New file.
33492         * lib/getugroups.c: Include "getugroups.h".
33493         Remove uses of "register" keyword.
33494         Move local variable, "cp", down into scope where used.
33495         Give "username" parameter the "const" attribute.
33496         * modules/getugroups (Files): Add lib/getugroups.h
33497
33498 2007-07-04  Karl Berry  <karl@gnu.org>
33499
33500         * MODULES.html.sh (func_all_modules): Complete rename of
33501         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
33502
33503 2007-07-02  Bruno Haible  <bruno@clisp.org>
33504
33505         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
33506         mode, when inttypes.h comes from gnulib.
33507         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
33508
33509 2007-07-02  Simon Josefsson  <simon@josefsson.org>
33510
33511         * NEWS: Mention lgpl module name change.
33512
33513         * modules/lgpl-2.1: Renamed from lgpl.
33514
33515         * NEWS: Mention gpl module name change.
33516
33517         * modules/gpl-3.0: New file, based on gpl-2.0.
33518
33519         * modules/gpl-2.0: Renamed from gpl.
33520
33521         * modules/gpl: Fix filename, doc/gpl.texi is now found at
33522         doc/gpl-2.0.texi.
33523
33524 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
33525
33526         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
33527         #define __STDC_LIMIT_MACROS temporarily while including
33528         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
33529         Problem reported by Joel E. Denny in
33530         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
33531
33532 2007-07-01  Bruno Haible  <bruno@clisp.org>
33533
33534         * lib/unistdio.h: New file.
33535         * lib/unistdio/u-asnprintf.h: New file.
33536         * lib/unistdio/u-asprintf.h: New file.
33537         * lib/unistdio/u-printf-args.c: New file.
33538         * lib/unistdio/u-printf-args.h: New file.
33539         * lib/unistdio/u-printf-parse.h: New file.
33540         * lib/unistdio/u-snprintf.h: New file.
33541         * lib/unistdio/u-sprintf.h: New file.
33542         * lib/unistdio/u-vasprintf.h: New file.
33543         * lib/unistdio/u-vsnprintf.h: New file.
33544         * lib/unistdio/u-vsprintf.h: New file.
33545         * lib/unistdio/ulc-asnprintf.c: New file.
33546         * lib/unistdio/ulc-asprintf.c: New file.
33547         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
33548         * lib/unistdio/ulc-printf-parse.c: New file.
33549         * lib/unistdio/ulc-snprintf.c: New file.
33550         * lib/unistdio/ulc-sprintf.c: New file.
33551         * lib/unistdio/ulc-vasnprintf.c: New file.
33552         * lib/unistdio/ulc-vasprintf.c: New file.
33553         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
33554         * lib/unistdio/ulc-vsnprintf.c: New file.
33555         * lib/unistdio/ulc-vsprintf.c: New file.
33556         * lib/unistdio/u8-asnprintf.c: New file.
33557         * lib/unistdio/u8-asprintf.c: New file.
33558         * lib/unistdio/u8-printf-parse.c: New file.
33559         * lib/unistdio/u8-snprintf.c: New file.
33560         * lib/unistdio/u8-sprintf.c: New file.
33561         * lib/unistdio/u8-vasnprintf.c: New file.
33562         * lib/unistdio/u8-vasprintf.c: New file.
33563         * lib/unistdio/u8-vsnprintf.c: New file.
33564         * lib/unistdio/u8-vsprintf.c: New file.
33565         * lib/unistdio/u8-u8-asnprintf.c: New file.
33566         * lib/unistdio/u8-u8-asprintf.c: New file.
33567         * lib/unistdio/u8-u8-snprintf.c: New file.
33568         * lib/unistdio/u8-u8-sprintf.c: New file.
33569         * lib/unistdio/u8-u8-vasnprintf.c: New file.
33570         * lib/unistdio/u8-u8-vasprintf.c: New file.
33571         * lib/unistdio/u8-u8-vsnprintf.c: New file.
33572         * lib/unistdio/u8-u8-vsprintf.c: New file.
33573         * lib/unistdio/u16-asnprintf.c: New file.
33574         * lib/unistdio/u16-asprintf.c: New file.
33575         * lib/unistdio/u16-printf-parse.c: New file.
33576         * lib/unistdio/u16-snprintf.c: New file.
33577         * lib/unistdio/u16-sprintf.c: New file.
33578         * lib/unistdio/u16-vasnprintf.c: New file.
33579         * lib/unistdio/u16-vasprintf.c: New file.
33580         * lib/unistdio/u16-vsnprintf.c: New file.
33581         * lib/unistdio/u16-vsprintf.c: New file.
33582         * lib/unistdio/u16-u16-asnprintf.c: New file.
33583         * lib/unistdio/u16-u16-asprintf.c: New file.
33584         * lib/unistdio/u16-u16-snprintf.c: New file.
33585         * lib/unistdio/u16-u16-sprintf.c: New file.
33586         * lib/unistdio/u16-u16-vasnprintf.c: New file.
33587         * lib/unistdio/u16-u16-vasprintf.c: New file.
33588         * lib/unistdio/u16-u16-vsnprintf.c: New file.
33589         * lib/unistdio/u16-u16-vsprintf.c: New file.
33590         * lib/unistdio/u32-asnprintf.c: New file.
33591         * lib/unistdio/u32-asprintf.c: New file.
33592         * lib/unistdio/u32-printf-parse.c: New file.
33593         * lib/unistdio/u32-snprintf.c: New file.
33594         * lib/unistdio/u32-sprintf.c: New file.
33595         * lib/unistdio/u32-vasnprintf.c: New file.
33596         * lib/unistdio/u32-vasprintf.c: New file.
33597         * lib/unistdio/u32-vsnprintf.c: New file.
33598         * lib/unistdio/u32-vsprintf.c: New file.
33599         * lib/unistdio/u32-u32-asnprintf.c: New file.
33600         * lib/unistdio/u32-u32-asprintf.c: New file.
33601         * lib/unistdio/u32-u32-snprintf.c: New file.
33602         * lib/unistdio/u32-u32-sprintf.c: New file.
33603         * lib/unistdio/u32-u32-vasnprintf.c: New file.
33604         * lib/unistdio/u32-u32-vasprintf.c: New file.
33605         * lib/unistdio/u32-u32-vsnprintf.c: New file.
33606         * lib/unistdio/u32-u32-vsprintf.c: New file.
33607         * tests/unistdio/test-ulc-asnprintf1.c: New file.
33608         * tests/unistdio/test-ulc-asnprintf1.h: New file.
33609         * tests/unistdio/test-ulc-printf1.h: New file.
33610         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
33611         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
33612         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
33613         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
33614         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
33615         * tests/unistdio/test-ulc-vasprintf1.c: New file.
33616         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
33617         * tests/unistdio/test-ulc-vsprintf1.c: New file.
33618         * tests/unistdio/test-u8-asnprintf1.c: New file.
33619         * tests/unistdio/test-u8-asnprintf1.h: New file.
33620         * tests/unistdio/test-u8-printf1.h: New file.
33621         * tests/unistdio/test-u8-vasnprintf1.c: New file.
33622         * tests/unistdio/test-u8-vasnprintf2.c: New file.
33623         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
33624         * tests/unistdio/test-u8-vasnprintf3.c: New file.
33625         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
33626         * tests/unistdio/test-u8-vasprintf1.c: New file.
33627         * tests/unistdio/test-u8-vsnprintf1.c: New file.
33628         * tests/unistdio/test-u8-vsprintf1.c: New file.
33629         * tests/unistdio/test-u16-asnprintf1.c: New file.
33630         * tests/unistdio/test-u16-asnprintf1.h: New file.
33631         * tests/unistdio/test-u16-printf1.h: New file.
33632         * tests/unistdio/test-u16-vasnprintf1.c: New file.
33633         * tests/unistdio/test-u16-vasnprintf2.c: New file.
33634         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
33635         * tests/unistdio/test-u16-vasnprintf3.c: New file.
33636         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
33637         * tests/unistdio/test-u16-vasprintf1.c: New file.
33638         * tests/unistdio/test-u16-vsnprintf1.c: New file.
33639         * tests/unistdio/test-u16-vsprintf1.c: New file.
33640         * tests/unistdio/test-u32-asnprintf1.c: New file.
33641         * tests/unistdio/test-u32-asnprintf1.h: New file.
33642         * tests/unistdio/test-u32-printf1.h: New file.
33643         * tests/unistdio/test-u32-vasnprintf1.c: New file.
33644         * tests/unistdio/test-u32-vasnprintf2.c: New file.
33645         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
33646         * tests/unistdio/test-u32-vasnprintf3.c: New file.
33647         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
33648         * tests/unistdio/test-u32-vasprintf1.c: New file.
33649         * tests/unistdio/test-u32-vsnprintf1.c: New file.
33650         * tests/unistdio/test-u32-vsprintf1.c: New file.
33651         * modules/unistdio/base: New file.
33652         * modules/unistdio/u-printf-args: New file.
33653         * modules/unistdio/ulc-asnprintf: New file.
33654         * modules/unistdio/ulc-asprintf: New file.
33655         * modules/unistdio/ulc-fprintf: New file.
33656         * modules/unistdio/ulc-printf-parse: New file.
33657         * modules/unistdio/ulc-snprintf: New file.
33658         * modules/unistdio/ulc-sprintf: New file.
33659         * modules/unistdio/ulc-vasnprintf: New file.
33660         * modules/unistdio/ulc-vasprintf: New file.
33661         * modules/unistdio/ulc-vfprintf: New file.
33662         * modules/unistdio/ulc-vsnprintf: New file.
33663         * modules/unistdio/ulc-vsprintf: New file.
33664         * modules/unistdio/u8-asnprintf: New file.
33665         * modules/unistdio/u8-asprintf: New file.
33666         * modules/unistdio/u8-printf-parse: New file.
33667         * modules/unistdio/u8-snprintf: New file.
33668         * modules/unistdio/u8-sprintf: New file.
33669         * modules/unistdio/u8-vasnprintf: New file.
33670         * modules/unistdio/u8-vasprintf: New file.
33671         * modules/unistdio/u8-vsnprintf: New file.
33672         * modules/unistdio/u8-vsprintf: New file.
33673         * modules/unistdio/u8-u8-asnprintf: New file.
33674         * modules/unistdio/u8-u8-asprintf: New file.
33675         * modules/unistdio/u8-u8-snprintf: New file.
33676         * modules/unistdio/u8-u8-sprintf: New file.
33677         * modules/unistdio/u8-u8-vasnprintf: New file.
33678         * modules/unistdio/u8-u8-vasprintf: New file.
33679         * modules/unistdio/u8-u8-vsnprintf: New file.
33680         * modules/unistdio/u8-u8-vsprintf: New file.
33681         * modules/unistdio/u16-asnprintf: New file.
33682         * modules/unistdio/u16-asprintf: New file.
33683         * modules/unistdio/u16-printf-parse: New file.
33684         * modules/unistdio/u16-snprintf: New file.
33685         * modules/unistdio/u16-sprintf: New file.
33686         * modules/unistdio/u16-vasnprintf: New file.
33687         * modules/unistdio/u16-vasprintf: New file.
33688         * modules/unistdio/u16-vsnprintf: New file.
33689         * modules/unistdio/u16-vsprintf: New file.
33690         * modules/unistdio/u16-u16-asnprintf: New file.
33691         * modules/unistdio/u16-u16-asprintf: New file.
33692         * modules/unistdio/u16-u16-snprintf: New file.
33693         * modules/unistdio/u16-u16-sprintf: New file.
33694         * modules/unistdio/u16-u16-vasnprintf: New file.
33695         * modules/unistdio/u16-u16-vasprintf: New file.
33696         * modules/unistdio/u16-u16-vsnprintf: New file.
33697         * modules/unistdio/u16-u16-vsprintf: New file.
33698         * modules/unistdio/u32-asnprintf: New file.
33699         * modules/unistdio/u32-asprintf: New file.
33700         * modules/unistdio/u32-printf-parse: New file.
33701         * modules/unistdio/u32-snprintf: New file.
33702         * modules/unistdio/u32-sprintf: New file.
33703         * modules/unistdio/u32-vasnprintf: New file.
33704         * modules/unistdio/u32-vasprintf: New file.
33705         * modules/unistdio/u32-vsnprintf: New file.
33706         * modules/unistdio/u32-vsprintf: New file.
33707         * modules/unistdio/u32-u32-asnprintf: New file.
33708         * modules/unistdio/u32-u32-asprintf: New file.
33709         * modules/unistdio/u32-u32-snprintf: New file.
33710         * modules/unistdio/u32-u32-sprintf: New file.
33711         * modules/unistdio/u32-u32-vasnprintf: New file.
33712         * modules/unistdio/u32-u32-vasprintf: New file.
33713         * modules/unistdio/u32-u32-vsnprintf: New file.
33714         * modules/unistdio/u32-u32-vsprintf: New file.
33715         * modules/unistdio/ulc-asnprintf-tests: New file.
33716         * modules/unistdio/ulc-vasnprintf-tests: New file.
33717         * modules/unistdio/ulc-vasprintf-tests: New file.
33718         * modules/unistdio/ulc-vsnprintf-tests: New file.
33719         * modules/unistdio/ulc-vsprintf-tests: New file.
33720         * modules/unistdio/u8-asnprintf-tests: New file.
33721         * modules/unistdio/u8-vasnprintf-tests: New file.
33722         * modules/unistdio/u8-vasprintf-tests: New file.
33723         * modules/unistdio/u8-vsnprintf-tests: New file.
33724         * modules/unistdio/u8-vsprintf-tests: New file.
33725         * modules/unistdio/u16-asnprintf-tests: New file.
33726         * modules/unistdio/u16-vasnprintf-tests: New file.
33727         * modules/unistdio/u16-vasprintf-tests: New file.
33728         * modules/unistdio/u16-vsnprintf-tests: New file.
33729         * modules/unistdio/u16-vsprintf-tests: New file.
33730         * modules/unistdio/u32-asnprintf-tests: New file.
33731         * modules/unistdio/u32-vasnprintf-tests: New file.
33732         * modules/unistdio/u32-vasprintf-tests: New file.
33733         * modules/unistdio/u32-vsnprintf-tests: New file.
33734         * modules/unistdio/u32-vsprintf-tests: New file.
33735         * MODULES.html.sh (Unicode string functions): Add the new modules.
33736
33737 2007-07-01  Bruno Haible  <bruno@clisp.org>
33738
33739         * lib/sprintf.c (sprintf): Limit the available length estimation,
33740         to avoid address wraparound.
33741         * lib/vsprintf.c (vsprintf): Likewise.
33742         * modules/sprintf-posix (Dependencies): Add stdint.
33743         * modules/vsprintf-posix (Dependencies): Likewise.
33744
33745 2007-07-01  Bruno Haible  <bruno@clisp.org>
33746
33747         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
33748         Windows PATH as well. Conservative double-quoting. Comments.
33749
33750 2007-07-01  Bruno Haible  <bruno@clisp.org>
33751             Eric Blake  <ebb9@byu.net>
33752             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33753
33754         * gnulib-tool (self_abspathname): Fix algorithm to cope with
33755         empty components in $PATH, denoting '.'.
33756
33757 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33758
33759         * gnulib-tool: Fix indentation.
33760         (func_create_megatestdir): Likewise.
33761         Report by Bruno Haible.
33762
33763 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33764
33765         Sync from Automake.
33766         * build-aux/gnupload: Fix shell portability issues with for loops.
33767         Report by Karl Berry.
33768
33769 2007-06-29  Simon Josefsson  <simon@josefsson.org>
33770
33771         * build-aux/maint.mk (POURL): Use translationproject.org.
33772
33773 2007-06-27  Simon Josefsson  <simon@josefsson.org>
33774             Bruno Haible  <bruno@clisp.org>
33775
33776         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
33777         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
33778         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
33779         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
33780         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
33781
33782 2007-06-27  Bruno Haible  <bruno@clisp.org>
33783
33784         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
33785         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
33786
33787 2007-06-26  Karl Berry  <karl@gnu.org>
33788
33789         * MODULES.html.sh: remove xreadlink-with-size.
33790
33791 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
33792
33793         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
33794         method that I hope also handles the double-include problem noted
33795         by Bruno Haible in
33796         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
33797
33798 2007-06-23  Bruno Haible  <bruno@clisp.org>
33799
33800         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33801         Don't let the 'mostlyclean' target fail if the last subdirectory could
33802         not be removed.
33803         Reported by Karl Berry.
33804
33805 2007-06-23  Bruno Haible  <bruno@clisp.org>
33806
33807         * gnulib-tool (echo): Add a speedier workaround for ksh.
33808         * tests/test-echo.sh: Likewise.
33809
33810 2007-06-23  Bruno Haible  <bruno@clisp.org>
33811
33812         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
33813         * tests/test-echo.sh: Likewise.
33814
33815 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33816
33817         * gnulib-tool (IFS): Initialize early, so we don't set it to
33818         empty later.
33819         (self_abspathname): Rewrite algorithm to set it, reindent.
33820         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
33821         (func_create_megatestdir): Merge some sed scripts.
33822
33823 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
33824
33825         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
33826         exposed by Sun Studio 11 cc on Solaris 8.
33827
33828 2007-06-22  Bruno Haible  <bruno@clisp.org>
33829
33830         * gnulib-tool (echo): Ensure the echo primitive does not interpret
33831         backslashes.
33832         * tests/test-echo.sh: New file.
33833
33834 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33835
33836         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
33837         simplify `sed_replace_build_aux' scripts, they are portable but
33838         echoing them with `echo' is not.
33839         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
33840
33841 2007-06-21  Karl Berry  <karl@gnu.org>
33842
33843         * config/srclist.txt: guess we can't handle the licenses via
33844         srclist at the moment.
33845
33846 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
33847
33848         * MODULES.html.sh: Add include_next.
33849         * modules/include_next: New file.
33850
33851 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
33852
33853         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
33854         INCLUDE_NEXT.
33855         (gl_CHECK_NEXT_HEADERS): New macro.
33856         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
33857         the obsolescent gl_ABSOLUTE_HEADER.
33858         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
33859         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
33860         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
33861         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33862         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
33863         * m4/math_h.m4 (gl_MATH_H): Likewise.
33864         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
33865         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33866         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33867         * m4/stdint.m4 (gl_STDINT_H): Likewise.
33868         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
33869         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
33870         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
33871         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33872         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33873         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
33874         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
33875         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
33876         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
33877         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33878         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33879         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
33880         * m4/inttypes.m4 (gl_INTTYPES_H): Define
33881         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
33882         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
33883         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
33884         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
33885         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
33886         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
33887         * lib/float_.h: Likewise.
33888         * lib/inttypes_.h: Likewise.
33889         * lib/math_.h: Likewise.
33890         * lib/search_.h: Likewise.
33891         * lib/signal_.h: Likewise.
33892         * lib/stdint_.h: Likewise.
33893         * lib/stdio_.h: Likewise.
33894         * lib/stdlib_.h: Likewise.
33895         * lib/string_.h: Likewise.
33896         * lib/sys_stat_.h: Likewise.
33897         * lib/sys_time_.h: Likewise.
33898         * lib/time_.h: Likewise.
33899         * lib/unistd_.h: Likewise.
33900         * lib/wchar_.h: Likewise.
33901         * lib/wctype_.h: Likewise.
33902         * lib/dirent_.h: Likewise.
33903         * lib/iconv_.h: Likewise.
33904         * lib/locale_.h: Likewise.
33905         * lib/netinet_in_.h: Likewise.
33906         * lib/sys_select_.h: Likewise.
33907         * lib/sys_socket_.h: Likewise.
33908         * lib/sysexits_.h: Likewise.
33909         * modules/fcntl (Depends-on): Depend on include_next, not
33910         absolute_header.
33911         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
33912         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
33913         * modules/fchdir: Likewise.
33914         * modules/float: Likewise.
33915         * modules/iconv_open: Likewise.
33916         * modules/inttypes: Likewise.
33917         * modules/locale: Likewise.
33918         * modules/math: Likewise.
33919         * modules/netinet_in: Likewise.
33920         * modules/search: Likewise.
33921         * modules/signal: Likewise.
33922         * modules/stdint: Likewise.
33923         * modules/stdio: Likewise.
33924         * modules/stdlib: Likewise.
33925         * modules/string: Likewise.
33926         * modules/sys_select: Likewise.
33927         * modules/sys_socket: Likewise.
33928         * modules/sys_stat: Likewise.
33929         * modules/sys_time: Likewise.
33930         * modules/sysexits: Likewise.
33931         * modules/time: Likewise.
33932         * modules/unistd: Likewise.
33933         * modules/wchar: Likewise.
33934         * modules/wctype: Likewise.
33935         * modules/sys_stat: Change maintainer to "all".
33936         * modules/unistd: Likewise.
33937
33938 2007-06-20  Karl Berry  <karl@gnu.org>
33939
33940         * config/srclist.txt: track www changes in license files.
33941
33942 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
33943
33944         * build-aux/bootstrap: Remove stray dot.
33945         Make sure build_aux settings are honored when linking
33946         gnulib_extra_files.
33947
33948 2007-06-19  Eric Blake  <ebb9@byu.net>
33949
33950         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
33951         Allow compilation on cygwin.
33952
33953 2007-06-19  Jim Meyering  <jim@meyering.net>
33954
33955         xreadlink-with-size: Remove module.  No longer used.
33956         Ex-callers now use xreadlink or mreadlink-with-size.
33957         * modules/xreadlink-with-size: Remove module.
33958         * lib/xreadlink-with-size.c: Remove file.
33959         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
33960         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
33961         just before the function definition *is* accurate.
33962
33963         Eliminate one way canonicalize_filename_mode could exit.
33964         * lib/canonicalize.c (canonicalize_filename_mode):
33965         Use mreadlink_with_size, not xreadlink_with_size.
33966
33967 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
33968
33969         Detect porting problems to FreeBSD/arm, which has time_t wider than
33970         long int.  Original problem reported for GNU diff by Xin Li in
33971         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
33972         * modules/getdate (Depends-on): Add intprops, verify.
33973         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
33974         is an integer type no wider than long int.
33975
33976 2007-06-18  Jim Meyering  <jim@meyering.net>
33977
33978         New module: mreadlink-with-size.
33979         * MODULES.html.sh: Add mreadlink-with-size.
33980         * modules/mreadlink-with-size: New module
33981         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
33982         not xreadlink-with-size.
33983         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
33984
33985 2007-06-16  Bruno Haible  <bruno@clisp.org>
33986
33987         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
33988         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
33989         Reported by Gary V. Vaughan <gary@gnu.org>.
33990
33991 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
33992
33993         Revamp lchown so that it lives in unistd.h where it belongs.
33994         * lib/lchown.h: Remove.
33995         * lib/dirchownmod.c: Don't include lib/lchown.h.
33996         * lib/fchownat.c: Likewise.
33997         * lib/openat.c: Likewise.
33998         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
33999         does not follow symlinks.
34000         (EOPNOTSUPP): Define if not defined.
34001         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
34002         is defined to 0.
34003         (lchown): New decl.
34004         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
34005         Do not check for lchown decl.
34006         Set REPLACE_LCHOWN.
34007         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
34008         REPLACE_LCHOWN.
34009         * modules/chown: Make it clear it follows symlinks.
34010         * modules/lchown: Make it clear it doesn't follow symlinks.
34011         (Files): Remove lib/lchown.h
34012         (Depends-on): Add unistd.
34013         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
34014         (Include): Include <unistd.h>, not "lchown.h".
34015         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
34016         REPLACE_LCHOWN.
34017
34018 2007-06-15  Jim Meyering  <jim@meyering.net>
34019
34020         Change license (GPL to LGPL) of fsusage and dependents.
34021         * modules/fsusage (License): Change to LGPL.
34022         * modules/full-read (License): Likewise.
34023         * modules/full-write (License): Likewise.
34024         * modules/safe-read (License): Likewise.
34025         * modules/safe-write (License): Likewise.
34026
34027 2007-06-14  Ben Pfaff  <blp@gnu.org>
34028
34029         Missing part of allocsa -> malloca transition.
34030         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
34031         gl_MALLOCA.
34032
34033 2007-06-12  Bruno Haible  <bruno@clisp.org>
34034
34035         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
34036         to ia64, x86_64, i386.
34037         Reported by Eric Blake.
34038
34039 2007-06-12  Bruno Haible  <bruno@clisp.org>
34040
34041         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
34042         cross-compiling to x86_64.
34043
34044 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
34045
34046         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
34047         glitch reported by Ralf Wildenhues in
34048         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
34049
34050         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
34051         Vin Shelton.
34052
34053 2007-06-11  Bruno Haible  <bruno@clisp.org>
34054
34055         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
34056         replacement string.
34057         Reported by Eric Blake.
34058
34059 2007-06-10  Bruno Haible  <bruno@clisp.org>
34060
34061         Prepare vasnprintf code for use with Unicode strings.
34062         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
34063         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
34064         TYPE_U32_STRING.
34065         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
34066         a_u32_string variants.
34067         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
34068         * lib/printf-args.c: Don't include config.h and the specification
34069         header if PRINTF_FETCHARGS is already defined.
34070         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
34071         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
34072         TYPE_U16_STRING, TYPE_U32_STRING.
34073         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
34074         u16_directive, u16_directives, u32_directive, u32_directives): New
34075         types.
34076         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
34077         New declarations.
34078         * lib/printf-parse.c: Don't include config.h and the specification
34079         header if PRINTF_PARSE is already defined. Eliminate the set of
34080         parameters for WIDE_CHAR_VERSION; the user of this file must provide
34081         them now. Include c-ctype.h.
34082         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
34083         directive and CHAR_T_ONLY_ASCII.
34084         * lib/vasnprintf.c: Don't include config.h and the specification header
34085         if VASNPRINTF is already defined.
34086         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
34087         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
34088         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
34089         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
34090         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
34091         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
34092         code accordingly.
34093         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
34094         pad_ourselves also in this case, with the 'c' and 's' directives, and
34095         with a different notion of "width".
34096         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
34097
34098 2007-06-10  Bruno Haible  <bruno@clisp.org>
34099
34100         * modules/unistr/u32-mbsnlen: New file.
34101         * lib/unistr/u32-mbsnlen.c: New file.
34102
34103         * modules/unistr/u16-mbsnlen: New file.
34104         * lib/unistr/u16-mbsnlen.c: New file.
34105
34106         * modules/unistr/u8-mbsnlen: New file.
34107         * lib/unistr/u8-mbsnlen.c: New file.
34108
34109         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
34110         declarations.
34111
34112 2007-06-10  Bruno Haible  <bruno@clisp.org>
34113
34114         * lib/string_.h (mbsnlen): New declaration.
34115         * lib/mbsnlen.c: New file.
34116         * m4/mbsnlen.m4: New file.
34117         * modules/mbsnlen: New file.
34118         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
34119         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
34120         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
34121
34122 2007-06-10  Bruno Haible  <bruno@clisp.org>
34123
34124         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
34125
34126 2007-06-10  Bruno Haible  <bruno@clisp.org>
34127
34128         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
34129         * lib/mbuiter.h: Likewise.
34130
34131 2007-06-10  Bruno Haible  <bruno@clisp.org>
34132
34133         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
34134         declaration.
34135
34136 2007-06-10  Karl Berry  <karl@gnu.org>
34137
34138         * config/srclist.txt: remove gettext entries, Bruno prefers
34139         to update individually.
34140
34141 2007-06-10  Bruno Haible  <bruno@clisp.org>
34142
34143         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
34144         'maxlen'. Ensure only length + width bytes are allocated, not
34145         length + 1 + width.
34146
34147 2007-06-09  Bruno Haible  <bruno@clisp.org>
34148
34149         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
34150         (CHAR_T): Remove macro.
34151         (VASNPRINTF): Update.
34152
34153 2007-06-09  Bruno Haible  <bruno@clisp.org>
34154
34155         * MODULES.html.sh (Unicode string functions): Add the new modules.
34156
34157         * modules/uniconv/u32-conv-to-enc: New file.
34158         * lib/uniconv/u32-conv-to-enc.c: New file.
34159         * modules/uniconv/u32-conv-to-enc-tests: New file.
34160         * tests/uniconv/test-u32-conv-to-enc.c: New file.
34161
34162         * modules/uniconv/u16-conv-to-enc: New file.
34163         * lib/uniconv/u16-conv-to-enc.c: New file.
34164         * lib/uniconv/u-conv-to-enc.h: New file.
34165         * modules/uniconv/u16-conv-to-enc-tests: New file.
34166         * tests/uniconv/test-u16-conv-to-enc.c: New file.
34167
34168         * modules/uniconv/u8-conv-to-enc: New file.
34169         * lib/uniconv/u8-conv-to-enc.c: New file.
34170         * modules/uniconv/u8-conv-to-enc-tests: New file.
34171         * tests/uniconv/test-u8-conv-to-enc.c: New file.
34172
34173         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
34174         u32_conv_to_encoding): New declarations.
34175
34176 2007-06-09  Bruno Haible  <bruno@clisp.org>
34177
34178         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
34179
34180 2007-06-09  Bruno Haible  <bruno@clisp.org>
34181
34182         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
34183         * modules/malloca: Renamed from modules/allocsa, updated.
34184         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
34185         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
34186         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
34187         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
34188         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
34189         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
34190         * modules/xmalloca: Renamed from modules/xallocsa, updated.
34191         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
34192         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
34193         * modules/c-strcasestr (Depends-on): Update.
34194         * lib/c-strcasestr.c: Update.
34195         * modules/c-strstr (Depends-on): Update.
34196         * lib/c-strstr.c: Update.
34197         * modules/canonicalize-lgpl (Depends-on): Update.
34198         * lib/canonicalize-lgpl.c: Update.
34199         * modules/clean-temp (Depends-on): Update.
34200         * lib/clean-temp.c: Update.
34201         * modules/csharpcomp (Depends-on): Update.
34202         * lib/csharpcomp.c: Update.
34203         * modules/csharpexec (Depends-on): Update.
34204         * lib/csharpexec.c: Update.
34205         * modules/javacomp (Depends-on): Update.
34206         * lib/javacomp.c: Update.
34207         * modules/javaexec (Depends-on): Update.
34208         * lib/javaexec.c: Update.
34209         * modules/mbscasestr (Depends-on): Update.
34210         * lib/mbscasestr.c: Update.
34211         * modules/mbsstr (Depends-on): Update.
34212         * lib/mbsstr.c: Update.
34213         * modules/setenv (Depends-on): Update.
34214         * lib/setenv.c: Update.
34215         * modules/strcasestr (Depends-on): Update.
34216         * lib/strcasestr.c: Update.
34217         * modules/striconveha (Depends-on): Update.
34218         * lib/striconveha.c: Update.
34219         * modules/relocatable-prog-wrapper (Files): Update.
34220         * lib/relocwrapper.c: Update.
34221         * build-aux/install-reloc: Update.
34222         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
34223
34224 2007-06-08  Bruno Haible  <bruno@clisp.org>
34225
34226         Port to uClibc.
34227         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
34228         * lib/fpurge.c (fpurge): Likewise.
34229         * lib/freading.c (freading): Likewise.
34230         * lib/fseeko.c (rpl_fseeko): Likewise.
34231         * lib/fseterr.c (fseterr): Likewise.
34232         * lib/fwriting.c (fwriting): Likewise.
34233         * tests/test-fflush.c (main): Avoid a failure on uClibc.
34234
34235 2007-06-08  Bruno Haible  <bruno@clisp.org>
34236
34237         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
34238         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
34239         * modules/gettext (Files): Add m4/intlmacosx.m4.
34240
34241 2007-06-07  Bruno Haible  <bruno@clisp.org>
34242
34243         * modules/localename-tests: New file.
34244         * tests/test-localename.c: New file.
34245
34246         New module 'localename'.
34247         * lib/localename.h: New file.
34248         * lib/localename.c: New file, from GNU gettext.
34249         * m4/localename.m4: New file.
34250         * modules/localename: New file.
34251
34252 2007-06-07  Bruno Haible  <bruno@clisp.org>
34253
34254         Work around the lack of <wchar.h> on some builds of uClibc.
34255         * doc/headers/wchar.texi: Update.
34256         * lib/wchar_.h: Include <wchar.h> only if it exists.
34257         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
34258         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
34259         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
34260         doesn't exist.
34261         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
34262         * modules/mbfile (Depends-on): Add wchar.
34263         * modules/mbiter (Depends-on): Likewise.
34264         * modules/mbuiter (Depends-on): Likewise.
34265         Reported by Simon Josefsson.
34266
34267 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
34268
34269         Work around problem reported by Steven M. Schweda in
34270         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
34271         Tru64 5.1B with the Compaq compiler environment installed declares
34272         an 'isblank' function but does not define it in the C library.
34273         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
34274         * lib/regex_internal.h (isblank): Likewise.
34275         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
34276         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
34277
34278 2007-06-05  Bruno Haible  <bruno@clisp.org>
34279
34280         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
34281         ia64.
34282         * modules/printf-safe: New file.
34283         * modules/fprintf-posix (Depends-on): Add printf-safe.
34284         * modules/printf-posix (Depends-on): Likewise.
34285         * modules/snprintf-posix (Depends-on): Likewise.
34286         * modules/sprintf-posix (Depends-on): Likewise.
34287         * modules/vasnprintf-posix (Depends-on): Likewise.
34288         * modules/vasprintf-posix (Depends-on): Likewise.
34289         * modules/vfprintf-posix (Depends-on): Likewise.
34290         * modules/vprintf-posix (Depends-on): Likewise.
34291         * modules/vsnprintf-posix (Depends-on): Likewise.
34292         * modules/vsprintf-posix (Depends-on): Likewise.
34293         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
34294         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
34295         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
34296         "no" on i386, x86_64, ia64.
34297         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
34298         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34299         on i386, x86_64, ia64.
34300         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
34301         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34302         on i386, x86_64, ia64.
34303         * tests/test-vasnprintf-posix.c: Include float.h.
34304         (LDBL80_WORDS): New macro.
34305         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34306         on i386, x86_64, ia64.
34307         * tests/test-vasprintf-posix.c: Include float.h.
34308         (LDBL80_WORDS): New macro.
34309         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34310         on i386, x86_64, ia64.
34311         * tests/test-snprintf-posix.c: Include float.h.
34312         * tests/test-sprintf-posix.c: Likewise.
34313         * tests/test-vsnprintf-posix.c: Likewise.
34314         * tests/test-vsprintf-posix.c: Likewise.
34315
34316 2007-06-05  Bruno Haible  <bruno@clisp.org>
34317
34318         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
34319         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
34320         non-IEEE numbers on i386, x86_64, ia64.
34321         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
34322         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
34323         * tests/test-isnanl.h: Include float.h.
34324         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
34325
34326 2007-06-05  Bruno Haible  <bruno@clisp.org>
34327
34328         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
34329         also the %a / %A. Handle the %a / %A code before this extra handling.
34330
34331 2007-06-05  Bruno Haible  <bruno@clisp.org>
34332
34333         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
34334         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
34335
34336 2007-06-05  Bruno Haible  <bruno@clisp.org>
34337
34338         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
34339         typo in variable name.
34340
34341 2007-06-05  Eric Blake  <ebb9@byu.net>
34342
34343         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
34344         Reported by Simon Josefsson.
34345
34346 2007-06-04  Bruno Haible  <bruno@clisp.org>
34347
34348         Avoid test failures on some PowerPC platforms.
34349         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
34350         Define differently for PowerPC.
34351         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
34352         Reported by Gary V. Vaughan <gary@gnu.org>.
34353
34354 2007-06-02  Bruno Haible  <bruno@clisp.org>
34355
34356         Fix test-stdint failure on FreeBSD/ia64.
34357         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
34358         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
34359         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
34360         * doc/headers/stdint.texi: Update.
34361
34362 2007-06-01  Bruno Haible  <bruno@clisp.org>
34363
34364         * tests/test-binary-io.c (main): Pass a third argument to open().
34365         Reported by Gary V. Vaughan <gary@gnu.org>.
34366
34367 2007-06-01  Bruno Haible  <bruno@clisp.org>
34368
34369         * doc/functions/frexpl.texi: Update for mingw.
34370
34371 2007-06-01  Bruno Haible  <bruno@clisp.org>
34372
34373         * tests/test-lseek.c (main): Disable test of errno for invalid third
34374         argument.
34375         * doc/functions/lseek.texi: Update.
34376         Reported by Gary V. Vaughan <gary@gnu.org>.
34377
34378 2007-05-28  Bruno Haible  <bruno@clisp.org>
34379
34380         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
34381
34382 2007-05-31  Eric Blake  <ebb9@byu.net>
34383
34384         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
34385         cross compiling.
34386
34387 2007-05-30  Eric Blake  <ebb9@byu.net>
34388         and Bruno Haible  <bruno@clisp.org>
34389
34390         Work around mingw test failures exposed by m4-1.4.9b.
34391         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
34392         * tests/test-unistd.c: Disable uid_t and git_t tests for the
34393         moment.
34394
34395 2007-05-30  Bruno Haible  <bruno@clisp.org>
34396
34397         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
34398         assuming that they are closed. Needed on HP-UX 11.
34399
34400 2007-05-29  Bruno Haible  <bruno@clisp.org>
34401
34402         Fix a problem with #include_next.
34403         * lib/dirent_.h: Split the double-inclusion guard.
34404         * lib/fcntl_.h: Likewise.
34405         * lib/float_.h: Likewise.
34406         * lib/iconv_.h: Likewise.
34407         * lib/inttypes_.h: Likewise.
34408         * lib/locale_.h: Likewise.
34409         * lib/math_.h: Likewise.
34410         * lib/netinet_in_.h: Likewise.
34411         * lib/search_.h: Likewise.
34412         * lib/signal_.h: Likewise.
34413         * lib/stdint_.h: Likewise.
34414         * lib/stdio_.h: Likewise.
34415         * lib/stdlib_.h: Likewise.
34416         * lib/string_.h: Likewise.
34417         * lib/sys_select_.h: Likewise.
34418         * lib/sys_socket_.h: Likewise.
34419         * lib/sys_stat_.h: Likewise.
34420         * lib/sys_time_.h: Likewise.
34421         * lib/sysexits_.h: Likewise.
34422         * lib/time_.h: Likewise.
34423         * lib/unistd_.h: Likewise.
34424         * lib/wchar_.h: Likewise.
34425         * lib/wctype_.h: Likewise.
34426
34427 2007-05-29  Bruno Haible  <bruno@clisp.org>
34428
34429         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
34430         for the moment.
34431
34432 2007-05-29  Bruno Haible  <bruno@clisp.org>
34433
34434         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
34435         invocation.
34436         Reported by Eric Blake.
34437
34438 2007-05-29  Bruno Haible  <bruno@clisp.org>
34439
34440         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
34441         compiling case.
34442
34443 2007-05-29  Eric Blake  <ebb9@byu.net>
34444             Bruno Haible  <bruno@clisp.org>
34445
34446         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
34447         cross compiles.
34448
34449 2007-05-28  Eric Blake  <ebb9@byu.net>
34450
34451         * modules/closein-tests (test_closein_LDADD): Support test on
34452         cygwin with libtool.
34453
34454 2007-05-28  Bruno Haible  <bruno@clisp.org>
34455
34456         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
34457         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
34458         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
34459         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
34460         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
34461         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
34462         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
34463         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
34464         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
34465
34466 2007-05-28  Eric Blake  <ebb9@byu.net>
34467
34468         Unconditionally include <config.h> in unit tests.
34469         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
34470         * tests/test-allocsa.c, tests/test-arcfour.c,
34471         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
34472         tests/test-array_list.c, tests/test-array_oset.c,
34473         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
34474         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
34475         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
34476         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
34477         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
34478         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
34479         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
34480         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
34481         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
34482         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
34483         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
34484         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
34485         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
34486         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
34487         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
34488         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
34489         test-md5.c, test-memmem.c, test-printf-posix.c,
34490         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
34491         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
34492         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
34493         test-strcasestr.c, test-striconv.c, test-striconveh.c,
34494         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
34495         test-vasnprintf-posix2.c, test-vasnprintf.c,
34496         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
34497         test-vfprintf-posix.c, test-vprintf-posix.c,
34498         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
34499         test-xvasprintf.c: Likewise.
34500
34501 2007-05-28  Bruno Haible  <bruno@clisp.org>
34502
34503         * gnulib-tool (func_import): Remember the --with-tests command-line
34504         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
34505         Reported by Eric Blake.
34506
34507 2007-05-28  Bruno Haible  <bruno@clisp.org>
34508
34509         * modules/ftell-tests: New file.
34510         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
34511         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
34512
34513         * lib/ftell.c: New file.
34514         * modules/ftell: New file.
34515         * m4/ftell.m4: New file.
34516         * doc/functions/ftell.texi: Update.
34517         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
34518         REPLACE_FTELL.
34519         * lib/stdio_.h (rpl_ftell): New declaration.
34520         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
34521         REPLACE_FTELL.
34522
34523 2007-05-28  Eric Blake  <ebb9@byu.net>
34524
34525         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
34526
34527 2007-05-28  Bruno Haible  <bruno@clisp.org>
34528
34529         * modules/fseek-tests: New file.
34530         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
34531         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
34532
34533         * lib/fseek.c: New file.
34534         * modules/fseek: New file.
34535         * m4/fseek.m4: New file.
34536         * doc/functions/fseek.texi: Update.
34537         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
34538         REPLACE_FSEEK.
34539         * lib/stdio_.h (rpl_fseek): New declaration.
34540         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
34541         REPLACE_FSEEK.
34542
34543 2007-05-28  Bruno Haible  <bruno@clisp.org>
34544
34545         * lib/stdio_.h (fflush): More comments.
34546
34547 2007-05-28  Bruno Haible  <bruno@clisp.org>
34548
34549         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
34550         runtime test.
34551
34552 2007-05-28  Eric Blake  <ebb9@byu.net>
34553
34554         Improve lseek module.
34555         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
34556         * lib/unistd_.h (lseek): Scale back link warning message.
34557         * tests/test-lseek.c: Beef up test.
34558         * tests/test-lseek.sh: Exercise more facets of lseek.
34559         Reported by Bruno Haible.
34560
34561 2007-05-28  Bruno Haible  <bruno@clisp.org>
34562
34563         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
34564         to define.
34565
34566 2007-05-27  Bruno Haible  <bruno@clisp.org>
34567
34568         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
34569
34570 2007-05-27  Bruno Haible  <bruno@clisp.org>
34571
34572         * modules/openmp: New file.
34573         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
34574         Noah Misch.
34575
34576 2007-05-26  Bruno Haible  <bruno@clisp.org>
34577
34578         * modules/chdir-long (Depends-on): Add fchdir.
34579         * modules/chdir-safer (Depends-on): Likewise.
34580         * modules/fts (Depends-on): Likewise.
34581         * modules/fts-lgpl (Depends-on): Likewise.
34582         * modules/openat (Depends-on): Likewise.
34583         * modules/savewd (Depends-on): Likewise.
34584
34585 2007-05-24  Eric Blake  <ebb9@byu.net>
34586
34587         Fix lseek on mingw.
34588         * modules/lseek: New module.
34589         * m4/lseek.m4: New file.
34590         * lib/lseek.c: New file.
34591         * modules/lseek-tests: New file.
34592         * tests/test-lseek.c: New file.
34593         * tests/test-lseek.sh: New file.
34594         * MODULES.html.sh: Document lseek module.
34595         * modules/fflush (Depends-on): Add lseek, fseeko.
34596         * modules/fseeko (Depends-on): Likewise.
34597         * modules/ftello (Depends-on): Likewise.
34598         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
34599         broken.
34600         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
34601         broken.
34602         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
34603         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
34604         * lib/ftello.c (rpl_ftello): Likewise.
34605         * tests/test-fseeko.c (main): Test this.
34606         * tests/test-fseeko.sh: Likewise.
34607         * tests/test-ftello.c (main): Likewise.
34608         * tests/test-ftello.sh: Likewise.
34609         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
34610         implies replacing fseek.
34611         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
34612         HAVE_FTELLO.
34613         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
34614         * modules/unistd (Makefile.am): Likewise.
34615         * lib/unistd_.h (lseek): Declare a replacement.
34616         * doc/functions/lseek.texi (lseek): Document this fix.
34617         * doc/functions/fseek.texi (fseek): Likewise.
34618         * doc/functions/ftell.texi (ftell): Likewise.
34619
34620 2007-05-24  Bruno Haible  <bruno@clisp.org>
34621
34622         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
34623         in the printed representation of a NaN.
34624         * tests/test-vasprintf-posix.c (test_function): Likewise.
34625         * tests/test-snprintf-posix.h (test_function): Likewise.
34626         * tests/test-sprintf-posix.h (test_function): Likewise.
34627         Reported by Eric Blake.
34628
34629 2007-05-23  Eric Blake  <ebb9@byu.net>
34630
34631         Fix fseeko/ftello on cygwin 1.5.24.
34632         * doc/functions/fseeko.texi (fseeko): Document the fix.
34633         * doc/functions/ftello.texi (ftello): Document the fix.
34634         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
34635         * doc/functions/stdout.text (stdout): New file.
34636         * doc/functions/stderr.text (stderr): New file.
34637         * doc/gnulib.texi (Function Substitutes): Use new files.
34638         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
34639         prior to 1.7.0.
34640         * tests/test-ftello.c (main): Likewise for ftello.
34641         * tests/test-fseeko.sh: New file.
34642         * tests/test-ftello.sh: New file.
34643         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
34644         with seekable stdin.
34645         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
34646         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
34647         (gl_REPLACE_FSEEKO): New macro.
34648         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
34649         * modules/fseeko (Files): Distribute fseeko.c.
34650         * modules/ftello (Files): Distribute ftello.c.
34651         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
34652         mode.
34653         * lib/ftello.c (rpl_ftello): New file.
34654         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
34655         fseeko, ftello.
34656         (gl_STDIN_LARGE_OFFSET): New macro.
34657         * modules/stdio (Makefile.am): Perform the replacement.
34658         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
34659
34660 2007-05-23  Bruno Haible  <bruno@clisp.org>
34661
34662         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
34663         GNULIB_POSIXCHECK is defined.
34664
34665 2007-05-21  Bruno Haible  <bruno@clisp.org>
34666
34667         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
34668         Check also the output for NaN arguments. When cross-compiling, guess
34669         no on IRIX.
34670         * lib/vasnprintf.c: Update comments.
34671         * tests/test-vasnprintf-posix.c (strisnan): New function.
34672         (test_function): Use it.
34673         * tests/test-vasprintf-posix.c (strisnan): New function.
34674         (test_function): Use it.
34675         * tests/test-snprintf-posix.h (strisnan): New function.
34676         (test_function): Use it.
34677         * tests/test-sprintf-posix.h (strisnan): New function.
34678         (test_function): Use it.
34679         Reported by Eric Blake.
34680
34681 2007-05-20  Bruno Haible  <bruno@clisp.org>
34682
34683         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
34684         numbers that fails on BeOS.
34685         * doc/functions/frexpl.texi: Update.
34686
34687 2007-05-20  Jim Meyering  <jim@meyering.net>
34688
34689         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
34690         forced upon us by glibc-2.6.
34691
34692 2007-05-20  Bruno Haible  <bruno@clisp.org>
34693
34694         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
34695         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
34696         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
34697         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
34698         NEED_PRINTF_INFINITE.
34699         (is_infinitel): New function.
34700         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
34701         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
34702         gl_PREREQ_VASNPRINTF_INFINITE.
34703         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
34704         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34705         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
34706         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
34707         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
34708         gl_PREREQ_VASNPRINTF_INFINITE.
34709         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34710         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34711         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34712         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34713         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34714         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34715         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34716         * doc/functions/fprintf.texi: Update.
34717         * doc/functions/printf.texi: Update.
34718         * doc/functions/snprintf.texi: Update.
34719         * doc/functions/sprintf.texi: Update.
34720         * doc/functions/vfprintf.texi: Update.
34721         * doc/functions/vprintf.texi: Update.
34722         * doc/functions/vsnprintf.texi: Update.
34723         * doc/functions/vsprintf.texi: Update.
34724
34725 2007-05-20  Bruno Haible  <bruno@clisp.org>
34726
34727         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
34728         was not found in libc.
34729         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
34730
34731 2007-05-20  Bruno Haible  <bruno@clisp.org>
34732
34733         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
34734         printed as "-nan" instead of "nan".
34735         * tests/test-vasprintf-posix.c (test_function): Likewise.
34736         * tests/test-snprintf-posix.h (test_function): Likewise.
34737         * tests/test-sprintf-posix.h (test_function): Likewise.
34738         Needed for HP-UX 11.
34739
34740 2007-05-20  Jim Meyering  <jim@meyering.net>
34741
34742         Fix buggy test for the fchownat-deref bug.
34743         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
34744         symlink required for the run-test.  Without it, this test would
34745         always declare that fchownat doesn't work, and client code would
34746         unnecessarily use the replacement function with fixed libc.
34747         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
34748         Reported by Greg Schafer.
34749
34750 2007-05-19  Bruno Haible  <bruno@clisp.org>
34751
34752         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
34753         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
34754         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
34755         Needed for IRIX 6.5 and Solaris 2.5.1.
34756
34757 2007-05-19  Bruno Haible  <bruno@clisp.org>
34758
34759         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
34760         (test_function): Skip tests involving -0.0 on platforms where
34761         -0.0 = 0.0.
34762         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
34763         (test_function): Skip tests involving -0.0 on platforms where
34764         -0.0 = 0.0.
34765         * tests/test-snprintf-posix.h (have_minus_zero): New function.
34766         (test_function): Skip tests involving -0.0 on platforms where
34767         -0.0 = 0.0.
34768         * tests/test-sprintf-posix.h (have_minus_zero): New function.
34769         (test_function): Skip tests involving -0.0 on platforms where
34770         -0.0 = 0.0.
34771         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
34772         tests.
34773         * tests/test-printf-posix.h (test_function): Likewise.
34774         * tests/test-printf-posix.output: Remove all -0.0 related results.
34775         Needed for IRIX 6.5.
34776
34777 2007-05-19  Bruno Haible  <bruno@clisp.org>
34778
34779         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
34780         printed as "nan0x7fffffff" instead of "nan".
34781         * tests/test-vasprintf-posix.c (test_function): Likewise.
34782         * tests/test-snprintf-posix.h (test_function): Likewise.
34783         * tests/test-sprintf-posix.h (test_function): Likewise.
34784         * tests/test-fprintf-posix.h (NaN): Remove macro.
34785         (test_function): Remove all NaN related tests.
34786         * tests/test-printf-posix.h (NaN): Remove macro.
34787         (test_function): Remove all NaN related tests.
34788         * tests/test-printf-posix.output: Remove all NaN related results.
34789         Needed for IRIX 6.5.
34790
34791 2007-05-19  Bruno Haible  <bruno@clisp.org>
34792
34793         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
34794         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
34795
34796 2007-05-19  Bruno Haible  <bruno@clisp.org>
34797
34798         * lib/float_.h: New file.
34799         * m4/float_h.m4: New file.
34800         * modules/float: New file.
34801         * modules/isnanl (Dependencies): Add float.
34802         * modules/isnanl-nolibm (Dependencies): Likewise.
34803         * modules/mathl (Dependencies): Likewise.
34804         * modules/printf-frexpl (Dependencies): Likewise.
34805         * modules/signbit (Dependencies): Likewise.
34806         * modules/vasnprintf (Dependencies): Likewise.
34807         * doc/headers/float.texi: Update.
34808
34809 2007-05-19  Jim Meyering  <jim@meyering.net>
34810
34811         * lib/utimens.c (gl_futimens): Rename from futimens,
34812         now that glibc-2.6 declares futimens.
34813         * lib/utimens.h: Likewise.
34814
34815 2007-05-19  Bruno Haible  <bruno@clisp.org>
34816
34817         Avoid test failures on mingw.
34818         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
34819         * tests/test-printf-posix.sh: Likewise.
34820         * tests/test-vfprintf-posix.sh: Likewise.
34821         * tests/test-vprintf-posix.sh: Likewise.
34822
34823 2007-05-19  Bruno Haible  <bruno@clisp.org>
34824
34825         Fix *printf result for NaN, Inf, -0.0 on mingw.
34826         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
34827         * lib/vasnprintf.c: Include math.h and isnan.h.
34828         (is_infinite_or_zero): New function.
34829         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
34830         values in the %f, %F, %e, %E, %g, %G directives.
34831         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
34832         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34833         gl_PRINTF_INFINITE and test its result. Invoke
34834         gl_PREREQ_VASNPRINTF_INFINITE.
34835         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34836         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34837         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34838         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34839         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34840         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34841         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34842         * doc/functions/fprintf.texi: Update.
34843         * doc/functions/printf.texi: Update.
34844         * doc/functions/snprintf.texi: Update.
34845         * doc/functions/sprintf.texi: Update.
34846         * doc/functions/vfprintf.texi: Update.
34847         * doc/functions/vprintf.texi: Update.
34848         * doc/functions/vsnprintf.texi: Update.
34849         * doc/functions/vsprintf.texi: Update.
34850
34851 2007-05-19  Bruno Haible  <bruno@clisp.org>
34852
34853         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
34854         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
34855         Instead of multiplying with 10^k, set extra_zeroes to k.
34856         (scale10_round_long_double): Remove function.
34857
34858 2007-05-18  Bruno Haible  <bruno@clisp.org>
34859
34860         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
34861         introduced on 2007-05-06.
34862
34863 2007-05-18  Bruno Haible  <bruno@clisp.org>
34864
34865         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
34866         %g directives.
34867         * tests/test-vasprintf-posix.c (test_function): Likewise.
34868         * tests/test-snprintf-posix.h (test_function): Likewise.
34869         * tests/test-sprintf-posix.h (test_function): Likewise.
34870
34871 2007-05-18  Bruno Haible  <bruno@clisp.org>
34872
34873         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
34874         (strmatch): New function.
34875         (test_function): Test the %f directive on numbers of various exponents.
34876         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
34877         (strmatch): New function.
34878         (test_function): Test the %f directive on numbers of various exponents.
34879         * tests/test-snprintf-posix.h (strmatch): New function.
34880         (test_function): Test the %f directive on numbers of various exponents.
34881         * tests/test-sprintf-posix.h (strmatch): New function.
34882         (test_function): Test the %f directive on numbers of various exponents.
34883         * tests/test-snprintf-posix.c (SIZEOF): New macro.
34884         * tests/test-sprintf-posix.c (SIZEOF): New macro.
34885         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
34886         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
34887
34888 2007-05-18  Bruno Haible  <bruno@clisp.org>
34889
34890         Add support for 'long double' number output.
34891         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
34892         * lib/vasnprintf.c: Include math.h and float+.h.
34893         (mp_limb_t): New type.
34894         (GMP_LIMB_BITS): New macro.
34895         (mp_twolimb_t): New type.
34896         (GMP_TWOLIMB_BITS): New macro.
34897         (mpn_t): New type.
34898         (multiply, divide, convert_to_decimal, decode_long_double,
34899         scale10_round_long_double, scale10_round_decimal_long_double,
34900         floorlog10l): New functions.
34901         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
34902         for the %f, %F, %e, %E, %g, %G directives.
34903         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
34904         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34905         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
34906         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
34907         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34908         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34909         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34910         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34911         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34912         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34913         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34914         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
34915         * modules/snprintf-posix (Depends-on): Likewise.
34916         * modules/sprintf-posix (Depends-on): Likewise.
34917         * modules/vasnprintf-posix (Depends-on): Likewise.
34918         * modules/vasprintf-posix (Depends-on): Likewise.
34919         * modules/vfprintf-posix (Depends-on): Likewise.
34920         * modules/vsnprintf-posix (Depends-on): Likewise.
34921         * modules/vsprintf-posix (Depends-on): Likewise.
34922         * modules/vasnprintf (Files): Add lib/float+.h.
34923         * doc/functions/fprintf.texi: Update.
34924         * doc/functions/printf.texi: Update.
34925         * doc/functions/snprintf.texi: Update.
34926         * doc/functions/sprintf.texi: Update.
34927         * doc/functions/vfprintf.texi: Update.
34928         * doc/functions/vprintf.texi: Update.
34929         * doc/functions/vsnprintf.texi: Update.
34930         * doc/functions/vsprintf.texi: Update.
34931
34932 2007-05-18  Bruno Haible  <bruno@clisp.org>
34933
34934         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
34935
34936 2007-05-18  Bruno Haible  <bruno@clisp.org>
34937
34938         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
34939         for printing 64-bit integers. Needed for mingw.
34940
34941 2007-05-18  Bruno Haible  <bruno@clisp.org>
34942
34943         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
34944         gl_FUNC_FREXPL_WORKS.
34945         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
34946
34947 2007-05-18  Bruno Haible  <bruno@clisp.org>
34948
34949         * modules/frexpl-nolibm-tests: New file.
34950
34951         * modules/frexpl-nolibm: New file.
34952         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
34953
34954 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
34955
34956         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
34957         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
34958         GCC 4.2, which otherwise issues a lot of warnings.
34959         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
34960         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
34961         Likewise.
34962         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
34963         * modules/iconv_open (iconv.h): Likewise.
34964         * modules/locale (locale.h): Likewise.
34965         * modules/netinet_in (netinet/in.h): Likewise.
34966         * modules/sys_select (sys_select.h): Likewise.
34967         * modules/sys_socket (sys/socket.h): Likewise.
34968         * modules/sys_stat (sys/stat.h): Likewise.
34969         * modules/sysexits (sysexits.h): Likewise.
34970         * modules/unistd (unistd.h): Likewise.
34971
34972 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34973
34974         * modules/closein-tests (Makefile.am): Distribute
34975         `test-closein.sh'.
34976
34977 2007-05-17  Bruno Haible  <bruno@clisp.org>
34978
34979         * tests/test-printf-posix.output: Renamed from
34980         tests/test-fprintf-posix.out.
34981         * modules/fprintf-posix-tests: Update.
34982         * modules/printf-posix-tests: Update.
34983         * modules/vfprintf-posix-tests: Update.
34984         * modules/vprintf-posix-tests: Update.
34985         * tests/test-fprintf-posix.sh: Update.
34986         * tests/test-printf-posix.sh: Update.
34987         * tests/test-vfprintf-posix.sh: Update.
34988         * tests/test-vprintf-posix.sh: Update.
34989         Reported by Ralf Wildenhues.
34990
34991 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
34992
34993         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
34994         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
34995         GCC 4.2, which otherwise issues a lot of warnings.
34996         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
34997         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
34998         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
34999         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
35000         it should no longer be needed.
35001         * lib/string_.h: Likewise.
35002         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
35003         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
35004         * modules/inttypes (inttypes.h): Likewise.
35005         * modules/math (math.h): Likewise.
35006         * modules/search (search.h): Likewise.
35007         * modules/signal (signal.h): Likewise.
35008         * modules/stdint (stdint.h): Likewise.
35009         * modules/stdio (stdio.h): Likewise.
35010         * modules/stdlib (stdlib.h): Likewise.
35011         * modules/string (string.h): Likewise.
35012         * modules/sys_time (sys/time.h): Likewise.
35013         * modules/time (time.h): Likewise.
35014         * modules/wchar (wchar.h): Likewise.
35015         * modules/wctype (wtype.h): Likewise.
35016
35017 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
35018
35019         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
35020
35021 2007-05-13  Bruno Haible  <bruno@clisp.org>
35022
35023         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
35024         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
35025         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
35026         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
35027         (gl_PREREQ_STRTOK_R): Don't require it here.
35028
35029 2007-05-13  Bruno Haible  <bruno@clisp.org>
35030
35031         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
35032         when used in C++ mode.
35033
35034 2007-05-12  Bruno Haible  <bruno@clisp.org>
35035
35036         * lib/linebuffer.h: Tweak doc.
35037         * lib/linebuffer.c: Likewise.
35038
35039 2007-05-12  James Youngman  <jay@gnu.org>
35040
35041         * lib/linebuffer.c (readlinebuffer_delim): New function,
35042         like readlinebuffer, but use a caller-specified delimiter.
35043         (readlinebuffer): Just call readlinebuffer_delim with '\n'
35044         as the delimiter.
35045         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
35046
35047 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
35048
35049         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
35050         * modules/openat (Files): Remove openat-die.c.
35051         (Depends-on): Add openat-die.
35052         * modules/openat-die: New module.
35053
35054 2007-05-06  Bruno Haible  <bruno@clisp.org>
35055
35056         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
35057         Update with info about Cygwin.
35058         * doc/functions/fprintf.texi: Update.
35059         * doc/functions/printf.texi: Update.
35060         * doc/functions/snprintf.texi: Update.
35061         * doc/functions/sprintf.texi: Update.
35062         * doc/functions/vfprintf.texi: Update.
35063         * doc/functions/vprintf.texi: Update.
35064         * doc/functions/vsnprintf.texi: Update.
35065         * doc/functions/vsprintf.texi: Update.
35066         Reported by Eric Blake.
35067
35068 2007-05-06  Bruno Haible  <bruno@clisp.org>
35069
35070         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
35071         padding ourselves for the floating-point directives.
35072         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
35073         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
35074         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35075         gl_PRINTF_FLAG_ZERO and test its result. Invoke
35076         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
35077         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35078         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
35079         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35080         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35081         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35082         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35083         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35084         * tests/test-snprintf-posix.h (test_function): Also check the width
35085         and some flags in the %f directive.
35086         * tests/test-sprintf-posix.h (test_function): Likewise.
35087         * tests/test-vasnprintf-posix.c (test_function): Likewise.
35088         * tests/test-vasprintf-posix.c (test_function): Likewise.
35089         * doc/functions/fprintf.texi: Update.
35090         * doc/functions/printf.texi: Update.
35091         * doc/functions/snprintf.texi: Update.
35092         * doc/functions/sprintf.texi: Update.
35093         * doc/functions/vfprintf.texi: Update.
35094         * doc/functions/vprintf.texi: Update.
35095         * doc/functions/vsnprintf.texi: Update.
35096         * doc/functions/vsprintf.texi: Update.
35097
35098 2007-05-06  Bruno Haible  <bruno@clisp.org>
35099
35100         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
35101         pass the ' flag character to sprintf or snprintf.
35102         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
35103         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
35104         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35105         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
35106         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
35107         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35108         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
35109         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35110         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35111         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35112         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35113         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35114         * tests/test-snprintf-posix.h (test_function): Also check the grouping
35115         flag.
35116         * tests/test-sprintf-posix.h (test_function): Likewise.
35117         * tests/test-vasnprintf-posix.c (test_function): Likewise.
35118         * tests/test-vasprintf-posix.c (test_function): Likewise.
35119         * doc/functions/fprintf.texi: Update.
35120         * doc/functions/printf.texi: Update.
35121         * doc/functions/snprintf.texi: Update.
35122         * doc/functions/sprintf.texi: Update.
35123         * doc/functions/vfprintf.texi: Update.
35124         * doc/functions/vprintf.texi: Update.
35125         * doc/functions/vsnprintf.texi: Update.
35126         * doc/functions/vsprintf.texi: Update.
35127
35128 2007-05-01  Bruno Haible  <bruno@clisp.org>
35129
35130         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
35131
35132 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
35133
35134         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
35135         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
35136
35137 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
35138
35139         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
35140         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
35141         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
35142
35143 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
35144
35145         * lib/argp-help.c (struct hol_entry): New member `ord'.
35146         (HOL_ENTRY_PTRCMP): Use ord for comparison
35147         (hol_sort): Initialize ord.
35148
35149 2007-05-01  Bruno Haible  <bruno@clisp.org>
35150
35151         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
35152         Reported by Eric Blake.
35153         * doc/gnulib.texi (Function Substitutes): Update.
35154
35155 2007-05-01  Bruno Haible  <bruno@clisp.org>
35156
35157         * doc/functions.texi: Remove file, now redundant through
35158         doc/functions/*.texi.
35159
35160 2007-05-01  Bruno Haible  <bruno@clisp.org>
35161
35162         * modules/argp (Depends-on): Add sleep.
35163
35164 2007-05-01  Bruno Haible  <bruno@clisp.org>
35165
35166         * modules/sleep-tests: New file.
35167         * tests/test-sleep.c: New file.
35168
35169         * modules/sleep: New file.
35170         * lib/sleep.c: New file.
35171         * m4/sleep.m4: New file.
35172         * lib/unistd_.h (sleep): New declaration.
35173         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
35174         HAVE_SLEEP.
35175         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
35176         * doc/functions/sleep.texi: Document the sleep module.
35177
35178 2007-05-01  Bruno Haible  <bruno@clisp.org>
35179
35180         * lib/sigprocmask.h: Remove file.
35181         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
35182         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
35183         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
35184         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
35185         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
35186         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
35187         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
35188         HAVE_SIGSET_T as a shell variable.
35189         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
35190         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
35191         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
35192         (Depends-on): Add signal. Remove verify.
35193         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
35194         (Include): Mention <signal.h> instead of sigprocmask.h.
35195         * NEWS: Mention the change.
35196         * lib/fatal-signal.c: Don't include sigprocmask.h.
35197
35198 2007-05-01  Bruno Haible  <bruno@clisp.org>
35199
35200         * modules/signal: New file.
35201         * lib/signal_.h: New file.
35202         * m4/signal_h.m4: New file.
35203
35204 2007-05-01  Bruno Haible  <bruno@clisp.org>
35205
35206         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
35207         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
35208         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
35209         HAVE_WCTYPE_CTMP_BUG into wctype.h.
35210
35211 2007-05-01  Bruno Haible  <bruno@clisp.org>
35212
35213         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
35214         configure time.
35215         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
35216         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
35217         * modules/sys_stat (Makefile.am): Substitute their values into
35218         sys/stat.h.
35219
35220 2007-05-01  Bruno Haible  <bruno@clisp.org>
35221
35222         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
35223         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
35224         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
35225
35226 2007-05-01  Bruno Haible  <bruno@clisp.org>
35227
35228         * doc/header/assert.texi: Undo last change: don't mention the gnulib
35229         'assert' module here.
35230
35231 2007-05-01  Bruno Haible  <bruno@clisp.org>
35232
35233         * doc/functions/*.texi: New files.
35234         * doc/functions/google-ranking.txt: New file.
35235         * doc/gnulib.texi (Function Substitutes): New chapter.
35236         (ctime, inet_ntoa): Remove sections.
35237         * doc/ctime.texi: Remove file.
35238         * doc/inet_ntoa.texi: Remove file.
35239         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
35240         dependencies.
35241         (%.info): New rule, specifying a --reference-limit.
35242
35243 2007-05-01  Bruno Haible  <bruno@clisp.org>
35244
35245         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
35246
35247 2007-05-01  Bruno Haible  <bruno@clisp.org>
35248
35249         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
35250         the portability of 'mkdir' to mingw systems.
35251
35252 2007-05-01  Bruno Haible  <bruno@clisp.org>
35253
35254         * doc/headers/google-ranking.txt: New file.
35255
35256 2007-04-30  Eric Blake  <ebb9@byu.net>
35257
35258         Prefer fseeko to fseek.
35259         * modules/getpass (Depends-on): Add fseeko.
35260         * lib/getpass.c (getpass): Use fseeko, not fseek.
35261
35262 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
35263
35264         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
35265         assumes the sorting is stable, while most qsort implementations
35266         are not.  Use argument addresses to ensure they never compare as
35267         equal.
35268
35269         * tests/test-argp-2.sh (usage-indent test): Fix output
35270         (func_compare): Restore diff options
35271         * tests/test-argp.c: Restore #include "progname.h"
35272
35273 2007-04-29  Bruno Haible  <bruno@clisp.org>
35274
35275         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
35276         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35277         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
35278         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35279         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
35280         (configure.ac): Define CHECK_SNPRINTF_POSIX.
35281         (TESTS, check_PROGRAMS): Add test-snprintf.
35282         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
35283         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
35284         (TESTS, check_PROGRAMS): Add test-vsnprintf.
35285         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
35286         assertions that fail on HP-UX, OSF/1, or IRIX.
35287         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
35288
35289 2007-04-29  Bruno Haible  <bruno@clisp.org>
35290
35291         * MODULES.html.sh (posix_functions): Remove 'contents'.
35292
35293 2007-04-29  Karl Berry  <karl@gnu.org>
35294
35295         * config/srclist.txt (gendocs_template_min): new entry.
35296
35297 2007-04-29  Bruno Haible  <bruno@clisp.org>
35298
35299         Work around fpurge bug on BSD systems.
35300         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
35301         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
35302         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
35303         fpurge to rpl_fpurge if the system already has this function.
35304         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
35305         the case where the system already has this function. Correct invariants
35306         on BSD systems.
35307         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
35308         BSD systems.
35309
35310 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
35311
35312         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
35313         proposed by Sven Verdoolaege.
35314
35315         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
35316         options.
35317         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
35318         (usage and help tests): Update
35319
35320 2007-04-29  Bruno Haible  <bruno@clisp.org>
35321
35322         * tests/test-fflush.c (main): Use a file of size 17, not 10.
35323         Print more information in case of failure. Disable a test on BeOS.
35324
35325 2007-04-29  Bruno Haible  <bruno@clisp.org>
35326
35327         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
35328         This helps debugging on systems on which no gdb is available.
35329
35330 2007-04-29  Bruno Haible  <bruno@clisp.org>
35331
35332         * lib/freading.h: Improve comments.
35333         * lib/fwriting.h: Likewise.
35334         * tests/test-freading.c (main): Don't check freading immediately after
35335         repositioning. Needed for glibc.
35336
35337 2007-04-29  Bruno Haible  <bruno@clisp.org>
35338
35339         * lib/freading.c (freading): Trivial simplification.
35340
35341 2007-04-28  Bruno Haible  <bruno@clisp.org>
35342
35343         * tests/test-fwriting.c (main): Also test the interaction between
35344         fflush and fwriting.
35345         * modules/fwriting-tests (Depends-on): Add fflush.
35346
35347         * tests/test-freading.c (main): Also test the interaction between
35348         fflush and freading.
35349         * modules/freading-tests (Depends-on): Add fflush.
35350
35351 2007-04-28  Bruno Haible  <bruno@clisp.org>
35352
35353         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
35354         fseeko and ftello.
35355         Suggested by Eric Blake.
35356
35357 2007-04-28  Jim Meyering  <jim@meyering.net>
35358
35359         Avoid false-negative in gl_STDINT_H's C99 conformance test.
35360         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
35361         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
35362
35363 2007-04-27  Eric Blake  <ebb9@byu.net>
35364
35365         * doc/headers/assert.texi (assert.h): Document assert module use.
35366
35367 2007-04-27  Bruno Haible  <bruno@clisp.org>
35368
35369         * doc/headers/*.texi: New files.
35370         * doc/gnulib.texi (Header File Substitutes): New chapter.
35371         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
35372         dependencies.
35373         (standards.info ,standards.html, standards.dvi): Update dependencies.
35374         (mostlyclean, clean): New targets.
35375
35376 2007-04-27  Bruno Haible  <bruno@clisp.org>
35377
35378         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
35379         * modules/sysexits (Files, Makefile.am): Update.
35380
35381         * lib/sys_socket_.h: Renamed from lib/socket_.h.
35382         * modules/sys_socket (Files, Makefile.am): Update.
35383
35384         * lib/sys_stat_.h: Renamed from lib/stat_.h.
35385         * modules/sys_stat (Files, Makefile.am): Update.
35386
35387 2007-04-27  Eric Blake  <ebb9@byu.net>
35388
35389         * lib/freading.h: Improve comments.
35390         * lib/fwriting.h: Likewise.
35391         * lib/fflush.c: Likewise.
35392
35393         Fix closein for mingw.
35394         * modules/closein-tests: Add tests for closein.
35395         * tests/test-closein.c: New file.
35396         * tests/test-closein.sh: Likewise.
35397         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
35398         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
35399
35400 2007-04-27  Bruno Haible  <bruno@clisp.org>
35401
35402         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
35403         version is < 6.
35404         * lib/math_.h [__DECC]: Likewise.
35405         * lib/stdio_.h [__DECC]: Likewise.
35406         * lib/stdlib_.h [__DECC]: Likewise.
35407         * lib/string_.h [__DECC]: Likewise.
35408         * lib/time_.h [__DECC]: Likewise.
35409         * lib/wchar_.h [__DECC]: Likewise.
35410         * lib/wctype_.h [__DECC]: Likewise.
35411
35412 2007-04-27  Bruno Haible  <bruno@clisp.org>
35413
35414         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
35415
35416 2007-04-27  Bruno Haible  <bruno@clisp.org>
35417
35418         * lib/fflush.c: Add comments.
35419         * modules/fpurge-tests (Depends-on): Add fflush.
35420         * modules/freadable-tests (Depends-on): Likewise.
35421         * modules/fwritable-tests (Depends-on): Likewise.
35422
35423 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
35424
35425         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
35426         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
35427         Report by Bruno Haible <bruno@clisp.org>.
35428
35429 2007-04-26  Eric Blake  <ebb9@byu.net>
35430
35431         Fix fflush on mingw.
35432         * modules/fflush (Depends-on): Add freading.
35433         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
35434         but unread data.
35435
35436 2007-04-26  Eric Blake  <ebb9@byu.net>
35437         and Bruno Haible  <bruno@clisp.org>
35438
35439         Implement freading and fwriting.
35440         * lib/freading.c: New file.
35441         * lib/freading.h: Likewise.
35442         * m4/freading.m4: Likewise.
35443         * modules/freading: Likewise.
35444         * modules/freading-tests: Likewise.
35445         * tests/test-freading.c: Likewise.
35446         * lib/fwriting.c: New file.
35447         * lib/fwriting.h: Likewise.
35448         * m4/fwriting.m4: Likewise.
35449         * modules/fwriting: Likewise.
35450         * modules/fwriting-tests: Likewise.
35451         * tests/test-fwriting.c: Likewise.
35452         * MODULES.html.sh (File stream based Input/Output): Mention them.
35453
35454 2007-04-26  Bruno Haible  <bruno@clisp.org>
35455
35456         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
35457         'long' when we assume it.
35458         Suggested by Eric Blake.
35459
35460 2007-04-26  Bruno Haible  <bruno@clisp.org>
35461
35462         Ensure fseeko, ftello are declared on glibc systems.
35463         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
35464         * modules/fseeko (configure.ac-early): Likewise.
35465         * modules/ftello (configure.ac-early): Likewise.
35466         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
35467         AC_FUNC_FSEEKO for this.
35468         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
35469         (gl_CHECK_FSEEKO): Remove macro.
35470
35471 2007-04-26  Bruno Haible  <bruno@clisp.org>
35472
35473         * tests/test-fflush.c (main): Also check the ftell result after
35474         fflush and fseek/fseeko.
35475         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
35476         file descriptor position cache in the stream.
35477         * lib/fseeko.c (rpl_fseeko): Likewise.
35478
35479 2007-04-26  Bruno Haible  <bruno@clisp.org>
35480
35481         * modules/fflush-tests (Depends-on): Add fseeko.
35482
35483 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
35484             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35485
35486         * lib/argz_.h: ensure error_t definition is obtained in same
35487         mechanism system argz.h would have.
35488         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
35489         argz facilities are known bad.  Err on the side of caution if
35490         cross-compiling.
35491
35492 2007-04-25  Eric Blake  <ebb9@byu.net>
35493
35494         * lib/fpurge.c (includes): Use stdlib.h for free.
35495         * tests/test-fflush.c (main): Also test fflush-fseeko.
35496
35497 2007-04-25  Bruno Haible  <bruno@clisp.org>
35498
35499         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
35500         * lib/fseeko.c: New file.
35501         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
35502         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
35503         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
35504         gl_FUNC_FSEEKO.
35505         (gl_FUNC_FSEEKO): Invoke it.
35506         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
35507         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
35508         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
35509
35510 2007-04-25  Bruno Haible  <bruno@clisp.org>
35511
35512         * modules/fflush (Depends-on): Add ftello.
35513
35514 2007-04-25  Bruno Haible  <bruno@clisp.org>
35515
35516         * modules/ftello-tests: New file.
35517         * tests/test-ftello.c: New file.
35518
35519         * modules/ftello: New file.
35520         * m4/ftello.m4: New file.
35521         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
35522         HAVE_FTELLO.
35523         * lib/stdio_.h (ftello): New declaration.
35524         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
35525         HAVE_FTELLO.
35526
35527 2007-04-25  Bruno Haible  <bruno@clisp.org>
35528
35529         * modules/fseeko-tests: New file.
35530         * tests/test-fseeko.c: New file.
35531
35532         * modules/fseeko: New file.
35533         * m4/fseeko.m4: New file.
35534         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
35535         HAVE_FSEEKO.
35536         * lib/stdio_.h (fseeko): New declaration.
35537         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
35538         HAVE_FSEEKO.
35539
35540 2007-04-25  Bruno Haible  <bruno@clisp.org>
35541
35542         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
35543
35544 2007-04-25  Bruno Haible  <bruno@clisp.org>
35545
35546         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
35547         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
35548         * tests/test-unistd.c: Likewise.
35549         * tests/test-fcntl.c: Likewise.
35550
35551 2007-04-23  Eric Blake  <ebb9@byu.net>
35552
35553         * lib/fflush.c: Fix missing include.
35554         Reported by Bruno Haible.
35555
35556 2007-04-23  Bruno Haible  <bruno@clisp.org>
35557
35558         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
35559         Reported by Eric Blake.
35560
35561 2007-04-23  Bruno Haible  <bruno@clisp.org>
35562
35563         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
35564
35565 2007-04-23  Bruno Haible  <bruno@clisp.org>
35566
35567         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
35568
35569 2007-04-23  Bruno Haible  <bruno@clisp.org>
35570
35571         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
35572         Needed on HP-UX 11.
35573
35574 2007-04-16  Eric Blake  <ebb9@byu.net>
35575
35576         Make fflush rely on fpurge.
35577         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
35578         open coding all variants.
35579         * modules/fflush (Depends-on): Add fpurge and unistd.
35580         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
35581         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
35582
35583         Fix --with-tests compilation on cygwin.
35584         * modules/argmatch-tests (Makefile.am): List gnulib library first
35585         in LDADD.
35586         * modules/argp-tests (Makefile.am): Likewise.
35587         * modules/array-list-tests (Makefile.am): Likewise.
35588         * modules/array-oset-tests (Makefile.am): Likewise.
35589         * modules/avltree-list-tests (Makefile.am): Likewise.
35590         * modules/avltree-oset-tests (Makefile.am): Likewise.
35591         * modules/avltreehash-list-tests (Makefile.am): Likewise.
35592         * modules/carray-list-tests (Makefile.am): Likewise.
35593         * modules/dirname-tests (Makefile.am): Likewise.
35594         * modules/frexp-tests (Makefile.am): Likewise.
35595         * modules/isnanl-tests (Makefile.am): Likewise.
35596         * modules/linked-list-tests (Makefile.am): Likewise.
35597         * modules/linkedhash-list-tests (Makefile.am): Likewise.
35598         * modules/lock-tests (Makefile.am): Likewise.
35599         * modules/rbtree-list-tests (Makefile.am): Likewise.
35600         * modules/rbtree-oset-tests (Makefile.am): Likewise.
35601         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
35602         * modules/tls-tests (Makefile.am): Likewise.
35603         * modules/tsearch-tests (Makefile.am): Likewise.
35604         * modules/xvasprintf-tests (Makefile.am): Likewise.
35605
35606         Fix fpurge for cygwin.
35607         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
35608         value.
35609         * modules/fpurge-tests (Depends-on): Clean up trash.
35610
35611 2007-04-16  Simon Josefsson  <simon@josefsson.org>
35612
35613         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
35614
35615         * m4/autobuild.m4: Re-indent.
35616
35617 2007-04-13  Bruno Haible  <bruno@clisp.org>
35618
35619         * modules/fpurge-tests: New file.
35620         * tests/test-fpurge.c: New file.
35621
35622         * modules/fpurge: New file.
35623         * lib/fpurge.h: New file.
35624         * lib/fpurge.c: New file.
35625         * m4/fpurge.m4: New file.
35626
35627 2007-04-13  Bruno Haible  <bruno@clisp.org>
35628
35629         * modules/fbufmode-tests: New file.
35630         * tests/test-fbufmode.c: New file.
35631
35632         * modules/fbufmode: New file.
35633         * lib/fbufmode.h: New file.
35634         * lib/fbufmode.c: New file.
35635         * m4/fbufmode.m4: New file.
35636
35637 2007-04-13  Bruno Haible  <bruno@clisp.org>
35638
35639         * modules/fwritable-tests: New file.
35640         * tests/test-fwritable.c: New file.
35641
35642         * modules/fwritable: New file.
35643         * lib/fwritable.h: New file.
35644         * lib/fwritable.c: New file.
35645         * m4/fwritable.m4: New file.
35646
35647 2007-04-13  Bruno Haible  <bruno@clisp.org>
35648
35649         * modules/freadable-tests: New file.
35650         * tests/test-freadable.c: New file.
35651
35652         * modules/freadable: New file.
35653         * lib/freadable.h: New file.
35654         * lib/freadable.c: New file.
35655         * m4/freadable.m4: New file.
35656
35657 2007-04-13  Bruno Haible  <bruno@clisp.org>
35658
35659         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
35660         MOSTLYCLEANFILES.
35661
35662 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
35663
35664         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
35665         gzip bootstrap.conf to avoid dragging in i18n machinery.
35666         (gnulib_tool_option): Use it.
35667
35668 2007-04-13  Bruno Haible  <bruno@clisp.org>
35669
35670         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
35671         %F directives.
35672         * tests/test-vasprintf-posix.c (test_function): Likewise.
35673         * tests/test-snprintf-posix.h (test_function): Likewise.
35674         * tests/test-sprintf-posix.h (test_function): Likewise.
35675         * tests/test-fprintf-posix.h (test_function): Likewise.
35676         * tests/test-printf-posix.h (test_function): Likewise.
35677         * tests/test-fprintf-posix.out: Likewise.
35678
35679 2007-04-13  Bruno Haible  <bruno@clisp.org>
35680
35681         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
35682         * modules/tls-tests (configure.ac): Likewise.
35683         Reported by Arto C. Nirkko <anirkko@insel.ch>.
35684
35685 2007-04-13  Bruno Haible  <bruno@clisp.org>
35686
35687         * lib/tls.c (glthread_tls_get): Fix return type.
35688         Patch by Arto C. Nirkko <anirkko@insel.ch>.
35689
35690 2007-04-12  Eric Blake  <ebb9@byu.net>
35691
35692         * modules/gettime (Depends-on): Remove gettime.
35693         Reported by Dmitry V. Levin.
35694
35695 2007-04-12  Bruno Haible  <bruno@clisp.org>
35696
35697         * modules/fflush (Include): Mention <stdio.h>.
35698         * modules/strtoimax (Include): Mention <inttypes.h>.
35699         * modules/strtoumax (Include): Likewise.
35700
35701 2007-04-12  Eric Blake  <ebb9@byu.net>
35702
35703         * .cvsignore: New file.
35704         * .gitignore: Likewise.
35705
35706 2007-04-12  Bruno Haible  <bruno@clisp.org>
35707
35708         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
35709         not before, since $(LDADD) often contains libgnu.a.
35710         * modules/striconv-tests (test_striconv_LDADD): Likewise.
35711         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
35712         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
35713         Needed on Cygwin.
35714
35715 2007-04-12  Eric Blake  <ebb9@byu.net>
35716
35717         Work around glibc's failure to flush stdin on fclose.
35718         * lib/closein.c (close_stdin): Flush stdin before closing.
35719
35720         Work around glibc's failure to reset seekable stdin on exit.
35721         * modules/closein: New module.
35722         * lib/closein.c: New file.
35723         * lib/closein.h: Likewise.
35724         * m4/closein.m4: Likewise.
35725         * MODULES.html.sh (File stream based Input/Output): Document it.
35726
35727 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35728
35729         * gnulib-tool: Rename generated 'autobuild' script to
35730         'do-autobuild' in --create-megatestdir output.
35731
35732         * doc/gnulib.texi (Build robot for gnulib): Fix.
35733
35734 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35735
35736         * modules/sysexits (Depends-on): Add absolute-header.
35737
35738 2007-04-12  Eric Blake  <ebb9@byu.net>
35739
35740         No need to preserve errno on success.
35741         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
35742         Reported by Bruno Haible.
35743
35744 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35745
35746         * MODULES.html.sh (Support for maintaining and releasing
35747         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
35748
35749 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35750
35751         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
35752
35753 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35754
35755         * modules/autobuild: New module.
35756
35757         * m4/autobuild.m4: New file.
35758
35759 2007-04-11  Bruno Haible  <bruno@clisp.org>
35760
35761         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
35762         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
35763         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
35764         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
35765         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35766         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35767         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35768         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35769         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35770         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35771         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
35772         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35773         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35774         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
35775         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35776         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35777         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
35778         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35779         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35780         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
35781         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35782         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35783         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
35784         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35785         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35786         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
35787         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35788         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35789         Reported by Eric Blake.
35790
35791 2007-04-11  Bruno Haible  <bruno@clisp.org>
35792
35793         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
35794
35795 2007-04-10  Bruno Haible  <bruno@clisp.org>
35796
35797         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
35798         for NaN and Infinity. Needed on FreeBSD 6.1.
35799         * tests/test-vasnprintf-posix.c (test_function): Undo last change
35800         regarding results for "%010a" of Infinity and NaN.
35801         * tests/test-vasprintf-posix.c (test_function): Likewise.
35802         * tests/test-snprintf-posix.h (test_function): Likewise.
35803         * tests/test-sprintf-posix.h (test_function): Likewise.
35804         * tests/test-fprintf-posix.h (test_function): Likewise.
35805         * tests/test-printf-posix.h (test_function): Likewise.
35806         * tests/test-fprintf-posix.out: Likewise.
35807
35808 2007-04-10  Bruno Haible  <bruno@clisp.org>
35809
35810         * modules/locale-tests: New file.
35811         * tests/test-locale.c: New file.
35812
35813         * modules/locale: New file.
35814         * lib/locale_.h: New file.
35815         * m4/locale_h.m4: New file.
35816
35817 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
35818             Bruno Haible  <bruno@clisp.org>
35819
35820         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
35821         be determined, test for availability of the copysignf, copysign,
35822         copysignl functions.
35823         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
35824         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
35825         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
35826
35827 2007-04-09  Eric Blake  <ebb9@byu.net>
35828
35829         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
35830         * modules/stdio (Makefile.am): Support fflush.
35831         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35832         * modules/fflush: New file.
35833         * lib/fflush.c: Likewise.
35834         * m4/fflush.m4: Likewise.
35835         * modules/fflush-tests: New test.
35836         * tests/test-fflush.c: Likewise.
35837         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
35838
35839 2007-04-06  Bruno Haible  <bruno@clisp.org>
35840
35841         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
35842         (VASNPRINTF): Use signbit for faster determination whether to print a
35843         minus sign.
35844         * modules/vasnprintf (Files): Remove lib/float+.h.
35845         * modules/fprintf-posix (Depends-on): Add signbit.
35846         * modules/snprintf-posix (Depends-on): Likewise.
35847         * modules/sprintf-posix (Depends-on): Likewise.
35848         * modules/vasnprintf-posix (Depends-on): Likewise.
35849         * modules/vasprintf-posix (Depends-on): Likewise.
35850         * modules/vfprintf-posix (Depends-on): Likewise.
35851         * modules/vsnprintf-posix (Depends-on): Likewise.
35852         * modules/vsprintf-posix (Depends-on): Likewise.
35853
35854 2007-04-06  Bruno Haible  <bruno@clisp.org>
35855
35856         * tests/test-frexp.c (main): Test also the sign bit of zero results.
35857         * tests/test-frexpl.c (main): Likewise.
35858         * tests/test-ldexpl.c (main): Likewise.
35859         * modules/frexp-tests (Depends-on): Add signbit.
35860         * modules/frexpl-tests (Depdends-on): Likewise.
35861         * modules/ldexpl-tests (Depdends-on): Likewise.
35862
35863 2007-04-06  Bruno Haible  <bruno@clisp.org>
35864
35865         * modules/signbit-tests: New file.
35866         * tests/test-signbit.c: New file.
35867
35868         * modules/signbit: New file.
35869         * lib/signbitf.c: New file.
35870         * lib/signbitd.c: New file.
35871         * lib/signbitl.c: New file.
35872         * m4/signbit.m4: New file.
35873         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
35874         (signbit): New macro.
35875         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
35876         REPLACE_SIGNBIT.
35877         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
35878         REPLACE_FREXPL into math.h.
35879
35880 2007-04-06  Bruno Haible  <bruno@clisp.org>
35881
35882         * modules/isnanf-nolibm-tests: New file.
35883         * tests/test-isnanf.c: New file.
35884
35885         * modules/isnanf-nolibm: New file.
35886         * lib/isnanf.h: New file.
35887         * lib/isnanf.c: New file.
35888         * lib/isnan.c: Consider the USE_FLOAT macro.
35889         * m4/isnanf.m4: New file.
35890
35891 2007-04-06  Bruno Haible  <bruno@clisp.org>
35892
35893         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
35894         (Link): New section.
35895
35896         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
35897
35898 2007-04-06  Bruno Haible  <bruno@clisp.org>
35899
35900         Assume the 'long double' type.
35901         * m4/longdouble.m4: Remove file.
35902         * config/srclist.txt: Don't mention longdouble.m4.
35903         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
35904         * lib/float+.h: Likewise.
35905         * lib/frexp.c: Likewise.
35906         * lib/printf-args.h: Likewise.
35907         * lib/printf-args.c: Likewise.
35908         * lib/printf-frexp.c: Likewise.
35909         * lib/printf-parse.c: Likewise.
35910         * lib/vasnprintf.c: Likewise.
35911         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
35912         * m4/intl.m4: Likewise.
35913         * m4/isnanl.m4: Likewise.
35914         * m4/printf.m4: Likewise.
35915         * m4/printf-frexpl.m4: Likewise.
35916         * m4/vasnprintf.m4: Likewise.
35917         * modules/allocsa (Files): Remove m4/longdouble.m4.
35918         * modules/gettext (Files): Likewise.
35919         * modules/relocatable-prog-wrapper (Files): Likewise.
35920         * modules/vasnprintf (Files): Likewise.
35921         * modules/isnanl (Files): Likewise.
35922         (Include): Simplify.
35923         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
35924         (Include): Simplify.
35925         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
35926         (Include): Simplify.
35927         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
35928         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35929         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
35930         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35931         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
35932         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35933         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
35934         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35935         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
35936         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35937         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
35938         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35939         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
35940         * tests/test-isnanl.c: Likewise.
35941         * tests/test-snprintf-posix.h: Likewise.
35942         * tests/test-sprintf-posix.h: Likewise.
35943         * tests/test-vasnprintf-posix.c: Likewise.
35944         * tests/test-vasnprintf-posix2.c: Likewise.
35945         * tests/test-vasprintf-posix.c: Likewise.
35946
35947 2007-04-06  Bruno Haible  <bruno@clisp.org>
35948
35949         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
35950         * lib/math_.h [__DECC]: Include the overridden include file through
35951         #include_next, outside the double-inclusion guard.
35952         * lib/stdio_.h [__DECC]: Likewise.
35953         * lib/stdlib_.h [__DECC]: Likewise.
35954         * lib/string_.h [__DECC]: Likewise.
35955         * lib/time_.h [__DECC]: Likewise.
35956         * lib/wchar_.h [__DECC]: Likewise.
35957         * lib/wctype_.h [__DECC]: Likewise.
35958         * lib/inttypes_.h [__DECC]: Likewise.
35959         Reported by Albert Chin <china@thewrittenword.com> in
35960         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
35961
35962 2007-04-04  Eric Blake  <ebb9@byu.net>
35963
35964         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
35965         1.5.x.
35966
35967 2007-04-04  Bruno Haible  <bruno@clisp.org>
35968
35969         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
35970         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
35971
35972 2007-04-04  Bruno Haible  <bruno@clisp.org>
35973
35974         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
35975         results for "%010a" of Infinity and NaN.
35976         * tests/test-vasprintf-posix.c (test_function): Likewise.
35977         * tests/test-snprintf-posix.h (test_function): Likewise.
35978         * tests/test-sprintf-posix.h (test_function): Likewise.
35979         * tests/test-fprintf-posix.h (test_function): Remove these tests.
35980         * tests/test-printf-posix.h (test_function): Likewise.
35981         * tests/test-fprintf-posix.out: Update.
35982         Needed for FreeBSD 6.1.
35983
35984 2007-04-04  Bruno Haible  <bruno@clisp.org>
35985
35986         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
35987         directly used by the gnulib modules nor by gnulib-tool.
35988
35989 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
35990
35991         * DEPENDENCIES: Give overall description of version dependency
35992         desirability.  Use more-typical names for apps.
35993         Add shell, coreutils, diffutils, grep, tar, gzip.
35994
35995 2007-04-04  Simon Josefsson  <simon@josefsson.org>
35996
35997         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
35998
35999 2007-04-04  Karl Berry  <karl@gnu.org>
36000
36001         * MODULES.html.sh (func_module): missing '.
36002
36003 2007-04-03  Bruno Haible  <bruno@clisp.org>
36004
36005         * modules/argmatch-tests (Makefile.am): New variable
36006         test_argmatch_LDADD.
36007         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
36008         * modules/array-list-tests (Makefile.am): New variable
36009         test_array_list_LDADD.
36010         * modules/array-oset-tests (Makefile.am): New variable
36011         test_array_oset_LDADD.
36012         * modules/avltree-list-tests (Makefile.am): New variable
36013         test_avltree_list_LDADD.
36014         * modules/avltree-oset-tests (Makefile.am): New variable
36015         test_avltree_oset_LDADD.
36016         * modules/avltreehash-list-tests (Makefile.am): New variable
36017         test_avltreehash_list_LDADD.
36018         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
36019         test_canonicalize_lgpl_LDADD.
36020         * modules/carray-list-tests (Makefile.am): New variable
36021         test_carray_list_LDADD.
36022         * modules/dirname-tests (Makefile.am): New variable
36023         test_dirname_LDADD.
36024         * modules/linked-list-tests (Makefile.am): New variable
36025         test_linked_list_LDADD.
36026         * modules/linkedhash-list-tests (Makefile.am): New variable
36027         test_linkedhash_list_LDADD.
36028         * modules/rbtree-list-tests (Makefile.am): New variable
36029         test_rbtree_list_LDADD.
36030         * modules/rbtree-oset-tests (Makefile.am): New variable
36031         test_rbtree_oset_LDADD.
36032         * modules/rbtreehash-list-tests (Makefile.am): New variable
36033         test_rbtreehash_list_LDADD.
36034         * modules/xvasprintf-tests (Makefile.am): New variable
36035         test_xvasprintf_LDADD.
36036         Reported by Eric Blake.
36037
36038 2007-04-03  Eric Blake  <ebb9@byu.net>
36039
36040         * DEPENDENCIES: Weaken m4 requirements.
36041
36042 2007-04-03  Bruno Haible  <bruno@clisp.org>
36043
36044         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
36045         * modules/isnanl-tests (configure.ac): Likewise.
36046
36047 2007-04-03  Ben Pfaff  <blp@gnu.org>
36048
36049         * modules/iconv_open: Add $(srcdir)/ to source directory
36050         references in Makefile fragments that call gperf, to fix VPATH
36051         builds.
36052
36053 2007-04-03  Bruno Haible  <bruno@clisp.org>
36054
36055         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
36056         * lib/ldexpl.c: Undo last change.
36057
36058 2007-04-03  Bruno Haible  <bruno@clisp.org>
36059
36060         * modules/printf-frexpl (Depends-on): Undo last change.
36061         (Files): Add m4/ldexpl.m4.
36062
36063 2007-04-03  Bruno Haible  <bruno@clisp.org>
36064
36065         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
36066         * modules/isnanl (Link): New section.
36067
36068         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
36069         * modules/frexp (Link): New section.
36070
36071         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
36072         * modules/frexpl (Link): New section.
36073
36074         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
36075         * modules/ldexpl (Link): New section.
36076
36077 2007-04-03  Bruno Haible  <bruno@clisp.org>
36078
36079         * modules/TEMPLATE-EXTENDED: New file.
36080         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
36081
36082 2007-04-03  Bruno Haible  <bruno@clisp.org>
36083
36084         * DEPENDENCIES: New file.
36085         Suggested by Simon Josefsson.
36086
36087 2007-04-03  Bruno Haible  <bruno@clisp.org>
36088
36089         * doc/gnulib.texi: Escape @.
36090
36091 2007-04-03  James Youngman  <jay@gnu.org>
36092         and Paul Eggert  <eggert@cs.ucla.edu>
36093
36094         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
36095         birthtime on all systems that have birthtime, not just those which
36096         use st_birthtimensec rather than st_birthtim.  Putting zero in
36097         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
36098         that the birth time is not available for files on an NFS mount.
36099
36100 2007-04-03  Simon Josefsson  <simon@josefsson.org>
36101
36102         * modules/memxor: Move back from crypto/, suggested by Bruno.
36103         * modules/crypto/hmac-sha1: Fix memxor dependency.
36104
36105         * modules/crypto/gc: Moved from ../.
36106
36107 2007-04-02  Eric Blake  <ebb9@byu.net>
36108
36109         * lib/ldexpl.c (includes): Avoid libm.
36110
36111         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
36112
36113 2007-04-02  Bruno Haible  <bruno@clisp.org>
36114
36115         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
36116         on IRIX.
36117
36118 2007-04-02  Bruno Haible  <bruno@clisp.org>
36119
36120         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
36121         x86 or x86_64 platforms running MacOS X.
36122         Reported by Ryan Schmidt <@ryandesign.com>.
36123
36124 2007-04-02  Bruno Haible  <bruno@clisp.org>
36125
36126         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
36127         i386.
36128
36129 2007-04-01  Simon Josefsson  <simon@josefsson.org>
36130
36131         * modules/crypto/arcfour: Moved from ../.
36132         * modules/crypto/arcfour-tests: Moved from ../.
36133         * modules/crypto/arctwo: Moved from ../.
36134         * modules/crypto/arctwo-tests: Moved from ../.
36135         * modules/crypto/des: Moved from ../.
36136         * modules/crypto/des-tests: Moved from ../.
36137         * modules/crypto/gc-arcfour: Moved from ../.
36138         * modules/crypto/gc-arcfour-tests: Moved from ../.
36139         * modules/crypto/gc-arctwo: Moved from ../.
36140         * modules/crypto/gc-arctwo-tests: Moved from ../.
36141         * modules/crypto/gc-des: Moved from ../.
36142         * modules/crypto/gc-des-tests: Moved from ../.
36143         * modules/crypto/gc-hmac-md5: Moved from ../.
36144         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
36145         * modules/crypto/gc-hmac-sha1: Moved from ../.
36146         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
36147         * modules/crypto/gc-md2: Moved from ../.
36148         * modules/crypto/gc-md2-tests: Moved from ../.
36149         * modules/crypto/gc-md4: Moved from ../.
36150         * modules/crypto/gc-md4-tests: Moved from ../.
36151         * modules/crypto/gc-md5: Moved from ../.
36152         * modules/crypto/gc-md5-tests: Moved from ../.
36153         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
36154         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
36155         * modules/crypto/gc-random: Moved from ../.
36156         * modules/crypto/gc-rijndael: Moved from ../.
36157         * modules/crypto/gc-rijndael-tests: Moved from ../.
36158         * modules/crypto/gc-sha1: Moved from ../.
36159         * modules/crypto/gc-sha1-tests: Moved from ../.
36160         * modules/crypto/gc-tests: Moved from ../.
36161         * modules/crypto/hmac-md5: Moved from ../.
36162         * modules/crypto/hmac-md5-tests: Moved from ../.
36163         * modules/crypto/hmac-sha1: Moved from ../.
36164         * modules/crypto/hmac-sha1-tests: Moved from ../.
36165         * modules/crypto/md2: Moved from ../.
36166         * modules/crypto/md2-tests: Moved from ../.
36167         * modules/crypto/md4: Moved from ../.
36168         * modules/crypto/md4-tests: Moved from ../.
36169         * modules/crypto/md5: Moved from ../.
36170         * modules/crypto/md5-tests: Moved from ../.
36171         * modules/crypto/memxor: Moved from ../.
36172         * modules/crypto/rijndael: Moved from ../.
36173         * modules/crypto/rijndael-tests: Moved from ../.
36174         * modules/crypto/sha1: Moved from ../.
36175
36176 2007-03-30  James Youngman  <jay@gnu.org>
36177
36178         * tests/test-stat-time.c (prepare_test): use chmod() rather than
36179         rename() to change the ctime of a file (because ctime is unaffected
36180         by rename on jfs2 on AIX 5.1).
36181         (main): Start by doing cleanup, in case a previous run failed leaving
36182         test files behind.
36183
36184 2007-03-31  Bruno Haible  <bruno@clisp.org>
36185
36186         Support old proprietary implementations of iconv.
36187         * modules/iconv_open: New file.
36188         * lib/iconv_.h: New file.
36189         * m4/iconv_h.m4: New file.
36190         * lib/iconv_open.c: New file.
36191         * lib/iconv_open-aix.gperf: New file.
36192         * lib/iconv_open-hpux.gperf: New file.
36193         * lib/iconv_open-irix.gperf: New file.
36194         * lib/iconv_open-osf.gperf: New file.
36195         * m4/iconv_open.m4: New file.
36196         * modules/linebreak (Depends-on): Add iconv_open.
36197         * modules/striconv (Depends-on): Likewise.
36198         * modules/striconveh (Depends-on): Likewise.
36199         * modules/unicodeio (Depends-on): Likewise.
36200         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
36201         (iconv_t)(-1).
36202         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
36203         conversion if cd is (iconv_t)(-1).
36204         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
36205         is not possible.
36206
36207 2007-03-31  Bruno Haible  <bruno@clisp.org>
36208
36209         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
36210         work on Solaris either. Protect also second use of "autodetect_jp".
36211
36212 2007-03-31  Bruno Haible  <bruno@clisp.org>
36213
36214         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
36215         the function is not present.
36216
36217 2007-03-31  Bruno Haible  <bruno@clisp.org>
36218
36219         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
36220         the function is not present.
36221
36222 2007-03-31  Bruno Haible  <bruno@clisp.org>
36223
36224         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
36225         a bug in HP-UX iconv_open().
36226
36227 2007-03-31  Bruno Haible  <bruno@clisp.org>
36228
36229         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
36230         (Mathematics <math.h>): New section, add fpieee.
36231         (Input/output <stdio.h>): Add fseterr.
36232         (Mathematics <math.h>): New section, add printf-frexp.
36233         (Container data structures): Add sublist.
36234         (Core language properties): Add fpucw, inline.
36235         (Functions for greatest-width integer types <inttypes.h>): Add
36236         imaxabs, imaxdiv, inttypes.
36237         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
36238         isnanl-nolibm, ldexp.
36239         (Mathematics <math.h>): New section, add printf-frexpl.
36240         (Support for systems lacking POSIX:2001): Add fprintf-posix,
36241         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
36242         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
36243         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
36244         (Unicode string functions): Add unistr/u*-mbtoucr.
36245         (Java): Add javacomp-script, javaexec-script.
36246         (C#): Add csharpcomp-script, csharpexec-script.
36247         (Support for building libraries and executables): Add havelib,
36248         relocatable-*.
36249         (Support for maintaining and releasing projects): Renamed from
36250         'Support for maintaining and release projects'. Add announce-gen.
36251
36252 2007-03-31  Bruno Haible  <bruno@clisp.org>
36253
36254         * README: Talk primarily about git.
36255         (git and CVS): Renamed from CVS.
36256         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
36257         gnulib is available through git.
36258         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
36259
36260 2007-03-30  Bruno Haible  <bruno@clisp.org>
36261
36262         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
36263         * lib/poll_.h: Likewise.
36264         * lib/stat_.h: Likewise.
36265         * lib/sys_time_.h: Likewise.
36266         * lib/sysexit_.h: Likewise.
36267         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
36268         * lib/stdbool_.h: Likewise.
36269         * lib/byteswap_.h: Add double-inclusion guard.
36270
36271 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
36272
36273         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
36274
36275 2007-03-30  Karl Berry  <karl@gnu.org>
36276
36277         * config/srclist-update: double space after USA in the license
36278         substitution, since that's how it's usually (?) written.
36279
36280 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
36281
36282         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
36283         reported by Bruno Haible.
36284
36285 2007-03-29  Bruno Haible  <bruno@clisp.org>
36286
36287         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
36288         a bug in AIX iconv().
36289
36290 2007-03-29  Bruno Haible  <bruno@clisp.org>
36291
36292         * modules/ldexpl-tests: New file.
36293         * tests/test-ldexpl.c: New file.
36294
36295 2007-03-29  Bruno Haible  <bruno@clisp.org>
36296
36297         * lib/ldexpl.c: Include fpucw.h.
36298         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
36299         multiplication.
36300         * modules/ldexpl (Depends-on): Add fpucw.
36301
36302 2007-03-29  Bruno Haible  <bruno@clisp.org>
36303
36304         * modules/ldexpl: New file.
36305         * m4/ldexpl.m4: New file.
36306         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
36307         set.
36308         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
36309         REPLACE_LDEXPL.
36310         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
36311         REPLACE_LDEXPL.
36312         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
36313         gl_FUNC_LDEXPL_WORKS.
36314         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
36315         * modules/mathl (Files): Remove lib/ldexpl.c.
36316         (Depends-on): Add ldexpl.
36317
36318 2007-03-29  Bruno Haible  <bruno@clisp.org>
36319
36320         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
36321
36322 2007-03-29  Bruno Haible  <bruno@clisp.org>
36323
36324         * tests/test-striconveh.c (main): Don't assume that a direct conversion
36325         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
36326         and possibly also HP-UX.
36327         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
36328         work on AIX, IRIX, HP-UX, OSF/1.
36329         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
36330         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
36331         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
36332         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
36333         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
36334         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
36335
36336 2007-03-29  Bruno Haible  <bruno@clisp.org>
36337
36338         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
36339
36340 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
36341
36342         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
36343         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
36344
36345 2007-03-29  Eric Blake  <ebb9@byu.net>
36346
36347         * lib/acl-internal.h: Remove redundant include.
36348         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
36349         Cygwin when a file is locked.
36350
36351 2007-03-29  Bruno Haible  <bruno@clisp.org>
36352
36353         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
36354         file.
36355         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
36356
36357 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
36358
36359         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
36360         try to remove a parent directory if the child couldn't be removed
36361         (except for the first rmdir, which could fail because the child
36362         doesn't exist).  Problem reported by Jeff Blaine in
36363         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
36364
36365 2007-03-28  Bruno Haible  <bruno@clisp.org>
36366
36367         * lib/striconveh.c (utf8conv_carefully): New function.
36368         (mem_cd_iconveh_internal): Invoke it.
36369
36370 2007-03-28  Bruno Haible  <bruno@clisp.org>
36371
36372         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
36373         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
36374         input.
36375         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
36376         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
36377         unistr/u8-uctomb.
36378
36379 2007-03-28  Bruno Haible  <bruno@clisp.org>
36380
36381         * modules/unistr/u8-mbtoucr: New file.
36382         * lib/unistr/u8-mbtoucr.c: New file.
36383         * modules/unistr/u16-mbtoucr: New file.
36384         * lib/unistr/u16-mbtoucr.c: New file.
36385         * modules/unistr/u16-mbtoucr: New file.
36386         * lib/unistr/u16-mbtoucr.c: New file.
36387         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
36388
36389 2007-03-27  Simon Josefsson  <simon@josefsson.org>
36390             Bruno Haible  <bruno@clisp.org>
36391
36392         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
36393         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
36394         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
36395
36396         * m4/stdio_h.m4: Add stubs for vasprintf too.
36397
36398         * modules/stdio: Support vasprintf in sed command.
36399
36400         * modules/vasprintf: Depend on stdio for prototypes.  Remove
36401         vasprintf.h.  Add stdio module indicator.
36402
36403         * lib/stdio_.h: Declare asprintf and vasprintf, based on
36404         vasprintf.h.
36405
36406         * lib/vasprintf.h: File removed.
36407
36408         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
36409         * lib/vasprintf.c: Ditto.
36410         * lib/xvasprintf.c: Ditto.
36411         * tests/test-vasprintf-posix.c: Ditto.
36412         * tests/test-vasprintf.c: Ditto.
36413
36414 2007-03-27  Bruno Haible  <bruno@clisp.org>
36415
36416         Make vasnprintf multithread-safe.
36417         * lib/vasnprintf.c (decimal_point_char): New function.
36418         (VASNPRINTF): Use it.
36419         Suggested by Simon Josefsson.
36420
36421 2007-03-27  Eric Blake  <ebb9@byu.net>
36422
36423         Support sub-second birthtime on cygwin.
36424         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
36425         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
36426         (get_stat_birthtime): Also work with st_birthtim.
36427
36428 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
36429
36430         * lib/stat-time.h (USE_BIRTHTIME): Remove.
36431         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
36432         (get_stat_birthtime_ns): Do not try to use "spare" fields.
36433         (get_stat_birthtime_ns): Simplify compile-time tests.
36434         (get_stat_birthtime): Change the API to look like
36435         get_stat_mtime etc., except return a negative tv_nsec on error.
36436         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
36437         Don't check for "spare" fields.
36438         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
36439         or for struct stat.st_birthtime, as these tests aren't used.
36440         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
36441
36442 2007-03-27  Bruno Haible  <bruno@clisp.org>
36443
36444         * lib/stat-time.h: Include <sys/stat.h>.
36445
36446 2007-03-27  James Youngman  <jay@gnu.org>
36447
36448         * lib/stat-time.h (get_stat_birthtime): New function for
36449           retrieving st_birthtime as provided by UFS2 (hence *BSD).
36450         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
36451           and its variants.
36452         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
36453         * modules/stat-time-test: New file.
36454         * tests/test-stat-time.c: New test, devised by Bruno Haible.
36455
36456 2007-03-26  Bruno Haible  <bruno@clisp.org>
36457
36458         Better support of signalling NaNs.
36459         * lib/atanl.c: Include isnanl.h.
36460         (atanl): Perform test for NaN at the beginning of the function and
36461         through a call to isnanl.
36462         * lib/cosl.c: Include isnanl.h.
36463         (cosl): Perform test for NaN at the beginning of the function and
36464         through a call to isnanl.
36465         * lib/ldexpl.c: Include isnanl.h.
36466         (ldexpl): Perform test for NaN through a call to isnanl.
36467         * lib/logl.c: Include isnanl.h.
36468         (logl): Perform test for NaN at the beginning of the function and
36469         through a call to isnanl.
36470         * lib/sinl.c: Include isnanl.h.
36471         (sinl): Perform test for NaN at the beginning of the function and
36472         through a call to isnanl.
36473         * lib/sqrtl.c: Include isnanl.h.
36474         (sqrtl): Perform test for NaN at the beginning of the function and
36475         through a call to isnanl.
36476         * lib/tanl.c: Include isnanl.h.
36477         (tanl): Perform test for NaN at the beginning of the function and
36478         through a call to isnanl.
36479         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
36480         * modules/mathl (Depends-on): Add isnanl.
36481
36482 2007-03-26  Eric Blake  <ebb9@byu.net>
36483
36484         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
36485         regression in logic sense of previous patch.
36486
36487 2007-03-26  Bruno Haible  <bruno@clisp.org>
36488
36489         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
36490         unportable shell command "if ! ...".
36491         Reported by Ralf Wildenhues.
36492
36493 2007-03-25  Bruno Haible  <bruno@clisp.org>
36494
36495         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
36496         <sysexits.h> file, and only add EX_CONFIG.
36497         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
36498         absolute file name and whether it is sufficient. Substitute also
36499         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
36500         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
36501         ABSOLUTE_SYSEXITS_H into sysexits.h.
36502
36503 2007-03-25  Bruno Haible  <bruno@clisp.org>
36504
36505         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
36506         hints is NULL.
36507
36508 2007-03-25  Bruno Haible  <bruno@clisp.org>
36509
36510         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
36511         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
36512
36513 2007-03-25  Bruno Haible  <bruno@clisp.org>
36514
36515         * lib/vasnprintf.c: Include langinfo.h.
36516         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
36517         multithread-safe.
36518         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
36519         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
36520         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36521         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36522         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36523         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36524         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36525         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
36526         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36527         Reported by Simon Josefsson.
36528
36529 2007-03-25  Bruno Haible  <bruno@clisp.org>
36530
36531         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
36532         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
36533         * modules/vasnprintf (Depends-on): Add stdint.
36534
36535 2007-03-25  Bruno Haible  <bruno@clisp.org>
36536
36537         * modules/fpieee: New file.
36538         * m4/fpieee.m4: New file.
36539         * modules/isnan-nolibm (Depends-on): Add fpieee.
36540         * modules/isnanl-nolibm (Depends-on): Add fpieee.
36541         * modules/isnanl (Depends-on): Add fpieee.
36542
36543 2007-03-25  Bruno Haible  <bruno@clisp.org>
36544
36545         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
36546
36547 2007-03-25  Bruno Haible  <bruno@clisp.org>
36548
36549         Avoid test failures on IRIX 6.5.
36550         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
36551         (main): Use it.
36552         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
36553         macros.
36554         (main): Use them.
36555
36556 2007-03-25  Bruno Haible  <bruno@clisp.org>
36557
36558         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
36559         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
36560         exists but doesn't work.
36561         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
36562         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
36563         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
36564         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
36565
36566 2007-03-25  Bruno Haible  <bruno@clisp.org>
36567
36568         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
36569         returns inf. Needed on IRIX 6.5.
36570
36571 2007-03-25  Bruno Haible  <bruno@clisp.org>
36572
36573         * tests/test-frexpl.c: Include isnanl-nolibm.h.
36574         (main): Use isnanl instead of x != x idiom.
36575         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
36576
36577         * tests/test-frexp.c: Include isnan.h.
36578         (main): Use isnan instead of x != x idiom.
36579         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
36580
36581 2007-03-25  Bruno Haible  <bruno@clisp.org>
36582
36583         * tests/test-frexp.c (NaN): New function/macro.
36584         (main): Use it instead of 0.0 / 0.0.
36585         * tests/test-isnan.c (NaN): New function/macro.
36586         (main): Use it instead of 0.0 / 0.0.
36587         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
36588         (test_function): Use it instead of 0.0 / 0.0.
36589         * tests/test-vasprintf-posix.c (NaN): New function/macro.
36590         (test_function): Use it instead of 0.0 / 0.0.
36591         * tests/test-snprintf-posix.h (NaN): New function/macro.
36592         (test_function): Use it instead of 0.0 / 0.0.
36593         * tests/test-sprintf-posix.h (NaN): New function/macro.
36594         (test_function): Use it instead of 0.0 / 0.0.
36595         * tests/test-fprintf-posix.h (NaN): New function/macro.
36596         (test_function): Use it instead of 0.0 / 0.0.
36597         * tests/test-printf-posix.h (NaN): New function/macro.
36598         (test_function): Use it instead of 0.0 / 0.0.
36599
36600         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
36601
36602 2007-03-25  Bruno Haible  <bruno@clisp.org>
36603
36604         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
36605
36606 2007-03-25  Bruno Haible  <bruno@clisp.org>
36607
36608         * lib/regexec.c (merge_state_with_log): Make static.
36609
36610 2007-03-25  Bruno Haible  <bruno@clisp.org>
36611
36612         * lib/trigl.c (kernel_rem_pio2): Make static.
36613
36614 2007-03-25  Bruno Haible  <bruno@clisp.org>
36615
36616         * lib/sincosl.c (sincosl_table): Make static.
36617
36618 2007-03-25  Bruno Haible  <bruno@clisp.org>
36619
36620         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
36621         if the compiler does not support C99.
36622
36623 2007-03-25  Bruno Haible  <bruno@clisp.org>
36624
36625         * modules/time (Makefile.am): Ensure all rule action lines start with a
36626         tab.
36627
36628 2007-03-24  Bruno Haible  <bruno@clisp.org>
36629
36630         * modules/tsearch-tests: New file.
36631         * tests/test-tsearch.sh: New file.
36632         * tests/test-tsearch.c: New file, mostly copied from glibc.
36633
36634         * modules/search-tests: New file.
36635         * tests/test-search.c: New file.
36636
36637         * modules/search: New file.
36638         * lib/search_.h: New file, incorporating lib/tsearch.h.
36639         * m4/search_h.m4: New file.
36640         * lib/tsearch.h: Remove file.
36641         * lib/tsearch.c: Include search.h instead of tsearch.h.
36642         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
36643         HAVE_TSEARCH.
36644         * modules/tsearch (Files): Remove lib/tsearch.h.
36645         (Depends-on): Add search.
36646         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
36647         (Include): Change tsearch.h into search.h.
36648
36649 2007-03-24  Bruno Haible  <bruno@clisp.org>
36650
36651         * modules/fpucw: New file.
36652         * lib/fpucw.h: New file.
36653         * lib/frexp.c: Include fpucw.h.
36654         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
36655         (FUNC): Use them.
36656         * lib/printf-frexp.c: Include fpucw.h.
36657         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
36658         (FUNC): Use them.
36659         * lib/vasnprintf.c: Include fpucw.h.
36660         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
36661         'long double' calculations.
36662         * tests/test-frexpl.c: Include fpucw.h.
36663         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
36664         * tests/test-printf-frexpl.c: Include fpucw.h.
36665         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
36666         * modules/frexpl (Depends-on): Add fpucw.
36667         * modules/printf-frexpl (Depends-on): Likewise.
36668         * modules/fprintf-posix (Depends-on): Likewise.
36669         * modules/snprintf-posix (Depends-on): Likewise.
36670         * modules/sprintf-posix (Depends-on): Likewise.
36671         * modules/vasnprintf-posix (Depends-on): Likewise.
36672         * modules/vasprintf-posix (Depends-on): Likewise.
36673         * modules/vfprintf-posix (Depends-on): Likewise.
36674         * modules/vsnprintf-posix (Depends-on): Likewise.
36675         * modules/vsprintf-posix (Depends-on): Likewise.
36676         * modules/frexpl-tests (Depends-on): Likewise.
36677         * modules/printf-frexpl-tests (Depends-on): Likewise.
36678
36679 2007-03-24  Bruno Haible  <bruno@clisp.org>
36680
36681         * lib/float+.h: New file.
36682         * lib/isnan.c: Include float+.h.
36683         (SIZE): New macro.
36684         (FUNC): Compare only SIZE bytes of the value.
36685         * lib/vasnprintf.c: Include float+.h.
36686         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
36687         SIZEOF_LDBL or SIZEOF_DBL bytes.
36688         * modules/isnan-nolibm (Files): Add lib/float+.h.
36689         * modules/isnanl-nolibm (Files): Add lib/float+.h.
36690         * modules/isnanl (Files): Add lib/float+.h.
36691         * modules/vasnprintf (Files): Add lib/float+.h.
36692
36693 2007-03-24  Bruno Haible  <bruno@clisp.org>
36694
36695         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
36696         include isnanl-nolibm.h.
36697
36698 2007-03-24  Bruno Haible  <bruno@clisp.org>
36699
36700         * tests/test-read-file.c (main): Don't produce spurious output for
36701         expected situations. Make the test fail if it encountered unexpected
36702         results.
36703
36704 2007-03-24  Bruno Haible  <bruno@clisp.org>
36705
36706         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
36707         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
36708
36709 2007-03-24  Bruno Haible  <bruno@clisp.org>
36710
36711         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
36712
36713 2007-03-24  Bruno Haible  <bruno@clisp.org>
36714
36715         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
36716         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
36717
36718         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
36719         * modules/utf8-ucs4: Turn into a symbolic link to module
36720         unistr/u8-mbtouc.
36721
36722         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
36723         utf8-ucs4-unsafe.
36724         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
36725         unistr/u8-mbtouc-unsafe.
36726
36727         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
36728         * modules/utf16-ucs4: Turn into a symbolic link to module
36729         unistr/u16-mbtouc.
36730
36731         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
36732         utf16-ucs4-unsafe.
36733         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
36734         unistr/u16-mbtouc-unsafe.
36735
36736         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
36737         * modules/ucs4-utf8: Turn into a symbolic link to module
36738         unistr/u8-ubtomb.
36739
36740         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
36741         * modules/ucs4-utf16: Turn into a symbolic link to module
36742         unistr/u16-ubtomb.
36743
36744 2007-03-24  Bruno Haible  <bruno@clisp.org>
36745
36746         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
36747         Enable the function only if HAVE_INLINE.
36748         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
36749         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
36750         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
36751         Enable the function only if HAVE_INLINE.
36752         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
36753         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
36754         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
36755         Enable the function only if HAVE_INLINE.
36756         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
36757         Enable the function only if HAVE_INLINE.
36758         * modules/utf8-ucs4: Update.
36759         * modules/utf8-ucs4-unsafe: Update.
36760         * modules/utf16-ucs4: Update.
36761         * modules/utf16-ucs4-unsafe: Update.
36762         * modules/ucs4-utf8: Update.
36763         * modules/ucs4-utf16: Update.
36764
36765 2007-03-24  Bruno Haible  <bruno@clisp.org>
36766
36767         * lib/utf8-ucs4.h: Remove file.
36768         * lib/utf8-ucs4-unsafe.h: Remove file.
36769         * lib/utf16-ucs4.h: Remove file.
36770         * lib/utf16-ucs4-unsafe.h: Remove file.
36771         * lib/ucs4-utf8.h: Remove file.
36772         * lib/ucs4-utf16.h: Remove file.
36773         * lib/unistr.h: Include their previous contents.
36774         * m4/utf-ucs4.m4: Remove file.
36775         * m4/ucs4-utf.m4: Remove file.
36776         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
36777         (Depends-on): Add unistr/base.
36778         (configure.ac): Remove gl_UTF_UCS4.
36779         (Makefile.am): Update.
36780         (Include): Change to unistr.h.
36781         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
36782         (Depends-on): Add unistr/base.
36783         (configure.ac): Remove gl_UTF_UCS4.
36784         (Makefile.am): Update.
36785         (Include): Change to unistr.h.
36786         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
36787         (Depends-on): Add unistr/base.
36788         (configure.ac): Remove gl_UTF_UCS4.
36789         (Makefile.am): Update.
36790         (Include): Change to unistr.h.
36791         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
36792         (Depends-on): Add unistr/base.
36793         (configure.ac): Remove gl_UTF_UCS4.
36794         (Makefile.am): Update.
36795         (Include): Change to unistr.h.
36796         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
36797         (Depends-on): Add unistr/base.
36798         (configure.ac): Remove gl_UCS4_UTF.
36799         (Makefile.am): Update.
36800         (Include): Change to unistr.h.
36801         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
36802         (Depends-on): Add unistr/base.
36803         (configure.ac): Remove gl_UCS4_UTF.
36804         (Makefile.am): Update.
36805         (Include): Change to unistr.h.
36806         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
36807         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
36808         utf8-ucs4-unsafe.h.
36809         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
36810         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
36811         utf16-ucs4-unsafe.h.
36812         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
36813         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
36814         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
36815         * lib/unistr/u8-strchr.c: Likewise.
36816         * lib/unistr/u8-strrchr.c: Likewise.
36817         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
36818         * lib/unistr/u16-strchr.c: Likewise.
36819         * lib/unistr/u16-strrchr.c: Likewise.
36820         * lib/striconveh.c: Update.
36821         * lib/linebreak.c: Update.
36822
36823 2007-03-24  Bruno Haible  <bruno@clisp.org>
36824
36825         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
36826         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
36827
36828 2007-03-22  Bruno Haible  <bruno@clisp.org>
36829
36830         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
36831
36832 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
36833
36834         * MODULES.html.sh (File system functions): New module write-any-file.
36835         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
36836         * m4/write-any-file.m4: New files.
36837
36838 2007-03-23  Eric Blake  <ebb9@byu.net>
36839
36840         * gnulib-tool: Rearrange space-tab sequences, since some editors
36841         like to eat them.
36842
36843 2007-03-23  Eric Blake  <ebb9@byu.net>
36844
36845         * lib/version-etc.c (version_etc_va): Update license wording to
36846         be more concise.  Recommended by Richard Stallman.
36847
36848 2007-03-22  Bruno Haible  <bruno@clisp.org>
36849
36850         * lib/poll.c (MSG_PEEK): New fallback definition.
36851
36852 2007-03-22  Bruno Haible  <bruno@clisp.org>
36853
36854         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
36855         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
36856         (main): Update.
36857         Fixes a compilation error on BeOS.
36858
36859 2007-03-22  Bruno Haible  <bruno@clisp.org>
36860
36861         * modules/frexpl-tests: New file.
36862         * tests/test-frexpl.c: New file.
36863
36864         * modules/frexpl: New file.
36865         * m4/frexpl.m4: New file.
36866         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
36867         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
36868         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
36869         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
36870         (Depends-on): Add frexpl. Remove isnanl-nolibm.
36871         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
36872
36873 2007-03-22  Bruno Haible  <bruno@clisp.org>
36874
36875         * lib/frexpl.c: Share code with lib/frexp.c.
36876         * modules/mathl (Files): Add lib/frexp.c.
36877         (Depends-on): Add isnanl-nolibm.
36878
36879 2007-03-22  Bruno Haible  <bruno@clisp.org>
36880
36881         * modules/printf-frexp (Files): Add m4/frexp.m4.
36882         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
36883         only if the found frexp function actually works.
36884
36885 2007-03-22  Bruno Haible  <bruno@clisp.org>
36886
36887         * lib/frexp.c: Remove older implementation that uses divisions.
36888
36889 2007-03-21  Bruno Haible  <bruno@clisp.org>
36890
36891         * modules/frexp-tests: New file.
36892         * tests/test-frexp.c: New file.
36893
36894         * modules/frexp: New file.
36895         * lib/frexp.c: New file.
36896         * m4/frexp.m4: New file.
36897         * lib/math_.h (frexp): New declaration.
36898         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
36899         REPLACE_FREXP.
36900         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
36901
36902 2007-03-21  Bruno Haible  <bruno@clisp.org>
36903
36904         * modules/isnanl-tests: New file.
36905         * tests/test-isnanl.c: New file.
36906
36907         * modules/isnanl: New file.
36908         * lib/isnanl.h: New file.
36909         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
36910         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
36911         gl_FUNC_ISNANL_WORKS.
36912         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
36913         New macros.
36914
36915 2007-03-21  Bruno Haible  <bruno@clisp.org>
36916
36917         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
36918         lib/isnanl.h.
36919         (Include): Update.
36920         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
36921         * lib/vasnprintf.c: Update.
36922         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
36923         tests/test-isnanl.h, remove tests/test-isnanl.c.
36924         (Makefile.am): Update.
36925         * tests/test-isnanl-nolibm.c: New file.
36926         * tests/test-isnanl.h: New file.
36927         * tests/test-isnanl.c: Remove file.
36928
36929 2007-03-21  Jim Meyering  <jim@meyering.net>
36930
36931         When trying to open ".", treat ESTALE like EACCES.
36932         * lib/savewd.c (savewd_save): Resort to forking not just upon
36933         failure with EACCES, but also when errno is ESTALE.
36934
36935 2007-03-20  Bruno Haible  <bruno@clisp.org>
36936
36937         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
36938         Needed on AIX 5.1. Reported by Matthew Woehlke.
36939
36940 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
36941
36942         Suggestions by Bruno Haible:
36943         * lib/acl-internal.h: Include "gettext.h" rather than rolling
36944         our own.
36945         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
36946         * modules/acl (Depends-on): Add gettext.
36947
36948 2007-03-19  Bruno Haible  <bruno@clisp.org>
36949
36950         * modules/iconvme: Remove file.
36951         * lib/iconvme.h: Remove file.
36952         * lib/iconvme.c: Remove file.
36953         * m4/iconvme.m4: Remove file.
36954
36955 2007-03-19  Bruno Haible  <bruno@clisp.org>
36956
36957         * doc/relocatable-maint.texi: Break long shell script line.
36958         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
36959
36960 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
36961
36962         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
36963         handle file_has_acl.
36964         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
36965         * lib/acl.c: Move header inclusions and related macro defns into
36966         lib/acl-internal.h.
36967         (S_ISLNK): Remove defn, since that's now done for us.
36968         (file_has_acl): Move to lib/file-has-acl.c.
36969         Call acl_trivial if available.  This is the crucial part of the fix.
36970         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
36971         shared within the library.  Rewrite a bit, partly to make it compatible
36972         with the GNU coding style.
36973         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
36974         Remove unnecessary double-quotes.
36975         Don't test for acl_to_text; the build will catch that.
36976         Replace acl_entries if it doesn't exist and it is needed.
36977         Check for -lsec and acl_trivial (as used on Solaris 10).
36978         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
36979         lib/file-has-acl.c.
36980         (Depends-on): Add sys_stat, for S_ISLNK.
36981
36982 2007-03-19  Ben Pfaff  <blp@gnu.org>
36983
36984         * doc/gnulib.texi: Fix typos.
36985         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
36986
36987 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
36988
36989         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
36990         If size is zero here, buf must be zero.
36991
36992 2007-03-19  Simon Josefsson  <simon@josefsson.org>
36993
36994         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
36995         <bruno@clisp.org>.
36996
36997 2007-03-18  Bruno Haible  <bruno@clisp.org>
36998
36999         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
37000         Suggested by Eric Blake.
37001
37002 2007-03-18  Ben Pfaff  <blp@gnu.org>
37003
37004         * doc/relocatable.texi: Recommend using as prefix a directory
37005         that does not exist and will never be created.  Based on
37006         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
37007         and others.
37008
37009 2007-03-17  Bruno Haible  <bruno@clisp.org>
37010
37011         * lib/fchownat.c: Include lchown.h.
37012
37013 2007-03-17  Bruno Haible  <bruno@clisp.org>
37014
37015         Fix endless loop when the given allocated size was > INT_MAX.
37016         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
37017         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
37018         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
37019         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
37020         * lib/sprintf.c (sprintf): Likewise.
37021
37022 2007-03-17  Bruno Haible  <bruno@clisp.org>
37023
37024         * tests/test-argp-2.sh (func_compare): Output a context diff.
37025
37026 2007-03-17  Bruno Haible  <bruno@clisp.org>
37027
37028         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
37029         locale's decimal-point character.
37030
37031 2007-03-17  Bruno Haible  <bruno@clisp.org>
37032
37033         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
37034         before comparing it. Needed because on some platforms (e.g. x86) a
37035         'long double' occupies less bytes than sizeof (long double).
37036
37037 2007-03-17  Bruno Haible  <bruno@clisp.org>
37038
37039         * tests/test-crc.c (main): Make printf statements 64-bit clean.
37040         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
37041         * tests/test-getaddrinfo.c (simple): Likewise.
37042         * tests/test-read-file.c (main): Likewise.
37043
37044 2007-03-17  Bruno Haible  <bruno@clisp.org>
37045
37046         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
37047
37048 2007-03-17  Bruno Haible  <bruno@clisp.org>
37049
37050         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
37051         unused variable.
37052
37053 2007-03-17  Bruno Haible  <bruno@clisp.org>
37054
37055         * tests/test-c-strcasecmp.c: Include c-strcase.h.
37056         * tests/test-c-strncasecmp.c: Likewise.
37057
37058 2007-03-17  Bruno Haible  <bruno@clisp.org>
37059
37060         * modules/stdlib (Depends-on): Add unistd.
37061         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
37062         Needed for MacOS X 10.3.
37063
37064 2007-03-17  Bruno Haible  <bruno@clisp.org>
37065
37066         * lib/unistr/u-strdup.h: Include <stdlib.h>.
37067
37068 2007-03-17  Bruno Haible  <bruno@clisp.org>
37069
37070         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
37071
37072 2007-03-17  Bruno Haible  <bruno@clisp.org>
37073
37074         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
37075         to reflect files copied from gnulib (with or without modifications).
37076         Suggested by Jim Meyering.
37077
37078 2007-03-17  Eric Blake  <ebb9@byu.net>
37079
37080         * NEWS: Document stdlib change from 2007-02-18.
37081
37082 2007-03-17  Jim Meyering  <jim@meyering.net>
37083
37084         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
37085         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
37086         someone uses a name containing shell meta-characters.
37087         Reported by Alfred M. Szmidt.
37088
37089         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
37090
37091 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
37092
37093         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
37094         and copy gettext configuration files only if configure.ac contains
37095         a use of AM_GNU_GETTEXT_VERSION.
37096
37097 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
37098
37099         * build-aux/bootstrap (gnulib_name): New variable.
37100         (gnulib_tool_options): Use it.
37101
37102 2007-03-13  Simon Josefsson  <simon@josefsson.org>
37103
37104         * tests/test-des.c: Use new namespace.
37105
37106 2007-03-15  Bruno Haible  <bruno@clisp.org>
37107
37108         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
37109         Reported by James Youngman <jay@gnu.org>.
37110
37111 2007-03-15  Bruno Haible  <bruno@clisp.org>
37112
37113         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
37114         declared prototype. Needed with cc on OSF/1 5.1.
37115
37116 2007-03-15  Bruno Haible  <bruno@clisp.org>
37117
37118         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
37119         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
37120         (struct gl_list_implementation): Add dispose_fn argument to the
37121         'create_empty', 'create' methods.
37122         (struct gl_list_impl_base): Add field 'dispose_fn'.
37123         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
37124         argument.
37125         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
37126         dispose_fn argument.
37127         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
37128         dispose_fn on the dropped values.
37129         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
37130         dispose_fn argument.
37131         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
37132         dropped values.
37133         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
37134         (gl_tree_remove_node): Call dispose_fn on the dropped value.
37135         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
37136         (gl_tree_remove_node): Call dispose_fn on the dropped value.
37137         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
37138         argument.
37139         (gl_tree_list_free): Call dispose_fn on the dropped values.
37140         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
37141         the dropped values.
37142         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
37143         Add dispose_fn argument.
37144         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
37145         Call dispose_fn on the dropped values.
37146         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
37147         Add dispose_fn argument.
37148         (gl_sublist_create): Initialize the 'dispose_fn' field.
37149         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
37150         * tests/test-array_list.c (main): Update.
37151         * tests/test-carray_list.c (main): Update.
37152         * tests/test-avltree_list.c (main): Update.
37153         * tests/test-rbtree_list.c (main): Update.
37154         * tests/test-avltreehash_list.c (main): Update.
37155         * tests/test-rbtreehash_list.c (main): Update.
37156         * tests/test-linked_list.c (main): Update.
37157         * tests/test-linkedhash_list.c (main): Update.
37158         * tests/test-array_oset.c (main): Update.
37159
37160 2007-03-15  Bruno Haible  <bruno@clisp.org>
37161
37162         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
37163         (gl_oset_create_empty): Add dispose_fn argument.
37164         (struct gl_oset_implementation): Add dispose_fn argument to
37165         'create_empty' method.
37166         (struct gl_oset_impl_base): Add dispose_fn field.
37167         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
37168         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
37169         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
37170         values.
37171         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
37172         (gl_tree_oset_free): Call dispose_fn on the dropped values.
37173         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
37174         dropped value.
37175         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
37176         dropped value.
37177         * tests/test-array_oset.c (main): Update.
37178         * tests/test-avltree_oset.c (main): Update.
37179         * tests/test-rbtree_oset.c (main): Update.
37180         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
37181
37182 2007-03-13  Bruno Haible  <bruno@clisp.org>
37183
37184         * tests/test-stdbool.c (i): Update after last patch.
37185
37186 2007-03-12  Bruno Haible  <bruno@clisp.org>
37187
37188         * lib/quotearg.c: Include <wctype.h> early, before the definition of
37189         the iswprint macro. Needed on Solaris 2.5.1.
37190
37191 2007-03-12  Bruno Haible  <bruno@clisp.org>
37192
37193         * tests/test-printf-frexp.c (main): Declare x as volatile.
37194
37195 2007-03-12  Simon Josefsson  <simon@josefsson.org>
37196
37197         * doc/gnulib.texi (Build robot for gnulib): New section.
37198
37199 2007-03-12  Jim Meyering  <jim@meyering.net>
37200
37201         * build-aux/bootstrap: New file.
37202         * build-aux/bootstrap.conf: New file, from coreutils.
37203
37204 2007-03-11  Bruno Haible  <bruno@clisp.org>
37205
37206         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
37207
37208 2007-03-12  Simon Josefsson  <simon@josefsson.org>
37209
37210         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
37211         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
37212         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
37213
37214 2007-03-11  Bruno Haible  <bruno@clisp.org>
37215
37216         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
37217         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
37218
37219 2007-03-11  Bruno Haible  <bruno@clisp.org>
37220
37221         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
37222         formula. Needed for SunPRO C 5.0.
37223
37224 2007-03-11  Bruno Haible  <bruno@clisp.org>
37225
37226         * modules/long-options (Depends-on): Add getopt.
37227
37228 2007-03-11  Bruno Haible  <bruno@clisp.org>
37229
37230         * modules/modechange (Depends-on): Add stdbool.
37231
37232 2007-03-11  Bruno Haible  <bruno@clisp.org>
37233
37234         * modules/i-ring (Depends-on): Add stdbool.
37235
37236 2007-03-11  Bruno Haible  <bruno@clisp.org>
37237
37238         * modules/gc-des (Depends-on): Add stdbool.
37239
37240 2007-03-11  Bruno Haible  <bruno@clisp.org>
37241
37242         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
37243
37244 2007-03-11  Bruno Haible  <bruno@clisp.org>
37245
37246         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
37247
37248 2007-03-11  Bruno Haible  <bruno@clisp.org>
37249
37250         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
37251
37252 2007-03-11  Bruno Haible  <bruno@clisp.org>
37253
37254         * lib/vasnprintf.c (sprintf): Undefine.
37255
37256 2007-03-11  Bruno Haible  <bruno@clisp.org>
37257
37258         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
37259         initializers in SunPRO C and Compaq C compilers.
37260
37261 2007-03-11  Bruno Haible  <bruno@clisp.org>
37262
37263         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
37264         decrementing code ANSI C compliant.
37265
37266 2007-03-11  Bruno Haible  <bruno@clisp.org>
37267
37268         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
37269         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
37270
37271 2007-03-11  Bruno Haible  <bruno@clisp.org>
37272
37273         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
37274         <stdbool.h> substitute doesn't pass.
37275
37276 2007-03-11  Bruno Haible  <bruno@clisp.org>
37277
37278         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
37279
37280 2007-03-11  Bruno Haible  <bruno@clisp.org>
37281
37282         * gnulib-tool (func_create_megatestdir): Create also an autobuild
37283         script, for submission to autobuild.josefsson.org.
37284
37285 2007-03-10  Bruno Haible  <bruno@clisp.org>
37286
37287         * modules/canonicalize-lgpl-tests: New file.
37288         * tests/test-canonicalize-lgpl.sh: New file.
37289         * tests/test-canonicalize-lgpl.c: New file.
37290
37291         * modules/c-strcase-tests: New file.
37292         * tests/test-c-strcase.sh: New file.
37293         * tests/test-c-strcasecmp.c: New file.
37294         * tests/test-c-strncasecmp.c: New file.
37295
37296         * modules/atexit-tests: New file.
37297         * tests/test-atexit.sh: New file.
37298         * tests/test-atexit.c: New file.
37299
37300 2007-03-10  Bruno Haible  <bruno@clisp.org>
37301
37302         * tests/test-binary-io.sh: Use temporary filenames that are not so
37303         likely to clash with those of other tests (in a parallel make).
37304         * tests/test-binary-io.c: Likewise.
37305
37306 2007-03-10  Bruno Haible  <bruno@clisp.org>
37307
37308         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
37309         fallback; use #error instead.
37310         Suggested by Simon Josefsson.
37311
37312 2007-03-10  Bruno Haible  <bruno@clisp.org>
37313
37314         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
37315         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
37316         first and the last.
37317
37318 2007-03-10  Bruno Haible  <bruno@clisp.org>
37319
37320         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
37321
37322 2007-03-10  Bruno Haible  <bruno@clisp.org>
37323
37324         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
37325         "make distcheck".
37326         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
37327         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
37328         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
37329
37330 2007-03-10  Bruno Haible  <bruno@clisp.org>
37331
37332         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
37333         variable.
37334         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
37335         variable.
37336
37337 2007-03-09  Eric Blake  <ebb9@byu.net>
37338         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
37339
37340         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
37341         types are not being provided by gnulib.
37342         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
37343         types are supported.
37344
37345 2007-03-10  Bruno Haible  <bruno@clisp.org>
37346
37347         * lib/stdio_.h (__attribute__): New macro.
37348         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
37349         vsprintf): Specify __attribute__ __format__ for GCC.
37350         Suggested by Eric Blake.
37351
37352 2007-03-09  Bruno Haible  <bruno@clisp.org>
37353
37354         * modules/printf-posix-tests: New file.
37355         * tests/test-printf-posix.sh: New file.
37356         * tests/test-printf-posix.c: New file.
37357
37358         * modules/printf-posix: New file.
37359         * lib/printf.c: New file.
37360         * m4/printf-posix-rpl.m4: New file.
37361         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
37362         REPLACE_PRINTF.
37363         * lib/stdio_.h (printf): New declaration.
37364         (format, __format__, ____printf____, ____scanf____, ____strftime____,
37365         ____strfmon____): New macros.
37366         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
37367         REPLACE_PRINTF.
37368
37369 2007-03-09  Bruno Haible  <bruno@clisp.org>
37370
37371         * tests/test-vasnprintf-posix2.sh: New file.
37372         * tests/test-vasnprintf-posix2.c: New file.
37373         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
37374         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
37375         (Makefile.am): Activate test-vasnprintf-posix2.sh.
37376
37377         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
37378         a locale dependent decimal point, rather than always '.'.
37379
37380 2007-03-09  Eric Blake  <ebb9@byu.net>
37381
37382         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
37383         spite of platforms like Tandem/NSK that define it to -1.
37384
37385 2007-03-08  Bruno Haible  <bruno@clisp.org>
37386
37387         * modules/vprintf-posix-tests: New file.
37388         * tests/test-vprintf-posix.sh: New file.
37389         * tests/test-vprintf-posix.c: New file.
37390         * tests/test-printf-posix.h: New file.
37391
37392         * modules/vprintf-posix: New file.
37393         * lib/vprintf.c: New file.
37394         * m4/vprintf-posix.m4: New file.
37395         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
37396         REPLACE_VPRINTF.
37397         * lib/stdio_.h (vprintf): New declaration.
37398         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
37399         REPLACE_VPRINTF.
37400
37401 2007-03-08  Bruno Haible  <bruno@clisp.org>
37402
37403         * modules/fprintf-posix-tests: New file.
37404         * tests/test-fprintf-posix.sh: New file.
37405         * tests/test-fprintf-posix.c: New file.
37406
37407         * modules/fprintf-posix: New file.
37408         * lib/fprintf.c: New file.
37409         * m4/fprintf-posix.m4: New file.
37410         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
37411         REPLACE_FPRINTF.
37412         * lib/stdio_.h (fprintf): New declaration.
37413         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
37414         REPLACE_FPRINTF.
37415
37416 2007-03-08  Bruno Haible  <bruno@clisp.org>
37417
37418         * modules/vfprintf-posix-tests: New file.
37419         * tests/test-vfprintf-posix.sh: New file.
37420         * tests/test-vfprintf-posix.c: New file.
37421         * tests/test-fprintf-posix.h: New file.
37422         * tests/test-fprintf-posix.out: New file.
37423
37424         * modules/vfprintf-posix: New file.
37425         * lib/vfprintf.c: New file.
37426         * m4/vfprintf-posix.m4: New file.
37427         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
37428         REPLACE_VFPRINTF.
37429         * lib/stdio_.h (vfprintf): New declaration.
37430         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
37431         REPLACE_VFPRINTF.
37432
37433 2007-03-08  Bruno Haible  <bruno@clisp.org>
37434
37435         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
37436
37437 2007-03-08  Bruno Haible  <bruno@clisp.org>
37438
37439         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
37440         instead of 'expr' invocations.
37441         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37442         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37443         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37444         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37445         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37446         Suggested by Paul Eggert.
37447
37448 2007-03-08  Bruno Haible  <bruno@clisp.org>
37449
37450         * modules/fseterr-tests: New file.
37451         * tests/test-fseterr.c: New file.
37452
37453         * modules/fseterr: New file.
37454         * lib/fseterr.h: New file.
37455         * lib/fseterr.c: New file.
37456
37457 2007-03-08  Bruno Haible  <bruno@clisp.org>
37458
37459         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
37460         * lib/getopt_.h: Likewise.
37461         * lib/mbswidth.h: Likewise.
37462         * lib/setenv.h: Likewise.
37463         * lib/vasnprintf.h: Likewise.
37464         * lib/vasprintf.h: Likewise.
37465         * lib/verror.h: Likewise.
37466         * lib/xsetenv.h: Likewise.
37467         * lib/xvasprintf.h: Likewise.
37468
37469 2007-03-08  Jim Meyering  <jim@meyering.net>
37470
37471         * users.txt: Add parted.
37472
37473         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
37474
37475 2007-03-07  Bruno Haible  <bruno@clisp.org>
37476
37477         * m4/printf.m4: Make the shell script snippets copy&pastable.
37478
37479 2007-03-02  Bruno Haible  <bruno@clisp.org>
37480
37481         * lib/netinet_in_.h: New file.
37482         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
37483         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
37484         * modules/netinet_in (Files): Add lib/netinet_in_.h.
37485         (Depends-on): Add absolute-header.
37486         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
37487         into netinet/in.h.
37488
37489 2007-03-03  Bruno Haible  <bruno@clisp.org>
37490
37491         * lib/sys_select_.h: New file.
37492         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
37493         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
37494         * modules/sys_select (Files): Add lib/sys_select_.h.
37495         (Depends-on): Add absolute-header.
37496         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
37497         into sys/select.h.
37498
37499 2007-03-02  Bruno Haible  <bruno@clisp.org>
37500
37501         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
37502         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
37503         values.
37504         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
37505         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
37506         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
37507         * modules/sys_socket (Depends-on): Add absolute-header.
37508         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
37509         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
37510         (Include): Remove requirement of inclusion of <sys/types.h>.
37511
37512 2007-03-02  Bruno Haible  <bruno@clisp.org>
37513
37514         * lib/byteswap_.h (bswap_32): Fix formula.
37515
37516 2007-03-06  Bruno Haible  <bruno@clisp.org>
37517
37518         * modules/sprintf-posix-tests: New file.
37519         * tests/test-sprintf-posix.c: New file.
37520
37521         * modules/sprintf-posix: New file.
37522         * lib/sprintf.c: New file.
37523         * m4/sprintf-posix.m4: New file.
37524         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
37525         REPLACE_SPRINTF.
37526         * lib/stdio_.h (sprintf): New declaration.
37527         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
37528         REPLACE_SPRINTF.
37529
37530 2007-03-06  Bruno Haible  <bruno@clisp.org>
37531
37532         * modules/vsprintf-posix-tests: New file.
37533         * tests/test-vsprintf-posix.c: New file.
37534         * tests/test-sprintf-posix.h: New file.
37535
37536         * modules/vsprintf-posix: New file.
37537         * lib/vsprintf.c: New file.
37538         * m4/vsprintf-posix.m4: New file.
37539         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
37540         REPLACE_VSPRINTF.
37541         * lib/stdio_.h (vsprintf): New declaration.
37542         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
37543         REPLACE_VSPRINTF.
37544
37545 2007-03-06  Bruno Haible  <bruno@clisp.org>
37546
37547         * modules/vsnprintf (Depend-on): Remove minmax.
37548
37549 2007-03-06  Bruno Haible  <bruno@clisp.org>
37550
37551         * modules/snprintf-posix-tests: New file.
37552         * tests/test-snprintf-posix.c: New file.
37553
37554         * modules/snprintf-posix: New file.
37555         * m4/snprintf-posix.m4: New file.
37556         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
37557         gl_FUNC_SNPRINTF.
37558         (gl_FUNC_SNPRINTF): Invoke it.
37559         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
37560         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
37561         is set.
37562         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
37563
37564 2007-03-06  Bruno Haible  <bruno@clisp.org>
37565
37566         * modules/vsnprintf-posix-tests: New file.
37567         * tests/test-vsnprintf-posix.c: New file.
37568         * tests/test-snprintf-posix.h: New file.
37569
37570         * modules/vsnprintf-posix: New file.
37571         * m4/vsnprintf-posix.m4: New file.
37572         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
37573         gl_FUNC_VSNPRINTF.
37574         (gl_FUNC_VSNPRINTF): Invoke it.
37575         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
37576         * lib/stdio_.h (vsnprintf): Define as a replacement if
37577         REPLACE_VSNPRINTF is set.
37578         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
37579
37580 2007-03-06  Bruno Haible  <bruno@clisp.org>
37581
37582         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
37583         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
37584
37585 2007-03-06  Bruno Haible  <bruno@clisp.org>
37586
37587         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
37588         (asinl): Declare also if HAVE_DECL_ASINL is set.
37589         (atanl): Declare also if HAVE_DECL_ATANL is set.
37590         (ceill): Declare also if HAVE_DECL_CEILL is set.
37591         (cosl): Declare also if HAVE_DECL_COSL is set.
37592         (expl): Declare also if HAVE_DECL_EXPL is set.
37593         (floorl): Declare also if HAVE_DECL_FLOORL is set.
37594         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
37595         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
37596         (logl): Declare also if HAVE_DECL_LOGL is set.
37597         (sinl): Declare also if HAVE_DECL_SINL is set.
37598         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
37599         (tanl): Declare also if HAVE_DECL_TANL is set.
37600         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
37601         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
37602         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
37603         declaration of frexpl, ldexpl.
37604         * modules/printf-frexpl (Depends-on): Add math.
37605         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
37606
37607 2007-03-05  Bruno Haible  <bruno@clisp.org>
37608
37609         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
37610         frexpl and ldexpl are declared.
37611         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
37612
37613 2007-03-05  Bruno Haible  <bruno@clisp.org>
37614
37615         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
37616         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
37617
37618 2007-03-05  Bruno Haible  <bruno@clisp.org>
37619
37620         * lib/stdio_.h: Include <stddef.h>.
37621
37622 2007-03-05  Bruno Haible  <bruno@clisp.org>
37623
37624         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
37625
37626 2007-03-05  Bruno Haible  <bruno@clisp.org>
37627
37628         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
37629         NetBSD 4, from Ralf Wildenhues.
37630
37631 2007-03-04  Bruno Haible  <bruno@clisp.org>
37632
37633         * lib/vasprintf.h: Update #if logic for the case when the functions
37634         exist but are overridden.
37635
37636 2007-03-04  Bruno Haible  <bruno@clisp.org>
37637
37638         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
37639         implementations: glibc-2.4 and MacOS X 10.3.
37640         * tests/test-vasnprintf-posix.c (test_function): Test also the case
37641         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
37642         * tests/test-vasprintf-posix.c (test_function): Likewise.
37643
37644 2007-03-04  Bruno Haible  <bruno@clisp.org>
37645
37646         * modules/vasprintf-posix-tests: New file.
37647         * tests/test-vasprintf-posix.c: New file.
37648
37649         * modules/vasprintf-posix: New file.
37650         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
37651         defined.
37652         * m4/vasprintf-posix.m4: New file.
37653         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
37654         gl_FUNC_VASPRINTF.
37655         (gl_FUNC_VASPRINTF): Invoke it.
37656         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
37657         here.
37658         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
37659
37660 2007-03-04  Bruno Haible  <bruno@clisp.org>
37661
37662         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
37663         REPLACE_GETTIMEOFDAY.
37664         * modules/sys_time (Makefile.am): Likewise.
37665         * m4/sys_time_h.m4: Likewise.
37666         * m4/gettimeofday.m4: Likewise.
37667
37668 2007-03-04  Bruno Haible  <bruno@clisp.org>
37669
37670         * modules/vasnprintf-posix-tests: New file.
37671         * tests/test-vasnprintf-posix.c: New file.
37672
37673         * modules/vasnprintf-posix: New file.
37674         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
37675         printf-frexpl.h.
37676         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
37677         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
37678         REPLACE_VASNPRINTF is defined.
37679         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
37680         gl_FUNC_VASNPRINTF.
37681         (gl_FUNC_VASNPRINTF): Invoke it.
37682         * m4/vasnprintf-posix.m4: New file.
37683         * m4/printf.m4: New file.
37684
37685 2007-03-04  Bruno Haible  <bruno@clisp.org>
37686
37687         Compile progreloc.c only if --enable-relocatable is specified.
37688         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
37689         if --enable-relocatable was specified.
37690         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
37691         lib_SOURCES.
37692
37693 2007-03-04  Jim Meyering  <jim@meyering.net>
37694
37695         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
37696         Use it consistently, rather than enumerating errno constants.
37697
37698 2007-03-04  Bruno Haible  <bruno@clisp.org>
37699
37700         * modules/xvasprintf-tests: New file.
37701         * tests/test-xvasprintf.c: New file.
37702
37703         * modules/vasprintf-tests: New file.
37704         * tests/test-vasprintf.c: New file.
37705
37706         * modules/vasnprintf-tests: New file.
37707         * tests/test-vasnprintf.c: New file.
37708
37709         * modules/vsnprintf-tests: New file.
37710         * tests/test-vsnprintf.c: New file.
37711
37712         * modules/snprintf-tests: New file.
37713         * tests/test-snprintf.c: New file.
37714
37715 2007-03-04  Bruno Haible  <bruno@clisp.org>
37716
37717         Compile relocatable.c only if --enable-relocatable is specified.
37718         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
37719         gl_RELOCATABLE_LIBRARY.
37720         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
37721         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
37722         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
37723         gl_RELOCATABLE_LIBRARY.
37724         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
37725         (Makefile.am): Remove lib_SOURCES.
37726         * modules/relocatable-lib-lgpl (configure.ac): Invoke
37727         gl_RELOCATABLE_LIBRARY.
37728         (Makefile.am): Remove lib_SOURCES.
37729         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
37730         always.
37731         * modules/relocatable-prog-wrapper (configure.ac): Invoke
37732         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
37733
37734 2007-03-04  Bruno Haible  <bruno@clisp.org>
37735
37736         * modules/argmatch-tests: New file.
37737         * tests/test-argmatch.c: New file.
37738
37739         * tests/test-allocsa.c (main): Halve the number of loop runs.
37740
37741         * modules/alloca-opt-tests: New file.
37742         * tests/test-alloca-opt.c: New file.
37743
37744 2007-03-04  Jim Meyering  <jim@meyering.net>
37745
37746         Work around difference between Linux ACLs and Solaris 10 ZFS.
37747         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
37748         for EINVAL.
37749
37750 2007-03-03  Bruno Haible  <bruno@clisp.org>
37751
37752         * modules/relocatable-prog (Depends-on): Add back progreloc's
37753         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
37754
37755 2007-03-03  Bruno Haible  <bruno@clisp.org>
37756
37757         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
37758         * modules/relocatable-lib: New file.
37759
37760 2007-03-03  Bruno Haible  <bruno@clisp.org>
37761
37762         * modules/relocatable-prog: Renamed from modules/relocatable.
37763         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
37764
37765 2007-03-03  Bruno Haible  <bruno@clisp.org>
37766
37767         * modules/relocatable-script (Files): Add doc/relocatable.texi,
37768         m4/relocatable-lib.m4.
37769         (Depends-on): Remove 'relocatable'.
37770         (configure.ac): Add gl_RELOCATABLE_NOP.
37771
37772 2007-03-03  Bruno Haible  <bruno@clisp.org>
37773
37774         * modules/relocatable-prog-wrapper: New file.
37775         * modules/relocatable (Depends-on): Add it. Remove all other
37776         dependencies except progname.
37777         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
37778
37779         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
37780         (gl_FUNC_STRERROR): Nop.
37781         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
37782
37783         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
37784         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
37785
37786         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
37787         (gl_FUNC_READLINK): Update.
37788
37789         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
37790
37791 2007-03-03  Bruno Haible  <bruno@clisp.org>
37792
37793         * lib/xreadlink.c: Include <unistd.h> unconditionally.
37794         * modules/xreadlink (Depends-on): Add unistd.
37795         * modules/xreadlink-with-size (Depends-on): Likewise.
37796
37797 2007-03-03  Bruno Haible  <bruno@clisp.org>
37798
37799         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
37800         extracted from gt_FUNC_SETENV.
37801         (gt_FUNC_SETENV): Remove macro.
37802         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
37803         remove gt_FUNC_SETENV.
37804
37805 2007-03-03  Bruno Haible  <bruno@clisp.org>
37806
37807         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
37808         ENABLE_RELOCATABLE here.
37809         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
37810
37811 2007-03-03  Bruno Haible  <bruno@clisp.org>
37812
37813         * modules/rbtreehash-list-tests (Depends-on): Add progname.
37814         * tests/test-rbtreehash_list.c: Include progname.h.
37815         (main): Call set_program_name.
37816
37817         * modules/rbtree-oset-tests (Depends-on): Add progname.
37818         * tests/test-rbtree_oset.c: Include progname.h.
37819         (main): Call set_program_name.
37820
37821         * modules/rbtree-list-tests (Depends-on): Add progname.
37822         * tests/test-rbtree_list.c: Include progname.h.
37823         (main): Call set_program_name.
37824
37825         * modules/linked-list-tests (Depends-on): Add progname.
37826         * tests/test-linked_list.c: Include progname.h.
37827         (main): Call set_program_name.
37828
37829 2007-03-03  Bruno Haible  <bruno@clisp.org>
37830
37831         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
37832         All uses of __restrict changed to _Restrict_.
37833         * lib/glob_.h (__restrict): Remove macro.
37834
37835 2007-03-02  Bruno Haible  <bruno@clisp.org>
37836
37837         * modules/gettext (configure.ac): Require gettext infrastructure
37838         from version 0.16.1.
37839
37840 2007-03-02  Bruno Haible  <bruno@clisp.org>
37841
37842         * modules/linkedhash-list-tests (Depends-on): Add progname.
37843         * tests/test-linkedhash_list.c: Include progname.h.
37844         (main): Call set_program_name.
37845
37846         * modules/carray-list-tests (Depends-on): Add progname.
37847         * tests/test-carray_list.c: Include progname.h.
37848         (main): Call set_program_name.
37849
37850         * modules/avltreehash-list-tests (Depends-on): Add progname.
37851         * tests/test-avltreehash_list.c: Include progname.h.
37852         (main): Call set_program_name.
37853
37854         * modules/avltree-oset-tests (Depends-on): Add progname.
37855         * tests/test-avltree_oset.c: Include progname.h.
37856         (main): Call set_program_name.
37857
37858         * modules/avltree-list-tests (Depends-on): Add progname.
37859         * tests/test-avltree_list.c: Include progname.h.
37860         (main): Call set_program_name.
37861
37862         * modules/array-oset-tests (Depends-on): Add progname.
37863         * tests/test-array_oset.c: Include progname.h.
37864         (main): Call set_program_name.
37865
37866         * modules/array-list-tests (Depends-on): Add progname.
37867         * tests/test-array_list.c: Include progname.h.
37868         (main): Call set_program_name.
37869
37870         * modules/argp-tests (Depends-on): Add progname.
37871         * tests/test-argp.c: Include argp.h first. Include progname.h.
37872         (main): Call set_program_name.
37873
37874 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
37875
37876         * doc/gnulib-tool.texi (Initial import): Reword description of
37877         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
37878         limited effect even if defined after the first system include.
37879
37880 2007-03-01  Bruno Haible  <bruno@clisp.org>
37881
37882         * build-aux/config.libpath: Update to libtool-1.5.22.
37883         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37884
37885 2007-03-01  Bruno Haible  <bruno@clisp.org>
37886
37887         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
37888         foo_CFLAGS.
37889         Reported by Ralf Wildenhues.
37890
37891 2007-03-01  Bruno Haible  <bruno@clisp.org>
37892
37893         * build-aux/install-reloc: Remove object files left over by some
37894         compilers.
37895         Reported by Ralf Wildenhues.
37896
37897 2007-03-01  Bruno Haible  <bruno@clisp.org>
37898
37899         * build-aux/install-reloc: Break long lines.
37900
37901 2007-03-01  Bruno Haible  <bruno@clisp.org>
37902
37903         * doc/relocatable.texi: Document that it may not work on OpenBSD.
37904         Reported by Ralf Wildenhues.
37905
37906 2007-03-01  Bruno Haible  <bruno@clisp.org>
37907
37908         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
37909         include ordering constraints.
37910
37911 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
37912
37913         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
37914         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
37915         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
37916         as another example.
37917         * lib/time_.h: Fix misspelling.
37918         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
37919         Require gl_HEADER_TIME_H_DEFAULTS.
37920         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
37921         * m4/time_r.m4 (gl_TIME_R): Likewise.
37922         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
37923
37924 2007-03-01  Bruno Haible  <bruno@clisp.org>
37925
37926         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
37927         * m4/utimens.m4 (gl_UTIMENS): Likewise.
37928
37929 2007-03-01  Jim Meyering  <jim@meyering.net>
37930
37931         * modules/xreadlink (Maintainer): Add my name.
37932         * modules/xreadlink-with-size (Depends-on): Alphabetize.
37933
37934 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
37935             Bruno Haible  <bruno@clisp.org>
37936
37937         * build-aux/install-reloc: Compile also c-ctype.c.
37938         * build-aux/relocatable.sh.in: New file.
37939         * doc/relocatable.texi: New file.
37940         * doc/relocatable-maint.texi: New file.
37941         * doc/gnulib.texi: Include relocatable-maint.texi.
37942         * lib/progreloc.c: Include unistd.h unconditionally.
37943         * lib/relocwrapper.c: Include unistd.h unconditionally.
37944         Include c-ctype.h.
37945         (add_dotbin): Use c_tolower.
37946         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
37947         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
37948         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
37949         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
37950         to m4/relocatable-lib.m4.
37951         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
37952         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
37953         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
37954         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
37955         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
37956         * modules/relocatable: New file.
37957         * modules/relocatable-lib: New file.
37958         * modules/relocatable-script: New file.
37959
37960 2007-02-28  Bruno Haible  <bruno@clisp.org>
37961
37962         Import --enable-relocatable infrastructure.
37963         * build-aux/config.libpath: New file, from GNU gettext.
37964         * build-aux/install-reloc: New file, from GNU gettext.
37965         * build-aux/reloc-ldflags: New file, from GNU gettext.
37966         * lib/relocatable.h: New file, from GNU gettext.
37967         * lib/relocatable.c: New file, from GNU gettext.
37968         * lib/relocwrapper.c: New file, from GNU gettext.
37969         * m4/relocatable.m4: New file, from GNU gettext.
37970
37971 2007-02-28  Bruno Haible  <bruno@clisp.org>
37972
37973         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
37974
37975         * modules/xreadlink: New file, from GNU gettext with modifications.
37976         * lib/xreadlink.c: New file, from GNU gettext.
37977         * lib/xreadlink.h: Add comments.
37978         (xreadlink): New declaration.
37979
37980         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
37981         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
37982         lib/xreadlink-with-size.c.
37983         (configure.ac): Remove gl_XREADLINK invocation.
37984         (Makefile.am): Augment lib_SOURCES.
37985         * m4/xreadlink.m4: Remove file.
37986         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
37987         (xreadlink_with_size): Renamed from xreadink.
37988         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
37989         * modules/canonicalize (Depends-on): Replace xreadlink with
37990         xreadlink-with-size.
37991         * lib/canonicalize.c (canonicalize_filename_mode): Update.
37992
37993 2007-02-25  Jim Meyering  <jim@meyering.net>
37994
37995         * build-aux/announce-gen: When complaining about excess arguments,
37996         list them.
37997
37998 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
37999
38000         * README: Document signed integer overflow situation more
38001         accurately.
38002
38003 2007-02-25  Bruno Haible  <bruno@clisp.org>
38004
38005         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
38006         'a' or 'A' conversion.
38007
38008 2007-02-25  Bruno Haible  <bruno@clisp.org>
38009
38010         * modules/filename: Renamed from modules/pathname.
38011         (Files): Replace lib/pathname.h with lib/filename.h. Replace
38012         lib/concatpath.c with lib/concat-filename.c.
38013         (Makefile.am): Update.
38014         (Include): Replace pathname.h with filename.h.
38015         * lib/filename.h: Renamed from lib/pathname.h.
38016         (concatenated_filename): Renamed from concatenated_pathname.
38017         * lib/concat-filename.c: Renamed from lib/concatpath.c.
38018         (concatenated_filename): Renamed from concatenated_pathname.
38019         * lib/findprog.c: Include filename.h instead of pathname.h.
38020         (find_in_path): Update.
38021         * lib/javacomp.c: Include filename.h instead of pathname.h.
38022         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
38023         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
38024         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
38025         is_oldgcj_14_13_usable, is_javac_usable): Update.
38026         * lib/javaexec.c: Include filename.h instead of pathname.h.
38027         (execute_java_class): Update.
38028         * modules/findprog: Update.
38029         * modules/javacomp: Update.
38030         * modules/javaexec: Update.
38031         * MODULES.html.sh (File system functions): Add 'filename', remove
38032         'pathname'.
38033
38034 2007-02-25  Bruno Haible  <bruno@clisp.org>
38035
38036         * modules/printf-frexpl-tests: New file.
38037         * tests/test-printf-frexpl.c: New file.
38038
38039         * modules/printf-frexpl: New file.
38040         * lib/printf-frexpl.h: New file.
38041         * lib/printf-frexpl.c: New file.
38042         * m4/printf-frexpl.m4: New file.
38043
38044 2007-02-25  Bruno Haible  <bruno@clisp.org>
38045
38046         * modules/printf-frexp-tests: New file.
38047         * tests/test-printf-frexp.c: New file.
38048
38049         * modules/printf-frexp: New file.
38050         * lib/printf-frexp.h: New file.
38051         * lib/printf-frexp.c: New file.
38052         * m4/printf-frexp.m4: New file.
38053
38054 2007-02-25  Bruno Haible  <bruno@clisp.org>
38055
38056         Assume automake >= 1.10 for the tests.
38057         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
38058         * modules/arctwo-tests: Likewise.
38059         * modules/argp-tests: Likewise.
38060         * modules/avltree-list-tests: Likewise.
38061         * modules/avltree-oset-tests: Likewise.
38062         * modules/avltreehash-list-tests: Likewise.
38063         * modules/carray-list-tests: Likewise.
38064         * modules/crc-tests: Likewise.
38065         * modules/des-tests: Likewise.
38066         * modules/gc-arcfour-tests: Likewise.
38067         * modules/gc-arctwo-tests: Likewise.
38068         * modules/gc-des-tests: Likewise.
38069         * modules/gc-hmac-md5-tests: Likewise.
38070         * modules/gc-hmac-sha1-tests: Likewise.
38071         * modules/gc-md2-tests: Likewise.
38072         * modules/gc-md4-tests: Likewise.
38073         * modules/gc-md5-tests: Likewise.
38074         * modules/gc-pbkdf2-sha1-tests: Likewise.
38075         * modules/gc-rijndael-tests: Likewise.
38076         * modules/gc-sha1-tests: Likewise.
38077         * modules/gc-tests: Likewise.
38078         * modules/getaddrinfo-tests: Likewise.
38079         * modules/hmac-md5-tests: Likewise.
38080         * modules/hmac-sha1-tests: Likewise.
38081         * modules/linked-list-tests: Likewise.
38082         * modules/linkedhash-list-tests: Likewise.
38083         * modules/lock-tests: Likewise.
38084         * modules/md2-tests: Likewise.
38085         * modules/md4-tests: Likewise.
38086         * modules/md5-tests: Likewise.
38087         * modules/rbtree-list-tests: Likewise.
38088         * modules/rbtree-oset-tests: Likewise.
38089         * modules/rbtreehash-list-tests: Likewise.
38090         * modules/read-file-tests: Likewise.
38091         * modules/rijndael-tests: Likewise.
38092         * modules/stdint-tests: Likewise.
38093         * modules/tls-tests: Likewise.
38094
38095 2007-02-24  Bruno Haible  <bruno@clisp.org>
38096
38097         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
38098         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
38099         function; instead check whether isnan with a double argument links.
38100         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
38101         function; instead check whether isnan with a 'long double' argument
38102         links.
38103         Reported by Eric Blake <ebb9@byu.net>.
38104
38105 2007-02-24  Bruno Haible  <bruno@clisp.org>
38106
38107         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
38108         defined.
38109         * lib/isnanl.c: Remove all code. Just include isnan.c.
38110         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
38111
38112 2007-02-25  Jim Meyering  <jim@meyering.net>
38113
38114         Avoid conflicting types for 'unsetenv' on FreeBSD.
38115         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
38116         conflicting with FreeBSD's (5.0 and 6.1) function declaration
38117         in stdlib.h.
38118
38119 2007-02-24  Bruno Haible  <bruno@clisp.org>
38120
38121         * modules/isnanl-nolibm-tests: New file.
38122         * tests/test-isnanl.c: New file.
38123
38124         * modules/isnanl-nolibm: New file.
38125         * lib/isnanl.h: New file.
38126         * lib/isnanl.c: New file.
38127         * m4/isnanl.m4: New file.
38128
38129 2007-02-24  Bruno Haible  <bruno@clisp.org>
38130
38131         * modules/isnan-nolibm-tests: New file.
38132         * tests/test-isnan.c: New file.
38133
38134         * modules/isnan-nolibm: New file.
38135         * lib/isnan.h: New file.
38136         * lib/isnan.c: New file.
38137         * m4/isnan.m4: New file.
38138
38139 2007-02-24  Bruno Haible  <bruno@clisp.org>
38140
38141         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
38142         assume that an exponent fits in 20 bits.
38143
38144 2007-02-24  Jim Meyering  <jim@meyering.net>
38145
38146         * m4/regex.m4: Update the description of the configure-time option,
38147         --without-included-regex, to state accurately what the defaults are,
38148         and perhaps to give people an idea why using this option is risky.
38149
38150 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
38151
38152         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
38153         loops on small arguments.  This attempts to avoid the problem
38154         Bruno Haible reported for AIX 4.3.2 in
38155         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
38156
38157 2007-02-23  Bruno Haible  <bruno@clisp.org>
38158
38159         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
38160         Needed for help2man.
38161
38162 2007-02-23  Karl Berry  <karl@gnu.org>
38163
38164         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
38165         exists, foo.h should be cvs-ignored, not committed.
38166
38167 2007-02-23  Eric Blake  <ebb9@byu.net>
38168
38169         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
38170         * lib/stat-time.h (includes): Likewise.
38171         * lib/utimecmp.c (includes): Likewise.
38172         * lib/utimens.h (includes): Likewise.
38173         * lib/getdate.y (includes): Also include "timespec.h" for use
38174         internal to the module.
38175         * modules/utimens (Depends-on): Revert yesterday's patch.
38176         * modules/nanosleep (Depends-on): Add missing dependency.
38177
38178 2007-02-22  Bruno Haible  <bruno@clisp.org>
38179
38180         * lib/glob.c: Don't include getlogin_r.h.
38181
38182 2007-02-22  Jim Meyering  <jim@meyering.net>
38183
38184         * modules/utimens (Depends-on): Add timespec, required for
38185         utimens.h's inclusion of timespec.h.
38186
38187 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
38188
38189         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
38190         long unreadable paths in GNU/Linux.  Problem reported by Andreas
38191         Schwab in
38192         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
38193         I'll try to think of a better way to fix the Solaris problem.
38194
38195         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
38196         like glibc; on Solaris 10, it fails with errno == EINVAL.
38197         POSIX says the behavior is unspecified if the first argument is NULL,
38198         so play it safe and never pass NULL to the system getcwd.
38199
38200 2007-02-21  Jim Meyering  <jim@meyering.net>
38201
38202         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
38203         of gettimeofday.  It would conflict with the one now always
38204         provided via sys_time_.h.  Reported by Matthew Woehlke, as
38205         an IRIX 6.5 build failure.
38206
38207 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
38208
38209         Minor fixups to port to Solaris 10 with Sun C 5.8.
38210         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
38211         * modules/getcwd (Depends-on): Add dirfd.
38212         * lib/putenv.c (putenv): #undef it.
38213         (rpl_putenv): New decl.
38214         (malloc, free): Include <stdlib.h> rather than prototyping separately.
38215
38216 2007-02-20  Bruno Haible  <bruno@clisp.org>
38217
38218         * modules/stdio-tests: New file.
38219         * tests/test-stdio.c: New file.
38220
38221         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
38222         (Depends-on): Add stdio.
38223         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
38224         (Include): Use <stdio.h> instead of vsnprintf.h.
38225         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
38226         HAVE_DECL_VSNPRINTF.
38227         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
38228
38229         * modules/snprintf (Files): Remove lib/snprintf.h.
38230         (Depends-on): Add stdio.
38231         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
38232         (Include): Use <stdio.h> instead of snprintf.h.
38233         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
38234         HAVE_DECL_SNPRINTF.
38235         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
38236         * lib/getaddrinfo.c: Likewise.
38237
38238         * modules/stdio: New file.
38239         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
38240         * lib/snprintf.h: Remove file.
38241         * lib/vsnprintf.h: Remove file.
38242         * lib/.cppi-disable: Remove snprintf.h.
38243         * m4/stdio_h.m4: New file.
38244         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
38245
38246 2007-02-20  Jim Meyering  <jim@meyering.net>
38247
38248         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
38249         used by e.g., mingw.  From Bruno Haible.
38250
38251 2007-02-19  Bruno Haible  <bruno@clisp.org>
38252
38253         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
38254         warnings.
38255         Reported by Ben Pfaff <blp@cs.stanford.edu>.
38256
38257 2007-02-19  Bruno Haible  <bruno@clisp.org>
38258
38259         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
38260         from mingw users.
38261
38262 2007-02-19  Bruno Haible  <bruno@clisp.org>
38263
38264         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
38265         warnings.
38266         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
38267
38268 2007-02-19  Jim Meyering  <jim@meyering.net>
38269
38270         Don't use FD after a successful "fdopendir (fd)".
38271         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
38272         Reset it by calling dirfd on the just-obtained DIR*.
38273
38274         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
38275         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
38276
38277 2007-02-18  Bruno Haible  <bruno@clisp.org>
38278
38279         * lib/readlink.c: Include <unistd.h>.
38280         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
38281         HAVE_READLINK.
38282         * modules/readlink (Depends-on): Add unistd.
38283         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38284         (Include): Add <unistd.h>.
38285
38286         * lib/getlogin_r.h: Remove file.
38287         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
38288         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
38289         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
38290         HAVE_DECL_GETLOGIN_R.
38291         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
38292         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38293         (Include): Use <unistd.h> instead of getlogin_r.h.
38294
38295         * lib/getcwd.h: Remove file.
38296         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
38297         * lib/xgetcwd.c: Likewise.
38298         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
38299         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
38300         * modules/getcwd (Files): Remove lib/getcwd.h.
38301         (Depends-on): Add unistd.
38302         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38303         (Include): Use <unistd.h> instad of getcwd.h.
38304
38305         * lib/ftruncate.c: Include <unistd.h> first.
38306         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
38307         Set HAVE_FTRUNCATE.
38308         * modules/ftruncate (Depends-on): Add unistd.
38309         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38310
38311         * lib/fchdir.c: Include <unistd.h> first.
38312         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
38313         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
38314         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
38315         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38316         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
38317
38318         * lib/dup2.c: Include <unistd.h> first.
38319         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
38320         HAVE_DUP2.
38321         * modules/dup2 (Depends-on): Add unistd.
38322         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38323
38324         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
38325         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
38326         REPLACE_CHOWN. Don't define chown as a macro here.
38327         * modules/chown (Depends-on): Add unistd.
38328         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38329
38330         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
38331         Add definition for GL_LINK_WARNING.
38332         (chown, dup2): New declarations.
38333         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
38334         link warning.
38335         (ftruncate): New declaration.
38336         (getcwd): New declaration, taken from old getcwd.h.
38337         (getlogin_r): New declaration, taken from old getlogin_r.h.
38338         (readlink): New declaration.
38339         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
38340         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
38341         (gl_PREREQ_UNISTD): Remove macro.
38342         (gl_UNISTD_MODULE_INDICATOR): New macro.
38343         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
38344         many new variables. Don't set UNISTD_H.
38345         * modules/unistd (Description): Change.
38346         (Depends-on): Add link-warning.
38347         (configure.ac): Update.
38348         (Makefile.am): Create unistd.h always. Substitute many new variables
38349         into it.
38350
38351 2007-02-18  Bruno Haible  <bruno@clisp.org>
38352
38353         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
38354         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
38355         HAVE_GETSUBOPT.
38356         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
38357         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
38358         * lib/getsubopt.h: Remove file.
38359         * modules/getsubopt (Files): Remove lib/getsubopt.h.
38360         (Depends-on): Add stdlib.
38361         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38362         (Includes): Use <stdlib.h> instead of getsubopt.h.
38363         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
38364         Set HAVE_GETSUBOPT.
38365         * lib/getsubopt.c: Don't include getsubopt.h.
38366
38367 2007-02-18  Bruno Haible  <bruno@clisp.org>
38368
38369         * modules/fchdir (Depends-on): Add dup2.
38370
38371 2007-02-18  Bruno Haible  <bruno@clisp.org>
38372
38373         * lib/stdlib_.h: Handle glibc's special invocation convention
38374         specially.
38375
38376 2007-02-18  Bruno Haible  <bruno@clisp.org>
38377
38378         * modules/stdlib-tests: New file.
38379         * tests/test-stdlib.c: New file.
38380
38381         * modules/mkstemp (Files): Remove lib/mkstemp.h.
38382         (Depends-on): Add stdlib.
38383         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38384         (Includes): Use <stdlib.h> instead of mkstemp.h.
38385         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
38386         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
38387         * lib/mkstemp.c: Don't include mkstemp.h.
38388         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
38389         * lib/stdlib--.h: Don't include mkstemp.h.
38390
38391         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
38392         (Depends-on): Add stdlib.
38393         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38394         (Includes): Use <stdlib.h> instead of mkdtemp.h.
38395         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
38396         HAVE_MKDTEMP.
38397         * lib/mkdtemp.c: Don't include mkdtemp.h.
38398         * lib/clean-temp.c: Don't include mkdtemp.h.
38399
38400         * modules/exit (Files): Remove lib/exit.h.
38401         (Depends-on): Add stdlib.
38402         (Makefile.am): Remove lib_SOURCES.
38403         (Include): Use <stdlib.h> instead of exit.h.
38404         * lib/argmatch.c: Don't include exit.h.
38405         * lib/execute.c: Likewise.
38406         * lib/pagealign_alloc.c: Likewise.
38407         * lib/pipe.c: Likewise.
38408         * lib/wait-process.c: Likewise.
38409         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
38410         * lib/exitfail.c: Likewise.
38411         * lib/savewd.c: Likewise.
38412         * lib/xsetenv.c: Likewise.
38413
38414         * modules/stdlib: New file.
38415         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
38416         and extra comments about mkstemp().
38417         * lib/exit.h: Remove file.
38418         * lib/mkdtemp.h: Remove file.
38419         * lib/mkstemp.h: Remove file.
38420         * m4/stdlib_h.m4: New file.
38421         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
38422
38423 2007-02-18  Bruno Haible  <bruno@clisp.org>
38424
38425         * modules/math-tests: New file.
38426         * tests/test-math.c: New file.
38427
38428         * modules/math: New file.
38429         * modules/mathl (Files): Remove lib/mathl.h.
38430         (Depends-on): Add math.
38431         (Makefile.am): Don't mention mathl.h.
38432         (Include): Use <math.h> instead of mathl.h.
38433         * lib/math_.h: New file.
38434         * lib/mathl.h: Remove file.
38435         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
38436         mathl.h.
38437         * lib/asinl.c: Likewise.
38438         * lib/atanl.c: Likewise.
38439         * lib/ceill.c: Likewise.
38440         * lib/cosl.c: Likewise.
38441         * lib/expl.c: Likewise.
38442         * lib/floorl.c: Likewise.
38443         * lib/frexpl.c: Likewise.
38444         * lib/ldexpl.c: Likewise.
38445         * lib/logl.c: Likewise.
38446         * lib/sincosl.c: Likewise.
38447         * lib/sinl.c: Likewise.
38448         * lib/sqrtl.c: Likewise.
38449         * lib/tanl.c: Likewise.
38450         * lib/trigl.c: Likewise.
38451         * m4/math_h.m4: New file.
38452         * MODULES.html.sh (Mathematics): Add math.
38453
38454 2007-02-17  Bruno Haible  <bruno@clisp.org>
38455
38456         * modules/wctype-tests: New file.
38457         * tests/test-wctype.c: New file.
38458
38459         * modules/wchar-tests: New file.
38460         * tests/test-wchar.c: New file.
38461
38462         * modules/unistd-tests: New file.
38463         * tests/test-unistd.c: New file.
38464
38465         * modules/time-tests: New file.
38466         * tests/test-time.c: New file.
38467
38468         * modules/sysexits-tests: New file.
38469         * tests/test-sysexits.c: New file.
38470
38471         * modules/sys_time-tests: New file.
38472         * tests/test-sys_time.c: New file.
38473
38474         * modules/sys_stat-tests: New file.
38475         * tests/test-sys_stat.c: New file.
38476
38477         * modules/sys_socket-tests: New file.
38478         * tests/test-sys_socket.c: New file.
38479
38480         * modules/sys_select-tests: New file.
38481         * tests/test-sys_select.c: New file.
38482
38483         * modules/string-tests: New file.
38484         * tests/test-string.c: New file.
38485
38486         * modules/stdbool-tests: New file.
38487         * tests/test-stdbool.c: New file.
38488
38489         * modules/netinet_in-tests: New file.
38490         * tests/test-netinet_in.c: New file.
38491
38492         * modules/inttypes-tests: New file.
38493         * tests/test-inttypes.c: New file.
38494
38495         * modules/fcntl-tests: New file.
38496         * tests/test-fcntl.c: New file.
38497
38498         * modules/byteswap-tests: New file.
38499         * tests/test-byteswap.c: New file.
38500
38501         * modules/arpa_inet-tests: New file.
38502         * tests/test-arpa_inet.c: New file.
38503
38504 2007-02-17  Bruno Haible  <bruno@clisp.org>
38505
38506         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
38507         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
38508         if the corresponding module is not enabled. Emit link warnings if
38509         the function is used nevertheless.
38510         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
38511         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
38512         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
38513         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
38514         * modules/inttypes (Depends-on): Add link-warning.
38515         (Makefile.am): Copy the contents of build-aux/link-warning.h into
38516         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
38517         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
38518         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
38519         * modules/imaxdiv (configure.ac): Likewise.
38520         * modules/strtoimax (configure.ac): Likewise.
38521         * modules/strtoumax (configure.ac): Likewise.
38522
38523 2007-02-17  Bruno Haible  <bruno@clisp.org>
38524
38525         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
38526         gl_STRING_MODULE_INDICATOR_DEFAULTS.
38527         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
38528         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
38529
38530 2007-02-17  Bruno Haible  <bruno@clisp.org>
38531
38532         * modules/link-warning: New file.
38533         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
38534         * lib/string_.h (GL_LINK_WARNING): Remove definition.
38535         * modules/string (Depends-on): Add link-warning.
38536         (Makefile.am): Copy the contents of build-aux/link-warning.h into
38537         string.h.
38538         * MODULES.html.sh (Support for building libraries and executables): Add
38539         link-warning.
38540
38541 2007-02-17  Bruno Haible  <bruno@clisp.org>
38542
38543         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
38544         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
38545         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
38546         long lines.
38547
38548 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
38549             Bruno Haible  <bruno@clisp.org>
38550
38551         * modules/tmpfile: New file.
38552         * lib/tmpfile.c: New file.
38553         * m4/tmpfile.m4: New file.
38554         * MODULES.html.sh (func_all_modules): New section "Input/output".
38555
38556 2007-02-15  Bruno Haible  <bruno@clisp.org>
38557
38558         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
38559         (supports_delete_on_close): New function.
38560         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
38561
38562 2007-02-14  Bruno Haible  <bruno@clisp.org>
38563
38564         * modules/mbspcasecmp-tests: New file.
38565         * tests/test-mbspcasecmp.sh: New file.
38566         * tests/test-mbspcasecmp.c: New file.
38567
38568         New module mbspcasecmp.
38569         * modules/mbspcasecmp: New file.
38570         * lib/mbspcasecmp.c: New file.
38571         * lib/string_.h (strncasecmp): Change warning message.
38572         (mbspcasecmp): New declaration.
38573         * m4/mbspcasecmp.m4: New file.
38574         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38575         GNULIB_MBSPCASECMP.
38576         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
38577         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
38578
38579 2007-02-14  Bruno Haible  <bruno@clisp.org>
38580
38581         * modules/mbsncasecmp-tests: New file.
38582         * tests/test-mbsncasecmp.sh: New file.
38583         * tests/test-mbsncasecmp.c: New file.
38584
38585         New module mbsncasecmp.
38586         * modules/mbsncasecmp: New file.
38587         * lib/mbsncasecmp.c: New file.
38588         * lib/string_.h (mbsncasecmp): New declaration.
38589         * m4/mbsncasecmp.m4: New file.
38590         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38591         GNULIB_MBSNCASECMP.
38592         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
38593         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
38594
38595 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
38596
38597         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
38598         Verify that it doesn't overlap with our flags.
38599         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
38600         do not have the desired effect in multibyte locales; instead, use
38601         mbscasecmp.
38602         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
38603         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
38604         we don't require GNU fnmatch ourselves (if our users require it, they
38605         should do so explicitly).
38606
38607         Fix regex code so it doesn't rely on strcasecmp.
38608         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
38609         Otherwise, include gnulib's langinfo.h.
38610         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
38611         undesirable behavior in non-C locales.  Instead, rely on localecharset.
38612         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
38613         * modules/regex (FILES): Remove m4/codeset.m4.
38614         (Depends-on): Add localcharset.  Remove strcase.
38615
38616 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38617
38618         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
38619         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
38620
38621 2007-02-13  Bruno Haible  <bruno@clisp.org>
38622
38623         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
38624         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38625
38626 2007-02-12  Bruno Haible  <bruno@clisp.org>
38627
38628         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
38629         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
38630         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
38631         time warning rather than a link error.
38632
38633 2007-02-12  Bruno Haible  <bruno@clisp.org>
38634
38635         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
38636         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
38637         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38638
38639 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
38640
38641         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
38642         args, not 2.
38643
38644 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
38645
38646         New module 'time', so that apps can include <time.h> as per
38647         POSIX and GNU instead of separate include files like time_r.h
38648         and timegm.h.  This implementation tries out a simpler approach
38649         for replacing decls in standard include files (as compared to
38650         the string module), somewhat as an experiment.
38651
38652         * config/srclist.txt: Comment out mktime.c for now.
38653         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
38654         since it doesn't apply any more.  Use generic wording instead.
38655         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
38656         'time'.
38657         * lib/time_.h, m4/time_h.m4, modules/time: New files.
38658         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
38659         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
38660         Don't include <sys/types.h>; no longer needed since we assume C89.
38661         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
38662         * lib/strftime.c: Likewise.
38663         * lib/time_r.c: Likewise.
38664         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
38665         * lib/nanosleep.c: Include <time.h> first, to check interface.
38666         * lib/strptime.c: Likewise.
38667         * lib/time_r.c: Likewise.
38668         * lib/timegm.c: Likewise.
38669         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
38670         needed.
38671         * lib/timegm.c: Don't include timegm.h; no longer needed.
38672         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
38673         time.h now handles any problems in that area.
38674         (struct timespec, nanosleep): Remove; time.h now arranges for these.
38675         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
38676         that time.h defines struct timespec.
38677         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
38678         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
38679         handles that.
38680         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
38681         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
38682         needed.  Set REPLACE_LOCALTIME.
38683         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
38684         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
38685         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
38686         nanosleep; time_h.m4 now does that.  Don't require
38687         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
38688         module handles this now.
38689         * modules/getdate (Depends-on): Remove timespec.  Add time.
38690         * modules/nanosleep (Depends-on): Likewise.
38691         * modules/stat-time (Depends-on): Likewise.
38692         * modules/nanosleep (Include): Include time.h, not timespec.h.
38693         * modules/strptime (Files): Remove lib/strptime.h.
38694         (Depends-on): Add extensions, time.
38695         (Include): Include time.h, not strptime.h.
38696         * modules/time_r (Files): Remove lib/time_r.h.
38697         (Depends-on): Add time.
38698         (Include): Include time.h, not time_r.h.
38699         * modules/timegm: Likewise.
38700         * modules/timespec (Description): Now does timespec-related decls
38701         of our own, instead of struct timespec itself.
38702         (Depends-on): Add time; remove extensions.
38703         (Maintainer): Add self.
38704         * modules/utimecmp (Depends-on): Add time; remove timespec.
38705         * modules/utimens (Depends-on): Likewise.
38706         * modules/xnanosleep (Depends-on): Likewise.
38707
38708 2007-02-11  Bruno Haible  <bruno@clisp.org>
38709
38710         * lib/c-strstr.c: Include allocsa.h.
38711         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38712         * lib/c-strcasestr.c: Include allocsa.h.
38713         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38714         * lib/strcasestr.c: Include allocsa.h.
38715         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38716         * lib/mbsstr.c: Include allocsa.h.
38717         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
38718         allocsa/freesa instead of malloc/free.
38719         * lib/mbscasestr.c: Include allocsa.h.
38720         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
38721         allocsa/freesa instead of malloc/free.
38722         * modules/c-strstr (Depends-on): Add allocsa.
38723         * modules/c-strcasestr (Depends-on): Likewise.
38724         * modules/strcasestr (Depends-on): Likewise.
38725         * modules/mbsstr (Depends-on): Likewise.
38726         * modules/mbscasestr (Depends-on): Likewise.
38727
38728 2007-02-11  Bruno Haible  <bruno@clisp.org>
38729
38730         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
38731
38732         * modules/mbsspn-tests: New file.
38733         * tests/test-mbsspn.sh: New file.
38734         * tests/test-mbsspn.c: New file.
38735
38736 2007-02-11  Bruno Haible  <bruno@clisp.org>
38737
38738         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
38739
38740         * modules/mbspbrk-tests: New file.
38741         * tests/test-mbspbrk.sh: New file.
38742         * tests/test-mbspbrk.c: New file.
38743
38744 2007-02-11  Bruno Haible  <bruno@clisp.org>
38745
38746         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
38747         unneeded cast.
38748
38749         * modules/mbscspn-tests: New file.
38750         * tests/test-mbscspn.sh: New file.
38751         * tests/test-mbscspn.c: New file.
38752
38753 2007-02-11  Bruno Haible  <bruno@clisp.org>
38754
38755         * modules/mbscasecmp-tests: New file.
38756         * tests/test-mbscasecmp.sh: New file.
38757         * tests/test-mbscasecmp.c: New file.
38758
38759 2007-02-11  Bruno Haible  <bruno@clisp.org>
38760
38761         Ensure O(n) worst-case complexity of mbscasestr.
38762         * lib/mbscasestr.c: Include stdbool.h.
38763         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
38764         functions.
38765         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
38766         the bookkeeping indicates that it's worth it.
38767         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
38768
38769         * modules/mbscasestr-tests: New file.
38770         * tests/test-mbscasestr1.c: New file.
38771         * tests/test-mbscasestr2.sh: New file.
38772         * tests/test-mbscasestr2.c: New file.
38773         * tests/test-mbscasestr3.sh: New file.
38774         * tests/test-mbscasestr3.c: New file.
38775         * tests/test-mbscasestr4.sh: New file.
38776         * tests/test-mbscasestr4.c: New file.
38777         * m4/locale-tr.m4: New file.
38778
38779 2007-02-11  Bruno Haible  <bruno@clisp.org>
38780
38781         Ensure O(n) worst-case complexity of mbsstr.
38782         * lib/mbsstr.c: Include stdbool.h.
38783         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
38784         functions.
38785         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
38786         bookkeeping indicates that it's worth it.
38787         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
38788
38789         * modules/mbsstr-tests: New file.
38790         * tests/test-mbsstr1.c: New file.
38791         * tests/test-mbsstr2.sh: New file.
38792         * tests/test-mbsstr2.c: New file.
38793         * tests/test-mbsstr3.sh: New file.
38794         * tests/test-mbsstr3.c: New file.
38795         * m4/locale-fr.m4: New file.
38796
38797 2007-02-11  Bruno Haible  <bruno@clisp.org>
38798
38799         * lib/mbsrchr.c (mbsrchr): Fix bug.
38800
38801         * modules/mbsrchr-tests: New file.
38802         * tests/test-mbsrchr.sh: New file.
38803         * tests/test-mbsrchr.c: New file.
38804
38805 2007-02-11  Bruno Haible  <bruno@clisp.org>
38806
38807         * lib/mbschr.c (mbschr): Fix bug.
38808
38809         * modules/mbschr-tests: New file.
38810         * tests/test-mbschr.sh: New file.
38811         * tests/test-mbschr.c: New file.
38812         * m4/locale-zh.m4: New file.
38813
38814 2007-02-11  Bruno Haible  <bruno@clisp.org>
38815
38816         Support for copying multibyte string iterators.
38817         * lib/mbiter.h: Include <string.h>.
38818         (mbiter_multi_copy): New function.
38819         (mbi_copy): New macro.
38820         * lib/mbuiter.h: Include <string.h>.
38821         (mbuiter_multi_copy): New function.
38822         (mbui_copy): New macro.
38823
38824 2007-02-11  Bruno Haible  <bruno@clisp.org>
38825
38826         New module mbslen.
38827         * modules/mbslen: New file.
38828         * lib/mbslen.c: New file.
38829         * lib/string_.h (mbslen): New declaration.
38830         * m4/mbslen.m4: New file.
38831         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38832         GNULIB_MBSLEN.
38833         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
38834         * MODULES.html.sh (Internationalization functions): Add mbslen.
38835
38836 2007-02-11  Bruno Haible  <bruno@clisp.org>
38837
38838         Ensure O(n) worst-case complexity of strcasestr substitute.
38839         * lib/strcasestr.c: Include stdbool.h.
38840         (knuth_morris_pratt): New function.
38841         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
38842         bookkeeping indicates that it's worth it.
38843         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
38844
38845         * modules/strcasestr-tests: New file.
38846         * tests/test-strcasestr.c: New file.
38847
38848 2007-02-11  Bruno Haible  <bruno@clisp.org>
38849
38850         Ensure O(n) worst-case complexity of c_strcasestr.
38851         * lib/c-strcasestr.c: Include stdbool.h, string.h.
38852         (knuth_morris_pratt): New function.
38853         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
38854         the bookkeeping indicates that it's worth it.
38855         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
38856
38857         * modules/c-strcasestr-tests: New file.
38858         * tests/test-c-strcasestr.c: New file.
38859
38860 2007-02-11  Bruno Haible  <bruno@clisp.org>
38861
38862         Ensure O(n) worst-case complexity of c_strstr.
38863         * lib/c-strstr.c: Include stdbool.h, string.h.
38864         (knuth_morris_pratt): New function.
38865         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
38866         bookkeeping indicates that it's worth it.
38867         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
38868
38869         * lib/c-strstr.c: Complete rewrite for maintainability.
38870
38871         * modules/c-strstr-tests: New file.
38872         * tests/test-c-strstr.c: New file.
38873
38874 2007-02-11  Bruno Haible  <bruno@clisp.org>
38875
38876         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
38877         5.2.1 and earlier, whereby \055 was treated just like the range
38878         delimiter '-'.
38879         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
38880
38881 2007-02-08  Bruno Haible  <bruno@clisp.org>
38882
38883         * modules/regex (Depends-on): Add stdbool.
38884         Reported by Dalibor Topic <robilad@kaffe.org>.
38885
38886 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
38887
38888         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
38889         Prefer returning from main to exiting from it.
38890         Remove unnecessary parens after sizeof.
38891
38892 2007-02-05  Bruno Haible  <bruno@clisp.org>
38893
38894         New module mbssep.
38895         * modules/mbssep: New file.
38896         * lib/mbssep.c: New file.
38897         * lib/string_.h (strsep): Add a conditional link warning.
38898         (mbssep): New declaration.
38899         * m4/mbssep.m4: New file.
38900         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38901         GNULIB_MBSSEP.
38902         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
38903         * MODULES.html.sh (Internationalization functions): Add mbssep.
38904
38905 2007-02-05  Bruno Haible  <bruno@clisp.org>
38906
38907         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
38908         Optimize search in case of 1 delimiter.
38909
38910 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
38911
38912         * lib/acl.h: Include sys/types.h before sys/acl.h.
38913
38914 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
38915
38916         Merge upstream fix for glibc bugzilla #3957:
38917
38918         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
38919
38920         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
38921         bit for RE_HAT_LISTS_NOT_NEWLINE.
38922         (build_charclass_op): Remove bogus comment.
38923
38924 2007-02-05  Simon Josefsson  <simon@josefsson.org>
38925
38926         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
38927
38928 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
38929
38930         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
38931         * lib/memmem.c [!defined _LIBC]: Include config.h.
38932
38933 2007-02-04  Bruno Haible  <bruno@clisp.org>
38934
38935         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
38936         warning message.
38937
38938 2007-02-04  Bruno Haible  <bruno@clisp.org>
38939
38940         New module mbstok_r.
38941         * modules/mbstok_r: New file.
38942         * lib/mbstok_r.c: New file.
38943         * lib/string_.h (strtok_r): Change argument names to match the
38944         comments. Add a conditional link warning.
38945         (mbstok_r): New declaration.
38946         * m4/mbstok_r.m4: New file.
38947         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38948         GNULIB_MBSTOK_R.
38949         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
38950         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
38951
38952 2007-02-04  Bruno Haible  <bruno@clisp.org>
38953
38954         New module mbsspn.
38955         * modules/mbsspn: New file.
38956         * lib/mbsspn.c: New file.
38957         * lib/string_.h (strspn): Add a conditional link warning.
38958         (mbsspn): New declaration.
38959         * m4/mbsspn.m4: New file.
38960         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38961         GNULIB_MBSSPN.
38962         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
38963         * MODULES.html.sh (Internationalization functions): Add mbsspn.
38964
38965 2007-02-04  Bruno Haible  <bruno@clisp.org>
38966
38967         New module mbspbrk.
38968         * modules/mbspbrk: New file.
38969         * lib/mbspbrk.c: New file.
38970         * lib/string_.h (strpbrk): Add a conditional link warning.
38971         (mbspbrk): New declaration.
38972         * m4/mbspbrk.m4: New file.
38973         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38974         GNULIB_MBSPBRK.
38975         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
38976         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
38977
38978 2007-02-04  Bruno Haible  <bruno@clisp.org>
38979
38980         New module mbscspn.
38981         * modules/mbscspn: New file.
38982         * lib/mbscspn.c: New file.
38983         * lib/string_.h (strcspn): Add a conditional link warning.
38984         (mbscspn): New declaration.
38985         * m4/mbscspn.m4: New file.
38986         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38987         GNULIB_MBSCSPN.
38988         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
38989         * MODULES.html.sh (Internationalization functions): Add mbscspn.
38990
38991 2007-02-04  Bruno Haible  <bruno@clisp.org>
38992
38993         New module mbscasestr, reduced goal of strcasestr.
38994         * modules/mbscasestr: New file.
38995         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
38996         (mbscasestr): Renamed from strcasestr.
38997         * lib/strcasestr.c: Don't include mbuiter.h.
38998         (strcasestr): Remove support for multibyte locales.
38999         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
39000         Change the conditional link warning.
39001         (mbscasestr): New declaration.
39002         * m4/mbscasestr.m4: New file.
39003         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
39004         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
39005         REPLACE_STRCASESTR.
39006         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
39007         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39008         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
39009         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
39010         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
39011         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
39012         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
39013         (Depends-on): Remove mbuiter.
39014         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
39015
39016 2007-02-04  Bruno Haible  <bruno@clisp.org>
39017
39018         Simplify handling of strncasecmp.
39019         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
39020         the conditional link warning.
39021         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39022         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
39023         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
39024         * modules/strcase (configure.ac): Don't invoke
39025         gl_STRING_MODULE_INDICATOR.
39026         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
39027
39028 2007-02-04  Bruno Haible  <bruno@clisp.org>
39029
39030         New module mbscasecmp, reduced goal of strcasecmp.
39031         * modules/mbscasecmp: New file.
39032         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
39033         (mbscasecmp): Renamed from strcasecmp.
39034         * lib/strcasecmp.c: Don't include mbuiter.h.
39035         (strcasecmp): Remove support for multibyte locales.
39036         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
39037         Change the conditional link warning.
39038         (mbscasecmp): New declaration.
39039         * m4/mbscasecmp.m4: New file.
39040         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
39041         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
39042         REPLACE_STRCASECMP.
39043         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
39044         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39045         GNULIB_MBSCASECMP.
39046         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
39047         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
39048         * modules/strcase (Files): Remove m4/mbrtowc.m4.
39049         (Depends-on): Remove mbuiter.
39050         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
39051
39052 2007-02-04  Bruno Haible  <bruno@clisp.org>
39053
39054         New module mbsstr. Remove module strstr.
39055         * modules/mbsstr: New file.
39056         * modules/strstr: Remove file.
39057         * lib/mbsstr.c: Renamed from lib/strstr.c.
39058         (mbsstr): Renamed from strstr.
39059         * lib/string_.h (strstr): Remove declaration. Change the conditional
39060         link warning.
39061         (mbsstr): New declaration.
39062         * m4/mbsstr.m4: New file.
39063         * m4/strstr.m4: Remove file.
39064         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
39065         REPLACE_STRSTR.
39066         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
39067         Don't initialize GNULIB_STRSTR.
39068         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
39069         substitute GNULIB_STRSTR and REPLACE_STRSTR.
39070         * MODULES.html.sh (Internationalization functions): Add mbsstr.
39071         (Support for systems lacking ANSI C 89): Remove strstr.
39072
39073 2007-02-04  Bruno Haible  <bruno@clisp.org>
39074
39075         New module mbsrchr.
39076         * modules/mbsrchr: New file.
39077         * lib/mbsrchr.c: New file.
39078         * lib/string_.h (strrchr): Add a conditional link warning.
39079         (mbsrchr): New declaration.
39080         * m4/mbsrchr.m4: New file.
39081         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39082         GNULIB_MBSRCHR.
39083         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
39084         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
39085
39086 2007-02-04  Bruno Haible  <bruno@clisp.org>
39087
39088         New module mbschr.
39089         * modules/mbschr: New file.
39090         * lib/mbschr.c: New file.
39091         * lib/string_.h (strchr): Add a conditional link warning.
39092         (mbschr): New declaration.
39093         * m4/mbschr.m4: New file.
39094         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39095         GNULIB_MBSCHR.
39096         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
39097         * MODULES.html.sh (Internationalization functions): Add mbschr.
39098
39099 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
39100
39101         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
39102
39103         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
39104
39105 2007-02-04  Bruno Haible  <bruno@clisp.org>
39106
39107         New module description section 'configure.ac-early'.
39108         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
39109         (func_get_autoconf_early_snippet): New function.
39110         (func_import, func_create_testdir): Use it. Remove special cases for
39111         modules 'extensions' and 'lock'.
39112         * modules/extensions (configure.ac-early): Require
39113         gl_USE_SYSTEM_EXTENSIONS.
39114         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
39115
39116 2007-02-04  Bruno Haible  <bruno@clisp.org>
39117
39118         Make use of gcj-4.3's -fsource and -ftarget option.
39119         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
39120         and if so try the options -fsource and -ftarget.
39121         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
39122         source_version, ftarget_option, target_version arguments.
39123         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
39124         (is_envjavac_oldgcj_14_14_usable): Renamed from
39125         is_envjavac_gcj_14_14_usable.
39126         (is_envjavac_oldgcj_14_13_usable): Renamed from
39127         is_envjavac_gcj_14_13_usable.
39128         (is_gcj_present): Update.
39129         (is_gcj_43, is_gcj43_usable): New functions.
39130         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
39131         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
39132         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
39133         try the options -fsource and -ftarget.
39134
39135 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
39136
39137         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
39138         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
39139         larger value.
39140
39141 2007-02-03  Jim Meyering  <jim@meyering.net>
39142
39143         Give tools a better chance to allocate space for very large buffers.
39144         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
39145
39146         Make pwd and readlink work also when run with an unreadable parent dir
39147         on systems with openat support.
39148         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
39149         provided getcwd function, even when we have openat support.
39150         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
39151
39152 2007-02-02  Bruno Haible  <bruno@clisp.org>
39153
39154         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
39155         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
39156         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
39157         portability problems if one of these functions is only used on specific
39158         platforms.
39159         Reported by Paul Eggert.
39160
39161 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
39162
39163         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
39164         is causing more trouble than it's curing.
39165         * lib/regex_internal.h (__mempcpy): Remove.
39166         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
39167         (and make the code a tad smaller to boot).
39168         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
39169
39170 2007-02-02  Jim Meyering  <jim@meyering.net>
39171
39172         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
39173         section, not in the Makefile.am: one.
39174
39175 2007-02-02  Eric Blake  <ebb9@byu.net>
39176
39177         * lib/strchrnul.c: Always include config.h first.
39178
39179         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
39180         gnulib strstr is not necessary here.
39181
39182 2007-02-02  Simon Josefsson  <simon@josefsson.org>
39183
39184         * m4/socklen.m4: Fix typo.
39185
39186 2007-02-02  Eric Blake  <ebb9@byu.net>
39187
39188         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
39189         * modules/netinet_in (Makefile.am): Likewise.
39190
39191 2007-02-01  Bruno Haible  <bruno@clisp.org>
39192
39193         * lib/string_.h (GL_LINK_WARNING): New macro.
39194         (strcasecmp, strstr, strcasestr): If provided by the system,
39195         conditionally define as a macro that leads to a warning instead of to
39196         an error.
39197         (strncasecmp): Conditionally define as a macro that leads to a warning.
39198
39199 2007-02-01  Karl Berry  <karl@gnu.org>
39200
39201         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
39202
39203 2007-02-01  Bruno Haible  <bruno@clisp.org>
39204
39205         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
39206         renamings.
39207
39208 2007-02-01  Eric Blake  <ebb9@byu.net>
39209
39210         * modules/regex (Depends-on): Revert dependence on mempcpy.
39211         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
39212         module's definition of mempcpy.
39213         Reported by Paul Eggert.
39214
39215 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
39216
39217         * lib/string_.h: If the gnulib module XYZ is not present, undefine
39218         the symbol XYZ before redefining it.  This fixes a problem with
39219         programs that don't use XYZ, when compiled on systems that define
39220         XYZ to something else.
39221
39222 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
39223
39224         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
39225         occurs when "mkdir -m foo" creates a setgid directory that is (1)
39226         writeable to group or other and (2) is intended to have a special
39227         mode bit that is set or cleared.  In such a case, the directory
39228         should be neither group- nor other-writeable until the special
39229         mode bits are right.
39230
39231 2007-01-31  Eric Blake  <ebb9@byu.net>
39232
39233         * modules/mountlist (Depends-on): Add strstr.
39234
39235         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
39236         bug.
39237         * modules/string (Makefile.am): Remove redundant replacement.
39238         * modules/regex (Depends-on): Add mempcpy.
39239
39240 2007-01-31  Bruno Haible  <bruno@clisp.org>
39241
39242         New module description field 'Link'.
39243         * gnulib-tool (func_usage): Document --extract-link-directive.
39244         (sed_extract_prog): Recognize 'Link' directive.
39245         (func_get_link_directive): New function.
39246         (func_import): Show summary of link directives.
39247         Handle --extract-link-directive option.
39248         * modules/acl (Link): New section.
39249         * modules/clock-time (Link): New section.
39250         * modules/euidaccess (Link): New section.
39251         * modules/gettext (Link): New section.
39252         * modules/iconv (Link): New section.
39253         * modules/lock (Link): New section.
39254         * modules/nanosleep (Link): New section.
39255         * modules/readline (Link): New section.
39256
39257 2007-01-27  Bruno Haible  <bruno@clisp.org>
39258
39259         Enforce the use of gnulib modules for unportable <string.h> functions.
39260         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
39261         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
39262         (gl_HEADER_STRING_H_BODY): Require it.
39263         * lib/string_.h: If the gnulib module XYZ is not present, redefine
39264         the symbol XYZ to one that gives a link error.
39265         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
39266         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
39267         * modules/mempcpy (configure.ac): Likewise.
39268         * modules/memrchr (configure.ac): Likewise.
39269         * modules/stpcpy (configure.ac): Likewise.
39270         * modules/stpncpy (configure.ac): Likewise.
39271         * modules/strcase (configure.ac): Likewise.
39272         * modules/strcasestr (configure.ac): Likewise.
39273         * modules/strchrnul (configure.ac): Likewise.
39274         * modules/strdup (configure.ac): Likewise.
39275         * modules/strndup (configure.ac): Likewise.
39276         * modules/strnlen (configure.ac): Likewise.
39277         * modules/strpbrk (configure.ac): Likewise.
39278         * modules/strsep (configure.ac): Likewise.
39279         * modules/strstr (configure.ac): Likewise.
39280         * modules/strtok_r (configure.ac): Likewise.
39281
39282 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
39283
39284         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
39285
39286 2007-01-30  Jim Meyering  <jim@meyering.net>
39287
39288         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
39289
39290 2007-01-29  Bruno Haible  <bruno@clisp.org>
39291
39292         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
39293         * lib/execute.c: Likewise.
39294         * lib/pipe.c: Likewise.
39295         * lib/printf-args.h: Likewise.
39296         * lib/printf-args.c: Likewise.
39297         * lib/printf-parse.c: Likewise.
39298         * lib/vasnprintf.c: Likewise.
39299
39300 2007-01-29  Eric Blake  <ebb9@byu.net>
39301
39302         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
39303         declaration.
39304
39305 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
39306
39307         * lib/strptime.h (strptime): Use 'restrict' for args where
39308         POSIX requires this.
39309         * lib/strptime.c (strptime): Likewise.
39310         Change license notice from LGPL to GPL, since gnulib-tool will
39311         change this as needed.
39312         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
39313         defined.
39314         Include "strptime.h" first, to check interface.
39315         Do not #undef _LIBC and _NL_CURRENT.
39316         Do not include <stdlib.h>; no longer needed.
39317         Include "time_r.h" and declare ptime_locale_status
39318         only if _LIBC is not defined.
39319         (__P): Remove unused macro.
39320         (match_string): Bring back glibc version, but use it only if _LIBC
39321         is defined.
39322         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
39323         Remove unnecessary assertion and abort() call.
39324         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
39325         * m4/strptime.m4: Fix serial number comment.
39326         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
39327         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
39328         (Depends-on): Add time_r.
39329
39330 2007-01-29  Bruno Haible  <bruno@clisp.org>
39331
39332         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39333         strptime.
39334         * modules/strptime (Depends-on): Add stdbool.
39335         * lib/strptime.h: Include <time.h> always. Add comments.
39336
39337 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39338
39339         * modules/strptime: New file.
39340         * lib/strptime.h: New file.
39341         * lib/strptime.c: New file.
39342         * m4/strptime.m4: New file.
39343
39344 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
39345
39346         * MODULES.html.sh: New module mpsort.
39347         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
39348
39349         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
39350         a circularity problem with HP-UX ia64 reported by Bob Proulx in
39351         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
39352         All uses changed.
39353         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
39354         All uses changed.
39355         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
39356         to _Restrict_.
39357         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
39358         the parameter matches the prototype.
39359
39360 2007-01-28  Jim Meyering  <jim@meyering.net>
39361
39362         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
39363         sys/time.h here, reverting that part of the previous patch:
39364         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
39365
39366 2007-01-28  Bruno Haible  <bruno@clisp.org>
39367
39368         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
39369         value of $(SYS_TIME_H).
39370         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
39371         remove it conditionally, too. [added by Jim Meyering]
39372         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
39373         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
39374         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
39375         GETTIMEOFDAY_REPLACEMENT to 1.
39376
39377 2007-01-28  Bruno Haible  <bruno@clisp.org>
39378
39379         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
39380         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
39381         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
39382         Set UNISTD_H instead of UNISTD_H2.
39383         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
39384
39385 2007-01-28  Bruno Haible  <bruno@clisp.org>
39386
39387         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
39388         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
39389
39390 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39391
39392         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
39393         (func_create_testdir): Ensure C locale for `grep' and `tr'
39394         character ranges.
39395         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
39396         ACLOCAL_AMFLAGS parsing state machine.
39397
39398 2007-01-27  Bruno Haible  <bruno@clisp.org>
39399
39400         * modules/unistr/base: Update.
39401
39402 2007-01-27  Bruno Haible  <bruno@clisp.org>
39403
39404         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
39405         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
39406         * modules/unistr/u32-mbtouc-unsafe: Renamed from
39407         modules/unistr/u32-mbtouc.
39408         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
39409         * lib/unistr.h: Update.
39410         * lib/linebreak.c: Update.
39411         * modules/unistr/u32-mbtouc: Renamed from
39412         modules/unistr/u32-mbtouc-safe.
39413         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
39414         * lib/unistr.h: Update.
39415         * lib/unistr/u32-to-u8.c: Update.
39416         * lib/unistr/u32-to-u16.c: Update.
39417
39418 2007-01-27  Bruno Haible  <bruno@clisp.org>
39419
39420         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
39421         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
39422         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
39423         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
39424         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
39425         * modules/unistr/u16-mbtouc-unsafe: Renamed from
39426         modules/unistr/u16-mbtouc.
39427         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
39428         * lib/unistr.h: Update.
39429         * lib/linebreak.c: Update.
39430         * modules/linebreak: Update.
39431         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
39432         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
39433         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
39434         * modules/unistr/u16-mbtouc: Renamed from
39435         modules/unistr/u16-mbtouc-safe.
39436         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
39437         * lib/unistr.h: Update.
39438         * lib/unistr/u16-to-u8.c: Update.
39439         * modules/unistr/u16-to-u8: Update.
39440         * lib/unistr/u16-to-u32.c: Update.
39441         * modules/unistr/u16-to-u32: Update.
39442
39443 2007-01-27  Bruno Haible  <bruno@clisp.org>
39444
39445         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
39446         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
39447         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
39448         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
39449         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
39450         * modules/unistr/u8-mbtouc-unsafe: Renamed from
39451         modules/unistr/u8-mbtouc.
39452         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
39453         * lib/unistr.h: Update.
39454         * lib/striconveh.c: Update.
39455         * modules/striconveh: Update.
39456         * lib/linebreak.c: Update.
39457         * modules/linebreak: Update.
39458         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
39459         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
39460         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
39461         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
39462         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
39463         * lib/unistr.h: Update.
39464         * lib/striconveh.c: Update.
39465         * modules/striconveh: Update.
39466         * lib/unistr/u8-to-u16.c: Update.
39467         * modules/unistr/u8-to-u16: Update.
39468         * lib/unistr/u8-to-u32.c: Update.
39469         * modules/unistr/u8-to-u32: Update.
39470
39471 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39472
39473         Sync from Libtool.
39474         * lib/argz.c: Do not include strings.h nor memory.h, include
39475         string.h unconditionally.  Patch by Simon Josefsson.
39476
39477 2007-01-27  Bruno Haible  <bruno@clisp.org>
39478
39479         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
39480         from gl_HEADER_STRING_H_BODY.
39481         (gl_HEADER_STRING_H_BODY): Require it.
39482         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
39483         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
39484         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
39485         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
39486         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
39487         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
39488         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39489         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
39490         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
39491         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
39492         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
39493         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
39494         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
39495         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39496         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
39497
39498 2007-01-27  Bruno Haible  <bruno@clisp.org>
39499
39500         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
39501         check_PROGRAMS into noinst_PROGRAMS.
39502         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
39503         check_PROGRAMS in this case.
39504         (func_import): Set for_test to false.
39505         (func_create_testdir): Set for_test to true.
39506
39507 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
39508             Bruno Haible  <bruno@clisp.org>
39509
39510         * modules/strcasestr (Files): Remove lib/strcasestr.h.
39511         (Depends-on): Add string.
39512         (Includes): Use <string.h> instead of strcasestr.h.
39513         * modules/string (Makefile.am): Also substitute the value of
39514         REPLACE_STRCASESTR.
39515         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
39516         assume strcasestr is declared in <string.h> not <strings.h>. Also
39517         set REPLACE_STRCASESTR.
39518         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
39519         REPLACE_STRCASESTR.
39520         * lib/strcasestr.h: Remove file.
39521         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
39522         * lib/string_.h (strcasestr): New declaration.
39523
39524 2007-01-27  Bruno Haible  <bruno@clisp.org>
39525
39526         * lib/string_.h: Use 'extern'.
39527
39528 2007-01-27  Jim Meyering  <jim@meyering.net>
39529
39530         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
39531         of set-but-not-used local, "q".
39532
39533         * lib/mempcpy.c: Include <config.h> before <string.h>.
39534         This fixes a compilation error on HP-UX, due to the system's
39535         "restrict"-using mempcpy prototype.
39536
39537 2007-01-26  Bruno Haible  <bruno@clisp.org>
39538
39539         Small optimization.
39540         * lib/javacomp.c: Include c-strstr.h.
39541          (is_envjavac_gcj): Use c_strstr instead of strstr.
39542         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
39543
39544 2007-01-26  Bruno Haible  <bruno@clisp.org>
39545
39546         * MODULES.html.sh (Unicode string functions): Add the new modules.
39547
39548         * modules/uniconv/u32-strconv-to-locale: New file.
39549         * lib/uniconv/u32-strconv-to-locale.c: New file.
39550
39551         * modules/uniconv/u16-strconv-to-locale: New file.
39552         * lib/uniconv/u16-strconv-to-locale.c: New file.
39553
39554         * modules/uniconv/u8-strconv-to-locale: New file.
39555         * lib/uniconv/u8-strconv-to-locale.c: New file.
39556
39557         * modules/uniconv/u32-strconv-from-locale: New file.
39558         * lib/uniconv/u32-strconv-from-locale.c: New file.
39559
39560         * modules/uniconv/u16-strconv-from-locale: New file.
39561         * lib/uniconv/u16-strconv-from-locale.c: New file.
39562
39563         * modules/uniconv/u8-strconv-from-locale: New file.
39564         * lib/uniconv/u8-strconv-from-locale.c: New file.
39565
39566         * modules/uniconv/u32-strconv-to-enc: New file.
39567         * lib/uniconv/u32-strconv-to-enc.c: New file.
39568         * modules/uniconv/u32-strconv-to-enc-tests: New file.
39569         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
39570
39571         * modules/uniconv/u16-strconv-to-enc: New file.
39572         * lib/uniconv/u16-strconv-to-enc.c: New file.
39573         * lib/uniconv/u-strconv-to-enc.h: New file.
39574         * modules/uniconv/u16-strconv-to-enc-tests: New file.
39575         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
39576
39577         * modules/uniconv/u8-strconv-to-enc: New file.
39578         * lib/uniconv/u8-strconv-to-enc.c: New file.
39579         * modules/uniconv/u8-strconv-to-enc-tests: New file.
39580         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
39581
39582         * modules/uniconv/u32-strconv-from-enc: New file.
39583         * lib/uniconv/u32-strconv-from-enc.c: New file.
39584         * modules/uniconv/u32-strconv-from-enc-tests: New file.
39585         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
39586
39587         * modules/uniconv/u16-strconv-from-enc: New file.
39588         * lib/uniconv/u16-strconv-from-enc.c: New file.
39589         * modules/uniconv/u16-strconv-from-enc-tests: New file.
39590         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
39591
39592         * modules/uniconv/u8-strconv-from-enc: New file.
39593         * lib/uniconv/u8-strconv-from-enc.c: New file.
39594         * lib/uniconv/u-strconv-from-enc.h: New file.
39595         * modules/uniconv/u8-strconv-from-enc-tests: New file.
39596         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
39597
39598         * modules/uniconv/u32-conv-from-enc: New file.
39599         * lib/uniconv/u32-conv-from-enc.c: New file.
39600         * modules/uniconv/u32-conv-from-enc-tests: New file.
39601         * tests/uniconv/test-u32-conv-from-enc.c: New file.
39602
39603         * modules/uniconv/u16-conv-from-enc: New file.
39604         * lib/uniconv/u16-conv-from-enc.c: New file.
39605         * lib/uniconv/u-conv-from-enc.h: New file.
39606         * modules/uniconv/u16-conv-from-enc-tests: New file.
39607         * tests/uniconv/test-u16-conv-from-enc.c: New file.
39608
39609         * modules/uniconv/u8-conv-from-enc: New file.
39610         * lib/uniconv/u8-conv-from-enc.c: New file.
39611         * modules/uniconv/u8-conv-from-enc-tests: New file.
39612         * tests/uniconv/test-u8-conv-from-enc.c: New file.
39613
39614         * modules/uniconv/base: New file.
39615         * lib/uniconv.h: New file.
39616
39617 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
39618
39619         * doc/gnulib-tool.texi (Initial import): Update to match current
39620         behavior with strdup module.
39621         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
39622         * lib/memmem.h: Remove; all uses removed.  This is now done
39623         by <string.h>.
39624         * lib/mempcpy.h: Likewise.
39625         * lib/memrchr.h: Likewise.
39626         * lib/stpcpy.h: Likewise.
39627         * lib/stpncpy.h: Likewise.
39628         * lib/strcase.h: Likewise.
39629         * lib/strchrnul.h: Likewise.
39630         * lib/strdup.h: Likewise.
39631         * lib/strndup.h: Likewise.
39632         * lib/strnlen.h: Likewise.
39633         * lib/strpbrk.h: Likewise.
39634         * lib/strsep.h: Likewise.
39635         * lib/strstr.h: Likewise.
39636         * lib/strtok_r.h: Likewise.
39637         * lib/string_.h: New file.
39638         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
39639         Rely on <string.h> instead.
39640         * lib/canon-host.c: Likewise.
39641         * lib/chdir-long.c: Likewise.
39642         * lib/concatpath.c: Likewise.
39643         * lib/exclude.c: Likewise.
39644         * lib/fchdir.c: Likewise.
39645         * lib/getaddrinfo.c: Likewise.
39646         * lib/getcwd.c: Likewise.
39647         * lib/getsubopt.c: Likewise.
39648         * lib/glob.c: Likewise.
39649         * lib/hard-locale.c: Likewise.
39650         * lib/iconvme.c: Likewise.
39651         * lib/javacomp.c: Likewise.
39652         * lib/mempcpy.c: Likewise.
39653         * lib/memrchr.c: Likewise.
39654         * lib/regex_internal.h: Likewise.
39655         * lib/stpncpy.c: Likewise.
39656         * lib/strcasecmp.c: Likewise.
39657         * lib/strchrnul.c: Likewise.
39658         * lib/strdup.c: Likewise.
39659         * lib/striconv.c: Likewise.
39660         * lib/striconveh.c: Likewise.
39661         * lib/striconveha.c: Likewise.
39662         * lib/strncasecmp.c: Likewise.
39663         * lib/strndup.c: Likewise.
39664         * lib/strnlen.c: Likewise.
39665         * lib/strsep.c: Likewise.
39666         * lib/strstr.c: Likewise.
39667         * lib/strtok_r.c: Likewise.
39668         * lib/userspec.c: Likewise.
39669         * lib/w32spawn.h: Likewise.
39670         * lib/xstrndup.c: Likewise.
39671         * lib/mountlist.c (strstr): Remove decl.
39672         * m4/string_h.m4: New file.
39673         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
39674         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
39675         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
39676         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
39677         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
39678         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
39679         Set REPLACE_STRCASECMP if necessary.
39680         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
39681         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
39682         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
39683         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
39684         HAVE_DECL_STRDUP if necessary.
39685         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
39686         since gl_FUNC_STRNDUP does that now.
39687         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
39688         Check for decl here...
39689         (gl_PREREQ_STRNLEN): ... not here.
39690         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
39691         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
39692         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
39693         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
39694         necessary.
39695         * modules/string: New file.
39696         * modules/memmem (Files): Remove special-purpose include file.
39697         (Depends-on): Add string.
39698         (Include): Include <string.h>, not the removed file.
39699         * modules/mempcpy: Likewise.
39700         * modules/memrchr: Likewise.
39701         * modules/stpcpy: Likewise.
39702         * modules/stpncpy: Likewise.
39703         * modules/strcase: Likewise.
39704         * modules/strchrnul: Likewise.
39705         * modules/strdup: Likewise.
39706         * modules/strndup: Likewise.
39707         * modules/strnlen: Likewise.
39708         * modules/strpbrk: Likewise.
39709         * modules/strsep: Likewise.
39710         * modules/strstr: Likewise.
39711         * modules/strtok_r: Likewise.
39712         * tests/test-dirname.c: Don't include "strdup.h", since
39713         <string.h> now suffices.
39714         * tests/test-memmem.c: Don't include "memmem.h", since
39715         <string.h> now suffices.
39716
39717 2007-01-25  Bruno Haible  <bruno@clisp.org>
39718
39719         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
39720         *resultp is 0.
39721
39722         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
39723         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
39724         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
39725         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
39726
39727         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
39728         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
39729         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
39730         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
39731         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
39732         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
39733
39734 2007-01-24  Bruno Haible  <bruno@clisp.org>
39735
39736         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
39737         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
39738         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
39739         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
39740         gl_FUNC_FTS_CORE.
39741         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
39742         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
39743         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
39744         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
39745         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
39746         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
39747         gl_FUNC_FCHOWNAT.
39748         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
39749         gl_FUNC_STRFTIME.
39750         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
39751         Reported by Ralf Wildenhues.
39752
39753 2007-01-24  Bruno Haible  <bruno@clisp.org>
39754
39755         Drop AC_REQUIRE calls that are redundant with the module dependencies.
39756         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
39757         gl_GETADDRINFO.
39758         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
39759         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
39760         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
39761
39762 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
39763
39764         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
39765         Don't use 'exit'; just return from 'main'.
39766         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
39767
39768         * lib/fnmatch_.h: Readjust white space and comments to match
39769         glibc, to avoid spurious diffs.
39770
39771 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
39772
39773         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
39774         2004-12-01 change by Jakub Jelinek, since this code won't compile
39775         if !LIBC.  Problem reported by Bob Proulx.
39776
39777 2007-01-23  Bruno Haible  <bruno@clisp.org>
39778
39779         * lib/striconveh.c: Include c-strcaseeq.h.
39780         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
39781         * modules/striconveh (Depends-on): Add c-strcaseeq.
39782
39783 2007-01-23  Bruno Haible  <bruno@clisp.org>
39784
39785         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
39786
39787         * modules/c-strcaseeq: New file.
39788         * lib/c-strcaseeq.h: New file.
39789
39790         * modules/streq: New file.
39791         * lib/streq.h: New file.
39792
39793 2007-01-23  Bruno Haible  <bruno@clisp.org>
39794
39795         * modules/striconveha-tests: New file.
39796         * tests/test-striconveha.c: New file.
39797
39798         * lib/striconveha.h: Include <stdbool.h>.
39799         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
39800         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
39801         (mem_iconveha_notranslit): Renamed from mem_iconveha.
39802         (mem_iconveha): New function.
39803         (str_iconveha_notranslit): Renamed from str_iconveha.
39804         (str_iconveha): New function.
39805         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
39806         c-strcase.
39807
39808 2007-01-23  Bruno Haible  <bruno@clisp.org>
39809
39810         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
39811         encodings without forgiving before trying any encoding with handler.
39812         (str_iconveha): Try all encodings without forgiving before trying any
39813         encoding with handler.
39814
39815 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
39816
39817         Import the following changes from libc.
39818
39819         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
39820
39821         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
39822
39823         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
39824
39825         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
39826         normal_bracket label.
39827
39828         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
39829
39830         [BZ #361]
39831         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
39832         to normal_bracket after fetching the next character.
39833
39834 2007-01-22  Bruno Haible  <bruno@clisp.org>
39835
39836         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
39837         argument.
39838         * lib/striconveh.c (iconv_carefully_1): New function.
39839         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
39840         argument.
39841         (str_cd_iconveh): Update.
39842         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
39843         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
39844         * tests/test-striconveh.c (MAGIC): New macro.
39845         (new_offsets): New function.
39846         (main): Test call with and without offsets.
39847
39848 2007-01-22  Bruno Haible  <bruno@clisp.org>
39849
39850         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
39851         * modules/sys_select (Makefile.am): Likewise.
39852         * modules/sys_socket (Makefile.am): Likewise.
39853         * modules/sys_time (Makefile.am): Likewise.
39854
39855 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
39856
39857         * modules/gettimeofday (License): Change from GPL to LGPL, since
39858         gettimeofday is a library function.
39859
39860 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39861
39862         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
39863
39864 2007-01-21  Bruno Haible  <bruno@clisp.org>
39865
39866         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
39867
39868 2007-01-21  Bruno Haible  <bruno@clisp.org>
39869
39870         * modules/striconveha: New file.
39871         * lib/striconveha.h: New file.
39872         * lib/striconveha.c: New file.
39873         * MODULES.html.sh (Internationalization functions): Add striconveha.
39874         * lib/striconv.c (str_iconv): Optimize the case of an empty input
39875         string.
39876         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
39877
39878 2007-01-21  Bruno Haible  <bruno@clisp.org>
39879
39880         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
39881         * lib/striconveh.c (str_iconveh): Likewise.
39882
39883 2007-01-21  Bruno Haible  <bruno@clisp.org>
39884
39885         * lib/striconveh.h (mem_iconveh): New declaration.
39886         * lib/striconveh.c (mem_iconveh): New function.
39887         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
39888
39889 2007-01-21  Bruno Haible  <bruno@clisp.org>
39890
39891         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
39892
39893         * lib/striconveh.h (mem_cd_iconveh): Change specification.
39894         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
39895         original result buffer.
39896         (str_cd_iconveh): Update.
39897         * tests/test-striconveh.c (main): Update.
39898
39899         * lib/striconv.h (mem_cd_iconv): Change specification.
39900         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
39901         result buffer.
39902         (str_cd_iconv): Update.
39903         * tests/test-striconv.c (main): Update.
39904
39905 2007-01-21  Bruno Haible  <bruno@clisp.org>
39906
39907         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
39908
39909 2007-01-20  Jim Meyering  <jim@meyering.net>
39910
39911         * lib/userspec.c (parse_with_separator): If a user or group string
39912         starts with "+", skip the corresponding name-to-ID look-up, since
39913         such a look-up must fail: user and group names may not include "+".
39914
39915 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
39916
39917         * lib/poll.c: Include sys/time.h and time.h unconditionally,
39918         since we now assume the sys_time module.
39919         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
39920         check for sys/time.h; no longer needed.
39921         * modules/poll (Depends-on): Depend on sys_time.
39922
39923 2007-01-18  Bruno Haible  <bruno@clisp.org>
39924
39925         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
39926         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
39927
39928         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
39929         gettimeofday.
39930
39931         * tests/test-gettimeofday.c: Include <time.h>.
39932         (dummy): Remove variable.
39933
39934         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
39935         gl_HEADER_SYS_TIME_H.
39936         (gl_HEADER_SYS_TIME_H): New macro.
39937
39938         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
39939         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39940         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
39941         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
39942         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39943         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
39944         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
39945         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39946         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
39947         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
39948         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39949
39950         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
39951         last change; it caused a compilation error when cross-compiling to
39952         Cygwin.
39953
39954 2007-01-18  Jim Meyering  <jim@meyering.net>
39955
39956         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
39957         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
39958         than the race-prone "test -d sys || mkdir sys".
39959         (configure.ac): Use AC_PROG_MKDIR_P.
39960         * modules/sys_select: Likewise.
39961         * modules/sys_socket: Likewise.
39962         * modules/sys_time: Likewise.
39963
39964 2007-01-18  Eric Blake  <ebb9@byu.net>
39965
39966         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
39967         replace gettimeofday.
39968         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
39969         name, to avoid infinite recursion.
39970
39971 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
39972
39973         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
39974         module sys_time.
39975         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
39976         assume timespec.h defines struct timeval.
39977         * lib/settime.c: Likewise.
39978         * lib/utimens.c: Likewise.
39979         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
39980         since we now assume the gettimeofday module.
39981         * lib/tempname.c (__gen_tempname): Likewise.
39982         * lib/gettimeofday.h: Remove.
39983         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
39984         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
39985         Include <time.h>, for 'time()'.
39986         (localtime_buffer_addr): Also use this workaround if
39987         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
39988         to simplify the uses.  All uses changed.
39989         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
39990         that #undef is inside {}, and 'const' follows type name consistently.
39991         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
39992         (gettimeofday): Do not use the maximum possible value for
39993         tv->tv_usec, since that might break usages other than ls.c.
39994         Instead, we'll leave ls.c alone.  This undoes today's patch
39995         by Bruno.  Add a compile-time warning for 1s-clock resolution;
39996         we've never observed the problem but might as well keep the
39997         canary.
39998         * lib/nanosleep.c: Include timespec.h first, for interface check.
39999         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
40000         now assume the sys_time module.
40001         * lib/tempname.c: Likewise.
40002         * lib/timespec.h: Likewise.
40003         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
40004         needed.
40005         * lib/strftime.c: Likewise.
40006         * lib/timespec.h: Likewise.
40007         * lib/posixtm.c: Include posixtm.h first, for interface check.
40008         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
40009         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
40010         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
40011         * lib/sys_time_.h: New file.
40012         * lib/timespec.h (struct timespec): Use long int, not long.
40013         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
40014         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
40015         Remove obsolescent call to AC_HEADER_TIME.
40016         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
40017         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
40018         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
40019         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
40020         Likewise.
40021         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
40022         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
40023         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
40024         into the sys_time module.  Check for gettimeofday just once.
40025         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
40026         for gettimeofday signature to just check the signature.  Merely
40027         compile it, since linking doesn't test signature.  Improve test for
40028         whether gettimeofday.o is actually needed.
40029         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
40030         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
40031         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
40032         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40033         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
40034         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
40035         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
40036         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
40037         than worrying about sys/time.h.
40038         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
40039         Don't bother worrying about TIME_WITH_SYS_TIME.
40040         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
40041         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
40042         * m4/sys_time_h.m4: New file.
40043         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
40044         Don't include sys/time.h.  Return from main rather than exiting.
40045         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
40046         all uses changed.
40047         * modules/gethrxtime (Depends-on): Add sys_time.
40048         * modules/gettime (Depends-on): Likewise.
40049         * modules/gettimeofday (Depends-on): Likewise.
40050         * modules/nanosleep (Depends-on): Likewise.
40051         * modules/settime (Depends-on): Likewise.
40052         * modules/tempname (Depends-on): Likewise.
40053         * modules/utimens (Depends-on): Likewise.
40054         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
40055         (Include:) Change back to <sys/time.h>.
40056         (Maintainer:) Add self.
40057         * modules/sys_time: New file.
40058         * modules/tempname (Depends-on): Add gettimeofday.
40059         * tests/test-gettimeofday.c: Include <sys/time.h>
40060         rather than gettimeofday.h.
40061
40062 2007-01-17  Bruno Haible  <bruno@clisp.org>
40063
40064         * gnulib-tool (func_get_license): Revert last patch. Instead, let
40065         the license default to GPL.
40066         (func_create_testdir): Don't complain if a module is LGPL and its
40067         tests module depends on GPLed modules.
40068
40069 2007-01-17  Bruno Haible  <bruno@clisp.org>
40070
40071         * lib/gettimeofday.c (gettimeofday): Add code for the case
40072         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
40073         maximum possible value for tv->tv_usec, rather than the minimum one.
40074
40075 2005-10-08  Martin Lambers  <marlam@marlam.de>
40076 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
40077 2007-01-16  Bruno Haible  <bruno@clisp.org>
40078
40079         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
40080         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
40081         gl_FUNC_GETTIMEOFDAY.
40082         (Include): Add gettimeofday.h.
40083         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
40084         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
40085         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
40086         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
40087         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
40088         * lib/gettimeofday.h: New file.
40089         * lib/gettimeofday.c: Include <sys/timeb.h>.
40090         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
40091         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40092         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
40093         fall back on time().
40094
40095         * tests/test-gettimeofday.c: New file.
40096         * modules/gettimeofday-tests: New file.
40097
40098 2007-01-16  Eric Blake  <ebb9@byu.net>
40099
40100         * modules/fnmatch (Depends-on): Depend on wchar.
40101         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
40102         * m4/fnmatch.m4: Likewise.
40103         * modules/mbchar (Makefile.am): Assume <wchar.h>.
40104         * m4/mbchar.m4: Likewise.
40105         * modules/mbswidth (Depends-on): Depend on wchar.
40106         * lib/mbswidth.c: Assume <wchar.h>.
40107         * m4/mbswidth.m4: Likewise.
40108         * modules/quotearg (Depends-on): Depend on wchar.
40109         * lib/quotearg.c: Assume <wchar.h>.
40110         * m4/quotearg.m4: Likewise.
40111         * modules/regex (Depends-on): Depend on wchar.
40112         * lib/regex_internal.h: Assume <wchar.h>.
40113         * m4/regex.m4: Likewise.
40114         * modules/stdint (Depends-on): Depend on wchar.
40115         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
40116         * m4/stdint.m4: Likewise.
40117         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
40118         * modules/strftime (Depends-on): Depend on wchar.
40119         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
40120         * modules/strtol (Depends-on): Depend on wchar.
40121         * lib/strtol.c: Assume <wchar.h>.
40122         * modules/wcwidth (Depends-on): Depend on wchar.
40123         * lib/wcwidth.h: Assume <wchar.h>.
40124         * m4/wcwidth.m4: Likewise.
40125
40126 2007-01-16  Bruno Haible  <bruno@clisp.org>
40127
40128         * modules/csharpexec-script: New, created from...
40129         * modules/csharpexec: ... this.
40130
40131 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
40132
40133         * modules/javaexec-script: New, created from...
40134         * modules/javaexec: ... this.
40135
40136 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40137
40138         * modules/poll (Dependencies): Add sys_select.
40139
40140 2007-01-15  Jim Meyering  <jim@meyering.net>
40141
40142         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
40143         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
40144         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
40145         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
40146
40147 2007-01-15  Bruno Haible  <bruno@clisp.org>
40148
40149         * modules/striconveh: New file.
40150         * lib/striconveh.h: New file.
40151         * lib/striconveh.c: New file.
40152         * MODULES.html.sh (Internationalization functions): Add striconveh.
40153
40154         * modules/striconveh-tests: New file.
40155         * tests/test-striconveh.c: New file.
40156
40157 2007-01-15  Bruno Haible  <bruno@clisp.org>
40158
40159         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
40160         not from GNU libiconv or GNU libc.
40161
40162 2007-01-15  Bruno Haible  <bruno@clisp.org>
40163
40164         * doc/gnulib-intro.texi (Copyright): Explain the different license
40165         terms for module descriptions, autoconf macros, tests, documentation.
40166
40167 2007-01-14  Bruno Haible  <bruno@clisp.org>
40168
40169         * modules/striconv-tests: New file.
40170         * tests/test-striconv.c: New file.
40171
40172 2007-01-14  Bruno Haible  <bruno@clisp.org>
40173
40174         * modules/iconv-tests: New file.
40175         * tests/test-iconv.c: New file.
40176
40177 2007-01-14  Bruno Haible  <bruno@clisp.org>
40178
40179         * gnulib-tool (func_get_license): For test modules, use the license of
40180         the main module.
40181
40182 2007-01-14  Bruno Haible  <bruno@clisp.org>
40183
40184         * modules/iconv (Include): Clarify that <iconv.h> can only be included
40185         if iconv is found to exist.
40186
40187 2007-01-14  Bruno Haible  <bruno@clisp.org>
40188
40189         * modules/c-ctype-tests: New file.
40190         * tests/test-c-ctype.c: New file.
40191
40192 2007-01-14  Bruno Haible  <bruno@clisp.org>
40193
40194         * modules/binary-io-tests: New file.
40195         * tests/test-binary-io.sh: New file.
40196         * tests/test-binary-io.c: New file.
40197
40198 2007-01-14  Bruno Haible  <bruno@clisp.org>
40199
40200         * modules/array-oset-tests: New file.
40201         * tests/test-array_oset.c: New file.
40202
40203 2007-01-14  Bruno Haible  <bruno@clisp.org>
40204
40205         * modules/array-list-tests: New file.
40206         * tests/test-array_list.c: New file.
40207
40208 2007-01-14  Bruno Haible  <bruno@clisp.org>
40209
40210         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
40211         and make.
40212         Reported by Simon Josefsson in
40213         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
40214
40215 2007-01-14  Bruno Haible  <bruno@clisp.org>
40216
40217         * modules/allocsa-tests: New file.
40218         * tests/test-allocsa.c: New file.
40219
40220 2007-01-14  Bruno Haible  <bruno@clisp.org>
40221
40222         * modules/fchdir (Depends-on): Add absolute-header.
40223         * modules/unistd (Depends-on): Likewise.
40224
40225 2006-12-30  Bruno Haible  <bruno@clisp.org>
40226
40227         * modules/fchdir: New file.
40228         * modules/unistd (Files): Add lib/unistd_.h.
40229         (Makefile.am): Generate unistd.h from unistd_.h.
40230         * lib/fchdir.c: New file.
40231         * lib/dirent_.h: New file.
40232         * lib/unistd_.h: New file.
40233         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
40234         * m4/fchdir.m4: New file.
40235         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
40236         (gl_HEADER_UNISTD): Invoke it.
40237         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
40238         function.
40239         * lib/backupfile.c (opendir, closedir): Undefine.
40240         * lib/chown.c (open, close): Undefine.
40241         * lib/clean-temp.c (open, close): Undefine.
40242         * lib/copy-file.c (open, close): Undefine.
40243         * lib/execute.c (open, close): Undefine.
40244         * lib/fsusage.c (open, close): Undefine.
40245         * lib/gc-gnulib.c (open, close): Undefine.
40246         * lib/getcwd.c (opendir, closedir): Undefine.
40247         * lib/glob.c (opendir, closedir): Undefine.
40248         * lib/javacomp.c (open, close): Undefine.
40249         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
40250         * lib/openat-proc.c (open, close): Undefine.
40251         * lib/pagealign_alloc.c (open, close): Undefine.
40252         * lib/pipe.c (open, close): Undefine.
40253         * lib/progreloc.c (open, close): Undefine.
40254         * lib/savedir.c (opendir, closedir): Undefine.
40255         * lib/utime.c (open, close): Undefine.
40256         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
40257
40258 2007-01-10  Bruno Haible  <bruno@clisp.org>
40259
40260         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
40261
40262 2007-01-12  Eric Blake  <ebb9@byu.net>
40263
40264         Provide a robust <wchar.h>.  Further simplifications are now
40265         possible in other modules, but not included here.
40266         * modules/wchar: New module.
40267         * m4/wchar.m4: New file.
40268         * lib/wchar_.h: Likewise.
40269         * modules/mbchar (Depends-on): Depend on wchar, as the first use
40270         of the new module.
40271         * MODULES.html.sh (Extended multibyte and wide character utilities):
40272         New section.
40273
40274 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
40275
40276         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
40277         to a reasonable default for memory allocation.
40278         (xreadlink): Don't allocate a huge buffer, to work around a buggy
40279         file system that reports garbage st_size values for symlinks.
40280         Problem reported by Liyang Hu.
40281
40282 2007-01-11  Simon Josefsson  <simon@josefsson.org>
40283
40284         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
40285         Emacs .#* auto-save files).
40286
40287 2007-01-11  Bruno Haible  <bruno@clisp.org>
40288
40289         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
40290         directory.
40291
40292 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
40293
40294         Use @...@ consistently in lib/wctype_.h.
40295         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
40296         on it being set to 1 or 0.
40297         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
40298         go back to AC_SUBSTing it.
40299         * modules/wctype (Makefile.am): Undo previous change.
40300
40301 2007-01-10  Eric Blake  <ebb9@byu.net>
40302
40303         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
40304         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
40305         * modules/wctype (Makefile.am): Likewise.
40306         Reported by Chris McGuire.
40307
40308 2007-01-10  Jim Meyering  <jim@meyering.net>
40309
40310         fts.c: a small readability/maintainability improvement
40311         * lib/fts.c (fts_read): Make this code slightly more readable and
40312         maintainable by hoisting the "sp->fts_cur = p" assignments to
40313         immediately follow the statements that set P.  Derived from
40314         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
40315
40316 2007-01-10  Eric Blake  <ebb9@byu.net>
40317
40318         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
40319         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
40320         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
40321         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
40322         Reported by Chris McGuire.
40323
40324 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40325
40326         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
40327         in sed script.
40328
40329 2007-01-09  Bruno Haible  <bruno@clisp.org>
40330
40331         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
40332         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
40333         variables.
40334         (func_module): Use them.
40335
40336 2007-01-09  Bruno Haible  <bruno@clisp.org>
40337
40338         * modules/unistr/base: New file.
40339         * lib/unistr.h: New file.
40340
40341         * modules/unistr/u8-to-u16: New file.
40342         * lib/unistr/u8-to-u16.c: New file.
40343
40344         * modules/unistr/u8-to-u32: New file.
40345         * lib/unistr/u8-to-u32.c: New file.
40346
40347         * modules/unistr/u16-to-u8: New file.
40348         * lib/unistr/u16-to-u8.c: New file.
40349
40350         * modules/unistr/u16-to-u32: New file.
40351         * lib/unistr/u16-to-u32.c: New file.
40352
40353         * modules/unistr/u32-to-u8: New file.
40354         * lib/unistr/u32-to-u8.c: New file.
40355
40356         * modules/unistr/u32-to-u16: New file.
40357         * lib/unistr/u32-to-u16.c: New file.
40358
40359         * modules/unistr/u8-check: New file.
40360         * modules/unistr/u16-check: New file.
40361         * modules/unistr/u32-check: New file.
40362         * lib/unistr/u8-check.c: New file.
40363         * lib/unistr/u16-check.c: New file.
40364         * lib/unistr/u32-check.c: New file.
40365
40366         * modules/unistr/u8-chr: New file.
40367         * modules/unistr/u16-chr: New file.
40368         * modules/unistr/u32-chr: New file.
40369         * lib/unistr/u8-chr.c: New file.
40370         * lib/unistr/u16-chr.c: New file.
40371         * lib/unistr/u32-chr.c: New file.
40372
40373         * modules/unistr/u8-cmp: New file.
40374         * modules/unistr/u16-cmp: New file.
40375         * modules/unistr/u32-cmp: New file.
40376         * lib/unistr/u8-cmp.c: New file.
40377         * lib/unistr/u16-cmp.c: New file.
40378         * lib/unistr/u32-cmp.c: New file.
40379
40380         * modules/unistr/u8-cpy: New file.
40381         * modules/unistr/u16-cpy: New file.
40382         * modules/unistr/u32-cpy: New file.
40383         * lib/unistr/u8-cpy.c: New file.
40384         * lib/unistr/u16-cpy.c: New file.
40385         * lib/unistr/u32-cpy.c: New file.
40386         * lib/unistr/u-cpy.h: New file.
40387
40388         * modules/unistr/u8-cpy-alloc: New file.
40389         * modules/unistr/u16-cpy-alloc: New file.
40390         * modules/unistr/u32-cpy-alloc: New file.
40391         * lib/unistr/u8-cpy-alloc.c: New file.
40392         * lib/unistr/u16-cpy-alloc.c: New file.
40393         * lib/unistr/u32-cpy-alloc.c: New file.
40394         * lib/unistr/u-cpy-alloc.h: New file.
40395
40396         * modules/unistr/u8-endswith: New file.
40397         * modules/unistr/u16-endswith: New file.
40398         * modules/unistr/u32-endswith: New file.
40399         * lib/unistr/u8-endswith.c: New file.
40400         * lib/unistr/u16-endswith.c: New file.
40401         * lib/unistr/u32-endswith.c: New file.
40402         * lib/unistr/u-endswith.h: New file.
40403
40404         * modules/unistr/u8-mblen: New file.
40405         * modules/unistr/u16-mblen: New file.
40406         * modules/unistr/u32-mblen: New file.
40407         * lib/unistr/u8-mblen.c: New file.
40408         * lib/unistr/u16-mblen.c: New file.
40409         * lib/unistr/u32-mblen.c: New file.
40410
40411         * modules/unistr/u8-mbtouc: New file.
40412         * modules/unistr/u16-mbtouc: New file.
40413         * modules/unistr/u32-mbtouc: New file.
40414         * lib/unistr/u8-mbtouc.c: New file.
40415         * lib/unistr/u16-mbtouc.c: New file.
40416         * lib/unistr/u32-mbtouc.c: New file.
40417
40418         * modules/unistr/u8-mbtouc-safe: New file.
40419         * modules/unistr/u16-mbtouc-safe: New file.
40420         * modules/unistr/u32-mbtouc-safe: New file.
40421         * lib/unistr/u8-mbtouc-safe.c: New file.
40422         * lib/unistr/u16-mbtouc-safe.c: New file.
40423         * lib/unistr/u32-mbtouc-safe.c: New file.
40424
40425         * modules/unistr/u8-move: New file.
40426         * modules/unistr/u16-move: New file.
40427         * modules/unistr/u32-move: New file.
40428         * lib/unistr/u8-move.c: New file.
40429         * lib/unistr/u16-move.c: New file.
40430         * lib/unistr/u32-move.c: New file.
40431         * lib/unistr/u-move.h: New file.
40432
40433         * modules/unistr/u8-next: New file.
40434         * modules/unistr/u16-next: New file.
40435         * modules/unistr/u32-next: New file.
40436         * lib/unistr/u8-next.c: New file.
40437         * lib/unistr/u16-next.c: New file.
40438         * lib/unistr/u32-next.c: New file.
40439
40440         * modules/unistr/u8-prev: New file.
40441         * modules/unistr/u16-prev: New file.
40442         * modules/unistr/u32-prev: New file.
40443         * lib/unistr/u8-prev.c: New file.
40444         * lib/unistr/u16-prev.c: New file.
40445         * lib/unistr/u32-prev.c: New file.
40446
40447         * modules/unistr/u8-set: New file.
40448         * modules/unistr/u16-set: New file.
40449         * modules/unistr/u32-set: New file.
40450         * lib/unistr/u8-set.c: New file.
40451         * lib/unistr/u16-set.c: New file.
40452         * lib/unistr/u32-set.c: New file.
40453         * lib/unistr/u-set.h: New file.
40454
40455         * modules/unistr/u8-startswith: New file.
40456         * modules/unistr/u16-startswith: New file.
40457         * modules/unistr/u32-startswith: New file.
40458         * lib/unistr/u8-startswith.c: New file.
40459         * lib/unistr/u16-startswith.c: New file.
40460         * lib/unistr/u32-startswith.c: New file.
40461         * lib/unistr/u-startswith.h: New file.
40462
40463         * modules/unistr/u8-stpcpy: New file.
40464         * modules/unistr/u16-stpcpy: New file.
40465         * modules/unistr/u32-stpcpy: New file.
40466         * lib/unistr/u8-stpcpy.c: New file.
40467         * lib/unistr/u16-stpcpy.c: New file.
40468         * lib/unistr/u32-stpcpy.c: New file.
40469         * lib/unistr/u-stpcpy.h: New file.
40470
40471         * modules/unistr/u8-stpncpy: New file.
40472         * modules/unistr/u16-stpncpy: New file.
40473         * modules/unistr/u32-stpncpy: New file.
40474         * lib/unistr/u8-stpncpy.c: New file.
40475         * lib/unistr/u16-stpncpy.c: New file.
40476         * lib/unistr/u32-stpncpy.c: New file.
40477         * lib/unistr/u-stpncpy.h: New file.
40478
40479         * modules/unistr/u8-strcat: New file.
40480         * modules/unistr/u16-strcat: New file.
40481         * modules/unistr/u32-strcat: New file.
40482         * lib/unistr/u8-strcat.c: New file.
40483         * lib/unistr/u16-strcat.c: New file.
40484         * lib/unistr/u32-strcat.c: New file.
40485         * lib/unistr/u-strcat.h: New file.
40486
40487         * modules/unistr/u8-strchr: New file.
40488         * modules/unistr/u16-strchr: New file.
40489         * modules/unistr/u32-strchr: New file.
40490         * lib/unistr/u8-strchr.c: New file.
40491         * lib/unistr/u16-strchr.c: New file.
40492         * lib/unistr/u32-strchr.c: New file.
40493
40494         * modules/unistr/u8-strcmp: New file.
40495         * modules/unistr/u16-strcmp: New file.
40496         * modules/unistr/u32-strcmp: New file.
40497         * lib/unistr/u8-strcmp.c: New file.
40498         * lib/unistr/u16-strcmp.c: New file.
40499         * lib/unistr/u32-strcmp.c: New file.
40500
40501         * modules/unistr/u8-strcpy: New file.
40502         * modules/unistr/u16-strcpy: New file.
40503         * modules/unistr/u32-strcpy: New file.
40504         * lib/unistr/u8-strcpy.c: New file.
40505         * lib/unistr/u16-strcpy.c: New file.
40506         * lib/unistr/u32-strcpy.c: New file.
40507         * lib/unistr/u-strcpy.h: New file.
40508
40509         * modules/unistr/u8-strcspn: New file.
40510         * modules/unistr/u16-strcspn: New file.
40511         * modules/unistr/u32-strcspn: New file.
40512         * lib/unistr/u8-strcspn.c: New file.
40513         * lib/unistr/u16-strcspn.c: New file.
40514         * lib/unistr/u32-strcspn.c: New file.
40515         * lib/unistr/u-strcspn.h: New file.
40516
40517         * modules/unistr/u8-strdup: New file.
40518         * modules/unistr/u16-strdup: New file.
40519         * modules/unistr/u32-strdup: New file.
40520         * lib/unistr/u8-strdup.c: New file.
40521         * lib/unistr/u16-strdup.c: New file.
40522         * lib/unistr/u32-strdup.c: New file.
40523         * lib/unistr/u-strdup.h: New file.
40524
40525         * modules/unistr/u8-strlen: New file.
40526         * modules/unistr/u16-strlen: New file.
40527         * modules/unistr/u32-strlen: New file.
40528         * lib/unistr/u8-strlen.c: New file.
40529         * lib/unistr/u16-strlen.c: New file.
40530         * lib/unistr/u32-strlen.c: New file.
40531         * lib/unistr/u-strlen.h: New file.
40532
40533         * modules/unistr/u8-strmblen: New file.
40534         * modules/unistr/u16-strmblen: New file.
40535         * modules/unistr/u32-strmblen: New file.
40536         * lib/unistr/u8-strmblen.c: New file.
40537         * lib/unistr/u16-strmblen.c: New file.
40538         * lib/unistr/u32-strmblen.c: New file.
40539
40540         * modules/unistr/u8-strmbtouc: New file.
40541         * modules/unistr/u16-strmbtouc: New file.
40542         * modules/unistr/u32-strmbtouc: New file.
40543         * lib/unistr/u8-strmbtouc.c: New file.
40544         * lib/unistr/u16-strmbtouc.c: New file.
40545         * lib/unistr/u32-strmbtouc.c: New file.
40546
40547         * modules/unistr/u8-strncat: New file.
40548         * modules/unistr/u16-strncat: New file.
40549         * modules/unistr/u32-strncat: New file.
40550         * lib/unistr/u8-strncat.c: New file.
40551         * lib/unistr/u16-strncat.c: New file.
40552         * lib/unistr/u32-strncat.c: New file.
40553         * lib/unistr/u-strncat.h: New file.
40554
40555         * modules/unistr/u8-strncmp: New file.
40556         * modules/unistr/u16-strncmp: New file.
40557         * modules/unistr/u32-strncmp: New file.
40558         * lib/unistr/u8-strncmp.c: New file.
40559         * lib/unistr/u16-strncmp.c: New file.
40560         * lib/unistr/u32-strncmp.c: New file.
40561
40562         * modules/unistr/u8-strncpy: New file.
40563         * modules/unistr/u16-strncpy: New file.
40564         * modules/unistr/u32-strncpy: New file.
40565         * lib/unistr/u8-strncpy.c: New file.
40566         * lib/unistr/u16-strncpy.c: New file.
40567         * lib/unistr/u32-strncpy.c: New file.
40568         * lib/unistr/u-strncpy.h: New file.
40569
40570         * modules/unistr/u8-strnlen: New file.
40571         * modules/unistr/u16-strnlen: New file.
40572         * modules/unistr/u32-strnlen: New file.
40573         * lib/unistr/u8-strnlen.c: New file.
40574         * lib/unistr/u16-strnlen.c: New file.
40575         * lib/unistr/u32-strnlen.c: New file.
40576         * lib/unistr/u-strnlen.h: New file.
40577
40578         * modules/unistr/u8-strpbrk: New file.
40579         * modules/unistr/u16-strpbrk: New file.
40580         * modules/unistr/u32-strpbrk: New file.
40581         * lib/unistr/u8-strpbrk.c: New file.
40582         * lib/unistr/u16-strpbrk.c: New file.
40583         * lib/unistr/u32-strpbrk.c: New file.
40584         * lib/unistr/u-strpbrk.h: New file.
40585
40586         * modules/unistr/u8-strrchr: New file.
40587         * modules/unistr/u16-strrchr: New file.
40588         * modules/unistr/u32-strrchr: New file.
40589         * lib/unistr/u8-strrchr.c: New file.
40590         * lib/unistr/u16-strrchr.c: New file.
40591         * lib/unistr/u32-strrchr.c: New file.
40592
40593         * modules/unistr/u8-strspn: New file.
40594         * modules/unistr/u16-strspn: New file.
40595         * modules/unistr/u32-strspn: New file.
40596         * lib/unistr/u8-strspn.c: New file.
40597         * lib/unistr/u16-strspn.c: New file.
40598         * lib/unistr/u32-strspn.c: New file.
40599         * lib/unistr/u-strspn.h: New file.
40600
40601         * modules/unistr/u8-strstr: New file.
40602         * modules/unistr/u16-strstr: New file.
40603         * modules/unistr/u32-strstr: New file.
40604         * lib/unistr/u8-strstr.c: New file.
40605         * lib/unistr/u16-strstr.c: New file.
40606         * lib/unistr/u32-strstr.c: New file.
40607         * lib/unistr/u-strstr.h: New file.
40608
40609         * modules/unistr/u8-strtok: New file.
40610         * modules/unistr/u16-strtok: New file.
40611         * modules/unistr/u32-strtok: New file.
40612         * lib/unistr/u8-strtok.c: New file.
40613         * lib/unistr/u16-strtok.c: New file.
40614         * lib/unistr/u32-strtok.c: New file.
40615         * lib/unistr/u-strtok.h: New file.
40616
40617         * modules/unistr/u8-uctomb: New file.
40618         * modules/unistr/u16-uctomb: New file.
40619         * modules/unistr/u32-uctomb: New file.
40620         * lib/unistr/u8-uctomb.c: New file.
40621         * lib/unistr/u16-uctomb.c: New file.
40622         * lib/unistr/u32-uctomb.c: New file.
40623
40624         * MODULES.html.sh (Unicode string functions): Add the new modules.
40625
40626 2007-01-08  Bruno Haible  <bruno@clisp.org>
40627
40628         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
40629         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
40630         subdirectories.
40631
40632 2007-01-08  Karl Berry  <karl@gnu.org>
40633
40634         * doc/error.texi: mention that main() fns must set program_name
40635         when progname is used.
40636
40637 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
40638
40639         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
40640         WCTYPE_H is empty, for the benefit of builds from non-distclean
40641         directories.  Problem reported by Eric Blake in
40642         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
40643
40644 2007-01-08  Bruno Haible  <bruno@clisp.org>
40645
40646         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
40647         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
40648         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
40649         PROVIDE_CANONICALIZE_FILENAME_MODE.
40650         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
40651
40652 2007-01-08  Bruno Haible  <bruno@clisp.org>
40653
40654         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
40655         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
40656         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
40657         * lib/fts.c: Likewise.
40658         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
40659
40660 2006-12-25  Bruno Haible  <bruno@clisp.org>
40661
40662         * modules/utf8-ucs4-safe: New file.
40663         * lib/utf8-ucs4-safe.h: New file.
40664         * lib/unistr/utf8-ucs4-safe.c: New file.
40665
40666         * modules/utf16-ucs4-safe: New file.
40667         * lib/utf16-ucs4-safe.h: New file.
40668         * lib/unistr/utf16-ucs4-safe.c: New file.
40669
40670         * MODULES.html.sh (Unicode string functions): Add the new modules.
40671
40672 2007-01-08  Bruno Haible  <bruno@clisp.org>
40673
40674         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
40675         (Depends-on): Add unitypes.
40676         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
40677         (u8_mbtouc_aux): Move out to separate file.
40678         (u8_mbtouc): Use ucs4_t, uint8_t types.
40679         * lib/unistr/utf8-ucs4.c: New file.
40680
40681         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
40682         (Depends-on): Add unitypes.
40683         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
40684         (u16_mbtouc_aux): Move out to separate file.
40685         (u16_mbtouc): Use ucs4_t, uint16_t types.
40686         * lib/unistr/utf16-ucs4.c: New file.
40687
40688         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
40689         (Depends-on): Add unitypes.
40690         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
40691         (u8_uctomb_aux): Move out to separate file.
40692         (u8_uctomb): Use ucs4_t, uint8_t types.
40693         * lib/unistr/ucs4-utf8.c: New file.
40694
40695         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
40696         (Depends-on): Add unitypes.
40697         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
40698         (u16_uctomb_aux): Move out to separate file.
40699         (u16_uctomb): Use ucs4_t, uint16_t types.
40700         * lib/unistr/ucs4-utf16.c: New file.
40701
40702 2006-12-25  Bruno Haible  <bruno@clisp.org>
40703
40704         * modules/unitypes: New file.
40705         * lib/unitypes.h: New file.
40706         * MODULES.html.sh (func_all_modules): New section "Unicode string
40707         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
40708         this section. Add unitypes.
40709
40710 2007-01-08  Bruno Haible  <bruno@clisp.org>
40711
40712         Avoid variable names that conflict with those from libtool.
40713         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
40714         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
40715         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
40716         library_names_spec to acl_library_names_spec, hardcode_* to
40717         acl_hardcode_*.
40718         Reported by Ralf Wildenhues.
40719
40720 2007-01-08  Bruno Haible  <bruno@clisp.org>
40721
40722         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
40723         definition.
40724         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
40725         definition.
40726         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
40727         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
40728         definition.
40729         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
40730         definition.
40731         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
40732         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
40733         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
40734         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
40735         definition.
40736         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
40737         definition.
40738         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
40739         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
40740         GC_USE_<algorithm>.
40741         * lib/gc-libgcrypt.c: Likewise.
40742         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
40743         * modules/gc-arctwo (configure.ac): Likewise.
40744         * modules/gc-des (configure.ac): Likewise.
40745         * modules/gc-hmac-md5 (configure.ac): Likewise.
40746         * modules/gc-hmac-sha1 (configure.ac): Likewise.
40747         * modules/gc-md2 (configure.ac): Likewise.
40748         * modules/gc-md4 (configure.ac): Likewise.
40749         * modules/gc-md5 (configure.ac): Likewise.
40750         * modules/gc-random (configure.ac): Likewise.
40751         * modules/gc-rijndael (configure.ac): Likewise.
40752         * modules/gc-sha1 (configure.ac): Likewise.
40753
40754 2007-01-08  Bruno Haible  <bruno@clisp.org>
40755
40756         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
40757         macro definition.
40758         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
40759         definition.
40760         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
40761         definition.
40762         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
40763         * modules/fcntl-safer (configure.ac): Likewise.
40764         * modules/fopen-safer (configure.ac): Likewise.
40765         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
40766         GNULIB_FWRITEERROR macro definition.
40767
40768 2007-01-08  Bruno Haible  <bruno@clisp.org>
40769
40770         * m4/gnulib-common.m4: New file.
40771         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
40772         (func_get_filelist): Add m4/gnulib-common.m4.
40773
40774 2007-01-08  Bruno Haible  <bruno@clisp.org>
40775
40776         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
40777         command.
40778
40779 2007-01-08  Jim Meyering  <jim@meyering.net>
40780
40781         Use a more robust test for a "can't happen" condition.
40782         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
40783         narrowed the st_size value.  Presuming the "can't happen" condition
40784         is true, that narrowing could conceivably convert an invalid st_size
40785         value into a valid one.  Instead, use a change based on Matthew
40786         Woehlke's original patch.
40787
40788         Slight readability improvement: use an assert-like macro
40789         in place of literal "abort ()" uses.
40790         * lib/fts.c (fts_assert): Define.
40791         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
40792         Use this macro instead of a bare 'abort'.
40793
40794 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
40795
40796         Don't worry about using IRIX 5.3's wctype.h broken definitions;
40797         simply work around them.
40798         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
40799         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
40800         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
40801         declaring.
40802         Don't bother to define as macros, since the standard doesn't require it.
40803         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
40804         longer worry about IRIX 5.3.
40805         (HAVE_WCTYPE_CTMP_BUG): Remove.
40806
40807 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
40808
40809         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
40810         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
40811         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
40812         Problems reported by Georg Schwarz for IRIX 5.3.
40813
40814         * gnulib-tool (autoconf_minversion): Take the maximum version number
40815         found, not the minimum.  Problem reported by James Youngman.
40816
40817 2007-01-03  Karl Berry  <karl@gnu.org>
40818
40819         * doc/error.texi: new file, explaining interaction with progname.
40820         * doc/gnulib.texi: include it.  Update copyright.
40821
40822 2007-01-03  Simon Josefsson  <simon@josefsson.org>
40823
40824         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
40825         AC_CANONICAL_HOST, to improve autobuild outputs.
40826
40827 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
40828             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
40829
40830         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
40831         sockets, server sockets, and other file descriptors.  Count errors
40832         to compute the return value.  Reorder the code a bit to be easier
40833         to follow.  Don't set event bits that were not requested (except
40834         POLLERR and POLLHUP).
40835
40836 2007-01-01  Bruno Haible  <bruno@clisp.org>
40837
40838         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
40839
40840 2007-01-03  Jim Meyering  <jim@meyering.net>
40841
40842         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
40843
40844 2007-01-02  Bruno Haible  <bruno@clisp.org>
40845
40846         * modules/settime (Include): Require timespec.h.
40847         * modules/nanosleep (Include): Likewise.
40848
40849 2007-01-01  Bruno Haible  <bruno@clisp.org>
40850
40851         * gnulib-tool (func_emit_copyright_notice): Bump year.
40852         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
40853
40854 2007-01-01  Bruno Haible  <bruno@clisp.org>
40855
40856         Improve support for OpenBSD.
40857         * build-aux/config.rpath (libname_spec): Export.
40858         (library_names_spec): New variable. Export.
40859         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
40860         library_names_spec from the config.rpath output. Locate shared library
40861         through the name pattern in library_names_spec.
40862
40863 2007-01-01  Eric Blake  <ebb9@byu.net>
40864
40865         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
40866
40867 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
40868
40869         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
40870         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
40871         assume the C locale, and avoid an "eval" that could cause trouble.
40872         Problem with SORT reported by Bob Proulx.
40873
40874         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
40875         Define.  Trivial patch from Henning Nielsen Lund, originally
40876         sent to bug-grep@gnu.org today.
40877
40878 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
40879
40880         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
40881         struct stat.  Problem reported by Henning Nielsen Lund.
40882         * lib/acl.c: Include acl.h first, to check interface.  Don't
40883         bother to include sys/types.h and sys/stat.h again.
40884
40885 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
40886
40887         Import the following change from libc; problem reported by
40888         Sven Verdoolaege.
40889
40890         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
40891
40892         [BZ #1373]
40893         * lib/argp.h: Remove __NTH for __argp_usage inline function.
40894
40895 2006-12-28  Jim Meyering  <jim@meyering.net>
40896
40897         * build-aux/announce-gen: Do not assume that the package
40898         builds any of tar.gz, tar.bz2, and .xdelta files.
40899         Suggestion from Simon Josefsson.
40900
40901 2006-12-28  Simon Josefsson  <simon@josefsson.org>
40902
40903         * modules/announce-gen: New file.
40904
40905 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
40906
40907         * lib/mbchar.h: Just include <wctype.h>; the wctype module
40908         handles its gotchas now.
40909         * lib/mbswidth.c: Likewise.
40910         * lib/wcwidth.h: Likewise.
40911         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
40912         and iswcntrl; the wctype module does this stuff now.
40913         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
40914         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
40915         * modules/mbchar (Depends-on): Add wctype.
40916         * modules/mbswidth (Depends-on): Likewise.
40917         * modules/wcwidth (Depends-on): Likewise.
40918
40919 2006-12-27  Eric Blake  <ebb9@byu.net>
40920
40921         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
40922         module uses more than what <wctype.h> is required to provide.
40923
40924 2006-12-26  Eric Blake  <ebb9@byu.net>
40925
40926         * gnulib-tool (sed_extract_prog): Avoid space-tab.
40927
40928 2006-12-26  Eric Blake  <ebb9@byu.net>
40929
40930         * modules/absolute-header: New module.
40931         * modules/fcntl (Depends-on): Depend on it.
40932         * modules/inttypes (Depends-on): Likewise.
40933         * modules/stdint (Depends-on): Likewise.
40934         * modules/sys_stat (Depends-on): Likewise.
40935         * modules/wctype (Depends-on): Likewise.
40936         * MODULES.html.sh (Support for building libraries and
40937         executables): Document it.
40938
40939 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
40940
40941         * gnulib-tool (SED): Remove, undoing previous change.
40942         The problem was that it broke coreutils on Solaris, because
40943         "sed --posix" leaked into a makefile.
40944         (sed): New alias, if 'alias' and GNU sed.
40945
40946 2006-12-24  Jim Meyering  <jim@meyering.net>
40947
40948         Work around an fchownat bug in glibc-2.4:
40949         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
40950         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
40951         in spite of the -P option.
40952         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
40953         New macros.
40954         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
40955         * modules/openat (Files): Add lib/fchownat.c.
40956         * lib/openat.c (fchownat): Don't define here.  Move to...
40957         * lib/fchownat.c: ...this new file.
40958
40959 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
40960
40961         Fix bug reported by Bruno Haible in
40962         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
40963         where quotearg.c didn't compile on Mac OS X 10.2 because it
40964         lacks <wchar.h> and wint_t.
40965         * lib/wctype_.h (__wctype_wint_t): New type.
40966         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
40967         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
40968         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
40969         Arg is now of type __wctype_wint_t, not wint_t.
40970         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
40971         substitute HAVE_WINT_T.
40972         * modules/wctype (Files): Add m4/wint_t.m4.
40973         (wctype.h): Substitute HAVE_WINT_T.
40974
40975 2006-12-23  Bruno Haible  <bruno@clisp.org>
40976
40977         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
40978
40979 2006-12-23  Bruno Haible  <bruno@clisp.org>
40980
40981         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
40982         S_ISLNK.
40983         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
40984         mingw.
40985
40986 2006-12-22  Bruno Haible  <bruno@clisp.org>
40987
40988         * lib/copy-file.c: Include acl.h.
40989         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
40990         Close the file descriptors only after being done with copy_acl.
40991         * modules/copy-file (Depends-on): Add acl.
40992
40993 2006-12-22  Bruno Haible  <bruno@clisp.org>
40994
40995         * gnulib-tool (SED): New variable.
40996         Use $SED instead of sed everywhere.
40997
40998 2006-12-22  Bruno Haible  <bruno@clisp.org>
40999
41000         * modules/no-c++: New file.
41001         * m4/no-c++.m4: New file.
41002         * MODULES.html.sh (Support for building libraries and executables):
41003         Add no-c++.
41004
41005 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
41006
41007         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
41008         Include <limits.h>, and use its INT_MAX to rewrite the
41009         j loop so that it does not overflow 'int'.  Problem reported by
41010         Ralf Wildenhues in
41011         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
41012         Play it safe by shifting left by 1 rather than multiplying by 2,
41013         as GCC is less likely to optimize this away when the value
41014         is signed (when it assumes overflow leads to undefined behavior).
41015         Also, don't assume time_t uses two's complement.
41016
41017 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
41018
41019         * MODULES.html.sh: New module wctype.
41020         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
41021         * lib/fnmatch.c: Don't bother to include <wchar.h> before
41022         <wctype.h>, since the new wctype module should fix this.
41023         * lib/quotearg.c: Include <wctype.h> unconditionally, since
41024         the wctype module should arrange for it.
41025         * lib/regex_internal.h: Likewise.
41026         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
41027         since the wctype module should handle this now.
41028         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
41029         * modules/fnmatch (Depends-on): Add wctype.
41030         * modules/quotearg (Depends-on): Likewise.
41031         * modules/regex (Depends-on): Likewise.
41032
41033 2006-12-19  Bruno Haible  <bruno@clisp.org>
41034
41035         * lib/strdup.h [C++]: Wrap definitions in extern "C".
41036         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
41037
41038 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41039
41040         * modules/savewd (Depends-on): Fix dependency on fcntl.
41041
41042 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
41043
41044         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
41045         conforms to C99, rather than relying on the user's environment
41046         setting of STDINT_H.
41047
41048 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
41049         and Eric Blake  <ebb9@byu.net>
41050
41051         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
41052         This is more consistent with the other defines here.
41053         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
41054         Port to z/OS.  Problem reported by Paul Gilmartin.
41055         Change local vars to use gl_ prefix rather than ac_.
41056         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
41057         with other defines.
41058         * modules/double-slash-root: New module.
41059         * modules/dirname (Files): Remove m4/double-slash-root.m4.
41060         (Depends-on): Add double-slash-root.
41061         * MODULES.html.sh (File system functions): Mention new module.
41062
41063 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
41064
41065         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
41066         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
41067         This is for the benefit of gzip, which doesn't do i18n.
41068
41069 2006-12-12  Jim Meyering  <jim@meyering.net>
41070
41071         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
41072         Reported by Andreas Schwab <schwab@suse.de>.
41073
41074 2006-12-12  Bruno Haible  <bruno@clisp.org>
41075
41076         Merge these changes.
41077         2006-09-05  Bruno Haible  <bruno@clisp.org>
41078         * lib/iconvme.c (iconv_string): No need to save and restore errno when
41079         iconv_alloc succeeded.
41080         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
41081         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
41082         test for " && dest " at the end - dest is always != NULL there. Call
41083         iconv with 4xNULL arguments initially, to reset the state. Call iconv
41084         with 2xNULL arguments, also to flush the state storage. Handle the
41085         IRIX iconv behaviour. Realloc the final result, to throw away unused
41086         memory.
41087
41088 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
41089
41090         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
41091         and fchmodat unconditionally, since glibc 2.4 has them.
41092         Problem reported by Arkadiusz Miskiewicz.
41093
41094 2006-12-10  Bruno Haible  <bruno@clisp.org>
41095
41096         * gnulib-tool (func_import): Show the include files only for those
41097         modules that are copied and specified.
41098         Reported by Karl Berry.
41099
41100 2006-12-08  Jim Meyering  <jim@meyering.net>
41101
41102         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
41103         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
41104
41105         * build-aux/announce-gen: Add two new options, both optional:
41106         --bootstrap-tools=TOOL_LIST
41107               a comma-separated list of tools, e.g.,
41108               autoconf,automake,bison,gnulib
41109         --gnulib-snapshot-date=DATE
41110               if gnulib is in the bootstrap tool list,
41111               then report this as the snapshot date.
41112               If not specified, use the current date/time.
41113               If you specify a date here, be sure it's UTC.
41114
41115 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41116
41117         * tests/test-argp-2.sh: Fix test to match actual output.
41118         (func_compare): Fix sed script to be portable.
41119
41120 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
41121
41122         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
41123         workaround for this case.  It is not autoconfigured now; offhand
41124         it's hard to see how to autoconfigure it.
41125
41126 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
41127
41128         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
41129         a directory that is about to be chowned.  Such a directory's
41130         initial file permissions should permit the owner only and this
41131         should not be changed until after the chown, since the group and
41132         other bits would be incorrect if they granted permission before
41133         the chown.
41134
41135         Fix porting problem for iswctype reported by Georg Schwarz in:
41136         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
41137         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
41138         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
41139         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
41140         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
41141
41142 2006-12-03  Jim Meyering  <jim@meyering.net>
41143
41144         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
41145         p->fts_statp may not yet be defined.
41146         (fts_read): Instead, set it in the caller, once p->fts_statp is
41147         sure to be defined, and corresponds to a top-level directory.
41148         This bug made du -x fail.  Here's the coreutils test case:
41149         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
41150         Reported by Mike Frysinger.
41151
41152 2006-12-01  Jim Meyering  <jim@meyering.net>
41153
41154         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
41155         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
41156         Reported by Simon Josefsson.
41157
41158 2006-11-30  Jim Meyering  <jim@meyering.net>
41159
41160         * m4/warning.m4: Use the all-permissive copyright notice
41161         recommended by RMS (rather than LGPL).
41162         * m4/vararrays.m4: Likewise.
41163         * m4/flexmember.m4: Likewise.
41164
41165 2006-11-29  Bruno Haible  <bruno@clisp.org>
41166
41167         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
41168         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
41169         using +=.
41170         Reported by Simon Josefsson <simon@josefsson.org>.
41171
41172 2006-11-28  James Youngman <jay@gnu.org>
41173
41174         * README: Advise users that they might find the bug-gnulib@gnu.org
41175         and autotools-announce@gnu.org mailing lists useful.
41176
41177 2006-11-28  Bruno Haible  <bruno@clisp.org>
41178
41179         * m4/ptrdiff_max.m4: Remove file.
41180
41181 2006-11-21  Bruno Haible  <bruno@clisp.org>
41182
41183         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
41184         _AC_COMPUTE_INT.
41185         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
41186         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
41187         _AC_COMPUTE_INT.
41188         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
41189         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
41190         _AC_COMPUTE_INT.
41191         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
41192
41193 2006-11-28  Jim Meyering  <jim@meyering.net>
41194
41195         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
41196         warning from "gcc -Wshadow" about shadowing the builtin.
41197
41198 2006-11-27  Bruno Haible  <bruno@clisp.org>
41199
41200         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
41201         _AC_COMPUTE_INT.
41202         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
41203
41204 2006-11-27  Bruno Haible  <bruno@clisp.org>
41205             Paul Eggert  <eggert@cs.ucla.edu>
41206
41207         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
41208
41209 2006-11-26  Bruno Haible  <bruno@clisp.org>
41210
41211         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
41212         noinst_LTLIBRARIES.
41213
41214 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
41215             Bruno Haible  <bruno@clisp.org>
41216
41217         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
41218         if compiling with "gcc -ansi".
41219
41220 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
41221
41222         Fix some incompatibilities with gcc -ansi -pedantic.
41223         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
41224         if compiling pedantically with GCC, unless it's C99 or later.
41225         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
41226         it mishandles gcc -ansi -pedantic as well.
41227         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
41228         if gcc -pedantic.
41229         * lib/regexec.c (check_node_accept_bytes): Don't use auto
41230         initializers for struct if -pedantic, unless it's C99 or later.
41231
41232 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
41233
41234         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
41235         Don't close an fd more than once. Identical atimes indicate
41236         success, not failure.
41237
41238 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
41239
41240         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
41241
41242 2006-11-23  Jim Meyering  <jim@meyering.net>
41243
41244         * build-aux/announce-gen: New file.  From coreutils.
41245
41246 2006-11-22  Jim Meyering  <jim@meyering.net>
41247
41248         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
41249         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
41250         (fts_read): Use a temporary to narrow the overused st_size member
41251         before using it in a switch statement.  Reported by Matthew Woehlke.
41252
41253         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
41254         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
41255
41256 2006-11-20  Bruno Haible  <bruno@clisp.org>
41257
41258         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
41259         changequote instead of pairs of brackets.
41260         Reported by Andreas Schwab <schwab@suse.de>.
41261
41262 2006-11-21  Jim Meyering  <jim@meyering.net>
41263
41264         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
41265         so as to remain compatible with older compilers.
41266         Patch from Michael Deutschmann.
41267
41268 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
41269
41270         * MODULES.html.sh (File system functions): Add openat.
41271
41272         * lib/openat.h (rpl_fstatat): New macro, if
41273         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
41274         (fstatat): Define to rpl_fstatat under the same conditions,
41275         unless COMPILING_FSTATAT.
41276         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
41277         seems to have the bug.
41278         * lib/fstatat.c: New file.
41279         * modules/openat (Files): Add it.
41280
41281 2006-11-20  Bruno Haible  <bruno@clisp.org>
41282
41283         * Makefile: New file.
41284
41285 2006-11-20  Jim Meyering  <jim@meyering.net>
41286
41287         The beginnings of syntax-related checks for gnulib.
41288         * lib/Makefile: New file.
41289         * lib/t-idcache: New script.  Ensure that the two halves of
41290         idcache.c stay in sync.
41291
41292         * lib/idcache.c: Adjust comments in user- and group- portions to
41293         be more accurate, and to be consistent with one another.
41294
41295 2006-11-20  Jim Meyering  <jim@meyering.net>
41296
41297         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
41298         continue using the flexible array member (thus, this module performs
41299         half as many malloc calls), with the addition that...
41300         (getgroup, getuser): Consistently record a non-match via an empty
41301         "name" string, and map an empty string match to a NULL return value.
41302         * modules/idcache (Depends-on): Re-add flexmember.
41303
41304         * lib/idcache.c (getuser): Remove all uses of the register keyword.
41305         (getuidbyname, getgroup, getgidbyname): Likewise.
41306
41307         Use cleaner syntax: NULL rather than 0.
41308         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
41309
41310 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
41311
41312         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
41313         It mishandled the case where the group was missing.
41314         Problem reported by Greg Schafer.
41315         * modules/idcache: Likewise.
41316
41317 2006-11-18  Jim Meyering  <jim@meyering.net>
41318
41319         * check-module (%exempt_header): Add exception for some
41320         conditionally-included headers.
41321
41322         * modules/i-ring (Depends-on): Add verify.
41323         (License): Change to LGPL.
41324
41325 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
41326
41327         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
41328         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
41329         and inttostr.h.  Use snprintf rather than uinttostr, so that
41330         LGPLed code doesn't depend on GPLed.
41331
41332 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
41333
41334         * modules/inline (License): Change from GPL to LGPL.
41335
41336 2006-11-17  Jim Meyering  <jim@meyering.net>
41337
41338         * modules/d-type (License): Switch to LGPL.
41339
41340 2006-11-15  Bruno Haible  <bruno@clisp.org>
41341
41342         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
41343
41344 2006-11-15  Eric Blake  <ebb9@byu.net>
41345
41346         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
41347         the module dependency.
41348
41349 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41350             Bruno Haible  <bruno@clisp.org>
41351
41352         * gnulib-tool (func_create_testdir): Add license consistency check.
41353
41354 2006-11-15  Eric Blake  <ebb9@byu.net>
41355
41356         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
41357         random "(cached)" in configure output.
41358
41359 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41360
41361         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
41362         test for conforming inttypes.h is both announced and cached.
41363
41364         * MODULES.html.sh (seen_modules, seen_files): New variables.
41365         (func_module): Rewrite to use a few less gnulib-tool and sed
41366         invocations.  Avoid a couple of quadratic algorithms for ...
41367         (missed_modules, missed_files): ... these, with ...
41368         (func_append, func_tmpdir): ... these new functions, from
41369         gnulib-tool.  Analogously, install traps for cleanup.
41370
41371         * tests/test-gc.c (main): Remove unused variables.
41372         * tests/test-read-file.c: Include stdlib.h, for 'free'.
41373
41374 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
41375
41376         * modules/inttostr (License): Change to LGPL.
41377
41378 2006-11-14  Eric Blake  <ebb9@byu.net>
41379
41380         * modules/tempname (License): Change to LGPL.
41381
41382 2006-11-14  Eric Blake  <ebb9@byu.net>
41383
41384         * doc/functions.texi (Function Portability): *printf functions on
41385         Cygwin now understand all POSIX size specifiers.
41386
41387 2006-11-14  Bruno Haible  <bruno@clisp.org>
41388
41389         * modules/c-ctype (License): Change to LGPL.
41390
41391 2006-11-12  Bruno Haible  <bruno@clisp.org>
41392
41393         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
41394         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
41395         for GNOME libraries, for which the include files are installed in
41396         subdirectories of $prefix/include.
41397
41398 2006-11-12  Bruno Haible  <bruno@clisp.org>
41399
41400         * m4/lib-link.m4: Require at least autoconf-2.54.
41401         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
41402         name to underscores for the --with option.
41403
41404 2006-11-13  Bruno Haible  <bruno@clisp.org>
41405
41406         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
41407         the tests directory.
41408         Reported by Ralf Wildenhues.
41409
41410 2006-11-13  Bruno Haible  <bruno@clisp.org>
41411
41412         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
41413         (func_emit_initmacro_end): Undo the override here.
41414         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
41415         Works around the famous automake error in coreutils.
41416
41417 2006-11-13  Eric Blake  <ebb9@byu.net>
41418
41419         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
41420         element, not its node.
41421
41422 2006-11-12  Bruno Haible  <bruno@clisp.org>
41423
41424         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
41425         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
41426
41427 2006-11-12  Bruno Haible  <bruno@clisp.org>
41428
41429         * gnulib-tool: New option --local-symlink.
41430         (func_usage): Document it.
41431         (lsymbolic): New variable.
41432         (func_import, func_create_testdir): If --symlink was not specified,
41433         test whether --local-symlink was specified and the file comes from
41434         the local_gnulib_dir.
41435
41436 2006-11-12  Bruno Haible  <bruno@clisp.org>
41437
41438         * gnulib-tool (func_ln): New function.
41439         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
41440
41441 2006-11-12  Bruno Haible  <bruno@clisp.org>
41442
41443         Finish support for source files in subdirectories.
41444         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
41445         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
41446         AUTOMAKE_OPTIONS.
41447         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
41448
41449 2006-11-12  Bruno Haible  <bruno@clisp.org>
41450
41451         * gnulib-tool (func_get_automake_snippet): Synthesize also an
41452         EXTRA_lib_SOURCES augmentation.
41453         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
41454
41455 2006-11-12  Jim Meyering  <jim@meyering.net>
41456
41457         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
41458         file descriptors.  This also averts a failure on systems with
41459         native openat support when a traversed directory lacks "x" access.
41460         * lib/fts_.h: Include "i-ring.h"
41461         (struct FTS) [fts_fd_ring]: New member.
41462         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
41463         (FCHDIR): Add parentheses.
41464         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
41465         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
41466         When descending, rather than simply closing the previous
41467         fts_cwd_fd value, push that file descriptor onto the ring.
41468         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
41469         (fts_open): Initialize the new fd_ring member.
41470         (fts_close): Clear the ring.
41471         (fts_safe_changedir): When possible, use our new fd_ring to skip
41472         the diropen and fstat and dev/ino comparison that would normally
41473         accompany a virtual `chdir ("..")'.
41474
41475         * modules/fts (Depends-on): Add i-ring.
41476         * modules/i-ring: New module.
41477         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
41478         * m4/i-ring.m4: New file.
41479
41480 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41481
41482         * gnulib-tool (func_create_testdir): Fix replacement of
41483         `build-aux' in configure.ac.  Run autotools in gltests
41484         subdirectory.
41485         (func_create_testdir, func_create_megatestdir, test): There is
41486         no need for '--force' in most autotool invocations in a new
41487         tree.  Actually fail the whole test if any of the tools, or the
41488         configure or make stages fail.
41489
41490         Sync from Automake.
41491         * build-aux/gnupload: Revert last change.  Add pointer to upload
41492         instructions of the GNU Maintenance Instructions.
41493         Suggestion by Karl Berry.
41494
41495 2006-11-10  Jim Meyering  <jim@meyering.net>
41496
41497         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
41498
41499 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
41500
41501         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
41502         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
41503         (bind_textdomain_codeset) [! ENABLE_NLS]:
41504         Evaluate all the arguments.  That way, callers get compatible behavior
41505         if the arguments have side effects.  Also, it avoids some GCC
41506         diagnostics in some cases; Joel E. Denny reported problems when Bison
41507         was configured with --enable-gcc-warnigs.
41508
41509 2006-11-10  Jim Meyering  <jim@meyering.net>
41510
41511         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
41512         relevant options in CFLAGS (like -O, -fno-inline) are taken into
41513         account.
41514
41515 2006-11-10  Jim Meyering  <jim@meyering.net>
41516
41517         * modules/inline: New file/module.
41518         * modules/xalloc (Files): Remove m4/inline.m4.
41519         (Depends-on): Add inline, instead.
41520         * modules/oset: Likewise.
41521         * modules/list: Likewise.
41522
41523 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
41524
41525         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
41526         Problem reported by Matthew Woehlke.
41527
41528 2006-11-09  Bruno Haible  <bruno@clisp.org>
41529
41530         * lib/tempname.c (gen_tempname): Remove variant that invokes
41531         __gen_tempname.
41532         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
41533         __gen_tempname.
41534
41535 2006-11-08  Bruno Haible  <bruno@clisp.org>
41536
41537         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
41538         to 'yes' instead of 'cross-compiling'.
41539
41540 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
41541
41542         * lib/quotearg.h (quotearg_free): New decl.
41543         * lib/quotearg.c (quotearg_free): New function.
41544         (slot0, nslots, slotvec0, slotvec):
41545         Now file-scope so that quotearg_free can get at them.
41546
41547 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41548
41549         Sync from Automake.
41550         * build-aux/gnupload: Add missing 'gnu' to example URL.
41551         Report by Karl Berry.
41552
41553 2006-11-08  Bruno Haible  <bruno@clisp.org>
41554
41555         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
41556         Suggested by Paul Eggert.
41557
41558 2006-11-08  Jim Meyering  <jim@meyering.net>
41559
41560         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
41561         It's already included if !_LIBC.
41562         (fts_safe_changedir): Add a comment.
41563
41564 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
41565
41566         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
41567         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
41568         Matthew Woehlke.
41569
41570         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
41571         definitions up, to avoid colliding with change below.
41572         (static_inline) [HAVE_INLINE]: New macro.
41573         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
41574         Provide extern decls when !HAVE_INLINE.  Do not define unless
41575         static_inline is defined, either by us or by xmalloc.c.  Use
41576         static_inline rather than static inline.
41577         (XCALLOC): Optimize sizeof(T) = 1 case.
41578         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
41579
41580 2006-11-07  Bruno Haible  <bruno@clisp.org>
41581
41582         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
41583         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
41584         AC_C_INLINE.
41585         * modules/xalloc (Files): Add m4/inline.m4.
41586
41587 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41588
41589         * README: Fix typo.
41590         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
41591         (Miscellanous Notes): ...from this.
41592
41593 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
41594
41595         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
41596         Mention that offsetof should be used instead of sizeof.
41597         From Bruno Haible.
41598
41599 2006-11-07  Bruno Haible  <bruno@clisp.org>
41600
41601         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
41602
41603 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
41604
41605         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
41606         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
41607         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
41608         (gl_tree_add_before, gl_tree_add_after):
41609         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
41610         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
41611         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
41612         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
41613         (gl_linked_add_after, gl_linked_add_at): Likewise.
41614         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
41615         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
41616         (gl_tree_add_before, gl_tree_add_after): Likewise.
41617         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
41618         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
41619         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
41620
41621 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41622
41623         * lib/gl_oset.h: Use C comment style, not C++ comment style.
41624
41625 2006-11-06  Bruno Haible  <bruno@clisp.org>
41626
41627         * m4/inline.m4: New file.
41628         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
41629         * modules/list (Files): Add m4/inline.m4.
41630         * modules/oset (Files): Likewise.
41631
41632 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
41633
41634         * lib/idcache.c: Include <stddef.h>, for offsetof.
41635         (struct userid.name): Change from char * to a flexible array member.
41636         All uses changed.
41637         * modules/idcache (Depends-on): Add flexmember.
41638
41639         * MODULES.html.sh (Core language properties): New module flexmember.
41640         * modules/flexmember, m4/flexmember.m4: New files.
41641
41642         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
41643         inline functions that are identical with the old xnmalloc_inline,
41644         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
41645         that we can avoid some unnecessary integer multiplications and
41646         divisions in the common case where the element size is known at
41647         compile time.
41648         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
41649         needed.
41650         (xnboundedmalloc): Remove.
41651         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
41652         arguments, for consistency with rest of this header.
41653         (xcharalloc): Rewrite using XNMALLOC.
41654         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
41655         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
41656         versions have been moved to lib/xalloc.h and renamed to be the
41657         non-*_inline versions.
41658         (xmalloc, xrealloc): Implement without reference to the xnmalloc
41659         and xnrealloc functions, since those functions are now inline and
41660         now call us.
41661         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
41662         renaming described above.
41663         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
41664         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
41665         captures the dependency in AC_C_INLINE.
41666
41667         New module canonicalize-lgpl, proposed by Charles Wilson in
41668         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
41669         with a few small changes afterwards.
41670         * MODULES.html.sh (File system functions): New module
41671         canonicalize-lgpl.
41672         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
41673         and canonicalize_file_name.
41674         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
41675         * modules/canonicalize-lgpl: New files.
41676
41677 2006-11-05  Bruno Haible  <bruno@clisp.org>
41678
41679         * gnulib-tool (func_import, func_create_testdir): Create directories
41680         also for files in subdirectories of lib/.
41681
41682 2006-11-05  Bruno Haible  <bruno@clisp.org>
41683
41684         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
41685         ANSI C compliant.
41686
41687 2006-11-03  Bruno Haible  <bruno@clisp.org>
41688
41689         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
41690         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
41691         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
41692         (xnboundedmalloc): New inline function.
41693         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
41694         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
41695         xmalloc.
41696         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
41697         xmalloc.
41698         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
41699         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
41700         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
41701         xmalloc.
41702         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
41703         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
41704         xmalloc.
41705         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
41706         gl_tree_add_after): Use XMALLOC instead of xmalloc.
41707         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
41708         xmalloc.
41709         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
41710         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
41711         gl_tree_add_after): Use XMALLOC instead of xmalloc.
41712         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
41713         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
41714         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
41715         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
41716
41717 2006-11-03  Bruno Haible  <bruno@clisp.org>
41718
41719         * lib/c-ctype.h [C++]: Define functions without name mangling.
41720         * lib/fwriteerror.h [C++]: Likewise.
41721         * lib/gcd.h [C++]: Likewise.
41722         * lib/linebreak.h [C++]: Likewise.
41723
41724 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
41725
41726         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
41727         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
41728         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
41729         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
41730         Check for functions and headers just once.
41731         Check for declaration of canonicalize_file_name.
41732         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
41733
41734 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
41735
41736         * gnulib-tool (func_import): Fix typo in actioncmd.
41737
41738 2006-11-02  Bruno Haible  <bruno@clisp.org>
41739
41740         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
41741         newline sequence in the Makefile.am snippet as a space, like "make"
41742         does.
41743         Reported by Roger Persson <perrog@gmail.com>.
41744
41745 2006-11-01  Bruno Haible  <bruno@clisp.org>
41746
41747         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
41748         already declared in <string.h>.
41749         * lib/strcase.h (strncasecmp): Don't declare it if yes.
41750
41751 2006-11-01  Bruno Haible  <bruno@clisp.org>
41752
41753         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
41754         * lib/strcase.h: Include <string.h>.
41755         (strcasecmp): Define to rpl_strcasecmp here.
41756
41757 2006-11-01  Bruno Haible  <bruno@clisp.org>
41758
41759         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
41760
41761 2006-11-01  Eric Blake  <ebb9@byu.net>
41762
41763         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
41764
41765         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
41766
41767 2006-10-29  Bruno Haible  <bruno@clisp.org>
41768
41769         Make it compile in C++ mode.
41770         * lib/full-write.c (full_rw): Add a cast.
41771
41772 2006-11-01  Bruno Haible  <bruno@clisp.org>
41773
41774         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
41775         be POSIX compliant.
41776         Reported by Roger Persson <perrog@gmail.com>.
41777
41778 2006-11-01  Eric Blake  <ebb9@byu.net>
41779
41780         * lib/getopt_.h: Fix comments.
41781
41782 2006-10-31  Eric Blake  <ebb9@byu.net>
41783
41784         * modules/tmpdir (Depends-on): Add sys_stat.
41785         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
41786         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
41787         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
41788         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
41789         tempname.
41790
41791 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
41792
41793         Avoid some C++ diagnostics reported by Bruno Haible.
41794         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
41795         xmalloc.
41796         (quotearg_alloc): Use xcharalloc rather than xmalloc.
41797         (struct slotvec): Move to top level.
41798         (quotearg_n_options): Rewrite to avoid xmalloc.
41799         * lib/xalloc.h (xcharalloc): New function.
41800         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
41801         [defined __cplusplus]: Add function template that provides result
41802         type propagation.  This part of the change is from Bruno Haible.
41803
41804 2006-10-29  Bruno Haible  <bruno@clisp.org>
41805
41806         Make it compile in C++ mode.
41807         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
41808         * lib/strnlen1.c (strnlen1): Cast memchr result.
41809         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
41810         * lib/clean-temp.c (string_equals, string_hash): Add casts.
41811         (create_temp_dir): Rename local variable 'template'.
41812         (compile_csharp_using_sscli): Add cast.
41813         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
41814         * lib/findprog.c (find_in_path): Likewise.
41815         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
41816         * lib/wait-process.c (register_slave_subprocess): Likewise.
41817
41818 2006-10-22  Bruno Haible  <bruno@clisp.org>
41819
41820         * modules/tsearch: New file.
41821         * lib/tsearch.h: New file.
41822         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
41823         * m4/tsearch.m4: New file.
41824         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
41825
41826 2006-10-29  Eric Blake  <ebb9@byu.net>
41827
41828         * lib/arcfour.c: Assume config.h.
41829         * lib/arctwo.c: Likewise.
41830         * lib/base64.c: Likewise.
41831         * lib/check-version.c: Likewise.
41832         * lib/crc.c: Likewise.
41833         * lib/des.c: Likewise.
41834         * lib/gc-gnulib.c: Likewise.
41835         * lib/gc-libgcrypt.c: Likewise.
41836         * lib/gc-pbkdf2-sha1.c: Likewise.
41837         * lib/getaddrinfo.c: Likewise.
41838         * lib/getdelim.c: Likewise.
41839         * lib/getline.c: Likewise.
41840         * lib/hmac-md5.c: Likewise.
41841         * lib/hmac-sha1.c: Likewise.
41842         * lib/iconvme.c: Likewise.
41843         * lib/md2.c: Likewise.
41844         * lib/md4.c: Likewise.
41845         * lib/memxor.c: Likewise.
41846         * lib/read-file.c: Likewise.
41847         * lib/readline.c: Likewise.
41848         * lib/rijndael-alg-fst.c: Likewise.
41849         * lib/rijndael-api-fst.c: Likewise.
41850         * lib/xgetdomainname.c: Likewise.
41851
41852 2006-10-28  Eric Blake  <ebb9@byu.net>
41853
41854         * lib/xstrndup.c: Assume config.h.
41855
41856 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
41857
41858         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
41859         stat-macros.h is now for our own macros, whereas stat_h is for
41860         macros in the <sys/stat.h> name space.
41861         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
41862         (STAT_MACROS_H): Remove.
41863         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
41864         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
41865         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
41866         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
41867         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
41868         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
41869         Move these macros to ...
41870         * lib/stat_.h: here.  Don't include stat-macros.h.
41871         * lib/canonicalize.c: Don't include stat-macros.h.
41872         * lib/chown.c: Likewise.
41873         * lib/euidaccess.c: Likewise.
41874         * lib/file-type.c: Likewise.
41875         * lib/filemode.c: Likewise.
41876         * lib/glob.c: Likewise.
41877         * lib/isapipe.c: Likewise.
41878         * lib/lchown.c: Likewise.
41879         * lib/lstat.c: Likewise.
41880         * lib/mkdir-p.c: Likewise.
41881         * lib/rmdir.c: Likewise.
41882         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
41883         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
41884         unless mkdir isn't declared, to speed up 'configure'.
41885         Always create sys/stat.h, since it's unlikely any real sys/stat.h
41886         would define all the S_* symbols.
41887         * modules/canonicalize (Depends-on):
41888         Depend on sys_stat, not stat-macros.
41889         * modules/chown: Likewise.
41890         * modules/euidaccess: Likewise.
41891         * modules/filemode: Likewise.
41892         * modules/file-type: Likewise.
41893         * modules/glob: Likewise.
41894         * modules/isapipe: Likewise.
41895         * modules/lchown: Likewise.
41896         * modules/lstat: Likewise.
41897         * modules/mkancesdirs: Likewise.
41898         * modules/rmdir: Likewise.
41899         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
41900         * modules/modechange: Likewise.
41901         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
41902         (configure.ac): Remove gl_STAT_MACROS.
41903         * modules/sys_stat (Depends-on): Remove stat-macros.
41904
41905 2006-10-27  Bruno Haible  <bruno@clisp.org>
41906
41907         * m4/signed.m4: Remove file.
41908         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
41909         invocation.
41910         * modules/vasnprintf (Files): Remove m4/signed.m4.
41911
41912 2006-10-27  Bruno Haible  <bruno@clisp.org>
41913
41914         Update to GNU gettext 0.16.
41915         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
41916         m4/inttypes-h.m4, m4/signed.m4.
41917         * m4/gettext.m4: Update to GNU gettext 0.16.
41918         * m4/intl.m4: New file, from GNU gettext.
41919         * m4/intldir.m4: New file, from GNU gettext.
41920         * config/srclist.txt: Update
41921
41922 2006-10-27  Eric Blake  <ebb9@byu.net>
41923
41924         * MODULES.html.sh: Document tempname.
41925         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
41926         dependencies.
41927         (Files): Move lib/tempname.c...
41928         * modules/tempname: ...to this new module.
41929         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
41930         (gl_PREREQ_TEMPNAME): Move...
41931         * m4/tempname.m4: ...to this new file.
41932         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
41933         * modules/sys_stat (Depends-on): Add stat-macros.
41934         * lib/stat_.h (includes): Pick up stat macros.
41935         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
41936         if stat macros are broken.
41937         * lib/tempname.c (includes): No need to include "stat-macros.h".
41938         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
41939         (direxists, __path_search) [!_LIBC]: Don't compile these in
41940         gnulib; the tmpdir module covers that.
41941         * lib/tempname.h: New file.
41942
41943 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
41944
41945         * COPYING: Explain how gnulib-tool converts licence headers.
41946         Almost all wording by Eric Blake.
41947
41948 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
41949
41950         * lib/mbchar.h (is_basic_table): Make read-only.
41951         * lib/mbchar.c (is_basic_table): Likewise.
41952         Reported by John Darrington.
41953
41954 2006-10-25  Bruno Haible  <bruno@clisp.org>
41955
41956         * lib/progname.h (set_program_name): Undefine before defining.
41957
41958 2006-10-25  Bruno Haible  <bruno@clisp.org>
41959
41960         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
41961         false for non-gcc C++ compilers.
41962         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
41963
41964 2006-10-24  Bruno Haible  <bruno@clisp.org>
41965
41966         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
41967         iconv implementations like Irix iconv.
41968
41969 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
41970
41971         * modules/vararrays: New file.
41972         * m4/vararrays.m4: New file, taken from diffutils.
41973         * MODULES.html.sh: New module vararrays.
41974
41975 2006-10-24  Karl Berry  <karl@gnu.org>
41976
41977         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
41978         Don't call GNU Unix.
41979
41980 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41981
41982         * users.txt: Add Libtool.
41983
41984         Sync from Libtool:
41985
41986         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
41987
41988         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
41989         to gnulib's policy of including config.h unconditionally.
41990
41991 2006-10-24  Bruno Haible  <bruno@clisp.org>
41992
41993         * modules/wcwidth (Files): Add m4/wint_t.m4.
41994         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
41995         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
41996
41997 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
41998
41999         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
42000         to pacify GCC with some -W flags enabled.  Problem reported by
42001         Bruno Haible.
42002
42003 2006-10-24  Jim Meyering  <jim@meyering.net>
42004
42005         * MODULES.html.sh: Remove uinttostr.  It's not a module.
42006         Reported by Karl Berry.
42007
42008 2006-10-23  Bruno Haible  <bruno@clisp.org>
42009
42010         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
42011
42012 2006-10-24  Bruno Haible  <bruno@clisp.org>
42013
42014         * lib/gl_list.h: Use C comment style, not C++ comment style.
42015
42016 2006-10-23  Eric Blake  <ebb9@byu.net>
42017
42018         * lib/getaddrinfo.c (includes): Add missing include.
42019
42020 2006-10-23  Bruno Haible  <bruno@clisp.org>
42021             Paul Eggert  <eggert@cs.ucla.edu>
42022
42023         Ability to rename obstack_free.
42024         * lib/obstack.h (__obstack_free): New macro. Declare instead of
42025         obstack_free.
42026         (obstack_free): Invoke the __obstack_free macro.
42027         * lib/obstack.c (obstack_free): Use __obstack_free macro.
42028
42029 2006-10-23  Bruno Haible  <bruno@clisp.org>
42030             Paul Eggert  <eggert@cs.ucla.edu>
42031
42032         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
42033         __argc, __argv from the declaration. (They are defined as macros on
42034         mingw.)
42035
42036 2006-10-22  Bruno Haible  <bruno@clisp.org>
42037
42038         * doc/gnulib-intro.texi: New file.
42039         * doc/gnulib.texi: Include it.
42040
42041 2006-10-21  Bruno Haible  <bruno@clisp.org>
42042
42043         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
42044         "Introduction", "Miscellanous Notes", "Particular Modules".
42045
42046 2006-10-21  Bruno Haible  <bruno@clisp.org>
42047
42048         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42049         Change mostlyclean-local rule to avoid sh syntax error from bash
42050         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
42051
42052 2006-10-23  Jim Meyering  <jim@meyering.net>
42053
42054         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
42055         in place of snprintf.
42056
42057         * modules/inttostr (Files): Add lib/uinttostr.c.
42058         * lib/uinttostr.c (inttostr): New file/function.
42059         * lib/inttostr.h (uinttostr): Declare.
42060         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
42061         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
42062         Add uinttostr.
42063         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
42064
42065 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
42066
42067         * lib/canonicalize.c (ELOOP): Define if not already defined.
42068         Problem reported by Bruno Haible in
42069         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
42070
42071 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
42072
42073         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
42074         Problem reported by Perry Smith and Ville Laurikari.
42075
42076         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
42077         uses.
42078
42079 2006-10-19  Bruno Haible  <bruno@clisp.org>
42080
42081         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
42082         for mingw.
42083
42084 2006-10-19  Bruno Haible  <bruno@clisp.org>
42085
42086         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
42087         Needed for mingw.
42088
42089 2006-10-19  Bruno Haible  <bruno@clisp.org>
42090
42091         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
42092
42093 2006-10-19  Bruno Haible  <bruno@clisp.org>
42094
42095         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
42096         it.
42097
42098 2006-10-19  Bruno Haible  <bruno@clisp.org>
42099
42100         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
42101         invocation.
42102
42103 2006-10-19  Bruno Haible  <bruno@clisp.org>
42104
42105         * gnulib-tool (func_create_testdir): Don't include ftruncate and
42106         mountlist by default.
42107
42108 2006-10-16  Bruno Haible  <bruno@clisp.org>
42109
42110         * lib/c-strstr.c: Include c-strstr.h.
42111
42112 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
42113
42114         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
42115         in a slash.
42116
42117 2006-10-18  Bruno Haible  <bruno@clisp.org>
42118
42119         * lib/lock.h [C++]: Wrap definitions in extern "C".
42120
42121 2006-10-18  Bruno Haible  <bruno@clisp.org>
42122
42123         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
42124         gl_LIBOBJS list.
42125
42126 2006-10-18  Bruno Haible  <bruno@clisp.org>
42127
42128         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
42129
42130 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
42131
42132         * lib/xstrtol.h: Include gettext.h.
42133         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
42134         Problem reported by Eric Blake.
42135         * modules/xstrtol (Depends-on): Add gettext-h.
42136
42137 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
42138
42139         * lib/strftime.c (advance): New macro.
42140         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
42141         incomplete type, so you can't add 0 to it.  Problem and patch
42142         reported by Eelco Dolstra for dietlibc.
42143
42144 2006-10-18  Jim Meyering  <jim@meyering.net>
42145
42146         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
42147         type for a local, and rename it: s/up/user_proc/.
42148
42149 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
42150
42151         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
42152         READ_UTMP_USER_PROCESS.
42153         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
42154
42155 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
42156
42157         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
42158         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
42159
42160 2006-10-17  Eric Blake  <ebb9@byu.net>
42161
42162         * lib/sigprocmask.c (sigprocmask): Fix typo.
42163
42164         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
42165
42166         * modules/clean-temp (Makefile.am): Don't add to make output...
42167         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
42168         config.h.
42169
42170 2006-10-17  Bruno Haible  <bruno@clisp.org>
42171
42172         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
42173         differently if DEFAULT_TEXT_DOMAIN is set.
42174
42175 2006-10-16  Bruno Haible  <bruno@clisp.org>
42176
42177         * lib/clean-temp.c: Include fwriteerror.h.
42178
42179 2006-10-16  Bruno Haible  <bruno@clisp.org>
42180
42181         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
42182
42183 2006-10-16  Bruno Haible  <bruno@clisp.org>
42184
42185         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
42186         * lib/sigprocmask.h: Include <sys/types.h>.
42187         (sigset_t): Use the system's definition if present.
42188
42189 2006-10-17  Eric Blake  <ebb9@byu.net>
42190
42191         * lib/xvasprintf.c (includes): Assume config.h.
42192         * lib/xasprintf.c (includes): Likewise.
42193
42194 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
42195
42196         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
42197         at least as wide as intmax_t.
42198
42199 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
42200
42201         (Imported from Automake.)
42202         * build-aux/gnupload: Update to version 1.1 of directive file.
42203
42204 2006-10-16  Eric Blake  <ebb9@byu.net>
42205
42206         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
42207         match Automake 1.10a.
42208
42209 2006-10-14  Bruno Haible  <bruno@clisp.org>
42210
42211         * modules/sigprocmask: New file.
42212         * lib/sigprocmask.h: New file.
42213         * lib/sigprocmask.c: New file.
42214         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
42215         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
42216         request sigprocmask.o.
42217         (gl_PREREQ_SIGPROCMASK): New macro.
42218         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
42219         (Depends-on): Add sigprocmask.
42220         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
42221         gt_SIGNALBLOCKING. Test for 'raise' only once.
42222         * lib/fatal-signal.c: Include sigprocmask.h.
42223         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
42224         unblock_fatal_signals): Define always.
42225         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42226         sigprocmask.
42227
42228 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
42229
42230         Sync from Automake.
42231         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
42232         which incorrectly sets the mode of an existing destination
42233         directory.  In some cases the unpatched install-sh could do the
42234         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
42235         system.  We hope this is rare in practice, but it's clearly worth
42236         fixing.  Problem reported by Alex Unleashed in
42237         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
42238         Also, don't bother to check for -m bugs unless we're using -m;
42239         suggested by Stepan Kasal.
42240
42241 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42242
42243         Sync from Automake.
42244         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
42245         `-c' flag, so they appear at the same position as in %FASTDEP%
42246         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
42247         which ignores unknown options only after the first non-option.
42248         Bug report against M4 by Nelson H. F. Beebe.
42249
42250 2006-10-13  Jim Meyering  <jim@meyering.net>
42251
42252         Fix a bug in yesterday's change.
42253         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
42254         p->fts_statp->st_dev would be used uninitialized.
42255         Ensures that we always call fts_stat on the very first entry.
42256         Miklos Szeredi reported that find -xdev stopped working.
42257
42258 2006-10-12  Bruno Haible  <bruno@clisp.org>
42259
42260         * gnulib-tool (func_get_automake_snippet): Append an automatically
42261         computed EXTRA_DIST augmentation.
42262         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
42263         * modules/alloca-opt (Makefile.am): Likewise.
42264         * modules/allocsa (Makefile.am): Likewise.
42265         * modules/arcfour (Makefile.am): Likewise.
42266         * modules/arctwo (Makefile.am): Likewise.
42267         * modules/argmatch (Makefile.am): Likewise.
42268         * modules/argz (Makefile.am): Likewise.
42269         * modules/atexit (Makefile.am): Likewise.
42270         * modules/backupfile (Makefile.am): Likewise.
42271         * modules/byteswap (Makefile.am): Likewise.
42272         * modules/c-strtod (Makefile.am): Likewise.
42273         * modules/c-strtold (Makefile.am): Likewise.
42274         * modules/calloc (Makefile.am): Likewise.
42275         * modules/canon-host (Makefile.am): Likewise.
42276         * modules/canonicalize (Makefile.am): Likewise.
42277         * modules/chdir-long (Makefile.am): Likewise.
42278         * modules/chdir-safer (Makefile.am): Likewise.
42279         * modules/check-version (Makefile.am): Likewise.
42280         * modules/chown (Makefile.am): Likewise.
42281         * modules/cloexec (Makefile.am): Likewise.
42282         * modules/close-stream (Makefile.am): Likewise.
42283         * modules/closeout (Makefile.am): Likewise.
42284         * modules/crc (Makefile.am): Likewise.
42285         * modules/csharpexec (Makefile.am): Likewise.
42286         * modules/cycle-check (Makefile.am): Likewise.
42287         * modules/des (Makefile.am): Likewise.
42288         * modules/dev-ino (Makefile.am): Likewise.
42289         * modules/dirfd (Makefile.am): Likewise.
42290         * modules/dirname (Makefile.am): Likewise.
42291         * modules/dup2 (Makefile.am): Likewise.
42292         * modules/eealloc (Makefile.am): Likewise.
42293         * modules/error (Makefile.am): Likewise.
42294         * modules/euidaccess (Makefile.am): Likewise.
42295         * modules/exclude (Makefile.am): Likewise.
42296         * modules/exitfail (Makefile.am): Likewise.
42297         * modules/fcntl-safer (Makefile.am): Likewise.
42298         * modules/fcntl (Makefile.am): Likewise.
42299         * modules/file-type (Makefile.am): Likewise.
42300         * modules/fileblocks (Makefile.am): Likewise.
42301         * modules/filemode (Makefile.am): Likewise.
42302         * modules/filenamecat (Makefile.am): Likewise.
42303         * modules/fnmatch (Makefile.am): Likewise.
42304         * modules/fopen-safer (Makefile.am): Likewise.
42305         * modules/fpending (Makefile.am): Likewise.
42306         * modules/fprintftime (Makefile.am): Likewise.
42307         * modules/free (Makefile.am): Likewise.
42308         * modules/fsusage (Makefile.am): Likewise.
42309         * modules/ftruncate (Makefile.am): Likewise.
42310         * modules/fts (Makefile.am): Likewise.
42311         * modules/gc-arcfour (Makefile.am): Likewise.
42312         * modules/gc-des (Makefile.am): Likewise.
42313         * modules/gc-hmac-md5 (Makefile.am): Likewise.
42314         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
42315         * modules/gc-md4 (Makefile.am): Likewise.
42316         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
42317         * modules/gc-sha1 (Makefile.am): Likewise.
42318         * modules/gc (Makefile.am): Likewise.
42319         * modules/getaddrinfo (Makefile.am): Likewise.
42320         * modules/getcwd (Makefile.am): Likewise.
42321         * modules/getdelim (Makefile.am): Likewise.
42322         * modules/getdomainname (Makefile.am): Likewise.
42323         * modules/getgroups (Makefile.am): Likewise.
42324         * modules/gethostname (Makefile.am): Likewise.
42325         * modules/gethrxtime (Makefile.am): Likewise.
42326         * modules/getline (Makefile.am): Likewise.
42327         * modules/getloadavg (Makefile.am): Likewise.
42328         * modules/getlogin_r (Makefile.am): Likewise.
42329         * modules/getndelim2 (Makefile.am): Likewise.
42330         * modules/getopt (Makefile.am): Likewise.
42331         * modules/getpagesize (Makefile.am): Likewise.
42332         * modules/getpass-gnu (Makefile.am): Likewise.
42333         * modules/getpass (Makefile.am): Likewise.
42334         * modules/getsubopt (Makefile.am): Likewise.
42335         * modules/gettime (Makefile.am): Likewise.
42336         * modules/gettimeofday (Makefile.am): Likewise.
42337         * modules/getugroups (Makefile.am): Likewise.
42338         * modules/getusershell (Makefile.am): Likewise.
42339         * modules/glob (Makefile.am): Likewise.
42340         * modules/group-member (Makefile.am): Likewise.
42341         * modules/hard-locale (Makefile.am): Likewise.
42342         * modules/hash (Makefile.am): Likewise.
42343         * modules/hmac-md5 (Makefile.am): Likewise.
42344         * modules/hmac-sha1 (Makefile.am): Likewise.
42345         * modules/human (Makefile.am): Likewise.
42346         * modules/idcache (Makefile.am): Likewise.
42347         * modules/imaxabs (Makefile.am): Likewise.
42348         * modules/imaxdiv (Makefile.am): Likewise.
42349         * modules/inet_ntop (Makefile.am): Likewise.
42350         * modules/inet_pton (Makefile.am): Likewise.
42351         * modules/intprops (Makefile.am): Likewise.
42352         * modules/inttostr (Makefile.am): Likewise.
42353         * modules/inttypes (Makefile.am): Likewise.
42354         * modules/isapipe (Makefile.am): Likewise.
42355         * modules/javaversion (Makefile.am): Likewise.
42356         * modules/lchmod (Makefile.am): Likewise.
42357         * modules/lchown (Makefile.am): Likewise.
42358         * modules/localcharset (Makefile.am): Likewise.
42359         * modules/long-options (Makefile.am): Likewise.
42360         * modules/lstat (Makefile.am): Likewise.
42361         * modules/malloc (Makefile.am): Likewise.
42362         * modules/mathl (Makefile.am): Likewise.
42363         * modules/mbchar (Makefile.am): Likewise.
42364         * modules/md2 (Makefile.am): Likewise.
42365         * modules/md4 (Makefile.am): Likewise.
42366         * modules/md5 (Makefile.am): Likewise.
42367         * modules/memcasecmp (Makefile.am): Likewise.
42368         * modules/memchr (Makefile.am): Likewise.
42369         * modules/memcmp (Makefile.am): Likewise.
42370         * modules/memcoll (Makefile.am): Likewise.
42371         * modules/memcpy (Makefile.am): Likewise.
42372         * modules/memmem (Makefile.am): Likewise.
42373         * modules/memmove (Makefile.am): Likewise.
42374         * modules/mempcpy (Makefile.am): Likewise.
42375         * modules/memrchr (Makefile.am): Likewise.
42376         * modules/memset (Makefile.am): Likewise.
42377         * modules/memxor (Makefile.am): Likewise.
42378         * modules/mkancesdirs (Makefile.am): Likewise.
42379         * modules/mkdir-p (Makefile.am): Likewise.
42380         * modules/mkdir (Makefile.am): Likewise.
42381         * modules/mkdtemp (Makefile.am): Likewise.
42382         * modules/mkstemp (Makefile.am): Likewise.
42383         * modules/mktime (Makefile.am): Likewise.
42384         * modules/modechange (Makefile.am): Likewise.
42385         * modules/mountlist (Makefile.am): Likewise.
42386         * modules/nanosleep (Makefile.am): Likewise.
42387         * modules/obstack (Makefile.am): Likewise.
42388         * modules/openat (Makefile.am): Likewise.
42389         * modules/pagealign_alloc (Makefile.am): Likewise.
42390         * modules/pathmax (Makefile.am): Likewise.
42391         * modules/physmem (Makefile.am): Likewise.
42392         * modules/poll (Makefile.am): Likewise.
42393         * modules/posixtm (Makefile.am): Likewise.
42394         * modules/posixver (Makefile.am): Likewise.
42395         * modules/putenv (Makefile.am): Likewise.
42396         * modules/quote (Makefile.am): Likewise.
42397         * modules/quotearg (Makefile.am): Likewise.
42398         * modules/raise (Makefile.am): Likewise.
42399         * modules/read-file (Makefile.am): Likewise.
42400         * modules/readline (Makefile.am): Likewise.
42401         * modules/readlink (Makefile.am): Likewise.
42402         * modules/readtokens (Makefile.am): Likewise.
42403         * modules/readutmp (Makefile.am): Likewise.
42404         * modules/realloc (Makefile.am): Likewise.
42405         * modules/regex (Makefile.am): Likewise.
42406         * modules/rename-dest-slash (Makefile.am): Likewise.
42407         * modules/rename (Makefile.am): Likewise.
42408         * modules/rijndael (Makefile.am): Likewise.
42409         * modules/rmdir (Makefile.am): Likewise.
42410         * modules/rpmatch (Makefile.am): Likewise.
42411         * modules/safe-read (Makefile.am): Likewise.
42412         * modules/safe-write (Makefile.am): Likewise.
42413         * modules/same-inode (Makefile.am): Likewise.
42414         * modules/same (Makefile.am): Likewise.
42415         * modules/save-cwd (Makefile.am): Likewise.
42416         * modules/savedir (Makefile.am): Likewise.
42417         * modules/setenv (Makefile.am): Likewise.
42418         * modules/settime (Makefile.am): Likewise.
42419         * modules/sha1 (Makefile.am): Likewise.
42420         * modules/sig2str (Makefile.am): Likewise.
42421         * modules/snprintf (Makefile.am): Likewise.
42422         * modules/stat-macros (Makefile.am): Likewise.
42423         * modules/stat-time (Makefile.am): Likewise.
42424         * modules/stdbool (Makefile.am): Likewise.
42425         * modules/stdint (Makefile.am): Likewise.
42426         * modules/stdlib-safer (Makefile.am): Likewise.
42427         * modules/stpcpy (Makefile.am): Likewise.
42428         * modules/stpncpy (Makefile.am): Likewise.
42429         * modules/strcase (Makefile.am): Likewise.
42430         * modules/strcasestr (Makefile.am): Likewise.
42431         * modules/strchrnul (Makefile.am): Likewise.
42432         * modules/strcspn (Makefile.am): Likewise.
42433         * modules/strdup (Makefile.am): Likewise.
42434         * modules/strerror (Makefile.am): Likewise.
42435         * modules/strftime (Makefile.am): Likewise.
42436         * modules/strndup (Makefile.am): Likewise.
42437         * modules/strnlen (Makefile.am): Likewise.
42438         * modules/strpbrk (Makefile.am): Likewise.
42439         * modules/strsep (Makefile.am): Likewise.
42440         * modules/strstr (Makefile.am): Likewise.
42441         * modules/strtod (Makefile.am): Likewise.
42442         * modules/strtoimax (Makefile.am): Likewise.
42443         * modules/strtok_r (Makefile.am): Likewise.
42444         * modules/strtol (Makefile.am): Likewise.
42445         * modules/strtoll (Makefile.am): Likewise.
42446         * modules/strtoul (Makefile.am): Likewise.
42447         * modules/strtoull (Makefile.am): Likewise.
42448         * modules/strtoumax (Makefile.am): Likewise.
42449         * modules/strverscmp (Makefile.am): Likewise.
42450         * modules/sys_socket (Makefile.am): Likewise.
42451         * modules/sys_stat (Makefile.am): Likewise.
42452         * modules/sysexits (Makefile.am): Likewise.
42453         * modules/time_r (Makefile.am): Likewise.
42454         * modules/timegm (Makefile.am): Likewise.
42455         * modules/timespec (Makefile.am): Likewise.
42456         * modules/tmpfile-safer (Makefile.am): Likewise.
42457         * modules/trim (Makefile.am): Likewise.
42458         * modules/unistd-safer (Makefile.am): Likewise.
42459         * modules/unlinkdir (Makefile.am): Likewise.
42460         * modules/unlocked-io (Makefile.am): Likewise.
42461         * modules/userspec (Makefile.am): Likewise.
42462         * modules/utime (Makefile.am): Likewise.
42463         * modules/utimecmp (Makefile.am): Likewise.
42464         * modules/utimens (Makefile.am): Likewise.
42465         * modules/vasnprintf (Makefile.am): Likewise.
42466         * modules/vasprintf (Makefile.am): Likewise.
42467         * modules/vsnprintf (Makefile.am): Likewise.
42468         * modules/xalloc (Makefile.am): Likewise.
42469         * modules/xgetcwd (Makefile.am): Likewise.
42470         * modules/xnanosleep (Makefile.am): Likewise.
42471         * modules/xreadlink (Makefile.am): Likewise.
42472         * modules/xstrtod (Makefile.am): Likewise.
42473         * modules/xstrtol (Makefile.am): Likewise.
42474         * modules/xstrtold (Makefile.am): Likewise.
42475         * modules/yesno (Makefile.am): Likewise.
42476         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
42477
42478 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
42479
42480         * modules/error (Makefile.am): Distribute files through
42481         EXTRA_DIST, not lib_SOURCES.
42482
42483 2006-10-12  Eric Blake  <ebb9@byu.net>
42484
42485         * modules/error (Makefile.am): Distribute files in /lib.
42486         * modules/obstack (Makefile.am): Likewise.
42487
42488 2006-10-12  Bruno Haible  <bruno@clisp.org>
42489
42490         * modules/acl (Makefile.am): Distribute all files in lib/ through
42491         EXTRA_DIST.
42492         * modules/arcfour (Makefile.am): Likewise.
42493         * modules/arctwo (Makefile.am): Likewise.
42494         * modules/argmatch (Makefile.am): Likewise.
42495         * modules/argz (Makefile.am): Likewise.
42496         * modules/atexit (Makefile.am): Likewise.
42497         * modules/backupfile (Makefile.am): Likewise.
42498         * modules/c-strtod (Makefile.am): Likewise.
42499         * modules/c-strtold (Makefile.am): Likewise.
42500         * modules/calloc (Makefile.am): Likewise.
42501         * modules/canon-host (Makefile.am): Likewise.
42502         * modules/canonicalize (Makefile.am): Likewise.
42503         * modules/chdir-long (Makefile.am): Likewise.
42504         * modules/chdir-safer (Makefile.am): Likewise.
42505         * modules/check-version (Makefile.am): Likewise.
42506         * modules/chown (Makefile.am): Likewise.
42507         * modules/cloexec (Makefile.am): Likewise.
42508         * modules/close-stream (Makefile.am): Likewise.
42509         * modules/closeout (Makefile.am): Likewise.
42510         * modules/crc (Makefile.am): Likewise.
42511         * modules/cycle-check (Makefile.am): Likewise.
42512         * modules/des (Makefile.am): Likewise.
42513         * modules/dirfd (Makefile.am): Likewise.
42514         * modules/dirname (Makefile.am): Likewise.
42515         * modules/dup2 (Makefile.am): Likewise.
42516         * modules/euidaccess (Makefile.am): Likewise.
42517         * modules/exclude (Makefile.am): Likewise.
42518         * modules/exitfail (Makefile.am): Likewise.
42519         * modules/fcntl-safer (Makefile.am): Likewise.
42520         * modules/file-type (Makefile.am): Likewise.
42521         * modules/fileblocks (Makefile.am): Likewise.
42522         * modules/filemode (Makefile.am): Likewise.
42523         * modules/filenamecat (Makefile.am): Likewise.
42524         * modules/fnmatch (Makefile.am): Likewise.
42525         * modules/fopen-safer (Makefile.am): Likewise.
42526         * modules/fpending (Makefile.am): Likewise.
42527         * modules/fprintftime (Makefile.am): Likewise.
42528         * modules/free (Makefile.am): Likewise.
42529         * modules/fsusage (Makefile.am): Likewise.
42530         * modules/ftruncate (Makefile.am): Likewise.
42531         * modules/fts (Makefile.am): Likewise.
42532         * modules/gc (Makefile.am): Likewise.
42533         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
42534         * modules/getaddrinfo (Makefile.am): Likewise.
42535         * modules/getcwd (Makefile.am): Likewise.
42536         * modules/getdelim (Makefile.am): Likewise.
42537         * modules/getdomainname (Makefile.am): Likewise.
42538         * modules/getgroups (Makefile.am): Likewise.
42539         * modules/gethostname (Makefile.am): Likewise.
42540         * modules/gethrxtime (Makefile.am): Likewise.
42541         * modules/getline (Makefile.am): Likewise.
42542         * modules/getloadavg (Makefile.am): Likewise.
42543         * modules/getlogin_r (Makefile.am): Likewise.
42544         * modules/getopt (Makefile.am): Likewise.
42545         * modules/getpass (Makefile.am): Likewise.
42546         * modules/getpass-gnu (Makefile.am): Likewise.
42547         * modules/getsubopt (Makefile.am): Likewise.
42548         * modules/gettime (Makefile.am): Likewise.
42549         * modules/gettimeofday (Makefile.am): Likewise.
42550         * modules/getugroups (Makefile.am): Likewise.
42551         * modules/getusershell (Makefile.am): Likewise.
42552         * modules/glob (Makefile.am): Likewise.
42553         * modules/group-member (Makefile.am): Likewise.
42554         * modules/hard-locale (Makefile.am): Likewise.
42555         * modules/hash (Makefile.am): Likewise.
42556         * modules/hmac-md5 (Makefile.am): Likewise.
42557         * modules/hmac-sha1 (Makefile.am): Likewise.
42558         * modules/human (Makefile.am): Likewise.
42559         * modules/idcache (Makefile.am): Likewise.
42560         * modules/imaxabs (Makefile.am): Likewise.
42561         * modules/imaxdiv (Makefile.am): Likewise.
42562         * modules/inet_ntop (Makefile.am): Likewise.
42563         * modules/inet_pton (Makefile.am): Likewise.
42564         * modules/inttostr (Makefile.am): Likewise.
42565         * modules/isapipe (Makefile.am): Likewise.
42566         * modules/lchown (Makefile.am): Likewise.
42567         * modules/long-options (Makefile.am): Likewise.
42568         * modules/lstat (Makefile.am): Likewise.
42569         * modules/malloc (Makefile.am): Likewise.
42570         * modules/mathl (Makefile.am): Likewise.
42571         * modules/mbchar (Makefile.am): Likewise.
42572         * modules/md2 (Makefile.am): Likewise.
42573         * modules/md4 (Makefile.am): Likewise.
42574         * modules/md5 (Makefile.am): Likewise.
42575         * modules/memcasecmp (Makefile.am): Likewise.
42576         * modules/memchr (Makefile.am): Likewise.
42577         * modules/memcmp (Makefile.am): Likewise.
42578         * modules/memcoll (Makefile.am): Likewise.
42579         * modules/memcpy (Makefile.am): Likewise.
42580         * modules/memmem (Makefile.am): Likewise.
42581         * modules/memmove (Makefile.am): Likewise.
42582         * modules/mempcpy (Makefile.am): Likewise.
42583         * modules/memrchr (Makefile.am): Likewise.
42584         * modules/memset (Makefile.am): Likewise.
42585         * modules/memxor (Makefile.am): Likewise.
42586         * modules/mkancesdirs (Makefile.am): Likewise.
42587         * modules/mkdir (Makefile.am): Likewise.
42588         * modules/mkdir-p (Makefile.am): Likewise.
42589         * modules/mkdtemp (Makefile.am): Likewise.
42590         * modules/mkstemp (Makefile.am): Likewise.
42591         * modules/mktime (Makefile.am): Likewise.
42592         * modules/modechange (Makefile.am): Likewise.
42593         * modules/mountlist (Makefile.am): Likewise.
42594         * modules/nanosleep (Makefile.am): Likewise.
42595         * modules/openat (Makefile.am): Likewise.
42596         * modules/pagealign_alloc (Makefile.am): Likewise.
42597         * modules/physmem (Makefile.am): Likewise.
42598         * modules/poll (Makefile.am): Likewise.
42599         * modules/posixtm (Makefile.am): Likewise.
42600         * modules/posixver (Makefile.am): Likewise.
42601         * modules/putenv (Makefile.am): Likewise.
42602         * modules/quote (Makefile.am): Likewise.
42603         * modules/quotearg (Makefile.am): Likewise.
42604         * modules/raise (Makefile.am): Likewise.
42605         * modules/read-file (Makefile.am): Likewise.
42606         * modules/readline (Makefile.am): Likewise.
42607         * modules/readlink (Makefile.am): Likewise.
42608         * modules/readtokens (Makefile.am): Likewise.
42609         * modules/readutmp (Makefile.am): Likewise.
42610         * modules/realloc (Makefile.am): Likewise.
42611         * modules/regex (Makefile.am): Likewise.
42612         * modules/rename (Makefile.am): Likewise.
42613         * modules/rename-dest-slash (Makefile.am): Likewise.
42614         * modules/rijndael (Makefile.am): Likewise.
42615         * modules/rmdir (Makefile.am): Likewise.
42616         * modules/rpmatch (Makefile.am): Likewise.
42617         * modules/safe-read (Makefile.am): Likewise.
42618         * modules/safe-write (Makefile.am): Likewise.
42619         * modules/same (Makefile.am): Likewise.
42620         * modules/save-cwd (Makefile.am): Likewise.
42621         * modules/savedir (Makefile.am): Likewise.
42622         * modules/setenv (Makefile.am): Likewise.
42623         * modules/settime (Makefile.am): Likewise.
42624         * modules/sha1 (Makefile.am): Likewise.
42625         * modules/sig2str (Makefile.am): Likewise.
42626         * modules/snprintf (Makefile.am): Likewise.
42627         * modules/stdlib-safer (Makefile.am): Likewise.
42628         * modules/stpcpy (Makefile.am): Likewise.
42629         * modules/stpncpy (Makefile.am): Likewise.
42630         * modules/strcase (Makefile.am): Likewise.
42631         * modules/strcasestr (Makefile.am): Likewise.
42632         * modules/strchrnul (Makefile.am): Likewise.
42633         * modules/strcspn (Makefile.am): Likewise.
42634         * modules/strdup (Makefile.am): Likewise.
42635         * modules/strerror (Makefile.am): Likewise.
42636         * modules/strftime (Makefile.am): Likewise.
42637         * modules/strndup (Makefile.am): Likewise.
42638         * modules/strnlen (Makefile.am): Likewise.
42639         * modules/strpbrk (Makefile.am): Likewise.
42640         * modules/strsep (Makefile.am): Likewise.
42641         * modules/strstr (Makefile.am): Likewise.
42642         * modules/strtod (Makefile.am): Likewise.
42643         * modules/strtoimax (Makefile.am): Likewise.
42644         * modules/strtok_r (Makefile.am): Likewise.
42645         * modules/strtol (Makefile.am): Likewise.
42646         * modules/strtoll (Makefile.am): Likewise.
42647         * modules/strtoul (Makefile.am): Likewise.
42648         * modules/strtoull (Makefile.am): Likewise.
42649         * modules/strtoumax (Makefile.am): Likewise.
42650         * modules/strverscmp (Makefile.am): Likewise.
42651         * modules/time_r (Makefile.am): Likewise.
42652         * modules/timegm (Makefile.am): Likewise.
42653         * modules/tmpfile-safer (Makefile.am): Likewise.
42654         * modules/unistd-safer (Makefile.am): Likewise.
42655         * modules/unlinkdir (Makefile.am): Likewise.
42656         * modules/userspec (Makefile.am): Likewise.
42657         * modules/utime (Makefile.am): Likewise.
42658         * modules/utimecmp (Makefile.am): Likewise.
42659         * modules/utimens (Makefile.am): Likewise.
42660         * modules/vasnprintf (Makefile.am): Likewise.
42661         * modules/vasprintf (Makefile.am): Likewise.
42662         * modules/vsnprintf (Makefile.am): Likewise.
42663         * modules/xalloc (Makefile.am): Likewise.
42664         * modules/xgetcwd (Makefile.am): Likewise.
42665         * modules/xnanosleep (Makefile.am): Likewise.
42666         * modules/xreadlink (Makefile.am): Likewise.
42667         * modules/xstrtod (Makefile.am): Likewise.
42668         * modules/xstrtol (Makefile.am): Likewise.
42669         * modules/xstrtold (Makefile.am): Likewise.
42670         * modules/yesno (Makefile.am): Likewise.
42671
42672 2006-10-12  Jim Meyering  <jim@meyering.net>
42673
42674         * m4/getloadavg.m4: Revert the change below.
42675
42676         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
42677         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
42678         fail with a symlink, which is what coreutils' ./bootstrap now
42679         creates by default.
42680
42681 2006-10-12  Bruno Haible  <bruno@clisp.org>
42682
42683         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
42684         mingw.
42685         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
42686         MSVC and mingw explicitly.
42687
42688 2006-10-11  Simon Josefsson  <jas@extundo.com>
42689             Bruno Haible  <bruno@clisp.org>
42690
42691         Add support for multiple gnulib-tool invocations in the scope of a
42692         single configure.ac file.
42693         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
42694         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
42695         with the same contents as the _LIBADD variable.
42696         (func_emit_initmacro_start, func_emit_initmacro_end,
42697         func_emit_initmacro_done): New functions.
42698         (func_import, func_create_testdir): Invoke them. Allow the identifiers
42699         gl_LIBOBJS and gl_LTLIBOBJS.
42700
42701 2006-10-11  Bruno Haible  <bruno@clisp.org>
42702
42703         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
42704         (func_create_testdir): Don't create po/Makefile.am, don't invoke
42705         autoreconf. Instead, invoke autopoint explicitly but move back the
42706         *.m4 files from gnulib.
42707
42708 2006-10-11  Bruno Haible  <bruno@clisp.org>
42709
42710         * gnulib-tool (func_usage): Make module names after --create-testdir
42711         optional.
42712         (func_create_testdir): If no module was specified, use nearly all
42713         modules.
42714
42715 2006-10-12  Jim Meyering  <jim@meyering.net>
42716
42717         Big performance improvement for fts-based tools that use FTS_NOSTAT.
42718         Avoid spurious inode-mismatch problems on non-POSIX file systems.
42719         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
42720         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
42721         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
42722         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
42723         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
42724         (fts_set_stat_required): New function.
42725         (fts_open): Defer the calls to fts_stat, if possible or requested.
42726         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
42727         into fts_stat itself.
42728         (fts_read): Perform any required (deferred) fts_stat call.
42729         (fts_build): Likewise, for the directory we're about to open and read.
42730         In the readdir loop, carefully decide whether each entry will require
42731         an eventual call to fts_stat, using dirent.d_type info if available.
42732         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
42733         a command line argument into this function.  Update all callers.
42734         Map a return value of FTS_DOT to FTS_D for a command line argument.
42735         * modules/fts (Depends-on): Add d-type.  Alphabetize.
42736         Thanks to Miklos Szeredi for his tenacity and for the initial
42737         bug report about "find" failing on a FUSE-based file system.
42738
42739         * lib/fts.c (fts_open): Use consistent indentation.
42740
42741 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
42742
42743         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
42744         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
42745         reported by Jim Meyering.  All uses of cache variables renamed
42746         to match Autoconf's.
42747         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
42748         the other one.
42749
42750         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
42751         Fix misspelling in diagnostic.
42752
42753 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
42754
42755         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
42756         defined.  Problem reported by Matthew Woehlke.
42757
42758         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
42759         Add support for Tandem NonStop R series.
42760         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
42761         Use new macro.
42762
42763         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
42764         (has_trailing_slash): Omit size arg; all callers changed.
42765         Omit 'inline', since it doesn't help performance and we'd
42766         need to configure it.
42767         Don't count //, ///, etc. as having a trailing slash.
42768         As a side effect, this removes a C99ism reported by Matthew Woehlke.
42769         (rpl_rename_dest_slash): On failure, use rename's errno rather
42770         than (in some cases) an incorrect or junk errno.
42771         Simplify code by removing need to compute length; this does
42772         cause it to make two passes instead of one over the file name,
42773         but it's worth it.
42774
42775         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
42776         change, since Autoconf's version may no longer be appropriate now
42777         that we are using CVS Autoconf's version.  Add support for Tandem.
42778
42779 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
42780             Bruno Haible  <bruno@clisp.org>
42781
42782         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
42783         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
42784         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
42785         gl_AC_TYPE_LONG_LONG.
42786
42787         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
42788         instead of HAVE_LONG_LONG.
42789         * lib/printf-args.c (printf_fetchargs): Likewise.
42790         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
42791         * lib/vasnprintf.c (VASNPRINTF): Likewise.
42792         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
42793         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
42794         gl_AC_TYPE_LONG_LONG.
42795
42796 2006-10-11  Bruno Haible  <bruno@clisp.org>
42797
42798         * m4/longlong.m4: Add comments.
42799         * m4/ulonglong.m4: Likewise.
42800
42801 2006-10-10  Bruno Haible  <bruno@clisp.org>
42802
42803         Make it possible to #define stpcpy, strdup to aliases.
42804         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
42805         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
42806
42807 2006-10-10  Bruno Haible  <bruno@clisp.org>
42808
42809         Make it possible to #define gcd to an alias.
42810         * lib/gcd.c: Include config.h.
42811
42812 2006-10-10  Bruno Haible  <bruno@clisp.org>
42813
42814         Make it possible to #define c_isascii to an alias.
42815         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
42816         defined. Undefine the macros before defining them, to avoid gcc
42817         warnings.
42818         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
42819         define NO_C_CTYPE_MACROS early.
42820
42821 2006-10-10  Bruno Haible  <bruno@clisp.org>
42822
42823         Make it possible to #define set_program_name to an alias.
42824         * lib/progname.c: Don't undefine set_program_name; instead, undefine
42825         ENABLE_RELOCATABLE early.
42826
42827 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
42828
42829         Port to Tandem NSK OSS, which has 64-bit signed int but at most
42830         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
42831         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
42832         More generally, don't assume that 64-bit signed int is available
42833         if unsigned int is, and vice versa.
42834         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
42835         unsigned symbols, not on their signed counterparts.
42836         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
42837         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
42838         (UINT64_C, UINTMAX_C):
42839         Likewise.
42840         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
42841         unsigned counterparts.
42842         (Have_long_long, Unsigned): New macros.
42843         (Int): Renamed from INT.
42844         (strtoimax): Use the new macros.
42845         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
42846         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
42847         * modules/inttypes (inttypes.h): Substitute
42848         HAVE_UNSIGNED_LONG_LONG_INT.
42849         * modules/stdint (stdint.h): Likewise.
42850         (Files): Add m4/ulonglong.m4.
42851
42852 2006-10-10  Bruno Haible  <bruno@clisp.org>
42853
42854         Fix a gcc -Wshadow warning.
42855         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
42856         to 'bucket'.
42857         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
42858         gl_linked_indexof_from_to): Likewise.
42859         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
42860         Likewise.
42861         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
42862         Likewise.
42863         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
42864         Reported by Eric Blake.
42865
42866 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
42867
42868         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
42869         for NetBSD.  Problem reported by Bruno Haible.
42870
42871 2006-10-09  Jim Meyering  <jim@meyering.net>
42872
42873         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
42874         Patch from Bruno Haible.
42875
42876 2006-10-09  Jim Meyering  <jim@meyering.net>
42877
42878         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
42879         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
42880         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
42881
42882 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
42883
42884         Don't include <config.h> twice; this doesn't work in some cases,
42885         e.g., when config.h has "#define intmax_t long long int" and
42886         we include <config.h>, <inttypes.h>, <config.h> in that order.
42887         Problem reported by Matthew Woehlke in:
42888         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
42889         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
42890         * lib/fts-cycle.c: Don't include config.h.
42891         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
42892         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
42893         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
42894         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
42895         inttypes.h.
42896         * lib/xstrtoumax.c: Likewise.
42897         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
42898         __strtol and the like, so that this module is more like its siblings.
42899         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
42900         Remove; no longer needed now that we assume gnulib inttypes.h.
42901
42902 2006-10-08  Bruno Haible  <bruno@clisp.org>
42903
42904         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
42905         option.
42906
42907 2006-10-07  Jim Meyering  <jim@meyering.net>
42908
42909         * modules/inttypes (inttypes.h): Revert what seems to have been
42910         an inadvertent part of today's change: use "|", not "/" in the
42911         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
42912
42913 2006-10-07  Bruno Haible  <bruno@clisp.org>
42914
42915         * modules/sublist: New file.
42916
42917 2006-10-07  Bruno Haible  <bruno@clisp.org>
42918
42919         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
42920         * modules/argz (argz.h): Likewise.
42921         * modules/arpa_inet (arpa/inet.h): Likewise.
42922         * modules/byteswap (byteswap.h): Likewise.
42923         * modules/configmake (configmake.h): Likewise.
42924         * modules/fcntl (fcntl.h): Likewise.
42925         * modules/fnmatch (fnmatch.h): Likewise.
42926         * modules/getopt (getopt.h): Likewise.
42927         * modules/glob (glob.h): Likewise.
42928         * modules/inttypes (inttypes.h): Likewise.
42929         * modules/netinet_in (netinet/in.h): Likewise.
42930         * modules/poll (poll.h): Likewise.
42931         * modules/stdbool (stdbool.h): Likewise.
42932         * modules/stdint (stdint.h): Likewise.
42933         * modules/sys_select (sys/select.h): Likewise.
42934         * modules/sys_socket (sys/socket.h): Likewise.
42935         * modules/sys_stat (sys/stat.h): Likewise.
42936         * modules/sysexits (sysexits.h): Likewise.
42937         * modules/unistd (unistd.h): Likewise.
42938         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42939         Add a "DO NOT EDIT" comment to the generated file.
42940         (func_import): Likewise for gnulib-comp.m4.
42941
42942 2006-10-07  Bruno Haible  <bruno@clisp.org>
42943
42944         * lib/gl_sublist.h: New file.
42945         * lib/gl_sublist.c: New file.
42946
42947 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
42948
42949         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
42950         name (relative to the original working directory) and the file
42951         name component (relative to the temporary working directory).  All
42952         callers changed.
42953         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
42954         * lib/mkdir-p.c (make_dir_parents): Likewise.
42955         * lib/mkdir-p.h (make_dir_parents): Likewise.
42956
42957 2006-10-06  Eric Blake  <ebb9@byu.net>
42958
42959         Define several macros for use by the clean-temp module.
42960         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
42961         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
42962         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
42963
42964         * lib/clean-temp.h (close_stream_temp): New declaration.
42965         * lib/clean-temp.c (includes): Pull in headers according to what
42966         other modules are in use.
42967         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
42968
42969 2006-10-06  Bruno Haible  <bruno@clisp.org>
42970
42971         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
42972         instead of fopen, fwriteerror.
42973
42974 2006-10-06  Bruno Haible  <bruno@clisp.org>
42975
42976         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
42977         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
42978         int.
42979         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
42980         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
42981         Return an error indicator.
42982         Suggested by Eric Blake.
42983
42984 2006-10-06  Bruno Haible  <bruno@clisp.org>
42985
42986         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
42987         Reported by Eric Blake.
42988
42989 2006-10-06  Bruno Haible  <bruno@clisp.org>
42990
42991         * modules/closeout (Description): Mention stderr too.
42992
42993 2006-10-06  Bruno Haible  <bruno@clisp.org>
42994         and Paul Eggert  <eggert@cs.ucla.edu>
42995
42996         * lib/closeout.c (close_stdout): Also close stderr.
42997         * lib/closeout.h: Update comment.
42998
42999 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
43000
43001         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
43002         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
43003         * lib/dirchownmod.c: Include lchown.h.
43004         * lib/lchown.c: Don't include files that lchown.h now includes.
43005         Don't declare chown, since lchown.h now does that.
43006         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
43007         (lchown): Define to rpl_chown if lchown is declared but
43008         does not exist.  Declare using a prototype if lchown is not
43009         declared.  Add a copyright notice.
43010         * lib/mkstemp.h: Include <unistd.h>.
43011         * lib/openat.c: Include lchown.h.
43012
43013         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
43014         we now test for that separately.
43015         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
43016         rather than O_NOFOLLOW, when testing whether it's possible to
43017         avoid a race condition reliably.
43018         * lib/savewd.c (savewd_chdir): Likewise.
43019
43020         Remove macros that are no longer needed now that stdint.h is
43021         reliable.
43022         * lib/fsusage.c (UINTMAX_MAX): Remove.
43023         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
43024         * lib/utimecmp.c (SIZE_MAX): Remove.
43025
43026         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
43027
43028         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
43029         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
43030         O_NOATIME works.
43031
43032 2006-10-05  Bruno Haible  <bruno@clisp.org>
43033
43034         * lib/gl_list.h (gl_sortedlist_search_from_to,
43035         gl_sortedlist_indexof_from_to): New declarations.
43036         (gl_list_implementation): New fields sortedlist_search_from_to,
43037         sortedlist_indexof_from_to.
43038         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
43039         inline functions.
43040         * lib/gl_list.c (gl_sortedlist_search_from_to,
43041         gl_sortedlist_indexof_from_to): New functions.
43042         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
43043         function.
43044         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
43045         (gl_array_sortedlist_search_from_to): New function.
43046         (gl_array_list_implementation): Update.
43047         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
43048         function.
43049         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
43050         (gl_carray_sortedlist_search_from_to): New function.
43051         (gl_carray_list_implementation): Update.
43052         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
43053         gl_linked_sortedlist_indexof_from_to): New functions.
43054         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
43055         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
43056         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
43057         gl_tree_sortedlist_indexof_from_to): New functions.
43058         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
43059         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
43060         Update.
43061         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
43062         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
43063         Update.
43064
43065 2006-10-05  Bruno Haible  <bruno@clisp.org>
43066
43067         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
43068         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
43069         (struct gl_list_implementation): Add fields search_from_to,
43070         indexof_from_to. Remove fields search, indexof.
43071         (gl_list_search): Use the search_from_to method.
43072         (gl_list_search_from, gl_list_search_from_to): New functions.
43073         (gl_list_indexof): Use the indexof_from_to method.
43074         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
43075         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
43076         (gl_list_search_from, gl_list_search_from_to): New functions.
43077         (gl_list_indexof): Use the indexof_from_to method.
43078         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
43079         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
43080         gl_array_indexof. Add start_index, end_index arguments.
43081         (gl_array_search_from_to): Renamed from gl_array_search. Add
43082         start_index, end_index arguments.
43083         (gl_array_remove, gl_array_list_implementation): Update.
43084         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
43085         gl_carray_indexof. Add start_index, end_index arguments.
43086         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
43087         start_index, end_index arguments.
43088         (gl_carray_remove, gl_carray_list_implementation): Update.
43089         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
43090         gl_linked_search. Add start_index, end_index arguments.
43091         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
43092         start_index, end_index arguments.
43093         (gl_linked_remove): Update.
43094         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
43095         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
43096         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
43097         field to 'size_t'.
43098         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
43099         gl_tree_search. Add start_index, end_index arguments.
43100         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
43101         start_index, end_index arguments.
43102         (gl_tree_remove): Update.
43103         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
43104         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
43105         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
43106         function.
43107         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
43108         gl_tree_search. Add start_index, end_index arguments.
43109         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
43110         start_index, end_index arguments.
43111         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
43112         Update.
43113         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
43114
43115 2006-10-05  Bruno Haible  <bruno@clisp.org>
43116
43117         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
43118
43119         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
43120         fwriteerror_temp): New declarations.
43121         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
43122         (descriptors): New variable.
43123         (cleanup): First, close the descriptors.
43124         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
43125         fclose_temp, fwriteerror_temp): New functions.
43126
43127 2006-10-04  Jim Meyering  <jim@meyering.net>
43128
43129         * lib/fts.c (fts_open): Tiny comment change.
43130
43131 2006-10-04  Bruno Haible  <bruno@clisp.org>
43132
43133         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
43134         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
43135         gl_LOCK_BODY.
43136         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
43137         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
43138         gl_LOCK_EARLY_BODY.
43139         (gl_LOCK): Require gl_LOCK_BODY.
43140
43141 2006-10-04  Bruno Haible  <bruno@clisp.org>
43142
43143         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
43144         (gl_oset_search_atleast): New declaration.
43145         (struct gl_oset_implementation): Add field 'search_atleast'.
43146         (gl_oset_search_atleast): New inline function.
43147         * lib/gl_oset.c (gl_oset_search_atleast): New function.
43148         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
43149         (gl_array_oset_implementation): Update.
43150         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
43151         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
43152         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
43153
43154 2006-10-04  Bruno Haible  <bruno@clisp.org>
43155
43156         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
43157
43158 2006-10-03  Bruno Haible  <bruno@clisp.org>
43159
43160         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
43161         from gl_avltreehash_list_implementation.
43162
43163 2006-10-03  Bruno Haible  <bruno@clisp.org>
43164
43165         * lib/gl_oset.c (gl_oset_add): Fix return type.
43166
43167 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
43168
43169         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
43170
43171 2006-10-02  Eric Blake  <ebb9@byu.net>
43172
43173         * modules/strnlen (Depends-on): Add extensions.
43174
43175 2006-10-02  Eric Blake  <ebb9@byu.net>
43176
43177         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
43178         definition in 2.60+.
43179
43180 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
43181
43182         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
43183         checks.
43184
43185 2006-10-02  Bruno Haible  <bruno@clisp.org>
43186
43187         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
43188         to the AUTOMAKE_OPTIONS.
43189         Reported by Jim Meyering.
43190
43191 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
43192
43193         Work around bug in Solaris 10 /proc file system:
43194         /proc/self/fd/NNN/.. isn't the parent directory of
43195         the directory whose file descriptor is NNN.  This needs to
43196         be worked around at run time, not compile time, since a
43197         program might be built on Solaris 8, where things work, and
43198         run on Solaris 10.
43199         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
43200         to use the following interface instead:
43201         (OPENAT_BUFFER_SIZE): New macro.
43202         (openat_proc_name): New function.
43203         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
43204         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
43205         Likewise.
43206         * lib/openat-proc.c: New file.
43207         * modules/openat (Files): Add lib/openat-proc.c.
43208         (Depends-on): Add same-inode, stdbool.
43209         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
43210
43211 2006-09-29  Bruno Haible  <bruno@clisp.org>
43212
43213         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
43214         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
43215         argument. Set stdout_closed before testing for ferror, not after.
43216         (fwriteerror, fwriteerror_no_ebadf): New functions.
43217
43218 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43219
43220         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
43221
43222 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
43223
43224         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
43225         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
43226
43227 2006-09-28  Jim Meyering  <jim@meyering.net>
43228
43229         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
43230         Include <unistd.h>.
43231
43232 2006-09-28  Bruno Haible  <bruno@clisp.org>
43233
43234         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
43235         * modules/linkedhash-list (Depends-on): Likewise.
43236         * modules/rbtreehash-list (Depends-on): Likewise.
43237
43238 2006-09-28  Bruno Haible  <bruno@clisp.org>
43239
43240         * lib/strndup.h: Simplify the redefinition of strndup.
43241         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
43242         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
43243
43244 2006-09-28  Bruno Haible  <bruno@clisp.org>
43245
43246         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
43247         * lib/gl_linkedhash_list.c: Likewise.
43248         * lib/gl_rbtreehash_list.c: Likewise.
43249
43250 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
43251
43252         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
43253         getaddrinfo.
43254
43255         * lib/__fpending.h: Don't include <stdio_ext.h> unless
43256         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
43257         it causes <stdio_ext.h> to cause a compile-time error.
43258         Problem reported by Nelson H. F. Beebe.
43259         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
43260         of HAVE_DECL___PENDING.
43261
43262         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
43263         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
43264         declaration.
43265
43266 2006-09-27  Jim Meyering  <jim@meyering.net>
43267
43268         This file could end up with a definition for a function
43269         named __strndup, rather than rpl_strndup on a system with
43270         incomplete weak_alias support.
43271         * lib/strndup.c (strndup): Rename from __strndup.
43272         Remove #defines that used to map __strndup to strndup.
43273         Don't use K&R prototypes.
43274         Remove LIBC-related code, since this file is not sync'd with glibc.
43275         * lib/strndup.h: Revamp, accordingly.
43276         * m4/strndup.m4: Modernize.
43277
43278 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
43279
43280         * modules/savewd (Depends-on): Add 'raise'.
43281         * lib/savewd.c: Include <signal.h>, for 'raise'.
43282
43283 2006-09-26  Jim Meyering  <jim@meyering.net>
43284
43285         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
43286         when we detect Darwin 8.7.0's acl_get_file bug.
43287         Rearrange to perform the new (below) run-test while $LIBS
43288         contains any acl-related library.  Set USE_ACL at the end.
43289         (gl_ACL_GET_FILE): New function.
43290
43291 2006-09-26  Eric Blake  <ebb9@byu.net>
43292
43293         * lib/verror.c: Include <config.h> unconditionally.
43294
43295 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
43296
43297         * modules/clock-time (Maintainer): Add self.
43298         * modules/getlogin_r (Depends-on): Add extensions.
43299
43300 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43301
43302         * modules/clock-time: New module.
43303         * modules/nanosleep (Depends-on): Add clock-time.
43304         * modules/gethrxtime (Depends-on): Likewise.
43305         * modules/gettime (Depends-on): Likewise.
43306         * modules/settime (Depends-on): Likewise.
43307
43308         * modules/fts-lgpl: Depend on openat.
43309         * modules/mkancesdirs: Depend on savewd.
43310         * modules/mkdir-p: Likewise.
43311
43312 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43313
43314         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
43315
43316         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
43317         `gl_have_arbitrary_file_name_length_limit' to
43318         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
43319         actually works between configure runs.
43320
43321 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43322             Bruno Haible  <bruno@clisp.org>
43323
43324         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
43325
43326 2006-09-25  Jim Meyering  <jim@meyering.net>
43327
43328         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
43329         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
43330
43331 2006-09-25  Eric Blake  <ebb9@byu.net>
43332
43333         * gnulib-tool (func_import, func_create_testdir): Fix typos in
43334         exec's in 2006-09-18 patch when shuffling fds.
43335
43336 2006-09-25  Bruno Haible  <bruno@clisp.org>
43337
43338         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
43339         Reported by Jim Meyering.
43340
43341 2006-09-24  Jim Meyering  <jim@meyering.net>
43342
43343         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
43344         compare a pointer against a literal "0".  That caused failures with
43345         at least HP-UX's hpcc.
43346
43347 2006-09-22  Simon Josefsson  <jas@extundo.com>
43348
43349         * modules/gc-sha1:
43350         * modules/gc-md4:
43351         * modules/gc-hmac-sha1:
43352         * modules/gc-hmac-md5:
43353         * modules/gc-des:
43354         * modules/gc-arcfour: Distribute more files.
43355
43356 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43357
43358         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
43359         (gl_linked_iterator_from_to): Initialize struct completely.
43360         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
43361         (gl_tree_iterator_from_to): Likewise
43362         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
43363         * lib/gl_array_list.c [lint] (gl_array_iterator)
43364         (gl_array_iterator_from_to): Likewise.
43365         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
43366         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
43367         (gl_carray_iterator_from_to): Likewise.
43368
43369         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
43370         * lib/md4.c (md4_process_block): Remove unused variable.
43371         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
43372         parentheses for clarity.
43373
43374 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43375
43376         * modules/bison-i18n (Depends-on): Add gettext.
43377
43378 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43379
43380         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
43381         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
43382         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
43383         also add missing comma that caused broken test.
43384         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
43385         stdlib.h, for `abort'.
43386         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
43387         variables.
43388         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
43389         include unistd.h if present, for `rmdir'.
43390         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
43391         variables.
43392         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
43393         in the process include standard headers for prototypes.
43394         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
43395         gets declared on GNU/Linux.
43396         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
43397         unistd.h, for `rmdir'.
43398         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
43399
43400         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
43401         always true.
43402         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
43403
43404         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
43405
43406 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43407
43408         * gnulib-tool (func_version): Create output all at once.  This
43409         may help avoid triggering unnecessary SIGPIPEs, and at any
43410         rate it doesn't hurt.
43411
43412 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43413             Bruno Haible  <bruno@clisp.org>
43414
43415         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
43416         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
43417         * m4/signed.m4 (bh_C_SIGNED): Likewise.
43418
43419         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
43420         (gl_FUNC_VASPRINTF): Invoke it.
43421
43422 2006-09-22  Bruno Haible  <bruno@clisp.org>
43423
43424         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
43425         getloadavg.c as first argument.
43426
43427 2006-09-22  Bruno Haible  <bruno@clisp.org>
43428
43429         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
43430         at the beginning of the gl_INIT macro.
43431         * modules/getloadavg (configure.ac): Pass $gl_source_base to
43432         gl_GETLOADAVG.
43433
43434 2006-09-22  Bruno Haible  <bruno@clisp.org>
43435
43436         * gnulib-tool (func_create_megatestdir): Don't include the config-h
43437         module.
43438         Suggested by Ralf Wildenhues.
43439
43440 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
43441
43442         Import this patch from libc:
43443
43444         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
43445
43446         * lib/regex_internal.c (re_string_reconstruct): Handle
43447         offset < pstr->valid_raw_len && pstr->offsets_needed case.
43448         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
43449         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
43450         re_string_context_at.
43451
43452         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
43453         now requires it.
43454         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
43455         gl_REGEX now does it for us.
43456         (gl_REGEX): Add test taken from
43457         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
43458
43459         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
43460         Check that large offsets work.  Modernize Autoconf usages.
43461         Prefer "yes" to mean a good thing rather than a bad.
43462         Don't put "#define mkstemp" in config.h, as this might interfere
43463         with standard system headers that "#define mkstemp mkstemp64".
43464
43465         * modules/mkstemp (Depends-on): Add extensions, so that
43466         mkstemp is visible on some platforms.
43467         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
43468         (Include): Change to "mkstemp.h" from <stdlib.h>.
43469         (Files): Add mkstemp.h.
43470
43471         * lib/mkstemp.h: New file, since some standard headers
43472         #define mkstemp.
43473         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
43474         Include "mkstemp.h".
43475         Make the _LIBC code resemble glibc original more,
43476         e.g., use K&R style.
43477         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
43478         (mkstemp): Remove, since mkstemp.h does this for us.
43479         * lib/stdlib--.h: Include mkstemp.h.
43480
43481         Import this patch from libc:
43482
43483         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
43484
43485         * lib/tempname.c (__gen_tempname): Change attempts_min
43486         into a macro.  Use preprocessor to decide how to initialize
43487         attempts [Coverity CID 67].
43488
43489 2006-09-20  Bruno Haible  <bruno@clisp.org>
43490
43491         * lib/mkdtemp.c: Import from libc.
43492         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
43493                 * sysdeps/posix/tempname.c (__gen_tempname): Change
43494                 attempts_min into a macro.  Use preprocessor to decide how to
43495                 initialize attempts [Coverity CID 67].
43496         2001-11-27  Paul Eggert  <eggert@twinsun.com>
43497                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
43498                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
43499
43500 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43501
43502         * gnulib-tool (func_exit): New function, to allow to pass the
43503         exit status portably through the trap.  Use everywhere.
43504         (--help, --version): Signal a write error.
43505         (trap): catch SIGPIPE, for write errors.
43506         Exit at the end of the trap, with the correct exit status.
43507
43508 2006-09-19  Karl Berry  <karl@gnu.org>
43509
43510         * doc/gnulib.texi: note about the license texinfo files.
43511
43512 2006-09-19  Eric Blake  <ebb9@byu.net>
43513
43514         * gnulib-tool: Avoid space-tab.
43515
43516 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
43517
43518         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
43519         that prevented coreutils 6.1 from building.  Problem reported
43520         by Petter Reinholdtsen.
43521
43522 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
43523
43524         * gnulib-tool (avoidlist): Fix typo that broke options like
43525         --avoid=lock that are used by coreutils bootstrap.
43526
43527 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
43528
43529         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
43530         more systematically.
43531
43532 2006-09-18  Jim Meyering  <jim@meyering.net>
43533
43534         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
43535
43536 2006-09-18  Bruno Haible  <bruno@clisp.org>
43537
43538         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
43539
43540 2006-09-18  Bruno Haible  <bruno@clisp.org>
43541
43542         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
43543         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
43544         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
43545         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
43546         * m4/gettext.m4: Require autoconf >= 2.52.
43547         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
43548         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
43549         of gl_cv_header_inttypes_h.
43550
43551 2006-09-18  Bruno Haible  <bruno@clisp.org>
43552
43553         * lib/javaversion.c: Include configmake.h.
43554
43555 2006-09-18  Bruno Haible  <bruno@clisp.org>
43556
43557         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
43558         avoid that the while loops be executed in a subshell.
43559
43560 2006-09-18  Bruno Haible  <bruno@clisp.org>
43561
43562         * MODULES.html.sh (func_module): Break long lines.
43563         Suggested by Bruce Korb <bkorb@gnu.org>.
43564
43565 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43566
43567         Speed up by a factor of 1.12.
43568         * gnulib-tool (nl): New variable.
43569         (func_import): Rewrite include directive extraction to only read each
43570         directive once.
43571
43572 2006-09-17  Bruno Haible  <bruno@clisp.org>
43573
43574         * modules/javaversion (Makefile.am): Remove DEFS setting.
43575         (Depends-on): Add configmake, for PKGDATADIR definition.
43576
43577 2006-09-17  Bruno Haible  <bruno@clisp.org>
43578
43579         * gnulib-tool (func_create_testdir): Rewrite all files at once.
43580
43581 2006-09-17  Bruno Haible  <bruno@clisp.org>
43582
43583         * gnulib-tool (func_append): New function, stolen from libtool.m4.
43584         (func_modules_transitive_closure, func_modules_add_dummy,
43585         func_modules_to_filelist, func_import, func_create_testdir,
43586         func_create_megatestdir, ...): Use it wherever possible.
43587         Suggested by Ralf Wildenhues.
43588
43589 2006-09-16  Karl Berry  <karl@gnu.org>
43590
43591         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
43592         to avoid sectioning errors.
43593         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
43594         [ifinfo]: blank line after @center-ed titles.
43595         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
43596         Spell FSF address consistently with others.
43597         (These changes approved by rms.)
43598
43599 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43600
43601         Speed up by a factor of 1.61.
43602         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
43603         already checked module names again.
43604
43605 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43606
43607         Speed up by a factor of 1.13.
43608         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
43609         for new_files, and the input to func_add_or_update.
43610
43611 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43612
43613         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
43614         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
43615
43616 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
43617
43618         * modules/mkancesdirs (Depends-on): Add fcntl.
43619         * modules/savewd: New file.
43620         * MODULES.html.sh (File system functions): Add savewd.
43621
43622         * modules/configmake (Makefile.am): Add support for the
43623         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
43624
43625 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
43626
43627         * m4/savewd.m4: New file.
43628
43629 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
43630
43631         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
43632         (dirchownmod): New arg FD.  All callers changed.
43633         Use FD rather than opening the directory ourself, as opening is
43634         now the caller's responsibility.
43635         * lib/dirchownmod.h: Likewise.
43636         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
43637         hosts that require <sys/types.h> before <sys/stat.h>.  Include
43638         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
43639         (test_dir): Remove.
43640         (mkancesdirs): Return length of prefix of FILE that has already
43641         been made, or -2 if there is a child doing the work.  Redo
43642         algorithm so that it is O(N) rather than O(N**2).  Optimize away
43643         ".", and treat ".." specially since it might stray back into
43644         already-created areas.  Use a subprocess if necessary.  New arg
43645         WD; all users changed.  MAKE_DIR function should now return 1
43646         if it creates a directory that is not readable.  Return -2 if
43647         a child process is spun off.
43648         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
43649         Adjust signature to match code.
43650         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
43651         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
43652         all users changed.
43653         * lib/savewd.c, lib/savewd.h: New files.
43654
43655 2006-09-15  Jim Meyering  <jim@meyering.net>
43656
43657         * modules/rename-dest-slash: New module.
43658         * MODULES.html.sh (posix_compat): Add it here.
43659
43660         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
43661
43662 2006-09-15  Jim Meyering  <jim@meyering.net>
43663
43664         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
43665         file.
43666
43667         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
43668
43669 2006-09-15  Jim Meyering  <jim@meyering.net>
43670
43671         * lib/rename-dest-slash.c (has_trailing_slash): Use
43672         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
43673         (rpl_rename_dest_slash): Perform the cheaper trailing slash
43674         test before testing whether SRC is a directory.
43675         Suggestions from Bruno Haible.
43676
43677         Avoid a warning about an unused variable.
43678         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
43679         into the #ifdef block where it's used.
43680
43681         * lib/rename-dest-slash.c: New file.
43682
43683 2006-09-14  Bruno Haible  <bruno@clisp.org>
43684
43685         * lib/allocsa.c: Include <config.h> unconditionally.
43686         * lib/asnprintf.c: Likewise.
43687         * lib/asprintf.c: Likewise.
43688         * lib/c-strcasecmp.c: Likewise.
43689         * lib/c-strcasestr.c: Likewise.
43690         * lib/c-strncasecmp.c: Likewise.
43691         * lib/c-strstr.c: Likewise.
43692         * lib/classpath.c: Likewise.
43693         * lib/clean-temp.c: Likewise.
43694         * lib/concatpath.c: Likewise.
43695         * lib/copy-file.c: Likewise.
43696         * lib/csharpcomp.c: Likewise.
43697         * lib/csharpexec.c: Likewise.
43698         * lib/execute.c: Likewise.
43699         * lib/fatal-signal.c: Likewise.
43700         * lib/findprog.c: Likewise.
43701         * lib/fwriteerror.c: Likewise.
43702         * lib/gl_array_list.c: Likewise.
43703         * lib/gl_array_oset.c: Likewise.
43704         * lib/gl_avltree_list.c: Likewise.
43705         * lib/gl_avltree_oset.c: Likewise.
43706         * lib/gl_avltreehash_list.c: Likewise.
43707         * lib/gl_carray_list.c: Likewise.
43708         * lib/gl_linked_list.c: Likewise.
43709         * lib/gl_linkedhash_list.c: Likewise.
43710         * lib/gl_list.c: Likewise.
43711         * lib/gl_oset.c: Likewise.
43712         * lib/gl_rbtree_list.c: Likewise.
43713         * lib/gl_rbtree_oset.c: Likewise.
43714         * lib/gl_rbtreehash_list.c: Likewise.
43715         * lib/imaxabs.c: Likewise.
43716         * lib/imaxdiv.c: Likewise.
43717         * lib/javacomp.c: Likewise.
43718         * lib/javaexec.c: Likewise.
43719         * lib/javaversion.c: Likewise.
43720         * lib/linebreak.c: Likewise.
43721         * lib/localcharset.c: Likewise.
43722         * lib/lock.c: Likewise.
43723         * lib/mbchar.c: Likewise.
43724         * lib/mbswidth.c: Likewise.
43725         * lib/mkdtemp.c: Likewise.
43726         * lib/pipe.c: Likewise.
43727         * lib/printf-args.c: Likewise.
43728         * lib/printf-parse.c: Likewise.
43729         * lib/progname.c: Likewise.
43730         * lib/progreloc.c: Likewise.
43731         * lib/readlink.c: Likewise.
43732         * lib/sh-quote.c: Likewise.
43733         * lib/stpcpy.c: Likewise.
43734         * lib/stpncpy.c: Likewise.
43735         * lib/strcasecmp.c: Likewise.
43736         * lib/strcasestr.c: Likewise.
43737         * lib/strcspn.c: Likewise.
43738         * lib/striconv.c: Likewise.
43739         * lib/strncasecmp.c: Likewise.
43740         * lib/strnlen1.c: Likewise.
43741         * lib/strstr.c: Likewise.
43742         * lib/strtok_r.c: Likewise.
43743         * lib/tls.c: Likewise.
43744         * lib/tmpdir.c: Likewise.
43745         * lib/unicodeio.c: Likewise.
43746         * lib/unsetenv.c: Likewise.
43747         * lib/vasnprintf.c: Likewise.
43748         * lib/vasprintf.c: Likewise.
43749         * lib/wait-process.c: Likewise.
43750         * lib/xallocsa.c: Likewise.
43751         * lib/xsetenv.c: Likewise.
43752         * lib/xstriconv.c: Likewise.
43753
43754 2006-09-13  Simon Josefsson  <jas@extundo.com>
43755
43756         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
43757         that internally, suggested by Ralf Wildenhues
43758         <Ralf.Wildenhues@gmx.de>.
43759
43760 2006-09-13  Simon Josefsson  <jas@extundo.com>
43761
43762         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
43763         @LIBOBJS@.
43764         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43765
43766 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
43767
43768         * lib/_fpending.c: Include <config.h> unconditionally, since we no
43769         longer worry about uses that don't define HAVE_CONFIG_H.
43770         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
43771         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
43772         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
43773         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
43774         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
43775         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
43776         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
43777         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
43778         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
43779         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
43780         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
43781         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
43782         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
43783         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
43784         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
43785         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
43786         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
43787         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
43788         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
43789         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
43790         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
43791         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
43792         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
43793         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
43794         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
43795         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
43796         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
43797         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
43798         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
43799         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
43800         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
43801         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
43802         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
43803         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
43804         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
43805         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
43806         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
43807         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
43808         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
43809         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
43810         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
43811         Likewise.
43812
43813 2006-09-13  Eric Blake  <ebb9@byu.net>
43814
43815         * lib/getopt.c: Fix typo in last commit.
43816
43817 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43818
43819         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
43820         dgettext.
43821
43822 2006-09-12  Jim Meyering  <jim@meyering.net>
43823
43824         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
43825         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
43826         Reported by Nelson H. F. Beebe.
43827
43828 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
43829
43830         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
43831         program_invocation_name and program_invocation_short_name are
43832         initialized.
43833         * lib/argp-namefrob.h: Move declarations of program_invocation_name
43834         and program_invocation_short_name to argp.h, so they are visible
43835         to user programs.
43836         * lib/argp.h: Likewise
43837
43838 2006-09-10  Bruno Haible  <bruno@clisp.org>
43839
43840         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
43841         m4/inttypes_h.m4, m4/uintmax_t.m4.
43842
43843 2006-09-10  Bruno Haible  <bruno@clisp.org>
43844
43845         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
43846         gl_AC_TYPE_UINTMAX_T.
43847
43848 2006-09-10  Bruno Haible  <bruno@clisp.org>
43849
43850         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
43851
43852 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
43853
43854         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
43855         convention.  Text proposed by Bruno Haible.
43856         (struct argp_option): Document the use of N_() wrappers.
43857
43858         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
43859         '\v', and translate the two parts separately, instead of feeding
43860         the whole string to gettext.  This allows to exclude
43861         '\v' from the strings visible to the translator by writing doc
43862         strings as N_("..") "\v" N_("..").
43863
43864 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
43865
43866         * config/srclist.txt: Undo latest change; the bug was fixed.
43867
43868 2006-09-09  Bruno Haible  <bruno@clisp.org>
43869
43870         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
43871         assignments if building a library without libtool.
43872         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
43873         in func_emit_lib_Makefile_am.
43874         (func_import): When building a static library libfoo.a, arrange to
43875         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
43876         (func_create_testdir): Likewise.
43877         * modules/gc (configure.ac, Makefile.am): If building statically,
43878         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
43879         * modules/iconvme (configure.ac, Makefile.am): Likewise.
43880         * modules/striconv (configure.ac, Makefile.am): Likewise.
43881         Based on a suggestion by Ralf Wildenhues.
43882
43883 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43884
43885         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
43886         Check for unistd.h too, since Autoconf doesn't assume POSIX.
43887         Also:
43888
43889         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43890         Add year_2050_test to catch glibc bug 2821
43891         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
43892
43893         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
43894         Prefer #ifdef to #if.
43895
43896         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
43897         Return from 'main' instead of calling 'exit'.
43898
43899 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43900
43901         * lib/mktime.c (guess_time_tm): Fix bug where mktime
43902         returned the maximum time_t value rather than (time_t) -1.
43903         Problem originally reported by William Bardwell
43904         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
43905
43906         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
43907         Moved to here ...
43908         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
43909         ... from here.
43910
43911 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43912
43913         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
43914         2821 is fixed.
43915
43916 2006-09-08  Jim Meyering  <jim@meyering.net>
43917
43918         Don't make generated files read-only.  That would bother too many
43919         people.  However, do retain the ability to work when targets are
43920         read-only: remove the destination and temporary files before writing
43921         them (when generated via sed or echo), or by using the -f option for
43922         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
43923         * modules/alloca-opt, modules/argz, modules/arpa_inet:
43924         * modules/byteswap, modules/configmake, modules/fcntl:
43925         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
43926         * modules/localcharset, modules/netinet_in, modules/poll:
43927         * modules/stdbool, modules/stdint, modules/sys_select:
43928         * modules/sys_socket, modules/sys_stat, modules/sysexits:
43929
43930 2006-09-08  Jim Meyering  <jim@meyering.net>
43931
43932         Avoid new build failure on FreeBSD 6.0.
43933         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
43934         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
43935         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
43936
43937 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43938
43939         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
43940
43941 2006-09-07  Jim Meyering  <jim@meyering.net>
43942
43943         Fix global typo in last change: use chmod u-w, not chmod u-x.
43944         Spotted by Paul Eggert and Bruce Korb.
43945         * modules/alloca-opt, modules/argz, modules/arpa_inet:
43946         * modules/byteswap, modules/configmake, modules/fcntl:
43947         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
43948         * modules/localcharset, modules/netinet_in, modules/poll:
43949         * modules/stdbool, modules/stdint, modules/sys_select:
43950         * modules/sys_socket, modules/sys_stat, modules/sysexits:
43951
43952 2006-09-06  Jim Meyering  <jim@meyering.net>
43953
43954         Make generated files be read-only.
43955         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
43956         Ensure that each generated file is now read-only.
43957         * modules/argz: Likewise.
43958         * modules/arpa_inet: Likewise.
43959         * modules/byteswap: Likewise.
43960         * modules/configmake: Likewise.
43961         * modules/fcntl: Likewise.
43962         * modules/fnmatch: Likewise.
43963         * modules/getopt: Likewise.
43964         * modules/glob: Likewise.
43965         * modules/inttypes: Likewise.
43966         * modules/netinet_in: Likewise.
43967         * modules/poll: Likewise.
43968         * modules/stdbool: Likewise.
43969         * modules/stdint: Likewise.
43970         * modules/sys_select: Likewise.
43971         * modules/sys_socket: Likewise.
43972         * modules/sys_stat: Likewise.
43973         * modules/sysexits: Likewise.
43974         * modules/localcharset: Same as above, but continue using temporary
43975         file named "t-$@" (why different?) rather than the "$@-t" used
43976         everywhere else.
43977
43978         * modules/sysexits (Makefile.am): Replace literal occurrences
43979         of "sysexit.h" more readable, and more consistent, "$@".
43980
43981 2006-09-06  Bruno Haible  <bruno@clisp.org>
43982
43983         * modules/striconv: New file.
43984         * modules/xstriconv: New file.
43985         * MODULES.html.sh (Internationalization functions): Add striconv,
43986         xstriconv.
43987
43988 2006-09-06  Bruno Haible  <bruno@clisp.org>
43989
43990         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
43991         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
43992         not using libtool correctly.
43993
43994 2006-09-06  Bruno Haible  <bruno@clisp.org>
43995
43996         * lib/striconv.h: New file.
43997         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
43998         iconvstring.c.
43999         * lib/xstriconv.h: New file.
44000         * lib/xstriconv.c: New file.
44001
44002 2006-09-06  Bruno Haible  <bruno@clisp.org>
44003
44004         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
44005         lib_..._LDFLAGS.
44006
44007 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44008
44009         * lib/argz_.h: Sync from Libtool.
44010
44011         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
44012                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44013
44014         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
44015
44016 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
44017
44018         * modules/trim: New file.
44019
44020 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
44021
44022         * lib/trim.h: New file.
44023         * lib/trim.c: New file.
44024
44025 2006-09-05  Bruno Haible  <bruno@clisp.org>
44026
44027         * MODULES.html.sh (String handling): Add trim.
44028
44029 2006-09-04  Karl Berry  <karl@gnu.org>
44030
44031         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
44032         until next release.
44033
44034 2006-09-03  Bruno Haible  <bruno@clisp.org>
44035
44036         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
44037         correctly.
44038
44039 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
44040
44041         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
44042         not gl_GETLOADAVG.  Omit unneeded semicolons.
44043         Problems reported by Ralf Wildenhues in
44044         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
44045         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
44046         at the end, which is the usual gnulib style.
44047
44048         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
44049         of doing all the work ourselves.
44050         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
44051         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
44052
44053 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
44054
44055         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
44056         Problem reported by Ralf Wildenhues in
44057         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
44058
44059         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
44060         HAVE_STRUCT_STATFS_F_FSTYPENAME.
44061
44062 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
44063
44064         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
44065         yesterday's patch by changing test -n to test -z.
44066
44067 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
44068
44069         * modules/getloadavg (Files): Add m4/getloadavg.m4.
44070         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
44071         the former is now obsolescent.
44072
44073         * modules/chdir-long (Depends-on): Add fcntl.
44074
44075 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
44076
44077         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
44078         obsolescent, and programs should use gnulib instead.
44079         * m4/getloadavg.m4: New file, with contents taken from Autoconf
44080         but with prefixes changed.
44081
44082 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
44083
44084         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
44085         or stdbool.h, because they might not exist while configuring.
44086
44087         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
44088         Don't include unistd.h or limits.h; not needed, since chdir-long.h
44089         does that for us.
44090         (O_DIRECTORY): Remove.
44091
44092 2006-08-31  Eric Blake  <ebb9@byu.net>
44093
44094         * gnulib-tool: Don't let emacs change spaces to TAB.
44095
44096 2006-08-31  Bruno Haible  <bruno@clisp.org>
44097
44098         * gnulib-tool: When calling func_import more than once, do it in a
44099         subshell.
44100         Reported by Eric Blake <ebb9@byu.net>.
44101
44102 2006-08-31  Bruno Haible  <bruno@clisp.org>
44103
44104         * gnulib-tool (nl): Remove variable.
44105         (sed_transform_lib_file): Use more robust test for config-h module.
44106         (func_import): Fix typo in 2006-08-25 patch.
44107
44108 2006-08-31  Bruno Haible  <bruno@clisp.org>
44109
44110         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
44111         specified, augment Makefile.am variables instead of assigning them.
44112
44113 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44114
44115         Work around a bug in both the Linux and SunOS 64-bit kernels:
44116         nanosleep mishandles sleeps for longer than 2**31 seconds.
44117         Problem reported by Frank v Waveren in
44118         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
44119         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
44120         Check for nanosleep bug.
44121         (LIB_NANOSLEEP): Append clock_gettime library if needed.
44122
44123 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44124
44125         Work around a bug in both the Linux and SunOS 64-bit kernels:
44126         nanosleep mishandles sleeps for longer than 2**31 seconds.
44127         Problem reported by Frank v Waveren in
44128         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
44129         * lib/nanosleep.c (BILLION): New constant.
44130         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
44131         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
44132         implementation.
44133
44134 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44135
44136         * modules/nanosleep (Depends-on): Add gettime.
44137
44138 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44139         and Simon Josefsson  <jas@extundo.com>
44140         and Oskar Liljeblad  <oskar@osk.mine.nu>
44141
44142         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
44143         * gnulib-tool (func_import): New license type 'unmodifiable license
44144         text'.
44145         * modules/fdl: Use it.  Longer description.
44146         * module/gpl, module/lgpl: New files.
44147
44148 2006-08-30  Jim Meyering  <jim@meyering.net>
44149
44150         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
44151         shadowing the parameter.
44152
44153 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44154
44155         Sync from Libtool:
44156
44157         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44158
44159         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
44160         sharing with gnulib.  Report by Eric Blake.
44161
44162 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44163
44164         * modules/isapipe: New file.
44165         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
44166
44167 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44168
44169         * modules/configmake (Makefile.am): Add a comment, and omit
44170         the CONFIGMAKE_ prefix from generated macro names.  Suggested
44171         by Bruno Haible.
44172
44173 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44174
44175         * m4/isapipe.m4: New file.
44176
44177 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44178
44179         * lib/isapipe.c, lib/isapipe.h: New files.
44180
44181 2006-08-29  Jim Meyering  <jim@meyering.net>
44182
44183         * modules/configmake (Makefile.am): Make configmake.h depend on
44184         Makefile.  Otherwise, a stale configmake.h could hang around.
44185
44186 2006-08-29  Eric Blake  <ebb9@byu.net>
44187
44188         * lib/error.c (error_at_line, print_errno_message): Match libc, after
44189         resolution of upstream bug 3044.
44190
44191 2006-08-29  Bruno Haible  <bruno@clisp.org>
44192
44193         * modules/localcharset (Depends-on): Add configmake.
44194         (Makefile.am): Remove setting of LIBDIR through DEFS.
44195
44196 2006-08-29  Bruno Haible  <bruno@clisp.org>
44197
44198         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
44199         defined.
44200
44201 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44202
44203         * modules/fcntl: New file.
44204         * modules/chdir-safer (Depends-on): Add fcntl.
44205         * modules/fts: Likewise.
44206         * modules/mkdir-p: Likewise.
44207
44208         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
44209         This undoes the most recent change, since we're now addressing the
44210         problem in a different way.
44211
44212         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
44213         into output, since the output might be called Makefile.am even
44214         if $makefile_name is something different.
44215         (func_import): Use $makefile_am rather than
44216         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
44217         empty.
44218
44219         * modules/inttypes (Files): Add m4/inttypes-h.m4.
44220
44221 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44222
44223         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
44224         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
44225         recent change to stdint.m4, since we're now addressing the problem in a
44226         different way.
44227
44228 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44229
44230         * m4/fcntl_h.m4: New file.
44231
44232 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44233
44234         * lib/fcntl_.h: New file.
44235         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
44236         the fcntl module.
44237         * lib/dirchownmod.c: Likewise.
44238         * lib/fts.c: Likewise.
44239
44240         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
44241         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
44242         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
44243         just before including <inttypes.h>, to avoid circular inclusion.
44244
44245 2006-08-28  Jim Meyering  <jim@meyering.net>
44246
44247         * doc/visibility.texi: Actually read and correct the grammar of the
44248         sentence affected by yesterday's change.
44249
44250 2006-08-28  Eric Blake  <ebb9@byu.net>
44251
44252         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
44253         needs wrapper.
44254
44255 2006-08-28  Eric Blake  <ebb9@byu.net>
44256
44257         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
44258
44259 2006-08-28  Eric Blake  <ebb9@byu.net>
44260
44261         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
44262
44263 2006-08-28  Bruno Haible  <bruno@clisp.org>
44264
44265         * modules/c-strstr: New file, from GNU gettext.
44266         * MODULES.html.sh (String handling): Add c-strstr.
44267
44268 2006-08-28  Bruno Haible  <bruno@clisp.org>
44269
44270         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
44271         macros.
44272         Reported by Eric Blake.
44273
44274 2006-08-28  Bruno Haible  <bruno@clisp.org>
44275
44276         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
44277         (VASNPRINTF): Return a string of length > INT_MAX without failing.
44278         * lib/vasprintf.c: Include errno.h, limits.h.
44279         (EOVERFLOW): New fallback definition.
44280         (vasprintf): Test here whether the string length is > INT_MAX.
44281         * lib/vsnprintf.c: Include errno.h, limits.h.
44282         (EOVERFLOW): New fallback definition.
44283         (vsnprintf): Fix bug when generated string was too long for the buffer.
44284         Test here whether the string length is > INT_MAX.
44285
44286 2006-08-28  Bruno Haible  <bruno@clisp.org>
44287
44288         * lib/inttypes_.h (SCNX*): Remove definitions.
44289         Reported by Eric Blake.
44290
44291 2006-08-28  Bruno Haible  <bruno@clisp.org>
44292
44293         * lib/c-strstr.h: New file, from GNU gettext.
44294         * lib/c-strstr.c: New file, from GNU gettext.
44295
44296 2006-08-28  Bruno Haible  <bruno@clisp.org>
44297
44298         * gnulib-tool: Reorder some statements.
44299
44300 2006-08-28  Bruno Haible  <bruno@clisp.org>
44301
44302         * gnulib-tool: New option --makefile-name.
44303         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
44304         $makefile_name.
44305         (func_import): Write $makefile_name to the cache file, and read it from
44306         there unless explicitly specified. Use $makefile_name as file name
44307         instead of Makefile.am. Adjust the recommendations accordingly.
44308
44309 2006-08-28  Bruno Haible  <bruno@clisp.org>
44310
44311         * gnulib-tool (func_verify_module): Check against misapplying patch.
44312
44313 2006-08-28  Bruno Haible  <bruno@clisp.org>
44314
44315         * gnulib-tool (func_relativize, func_relconcat): New functions.
44316         Give an error if --local-dir is given with --update.
44317         Remove trailing slashes from $local_gnulib_dir.
44318         (func_import): Store the relativized $local_gnulib_dir in
44319         gnulib-cache.m4, and read it from there if not specified explicitly.
44320
44321 2006-08-28  Bruno Haible  <bruno@clisp.org>
44322
44323         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
44324         is the current directory. Respect also $local_gnulib_dir.
44325
44326 2006-08-28  Bruno Haible  <bruno@clisp.org>
44327             Simon Josefsson  <jas@extundo.com>
44328
44329         BeOS portability.
44330         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
44331
44332 2006-08-27  Jim Meyering  <jim@meyering.net>
44333
44334         * doc/visibility.texi: Remove duplicate word: "pointer".
44335
44336 2006-08-26  Bruno Haible  <bruno@clisp.org>
44337
44338         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
44339         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
44340         (Makefile.am): Create inttypes.h from inttypes_.h.
44341         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
44342
44343         * modules/imaxabs: New file.
44344
44345         * modules/imaxdiv: New file.
44346
44347 2006-08-26  Bruno Haible  <bruno@clisp.org>
44348
44349         * m4/inttypes.m4: New file.
44350         * m4/_inttypes_h.m4: Remove file.
44351         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
44352         PRI_MACROS_BROKEN.
44353         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
44354
44355         * m4/imaxabs.m4: New file.
44356
44357         * m4/imaxdiv.m4: New file.
44358
44359 2006-08-26  Bruno Haible  <bruno@clisp.org>
44360
44361         * lib/inttypes_.h: New file.
44362         * lib/inttypes.h: Remove file.
44363         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
44364
44365         * lib/imaxabs.c: New file.
44366
44367         * lib/imaxdiv.c: New file.
44368
44369 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
44370
44371         New config-h module, so that "make" output needn't be cluttered
44372         by -DHAVE_CONFIG_H.
44373         * MODULES.html.sh (Support for building libraries and executables):
44374         Add config-h.
44375         * modules/config-h: New file.
44376         * gnulib-tool (nl, sed_transform_lib_file): New vars.
44377         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
44378         the config-h module is used.
44379
44380         New configmake module, so that "make" output needn't be cluttered
44381         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
44382         * MODULES.html.sh (Support for building libraries and executables):
44383         Add configmake.
44384         * modules/configmake: New file.
44385
44386 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
44387
44388         * m4/config-h.m4: New file.
44389
44390 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
44391
44392         * config/srclist.txt: Add elisp-comp.
44393
44394 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
44395
44396         * MODULES.html.sh (Support for building libraries and executables):
44397         Add elisp-comp.
44398         * build-aux/elisp-comp: New file.
44399         * modules/elisp-comp: New file.
44400
44401 2006-08-24  Bruno Haible  <bruno@clisp.org>
44402
44403         * gnulib-tool (func_create_testdir): Use non-default values of
44404         sourcebase and m4base.
44405
44406 2006-08-24  Bruno Haible  <bruno@clisp.org>
44407
44408         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
44409         HTML structure.
44410
44411 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
44412
44413         * modules/openat (Depends-on): Add lchown.
44414
44415 2006-08-23  Bruno Haible  <bruno@clisp.org>
44416
44417         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
44418         of gl_LOCK_EARLY instead of gl_LOCK.
44419
44420 2006-08-23  Bruno Haible  <bruno@clisp.org>
44421
44422         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
44423         on OSF/1 to no.
44424         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
44425
44426 2006-08-23  Bruno Haible  <bruno@clisp.org>
44427
44428         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
44429         as unusable.
44430
44431         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
44432         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
44433         (gl_LOCK): New macro.
44434
44435 2006-08-22  Simon Josefsson  <jas@extundo.com>
44436
44437         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
44438         to md5 module.
44439
44440 2006-08-22  Simon Josefsson  <jas@extundo.com>
44441
44442         * MODULES.html.sh: Add "Support for maintaining and release
44443         projects".
44444
44445         * build-aux/gnupload: New file, from coreutils.
44446
44447 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
44448
44449         Avoid the need for AC_LIBSOURCES in m4 macros.
44450         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
44451         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
44452         * modules/check-version (EXTRA_DIST): Add check-version.h.
44453         * modules/crc (EXTRA_DIST): Add crc.h.
44454         * modules/des (EXTRA_DIST): Add des.h.
44455         * modules/gc (EXTRA_DIST): Add gc.h.
44456         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
44457         * modules/getline (EXTRA_DIST): Add getline.h.
44458         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
44459         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
44460         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
44461         * modules/md2 (EXTRA_DIST): Add md2.h.
44462         * modules/md4 (EXTRA_DIST): Add md4.h.
44463         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
44464         * modules/read-file (EXTRA_DIST): Add read-file.h.
44465         * modules/readline (EXTRA_DIST): Add readline.h.
44466         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
44467         rijndael-api-fst.h.
44468
44469 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
44470
44471         * m4/rijndael.m4 (gl_ARCFOUR):
44472         * m4/arctwo.m4 (gl_ARCTWO):
44473         * m4/check-version.m4 (gl_CHECK_VERSION):
44474         * m4/crc.m4 (gl_CRC):
44475         * m4/des.m4 (gl_DES):
44476         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
44477         * m4/gc.m4 (gl_GC):
44478         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
44479         * m4/getline.m4 (gl_FUNC_GETLINE):
44480         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
44481         * m4/hmac-md5.m4 (gl_HMAC_MD5):
44482         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
44483         * m4/md2.m4 (gl_MD2):
44484         * m4/md4.m4 (gl_MD4):
44485         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
44486         * m4/read-file.m4 (gl_FUNC_READ_FILE):
44487         * m4/readline.m4 (gl_FUNC_READLINE):
44488         * m4/rijndael.m4 (gl_RIJNDAEL):
44489         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
44490         to get the necessary .h files and whatnot.
44491
44492 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
44493
44494         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
44495         gnulib rather than the other way around.
44496         * config/srclistvars.sh (COREUTILS): Remove.
44497
44498 2006-08-22  Jim Meyering  <jim@meyering.net>
44499
44500         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
44501
44502         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
44503
44504 2006-08-22  Eric Blake  <ebb9@byu.net>
44505
44506         * modules/regexprops-generic: New file.
44507         * MODULES.html.sh (Support for building documentation): List it.
44508
44509 2006-08-22  Eric Blake  <ebb9@byu.net>
44510
44511         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
44512         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
44513         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
44514         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
44515
44516 2006-08-22  Bruno Haible  <bruno@clisp.org>
44517
44518         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
44519         and lib_LTLIBRARIES like the other lib_* variables.
44520
44521 2006-08-22  Bruno Haible  <bruno@clisp.org>
44522
44523         * build-aux/x-to-1.in: New file, from GNU gettext.
44524
44525 2006-08-22  Bruno Haible  <bruno@clisp.org>
44526
44527         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
44528         <utmpx.h> exists.
44529
44530 2006-08-22  Bruno Haible  <bruno@clisp.org>
44531
44532         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
44533         <utmpx.h> exists.
44534
44535 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
44536
44537         BeOS portability.
44538         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
44539         exist.
44540         Problem reported by Bruno Haible.
44541
44542 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
44543
44544         Avoid the need for AC_LIBSOURCES in m4 macros.
44545         * modules/acl (EXTRA_DIST): Add acl.h.
44546         * modules/argmatch (Files): Add m4/argmatch.m4.
44547         (configure.ac): Add gl_ARGMATCH.
44548         (EXTRA_DIST): Renamed from lib_SOURCES, for
44549         consistency with the other modules.  Remove argmatch.c.
44550         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
44551         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
44552         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
44553         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
44554         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
44555         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
44556         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
44557         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
44558         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
44559         * modules/closeout (EXTRA_DIST): Add closeout.h.
44560         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
44561         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
44562         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
44563         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
44564         dirname.h; remove basename.c and stripslash.c.
44565         * modules/exclude (EXTRA_DIST): Add exclude.h.
44566         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
44567         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
44568         * modules/file-type (EXTRA_DIST): Add file-type.h.
44569         * modules/filemode (EXTRA_DIST): Add filemode.h.
44570         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
44571         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
44572         * modules/fpending (EXTRA_DIST): Add __fpending.h.
44573         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
44574         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
44575         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
44576         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
44577         * modules/getdate (EXTRA_DIST): Add getdate.c.
44578         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
44579         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
44580         * modules/getpass (EXTRA_DIST): Add getpass.h.
44581         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
44582         * modules/group-member (EXTRA_DIST): Add group-member.h.
44583         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
44584         * modules/hash (EXTRA_DIST): Add hash.h.
44585         * modules/human (EXTRA_DIST): Add human.h.
44586         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
44587         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
44588         * modules/lchown (EXTRA_DIST): Add lchown.h.
44589         * modules/long-options (EXTRA_DIST): Add long-options.h.
44590         * modules/lstat (EXTRA_DIST): Add lstat.h.
44591         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
44592         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
44593         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
44594         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
44595         * modules/memxor (EXTRA_DIST): Add memxor.h.
44596         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
44597         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
44598         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
44599         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
44600         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
44601         * modules/physmem (EXTRA_DIST): Add physmem.h.
44602         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
44603         * modules/posixver (EXTRA_DIST): Add posixver.h.
44604         * modules/quote (EXTRA_DIST): Add quote.h.
44605         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
44606         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
44607         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
44608         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
44609         regex_internal.h regexec.c.
44610         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
44611         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
44612         * modules/same (EXTRA_DIST): Add same.h.
44613         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
44614         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
44615         * modules/savedir (EXTRA_DIST): Add savedir.h.
44616         * modules/sha1 (EXTRA_DIST): Add sha1.h.
44617         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
44618         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
44619         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
44620         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
44621         * modules/strdup (EXTRA_DIST): Add strdup.h.
44622         * modules/strftime (EXTRA_DIST): Add strftime.h.
44623         * modules/strndup (EXTRA_DIST): Add strndup.h.
44624         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
44625         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
44626         * modules/time_r (EXTRA_DIST): Add time_r.h.
44627         * modules/timespec (EXTRA_DIST): Add timespec.h.
44628         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
44629         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
44630         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
44631         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
44632         * modules/userspec (EXTRA_DIST): Add userspec.h.
44633         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
44634         * modules/utimens (EXTRA_DIST): Add utimens.h.
44635         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
44636         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
44637         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
44638         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
44639         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
44640         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
44641         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
44642         * modules/yesno (EXTRA_DIST): Add yesno.h.
44643
44644 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
44645
44646         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
44647
44648         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
44649         * m4/dev-ino.m4, same-inode.m4: Remove.
44650
44651         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
44652         * m4/acl.m4 (AC_FUNC_ACL):
44653         * m4/backupfile.m4 (gl_BACKUPFILE):
44654         * m4/c-strtod.m4 (gl_C99_STRTOLD):
44655         * m4/canon-host.m4 (gl_CANON_HOST):
44656         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
44657         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
44658         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
44659         * m4/cloexec.m4 (gl_CLOEXEC):
44660         * m4/close-stream.m4 (gl_CLOSE_STREAM):
44661         * m4/closeout.m4 (gl_CLOSEOUT):
44662         * m4/dirfd.m4 (gl_FUNC_DIRFD):
44663         * m4/dirname.m4 (gl_DIRNAME):
44664         * m4/exclude.m4 (gl_EXCLUDE):
44665         * m4/exitfail.m4 (gl_EXITFAIL):
44666         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
44667         * m4/file-type.m4 (gl_FILE_TYPE):
44668         * m4/filemode.m4 (gl_FILEMODE):
44669         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
44670         * m4/fpending.m4 (gl_FUNC_FPENDING):
44671         * m4/fprintftime.m4 (gl_FPRINTFTIME):
44672         * m4/fts.m4 (gl_FUNC_FTS):
44673         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
44674         * m4/getdate.m4 (gl_GETDATE):
44675         * m4/gethrxtime.m4 (gl_GETHRXTIME):
44676         * m4/getpagesize.m4 (gl_GETPAGESIZE):
44677         * m4/getpass.m4 (gl_FUNC_GETPASS):
44678         * m4/gettime.m4 (gl_GETTIME):
44679         * m4/getugroups.m4 (gl_GETUGROUPS):
44680         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
44681         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
44682         * m4/hard-locale.m4 (gl_HARD_LOCALE):
44683         * m4/hash.m4 (gl_HASH):
44684         * m4/idcache.m4 (gl_IDCACHE):
44685         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
44686         * m4/lchown.m4 (gl_FUNC_LCHOWN):
44687         * m4/long-options.m4 (gl_LONG_OPTIONS):
44688         * m4/lstat.m4 (gl_FUNC_LSTAT):
44689         * m4/md5.m4 (gl_MD5):
44690         * m4/memcasecmp.m4 (gl_MEMCASECMP):
44691         * m4/memcoll.m4 (gl_MEMCOLL):
44692         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
44693         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
44694         * m4/memxor.m4 (gl_MEMXOR):
44695         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
44696         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
44697         * m4/modechange.m4 (gl_MODECHANGE):
44698         * m4/mountlist.m4 (gl_MOUNTLIST):
44699         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
44700         * m4/openat.m4 (gl_FUNC_OPENAT):
44701         * m4/pathmax.m4 (gl_PATHMAX):
44702         * m4/physmem.m4 (gl_PHYSMEM):
44703         * m4/posixtm.m4 (gl_POSIXTM):
44704         * m4/posixver.m4 (gl_POSIXVER):
44705         * m4/quote.m4 (gl_QUOTE):
44706         * m4/quotearg.m4 (gl_QUOTEARG):
44707         * m4/readtokens.m4 (gl_READTOKENS):
44708         * m4/readutmp.m4 (gl_READUTMP):
44709         * m4/regex.m4 (gl_REGEX):
44710         * m4/safe-read.m4 (gl_SAFE_READ):
44711         * m4/safe-write.m4 (gl_SAFE_WRITE):
44712         * m4/same.m4 (gl_SAME):
44713         * m4/save-cwd.m4 (gl_SAVE_CWD):
44714         * m4/savedir.m4 (gl_SAVEDIR):
44715         * m4/settime.m4 (gl_SETTIME):
44716         * m4/sha1.m4 (gl_SHA1):
44717         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
44718         * m4/stat-macros.m4 (gl_STAT_MACROS):
44719         * m4/stat-time.m4 (gl_STAT_TIME):
44720         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
44721         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
44722         * m4/strdup.m4 (gl_FUNC_STRDUP):
44723         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
44724         * m4/strndup.m4 (gl_FUNC_STRNDUP):
44725         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
44726         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
44727         * m4/time_r.m4 (gl_TIME_R):
44728         * m4/timespec.m4 (gl_TIMESPEC):
44729         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
44730         * m4/unlinkdir.m4 (gl_UNLINKDIR):
44731         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
44732         * m4/userspec.m4 (gl_USERSPEC):
44733         * m4/utimecmp.m4 (gl_UTIMECMP):
44734         * m4/utimens.m4 (gl_UTIMENS):
44735         * m4/xalloc.m4 (gl_XALLOC):
44736         * m4/xgetcwd.m4 (gl_XGETCWD):
44737         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
44738         * m4/xreadlink.m4 (gl_XREADLINK):
44739         * m4/xstrtod.m4 (gl_XSTRTOD):
44740         * m4/yesno.m4 (gl_YESNO):
44741         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
44742         to get the necessary .h files and whatnot.
44743
44744 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
44745             Bruno Haible  <bruno@clisp.org>
44746
44747         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
44748         /bin/sh understanding of '!' conditional negation.
44749
44750 2006-08-21  Jim Meyering  <jim@meyering.net>
44751
44752         * modules/openat (Depends-on): Really alphabetize.
44753
44754         * modules/acl (Depends-on): Add error and quote.
44755
44756         * check-module (find_included_lib_files): Add at-func.c to the
44757         ok-to-include-more-than-once white list.
44758
44759         * modules/openat (Depends-on): Add lstat.  Alphabetize.
44760
44761 2006-08-21  Bruno Haible  <bruno@clisp.org>
44762
44763         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44764         Emit a pkgdata_DATA variable only if some snippets add contents to it.
44765         Reported by Martin Lambers <marlam@marlam.de>.
44766
44767 2006-08-21  Bruno Haible  <bruno@clisp.org>
44768
44769         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
44770         specify an installation location, don't emit a noinst_LIBRARIES or
44771         noinst_LTLIBRARIES assignment.
44772
44773 2006-08-21  Bruno Haible  <bruno@clisp.org>
44774
44775         BeOS portability.
44776         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
44777         BeOS has mbrtowc() but no <wctype.h>.
44778
44779 2006-08-21  Bruno Haible  <bruno@clisp.org>
44780
44781         BeOS portability.
44782         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
44783         exist.
44784
44785 2006-08-21  Bruno Haible  <bruno@clisp.org>
44786
44787         BeOS portability.
44788         * lib/mbchar.h: Include <wctype.h> only if it exists.
44789
44790 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
44791
44792         Remove files that are no longer needed by their respective modules.
44793         * m4/obstack.m4: Remove.
44794         * m4/strerror_r.m4: Remove.
44795         * m4/uint32_t.m4: Remove.
44796         * m4/uintptr_t.m4: Remove.
44797         * m4/ullong_max.m4: Remove.
44798         * m4/xstrtoimax.m4: Remove.
44799         * m4/xstrtoumax.m4: Remove.
44800
44801         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
44802         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
44803         dependencies now capture this.
44804
44805         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
44806         Do not use AC_LIBSOURCES, since gnulib modules now do this.
44807         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
44808         * m4/human.m4 (gl_HUMAN): Likewise.
44809         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
44810         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
44811
44812         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
44813
44814         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
44815         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
44816         stdint.
44817         * m4/human.m4 (gl_HUMAN): Likewise.
44818         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
44819         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
44820         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
44821         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
44822         * m4/xstrtol (gl_XSTRTOL): Likewise.
44823
44824         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
44825         AC_TYPE_LONG_LONG_INT.
44826         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
44827         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
44828         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
44829         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
44830
44831         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
44832         on stdbool.
44833
44834         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
44835         (gl_PREREQ_XSTRTOUL): Remove.
44836
44837         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
44838
44839         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
44840         mode.
44841
44842 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
44843
44844         Add and change modules to make it easier for coreutils to use
44845         gnulib-tool.
44846         * modules/backupfile (Files): Remove m4/d-ino.m4.
44847         (Depends-on): Add d-ino.
44848         * modules/cycle-check (Depends-on): Add stdint.
44849         (lib_SOURCES): Add cycle-check.h.
44850         * modules/d-ino: New module.
44851         * modules/d-type: New module.
44852         * modules/error (Files): Remove m4/strerror_r.m4.
44853         * modules/filemode (Files): Add m4/st_dm_mode.m4.
44854         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
44855         m4/inttypes_h.m4, m4/uintmax_t.m4.
44856         (Depends-on): Add stdint.
44857         (lib_SOURCES): Add fsusage.h.
44858         * modules/getcwd (Files): Remove d-ino.m4.
44859         (Depends-on): Add d-ino.
44860         * modules/getndelim2 (Depends-on): Add stdint.
44861         * modules/glob (Files): Remove m4/d-type.m4.
44862         (Depends-on): Add d-type.
44863         * modules/host-os: New module.
44864         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
44865         m4/inttypes_h.m4, m4/uintmax_t.m4.
44866         * Depends-on: Add stdint.
44867         (lib_SOURCES): Add human.h.
44868         * modules/inttostr (Files): Remove m4/intmax_t.m4,
44869         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
44870         m4/uintmax_t.m4, m4/ulonglong.m4.
44871         (Depends-on): Add stdint.
44872         (EXTRA_DIST): Add inttostr.h.
44873         * modules/lchmod: New module.
44874         * modules/link-follow: New module.
44875         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
44876         (Depends-on): Add lchmod.
44877         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
44878         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
44879         (Depends-on): Add stdint.
44880         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
44881         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
44882         (Depends-on): Add stdint.
44883         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
44884         * modules/perl: New module.
44885         * modules/regex (Depends-on): Add stdint.
44886         * modules/rmdir-errno: New module.
44887         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
44888         m4/intmax_t.m4.
44889         (Depends-on): Add stdint.
44890         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
44891         m4/uintmax_t.m4.
44892         (Depends-on): Add stdint.
44893         * modules/unlink-busy: New module.
44894         * modules/utimecmp (Depends-on): Add stdint.
44895         * modules/uptime: New module.
44896         * modules/winsz-ioctl: New module.
44897         * modules/winsz-termios: New module.
44898         * modules/xnanosleep (Depends-on): Add nanosleep.
44899         * modules/ullong_max: Remove.
44900         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
44901         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
44902         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
44903         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
44904         (Depends-on): Add inttypes.
44905         (lib_SOURCES): Add xstrtol.h.
44906         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
44907         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
44908         * MODULES.html.sh: Move 'assert' into the assert section.
44909         Move 'dummy' into the linking section.
44910         Remove ullong_max.
44911         Add section for compatibility checks for POSIX:2001 functions,
44912         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
44913         winsz-ioctl, and winsz-termios into it.
44914         Add lchmod.
44915         Add top-level Misc section and put host-os, perl, and uptime
44916         into it.
44917
44918 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
44919
44920         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
44921         now assume the stdint module.  Do not include inttypes.h.
44922         * lib/fsusage.h: Likewise.
44923         * lib/getndelim2.c: Likewise.
44924         * lib/human.h: Likewise.
44925         * lib/inttostr.h: Likewise.
44926         * lib/obstack.c: Likewise.
44927         * lib/regex_internal.h: Likewise.
44928         * lib/tempname.c: Likewise.
44929         * lib/utimecmp.c: Likewise.
44930         * lib/xstrtol.h: Likewise.
44931
44932         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
44933
44934         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
44935         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
44936         * lib/xtime.h: Likewise.
44937
44938 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
44939
44940         * modules/openat (Files): Add lib/fchmodat.c.
44941         Fixes problem reported by Jay Youngman.
44942
44943 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
44944
44945         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
44946         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
44947
44948 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
44949             Bruno Haible  <bruno@clisp.org>
44950
44951         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
44952         and is a script that invokes bison. Tighten the code. Add comments.
44953
44954 2006-08-18  Jim Meyering  <jim@meyering.net>
44955
44956         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
44957         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
44958         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
44959         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
44960
44961 2006-08-18  Bruno Haible  <bruno@clisp.org>
44962
44963         * modules/bison-i18n: New file.
44964         * MODULES.html.sh (Internationalization functions): Add it.
44965
44966 2006-08-18  Bruno Haible  <bruno@clisp.org>
44967
44968         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
44969         sys/statvfs.h. When getmntinfo was found, check its declaration and
44970         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
44971
44972 2006-08-18  Bruno Haible  <bruno@clisp.org>
44973
44974         * m4/bison-i18n.m4: New file, from bison.
44975
44976 2006-08-18  Bruno Haible  <bruno@clisp.org>
44977
44978         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
44979         (ME_DUMMY): Treat "kernfs" as a dummy.
44980         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
44981
44982 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
44983
44984         Update from coreutils.
44985
44986         2006-08-15  Jim Meyering  <jim@meyering.net>
44987
44988         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
44989
44990         2006-01-17  Jim Meyering  <jim@meyering.net>
44991
44992         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
44993
44994         2006-01-11  Jim Meyering  <jim@meyering.net>
44995
44996         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
44997         Check for the lchmod function.
44998
44999 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
45000
45001         Update from coreutils.
45002
45003         * lib/__fpending.h: Add copyright notice.
45004         * lib/fprintftime.h: Likewise.
45005         * lib/savedir.c: Use (C) in copyright notice.
45006         * lib/savedir.h: Likewise.
45007
45008         2006-08-15  Jim Meyering  <jim@meyering.net>
45009
45010         * lib/at-func.c: New file, with the logic of all emulated at-functions.
45011         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
45012         in support of the EXPECTED_ERRNO macro.
45013         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
45014         definitions.  Instead, define the appropriate symbols and include
45015         "at-func.c".
45016         * lib/mkdirat.c (mkdirat): Likewise.
45017         * lib/fchmodat.c (fchmodat): Likewise.
45018         (ENOSYS): Remove definition.
45019         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
45020         it.  Don't include "unistd--.h" -- it wasn't ever used.
45021
45022         2006-01-17  Jim Meyering  <jim@meyering.net>
45023
45024         Rewrite fts.c not to change the current working directory,
45025         by using openat, fstatat, fdopendir, etc..
45026
45027         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
45028         (HAVE_OPENAT_SUPPORT): Define.
45029         [_LIBC] (fchdir): Don't undef or define; no longer used.
45030         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
45031         Now, this `function' always succeeds, and consumes its file descriptor
45032         parameter -- so callers must not close such FDs.  Update callers.
45033         (diropen_fd, opendirat, cwd_advance_fd): New functions.
45034         (diropen): Add parameter, SP.  Adjust all callers.
45035         Implement using diropen_fd, rather than open.
45036         (fts_open): Initialize new member, fts_cwd_fd.
45037         Remove fts_rft-setting code.
45038         (fts_close): Close fts_cwd_fd, if necessary.
45039         (__opendir2): Define in terms of opendir or opendirat,
45040         depending on whether the FST_NOCHDIR flag is set.
45041         (fts_build): Since fts_safe_changedir consumes its FD, and since
45042         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
45043         and close the dup'd file descriptor upon failure.
45044         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
45045         (fts_safe_changedir): Tweak semantics to reflect that this function
45046         now calls cwd_advance_fd and hence consumes its FD argument.
45047         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
45048         [struct FTS] (fts_rft): Remove now-unused member.
45049         [struct FTS] (fts_cycle.state): Improve comment.
45050
45051         * lib/openat.c (openat_needs_fchdir): New function.
45052         * lib/openat.h (openat_needs_fchdir): Declare it.
45053
45054 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
45055
45056         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
45057         Problem and fix reported by Pádraig Brady in
45058         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
45059
45060 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
45061
45062         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
45063
45064 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
45065
45066         * lib/memcoll.c (memcoll): Optimize for the common case where the
45067         arguments are bytewise equal.
45068
45069 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
45070
45071         * doc/regexprops-generic.texi: Add a copyright notice.
45072
45073 2006-08-15  Bruno Haible  <bruno@clisp.org>
45074
45075         * modules/tmpdir (License): Change to LGPL.
45076
45077 2006-08-15  Bruno Haible  <bruno@clisp.org>
45078
45079         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
45080         module.
45081
45082 2006-08-14  Simon Josefsson  <jas@extundo.com>
45083
45084         * config/srclist.txt: Add gnupload.
45085
45086 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45087
45088         Change copyright notice from LGPL 2 to GPL 2, since that's the
45089         standard form used in the gnulib repository.
45090         * tests/test-lock.c: Likewise.
45091         * tests/test-stdint.c: Likewise.
45092         * tests/test-tls.c: Likewise.
45093
45094         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
45095         prelude-manager.  User shorter URLs for GNU projects, without '?'.
45096         Add copyright notice.
45097
45098         * check-module: Add copyright notice.  Output a copyright
45099         notice if "--version" is specified.
45100         * modules/COPYING: New file.
45101         * tests/test-getaddrinfo.c: Add copyright notice.
45102         * tests/test-verify.c: Likewise.
45103
45104 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45105
45106         Change copyright notice from LGPL 2 to GPL 2, since that's the
45107         standard form used in the gnulib repository.
45108         * lib/lock.c: LGPL -> GPL.
45109         * lib/lock.h: Likewise.
45110         * lib/strnlen1.c: Likewise.
45111         * lib/strnlen1.h: Likewise.
45112         * lib/tls.c: Likewise.
45113         * lib/tls.h: Likewise.
45114         * lib/tmpdir.c: Likewise.
45115
45116         * lib/TODO: Remove; this belongs only in coreutils.
45117
45118 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45119
45120         Add copyright notices to long-enough files that lack them, since
45121         otherwise the files aren't clearly free.  Use the same notice that
45122         getdate.texi already uses.
45123         * doc/alloca-opt.texi: Add copyright notice.
45124         * doc/alloca.texi: Likewise.
45125         * doc/ctime.texi: Likewise.
45126         * doc/functions.texi: Likewise.
45127         * doc/gcd.texi: Likewise.
45128         * doc/gnulib-tool.texi: Likewise.
45129         * doc/inet_ntoa.texi: Likewise.
45130         * doc/visibility.texi: Likewise.
45131
45132         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
45133         * doc/quote.texi: Add copyright notice.
45134
45135         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
45136         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
45137         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
45138         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
45139         is now obsolete, and give a pointer to the Sun list.
45140         Add copyright notice.
45141
45142 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45143
45144         * config/srclistvars.sh: Add copyright notice.
45145
45146 2006-08-14  Eric Blake  <ebb9@byu.net>
45147
45148         Import the following change from libc:
45149
45150         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
45151
45152         Upstream bug 2997.
45153         * lib/misc/error.c: Add space between program name and message if file
45154         name is missing.
45155
45156 2006-08-12  Karl Berry  <karl@gnu.org>
45157
45158         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
45159         remove, these originate in gnulib now.
45160
45161 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45162
45163         * doc/Makefile (standards.info standards.html standards.dvi):
45164         Also depend on make-stds.texi.
45165
45166 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
45167
45168         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
45169         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
45170
45171         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
45172         in wchar_t.  Problem reported by Eric Blake.
45173
45174         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
45175         LEN is smaller than SIZE.  Suggested by Bruno Haible.
45176         Also, help the compiler to keep LEN in a register.
45177
45178 2006-08-11  Eric Blake  <ebb9@byu.net>
45179
45180         * users.txt: Sort.  Add tar.
45181
45182 2006-08-11  Bruno Haible  <bruno@clisp.org>
45183
45184         * users.txt: New file.
45185
45186 2006-08-11  Bruno Haible  <bruno@clisp.org>
45187
45188         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
45189         before <wchar.h>. Needed for OSF/1 and BSD/OS.
45190
45191 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
45192
45193         * modules/snprintf (Depends-on): Remove minmax.
45194         (Maintainer): Add self and Bruno.
45195
45196 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
45197
45198         * lib/.cppi-disable: Add snprintf.h, socket_.h.
45199         * lib/snprintf.c: Include <errno.h> and <limits.h>.
45200         (EOVERFLOW): Define if the system does not.
45201         Do not include "minmax.h"; it wasn't used.
45202         (snprintf): Don't assume size_t promotes to an unsigned type.
45203         Fix bug when generated string was too long for the buffer: the
45204         buffer's contents are supposed to be the initial prefix of the
45205         output.  Don't assume vasnprintf returns EOVERFLOW if the size
45206         exceeds INT_MAX; do the check ourselves.
45207
45208         Import the following changes from libc:
45209
45210         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
45211
45212         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
45213         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
45214         set wc to the byte which couldn't be converted.
45215         (re_string_reconstruct): Don't clear valid_raw_len before calling
45216         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
45217         tip_context using re_string_context_at.
45218
45219         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
45220
45221         * lib/posix/regex.h: g++ still cannot handled [restrict].
45222
45223         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
45224
45225         * lib/posix/regex.h: Remove special handling for VMS.
45226
45227 2006-08-10  Jim Meyering  <jim@meyering.net>
45228
45229         * modules/same-inode: New module.
45230         * modules/dev-ino: New module.
45231         * modules/cycle-check: Depend on these modules, rather than simply
45232         including their .h files.
45233         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
45234         required via m4/cycle-check.m4.
45235         * modules/same: Depend on new same-inode module, rather than
45236         including same-inode.h.
45237         * modules/chdir-safer: New file.
45238
45239         * modules/chown (Depends-on): Add stat-macros.
45240
45241 2006-08-10  Jim Meyering  <jim@meyering.net>
45242
45243         * m4/cycle-check.m4: New file.
45244         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
45245         * m4/dev-ino.m4, m4/same-inode.m4: New files.
45246
45247 2006-08-10  Eric Blake  <ebb9@byu.net>
45248
45249         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
45250         in from original proposal.
45251
45252 2006-08-10  Eric Blake  <ebb9@byu.net>
45253         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45254
45255         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
45256         namespace.
45257
45258 2006-08-10  Bruno Haible  <bruno@clisp.org>
45259
45260         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
45261         as well.
45262
45263 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
45264
45265         Sync from coreutils.
45266
45267         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
45268
45269         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
45270         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
45271
45272 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
45273
45274         * modules/restrict: Remove; no longer needed now that we assume
45275         Autoconf 2.59 or later.
45276         * MODULES.html.sh: Remove 'restrict'.
45277         * modules/argp (Depends-on): Remove 'restrict'.
45278         * modules/base64 (Depends-on): Likewise.
45279         * modules/gc (Depends-on): Likewise.
45280         * modules/getaddrinfo (Depends-on): Likewise.
45281         * modules/glob (Depends-on): Likewise.
45282         * modules/inet_ntop (Depends-on): Likewise.
45283         * modules/inet_pton (Depends-on): Likewise.
45284         * modules/memxor (Depends-on): Likewise.
45285         * modules/regex (Depends-on): Likewise.
45286         * modules/strtok_r (Depends-on): Likewise.
45287         * modules/time_r (Depends-on): Likewise.
45288
45289 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
45290
45291         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
45292         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
45293         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
45294         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
45295         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
45296         * m4/memxor.m4 (gl_MEMXOR): Likewise.
45297         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
45298         gl_C_RESTRICT replaced by AC_C_RESTRICT.
45299
45300         Merge from coreutils.
45301         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
45302         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
45303         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
45304         * m4/time_r.m4 (gl_TIME_R): Likewise.
45305
45306 2006-08-09  Karl Berry  <karl@gnu.org>
45307
45308         * config/srclist.txt: no more gettext-tools, per Bruno.
45309
45310 2006-08-08  Eric Blake  <ebb9@byu.net>
45311
45312         * modules/verror: New module.
45313         * MODULES.html.sh: Document it.
45314
45315 2006-08-08  Eric Blake  <ebb9@byu.net>
45316
45317         * lib/verror.h, lib/verror.c: New files.
45318
45319 2006-08-08  Eric Blake  <ebb9@byu.net>
45320
45321         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
45322         verror_at_line output complies with GNU Coding Standards even when
45323         file is NULL.
45324
45325 2006-08-07  Bruno Haible  <bruno@clisp.org>
45326
45327         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
45328         versions of AIX.
45329         Reported by Ralf Wildenhues.
45330
45331 2006-08-07  Bruno Haible  <bruno@clisp.org>
45332
45333         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
45334         in an AC_DEFUN. Needed so that the autoconf snippets can use
45335         AC_REQUIRE.
45336
45337 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45338
45339         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45340         Initialize pkgdata_DATA.
45341         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
45342         overriding it.
45343
45344 2006-08-06  Eric Blake  <ebb9@byu.net>
45345
45346         * lib/error.h: Fold in some upstream changes from glibc.
45347         * lib/error.c: Likewise.
45348
45349 2006-08-04  Bruno Haible  <bruno@clisp.org>
45350
45351         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45352         Make the mostlyclean-local rule depend on mostlyclean-generic.
45353         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
45354
45355 2006-07-31  Bruno Haible  <bruno@clisp.org>
45356
45357         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
45358         <stdlib.h>, <string.h>.
45359
45360 2006-07-30  Bruno Haible  <bruno@clisp.org>
45361
45362         * modules/readlink (License): Change to LGPL.
45363
45364 2006-07-30  Bruno Haible  <bruno@clisp.org>
45365
45366         * modules/javaversion (Makefile.am): Distribute javaversion.java and
45367         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
45368         set PKGDATADIR to point to it.
45369
45370 2006-07-30  Bruno Haible  <bruno@clisp.org>
45371
45372         * modules/csharpexec (configure.ac): Comment out macro invocation.
45373         * modules/javaexec (configure.ac): Likewise.
45374         * modules/javacomp-script (configure.ac): Likewise.
45375
45376         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
45377
45378 2006-07-30  Bruno Haible  <bruno@clisp.org>
45379
45380         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
45381         linked-list.
45382
45383 2006-07-30  Bruno Haible  <bruno@clisp.org>
45384
45385         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
45386
45387 2006-07-30  Bruno Haible  <bruno@clisp.org>
45388
45389         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45390         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
45391         get removed.
45392
45393 2006-07-29  Bruno Haible  <bruno@clisp.org>
45394
45395         Make it possible for gnulib-tool to work with locally modified or
45396         augmented gnulib repositories.
45397         * gnulib-tool (func_usage): Document --local-dir option.
45398         (local_gnulib_dir): New variable.
45399         Handle --local-dir option.
45400         (func_lookup_file): New function.
45401         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
45402         (func_get_description, func_get_filelist, func_get_description,
45403         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
45404         func_get_automake_snippet, func_get_include_directive,
45405         func_get_license, func_get_maintainer): Use func_lookup_file.
45406         (func_import, func_create_testdir): Use func_lookup_file.
45407
45408 2006-07-29  Bruno Haible  <bruno@clisp.org>
45409
45410         * modules/setenv (Depends-on): Add unistd.
45411
45412 2006-07-29  Bruno Haible  <bruno@clisp.org>
45413
45414         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
45415
45416 2006-07-29  Bruno Haible  <bruno@clisp.org>
45417
45418         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
45419
45420 2006-07-29  Bruno Haible  <bruno@clisp.org>
45421
45422         * gnulib-tool (import, update): If there is no Makefile.am, look at
45423         aclocal.m4, instead of bailing out.
45424
45425 2006-07-29  Bruno Haible  <bruno@clisp.org>
45426
45427         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
45428         Categorize the options by when they are useful.
45429
45430 2006-07-29  Bruno Haible  <bruno@clisp.org>
45431
45432         * gnulib-tool (func_usage): Document option --no-libtool.
45433         Handle option --no-libtool.
45434         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
45435         for changed semantics of $libtool variable.
45436         (func_import): Likewise. If libtool is not used, show this through
45437         an option --no-libtool.
45438         (func_create_testdir): Update.
45439
45440 2006-07-29  Bruno Haible  <bruno@clisp.org>
45441
45442         * gnulib-tool (func_import): Extend error message about missing
45443         --doc-base.
45444
45445 2006-07-29  Bruno Haible  <bruno@clisp.org>
45446
45447         * gnulib-tool (func_import): Don't create the $docbase directory if
45448         there is no file to store there.
45449
45450 2006-07-29  Bruno Haible  <bruno@clisp.org>
45451
45452         * gnulib-tool (autoconf_minversion): If a --dir option is given and
45453         relevant, look for configure.ac there, not in the current directory.
45454         Also use a simple search for AC_PREREQ, not "autoconf --trace".
45455
45456 2006-07-29  Bruno Haible  <bruno@clisp.org>
45457
45458         * gnulib-tool (SORT): New variable.
45459         (func_usage): Undocument --assume-autoconf option.
45460         Remove --assume-autoconf option handling.
45461         (autoconf_minversion): Determine from the contents of configure.ac.
45462         (func_import): Remove autoconf_minversion handling.
45463         Suggested by Eric Blake.
45464
45465 2006-07-29  Bruno Haible  <bruno@clisp.org>
45466
45467         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
45468
45469 2006-07-29  Bruno Haible  <bruno@clisp.org>
45470
45471         * config/srclist.txt (*setenv.[ch]): Remove rules.
45472
45473 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45474
45475         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
45476
45477 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45478
45479         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
45480         arpa/inet.h.
45481
45482 2006-07-28  Simon Josefsson  <jas@extundo.com>
45483
45484         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
45485         * modules/inet_pton (Depends-on): Likewise.
45486
45487 2006-07-28  Simon Josefsson  <jas@extundo.com>
45488
45489         * m4/netinet_in_h.m4: New file.
45490
45491 2006-07-28  Simon Josefsson  <jas@extundo.com>
45492
45493         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
45494         #include's.
45495
45496 2006-07-28  Simon Josefsson  <jas@extundo.com>
45497
45498         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
45499         #include's.
45500
45501 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
45502
45503         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
45504         setgid on directories only if they set these bits.
45505         * lib/modechange.h: Remove obsolete comment about masks.
45506
45507 2006-07-28  Eric Blake  <ebb9@byu.net>
45508
45509         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
45510         macro expansion.
45511
45512 2006-07-28  Bruno Haible  <bruno@clisp.org>
45513
45514         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
45515
45516 2006-07-28  Bruno Haible  <bruno@clisp.org>
45517
45518         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
45519
45520 2006-07-28  Bruno Haible  <bruno@clisp.org>
45521
45522         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
45523         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
45524         Define fallbacks.
45525         Avoids link error on FreeBSD 4.x.
45526         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45527
45528         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
45529         encoding.
45530         * lib/mbswidth.c (iswcntrl): Likewise.
45531
45532 2006-07-27  Bruno Haible  <bruno@clisp.org>
45533
45534         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
45535         test.
45536
45537 2006-07-27  Bruno Haible  <bruno@clisp.org>
45538
45539         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
45540         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
45541         defined.
45542
45543 2006-07-26  Eric Blake  <ebb9@byu.net>
45544
45545         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
45546
45547 2006-07-26  Eric Blake  <ebb9@byu.net>
45548
45549         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
45550         like mingw that lack mkstemp.
45551         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
45552         avoid compilation warning on mingw.
45553
45554 2006-07-26  Bruno Haible  <bruno@clisp.org>
45555
45556         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
45557         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
45558         INT_FAST*_MIN, INTPTR_MIN.
45559
45560 2006-07-25  Bruno Haible  <bruno@clisp.org>
45561
45562         * modules/version-etc (Depends-on): Add stdarg.
45563
45564 2006-07-25  Bruno Haible  <bruno@clisp.org>
45565
45566         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
45567         complex commands.
45568
45569 2006-07-25  Bruno Haible  <bruno@clisp.org>
45570
45571         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
45572         defined in <stdarg.h> or config.h.
45573
45574 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
45575
45576         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
45577         (gl_STDIO_SAFER): Remove.
45578
45579 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
45580
45581         * MODULES.html.sh (File stream based Input/Output):
45582         Add fopen-safer, tmpfile-safer; remove stdio-safer.
45583         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
45584         * modules/fopen-safer, modules/tmpfile-safer: New files.
45585         * modules/stdio-safer: Remove.
45586
45587 2006-07-24  Bruno Haible  <bruno@clisp.org>
45588
45589         * modules/tmpdir: New file.
45590         * MODULES.html.sh (File system functions): Add it.
45591
45592 2006-07-24  Bruno Haible  <bruno@clisp.org>
45593
45594         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
45595         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
45596
45597 2006-07-24  Bruno Haible  <bruno@clisp.org>
45598
45599         * modules/clean-temp: New file.
45600
45601 2006-07-24  Bruno Haible  <bruno@clisp.org>
45602
45603         * m4/tmpdir.m4: New file, from GNU gettext.
45604
45605 2006-07-24  Bruno Haible  <bruno@clisp.org>
45606
45607         * lib/tmpdir.h: New file, from GNU gettext.
45608         * lib/tmpdir.c: New file, from GNU gettext.
45609
45610 2006-07-24  Bruno Haible  <bruno@clisp.org>
45611
45612         * lib/clean-temp.h: New file, from GNU gettext.
45613         * lib/clean-temp.c: New file, from GNU gettext.
45614
45615 2006-07-23  Eric Blake  <ebb9@byu.net>
45616
45617         * modules/stdio-safer (Files): Add tmpfile-safer.c.
45618         (Depends-on): Add binary-io.
45619
45620 2006-07-23  Eric Blake  <ebb9@byu.net>
45621
45622         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
45623
45624 2006-07-23  Eric Blake  <ebb9@byu.net>
45625
45626         * lib/tmpfile-safer.c: New file.
45627         * lib/stdio-safer.h (fopen_safer): Add prototype.
45628         * lib/stdio--.h (tmpfile): Make safer.
45629
45630 2006-07-23  Bruno Haible  <bruno@clisp.org>
45631
45632         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
45633         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
45634         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
45635         gl_linked_remove_at): Use it.
45636
45637 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45638         and Simon Josefsson <jas@extundo.com>
45639
45640         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
45641
45642         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
45643
45644 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45645
45646         * modules/close-stream: New file.
45647         * modules/closeout (Description): Make it clear that it exits
45648         with a diagnostic on error.
45649         (Depends-on): Add close-stream.  Remove fpending, stdbool.
45650         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
45651
45652 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45653
45654         * m4/close-stream.m4: New file.
45655
45656 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45657
45658         * lib/close-stream.c, lib/close-stream.h: New files.
45659
45660 2006-07-22  Bruno Haible  <bruno@clisp.org>
45661
45662         Merge from GNU gettext 0.15.
45663
45664         2006-05-01  Bruno Haible  <bruno@clisp.org>
45665
45666                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
45667
45668         2006-07-22  Bruno Haible  <bruno@clisp.org>
45669
45670                 * modules/javaversion: New file.
45671                 * MODULES.html.sh (Java): Add javaversion.
45672
45673         2006-03-12  Bruno Haible  <bruno@clisp.org>
45674
45675                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
45676
45677         2005-12-04  Bruno Haible  <bruno@clisp.org>
45678
45679                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
45680                 (untested).
45681
45682         2006-06-21  Bruno Haible  <bruno@clisp.org>
45683
45684                 Avoid warnings from recent versions of mcs.
45685                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
45686                 -o, -L, -r any more. Use options documented since mcs-1.0
45687                 instead. Similarly for -g.
45688
45689         2005-12-04  Bruno Haible  <bruno@clisp.org>
45690
45691                 * build-aux/csharpcomp.sh.in: Suffix for resources is
45692                 .resources, not .resource.
45693
45694         2005-07-09  Bruno Haible  <bruno@clisp.org>
45695
45696                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
45697                 add a .dll suffix.
45698                 Reported by Mark Junker <mjscod@gmx.de>.
45699
45700         2006-07-22  Bruno Haible  <bruno@clisp.org>
45701
45702                 * modules/gettext: Upgrade to gettext-0.15.
45703                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
45704                 m4/visibility.m4.
45705                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
45706
45707 2006-07-22  Bruno Haible  <bruno@clisp.org>
45708
45709         Merge from GNU gettext 0.15.
45710
45711         2006-03-25  Bruno Haible  <bruno@clisp.org>
45712
45713                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
45714
45715         2006-07-21  Bruno Haible  <bruno@clisp.org>
45716
45717                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
45718                 "1.1".
45719
45720         2006-05-09  Bruno Haible  <bruno@clisp.org>
45721
45722                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
45723                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
45724                 for the conftestver execution.
45725
45726         2006-05-01  Bruno Haible  <bruno@clisp.org>
45727
45728                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
45729                 optional target-version argument. Verify that the compiler
45730                 groks source of the specified source-version, or add -source
45731                 option as necessary. Verify that the compiler produces
45732                 bytecode in the specified target-version, or add -target and
45733                 -source options as necessary. Make the result of the test
45734                 available as variable CONF_JAVAC. Also log error output in
45735                 config.log.
45736
45737         2006-03-11  Bruno Haible  <bruno@clisp.org>
45738
45739                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
45740
45741         2006-05-09  Bruno Haible  <bruno@clisp.org>
45742
45743                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
45744                 CLASSPATH_SEPARATOR to a semicolon.
45745
45746         2006-03-12  Bruno Haible  <bruno@clisp.org>
45747
45748                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
45749                 available as variable CONF_JAVA, for subsequent autoconf
45750                 tests. Also log error output in config.log.
45751
45752         2006-07-19  Bruno Haible  <bruno@clisp.org>
45753
45754                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
45755                 that getline works on glibc2 systems. Needed to avoid trouble
45756                 in relocatable.c.
45757                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
45758
45759         2005-12-04  Bruno Haible  <bruno@clisp.org>
45760
45761                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
45762                 launcher (untested).
45763
45764         2005-12-04  Bruno Haible  <bruno@clisp.org>
45765
45766                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
45767
45768         2006-07-22  Bruno Haible  <bruno@clisp.org>
45769
45770                 * gettext.m4: Update from GNU gettext-0.15.
45771                 * nls.m4: Likewise.
45772                 * po.m4: Likewise.
45773                 * inttypes-pri.m4: Likewise.
45774                 * inttypes-h.m4: Renamed from inttypes.m4.
45775                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
45776
45777 2006-07-22  Bruno Haible  <bruno@clisp.org>
45778
45779         Merge from GNU gettext 0.15.
45780
45781         2005-07-05  Bruno Haible  <bruno@clisp.org>
45782
45783                 * printf-args.c (printf_fetchargs): Work around broken
45784                 definition of wint_t on mingw.
45785
45786         2005-02-12  Bruno Haible  <bruno@clisp.org>
45787
45788                 * xallocsa.h: Add extern "C" for C++.
45789
45790         2006-05-17  Bruno Haible  <bruno@clisp.org>
45791
45792                 Cygwin portability.
45793                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
45794
45795         2006-04-30  Bruno Haible  <bruno@clisp.org>
45796
45797                 * progreloc.c: Include <mach-o/dyld.h> if available.
45798                 (find_executable): Use _NSGetExecutablePath when possible.
45799
45800         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
45801
45802                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
45803                 function.
45804
45805         2005-12-29  Bruno Haible  <bruno@clisp.org>
45806
45807                 * progreloc.c (set_program_name_and_installdir): Fix
45808                 compilation error.
45809
45810         2005-12-04  Bruno Haible  <bruno@clisp.org>
45811
45812                 Cygwin portability.
45813                 * progreloc.c: Include <windows.h> also on Cygwin.
45814                 (find_executable): Add support for Cygwin.
45815                 (set_program_name_and_installdir): Handle also platforms with
45816                 nonempty EXEEXT.
45817
45818         2006-07-11  Bruno Haible  <bruno@clisp.org>
45819
45820                 * javacomp.c: Fix a comment.
45821                 Reported by Jim Meyering.
45822
45823         2006-04-30  Bruno Haible  <bruno@clisp.org>
45824
45825                 * javacomp.h (compile_java_class): Add source_version,
45826                 target_version arguments.
45827                 * javacomp.c: Rewritten to choose only a compiler that
45828                 respects the specified source_version and target_version.
45829
45830         2006-06-27  Bruno Haible  <bruno@clisp.org>
45831
45832                 Assume correct S_ISDIR macro.
45833                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
45834
45835         2006-07-22  Bruno Haible  <bruno@clisp.org>
45836
45837                 * javaversion.h: New file, from GNU gettext.
45838                 * javaversion.c: New file, from GNU gettext.
45839                 * javaversion.java: New file, from GNU gettext.
45840                 * javaversion.class: New file, from GNU gettext.
45841
45842         2006-05-17  Bruno Haible  <bruno@clisp.org>
45843
45844                 Cygwin portability.
45845                 * javaexec.c (execute_java_class): Test for jview program
45846                 also on Cygwin.
45847
45848         2006-04-09  Bruno Haible  <bruno@clisp.org>
45849
45850                 * fatal-signal.c: Don't include string.h.
45851                 (at_fatal_signal): Use a copying loop instead of memcpy.
45852
45853         2005-12-04  Bruno Haible  <bruno@clisp.org>
45854
45855                 * csharpexec.c: Add support for 'clix' launcher (untested).
45856                 (execute_csharp_using_sscli): New function.
45857                 (execute_csharp_program): Call it.
45858
45859         2006-06-21  Bruno Haible  <bruno@clisp.org>
45860
45861                 Avoid warnings from recent versions of mcs.
45862                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
45863                 -o, -L, -r any more. Use options documented since mcs-1.0
45864                 instead. Similarly for -g.
45865
45866         2005-07-09  Bruno Haible  <bruno@clisp.org>
45867
45868                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
45869                 add a .dll suffix.
45870                 Reported by Mark Junker <mjscod@gmx.de>.
45871
45872         2006-06-17  Bruno Haible  <bruno@clisp.org>
45873
45874                 * config.charset: Update for NetBSD 3.0.
45875
45876         2006-05-17  Bruno Haible  <bruno@clisp.org>
45877
45878                 Cygwin portability.
45879                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
45880
45881         2006-05-16  Bruno Haible  <bruno@clisp.org>
45882
45883                 * localcharset.c [CYGWIN]: Include <windows.h>.
45884                 (get_charset_aliases): For Cygwin, return the same CPxxx
45885                 aliases list as under WIN32.
45886                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
45887                 the environment variables. Fall back to GetACP().
45888
45889         2006-04-05  Bruno Haible  <bruno@clisp.org>
45890
45891                 * config.charset: Update Juan Manuel Guerrero's address.
45892
45893         2005-02-12  Bruno Haible  <bruno@clisp.org>
45894
45895                 * allocsa.h: Add extern "C" for C++.
45896
45897         2005-02-10  Bruno Haible  <bruno@clisp.org>
45898
45899                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
45900                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
45901
45902         2006-07-22  Bruno Haible  <bruno@clisp.org>
45903
45904                 * gettext.h: Update to GNU gettext-0.15.
45905
45906 2006-07-22  Bruno Haible  <bruno@clisp.org>
45907
45908         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
45909         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
45910         lib-prefix.m4, longdouble.m4, ssize_t.m4.
45911
45912 2006-07-21  Eric Blake  <ebb9@byu.net>
45913
45914         * modules/stdlib-safer: New file.
45915         * MODULES.html.sh (File stream based Input/Output): Add
45916         stdlib-safer.
45917
45918 2006-07-21  Eric Blake  <ebb9@byu.net>
45919
45920         * lib/stdlib-safer.h: New file from coreutils, required by
45921         stdlib--.h.
45922
45923 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
45924
45925         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
45926
45927 2006-07-20  Bruno Haible  <bruno@clisp.org>
45928
45929         * gnulib-tool: Recognize new option --assume-autoconf.
45930         (autoconf_minversion): New variable.
45931         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
45932
45933 2006-07-20  Bruno Haible  <bruno@clisp.org>
45934
45935         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
45936
45937 2006-07-19  Derek R. Price  <derek@ximbiot.com>
45938
45939         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
45940         Reindent and repaginate.
45941
45942 2006-07-19  Derek Price  <derek@ximbiot.com>
45943
45944         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
45945         Correct grammar.
45946
45947 2006-07-17  Bruno Haible  <bruno@clisp.org>
45948
45949         * modules/list: New file.
45950         * modules/array-list: New file.
45951         * modules/carray-list, modules/carray-list-tests: New files.
45952         * modules/linked-list, modules/linked-list-tests: New files.
45953         * modules/avltree-list, modules/avltree-list-tests: New files.
45954         * modules/rbtree-list, modules/rbtree-list-tests: New files.
45955         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
45956         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
45957         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
45958         * modules/oset: New file.
45959         * modules/array-oset: New file.
45960         * modules/avltree-oset, modules/avltree-oset-tests: New files.
45961         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
45962         * tests/test-carray_list.c: New file.
45963         * tests/test-linked_list.c: New file.
45964         * tests/test-avltree_list.c: New file.
45965         * tests/test-rbtree_list.c: New file.
45966         * tests/test-linkedhash_list.c: New file.
45967         * tests/test-avltreehash_list.c: New file.
45968         * tests/test-rbtreehash_list.c: New file.
45969         * tests/test-avltree_oset.c: New file.
45970         * tests/test-rbtree_oset.c: New file.
45971         * MODULES.html.sh (Container data structures): New section.
45972
45973 2006-07-17  Bruno Haible  <bruno@clisp.org>
45974
45975         * m4/gl_list.m4: New file.
45976
45977 2006-07-17  Bruno Haible  <bruno@clisp.org>
45978
45979         * lib/gl_list.h: New file.
45980         * lib/gl_list.c: New file.
45981         * lib/gl_array_list.h: New file.
45982         * lib/gl_array_list.c: New file.
45983         * lib/gl_carray_list.h: New file.
45984         * lib/gl_carray_list.c: New file.
45985         * lib/gl_linked_list.h: New file.
45986         * lib/gl_linked_list.c: New file.
45987         * lib/gl_anylinked_list1.h: New file.
45988         * lib/gl_anylinked_list2.h: New file.
45989         * lib/gl_avltree_list.h: New file.
45990         * lib/gl_avltree_list.c: New file.
45991         * lib/gl_anyavltree_list1.h: New file.
45992         * lib/gl_anyavltree_list2.h: New file.
45993         * lib/gl_rbtree_list.h: New file.
45994         * lib/gl_rbtree_list.c: New file.
45995         * lib/gl_anyrbtree_list1.h: New file.
45996         * lib/gl_anyrbtree_list2.h: New file.
45997         * lib/gl_anytree_list1.h: New file.
45998         * lib/gl_anytree_list2.h: New file.
45999         * lib/gl_linkedhash_list.h: New file.
46000         * lib/gl_linkedhash_list.c: New file.
46001         * lib/gl_anyhash_list1.h: New file.
46002         * lib/gl_anyhash_list2.h: New file.
46003         * lib/gl_avltreehash_list.h: New file.
46004         * lib/gl_avltreehash_list.c: New file.
46005         * lib/gl_rbtreehash_list.h: New file.
46006         * lib/gl_rbtreehash_list.c: New file.
46007         * lib/gl_anytreehash_list1.h: New file.
46008         * lib/gl_anytreehash_list2.h: New file.
46009
46010         * lib/gl_oset.h: New file.
46011         * lib/gl_oset.c: New file.
46012         * lib/gl_array_oset.h: New file.
46013         * lib/gl_array_oset.c: New file.
46014         * lib/gl_avltree_oset.h: New file.
46015         * lib/gl_avltree_oset.c: New file.
46016         * lib/gl_rbtree_oset.h: New file.
46017         * lib/gl_rbtree_oset.c: New file.
46018         * lib/gl_anytree_oset.h: New file.
46019
46020 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
46021
46022         * m4/mkancesdirs.m4: New file.
46023         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
46024         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
46025         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
46026         it.
46027
46028 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
46029
46030         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
46031         * lib/mkancesdirs.h: New files.
46032         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
46033         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
46034         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
46035         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
46036         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
46037         callers changed.  Revamp internals significantly, by not
46038         attempting to create directories that are temporarily more
46039         permissive than the final results.  Do not attempt to use
46040         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
46041         This removes some race conditions, fixes some bugs, and simplifies
46042         things.  Use new dirchownmod function to do owner and mode changes.
46043         * lib/mkdir-p.h: Likewise.
46044         * lib/modechange.c (octal_to_mode): New function.
46045         (struct mode_change): New member mentioned.
46046         (make_node_op_equals): New arg mentioned.  All callers changed.
46047         (mode_compile): Keep track of which mode bits the user has explicitly
46048         mentioned.
46049         (mode_adjust): New arg DIR, so that we implement the X op correctly.
46050         New arg PMODE_BITS, to keep track of which mode bits the user
46051         mentioned; it treats S_ISUID and S_ISGID speciall.
46052         All callers changed.
46053         * lib/modechange.h: Likewise.
46054
46055 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
46056
46057         * MODULES.html.sh: Add mkancestors.
46058         * modules/mkancesdirs: New module.
46059         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
46060         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
46061         The chdir-safer and afs files are now orphans; I'll remove them
46062         unless someone speaks up.
46063         Add lib/dirchownmod.c, lib/dirchownmod.h.
46064         (Depends-on): Remove alloca, chown, save-cwd, dirname.
46065         Add lchown, mkancesdirs.
46066         (Maintainer): Add self.
46067
46068 2006-07-15  Karl Berry  <karl@gnu.org>
46069
46070         * gnulib-tool: help message wording/arrangement.
46071
46072 2006-07-14  Simon Josefsson  <jas@extundo.com>
46073
46074         * doc/gnulib.texi (Libtool and Windows): New section.
46075
46076 2006-07-12  Simon Josefsson  <jas@extundo.com>
46077
46078         * modules/gendocs (License): Fix license, approved by Karl.
46079
46080 2006-07-12  Eric Blake  <ebb9@byu.net>
46081
46082         * MODULES.html.sh: Add gendocs.
46083
46084 2006-07-11  Eric Blake  <ebb9@byu.net>
46085
46086         * modules/fdl: New module, to install doc/fdl.texi.
46087         * MODULES.html.sh: Add new section for documentation modules.
46088         * gnulib-tool: Avoid space-tab.
46089         (--doc-base): New option, to manage files from doc.
46090
46091 2006-07-11  Eric Blake  <ebb9@byu.net>
46092
46093         * m4/absolute-header.m4: Fix comments to match recent change.
46094
46095 2006-07-11  Eric Blake  <ebb9@byu.net>
46096
46097         * gnulib-tool: List --doc-base before --tests-base.
46098
46099 2006-07-11  Derek R. Price  <derek@ximbiot.com>
46100
46101         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
46102
46103 2006-07-11  Bruno Haible  <bruno@clisp.org>
46104
46105         * README: Mention where to put documentation.
46106
46107 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46108
46109         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
46110
46111 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
46112
46113         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
46114         to stdint.m4.
46115
46116 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
46117
46118         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
46119         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
46120         "no/such/file/stdint.h" when there is no such file, so that
46121         the resulting C code can be parsed by dodgy compilers.
46122         Problems reported by Bob Proulx.
46123
46124 2006-07-10  Derek R. Price  <derek@ximbiot.com>
46125
46126         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
46127         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
46128         macros into the GNU _D_EXACT_NAMLEN.
46129         * lib/savedir.c:  Likewise.
46130         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
46131
46132 2006-07-10  Derek R. Price  <derek@ximbiot.com>
46133         and Paul Eggert  <eggert@cs.ucla.edu>
46134
46135         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
46136         * m4/savedir.m4:
46137         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
46138         macros into the GNU _D_EXACT_NAMLEN.
46139
46140 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
46141
46142         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
46143         around the absolute name, to work around a problem with the HP-UX
46144         11.23 native C compiler, reported by Bob Proulx.
46145
46146 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
46147
46148         * doc/maintain.texi, make-stds.texi: Sync from
46149         <http://savannah.gnu.org/projects/gnustandards>.
46150
46151 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
46152
46153         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
46154
46155 2006-07-09  Jim Meyering  <jim@meyering.net>
46156
46157         * m4/glob.m4: Remove a doubled word in a comment.
46158
46159 2006-07-09  Jim Meyering  <jim@meyering.net>
46160
46161         * lib/argp-pv.c: Remove a doubled word in a comment.
46162         * lib/check-version.c (check_version): Likewise.
46163         * lib/javacomp.c (compile_java_class): Likewise.
46164
46165 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
46166
46167         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
46168         for the benefit of people using Autoconf 2.60.  If you want to
46169         support older Autoconf versions you can copy m4/onceonly_2_57.m4
46170         (or m4/onceonly.m4, if pre-2.57) manually.
46171
46172 2006-07-08  Jim Meyering  <jim@meyering.net>
46173
46174         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
46175         comment.
46176         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
46177         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
46178         comment.
46179
46180 2006-07-08  Jim Meyering  <jim@meyering.net>
46181
46182         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
46183
46184 2006-07-07  Simon Josefsson  <jas@extundo.com>
46185
46186         * tests/test-crc.c: Change expected crc value, the test vector
46187         were probably computed using the old broken crc.c?
46188
46189 2006-07-06  Simon Josefsson  <jas@extundo.com>
46190
46191         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
46192         now the canonical place for the M4 file).
46193
46194         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
46195         from the sys_socket dependency now.
46196
46197         * modules/inet_pton (Files): Ditto.
46198
46199         * modules/inet_ntop (Files): Ditto.
46200
46201 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
46202
46203         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
46204         not gl_PREREQ_GETUSERSHELL.
46205
46206 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46207
46208         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
46209         with only one argument, for Autoconf 2.60.
46210         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
46211         expand to nothing, so add a shell command to avoid syntax error.
46212         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
46213
46214 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46215
46216         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
46217
46218 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
46219
46220         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
46221         no longer needed.  Check for isblank decl.
46222         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
46223         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
46224         of existence.
46225
46226 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
46227
46228         * lib/getloadavg.c: Use __VMS, not VMS.
46229         * lib/getopt.c: Likewise.
46230         * lib/getpagesize.h: Likewise.
46231         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
46232         and probably does not work.
46233
46234 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
46235
46236         * lib/.cppi-disable: Add wcwidth.
46237         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
46238         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
46239         (ISGRAPH): Remove.  All uses changed to isgraph.
46240         (FOLD) [!defined _LIBC]: Remove special case.
46241         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
46242         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
46243         HAVE_ISBLANK.
46244         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
46245         case.
46246
46247 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
46248
46249         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
46250         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
46251         brackets.  Other minor changes to suppress some compiler
46252         warnings.
46253
46254 2006-07-06  Derek R. Price  <derek@ximbiot.com>
46255         and Paul Eggert  <eggert@cs.ucla.edu>
46256
46257         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
46258         of invoking obsolescent AC_HEADER_DIRENT macro.
46259         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
46260         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
46261         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
46262         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
46263         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
46264         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
46265         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
46266         * m4/readdir.m4: Remove; no longer needed.
46267
46268 2006-07-06  Derek R. Price  <derek@ximbiot.com>
46269         and Paul Eggert  <eggert@cs.ucla.edu>
46270
46271         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
46272         Don't worry about this obsolete case any more.
46273         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
46274         directories.
46275         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
46276         worry about this obsolete case any more.
46277         * lib/fts.c: Likewise.
46278         * lib/getcwd.c: Likewise.
46279         * lib/glob.h: Likewise.
46280         * lib/savedir.c: Likewise.
46281
46282 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
46283
46284         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
46285         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
46286         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
46287         needed.
46288         All uses removed.
46289         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
46290         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
46291         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
46292         needed.
46293         * m4/getdate.m4 (gl_GETDATE): Likewise.
46294         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
46295         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
46296         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
46297         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
46298         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
46299         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
46300         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
46301         needed.
46302
46303 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
46304
46305         * lib/memcasecmp.c: Include <limits.h>.
46306         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
46307         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
46308         Don't assume isdigit succeeds only on '0' through '9'.
46309
46310 2006-07-05  Eric Blake  <ebb9@byu.net>
46311
46312         * modules/getaddrinfo (Depends-on): Add snprintf.
46313
46314 2006-07-05  Eric Blake  <ebb9@byu.net>
46315
46316         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
46317         to avoid 'header present but could not be compiled' on cygwin.
46318
46319 2006-07-05  Eric Blake  <ebb9@byu.net>
46320
46321         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
46322         missing from netdb.h.
46323         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
46324
46325 2006-07-05  Derek R. Price  <derek@ximbiot.com>
46326
46327         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
46328         no longer needed.
46329         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
46330         * m4/getdate.m4 (gl_GETDATE): Likewise.
46331         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
46332         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
46333         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
46334         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
46335         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
46336
46337 2006-07-05  Derek R. Price  <derek@ximbiot.com>
46338
46339         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
46340         All uses of is_space replaced by isspace.
46341         * lib/exit.h: Don't talk about STDC_HEADERS.
46342         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
46343         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
46344         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
46345         replaced by isprint etc.
46346         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
46347         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
46348         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
46349         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
46350         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
46351         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
46352
46353 2006-07-05  Bruno Haible  <bruno@clisp.org>
46354
46355         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
46356         the function exists, before testing against AIX.
46357         Reported by Martin Lambers <marlam@marlam.de>.
46358
46359 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
46360
46361         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
46362         From Mark D. Baushke.
46363
46364 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
46365
46366         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
46367         to the absolute name, not just one, to bypass Sun C 5.8's
46368         "warning: #include of /usr/include/... may be non-portable".
46369
46370 2006-07-04  Eric Blake  <ebb9@byu.net>
46371
46372         * modules/dirname-tests: New test module.
46373         * tests/test-dirname.c: New file, replacing dirname.c
46374         TEST_DIRNAME section that was recently deleted.
46375
46376 2006-07-04  Bruno Haible  <bruno@clisp.org>
46377
46378         Assume ANSI C header files and <ctype.h> functions.
46379         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
46380         (mbsnwidth): Use isprint, iscntrl instead.
46381
46382 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
46383
46384         Merge from coreutils.
46385         * MODULES.html.sh: Add xstrtold.
46386         * modules/xstrtold: New file.
46387         * modules/cycle-check (Files): Add lib/same-inode.h.
46388         * modules/dirname (Files): Add m4/double-slash-root.m4.
46389         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
46390         * modules/mkdir-p (Files): Add lib/same-inode.h.
46391         * modules/same (Files): Add lib/same-inode.h.
46392
46393 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
46394
46395         * m4/absolute-header.m4: Renamed from full-header-path.m4.
46396         This is to keep the terminology clean; POSIX talks about
46397         "absolute pathnames", not "full pathnames", but the GNU
46398         Coding Standards say to use "path" for something else;
46399         so use "absolute" to keep both sides happy.
46400         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
46401         Set gl_absolute_header, not gl_full_header_path.
46402         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
46403         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
46404         All uses changed.
46405
46406         Merge from coreutils.
46407
46408         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
46409
46410         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
46411         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
46412         want to require the building of c-strtod.o.
46413         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
46414         needs -lm directly.
46415         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
46416
46417         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
46418
46419         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
46420         --as-needed option if available.  Problem reported by Albert Chin in
46421         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
46422         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
46423         cc merely issues a bunch of annoying warnings for --as-needed
46424         (this problem was reported by Bob Proulx).  Also, try linking with
46425         -lm to detect a bug in binutils 2.16 (this problem was reported
46426         by Ralf Wildenhues).
46427
46428         2006-06-18  Jim Meyering  <jim@meyering.net>
46429
46430         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
46431         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
46432         macro.
46433         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
46434         also check for glibc-2.4's abort-inducing bug.
46435
46436         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
46437         Low-probability clean-up should be to use rmdir to get rid of
46438         the just-created directory, not unlink.
46439
46440         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
46441         configure fail, and request a bug report to inform us about it.
46442         Add a comment that, barring reports to the contrary, in 2007 we'll
46443         assume ftruncate is universally available.
46444
46445         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
46446
46447         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
46448
46449         2006-03-12  Jim Meyering  <jim@meyering.net>
46450
46451         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
46452         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
46453         * m4/same.m4 (gl_SAME): Likewise.
46454         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
46455
46456         2006-03-11  Eric Blake  <ebb9@byu.net>
46457
46458         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
46459         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
46460         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
46461         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
46462
46463 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
46464
46465         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
46466         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
46467         reported by Mark D. Baushke, one in
46468         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
46469
46470         Merge from coreutils.
46471
46472         * lib/.cppi-disable: Add stdint_.h.
46473         * lib/.cvsignore: Add stdint.h.
46474
46475         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
46476
46477         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
46478         both double and long double versions.
46479         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
46480         * lib/xstrtold.c: New file.
46481         * lib/xstrtod.h (xstrtold): New decl.
46482
46483         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
46484
46485         * lib/filemode.c (setst): Remove.
46486         (strmode): Rewrite to avoid setst.  This makes the code shorter,
46487         (arguably) clearer, and the generated code is a bit smaller on my
46488         Debian GNU/Linux stable x86 host.
46489
46490         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
46491
46492         * lib/filemode.c: Include "filemode.h" first, to test the interface.
46493         Assume that filemode.h includes sys/types.h and sys/stat.h.
46494         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
46495         (ftypelet): Reorder to put common cases first, for efficiency.
46496         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
46497         to do 'M'.
46498         (strmode): Renamed from mode_string, and now stores 12 bytes instead
46499         of 10, for compatibility with FreeBSD.  All callers changed.
46500         (filemodestring): Now stores 12 bytes instead of 10, and sets file
46501         types that can't be deduced solely from st_mode.  First arg is now a
46502         const pointer.
46503         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
46504         (strmode): Renamed from mode_string.
46505         (filemodestring): New decl.
46506         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
46507         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
46508         needed.
46509         (S_ISPORT, S_ISWHT): New macros, if not already defined.
46510
46511         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
46512
46513         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
46514         fsusage.h now does that.  Include fsusage.h first, to test interface.
46515         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
46516         at most one method (the old code could have generated decls that
46517         didn't conform to C89, not that this was ever exercised).
46518         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
46519
46520         2006-03-19  Jim Meyering  <jim@meyering.net>
46521
46522         Work even in a chroot where d_ino values for entries in "/"
46523         don't match the stat.st_ino values for the same names.
46524         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
46525         number, iterate through all entries again, using lstat instead.
46526         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
46527         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
46528
46529         * lib/getcwd.c (__getcwd): Clarify a comment.
46530         Use memcpy in place of a call to strcpy.
46531
46532         2006-03-12  Jim Meyering  <jim@meyering.net>
46533
46534         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
46535         matches that of the current directory (which we're about to chdir ".."
46536         out of), then save the dev-ino of the parent, instead.
46537
46538         * lib/same-inode.h (SAME_INODE): New file/macro.
46539         * lib/chdir-safer.c (SAME_INODE): Remove definition.
46540         Include "same-inode.h", instead.
46541         * lib/same.c: Likewise.
46542         * lib/cycle-check.h: Include "same-inode.h".
46543         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
46544         * lib/cycle-check.c (SAME_INODE): Remove definition.
46545         * lib/root-dev-ino.h: Include "same-inode.h".
46546
46547         2006-03-11  Eric Blake  <ebb9@byu.net>
46548
46549         * lib/same.c (same_name): s/base_name/last_component/
46550         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
46551         * lib/filenamecat.c (file_name_concat): Likewise.
46552
46553         2006-03-11  Eric Blake  <ebb9@byu.net>,
46554                     Paul Eggert  <eggert@cs.ucla.edu>
46555
46556         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
46557         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
46558         drive prefix.
46559         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
46560         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
46561         (last_component): New method.
46562         * lib/dirname.c (dir_len): Determine when drive letters need a
46563         subsequent slash.  Preserve // when it is special.
46564         (dir_name): Don't append dot when drive letter is absolute.
46565         [TEST_DIRNAME]: Move into a full-blown gnulib test.
46566         * lib/basename.c (base_name): New semantics - malloc the result.
46567         Preserve // when it is special.  Preserve relative files that look
46568         like drive letters.
46569         (base_len): Preserve // when it is special.
46570         (last_component): New method, similar to old base_name semantics.
46571         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
46572         base_name.  Strip redundant slashes from ///.
46573
46574 2006-07-03  Jim Meyering  <jim@meyering.net>
46575
46576         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
46577         macro is used before the first cycle_check call.
46578
46579 2006-07-03  Eric Blake  <ebb9@byu.net>
46580
46581         * modules/dirname (Depends-on): Add xstrndup.
46582
46583 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
46584
46585         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
46586         test cases, so that config.log is a bit easier to follow.
46587
46588 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
46589
46590         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
46591         both are 64 bits, since this seems to be the tradition, and this
46592         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
46593         we ever run into a host that prefers long long to long in this
46594         case, we'll need another configure-time test.  Problem reported by
46595         Jim Meyering.
46596
46597 2006-07-02  Eric Blake  <ebb9@byu.net>
46598
46599         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
46600
46601 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
46602
46603         * modules/inttypes (Depends-on): No longer depends on stdint.
46604         * modules/stdint (Description): Say more about assumptions.
46605         Say that the fast types might differ.  Say macros are used.
46606         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
46607         (Makefile.am): Revise list of substituted symbols to match
46608         new stdint.m4.
46609         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
46610         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
46611         * tests/test-stdint.c (verify_same_types)
46612         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
46613         the code conforms to C99/C89.
46614         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
46615         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
46616
46617 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
46618
46619         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
46620         but fix a bug, by requiring at least 64 bits.
46621         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
46622         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
46623         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
46624         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
46625
46626         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
46627         changes.  Make 2.59 a prerequisite.  Check and substitute for
46628         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
46629         inttypes.h.  Do not use special include files; just use the
46630         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
46631         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
46632         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
46633         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
46634         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
46635         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
46636         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
46637         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
46638         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
46639         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
46640         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
46641         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
46642         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
46643         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
46644         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
46645         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
46646         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
46647         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
46648         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
46649         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
46650         WINT_MAX.  Check for C99 conformance more strictly, by detecting
46651         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
46652         not check for things that C99 does not require, e.g., int8_t.  If
46653         a test isn't needed unless <stdint.h> isn't working, and is
46654         unlikely to be needed for any other reason, then don't do it
46655         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
46656         size_t, since we assume C89 freestanding at least.  Do not check
46657         for sig_atomic_t, wchar_t, or wint_t, since the code now does
46658         the right thing even if the types are not defined.  Instead use:
46659         (gl_STDINT_TYPE_PROPERTIES): New macro.
46660         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
46661         testing whether <sys/types.h> clashes, as Autoconf does this for
46662         us now.  All uses removed.
46663         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
46664         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
46665         (gl_CHECK_TYPE_SAME):
46666         Remove; no longer needed.
46667         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
46668         exists, since we'll return 0 anyway in that case.
46669         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
46670
46671 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
46672
46673         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
46674         possible collision with system files.
46675         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
46676         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
46677         WCHAR_MIN and WCHAR_MAX in this case.
46678         (<stddef.h>): Do not include; no longer needed.
46679         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
46680         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
46681         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
46682         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
46683         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
46684         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
46685         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
46686         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
46687         !defined(__c99))]: Include in this case too, since it's harmless
46688         now.
46689         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
46690         dangerous to do so.
46691         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
46692         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
46693         (_STDINT_MIN, _STDINT_MAX): New macros.
46694         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
46695         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
46696         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
46697         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
46698         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
46699         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
46700         macros, not typedefs; this simplifies things quite a bit.
46701         Use long int for all types narrower than int64_t.
46702         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
46703         Define in terms of long long int or int64_t or long int,
46704         not int64_t or int32_t.  This saves some compile-time testing.
46705         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
46706         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
46707         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
46708         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
46709         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
46710         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
46711         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
46712         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
46713         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
46714         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
46715         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
46716         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
46717         undef any previous version and define our own version, for
46718         simplicity and consistency with the new macros for types.
46719         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
46720         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
46721         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
46722         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
46723         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
46724         @WINT_T_SUFFIX@ to keep things simple here.
46725         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
46726         Simplify by assuming typical 8/16/32/64 host, since we're
46727         already doing that elsewhere anyway.
46728         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
46729         and assume long long int is 64 bits if available.  This
46730         speeds up 'configure'.
46731
46732 2006-07-01  Eric Blake  <ebb9@byu.net>
46733
46734         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
46735         Reported by Andreas Buening.
46736
46737 2006-07-01  Eric Blake  <ebb9@byu.net>
46738
46739         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
46740
46741 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
46742
46743         * lib/getaddrinfo.c: fixed typo
46744
46745 2006-06-29  Jim Meyering  <jim@meyering.net>
46746
46747         * modules/strftime (Maintainer): Add my name, since with the
46748         FPRINTFTIME changes strftime.c has forked from glibc.
46749
46750 2006-06-29  Eric Blake  <ebb9@byu.net>
46751
46752         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
46753
46754 2006-06-29  Eric Blake  <ebb9@byu.net>
46755
46756         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
46757
46758 2006-06-29  Eric Blake  <ebb9@byu.net>
46759
46760         * lib/stat_.h: New file.
46761
46762 2006-06-29  Eric Blake  <ebb9@byu.net>
46763
46764         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
46765         unused static function.
46766
46767 2006-06-29  Eric Blake  <ebb9@byu.net>
46768
46769         * doc/functions.texi (Function Portability): Document missing lstat
46770         on mingw.
46771
46772 2006-06-29  Eric Blake  <ebb9@byu.net>
46773
46774         * MODULES.html.sh: Add sys_stat.
46775         * modules/sys_stat: New module.
46776         * modules/mkstemp (Depends-on): Add sys_stat.
46777
46778 2006-06-29  Derek R. Price  <derek@ximbiot.com>
46779
46780         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
46781
46782 2006-06-29  Derek R. Price  <derek@ximbiot.com>
46783
46784         * m4/c-bs-a.m4: Removed.
46785
46786 2006-06-29  Derek R. Price  <derek@ximbiot.com>
46787
46788         * lib/strftime.c: Assume strftime() exists.
46789
46790 2006-06-29  Derek Price  <derek@ximbiot.com>
46791
46792         * modules/c-bs-a: Removed - \a is C89.
46793         * MODULES.html.sh: Remove c-bs-a.
46794
46795 2006-06-29  Bruno Haible  <bruno@clisp.org>
46796
46797         * modules/wcwidth (License): Change to LGPL.
46798
46799 2006-06-28  Simon Josefsson  <jas@extundo.com>
46800
46801         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
46802         on _WIN32.
46803
46804         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
46805         getnameinfo.
46806
46807 2006-06-28  Simon Josefsson  <jas@extundo.com>
46808
46809         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
46810
46811 2006-06-28  Simon Josefsson  <jas@extundo.com>
46812
46813         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
46814         functions there.  It will succeed on Windows XP, but on Windows
46815         2000 and (presumably) earlier, it will fail, and use the internal
46816         re-implementation.
46817         (use_win32_p): New function.
46818         (getaddrinfo): Use strtoul on servname, to support numeric ports.
46819         Support AI_NUMERICSERV to disable getservbyname.
46820         (getnameinfo): New function, only supports
46821         NI_NUMERICHOST|NI_NUMERICSERV for now.
46822
46823         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
46824         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
46825         getnameinfo.
46826
46827 2006-06-28  Eric Blake  <ebb9@byu.net>
46828
46829         * modules/wcwidth: New file.
46830         * modules/mbchar (Depends-on): Add wcwidth.
46831         * modules/mbswidth (Depends-on): Add wcwidth.
46832         * MODULES.html.sh: Add wcwidth.
46833
46834 2006-06-28  Eric Blake  <ebb9@byu.net>
46835
46836         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
46837         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
46838
46839 2006-06-28  Eric Blake  <ebb9@byu.net>
46840
46841         * lib/xvasprintf.h: Fix comments.
46842
46843 2006-06-28  Eric Blake  <ebb9@byu.net>
46844
46845         * lib/mbchar.h (wcwidth): Include wcwidth.h.
46846         * lib/mbswidth.c (wcwidth): Move from here...
46847         * lib/wcwidth.h: ...to this new file.
46848
46849 2006-06-28  Derek R. Price  <derek@ximbiot.com>
46850
46851         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
46852
46853         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
46854         it's obsolete.
46855         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
46856
46857 2006-06-28  Derek R. Price  <derek@ximbiot.com>
46858
46859         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
46860         Autoconf 2.60 says this stuff was obsolete.
46861
46862 2006-06-28  Bruno Haible  <bruno@clisp.org>
46863
46864         * modules/wcwidth (Files): Add m4/wchar_t.m4.
46865
46866 2006-06-28  Bruno Haible  <bruno@clisp.org>
46867
46868         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
46869         gt_TYPE_WCHAR_T.
46870
46871 2006-06-28  Bruno Haible  <bruno@clisp.org>
46872
46873         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
46874         declaration for wcwidth.
46875         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
46876
46877 2006-06-28  Bruno Haible  <bruno@clisp.org>
46878
46879         * lib/mkdtemp.c [MINGW]: Include <io.h>.
46880         (mkdir): Define using _mkdir.
46881
46882 2006-06-28  Bruno Haible  <bruno@clisp.org>
46883
46884         * lib/getaddrinfo.h: Fix POSIX URL.
46885         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
46886         _WIN32.
46887         (use_win32_p): Make static.
46888         (getaddrinfo): Reject service name if it is empty or does not consist
46889         solely of decimal digits, or if its value is > 65535.
46890         (getnameinfo): Remove useless casts.
46891
46892 2006-06-27  Simon Josefsson  <jas@extundo.com>
46893
46894         * modules/sys_select: New file, suggested by Bruno Haible, Paul
46895         Eggert and Martin Lambers.
46896
46897 2006-06-27  Simon Josefsson  <jas@extundo.com>
46898
46899         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
46900         Eggert and Martin Lambers.
46901
46902 2006-06-27  Bruno Haible  <bruno@clisp.org>
46903
46904         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
46905         result to 0, not to empty.
46906         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
46907
46908 2006-06-27  Bruno Haible  <bruno@clisp.org>
46909
46910         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
46911
46912 2006-06-26  Simon Josefsson  <jas@extundo.com>
46913
46914         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
46915         present.
46916
46917 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
46918
46919         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
46920         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
46921         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
46922
46923 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
46924
46925         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
46926
46927 2006-06-26  Bruno Haible  <bruno@clisp.org>
46928
46929         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
46930
46931 2006-06-26  Bruno Haible  <bruno@clisp.org>
46932
46933         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
46934
46935 2006-06-26  Bruno Haible  <bruno@clisp.org>
46936
46937         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
46938         SGI C compiler in pre-C99 mode.
46939         Suggested by Mark D. Baushke and Larry Jones.
46940
46941 2006-06-26  Bruno Haible  <bruno@clisp.org>
46942
46943         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
46944         WCHAR_MAX.
46945         Reported by Mark D. Baushke and Larry Jones.
46946
46947 2006-06-26  Bruno Haible  <bruno@clisp.org>
46948
46949         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
46950         in pre-C99 mode.
46951         Suggested by Mark D. Baushke and Larry Jones.
46952
46953 2006-06-23  Simon Josefsson  <jas@extundo.com>
46954             Bruno Haible  <bruno@clisp.org>
46955
46956         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
46957         Emit mostlyclean-local rule.
46958         (func_emit_tests_Makefile_am): Likewise.
46959         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
46960
46961 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
46962
46963         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
46964
46965 2006-06-23  Bruno Haible  <bruno@clisp.org>
46966
46967         * tests/test-stdint.c: Update to match ISO C 99 Technical
46968         Corrigendum 1.
46969
46970 2006-06-23  Bruno Haible  <bruno@clisp.org>
46971
46972         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
46973
46974 2006-06-23  Bruno Haible  <bruno@clisp.org>
46975
46976         * lib/stdint_.h: Treat IRIX like OpenBSD.
46977
46978 2006-06-23  Bruno Haible  <bruno@clisp.org>
46979
46980         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
46981         ISO C 99 Technical Corrigendum 1.
46982
46983 2006-06-22  Simon Josefsson  <jas@extundo.com>
46984
46985         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
46986         MinGW.
46987
46988 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
46989
46990         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
46991         needed.  Some compiler complained about some of them.  Problem reported
46992         by Larry Jones in
46993         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
46994
46995 2006-06-21  Simon Josefsson  <jas@extundo.com>
46996
46997         * tests/test-getaddrinfo.c: New file.
46998
46999         * modules/getaddrinfo-tests: New file.
47000
47001         * MODULES.html.sh: Add inet_pton.
47002
47003         * modules/inet_pton: New file.
47004
47005 2006-06-21  Simon Josefsson  <jas@extundo.com>
47006
47007         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
47008         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
47009         of using the (limited) gnulib implementation on Windows XP.
47010
47011         * m4/inet_pton.m4: New file.
47012
47013 2006-06-21  Simon Josefsson  <jas@extundo.com>
47014
47015         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
47016         variable.
47017
47018         * lib/socket_.h: Don't define WINVER.
47019
47020         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
47021         slightly modified to work in gnulib.
47022
47023 2006-06-21  Simon Josefsson  <jas@extundo.com>
47024
47025         * doc/gnulib.texi (Windows sockets): Add.
47026
47027 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
47028
47029         * lib/read-file.c (fread_file): Start with buffer allocation of
47030         0 bytes rather than 1 byte; this simplifies the code.
47031         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
47032         code to free buffer and save/restore errno.
47033         (internal_read_file): Remove unused local.
47034
47035 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
47036
47037         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
47038         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
47039         Problem reported by Denis Excoffier in
47040         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
47041
47042 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47043
47044         * modules/sys_socket, modules/socklen: Include sys/types since
47045         FreeBSD 4.x's sys/socket.h needs it.
47046
47047 2006-06-19  Simon Josefsson  <jas@extundo.com>
47048
47049         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
47050
47051 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
47052
47053         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
47054
47055 2006-06-19  Bruno Haible  <bruno@clisp.org>
47056
47057         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
47058         and FULL_PATH_INTTYPES_H in angle brackets.
47059         Reported by Mark D. Baushke <mdb@gnu.org>.
47060
47061 2006-06-17  Eric Blake  <ebb9@byu.net>
47062
47063         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
47064         errno.
47065
47066 2006-06-17  Bruno Haible  <bruno@clisp.org>
47067
47068         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
47069         <sys/inttypes.h>.
47070
47071 2006-06-17  Bruno Haible  <bruno@clisp.org>
47072
47073         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
47074         whether errno is declared. Assume <errno.h> declares errno.
47075
47076 2006-06-17  Bruno Haible  <bruno@clisp.org>
47077
47078         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
47079
47080 2006-06-17  Bruno Haible  <bruno@clisp.org>
47081
47082         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
47083         problem on Solaris 2.5.1.
47084
47085 2006-06-16  Eric Blake  <ebb9@byu.net>
47086
47087         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
47088         * lib/unicodeio.c [!defined errno]: Likewise.
47089         * lib/strtol.c [!defined errno]: Likewise.
47090         * lib/strtod.c [!defined errno]: Likewise.
47091
47092 2006-06-15  Eric Blake  <ebb9@byu.net>
47093
47094         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
47095
47096 2006-06-15  Eric Blake  <ebb9@byu.net>
47097
47098         * config/srclist.txt (ssize_t.m4): Lose sync.
47099
47100 2006-06-15  Bruno Haible  <bruno@clisp.org>
47101
47102         * modules/stdint (Files): Include m4/full-header-path.m4,
47103         m4/size_max.m4, m4/wchar_t.m4.
47104         (Makefile.am): Many more substitutions.
47105         * modules/stdint-tests: New file.
47106         * tests/test-stdint.c: New file.
47107
47108 2006-06-15  Bruno Haible  <bruno@clisp.org>
47109
47110         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
47111         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
47112         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
47113         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
47114         gl_CHECK_TYPE_SAME): New macros.
47115
47116 2006-06-15  Bruno Haible  <bruno@clisp.org>
47117
47118         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
47119
47120 2006-06-15  Bruno Haible  <bruno@clisp.org>
47121
47122         * lib/stdint_.h: Rewritten to be fully auto-configured.
47123         Fixes bug on HP-UX/IA64.
47124
47125 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
47126
47127         * lib/getdate.y (__attribute__): Don't define if already defined.
47128         Problem reported by Larry Jones.
47129         * lib/utimens.c (__attribute__): Likewise.
47130
47131 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
47132
47133         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
47134         reported by Andreas Schwab.
47135
47136 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47137             Bruno Haible  <bruno@clisp.org>
47138
47139         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
47140         check for the declaration of strnlen and a run test that exposes the
47141         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
47142         rpl_strndup.
47143
47144 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47145             Bruno Haible  <bruno@clisp.org>
47146
47147         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
47148
47149 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47150
47151         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
47152         compile test, for Tru64 4.0D.
47153
47154 2006-05-28  Karl Berry  <karl@gnu.org>
47155
47156         * config/srclist.txt (printf-args.c): lose sync.
47157
47158 2006-05-26  Martin Lambers  <marlam@marlam.de>
47159
47160         * lib/getpass.c: Updates the test for the native W32 API, and adds
47161         missing includes, thus fixing compilation warnings.
47162
47163 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47164
47165         * lib/exclude.c (exclude_fnmatch): New function.
47166         (excluded_file_name): Call exclude_fnmatch.
47167         * lib/exclude.h (excluded_file_name): New prototype
47168
47169 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
47170
47171         * lib/tempname.c (small_open, large_open): New macros.
47172         (__open, __open64) [!_LIBC]: Remove.
47173         (__gen_tempname): Use small_open and large_open instead of __open
47174         and __open64.  This fixes a portability bug on HP-UX 11.11i
47175         reported by Simon Wing-Tang in
47176         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
47177
47178 2006-05-24  Bruno Haible  <bruno@clisp.org>
47179
47180         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
47181         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
47182         Reported by Thorsten Maerz <torte@netztorte.de> via
47183         Aaron Stone <aaron@serendipity.cx>.
47184
47185 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
47186
47187         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
47188         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
47189         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
47190         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
47191         not really conditional on the cache.
47192         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
47193
47194 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
47195
47196         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
47197         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
47198         (my_usleep): Don't mishandle maximum value.
47199
47200 2006-05-19  Jim Meyering  <jim@meyering.net>
47201
47202         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
47203
47204 2006-05-17  Bruno Haible  <bruno@clisp.org>
47205
47206         Cygwin portability.
47207         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
47208
47209 2006-05-17  Bruno Haible  <bruno@clisp.org>
47210
47211         * lib/stdint_.h: Fix recognition of Cygwin.
47212
47213 2006-05-15  Bruno Haible  <bruno@clisp.org>
47214
47215         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
47216         on libtool patch by Ralf Wildenhues.
47217
47218 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
47219
47220         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
47221         test for C99 conformance; (bool) 0.5 is an integer constant
47222         expression, but (bool) -0.5 is not.  Problem reported by Fedor
47223         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
47224
47225 2006-05-11  Simon Josefsson  <jas@extundo.com>
47226
47227         * m4/xvasprintf.m4: Fix obvious typo.
47228
47229 2006-05-11  Jim Meyering  <jim@meyering.net>
47230
47231         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
47232         James Lemley.
47233
47234 2006-05-10  Simon Josefsson  <jas@extundo.com>
47235
47236         * lib/md4.c: Typo fix, update copyright years.
47237         (K1, K2): Don't use L because it turn computations into 64-bit on
47238         64-bit platforms.
47239
47240 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
47241
47242         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
47243         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
47244         unwanted sign propagation, e.g., on hosts with 64-bit int.
47245         There still are some problems with reeelly weird theoretical hosts
47246         (e.g., 33-bit int) but it's not worth worrying about now.
47247         * lib/sha1.c (rol): Likewise.
47248         (K1, K2, K3, K4): Remove unnecessary L suffix.
47249
47250 2006-05-10  Bruno Haible  <bruno@clisp.org>
47251
47252         * lib/des.c: Cast to avoid warnings.
47253
47254 2006-05-09  Bruno Haible  <bruno@clisp.org>
47255
47256         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
47257         (Depends-on): Depend also on xsize, stdarg.
47258         (configure.ac): Add gl_XVASPRINTF.
47259
47260 2006-05-09  Bruno Haible  <bruno@clisp.org>
47261
47262         * m4/xvasprintf.m4: New file.
47263
47264 2006-05-09  Bruno Haible  <bruno@clisp.org>
47265
47266         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
47267         (EOVERFLOW): Define fallback value.
47268         (xstrcat): New function.
47269         (xvasprintf): Recognize the special case of a string concatenation.
47270
47271 2006-05-08  Eric Blake  <ebb9@byu.net>
47272
47273         * gnulib-tool (func_version): Base copyright year on CVS date.
47274         (func_emit_copyright_notice): New function.
47275         (func_emit_lib_Makefile_am): Use it.
47276         (func_emit_tests_Makefile_am): Likewise.
47277         (func_import): Likewise.
47278
47279 2006-05-08  Bruno Haible  <bruno@clisp.org>
47280
47281         * modules/stdarg: New file.
47282         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
47283
47284 2006-05-08  Bruno Haible  <bruno@clisp.org>
47285
47286         * m4/stdarg.m4: New file, from GNU gettext.
47287
47288 2006-05-08  Bruno Haible  <bruno@clisp.org>
47289
47290         * config/srclist.txt (build-aux/config.rpath): different from latest
47291         release.
47292
47293 2006-05-08  Bruno Haible  <bruno@clisp.org>
47294
47295         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
47296
47297 2006-05-05  Jim Meyering  <jim@meyering.net>
47298
47299         * m4/warning.m4: New file, derived from bison's file by the same name.
47300
47301 2006-05-03  Bruno Haible  <bruno@clisp.org>
47302
47303         * lib/stdint_.h: Shorter URL.
47304         * lib/inttypes.h: Likewise.
47305
47306 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
47307
47308         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
47309
47310 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
47311
47312         * lib/verify.h: Document the internals better.  Most of this change
47313         was written by Bruno Haible.
47314
47315 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
47316
47317         * doc/verify.texi: New file, partly based on a proposal by
47318         Bruno Haible.
47319
47320 2006-05-02  Bruno Haible  <bruno@clisp.org>
47321
47322         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
47323         test from here...
47324         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
47325
47326 2006-04-29  Bruno Haible  <bruno@clisp.org>
47327
47328         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
47329         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
47330
47331 2006-04-29  Bruno Haible  <bruno@clisp.org>
47332
47333         * gnulib-tool: Make --update option actually work.
47334
47335 2006-04-29  Bruno Haible  <bruno@clisp.org>
47336
47337         * doc/gcd.texi: New file.
47338         * doc/gnulib.texi: Include it.
47339
47340 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
47341
47342         * lib/getdate.y (get_date): When adding relative date, start with the
47343         initial time, not with the result of the first mktime call.
47344
47345 2006-04-25  Bruno Haible  <bruno@clisp.org>
47346
47347         * gnulib-tool (func_import): Output the include directives in three
47348         blocks, sorted separately.
47349         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47350
47351 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
47352
47353         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
47354         to define main with arguments, for C++.  Reported by Eric Blake.
47355         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
47356         Prefer 'int main ()' to 'int main (void)', for C++.
47357         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
47358         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
47359         for 'main', for C99 and C++.
47360
47361 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
47362
47363         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
47364         Don't assume that exit status -1 is valid.
47365         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
47366         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
47367         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
47368         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
47369         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
47370         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
47371         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
47372         functions can be used without declaring them, or that you can
47373         exit with status -1.
47374         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
47375
47376 2006-04-24  Karl Berry  <karl@gnu.org>
47377
47378         * config/srclist.txt (longdouble.m4): sync lost.
47379
47380 2006-04-24  Eric Blake  <ebb9@byu.net>
47381
47382         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
47383
47384 2006-04-24  Bruno Haible  <bruno@clisp.org>
47385
47386         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
47387         poll() implementation in AIX.
47388         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47389
47390 2006-04-24  Bruno Haible  <bruno@clisp.org>
47391
47392         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
47393         assigned exactly once.
47394
47395 2006-04-23  Claudio Fontana  <claudio@gnu.org>
47396             Bruno Haible  <bruno@clisp.org>
47397
47398         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
47399         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
47400         for AM_CPPFLAGS.
47401
47402 2006-04-23  Bruno Haible  <bruno@clisp.org>
47403
47404         * modules/copy-file: Depend on unistd.
47405         * modules/execute: Likewise.
47406         * modules/fatal-signal: Likewise.
47407         * modules/findprog: Likewise.
47408         * modules/mkdtemp : Likewise.
47409         * modules/pipe: Likewise.
47410         * modules/wait-process: Likewise.
47411
47412 2006-04-23  Bruno Haible  <bruno@clisp.org>
47413
47414         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
47415         condition was already detected.
47416         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47417
47418 2006-04-23  Bruno Haible  <bruno@clisp.org>
47419
47420         * lib/copy-file.c: Include <unistd.h> unconditionally.
47421         * lib/execute.c: Likewise.
47422         * lib/fatal-signal.c: Likewise.
47423         * lib/findprog.c: Likewise.
47424         * lib/mkdtemp.c: Likewise.
47425         * lib/pipe.h: Likewise.
47426         * lib/pipe.c: Likewise.
47427         * lib/wait-process.h: Likewise.
47428
47429 2006-04-23  Bruno Haible  <bruno@clisp.org>
47430
47431         * gnulib-tool (func_usage): Fix --import description. Document
47432         --update.
47433         (func_import): Create temporary file in a temporary directory, if
47434         --dry-run is specified. Silence errors from 'grep' when there are no
47435         m4 files in $m4dir.
47436         (func_create_testdir): Silence errors from 'grep' when there are no
47437         m4 files in $m4dir.
47438         Reported by Karl Berry <karl@freefriends.org>.
47439
47440 2006-04-20  Bruno Haible  <bruno@clisp.org>
47441
47442         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
47443         one argument, so that the code will be portable to Autoconf 2.60.
47444         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
47445         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
47446         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
47447
47448 2006-04-19  Derek Price  <derek@ximbiot.com>
47449             Eric Blake  <ebb9@byu.net>
47450
47451         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
47452         rather than "/full/path.h".  Update comment to match.  Shorten &
47453         generalize m4_translit call via AS_TR_CPP.
47454
47455 2006-04-19  Derek Price  <derek@ximbiot.com>
47456             Eric Blake  <ebb9@byu.net>
47457
47458         * lib/inttypes.h: Correct grammar in comment.
47459
47460 2006-04-18  Derek Price  <derek@ximbiot.com>
47461             Paul Eggert  <eggert@cs.ucla.edu>
47462
47463         * modules/inttypes: New file.
47464         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
47465
47466 2006-04-18  Derek Price  <derek@ximbiot.com>
47467             Paul Eggert  <eggert@cs.ucla.edu>
47468
47469         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
47470         New files.
47471
47472 2006-04-18  Derek Price  <derek@ximbiot.com>
47473             Paul Eggert  <eggert@cs.ucla.edu>
47474
47475         * lib/inttypes.h: New file.
47476         * lib/strtoimax.c: Assume <inttypes.h>.
47477
47478 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
47479
47480         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
47481         isn't mounted.  Problem reported by Kir Kolyshkin.
47482
47483 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
47484
47485         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
47486         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
47487         Derek R. Price.
47488         * lib/regex.h (RE_DUP_MAX): Update comment to match current
47489         implementation.
47490
47491 2006-04-12  Eric Blake  <ebb9@byu.net>
47492
47493         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
47494         is now done automatically by the corresponding Autoconf macro.
47495
47496 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
47497
47498         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
47499         time_r.h.
47500
47501 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47502
47503         Merge regex changes from libc, removing some of our
47504         POSIX-conformance changes that were rejected and redoing them in a
47505         less-intrusive way.
47506
47507         * lib/regcomp.c (re_compile_internal, init_dfa):
47508         Length arg is now size_t, not Idx.  All uses changed.
47509         (peek_token): Forward decl now says internal_function.
47510         (__re_error_msgid, __re_error_msgid_idx):
47511         Now static rather than extern with attribute_hidden.
47512         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
47513         For some reason libc prefers K&R style defns for external functions.
47514         (regerror) [!defined _LIBC]: Likewise.
47515         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
47516         (seek_collating_symbol_entry, lookup_collation_sequence_value):
47517         (build_range_exp, build_collating_symbol):
47518         Use K&R-style defn.
47519         (re_compile_fastmap): Use '\0' to memset, not 0.
47520         (utf8_sb_map): Make the calculations more obvious.
47521         (init_dfa, parse_bracket_exp, build_charclass_op):
47522         Call calloc and cast result, as glibc does.
47523         (init_word_char, fetch_token, peek_token, peek_token_bracket):
47524         (build_range_exp, build_collating_symbol):
47525         Now internal functions.
47526
47527         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
47528
47529         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
47530         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
47531         Don't depend on VMS; depend on __VMS instead, for POSIX
47532         namespace cleanness.
47533         (regoff_t): Define to ssize_t, not long int.
47534
47535         Remove the REG_ macros named below.  Instead, make the old names
47536         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
47537         __USE_GNU_REGEX.
47538         (REG_BACKSLASH_ESCAPE_IN_LISTS):
47539         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
47540         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
47541         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
47542         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
47543         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
47544         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
47545         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
47546         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
47547         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
47548         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
47549         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
47550         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
47551         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
47552         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
47553         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
47554         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
47555         (REG_NREGS):
47556         Remove.  All uses replaced by the old RE_* names.
47557         (RE_BACKSLASH_ESCAPE_IN_LISTS):
47558         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
47559         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
47560         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
47561         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
47562         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
47563         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
47564         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
47565         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
47566         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
47567         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
47568         Don't bother having these macros be independent of each others'
47569         values, since they no longer exist in the POSIX name space.
47570
47571         Rename the following member names back to their old names,
47572         unless !__USE_GNU_REGEX.  All uses changed back.
47573         (buffer): Renamed from re_buffer.
47574         (allocated): Renamed from re_allocated.
47575         (used): Renamed from re_used.
47576         (syntax): Renamed from re_syntax.
47577         (fastmap): Renamed from re_fastmap.
47578         (translate): Renamed from re_translate.
47579         (can_be_null): Renamed from re_can_be_null.
47580         (regs_allocated): Renamed from re_regs_allocated.
47581         (fastmap_accurate): Renamed from re_fastmap_accurate.
47582         (no_sub): Renamed from re_no_sub.
47583         (not_bol): Renamed from re_not_bol.
47584         (not_eol): Renamed from re_not_eol.
47585         (newline_anchor): Renamed from re_newline_anchor.
47586         (num_regs): Renamed from rm_num_regs.
47587         (start): Renamed from rm_start.
47588         (end): Renamed from rm_end.
47589
47590         (free_state): Move up a bit.
47591
47592         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
47593         #define to be empty.
47594         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
47595         when that is what is intended.
47596         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
47597         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
47598         (MAX): New macro.
47599         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
47600         All uses changed back to re_malloc, etc.  It's now the caller's
47601         responsibility to check for overflow; all callers changed.
47602         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
47603         (re_x2nrealloc): Remove.
47604         (free_state): Remove decl.
47605
47606         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
47607         (re_set_registers, re_exec):
47608         Use K&R-style defn.
47609
47610         2006-01-31  Roland McGrath  <roland@redhat.com>
47611
47612         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
47613         Reported by Mike Frysinger <vapier@gentoo.org>.
47614
47615         2006-01-15  Andreas Jaeger  <aj@suse.de>
47616
47617         [BZ #1950]
47618         * lib/regex_internal.c (re_string_reconstruct): Adjust for
47619         build_wcs_upper_buffer change.
47620         (build_wcs_upper_buffer): Change return type.
47621
47622         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
47623
47624         * lib/regex_internal.h: Include <stdint.h> if available.
47625
47626         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
47627
47628         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
47629
47630         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
47631
47632         * lib/regcomp.c: Adjust for changed secondary hash function.
47633
47634         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
47635
47636         * lib/regex.h: Pretty printing.
47637         Clean up namespace a bit.
47638
47639         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
47640
47641         * lib/regexec.c (update_cur_sifted_state, check_arrival,
47642         check_arrival_add_next_nodes): Avoid using uninitialized variable.
47643
47644         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
47645                     Ulrich Drepper  <drepper@redhat.com>
47646
47647         [BZ #1302]
47648         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
47649         changed.
47650         (bitset_word_t): Renamed from bitset_word.  All uses changed.
47651
47652         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
47653
47654         [BZ #281]
47655         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
47656         * lib/regcomp.c: Remove unnecessary uses of
47657         unsigned RE_TRANSLATE_TYPE.
47658         * lib/regex_internal.h: Likewise.
47659         * lib/regex_internal.c: Likewise.
47660         * lib/regexec.c: Likewise.
47661         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
47662
47663         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
47664
47665         * lib/regexec.c (find_recover_state): Remove unnecessary
47666         initialization.
47667         (transit_state_bkref): Make DFA a const pointer.
47668         (get_subexp): Likewise.
47669         (check_arrival): Likewise.
47670         (update_cur_sifted_state): Likewise.
47671         (re_search_internal): Likewise.
47672         (prune_impossible_nodes): Likewise.
47673         (acquire_init_state_context): Likewise.
47674         (proceed_next_node): Likewise.
47675         (set_regs): Likewise.
47676         (free_fail_stack_return): Likewise.
47677         (check_arrival_expand_ecl): Mark DFA parameter as const.
47678         (check_arrival_expand_ecl_sub): Likewise.
47679         (check_subexp_limits): Likewise.
47680         (sub_epsilon_src_nodes):  Likewise.
47681         (add_epsilon_src_nodes):  Likewise.
47682         (merge_state_array): Likewise.
47683         (update_regs): Likewise.
47684         (build_trtable): Likewise.
47685         (sift_states_backward): Mark MCTX parameter as const.
47686         (build_sifted_states): Likewise.
47687         (update_cur_sifted_state): Likewise.
47688         (sift_states_mkref): Likewise.
47689         (check_arrival_expand_ecl): Mark eclosure as const.
47690         (check_dst_limits_calc_pos_1): Likewise.
47691         * lib/regex_internal.h (re_match_context_t): Make dfa a const
47692         pointer.
47693
47694         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
47695
47696         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
47697         (transit_state_sb): Likewise.
47698         (transit_state_mb): Likewise.
47699         (sift_states_iter_mb): Likewise.
47700         (check_arrival_add_next_nodes): Likewise.
47701         (check_node_accept_bytes): Change first parameter to pointer-to-const.
47702         [_LIBC] (re_search_2_stub): Use mempcpy.
47703
47704         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
47705         mbrtowc for very simple UTF-8 case.
47706
47707         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
47708         a pointer-to-const.
47709         (re_acquire_state_context): Likewise.
47710         * lib/regex_internal.h: Adjust prototypes.
47711
47712         * lib/regex.c: Prevent using C++ compilers.
47713
47714         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
47715         (re_acquire_state_context): Likewise.
47716
47717 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47718
47719         * modules/regex (Depends-on): Add ssize_t.
47720
47721 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47722
47723         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
47724         translation table.
47725
47726 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47727
47728         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
47729
47730 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
47731             Bruno Haible  <bruno@clisp.org>
47732
47733         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
47734         <sys/types.h> and <inttypes.h>.
47735
47736 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47737
47738         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
47739         `__error_t_defined', so argp.h will not typedef the former.
47740
47741 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
47742
47743         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
47744         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
47745         glibc names.  Even if glibc is changed to conform to POSIX, the
47746         traditional names will be available anyway, since regex depends on
47747         the extensions module.  Also, fix a longstanding typo in the
47748         implementation of Spencer ERE test #75 from grep 2.3.  Problems
47749         reported by Emanuele Giaquinta.  Also, change sense of cached
47750         variable, so that the message makes sense.
47751
47752 2006-03-24  Simon Josefsson  <jas@extundo.com>
47753
47754         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
47755         including some doc fixes.
47756         (base64_encode_alloc): Fix +1 bug on allocation failures.
47757
47758 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47759
47760         * lib/base64.c (base64_encode): Do not read past end of array with
47761         unsanitized input on systems with CHAR_BIT > 8.
47762
47763 2006-03-24  Eric Blake  <ebb9@byu.net>
47764
47765         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
47766
47767 2006-03-22  Karl Berry  <karl@gnu.org>
47768
47769         * config/srclist.txt (*setenv.[ch]): get from coreutils.
47770         * config/srclistvars.sh (COREUTILS): new var.
47771
47772 2006-03-17  Jim Meyering  <jim@meyering.net>
47773
47774         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
47775         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
47776
47777 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
47778
47779         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
47780         no longer needs it.  Instead, check that regoff_t is as least
47781         as wide as ptrdiff_t.
47782
47783         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
47784         so that our regex.h stays compatible with the installed regex.
47785         This is helpful for installers who configure --without-included-regex.
47786         Problem reported by Emanuele Giaquinta.
47787
47788 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
47789
47790         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
47791         Typedef to long int, not to off_, as POSIX will likely change
47792         in that direction.
47793
47794 2006-03-15  Eric Blake  <ebb9@byu.net>
47795
47796         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
47797
47798 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
47799
47800         * lib/argp-help.c (validate_uparams): Fix typo
47801         * lib/argp-parse.c (argp_default_options): Consistently begin help
47802         messages with a lowercase letter.
47803
47804 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
47805
47806         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
47807         overrun buffers and shouldn't be used (much as gets shouldn't be
47808         used).
47809         * lib/time_r.c (asctime_r, ctime_r): Likewise.
47810
47811 2006-03-08  Simon Josefsson  <jas@extundo.com>
47812
47813         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
47814         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47815
47816 2006-03-08  Simon Josefsson  <jas@extundo.com>
47817
47818         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
47819         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47820
47821 2006-03-08  Simon Josefsson  <jas@extundo.com>
47822
47823         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
47824         signal that configure disabled the device.
47825
47826 2006-03-08  Simon Josefsson  <jas@extundo.com>
47827
47828         * build-aux/maint.mk: Fix refresh-po, to handle no translated
47829         languages.
47830
47831 2006-03-07  Simon Josefsson  <jas@extundo.com>
47832
47833         * modules/getopt (Depends-on): Add unistd.
47834
47835         * modules/unistd: New file.
47836
47837 2006-03-07  Simon Josefsson  <jas@extundo.com>
47838
47839         * modules/gc-random: New file.
47840
47841 2006-03-07  Simon Josefsson  <jas@extundo.com>
47842
47843         * m4/unistd_h.m4: New file.
47844
47845 2006-03-07  Simon Josefsson  <jas@extundo.com>
47846
47847         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
47848         test to be side-effect free by storing the result in the cache
47849         variable gl_cv_lib_readline, and moving the assignment of
47850         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
47851         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47852
47853 2006-03-07  Simon Josefsson  <jas@extundo.com>
47854
47855         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
47856         error on missing devices (the functions will return an error).
47857
47858         * m4/gc.m4: Move random stuff to gc-random.m4
47859
47860 2006-03-07  Simon Josefsson  <jas@extundo.com>
47861
47862         * lib/unistd_.h: New file.
47863
47864 2006-03-07  Simon Josefsson  <jas@extundo.com>
47865
47866         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
47867
47868 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
47869
47870         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
47871         Problem reported by Juan Manuel Guerrero.
47872
47873 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
47874
47875         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
47876         the unistd module.
47877         * lib/getlogin_r.c: Likewise.
47878         * lib/getlogin_r.h: Likewise.
47879         * lib/glob.c: Likewise.
47880         * lib/pagealign_alloc.c: Likewise.
47881         * lib/unistd_.h: Remove; no longer needed.
47882
47883 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
47884
47885         * MODULES.html.sh (Support for systems lacking POSIX:2001):
47886         Add unistd.
47887         * modules/c-stack (Depends-on): Add unistd.
47888         * modules/getlogin_r: Likewise.
47889         * modules/glob: Likewise.
47890         * modules/pagealign_alloc: Likewise.
47891         * modules/unistd (Files): Remove lib/unistd_.h.
47892         (EXTRA_DIST): Remove.
47893         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
47894         need unistd_.h.
47895         (MOSTLYCLEANFILES): Remove unistd.h-t.
47896
47897 2006-03-03  Simon Josefsson  <jas@extundo.com>
47898
47899         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
47900
47901 2006-03-03  Simon Josefsson  <jas@extundo.com>
47902
47903         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
47904         libidn and bison.
47905
47906 2006-03-03  Simon Josefsson  <jas@extundo.com>
47907
47908         * build-aux/maint.mk: Add indent target.
47909
47910 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
47911
47912         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
47913         our replacement poll.h in any case, to avoid a differing
47914         declaration from a system header.  Seen on AIX.
47915
47916 2006-03-01  Simon Josefsson  <jas@extundo.com>
47917
47918         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
47919         <kasal@ucw.cz>.
47920
47921 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
47922
47923         * modules/gettime (Depends-on): Add extensions module.
47924         * modules/nanosleep (Depends-on): Likewise.
47925         * modules/settime (Depends-on): Likewise.
47926
47927 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
47928
47929         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
47930         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
47931         pedantically.
47932         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
47933         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
47934
47935         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
47936         not "==".  Reported by Ralf Wildenhues.
47937
47938 2006-03-01  Karl Berry  <karl@gnu.org>
47939
47940         * doc/Copyright/request-*: new files, synced from gnuorg.
47941
47942 2006-03-01  Karl Berry  <karl@gnu.org>
47943
47944         * config/srclist.txt (Copyright/*): new entries.
47945
47946 2006-02-28  Simon Josefsson  <jas@extundo.com>
47947
47948         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
47949
47950 2006-02-27  Simon Josefsson  <jas@extundo.com>
47951
47952         * lib/base64.h: Indent #define's.  From Jim Meyering
47953         <jim@meyering.net>.
47954
47955 2006-02-27  Jim Meyering  <jim@meyering.net>
47956
47957         Revert the change of 2006-02-24, so these files can continue
47958         to be sync'd from gettext.
47959         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
47960         of `config.h'.
47961
47962 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
47963
47964         * modules/intprops: New file.
47965         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
47966         Add intprops.
47967         * modules/getloadavg (Files): Remove lib/intprops.h.
47968         (Depends-on): Add intprops.
47969         * modules/human: Likewise.
47970         * modules/inttostr: Likewise.
47971         * modules/openat: Likewise.
47972         * modules/sig2str: Likewise.
47973         * modules/userspec: Likewise.
47974         * modules/utimecmp: Likewise.
47975         * modules/xnanosleep: Likewise.
47976         * modules/xstrtol: Likewise.
47977
47978 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
47979
47980         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
47981         * modules/lock-tests (TESTS): Use $(EXEEXT).
47982         * modules/tls-tests: Likewise.
47983         * modules/argp-tests: Likewise.
47984         (check_PROGRAMS): New var, replacing...
47985         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
47986
47987 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47988
47989         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
47990         `config.h'.
47991
47992 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
47993
47994         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
47995
47996 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47997
47998         Sync from coreutils.
47999         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
48000         gl_CHDIR_SAFER.
48001
48002 2006-02-22  Jim Meyering  <jim@meyering.net>
48003
48004         Sync from coreutils.
48005         * m4/chdir-safer.m4: New file.
48006
48007 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
48008
48009         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
48010         AT_FDCWD exceeds INT_MAX.
48011         * lib/openat.h (AT_FDCWD): Likewise.
48012
48013 2006-02-17  Eric Blake  <address@hidden>
48014
48015         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
48016
48017 2006-02-16  Simon Josefsson  <jas@extundo.com>
48018
48019         * modules/getaddrinfo (Depends-on): Add sys_socket.
48020
48021 2006-02-15  Simon Josefsson  <jas@extundo.com>
48022
48023         * build-aux/maint.mk: Add dsyntax-check rule.
48024
48025 2006-02-15  Eric Blake  <ebb9@byu.net>
48026
48027         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
48028         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
48029         'present but cannot compile' warnings on cygwin.
48030         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
48031         use ws2tcpip.h if sys/socket.h works.
48032         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
48033         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
48034
48035 2006-02-14  Simon Josefsson  <jas@extundo.com>
48036
48037         * modules/maintainer-makefile (Files): Rename.
48038
48039         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
48040         and (the local) Makefile.cfg to maint-cfg.mk.
48041
48042         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
48043         to the latter.
48044
48045         * modules/maintainer-makefile: New module.
48046
48047         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
48048         severaly stripped to make it possible to build it up from scratch
48049         with reliable tests.
48050
48051         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
48052         fixes to permit overriding the default actions when configure and
48053         makefile are not available.
48054
48055 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
48056
48057         Sync from coreutils.
48058         * modules/lstat (Depends-on): Don't depend on xalloc.
48059         (License): Change from GPL to LGPL, since this is now simply a
48060         replacement for a libc function.
48061
48062 2006-02-14  Jim Meyering  <jim@meyering.net>
48063
48064         Sync from coreutils.
48065
48066         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
48067         failure on deficient systems, and simplify gnulib lgpl dependencies.
48068         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
48069         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
48070
48071         * lib/xalloc-die.c: Remove unused definition of N_.
48072
48073 2006-02-14  Jim Meyering  <jim@meyering.net>
48074
48075         Sync from coreutils.
48076         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
48077         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
48078         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
48079         double-quote uses of that variable, to accommodate the rare case in
48080         which getmntent is available in none of the libraries checked.  This
48081         happens at least on FreeBSD 5.0.
48082
48083 2006-02-13  Simon Josefsson  <jas@extundo.com>
48084
48085         * gnulib-tool (Usage): Fix --import, from
48086         karl@freefriends.org (Karl Berry).
48087
48088 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
48089
48090         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
48091
48092 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
48093
48094         * lib/argp-namefrob.h: Restore changes accidentally lost during the
48095         "autoupdate" on 2005-12-12.
48096
48097 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
48098
48099         * modules/closeout (Depends-on): Remove atexit.
48100
48101 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
48102
48103         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
48104         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
48105
48106 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
48107
48108         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
48109         __EXTENSIONS__ if this causes compilation to fail.  Problem
48110         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
48111         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
48112
48113 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
48114
48115         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
48116         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
48117         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
48118         All uses changed.
48119
48120 2006-01-26  Simon Josefsson  <jas@extundo.com>
48121
48122         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
48123         prototype is visible on mingw32.
48124
48125         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
48126         for mingw32.
48127
48128         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
48129         mingw32).
48130
48131 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
48132
48133         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
48134         attempt to open for write; this always fails, at least on POSIX
48135         hosts.  This reinstates the 2006-01-09 change, which was
48136         inadvertently removed.
48137
48138 2006-01-26  Bruno Haible  <bruno@clisp.org>
48139
48140         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
48141         Reported by Paul Eggert.
48142
48143 2006-01-26  Bruno Haible  <bruno@clisp.org>
48144             Paul Eggert  <eggert@cs.ucla.edu>
48145
48146         * lib/stdbool_.h (_Bool)
48147         [(! (defined __cplusplus || defined __BEOS__)
48148           && !defined __GNUC__
48149           && !(defined __HP_cc || defined __xlc__
48150                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
48151                || defined __sgi))]:
48152         #define to signed char in these cases too; this simplifies
48153         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
48154         etc., separately) and makes it more conservative.
48155
48156 2006-01-25  Simon Josefsson  <jas@extundo.com>
48157
48158         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
48159         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
48160         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
48161
48162 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
48163
48164         * lib/argp-namefrob.h: Bugfix. Remove stray #
48165
48166 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
48167
48168         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
48169         so that we test the test.
48170         Check for yet another HP-UX cc bug involving *bool |= bool.
48171
48172 2006-01-25  Karl Berry  <karl@gnu.org>
48173
48174         * config/srclist.txt (vasnprintf.c): sync lost.
48175
48176 2006-01-25  Jim Meyering  <jim@meyering.net>
48177
48178         Sync from the stable (b5) branch of coreutils:
48179
48180         * lib/fts.c (fts_children): Don't let close() clobber errno from
48181         failed fchdir().
48182
48183         * lib/fts.c (fts_stat): When following a symlink-to-directory,
48184         don't necessarily interpret stat-fails+lstat-succeeds as indicating
48185         a dangling symlink.  That can also happen at least for ELOOP.
48186         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
48187         FYI, this bug predates the inclusion of fts.c in coreutils.
48188
48189         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
48190         in their own block, so pre-c99 compilers don't object.
48191
48192         Avoid the double-free (first in fts_read, second in fts_close) that
48193         would occur when an `active' directory is made inaccessible (e.g.,
48194         via chmod a-x) during a traversal.
48195         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
48196         before returning.  Reproduce this failure by
48197         mkdir -p a/b; cd a; chmod a-x . b
48198         Reported by Stavros Passas.
48199
48200 2006-01-25  Jim Meyering  <jim@meyering.net>
48201
48202         * lib/fileblocks.c: Remove more useless parentheses.
48203         * lib/readutmp.h: Likewise.
48204
48205 2006-01-25  Bruno Haible  <bruno@clisp.org>
48206
48207         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
48208         warnings.
48209         Reported by Paul Eggert.
48210
48211 2006-01-25  Bruno Haible  <bruno@clisp.org>
48212
48213         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
48214         rid of a trap command. For Solaris sh.
48215         Reported by Mark D. Baushke <mdb@gnu.org>.
48216
48217 2006-01-24  Simon Josefsson  <jas@extundo.com>
48218
48219         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
48220         Bruno.
48221
48222 2006-01-24  Karl Berry  <karl@gnu.org>
48223
48224         * config/srclist.txt (argp-namefrob.h): sync lost.
48225
48226 2006-01-24  Jim Meyering  <jim@meyering.net>
48227
48228         * modules/openat (Files): Add lib/intprops.h.
48229         From Mark D. Baushke.
48230
48231 2006-01-24  Jim Meyering  <jim@meyering.net>
48232
48233         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
48234         Reported by Mark D. Baushke.
48235
48236 2006-01-24  Jim Meyering  <jim@meyering.net>
48237
48238         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
48239
48240 2006-01-24  Bruno Haible  <bruno@clisp.org>
48241
48242         * modules/strnlen (Maintainer): Change from glibc to all.
48243
48244 2006-01-24  Bruno Haible  <bruno@clisp.org>
48245
48246         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
48247         Patch by Paul Eggert.
48248
48249 2006-01-24  Bruno Haible  <bruno@clisp.org>
48250
48251         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
48252         already has it.
48253         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
48254         2005-11-26.
48255
48256         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
48257         'signed char' to avoid problems with the built-in _Bool type.
48258         Reported by Paul Eggert on 2005-11-26.
48259
48260 2006-01-24  Bruno Haible  <bruno@clisp.org>
48261
48262         * gnulib-tool (func_import): Avoid constructing complicated sed
48263         expressions inside backquote.
48264         Report and solution by Mark D. Baushke <mdb@gnu.org>.
48265
48266 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
48267
48268         These changes imported from libc.
48269         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
48270         test and two separate function calls.
48271         * lib/strndup.c (__strndup): Add libc_hidden_def.
48272
48273 2006-01-23  Simon Josefsson  <jas@extundo.com>
48274
48275         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
48276         Remove the test_*_SOURCES variable: automake infers it by default.
48277         * modules/tls-tests: Likewise.
48278
48279 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48280
48281         Work around porting bugs reported by Dieter in
48282         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
48283         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
48284         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
48285         Include "getopt.h" first, to check interface.
48286         (getenv): Declare only if defined HAVE_DECL_GETENV &&
48287         !HAVE_DECL_GETENV.
48288         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
48289         (__strndup): Revert to K&R-style function dfns, the glibc style.
48290         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
48291         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
48292         Include strnlen.h first, to get prototype properly.
48293         (strnlen): Renamed from __strnlen.
48294         Remove weak alias.
48295
48296 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48297
48298         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
48299
48300 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48301
48302         * config/srclist.txt: Adjust to reflect glibc reorganization.
48303         This affects only comments.
48304
48305 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
48306
48307          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
48308          Reported by Bruce Korb <bkorb@gnu.org>.
48309
48310 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
48311
48312         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
48313         to pacify gcc -Wswitch-default.
48314
48315 2006-01-22  Bruno Haible  <bruno@clisp.org>
48316
48317         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
48318         temporary buffer for sprintf, take into account the precision also
48319         for 'd', 'i', 'u', 'o', 'x', 'X'.
48320
48321 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
48322
48323         * modules/argp-tests: New module
48324         * tests/test-argp.c: New file
48325         * tests/test-argp-2.sh: New file
48326
48327 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
48328
48329         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
48330         (__argp_base_name): Removed
48331         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
48332         typo.
48333         (__argp_base_name): Provide macro definition or extern declaration
48334         depending on the configuration
48335
48336 2006-01-20  Simon Josefsson  <jas@extundo.com>
48337
48338         * modules/inet_ntop (Depends-on): Depend on sys_socket.
48339
48340 2006-01-20  Simon Josefsson  <jas@extundo.com>
48341
48342         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
48343
48344 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
48345
48346         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
48347         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
48348         Suggested by Bruno Haible.
48349
48350 2006-01-20  Karl Berry  <karl@gnu.org>
48351
48352         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
48353         until changes propagate, I guess.
48354
48355 2006-01-19  Simon Josefsson  <jas@extundo.com>
48356
48357         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
48358
48359 2006-01-19  Simon Josefsson  <jas@extundo.com>
48360
48361         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
48362
48363 2006-01-19  Simon Josefsson  <jas@extundo.com>
48364
48365         * gnulib-tool: Set check_PROGRAMS.
48366
48367         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
48368         modules/des-tests, modules/gc-arcfour-tests,
48369         modules/gc-arctwo-tests, modules/gc-des-tests,
48370         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
48371         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
48372         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
48373         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
48374         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
48375         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
48376         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
48377         test_*_SOURCES.
48378
48379 2006-01-18  Simon Josefsson  <jas@extundo.com>
48380
48381         * modules/socklen (Depends-on): Depend on sys_socket.
48382
48383 2006-01-18  Simon Josefsson  <jas@extundo.com>
48384
48385         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
48386         modules/des-tests, modules/gc-arcfour-tests,
48387         modules/gc-arctwo-tests, modules/gc-des-tests,
48388         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
48389         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
48390         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
48391         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
48392         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
48393         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
48394         $(EXEEXT) to automake TESTS variable, for mingw32.
48395
48396 2006-01-17  Simon Josefsson  <jas@extundo.com>
48397
48398         * modules/socklen (Include): Need sys/socket.h.
48399
48400 2006-01-17  Bruno Haible  <bruno@clisp.org>
48401
48402         * modules/ssize_t (Include): Add <sys/types.h>.
48403
48404 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
48405
48406         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
48407         it's not portable and it doesn't work with cross-compiles.
48408         Problem reported by Bruno Haible.  Fix missing-$ typo in
48409         'test "gl_cv_ignore_unused_libraries" ...' that prevented
48410         -zignore from being used with Sun's C compiler.
48411
48412 2006-01-12  Simon Josefsson  <jas@extundo.com>
48413
48414         * lib/base64.c: Fix warning, reported by Bruno Haible
48415         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
48416
48417 2006-01-12  Bruno Haible  <bruno@clisp.org>
48418
48419         * modules/ldd: New file.
48420         * build-aux/ldd.sh.in: New file.
48421         * MODULES.html.sh (Support for building libraries and executables): Add
48422         ldd.
48423
48424 2006-01-12  Bruno Haible  <bruno@clisp.org>
48425
48426         * m4/ldd.m4: New file.
48427
48428 2006-01-12  Bruno Haible  <bruno@clisp.org>
48429
48430         * gnulib-tool (func_import, func_create_testdir): Don't go into an
48431         endless loop while replacing $auxdir with build-aux.
48432
48433 2006-01-11  Simon Josefsson  <jas@extundo.com>
48434
48435         * lib/stdint_.h (SIZE_MAX): Add missing (.
48436
48437 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
48438
48439         Sync from coreutils.
48440         * lib/md5.c: Fix commentary typos.
48441         (alignof, UNALIGNED_P): No need for a GCC-specific version.
48442         * lib/md5.h (__attribute__): Remove; unused.
48443         * lib/sha1.c: Fix commentary to match md5 better.
48444         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
48445         so that we don't need to worry about alignment.  All uses changed.
48446         This merges the 2005-10-28 md5 change into sha1.
48447
48448 2006-01-11  Jim Meyering  <jim@meyering.net>
48449
48450         Sync from coreutils.
48451         * lib/md5.c (OP): Fix spacing.
48452
48453 2006-01-11  Bruno Haible  <bruno@clisp.org>
48454
48455         Ensure automatic ordering between gl_LOCK and gl_ARGP.
48456         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
48457         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
48458
48459 2006-01-11  Bruno Haible  <bruno@clisp.org>
48460
48461         Ensure automatic ordering between gl_LOCK and gl_ARGP.
48462         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
48463         the "early" section as well.
48464
48465 2006-01-11  Bruno Haible  <bruno@clisp.org>
48466
48467         Avoid "ar: no archive members specified" error on MacOS X.
48468         * gnulib-tool (func_modules_add_dummy): New function.
48469         (func_import, func_create_testdir): Invoke it.
48470
48471 2006-01-11  Bruno Haible  <bruno@clisp.org>
48472
48473         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
48474         with $auxdir in AC_CONFIG_FILES statements.
48475
48476 2006-01-11  Bruno Haible  <bruno@clisp.org>
48477
48478         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48479         Initialize also noinst_HEADERS to empty.
48480
48481 2006-01-11  Bruno Haible  <bruno@clisp.org>
48482
48483         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
48484         variables.
48485         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
48486         autoreconf.
48487
48488 2006-01-11  Bruno Haible  <bruno@clisp.org>
48489
48490         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
48491         overridable by the user.
48492         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48493
48494 2006-01-10  Simon Josefsson  <jas@extundo.com>
48495
48496         * modules/sys_socket: New file.
48497
48498 2006-01-10  Simon Josefsson  <jas@extundo.com>
48499
48500         * m4/sys_socket_h.m4: New file.
48501
48502 2006-01-10  Simon Josefsson  <jas@extundo.com>
48503
48504         * lib/socket_.h: New file.
48505
48506 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
48507
48508         * modules/readutmp (Maintainer): Add myself.
48509
48510 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
48511
48512         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
48513         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
48514         People who are still concerned with buggy memcmp implementations
48515         can invoke gl_FUNC_MEMCMP themselves.
48516
48517 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
48518
48519         * lib/regex_internal.h (BITSET_WORD_BITS):
48520         Work around a bug in 64-bit PGC (before version 6.1-2), where the
48521         preprocessor mishandles large unsigned values as if they were signed.
48522         Problem reported by Claudio Fontana in
48523         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
48524
48525 2006-01-10  Jim Meyering  <jim@meyering.net>
48526
48527         Avoid the double-free (first in fts_read, second in fts_close) that
48528         would occur when an `active' directory is made inaccessible (e.g.,
48529         via chmod a-x) during a traversal.
48530         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
48531         before returning.  Reproduce this failure by
48532         mkdir -p a/b; cd a; chmod a-x . b
48533         Reported by Stavros Passas.
48534
48535         Sync from coreutils.
48536         * lib/sha1.c: Tweak grammar in a comment.
48537
48538 2006-01-10  Jim Meyering  <jim@meyering.net>
48539
48540         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
48541         Patch by Joerg Sonnenberger.
48542
48543 2006-01-10  Bruno Haible  <bruno@clisp.org>
48544
48545         * modules/readutmp: Depend on module free.
48546         * modules/strtok_r: Depend on module restrict.
48547
48548 2006-01-10  Bruno Haible  <bruno@clisp.org>
48549
48550         * modules/gettext (configure.ac): Add an invocation of
48551         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
48552
48553 2006-01-10  Bruno Haible  <bruno@clisp.org>
48554
48555         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
48556         Reported by Werner Lemberg <wl@gnu.org>.
48557
48558 2006-01-10  Bruno Haible  <bruno@clisp.org>
48559
48560         * lib/localcharset.c: Update from GNU gettext.
48561
48562 2006-01-10  Bruno Haible  <bruno@clisp.org>
48563
48564         * lib/argp.h (__const): Remove macro. Use const instead.
48565         * lib/argp-fmtstream.h (__const): Likewise.
48566         * lib/glob_.h (__const): Remove macro.
48567         * lib/glob-libc.h: Use const instead of __const.
48568
48569 2006-01-10  Bruno Haible  <bruno@clisp.org>
48570
48571         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
48572         variable.
48573         Needed to avoid an automake error regarding the 'gettext' module.
48574
48575 2006-01-09  Simon Josefsson  <jas@extundo.com>
48576
48577         * modules/inet_ntop (Depends-on): Add restrict.
48578
48579 2006-01-09  Simon Josefsson  <jas@extundo.com>
48580
48581         * modules/gc-rijndael-tests (License): Put under LGPL.
48582
48583         * modules/gc-des-tests (License): Likewise.
48584
48585         * modules/gc-arcfour-tests (License): Likewise.
48586
48587         * modules/gc-arctwo-tests (License): Likewise.
48588
48589         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
48590
48591         * modules/gc-hmac-sha1-tests (Files): Likewise.
48592
48593         * modules/gc-hmac-md5-tests (License): Likewise.
48594
48595         * modules/gc-sha1-tests (License): Likewise.
48596
48597         * modules/gc-md5-tests (License): Likewise.
48598
48599         * modules/gc-md4-tests (License): Likewise.
48600
48601         * modules/gc-md2-tests (License): Likewise.
48602
48603         * modules/gc-tests (License): Likewise.
48604
48605         * modules/des-tests (License): Likewise.
48606
48607         * modules/md4-tests (License): Likewise.
48608
48609         * modules/md2-tests (License): Likewise.
48610
48611 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48612
48613         Sync from coreutils:
48614
48615         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
48616         * modules/lib-ignore: New file.
48617         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
48618         chdir-safer.m4, lchmod.m4.
48619         * modules/openat: Add mkdirat.c, openat-priv.h.
48620
48621 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48622
48623         Sync from coreutils.
48624         * m4/lib-ignore.m4: New file.
48625         * m4/lchmod.m4: New file.
48626
48627 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48628
48629         Sync from coreutils.
48630         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
48631         for write access: POSIX says that must fail.
48632         * lib/fts.c (diropen): Likewise.
48633         * lib/save-cwd.c (save_cwd): Likewise.
48634         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
48635         well, for minor improvements on hosts that lack O_DIRECTORY.
48636         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
48637         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
48638         Fall back on chown if open failed with EACCES.
48639
48640         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
48641         Report an error at compile-time if only a 1-second nominal clock
48642         resolution is found.
48643
48644         * lib/lchmod.h: New file.
48645         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
48646         (make_dir_parents): Use lchown rather than chown, and
48647         lchmod rather than chmod.
48648
48649         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
48650         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
48651         "proc" reported by n0dalus.
48652
48653         * lib/mountlist.c: Include <limits.h>.
48654         (dev_from_mount_options)
48655         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
48656         New function.  It no longer assumes "dev=" has the System V meaning
48657         on Linux (since it doesn't).  It also parses "dev=" more carefully.
48658         (read_file_system_list)
48659         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
48660         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
48661         dev= in that case.
48662
48663         * lib/posixtm.h (PDS_PRE_2000): New macro.
48664         * lib/posixtm.c (year): Arg is now syntax_bits rather than
48665         allow_century.  All usages changed.  Reject dates outside the range
48666         1969-1999 if PDS_PRE_2000 is used.
48667
48668 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48669
48670         Sync from coreutils.
48671         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
48672         (Time of day items): Mention the possibility of leap seconds.
48673         Problem reported by Dr. David Alan Gilbert.
48674
48675 2006-01-09  Jim Meyering  <jim@meyering.net>
48676
48677         Sync from coreutils.
48678
48679         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
48680
48681         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
48682
48683         * lib/modechange.c (mode_compile): Reject an invalid mode string
48684         that starts with an octal digit.  From Andreas Gruenbacher.
48685
48686         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
48687         and dup to open_safer and dup_safer, respectively.
48688         (openat_permissive): Fix typo in comment.
48689
48690         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
48691         "gettext.h"; either no longer needed or are guaranteed by openat.h.
48692         (_): Remove; no longer needed.
48693         (openat): Renamed from rpl_openat; no need for rpl_openat
48694         since openat.h renames openat for us.
48695         Replace most of the body with a call to openat_permissive,
48696         to avoid duplicate code.
48697         Port to (probably hypothetical) environments were mode_t is
48698         wider than int.
48699         (openat_permissive): Require mode arg, so that we can check
48700         types better.  Put it just after flags.  Change cwd failure
48701         indicator from pointer-to-bool to pointer-to-errno-value.
48702         All callers changed.
48703         Invoke openat_save_fail and/or openat_restore_fail if
48704         cwd_errno is null, so that openat can call us.
48705         (openat_permissive, fdopendir, fstatat, unlinkat):
48706         Simplify errno handling to avoid some duplicate code,
48707         as it's OK to set errno on success.
48708         * lib/openat.h: Revamp code so that function macros depend on
48709         __OPENAT_PREFIX only, not also on AT_FDCWD.
48710         (openat_ro): Remove.  Caller changed to use openat_permissive.
48711         (openat_permissive): Now a macro, if not a function.
48712         (openat_restore_fail, openat_save_fail): Now always functions,
48713         since mkdirat needs them even if __OPENAT_PREFIX is defined.
48714
48715         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
48716         and openat.c.
48717         * lib/mkdirat.c: Include openat-priv.h.
48718         Remove definitions of macros defined therein.
48719         * lib/openat.c: Likewise.
48720
48721         * lib/mkdirat.c (mkdirat): New file and function.
48722         * lib/openat.h (mkdirat): Declare.
48723
48724         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
48725
48726         * lib/openat.h (openat_permissive): Declare.
48727         (openat_ro): Define.
48728
48729         * lib/openat.c (EXPECTED_ERRNO): New macro.
48730         (openat_permissive): New function -- used in remove.c rewrite.
48731         (all functions): Set errno just before returning, only if there
48732         was an actual failure.
48733         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
48734
48735         Emulate openat-family functions using Linux's procfs, if possible.
48736         Idea and some code based on Ulrich Drepper's glibc changes.
48737
48738         * lib/openat.c: (BUILD_PROC_NAME): New macro.
48739         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
48740         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
48741         before falling back on save_cwd and restore_cwd.
48742         (fdopendir, fstatat, unlinkat): Likewise.
48743
48744         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
48745         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
48746
48747         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
48748         as second argument to va_arg.  Otherwise, some versions of gcc
48749         warn that `if this code is reached, the program will abort'.
48750
48751 2006-01-09  Jim Meyering  <jim@meyering.net>
48752
48753         Sync from coreutils.
48754         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
48755         Require openat-priv.h.
48756
48757 2006-01-09  Bruno Haible  <bruno@clisp.org>
48758
48759         * modules/strnlen (Include): Use strnlen.h.
48760
48761 2006-01-09  Bruno Haible  <bruno@clisp.org>
48762
48763         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
48764
48765 2006-01-09  Bruno Haible  <bruno@clisp.org>
48766
48767         * lib/sysexit_.h (EX_OK): New macro.
48768         Suggested by Martin Lambers <marlam@marlam.de>.
48769
48770 2006-01-09  Bruno Haible  <bruno@clisp.org>
48771
48772         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
48773         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
48774
48775 2006-01-09  Bruno Haible  <bruno@clisp.org>
48776
48777         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
48778         numbers.
48779
48780 2006-01-09  Bruno Haible  <bruno@clisp.org>
48781
48782         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
48783         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
48784         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
48785         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
48786
48787 2006-01-09  Bruno Haible  <bruno@clisp.org>
48788
48789         * build-aux/javacomp.sh.in: New file, moved from lib/.
48790         * modules/javacomp-script (Files): Update.
48791         (configure.ac): Add AC_CONFIG_FILES invocation.
48792         (EXTRA_DIST): Remove variable.
48793
48794         * build-aux/javaexec.sh.in: New file, moved from lib/.
48795         * modules/javaexec (Files): Update.
48796         (configure.ac): Add AC_CONFIG_FILES invocation.
48797         (EXTRA_DIST): Remove javaexec.sh.in.
48798
48799         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
48800         * modules/csharpcomp-script (Files): Update.
48801         (configure.ac): Add AC_CONFIG_FILES invocation.
48802         (EXTRA_DIST): Remove variable.
48803
48804         * build-aux/csharpexec.sh.in: New file, moved from lib/.
48805         * modules/csharpexec (Files): Update.
48806         (configure.ac): Add AC_CONFIG_FILES invocation.
48807         (EXTRA_DIST): Remove csharpexec.sh.in.
48808
48809 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
48810
48811         Sync from coreutils.
48812
48813         Add POSIX ACL support
48814         * lib/acl.h (copy_acl, set_acl): Add declarations.
48815         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
48816         systems other than Linux.
48817         (chmod_or_fchmod): New function: use fchmod when possible,
48818         and chmod otherwise.
48819         (file_has_acl): Add a POSIX ACL implementation, with a
48820         Linux-specific subcase.
48821         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
48822         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
48823         acls are unsupported.
48824         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
48825         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
48826         are unsupported.
48827
48828 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
48829
48830         Sync from coreutils.
48831         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
48832
48833 2006-01-07  Bruno Haible  <bruno@clisp.org>
48834
48835         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
48836         gl_EARLY.
48837
48838 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
48839
48840         * lib/strftime.c (tzname): Don't declare if it is already #defined.
48841         Problem reported for Mingw by Mark Junker.
48842
48843 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
48844
48845         * README: Gnulib normally doesn't generate a tarball.
48846
48847 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
48848
48849         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
48850         long int, not int, for nanosecond counts, so that people who are
48851         used to POSIX struct timespec won't be surprised.  Reported by Jim
48852         Meyering.
48853
48854 2005-12-28  Bruno Haible  <bruno@clisp.org>
48855
48856         * build-aux/config.rpath: Update from GNU gettext.
48857
48858 2005-12-16  Jim Meyering  <jim@meyering.net>
48859
48860         * modules/fprintftime: New module.
48861         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
48862
48863 2005-12-16  Jim Meyering  <jim@meyering.net>
48864
48865         * m4/fprintftime.m4: New file.
48866
48867 2005-12-16  Jim Meyering  <jim@meyering.net>
48868
48869         * lib/fprintftime.c, lib/fprintftime.h: New files.
48870
48871 2005-12-15  Simon Josefsson  <jas@extundo.com>
48872
48873         * modules/socklen (configure.ac): Fix M4 macro name, to align with
48874         new m4/socklen.m4.
48875
48876 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48877
48878         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
48879         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
48880
48881 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48882
48883         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
48884         * lib/argp-help.c (fill_in_uparams): Check if the constructed
48885         struct uparams is valid. Fall back to the default values if it is
48886         not.
48887
48888 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48889
48890         * modules/argp (Files): Add argp-pin.c
48891         (Depends-on): dirname
48892         (lib_SOURCES): Add argp-pin.c
48893
48894 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48895
48896         * m4/argp.m4:  Check if program_invocation_name and
48897         program_invocation_short_name are declared and define appropriate
48898         macros if they are not.
48899
48900 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48901
48902         * lib/argp-help.c (__argp_base_name): New function
48903         (__argp_short_program_name): Rewrite using __argp_base_name
48904         * lib/argp-namefrob.h: Define program_invocation_name and
48905         program_invocation_short_name if requested
48906         (__argp_base_name): Add prototype
48907         * lib/argp-parse.c (argp_def): Use gettext wrappers
48908         (argp_default_parser): Use __argp_base_name
48909         * lib/argp-pin.c: New file. Defines program_invocation_name and
48910         program_invocation_short_name on systems that lack them.
48911
48912 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
48913
48914         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
48915         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
48916         porting problem reported by Georg Schwarz in
48917         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
48918
48919 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
48920
48921         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
48922         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
48923         porting problem reported by Georg Schwarz in
48924         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
48925
48926 2005-12-05  Bruno Haible  <bruno@clisp.org>
48927
48928         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
48929         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
48930         Reported by Mark Junker <mjscod@gmx.de>.
48931
48932 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
48933
48934         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
48935         Use implementation from Albert Chin, with some
48936         comments/corrections by Stepan Kasal and myself.
48937
48938 2005-12-02  Bruno Haible  <bruno@clisp.org>
48939
48940         * gnulib-tool (func_import): Accept GPLed build tool modules when
48941         --lgpl is given.
48942         * modules/csharpcomp-script: New file.
48943         * modules/csharpcomp: Depend on it.
48944         * modules/javacomp-script: New file.
48945         * modules/javacomp: Depend on it.
48946         Suggested by Simon Josefsson.
48947
48948 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
48949
48950         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
48951         statement, to work around an HP-UX 10.20 compiler bug reported by
48952         Peter O'Gorman.
48953
48954 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
48955
48956         * modules/savedir (Depends-on): Add openat.
48957
48958 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
48959
48960         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
48961         (uintmax_t) [defined uintmax_t]: Do not declare.
48962         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
48963         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
48964         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
48965         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
48966         sake of portability to weird hosts that C allows (though we don't
48967         know of any practical examples).
48968
48969         * lib/savedir.h (fdsavedir): New decl.
48970         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
48971         contains most of the former guts of savedir.
48972         (savedir): Use savedirstream.
48973         Include "openat.h".
48974
48975 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
48976
48977         * modules/obstack (Files): Add m4/ulonglong.m4.
48978         Problem reported by Davide Angelocola.
48979
48980 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
48981
48982         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
48983         coreutils no longer futzes with rounding modes.
48984
48985 2005-11-14  Jim Meyering  <jim@meyering.net>
48986
48987         * lib/mkstemp-safer.c: Include <config.h>, required for possible
48988         replacement of mkstemp.
48989
48990 2005-11-10  Simon Josefsson  <jas@extundo.com>
48991
48992         * lib/readline.c: Remove EOL.
48993
48994 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
48995
48996         * modules/gethrxtime (Depends-on): Add gettime.
48997
48998 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
48999
49000         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
49001         or gettimeofday; no longer needed.
49002
49003 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
49004
49005         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
49006         time business.
49007         (gethrxtime) [! (HAVE_NANOUPTIME
49008         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
49009         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
49010         our own approximation.
49011
49012 2005-11-08  Eric Blake  <ebb9@byu.net>
49013
49014         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
49015
49016 2005-11-08  Eric Blake  <ebb9@byu.net>
49017
49018         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
49019
49020 2005-11-04  Bruno Haible  <bruno@clisp.org>
49021
49022         * gnulib-tool: Implement --update mode.
49023
49024 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
49025
49026         Fix porting problem reported by Theodoros V. Kalamatianos.
49027         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
49028         Don't assume that futimes failing means we must fail.
49029
49030 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
49031
49032         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
49033         variables to suggest the intended function of the PATH_MAX check.
49034
49035 2005-10-30  Kean Johnston  <jkj@sco.com>
49036
49037         Trivial changes to support SCO systems.
49038         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
49039         as PATH_MAX.
49040         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
49041         where __ptr is null when no I/O is pending.
49042
49043 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
49044
49045         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
49046         leave errno alone.  Problem reported by Dmitry V. Levin.
49047
49048 2005-10-28  Simon Josefsson  <jas@extundo.com>
49049
49050         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
49051         Test more.
49052
49053         * tests/test-gc-md2.c, tests/test-md2.c: New files.
49054
49055         * modules/md2, modules/md2-tests: New files.
49056
49057 2005-10-28  Simon Josefsson  <jas@extundo.com>
49058
49059         * m4/inet_ntop.m4: More tests.
49060
49061         * m4/gc-md2.m4, md2.m4: New file.
49062
49063 2005-10-28  Simon Josefsson  <jas@extundo.com>
49064
49065         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
49066         "restrict" keywords, as per POSIX.  Protect the function
49067         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
49068         Don't use K&R prototypes.  Check the sprintf return values.
49069         Re-define EAFNOSUPPORT if not present.  Indent.
49070
49071         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
49072         suggested by Bruno Haible <bruno@clisp.org>.
49073
49074         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
49075
49076         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
49077
49078         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
49079         libgcrypt).
49080
49081         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
49082
49083         * lib/md2.h, lib/md2.c: New files.
49084
49085 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
49086
49087         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
49088         errno alone.  Problem reported by Frederic Jolliton.
49089
49090 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
49091
49092         * modules/verify (License): Change from GPL to LGPL.  This is a
49093         tiny module and there are apparently near-equivalents that are
49094         under the BSD license.
49095
49096 2005-10-24  Simon Josefsson  <jas@extundo.com>
49097
49098         * modules/sha1: Relicense to LGPL.
49099
49100 2005-10-24  Simon Josefsson  <jas@extundo.com>
49101
49102         * lib/md4.h: Shrink buffer size, now that we changed the type.
49103
49104 2005-10-23  Simon Josefsson  <jas@extundo.com>
49105
49106         * gnulib-tool (func_import): Fix --tests-base.
49107
49108 2005-10-22  Simon Josefsson  <jas@extundo.com>
49109
49110         * modules/arcfour (Depends-on): Need stdint.
49111
49112 2005-10-22  Simon Josefsson  <jas@extundo.com>
49113
49114         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
49115         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
49116
49117 2005-10-22  Simon Josefsson  <jas@extundo.com>
49118
49119         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
49120         suggested by Bruno Haible <bruno@clisp.org>.
49121
49122 2005-10-22  Simon Josefsson  <jas@extundo.com>
49123
49124         * lib/crc.h: Include stddef.h, for size_t.
49125
49126 2005-10-22  Simon Josefsson  <jas@extundo.com>
49127
49128         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
49129         arcfour_context struct (simplify test vector testing in GNU
49130         Shishi).
49131
49132 2005-10-21  Simon Josefsson  <jas@extundo.com>
49133
49134         * modules/des, modules/des-tests: New files.
49135
49136         * modules/gc-des, modules/gc-des-tests: New files.
49137
49138         * tests/test-des.c, tests/test-gc-des.c: New file.
49139
49140 2005-10-21  Simon Josefsson  <jas@extundo.com>
49141
49142         * modules/arctwo, modules/arctwo-tests: New files.
49143
49144         * tests/test-arctwo.c: New file.
49145
49146         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
49147
49148         * tests/test-gc-arctwo.c: New file.
49149
49150 2005-10-21  Simon Josefsson  <jas@extundo.com>
49151
49152         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
49153         Bruno Haible <bruno@clisp.org>.
49154
49155         * m4/gc-des.m4: New file.
49156
49157 2005-10-21  Simon Josefsson  <jas@extundo.com>
49158
49159         * m4/arctwo.m4: New file.
49160
49161         * m4/gc-arctwo.m4: New file.
49162
49163 2005-10-21  Simon Josefsson  <jas@extundo.com>
49164
49165         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
49166         block.
49167
49168 2005-10-21  Simon Josefsson  <jas@extundo.com>
49169
49170         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
49171         <bruno@clisp.org>.
49172
49173         * lib/hmac-sha1.c (hmac_sha1): Likewise.
49174
49175         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
49176         Bruno Haible <bruno@clisp.org>.
49177
49178         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
49179         <bruno@clisp.org>.
49180
49181 2005-10-21  Simon Josefsson  <jas@extundo.com>
49182
49183         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
49184
49185 2005-10-21  Simon Josefsson  <jas@extundo.com>
49186
49187         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
49188
49189 2005-10-21  Simon Josefsson  <jas@extundo.com>
49190
49191         * lib/des.h, lib/des.c: New files.
49192
49193         * lib/gc-gnulib.c: Support DES.c
49194
49195 2005-10-21  Simon Josefsson  <jas@extundo.com>
49196
49197         * lib/arctwo.h, lib/arctwo.c: New files.
49198
49199         * lib/gc-gnulib.c: Support ARCTWO.
49200
49201 2005-10-21  Simon Josefsson  <jas@extundo.com>
49202
49203         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
49204         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49205
49206 2005-10-21  Simon Josefsson  <jas@extundo.com>
49207
49208         * gnulib-tool (func_import, func_create_testdir): Define automake
49209         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
49210         Makefile.am snippet),
49211         suggested by Bruno Haible <bruno@clisp.org>.
49212
49213         * modules/gc (Makefile.am): Use it.
49214
49215 2005-10-21  Bruno Haible  <bruno@clisp.org>
49216
49217         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
49218         patch.
49219
49220 2005-10-19  Simon Josefsson  <jas@extundo.com>
49221
49222         * tests/test-gc-rijndael.c: New file.
49223
49224         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
49225
49226 2005-10-19  Simon Josefsson  <jas@extundo.com>
49227
49228         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
49229         interface too.
49230
49231 2005-10-19  Simon Josefsson  <jas@extundo.com>
49232
49233         * tests/test-gc-arcfour.c: New file.
49234
49235         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
49236
49237 2005-10-19  Simon Josefsson  <jas@extundo.com>
49238
49239         * modules/gc-md4, modules/gc-md4-tests: New file.
49240
49241         * tests/test-gc-md4.c: New file.
49242
49243 2005-10-19  Simon Josefsson  <jas@extundo.com>
49244
49245         * m4/gc-md4.m4: New file.
49246
49247 2005-10-19  Simon Josefsson  <jas@extundo.com>
49248
49249         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
49250         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
49251         <kasal@ucw.cz>.
49252
49253 2005-10-19  Simon Josefsson  <jas@extundo.com>
49254
49255         * m4/gc-arcfour.m4: New file.
49256
49257         * m4/gc-rijndael.m4: New file.
49258
49259 2005-10-19  Simon Josefsson  <jas@extundo.com>
49260
49261         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
49262
49263 2005-10-19  Simon Josefsson  <jas@extundo.com>
49264
49265         * lib/gc-gnulib.c: Support ARCFOUR.
49266
49267 2005-10-19  Simon Josefsson  <jas@extundo.com>
49268
49269         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
49270         support.
49271
49272         * lib/gc.h: Add ECB enum type.
49273
49274         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
49275
49276 2005-10-18  Simon Josefsson  <jas@extundo.com>
49277
49278         * tests/test-md5.c: New file.
49279
49280         * modules/md5-tests: New file.
49281
49282 2005-10-18  Simon Josefsson  <jas@extundo.com>
49283
49284         * tests/test-md4.c: New file.
49285
49286         * modules/md4, modules/md4-tests: New files.
49287
49288 2005-10-18  Simon Josefsson  <jas@extundo.com>
49289
49290         * m4/md4.m4: New file.
49291
49292 2005-10-18  Simon Josefsson  <jas@extundo.com>
49293
49294         * lib/md4.h, lib/md4.c: New files, based on md5.?.
49295
49296 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
49297
49298         * gnulib-tool (func_create_testdir): Omit the second check whether
49299         BUILT_SOURCES in nonempty.
49300
49301 2005-10-17  Simon Josefsson  <jas@extundo.com>
49302
49303         * tests/test-rijndael.c: New file.
49304
49305 2005-10-17  Simon Josefsson  <jas@extundo.com>
49306
49307         * modules/sha1: Depend on stdint instead of md5.
49308
49309         * modules/md5: Depend on stdint, remove uint32_t.
49310
49311 2005-10-17  Simon Josefsson  <jas@extundo.com>
49312
49313         * modules/gc-sha1-tests: New file.
49314
49315         * tests/test-gc-sha1.c: New file.
49316
49317 2005-10-17  Simon Josefsson  <jas@extundo.com>
49318
49319         * m4/md5.m4: Remove call to uint32_t.m4.
49320
49321 2005-10-17  Simon Josefsson  <jas@extundo.com>
49322
49323         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
49324
49325         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
49326         md5.h.
49327
49328         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
49329
49330         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
49331
49332 2005-10-17  Simon Josefsson  <jas@extundo.com>
49333
49334         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
49335
49336 2005-10-17  Simon Josefsson  <jas@extundo.com>
49337
49338         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
49339
49340 2005-10-17  Simon Josefsson  <jas@extundo.com>
49341
49342         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
49343
49344         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
49345
49346 2005-10-17  Bruno Haible  <bruno@clisp.org>
49347
49348         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
49349         that it can also be used in a test.
49350
49351 2005-10-16  Bruno Haible  <bruno@clisp.org>
49352
49353         * gnulib-tool (func_emit_tests_Makefile_am): Also define
49354         TESTS_ENVIRONMENT, so that individual tests can augment it.
49355
49356         * gnulib-tool (func_create_testdir): Use an intermediate target for
49357         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
49358         macros, like $(ALLOCA_H), which cannot be passed through the command
49359         line.
49360
49361 2005-10-15  Simon Josefsson  <jas@extundo.com>
49362
49363         * modules/rijndael-tests: New file.
49364
49365         * modules/rijndael: New file.
49366
49367 2005-10-15  Simon Josefsson  <jas@extundo.com>
49368
49369         * m4/rijndael.m4: New file.
49370
49371 2005-10-15  Simon Josefsson  <jas@extundo.com>
49372
49373         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
49374
49375         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
49376
49377 2005-10-14  Simon Josefsson  <jas@extundo.com>
49378
49379         * tests/test-arcfour.c: New file.
49380
49381         * modules/arcfour, modules/arcfour-tests: New files.
49382
49383 2005-10-14  Simon Josefsson  <jas@extundo.com>
49384
49385         * m4/arcfour.m4: New file.
49386
49387 2005-10-14  Simon Josefsson  <jas@extundo.com>
49388
49389         * lib/arcfour.h, lib/arcfour.c: New files.
49390
49391 2005-10-14  Roland McGrath  <roland@redhat.com>
49392
49393         Import from libc.  [BZ #1331]
49394         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
49395         macro argument.
49396         Reported by Matej Vela <vela@debian.org>.
49397
49398 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
49399
49400         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
49401         include <wchar.h>; no longer needed.
49402
49403 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
49404
49405         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
49406
49407 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
49408         and  Ulrich Drepper  <drepper@redhat.com>
49409
49410         Import from libc.
49411         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
49412         instead of inline stream orientation test and two separate
49413         function calls.  Pay no attention to USE_IN_LIBIO.
49414
49415 2005-10-13  Simon Josefsson  <jas@extundo.com>
49416
49417         * modules/gc-hmac-md5-tests: New file.
49418
49419         * tests/test-gc-hmac-sha1.c: New file.
49420
49421         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
49422
49423         * modules/gc-hmac-md5-tests: New file.
49424
49425         * tests/test-gc-md5.c: New file.
49426
49427         * modules/gc-md5-tests: New file.
49428
49429 2005-10-13  Simon Josefsson  <jas@extundo.com>
49430
49431         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
49432         Move memory allocation outside of loop.
49433
49434 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
49435
49436         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
49437         intermediate directory is in a read-only file system.  Problem
49438         reported by Eric Blake.
49439
49440 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
49441
49442         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
49443
49444 2005-10-12  Simon Josefsson  <jas@extundo.com>
49445
49446         * tests/test-hmac-sha1.c: New file.
49447
49448         * modules/hmac-sha1-tests: New file.
49449
49450         * modules/hmac-sha1: New file.
49451
49452 2005-10-12  Simon Josefsson  <jas@extundo.com>
49453
49454         * modules/gc-sha1: New file.
49455
49456 2005-10-12  Simon Josefsson  <jas@extundo.com>
49457
49458         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
49459
49460         * tests/test-gc-pbkdf2-sha1.c: New file.
49461
49462 2005-10-12  Simon Josefsson  <jas@extundo.com>
49463
49464         * modules/gc-md5, modules/gc-hmac-md5: New files.
49465
49466         * modules/gc (Files): Remove md5, memxor and hmac files.
49467
49468 2005-10-12  Simon Josefsson  <jas@extundo.com>
49469
49470         * m4/gc-pbkdf2-sha1.m4: New file.
49471
49472         * m4/gc-hmac-sha1.m4: New file.
49473
49474         * m4/gc-sha1: New file.
49475
49476         * m4/hmac-sha1.m4: New file.
49477
49478 2005-10-12  Simon Josefsson  <jas@extundo.com>
49479
49480         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
49481
49482         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
49483
49484 2005-10-12  Simon Josefsson  <jas@extundo.com>
49485
49486         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
49487         suggested by Bruno Haible <bruno@clisp.org>.
49488
49489 2005-10-12  Simon Josefsson  <jas@extundo.com>
49490
49491         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
49492
49493 2005-10-12  Simon Josefsson  <jas@extundo.com>
49494
49495         * lib/gc-pbkdf2-sha1.c: New file.
49496
49497         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
49498
49499 2005-10-12  Simon Josefsson  <jas@extundo.com>
49500
49501         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
49502
49503         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
49504
49505 2005-10-12  Simon Josefsson  <jas@extundo.com>
49506
49507         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
49508         GC_USE_HMAC_MD5, respectively.
49509
49510         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
49511         (gc_md5): Fix typo.
49512
49513         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
49514
49515         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
49516
49517         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
49518
49519 2005-10-12  Bruno Haible  <bruno@clisp.org>
49520
49521         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
49522         Reported by Stepan Kasal <kasal@ucw.cz>.
49523
49524 2005-10-11  Simon Josefsson  <jas@extundo.com>
49525
49526         * tests/test-crc.c: New file.
49527
49528         * modules/crc, modules/crc-tests: New files.
49529
49530 2005-10-11  Simon Josefsson  <jas@extundo.com>
49531
49532         * m4/crc.m4: New file.
49533
49534 2005-10-11  Simon Josefsson  <jas@extundo.com>
49535
49536         * lib/gc.h: Add gc_hash and gc_hash_buffer.
49537
49538         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
49539
49540         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
49541
49542 2005-10-11  Simon Josefsson  <jas@extundo.com>
49543
49544         * lib/crc.h, lib/crc.c: New files.
49545
49546         * lib/gc.h (gc_hash_buffer): Add doc.
49547
49548 2005-10-11  Bruno Haible  <bruno@clisp.org>
49549
49550         * modules/c-strcasestr: New file.
49551         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
49552
49553 2005-10-11  Bruno Haible  <bruno@clisp.org>
49554
49555         * modules/c-strcase: New file.
49556         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
49557
49558 2005-10-11  Bruno Haible  <bruno@clisp.org>
49559
49560         * lib/strcasecmp.c: Include limits.h.
49561         (strcasecmp): Avoid integer overflow on exotic platforms.
49562         * lib/strncasecmp.c: Include limits.h.
49563         (strncasecmp): Avoid integer overflow on exotic platforms.
49564         Reported by Paul Eggert.
49565
49566 2005-10-11  Bruno Haible  <bruno@clisp.org>
49567
49568         * lib/c-strcasestr.h: New file, from GNU gettext.
49569         * lib/c-strcasestr.c: New file, from GNU gettext.
49570
49571 2005-10-11  Bruno Haible  <bruno@clisp.org>
49572
49573         * lib/c-strcase.h: New file, from GNU gettext.
49574         * lib/c-strcasecmp.c: New file, from GNU gettext.
49575         * lib/c-strncasecmp.c: New file, from GNU gettext.
49576
49577 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
49578
49579         * modules/mempcpy (License): GPL -> LGPL.
49580         * modules/strchrnul (License): Likewise.
49581         * modules/sysexits (License): Likewise.
49582
49583 2005-10-08  Simon Josefsson  <jas@extundo.com>
49584
49585         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
49586
49587 2005-10-07  Simon Josefsson  <jas@extundo.com>
49588
49589         * m4/memxor.m4: Remove gl_C_RESTRICT call.
49590
49591 2005-10-06  Simon Josefsson  <jas@extundo.com>
49592
49593         * tests/test-hmac-md5.c: New file.
49594
49595         * modules/hmac-md5-tests: New file.
49596
49597         * modules/hmac-md5: New file.
49598
49599 2005-10-06  Simon Josefsson  <jas@extundo.com>
49600
49601         * m4/hmac-md5.m4: New file.
49602
49603         * m4/memxor.m4: Require gl_C_RESTRICT.
49604
49605 2005-10-06  Simon Josefsson  <jas@extundo.com>
49606
49607         * lib/memxor.c (memxor): Avoid casts and warnings.
49608
49609 2005-10-06  Simon Josefsson  <jas@extundo.com>
49610
49611         * lib/hmac-md5.c: New file.
49612
49613         * lib/hmac.h: New file.
49614
49615 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
49616
49617         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
49618         promotes to int, not unsigned int, to catch the AIX 5.3
49619         compiler bug.
49620
49621 2005-10-05  Simon Josefsson  <jas@extundo.com>
49622
49623         * modules/memxor: New file.
49624
49625         * modules/iconv (Files): Move config.rpath to havelib, it is used
49626         there.
49627
49628         * modules/havelib (Files): Add config.rpath.
49629
49630 2005-10-05  Simon Josefsson  <jas@extundo.com>
49631
49632         * m4/memxor.m4: New file.
49633
49634 2005-10-05  Simon Josefsson  <jas@extundo.com>
49635
49636         * lib/memxor.c (memxor): Fix compiler error.
49637
49638         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
49639         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
49640
49641         * lib/memxor.h, lib/memxor.c: New files.
49642
49643         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
49644         we assume all systems have it, suggested by Jim Meyering
49645         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
49646         any systems lack sys/socket.h; mingw32 is known to lack it, but we
49647         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
49648         same reasons.
49649
49650 2005-10-05  Simon Josefsson  <jas@extundo.com>
49651
49652         * config/srclist.txt: Add glibc bug 1423 for md5.h.
49653
49654 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
49655
49656         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
49657         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
49658         needed, since the source code now assumes these .h files.
49659
49660 2005-10-05  Derek Price  <derek@ximbiot.com>
49661
49662         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
49663
49664 2005-10-05  Bruno Haible  <bruno@clisp.org>
49665
49666         * modules/stdint (License): Change to LGPL.
49667
49668 2005-10-04  Simon Josefsson  <jas@extundo.com>
49669
49670         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
49671         D. Baushke" <mdb@gnu.org>.
49672
49673 2005-10-04  Bruno Haible  <bruno@clisp.org>
49674
49675         * lib/verify.h (verify_true): Provide alternative definition for C++.
49676
49677 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
49678
49679         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
49680         (SSIZE_MAX): New macro, if not already defined.
49681         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
49682         than 2 GiB.
49683
49684 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
49685
49686         Sync from coreutils.
49687         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
49688         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
49689         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
49690         ULLONG_MAX doesn't work with 2.7.2.1.
49691
49692 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
49693
49694         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
49695         From Ben Pfaff.
49696
49697         * modules/exclude (Depends-on): Depend on verify.
49698         * modules/strtoimax (Depends-on): Likewise.
49699         * modules/utimecmp (Depends-on): Likewise.
49700
49701 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
49702
49703         * lib/exclude.c: Include verify.h.
49704         (verify): Remove.  All callers changed to use verify.h's version.
49705         * lib/strtoimax.c: Likewise.
49706         * lib/utimecmp.c: Likewis.e
49707
49708         Sync from coreutils.
49709         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
49710         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
49711         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
49712         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
49713         bother returning ENOSYS if settimeofday or stime fails; just let
49714         them return whatever errno they want to return.
49715         * lib/utimens.c: Include unistd.h, for dup2.
49716         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
49717         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
49718
49719 2005-10-02  Jim Meyering  <jim@meyering.net>
49720
49721         Sync from coreutils.
49722         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
49723         from glibc-2.2.5 that fails for read-only files.
49724
49725 2005-10-02  Jim Meyering  <jim@meyering.net>
49726
49727         Sync from coreutils.
49728         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
49729         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
49730         `#if HAVE_CONFIG_H'.
49731         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
49732         Remove AT_FDCWD test.
49733         Do not consume the fd unless successful.
49734         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
49735         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
49736         block, so that we don't even try to compile it if settimeofday is
49737         available.  This works around a compilation failure on OSF1 V5.1,
49738         due to stime requiring a `long int*' while tv_sec is `int'.
49739
49740 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
49741
49742         Sync from coreutils.
49743         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
49744         against `yes', rather than just testing for nonempty.
49745
49746 2005-10-01  Simon Josefsson  <jas@extundo.com>
49747
49748         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
49749         and Darwin.
49750
49751         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
49752         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
49753         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
49754         freeaddrinfo and gai_strerror are declared by the POSIX headers.
49755         Check if struct addrinfo is declared.
49756
49757 2005-10-01  Simon Josefsson  <jas@extundo.com>
49758
49759         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
49760         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
49761         AI_* and EAI_* definitions.  Protect function declarations.
49762
49763 2005-10-01  Jim Meyering  <jim@meyering.net>
49764
49765         Sync from coreutils.
49766
49767         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
49768         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
49769         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
49770         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
49771         in the inet and nsl libraries.  Required on Solaris 5.7.
49772
49773 2005-10-01  Jim Meyering  <jim@meyering.net>
49774
49775         Sync from coreutils.
49776         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
49777         in the inet and nsl libraries.  Required on Solaris 5.7.
49778
49779 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
49780
49781         * lib/getdelim.c (getdelim): Remove unused variables.
49782
49783 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
49784
49785         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
49786         so that the code works even with ancient cpp.  Portability problem
49787         with GCC 2.7.2.1 reported by Thomas M.Ott.
49788
49789 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
49790
49791         * modules/regex (Depends-on): Add strcase.
49792
49793         * modules/gethostname (Licence): Change from GPL to LGPL, since
49794         gethostname.c is a trivial implementation of a standard library
49795         function.
49796         * modules/poll (License): Change from GPL to LGPL, since it's
49797         derived from LGPL code.
49798
49799 2005-09-27  Jim Meyering  <jim@meyering.net>
49800
49801         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
49802         HAVE_CONFIG_H.
49803
49804         * lib/intprops.h (signed_type_or_expr__): Define.
49805         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
49806         for unsigned types.
49807
49808 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
49809
49810         * lib/verify.h (verify_expr): Remove, replacing with:
49811         (verify_true): New macro that returns true instead of void.
49812         (verify_type__): Remove.
49813         (verify): Use verify_true rather than verify_type__.
49814
49815 2005-09-26  Bruno Haible  <bruno@clisp.org>
49816
49817         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
49818         is necessary.
49819         (lib_SOURCES): Remove mbchar.c.
49820         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
49821         (Files): Add m4/mbrtowc.m4.
49822         * modules/mbiter: Likewise.
49823         * modules/mbuiter: Likewise.
49824
49825 2005-09-26  Bruno Haible  <bruno@clisp.org>
49826
49827         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
49828         compile mbchar.c if they are not both present.
49829         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
49830         * m4/mbiter.m4 (gl_MBITER): Likewise.
49831         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
49832         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
49833         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
49834
49835 2005-09-25  Jim Meyering  <jim@meyering.net>
49836
49837         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
49838         also uses socklen_t.
49839
49840 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
49841
49842         * lib/utimens.c (ENOSYS): Define if not already defined.
49843         (futimens): Support having a null PATH if the file descriptor
49844         is nonnegative.
49845
49846         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
49847         Remove.
49848         (__attribute): Define to empty unless GCC 3.1 or later.
49849         This works around a core dump on OpenBSD 3.4, which has GCC
49850         2.95.3, which dumps core when given __attribute__(()).  It also
49851         simplifies other tests, since we really don't want to bother with
49852         worrying about which ancient version of GCC supported what.
49853         Original problem reported by Yoann Vandoorselaere, with part of
49854         the fix suggested by Derek Price.
49855
49856 2005-09-24  Jim Meyering  <jim@meyering.net>
49857
49858         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
49859         so we can once again use a positive bitfield width of 1 -- now we
49860         don't have to explain why we were using a bitfield width of 2.
49861
49862 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
49863
49864         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
49865         and similarly for the other external symbols.  Problem reported
49866         by James Gallager.
49867
49868         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
49869         bug reported by Jim Meyering.
49870
49871         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
49872         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
49873         not needed, since socklen is a prerequisite module.
49874
49875 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
49876
49877         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
49878         Problem reported by Eric Blake.
49879         (getaddrinfo): Initialize se so that it's not garbage.
49880         Redo internal storage allocation so that it doesn't make unportable
49881         assumptions about alignment.
49882         Fix a memory leak.
49883
49884         * lib/utimens.c (futimens): Use futimesat if available.
49885         Prefer it to futimes since it doesn't have the futimes bug.
49886
49887         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
49888         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
49889         Instead, declare a function that returns a pointer to an array,
49890         and use verify_type__ to declare the size of the array.
49891         Problem and germ of a solution reported by Bruno Haible.
49892         (verify_type__): Use 2, not 1, for bitfield size, to avoid
49893         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
49894
49895 2005-09-23  Jim Meyering  <jim@meyering.net>
49896
49897         Sync from coreutils.
49898         Correct build failure (socklen_t not defined) on at least
49899         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
49900         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
49901
49902 2005-09-23  Jim Meyering  <jim@meyering.net>
49903
49904         * modules/getaddrinfo (Depends-on): Add socklen.
49905
49906 2005-09-23  Bruno Haible  <bruno@clisp.org>
49907
49908         * tests/test-verify.c: New file.
49909
49910 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49911
49912         Sync from coreutils.
49913
49914         * modules/argmatch (Depends-on): Add verify.
49915         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
49916         unistd-safer.
49917         * modules/save-cwd (Depends-on): Likewise.
49918
49919         * modules/openat (Files): Add lib/openat-die.c.
49920         (Depends-on): Remove error, exitfail.
49921         Add dirname.
49922
49923         * modules/verify: New file.
49924         * MODULES.html.sh (Diagnostics <assert.h>): New section,
49925         with "verify" module.
49926
49927 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49928
49929         Sync from coreutils.
49930
49931         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
49932         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
49933         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
49934         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
49935         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
49936         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
49937         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
49938         Don't bother checking for string.h, stdlib.h, unistd.h.
49939         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
49940         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
49941         module's job.
49942         * m4/jm-macros.m4 (gl_MACROS): Likewise.
49943         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
49944
49945         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
49946         (gl_GETDATE): Use it.
49947
49948         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
49949
49950 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49951
49952         Sync from coreutils.
49953
49954         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
49955         stat-time.h.
49956         * lib/argmatch.h: Include verify.h
49957         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
49958         (ARGMATCH_ASSERT): Remove; unused.
49959         * lib/canonicalize.c: Assume STDC_HEADERS.
49960         * lib/exclude.c: Include "strcase.h".
49961         * lib/regex_internal.h [!defined _LIBC]: Likewise.
49962         * lib/getusershell.c: Include stdio--.h rather than stdio.h
49963         and stdio-safer.h.
49964         (getusershell): Call fopen, not fopen_safer.
49965         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
49966         Do not include unistd-safer.h.
49967         (save_cwd): Don't call fd_safer; no longer needed
49968         now that we include fcntl--.h.
49969
49970         * lib/getdate.y (relative_time): New type.
49971         (RELATIVE_TIME_0): New constant.
49972         (parser_control): Use relative_time instead of doing it ourselves.
49973         (%union): Add new relative_time rel member.
49974         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
49975         Now typeless.
49976         (relunit, relunit_snumber): Now of type rel.
49977         (zone, rel, relunit, get_date): Adjust to above changes.
49978
49979         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
49980         Do not include unistd-safer.h.
49981         (getloadavg): Don't call fd_safer; no longer needed
49982         now that we include fcntl--.h.
49983
49984         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
49985         (make_dir_parents): Treat ENOSYS like EEXIST.
49986
49987         Improve quality of diagnostics on restore_cwd failure.
49988         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
49989         (make_dir_parents): Last arg is now int * (for errno), not bool *.
49990         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
49991         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
49992         each time through the loop.  Do not diagnose restore_cwd failure;
49993         that is the caller's job (and perhaps the caller does not care).
49994
49995         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
49996         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
49997         If the file already exists but is not a directory, don't bother
49998         to try to make its parents.
49999         Close potential file descriptor leak if we can't chdir("/") (!).
50000         Don't always return true if chdir($PWD) fails; return true only
50001         if the requested action was done successfully (except for the
50002         chdir($PWD)).
50003         Don't log final directory unless we actually made it.
50004         Refactor to avoid duplicate code to fix up permissions.
50005         Don't attempt to fix up parent permissions if chdir($PWD) fails.
50006
50007         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
50008         to make it a bit faster and (I hope) clearer.
50009         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
50010         Fix bug in formats like %2N.
50011
50012         * lib/verify.h: New file.
50013
50014 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
50015
50016         Sync from coreutils.
50017         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
50018
50019 2005-09-22  Jim Meyering  <jim@meyering.net>
50020
50021         Sync from coreutils.
50022
50023         * m4/lstat.m4 (gl_FUNC_LSTAT):
50024         Use AC_LIBSOURCES to require lstat.c and lstat.h.
50025         Remove obsolete comment.
50026         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
50027         * m4/xstrtod.m4: Likewise.
50028
50029         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
50030
50031 2005-09-22  Jim Meyering  <jim@meyering.net>
50032
50033         Sync from coreutils.
50034
50035         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
50036
50037         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
50038         the .tm_year member, since otherwise gcc-4.0 would now warn about
50039         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
50040
50041         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
50042         order to avoid an unsuppressible warning from gcc on 64-bit systems.
50043
50044         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
50045         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
50046         when run in a time zone for which daylight savings time is in effect
50047         for the starting date.
50048
50049         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
50050         stop us from restricting permissions of just-created absolute-named
50051         directories.
50052         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
50053         to restore initial working directory.
50054         * lib/mkdir-p.c (make_dir_parents): New parameter:
50055         different_working_dir, to tell caller if/when we change the working
50056         directory and are unable to return to the initial one.
50057         * lib/mkdir-p.h (make_dir_parents): Update prototype.
50058         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
50059         `return false'.  This fixes a bug introduced on 2004-07-30.
50060
50061         * lib/openat.c (fdopendir): Be sure to close the supplied
50062         file descriptor before returning.  This makes our replacement
50063         implementation a little closer to Solaris's, where fdopendir
50064         ties the file descriptor to the returned DIR* pointer.
50065         * lib/openat.c (unlinkat): New function.
50066         * lib/openat.h (unlinkat): Add prototype.
50067         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
50068         (openat_restore_fail): Rename from openat_restore_die.
50069         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
50070
50071         Provide an alternative to exiting immediately upon save_cwd or
50072         restore_cwd failure.  Now, an application can arrange e.g.,
50073         to perform a longjump in that case.
50074         * lib/openat.c: Include dirname.h.
50075         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
50076         (rpl_openat, fdopendir, fstatat): Call openat_save_die
50077         and openat_restore_die rather than calling error directly.
50078         Don't include "error.h" or "exitfail.h"; they're no longer needed.
50079
50080         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
50081         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
50082         define.
50083
50084         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
50085         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
50086                             int utc, int nanoseconds);
50087         Background:
50088         date should not have to allocate a megabyte of virtual memory to
50089         handle a format argument like +%1048575T.  When implemented with
50090         strftime, it must allocate such a buffer, use strftime to fill it
50091         in, print it, then free it.
50092         With fprintftime, it simply prints everything and exits.
50093         With no need for memory allocation, that's one fewer way to fail.
50094         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
50095         optional field width, not before, so we accept %9:z, not %:9z.
50096         (my_strftime): Be sure to use L_('x') for literals.
50097
50098         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
50099         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
50100         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
50101         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
50102         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
50103         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
50104         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
50105         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
50106         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
50107         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
50108         * lib/xgethostname.c, lib/xreadlink.c:
50109         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
50110
50111         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
50112         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
50113         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
50114         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
50115         and don't include <sys/file.h>).
50116
50117 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
50118
50119         Sync from coreutils.
50120
50121         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
50122         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
50123         [!LDAV_DONE]: Avoid unused variable warning.
50124
50125 2005-09-21  Bruno Haible  <bruno@clisp.org>
50126
50127         * lib/unicodeio.h (unicode_to_mb): New declaration.
50128
50129 2005-09-20  Derek Price  <derek@ximbiot.com>
50130
50131         * lib/getaddrinfo.c: Don't include <netdb.h> included from
50132         getaddrinfo.h.
50133
50134 2005-09-20  Bruno Haible  <bruno@clisp.org>
50135
50136         * gnulib-tool: Remove trailing slashes from the values specified for
50137         --source-base, --m4-base, --tests-base, --aux-dir.
50138         Suggested by Simon Josefsson <jas@extundo.com>.
50139
50140 2005-09-20  Bruno Haible  <bruno@clisp.org>
50141
50142         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
50143         func_modules_to_filelist, func_import, func_create_testdir): Make all
50144         sorting results locale-independent, so that gnulib-cache.m4 doesn't
50145         change when gnulib-tool is invoked in a different locale.
50146
50147 2005-09-19  Simon Josefsson  <jas@extundo.com>
50148
50149         * m4/socklen.m4: Fix typo.
50150
50151 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50152
50153         Use a consistent style for including <config.h>.
50154         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
50155         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
50156         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
50157         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
50158         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
50159         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
50160         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
50161         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
50162         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
50163         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
50164         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
50165         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
50166         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
50167         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
50168         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
50169         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
50170         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
50171         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
50172         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
50173         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
50174         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
50175         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
50176         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
50177         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
50178         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
50179         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
50180         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
50181         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
50182         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
50183         lib/xstrtoumax.c, lib/yesno.c:
50184         Standardize inclusion of config.h.
50185         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
50186         lib/inttostr.h:  Removed inclusion of config.h from header files.
50187         * lib/inttostr.c:  Adjusted in-tree users.
50188         * lib/timespec.h: Remove superfluous warning to include config.h.
50189         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
50190         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
50191         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
50192         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
50193         config.h with HAVE_CONFIG_H.
50194
50195 2005-09-19  Jim Meyering  <jim@meyering.net>
50196
50197         * modules/pathmax (License): Change to LGPL.
50198
50199 2005-09-19  Derek Price  <derek@ximbiot.com>
50200
50201         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
50202
50203 2005-09-19  Bruno Haible  <bruno@clisp.org>
50204
50205         * gnulib-tool (import): Provide default for --tests-base.
50206
50207 2005-09-19  Bruno Haible  <bruno@clisp.org>
50208
50209         * doc/quote.texi: New file, extracted from gnulib.texi.
50210         * doc/ctime.texi: New file, extracted from gnulib.texi.
50211         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
50212         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
50213         * doc/gnulib.texi: Include them.
50214
50215 2005-09-18  Bruno Haible  <bruno@clisp.org>
50216
50217         Portability fix.
50218         * gnulib-tool (func_readlink): New function.
50219         (func_ln_if_changed): Use it.
50220
50221 2005-09-18  Bruno Haible  <bruno@clisp.org>
50222
50223         * gnulib-tool: Support --with-tests also with --import.
50224         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
50225         (func_import): Use variables $testsbase and $inctests. Emit a
50226         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
50227         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
50228         SUBDIRS += $testsdir.
50229         (func_create_testdir): Update.
50230
50231 2005-09-18  Bruno Haible  <bruno@clisp.org>
50232
50233         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
50234         instead of $dry_run.
50235         (func_cp_if_changed, func_mv_if_changed): Remove functions.
50236         (func_ln_if_changed): Don't handle dry-run here.
50237         (func_import): In dry-run mode, detect more precisely which actions
50238         would be performed, and don't use "...ing" verbs.
50239
50240 2005-09-18  Bruno Haible  <bruno@clisp.org>
50241
50242         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
50243         (func_import): Use join on two temporary files instead of three nested
50244         loops, in order to determine which files are new or old.
50245
50246 2005-09-18  Bruno Haible  <bruno@clisp.org>
50247
50248         * gnulib-tool (func_import): Comment out code that spits out the
50249         new files with --dry-run.
50250
50251 2005-09-18  Bruno Haible  <bruno@clisp.org>
50252
50253         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
50254
50255 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
50256
50257         * lib/stat-time.h: New file.
50258         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
50259         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
50260         in a different way.
50261         (timespec_cmp): New function.
50262         * lib/utimecmp.c: Include stat-time.h.
50263         (SYSCALL_RESOLUTION): Depend on whether various struct stat
50264         members exist, not on the obsolescent ST_MTIM_NSEC.
50265         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
50266
50267 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
50268
50269         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
50270
50271 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
50272
50273         * MODULES.html.sh (File system functions): Add stat-time.
50274         * modules/stat-time: New file.
50275         * modules/timespec (Files): Remove m4/st_mtim.m4; this
50276         is now done in a different way, by the stat-time module.
50277         * modules/utimecmp (Depends-on): Add stat-time.
50278
50279 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
50280
50281         * m4/st_mtim.m4: Remove.  Superseded by...
50282         * m4/stat-time.m4: New file.
50283         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
50284         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
50285
50286 2005-09-15  Derek Price  <derek@ximbiot.com>
50287
50288         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
50289
50290 2005-09-15  Derek Price  <derek@ximbiot.com>
50291
50292         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
50293         * lib/regex_internal.c: Ditto, using this...
50294         (__GNUC_PREREQ): ...new macro.
50295         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
50296         using...
50297         (__GNUC_PREREQ): ...this new macro.
50298
50299         * lib/strstr.h: Include string.h. Define strstr as a macro here.
50300
50301 2005-09-15  Derek Price  <derek@ximbiot.com>
50302             Paul Eggert  <eggert@cs.ucla.edu>
50303
50304         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
50305         changes, consolidating in...
50306         * lib/regex_internal.h: ...this file.
50307
50308 2005-09-13  Jim Meyering  <jim@meyering.net>
50309
50310         * lib/canon-host.c: Filter through gnu indent and reword comments
50311         slightly.
50312         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
50313
50314 2005-09-13  Derek Price  <derek@ximbiot.com>
50315
50316         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
50317         failure.
50318         Reported by Jim Meyering  <jim@meyering.net>.
50319
50320 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
50321
50322         * lib/base64.c: Typo.
50323         (base64_encode): Put b64str in initialized data section.
50324
50325 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
50326
50327         Merge glibc and coreutils changes into gnulib, plus a few
50328         extra fixes.
50329         * lib/md5.c: Use #error rather than a string.
50330         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
50331         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
50332         (__attribute__): Define to empty for non recent-GCC.
50333         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
50334         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
50335         Renamed from their non-__ counterparts, with new macros replacing
50336         them if not _LIBC.  Add __THROW attribute.
50337         (rol): Remove.
50338         (struct md5_ctx): Align buffer if using GCC.
50339         * lib/sha1.h (struct sha1_ctx): Likewise.
50340         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
50341         The old name was backwards.
50342         (NOTSWAP): Remove; not used.
50343         (rol): New macro, moved here from md5.h.
50344         (sha1_process_block): Remove a FIXME that doesn't make sense.
50345
50346 2005-09-12  Derek Price  <derek@ximbiot.com>
50347
50348         Return usable errors from canon-host.
50349         * lib/canon-host.h: New file.
50350         * lib/canon-host.c (canon_host): Wrap...
50351         (canon_host_r): ...this new function, which now relies exclusively on
50352         getaddrinfo.
50353         (ch_strerror): New function.
50354         (last_cherror): New global.
50355         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
50356         interface.
50357         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
50358         void *.
50359         (freeaddrinfo): Free ai->ai_canonname when set.
50360
50361 2005-09-12  Derek Price  <derek@ximbiot.com>
50362
50363         Make canon-host require getaddrinfo.
50364         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
50365         AC_LIBSOURCE canon-host.h.  Call...
50366         (gl_PREREQ_CANON_HOST): ...this new function, which requires
50367         gl_GETADDRINFO.
50368         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
50369
50370 2005-09-12  Derek Price  <derek@ximbiot.com>
50371
50372         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
50373         LGPL.
50374         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
50375
50376 2005-09-12  Derek Price  <derek@ximbiot.com>
50377
50378         * lib/gai_strerror.c: Include config.h when available.  Include
50379         getaddrinfo.h before other headers to test interface.
50380         Reported by Larry Jones <lawrence.jones@ugs.com>.
50381
50382 2005-09-12  Derek Price  <derek@ximbiot.com>
50383             Paul Eggert  <eggert@cs.ucla.edu>
50384
50385         * modules/glob (Files): Add glob-libc.h.
50386
50387 2005-09-12  Derek Price  <derek@ximbiot.com>
50388             Paul Eggert  <eggert@cs.ucla.edu>
50389
50390         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
50391         glob_.h, glob-libc.h.
50392         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
50393
50394 2005-09-12  Derek Price  <derek@ximbiot.com>
50395             Paul Eggert  <eggert@cs.ucla.edu>
50396
50397         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
50398         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
50399         protecting things that should be done only in gnulib contexts.
50400         * lib/glob_.h: New file, containing only the glob things needed for
50401         gnulib.
50402         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
50403         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
50404         (glob, globfree, glob_pattern_p): Now defined simply in terms of
50405         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
50406         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
50407         and to respect the namespace rules better.
50408
50409 2005-09-08  Simon Josefsson  <jas@extundo.com>
50410
50411         * modules/socklen: New file.
50412
50413 2005-09-08  Simon Josefsson  <jas@extundo.com>
50414
50415         * m4/socklen.m4: New file.
50416
50417 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50418
50419         * modules/utimens (Files): Add m4/utimbuf.m4, since
50420         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
50421         Reported by Sergey Poznyakoff.
50422
50423 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50424
50425         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
50426         definitions, since that's the preferred style in glibc.
50427         Fix a minor spacing issue, and update copyright notice to match
50428         glibc's.
50429
50430 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50431
50432         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
50433
50434 2005-09-06  Simon Josefsson  <jas@extundo.com>
50435
50436         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
50437         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
50438
50439 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
50440
50441         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
50442         warning.
50443
50444 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
50445
50446         * config/srclist.txt: Add glibc bug 1302.
50447
50448 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
50449
50450         Change bitset word type from unsigned int to unsigned long int,
50451         as this has better performance on typical 64-bit hosts.
50452         Port bitset code to hosts with unusual word sizes.
50453         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
50454         (build_collating_symbol):
50455         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
50456         argument is a bitset.  This is merely a style issue, but it makes
50457         it clearer that an entire array is expected.
50458         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
50459         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
50460         Port to the case where bitset_word is not the same as unsigned int.
50461         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
50462         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
50463         Likewise.
50464         * lib/regexec.c (check_dst_limits_calc_pos_1,
50465         check_subexp_matching_top):
50466         (build_trtable, group_nodes_into_DFAstates):
50467         Likewise.
50468         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
50469         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
50470         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
50471         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
50472         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
50473         * lib/regcomp.c (optimize_subexps, lower_subexp):
50474         Work even if bitset_word has holes in its bitwise representation.
50475         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
50476         * lib/regexec.c (check_dst_limits_calc_pos_1,
50477         check_subexp_matching_top):
50478         Likewise.
50479         * lib/regex_internal.c (re_string_reconstruct):
50480         Don't assume UCHAR_MAX == 255.
50481         * lib/regex_internal.h (bitset_set_all): Likewise.
50482         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
50483         All uses changed.
50484         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
50485         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
50486         All uses changed.
50487         (BITSET_WORD_MAX): New macro.
50488         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
50489         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
50490         (bitset_empty, bitset_copy):
50491         Prefer sizeof (bitset) to multiplying it out ourselves.
50492         (bitset_not_merge): Remove; unused.
50493         (bitset_contain): Return bool, not unsigned int with one bit on.
50494         All callers changed.
50495         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
50496         alignment than re_node_set; do this by defining a new internal
50497         type struct dests_alloc and using it to allocate memory.
50498
50499 2005-09-05  Bruno Haible  <bruno@clisp.org>
50500
50501         * gnulib-tool (func_import): Fix comparison in handling of symbolic
50502         links.
50503
50504 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
50505
50506         * modules/size_max (Makefile.am): Add size_max.h
50507
50508 2005-09-04  Derek Price  <derek@ximbiot.com>
50509
50510         * gnulib-tool (func_import): Fix reversed $symbolic logic.
50511
50512 2005-09-03  Simon Josefsson  <jas@extundo.com>
50513
50514         * gnulib-tool: Fix typo.
50515
50516 2005-09-03  Simon Josefsson  <jas@extundo.com>
50517
50518         * config/srclist.txt: Add glibc bug 1293.
50519
50520 2005-09-03  Derek Price  <derek@ximbiot.com>
50521
50522         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
50523         From Larry Jones <lawrence.jones@ugs.com>.
50524
50525 2005-09-02  Simon Josefsson  <jas@extundo.com>
50526
50527         * modules/socklen: New file.
50528
50529 2005-09-02  Simon Josefsson  <jas@extundo.com>
50530
50531         * modules/havelib: New module.
50532
50533         * modules/gettext, modules/iconv, modules/lock, modules/readline:
50534         Use havelib.
50535
50536 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
50537
50538         Check for arithmetic overflow when calculating sizes, to prevent
50539         some buffer-overflow issues.  These patches are conservative, in the
50540         sense that when I couldn't determine whether an overflow was possible,
50541         I inserted a run-time check.
50542         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
50543         macros.
50544         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
50545         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
50546         (re_xnrealloc, re_x2nrealloc): New inline functions.
50547         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
50548         parse_bracket_exp):
50549         (build_equiv_class, build_charclass): Check for arithmetic overflow
50550         in size expression calculations.
50551         * lib/regex_internal.c (re_string_realloc_buffers):
50552         (build_wcs_upper_buffer, re_node_set_add_intersect):
50553         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
50554         (re_dfa_add_node, register_state): Likewise.
50555         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
50556         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
50557         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
50558         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
50559
50560 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
50561
50562         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
50563         m4/ulonglong.m4.  Problem reported by Martin Lambers.
50564
50565 2005-09-02  Bruno Haible  <bruno@clisp.org>
50566
50567         Support for lib vs. lib64 distinction on biarch platforms.
50568         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
50569         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
50570         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
50571
50572 2005-09-02  Bruno Haible  <bruno@clisp.org>
50573
50574         * gnulib-tool (import): In the other first-use case, provide defaults
50575         as well.
50576
50577 2005-09-02  Bruno Haible  <bruno@clisp.org>
50578
50579         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
50580         patches not yet found in the latest gettext release.
50581
50582 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50583
50584         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
50585         to avoid a collision with bits/local_lim.h in glibc.
50586         All uses changed.  Problem reported by Dmitry V. Levin in
50587         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
50588
50589         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
50590         bugs in int versus size_t comparisons.
50591         (re_string_context_at): Fix bug where the code assumed that
50592         Idx is signed.
50593
50594         Use bool where appropriate.
50595         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
50596         All callers changed.
50597         (calc_eclosure_iter): Likewise, for ROOT arg.
50598         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
50599         (build_charclass_op): Likewise, for NON_MATCH arg.
50600         * lib/regex_internal.c (re_string_allocate, re_string_construct):
50601         (re_string_construct_common): Likewise, for ICASE arg.
50602         * lib/regexec.c (re_search_2_stub, re_search_stub):
50603         Likewise, for RET_LEN arg.
50604         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
50605         (set_regs): Likewise, for FL_BACKTRACK arg.
50606         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
50607         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
50608         (calc_eclosure_iter, parse_bracket_exp):
50609         Use bool for internal variables that are booleans.
50610         * lib/regexec.c (re_search_internal, check_matching,
50611         proceed_next_node):
50612         (set_regs, build_sifted_states, sift_states_bkref):
50613         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
50614         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
50615         (find_collation_sequence_value):
50616         Likewise.
50617         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
50618         (re_node_set_compare):
50619         Return bool, not int. All callers changed.
50620         * lib/regexec.c (check_halt_node_context, check_dst_limits):
50621         (build_trtable, check_node_accept): Likewise.
50622         * lib/regex_internal.h: Include stdbool.h.
50623
50624         Fix bugs uncovered when converting to bool.
50625         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
50626         failure instead of charging ahead blindly.
50627         * lib/regex_internal.c (register_state): Likewise.
50628         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
50629         for freeing internal storage.
50630         (group_nodes_into_DFA_states): Use unsigned int, not int, for
50631         bitset pieces used as boolean, to avoid undefined behavior
50632         on hosts that do int overflow checking.
50633
50634 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50635
50636         * config/srclist.txt: Add glibc bugs 1285-1287.
50637
50638 2005-09-01  Jim Meyering  <jim@meyering.net>
50639
50640         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
50641         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
50642         Require gl_STAT_MACROS, too.
50643
50644 2005-09-01  Bruno Haible  <bruno@clisp.org>
50645
50646         * gnulib-tool (import): In the first-use case, provide defaults.
50647
50648 2005-09-01  Bruno Haible  <bruno@clisp.org>
50649
50650         * gnulib-tool (func_import): Remove the .tmp files.
50651
50652 2005-09-01  Bruno Haible  <bruno@clisp.org>
50653
50654         * gnulib-tool (func_import): Fix handling of symbolic links.
50655
50656 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50657
50658         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
50659         old glibc regex code mishandles strings longer than 2**31 bytes.
50660         This patch fixes this when the regex code is used in gnulib
50661         (i.e., outside glibc).
50662
50663         This patch should not affect the use of the regex code inside
50664         glibc.  No doubt this problem also needs to be handled for glibc
50665         as well, but the result will be an incompatible change to the
50666         glibc ABI, and the old ABI will have to be supported too.  That
50667         can be the the subject for another patch.
50668
50669         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
50670         governing whether the rest of this patch is active.  By default,
50671         the macro is disabled and the patch has no effect.
50672         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
50673         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
50674         (struct re_pattern_buffer, re_search, re_search_2, re_match):
50675         (re_match_2, re_set_registers): Use the new types.
50676         * lib/regex_internal.h (Idx, re_hashval_t): New types.
50677         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
50678         New macros.
50679         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
50680         (re_string_context_at, bin_tree_t, re_dfastate_t):
50681         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
50682         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
50683         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
50684         (re_string_char_size_at, re_string_wchar_at):
50685         (re_string_elem_size_at):
50686         Use the new types and macros to port to 64-bit hosts.
50687         Use unsigned types for internal values, so that the code
50688         mostly works even for arrays larger than SSIZE_MAX.
50689         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
50690         (search_duplicated_node, calc_eclosure_iter, fetch_number):
50691         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
50692         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
50693         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
50694         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
50695         (calc_inveclosure, parse_dup_op, build_range_exp):
50696         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
50697         (fetch_number, create_token_tree, mark_opt_subexp):
50698         Likewise.
50699         * lib/regex_internal.c (re_string_construct_common,
50700         create_ci_newstate):
50701         (create_cd_newstate, re_string_allocate, re_string_construct):
50702         (re_string_realloc_buffers, build_wcs_upper_buffer):
50703         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
50704         (re_string_reconstruct, re_string_peek_byte_case):
50705         (re_string_fetch_byte_case, re_string_context_at):
50706         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
50707         (re_node_set_init_copy, re_node_set_add_intersect):
50708         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
50709         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
50710         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
50711         (re_acquire_state, re_acquire_state_context, register_state):
50712         Likewise.
50713         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
50714         search_cur_bkref_entry):
50715         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
50716         (re_search_internal, re_search_2_stub, re_search_stub)
50717         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
50718         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
50719         (update_cur_sifted_state, check_dst_limits):
50720         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
50721         (check_subexp_limits, sift_states_bkref, merge_state_array):
50722         (check_subexp_matching_top, get_subexp, get_subexp_sub):
50723         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
50724         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
50725         (expand_bkref_cache, check_node_accept_bytes):
50726         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
50727         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
50728         (acquire_init_state_context, check_halt_node_context):
50729         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
50730         (sift_states_backward, clean_state_log_if_needed):
50731         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
50732         (find_recover_state, transit_state_sb, transit_state_mb):
50733         (transit_state_bkref, build_trtable, match_ctx_clean):
50734         Likewise.
50735         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
50736         to work around an assumption that REG_MISSING is negative.
50737
50738         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
50739         (seek_collating_symbol_entry) [defined _LIBC]:
50740         (lookup_collation_sequence_value) [defined _LIBC]:
50741         (build_range_exp, build_collating_symbol) [defined _LIBC]:
50742         Use prototypes rather than old-style function definitions.
50743         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
50744         (transit_state_sb) [0]:
50745         (find_collation_sequence_value) [defined _LIBC]: Likewise.
50746
50747         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
50748         rm_eo.
50749
50750         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
50751         (optimize_subexps, lower_subexp):
50752         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
50753         since the signed shift might overflow.  Use 1u<<31 instead.
50754         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
50755         Likewise.
50756         * lib/regexec.c (check_dst_limits_calc_pos_1,
50757         check_subexp_matching_top): Likewise.
50758
50759         * lib/regcomp.c (optimize_subexps, lower_subexp):
50760         Use CHAR_BIT rather than 8, for clarity.
50761         * lib/regexec.c (check_dst_limits_calc_pos_1):
50762         (check_subexp_matching_top): Likewise.
50763         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
50764         have to worry about portability issues when shifting it left.
50765         Remove no-longer-needed test for table_size > 0.
50766         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
50767         in a word, as the resulting behavior is undefined.
50768         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
50769         in one case, a <= should have been an <, and in another case the
50770         whole test was missing.
50771         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
50772         the standard name CHAR_BIT.
50773         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
50774         this is not true on one's complement and signed-magnitude hosts.
50775
50776         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
50777         next_last_offset.
50778         (struct re_dfa_t): Remove unused member states_alloc.
50779         * lib/regcomp.c (init_dfa): Don't initialize unused members.
50780
50781 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50782
50783         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
50784         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
50785         and large-file glibc and in 32-bit large-file Solaris.
50786
50787 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50788
50789         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
50790         lengths fit in regoff_t; this isn't true if regoff_t is the same
50791         width as size_t.
50792         * lib/regex.c (re_search_internal): 5th arg is LAST_START
50793         (= START + RANGE) instead of RANGE.  This avoids overflow
50794         problems when regoff_t is the same width as size_t.
50795         All callers changed.
50796         (re_search_2_stub): Check for overflow when adding the
50797         sizes of the two strings.
50798         (re_search_stub): Check for overflow when adding START
50799         to RANGE; if it occurs, substitute the extreme value.
50800
50801 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50802
50803         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
50804
50805 2005-08-31  Jim Meyering  <jim@meyering.net>
50806
50807         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
50808         a pointer-to-const.
50809         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
50810         (register_state): Likewise.
50811         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
50812         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
50813         (group_nodes_into_DFAstates): Likewise.
50814
50815 2005-08-31  Jim Meyering  <jim@meyering.net>
50816
50817         * check-module: Add a FIXME comment.
50818
50819 2005-08-31  Eric Blake  <ebb9@byu.net>
50820
50821         * modules/unistd-safer (Files): Add unistd--.h.
50822         * modules/stdio-safer (Files): Add stdio--.h.
50823
50824 2005-08-31  Derek Price  <derek@ximbiot.com>
50825
50826         * lib/getdelim.c (getdelim): Return EOF on EOF.
50827         Reported by Larry Jones <lawrence.jones@ugs.com>.
50828
50829 2005-08-31  Bruno Haible  <bruno@clisp.org>
50830
50831         Avoid unnecessary diffs in the generated lib/Makefile.am.
50832         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
50833         the generated files.
50834         (func_import): Don't set cmd.
50835
50836 2005-08-31  Bruno Haible  <bruno@clisp.org>
50837
50838         * lib/strstr.c: Include <stddef.h>, for NULL.
50839         * lib/strcasestr.c: Likewise.
50840         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50841
50842 2005-08-31  Bruno Haible  <bruno@clisp.org>
50843
50844         * gnulib-tool: New option --macro-prefix.
50845         (func_import): Use macro_prefix.
50846         (import): Handle option --macro-prefix.
50847
50848 2005-08-31  Bruno Haible  <bruno@clisp.org>
50849
50850         * gnulib-tool (import): Rename most ac_* variables to cached_*.
50851         Also use new variables cached_lgpl, cached_libtool.
50852
50853 2005-08-31  Bruno Haible  <bruno@clisp.org>
50854
50855         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
50856         always instantiating them.
50857
50858 2005-08-31  Bruno Haible  <bruno@clisp.org>
50859
50860         * gnulib-tool (func_import): Read the previous cached settings
50861         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
50862         earlier added by gnulib but are now dropped. Warn when a gnulib file
50863         overwrites a non-gnulib file.
50864
50865 2005-08-31  Bruno Haible  <bruno@clisp.org>
50866
50867         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
50868         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
50869         projects that don't keep autogenerated files in CVS. Put into
50870         actioncmd only the specified modules, not the transitive closure.
50871
50872 2005-08-31  Bruno Haible  <bruno@clisp.org>
50873
50874         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
50875         Create directories that shall be filled.
50876         (import): Don't look for gl_* macros in configure.ac. Recurse across
50877         all directories containing a gnulib-cache.m4 files, if meaningful.
50878
50879 2005-08-31  Bruno Haible  <bruno@clisp.org>
50880
50881         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
50882         (import): Set seen_libtool when we see gl_LIBTOOL.
50883
50884 2005-08-31  Bruno Haible  <bruno@clisp.org>
50885
50886         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
50887         declaration macro definitions from generated gnulib.m4.
50888
50889 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
50890
50891         * lib/iconvme.h: Add prototype for iconv_alloc.
50892
50893 2005-08-29  Simon Josefsson  <jas@extundo.com>
50894
50895         * lib/iconvme.c: Fix errno.
50896
50897 2005-08-29  Bruno Haible  <bruno@clisp.org>
50898
50899         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
50900         that it works when the directory contains spaces.
50901
50902 2005-08-29  Bruno Haible  <bruno@clisp.org>
50903
50904         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
50905
50906 2005-08-29  Bruno Haible  <bruno@clisp.org>
50907
50908         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
50909         Emit more advice.
50910
50911 2005-08-29  Bruno Haible  <bruno@clisp.org>
50912         and Stepan Kasal  <kasal@ucw.cz>
50913
50914         * check-module: If more parameters are given, check each of them
50915         separately; add more exceptions, as noted by Jim Meyering.
50916         (check_module): New procedure.
50917         (%exempt_header): Now contains all exceptions.
50918
50919 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
50920
50921         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
50922
50923 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
50924
50925         * lib/iconvme.c: Split iconv_string into iconv_alloc.
50926
50927 2005-08-28  Bruno Haible  <bruno@clisp.org>
50928
50929         * m4/gnulib-tool.m4: New file.
50930
50931 2005-08-27  Jim Meyering  <jim@meyering.net>
50932
50933         * modules/unistd-safer (Files): Add pipe-safer.c.
50934         * modules/fcntl-safer (Files): Add creat-safer.c.
50935
50936 2005-08-27  Jim Meyering  <jim@meyering.net>
50937
50938         * m4/stdlib-safer.m4: New file.  From coreutils.
50939         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
50940         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
50941         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
50942         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
50943         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
50944
50945 2005-08-27  Jim Meyering  <jim@meyering.net>
50946
50947         * lib/fopen-safer.c: Merge minor changes from coreutils.
50948         * lib/dup-safer.c: Likewise.
50949         * lib/fd-safer.c: Likewise.
50950
50951         Merge from coreutils.
50952         * lib/stdio--.h: New file.
50953         * lib/stdlib--.h: New file.
50954         * lib/mkstemp-safer.c: New file.
50955
50956         GNU tar needs these.
50957         * lib/pipe-safer.c: New file.
50958         * lib/creat-safer.c: New file.
50959         * lib/fcntl--.h (creat): Define to creat_safer.
50960         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
50961         * lib/unistd--.h (pipe): Define to pipe_safer.
50962         * lib/unistd-safer.h: Declare pipe_safer.
50963
50964 2005-08-26  Simon Josefsson  <jas@extundo.com>
50965
50966         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
50967         Haible <bruno@clisp.org>.
50968
50969 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
50970
50971         * lib/regex_internal.h: Remove all references to
50972         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
50973         or better.
50974         (bitset_not, bitset_merge, bitset_not_merge):
50975         (bitset_mask, re_string_allocate, re_string_construct):
50976         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
50977         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
50978         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
50979         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
50980         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
50981         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
50982         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
50983         (re_acquire_state_context):
50984         Remove unnecessary forward decls.
50985         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
50986         Put __attribute at function definition,
50987         now that the function decl has been removed.
50988         * lib/regex_internal.c (re_string_peek_byte_case):
50989         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
50990         Likewise.
50991
50992 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
50993
50994         * m4/regex.m4: Add AC_PREREQ(2.50).
50995         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
50996
50997 2005-08-25  Simon Josefsson  <jas@extundo.com>
50998
50999         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
51000         __fsetlocking.
51001
51002 2005-08-25  Simon Josefsson  <jas@extundo.com>
51003
51004         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
51005         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
51006         GLIBC specific code.
51007
51008 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51009
51010         Make regex safe for g++.  This fixes one real bug (an "err"
51011         that should have been "*err").  g++ problem reported by
51012         Sam Steingold.
51013         * lib/regex_internal.h (re_calloc): New macro, consistent with
51014         re_malloc etc.  All callers of calloc changed to use re_calloc.
51015         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
51016         not int.  All callers changed.
51017         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
51018         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
51019         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
51020         (find_recover_state): Change "err" to "*err"; this fixes what
51021         appears to be a real bug.
51022         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
51023         versus int.
51024
51025 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51026
51027         * modules/regex (Depends-on): Add malloc, since the code
51028         assumes that !malloc(0) means failure.
51029
51030 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51031
51032         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
51033
51034         alloca modernization/simplification for regex.
51035         * lib/regex.c: Remove portability cruft for alloca.  This no longer
51036         needs to be at the start of the file, and can be moved into
51037         regex_internal.h and simplified.
51038         * lib/regex_internal.h: Include <alloca.h>.
51039         (__libc_use_alloca) [!defined _LIBC]: New macro.
51040         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
51041         now works outside glibc.
51042
51043 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51044
51045         * config/srclist.txt: Add glibc bugs 1241, 1245.
51046
51047 2005-08-25  Jim Meyering  <jim@meyering.net>
51048
51049         * lib/open-safer.c: Include <config.h>.
51050         Otherwise, we'd lose LARGEFILE support in any file using
51051         e.g. "fcntl--.h"
51052
51053 2005-08-25  Bruno Haible  <bruno@clisp.org>
51054
51055         * m4/minmax.m4: Require autoconf 2.52.
51056         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
51057         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
51058         alternatives of translit over the alphabet.
51059         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
51060
51061 2005-08-24  Simon Josefsson  <jas@extundo.com>
51062
51063         * tests/test-getpass.c: New file.
51064
51065 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51066
51067         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
51068         for GNU regex features.
51069
51070 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51071
51072         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
51073         * lib/regex.h (regerror): Likewise.
51074
51075         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
51076         requires this.  (The code never needed it.)
51077
51078         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
51079         All uses of recently-renamed identifiers changed to use the new,
51080         POSIX-compliant names.  The code will build and run just fine
51081         without these changes, but it's better to eat our own dog food
51082         and use the standard-conforming names.
51083
51084         * lib/regex.h: Fix a multitude of POSIX name space violations.
51085         These changes have an effect only for programs that define
51086         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
51087         do not change anything for programs compiled in the normal way.
51088         Also, there is no effect on the ABI.
51089
51090         (_REGEX_SOURCE): New macro.
51091         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
51092         defined and _GNU_SOURCE is not; this fixes a name space violation.
51093
51094         Rename the following macros to obey POSIX requirements.
51095         The old names are still visible as macros if _REGEX_SOURCE is defined.
51096         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
51097         RE_BACKSLASH_ESCAPE_IN_LISTS.
51098         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
51099         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
51100         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
51101         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
51102         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
51103         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
51104         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
51105         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
51106         (REG_INTERVALS): renamed from RE_INTERVALS.
51107         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
51108         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
51109         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
51110         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
51111         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
51112         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
51113         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
51114         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
51115         RE_UNMATCHED_RIGHT_PAREN_ORD.
51116         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
51117         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
51118         (REG_DEBUG): renamed from RE_DEBUG.
51119         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
51120         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
51121         unusual, since we can't clash with the POSIX REG_ICASE.
51122         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
51123         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
51124         (REG_NO_SUB): renamed from RE_NO_SUB.
51125         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
51126         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
51127         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
51128         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
51129         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
51130         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
51131         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
51132         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
51133         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
51134         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
51135         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
51136         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
51137         RE_SYNTAX_POSIX_MINIMAL_BASIC.
51138         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
51139         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
51140         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
51141         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
51142         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
51143         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
51144         (REG_FIXED): Renamed from REGS_FIXED.
51145         (REG_NREGS): Renamed from RE_NREGS.
51146
51147         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
51148         of other REG_* macros, since POSIX says the user is allowed to
51149         #undef these macros selectively.
51150
51151         (reg_errcode_t): Update comment stating what other tables need
51152         to be consistent.
51153
51154         Rename the following enum values to obey POSIX requirements.
51155         The old names are still visible as macros.
51156         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
51157         is not defined, since GNU is supposed to be a superset of POSIX as
51158         much as possible, and since we want reg_errcode_t to be a signed
51159         type for implementation consistency.
51160         (_REG_NOERROR): Renamed from REG_NOERROR.
51161         (_REG_NOMATCH): Renamed from REG_NOMATCH.
51162         (_REG_BADPAT): Renamed from REG_BADPAT.
51163         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
51164         (_REG_ECTYPE): Renamed from REG_ECTYPE.
51165         (_REG_EESCAPE): Renamed from REG_EESCAPE.
51166         (_REG_ESUBREG): Renamed from REG_ESUBREG.
51167         (_REG_EBRACK): Renamed from REG_EBRACK.
51168         (_REG_EPAREN): Renamed from REG_EPAREN.
51169         (_REG_EBRACE): Renamed from REG_EBRACE.
51170         (_REG_BADBR): Renamed from REG_BADBR.
51171         (_REG_ERANGE): Renamed from REG_ERANGE.
51172         (_REG_ESPACE): Renamed from REG_ESPACE.
51173         (_REG_BADRPT): Renamed from REG_BADRPT.
51174         (_REG_EEND): Renamed from REG_EEND.
51175         (_REG_ESIZE): Renamed from REG_ESIZE.
51176         (_REG_ERPAREN): Renamed from REG_ERPAREN.
51177         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
51178         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
51179         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
51180         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
51181
51182         (_REG_RE_NAME, _REG_RM_NAME): New macros.
51183         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
51184         changed.  But support the old name if the new one is not defined
51185         and if _REGEX_SOURCE.
51186
51187         Change the following member names in struct re_pattern_buffer.
51188         The old names are still supported if !_REGEX_SOURCE.
51189         The new names are always supported, regardless of _REGEX_SOURCE.
51190         (re_buffer): Renamed from buffer.
51191         (re_allocated): Renamed from allocated.
51192         (re_used): Renamed from used.
51193         (re_syntax): Renamed from syntax.
51194         (re_fastmap): Renamed from fastmap.
51195         (re_translate): Renamed from translate.
51196         (re_can_be_null): Renamed from can_be_null.
51197         (re_regs_allocated): Renamed from regs_allocated.
51198         (re_fastmap_accurate): Renamed from fastmap_accurate.
51199         (re_no_sub): Renamed from no_sub.
51200         (re_not_bol): Renamed from not_bol.
51201         (re_not_eol): Renamed from not_eol.
51202         (re_newline_anchor): Renamed from newline_anchor.
51203
51204         Change the following member names in struct re_registers.
51205         The old names are still supported if !_REGEX_SOURCE.
51206         The new names are always supported, regardless of _REGEX_SOURCE.
51207         (rm_num_regs): Renamed from num_regs.
51208         (rm_start): Renamed from start.
51209         (rm_end): Renamed from end.
51210
51211         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
51212         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
51213         Prepend __ to parameter names.
51214
51215         Undo yesterday's changes.
51216
51217 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51218
51219         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
51220         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
51221         lib/regex.c.
51222
51223 2005-08-24  Jim Meyering  <jim@meyering.net>
51224
51225         Sync from coreutils.
51226         * m4/fcntl-safer.m4: New file.
51227
51228         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
51229         and object files for this module.
51230
51231 2005-08-24  Jim Meyering  <jim@meyering.net>
51232
51233         Sync from coreutils.
51234         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
51235
51236 2005-08-24  Jim Meyering  <jim@meyering.net>
51237
51238         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
51239         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
51240
51241 2005-08-24  Jim Meyering  <jim@meyering.net>
51242
51243         * modules/fcntl-safer: New module.
51244         * modules/fts (Depends-on): Add fcntl-safer.
51245         * MODULES.html.sh (File descriptor based Input/Output):
51246         Add fcntl-safer.
51247
51248 2005-08-24  Bruno Haible  <bruno@clisp.org>
51249
51250         Support for unit test modules.
51251         * modules/README: Mention tests modules.
51252         * modules/TEMPLATE-TESTS: New file.
51253         * gnulib-tool: New options --extract-tests-module, --with-tests and
51254         --tests-base (unused for the moment).
51255         (testsbase, inctests): New variables.
51256         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
51257         (func_verify_module): Exclude TEMPLATE-TESTS.
51258         (func_verify_nontests_module, func_verify_tests_module): New functions.
51259         (func_get_dependencies): Add implicit dependency for tests modules.
51260         (func_get_tests_module): New function.
51261         (func_modules_transitive_closure): When --with-tests was specified,
51262         include the unit tests as well, unless explicitly avoided.
51263         (func_emit_lib_Makefile_am): Ignore the tests modules here.
51264         (func_emit_tests_Makefile_am): New function.
51265         (func_create_testdir): When --with-tests was specified, emit a
51266         tests/ directory.
51267         * MODULES.html.sh (Future developments): Update.
51268
51269 2005-08-24  Bruno Haible  <bruno@clisp.org>
51270
51271         * modules/tls-tests: New file.
51272         * tests/test-tls.c: New file, from GNU gettext.
51273
51274 2005-08-24  Bruno Haible  <bruno@clisp.org>
51275
51276         * modules/lock-tests: New file.
51277         * tests/test-lock.c: New file, from GNU gettext.
51278
51279 2005-08-24  Bruno Haible  <bruno@clisp.org>
51280
51281         * lib/lock.h: Add multiple inclusion guard.
51282         * lib/tls.h: Add multiple inclusion guard.
51283
51284 2005-08-24  Bruno Haible  <bruno@clisp.org>
51285
51286         * gnulib-tool: Add support for the --aux-dir option to
51287         --create-testdir, --create-megatestdir, --test, --megatest.
51288         (func_create_testdir, func_create_megatestdir): Optionally emit a
51289         AC_CONFIG_AUX_DIR directive.
51290         (create-testdir, create-megatestdir, test, megatest): Provide a
51291         default value for $auxdir.
51292
51293 2005-08-24  Bruno Haible  <bruno@clisp.org>
51294
51295         * gnulib-tool (import): Use compound statement instead of subshell
51296         where possible.
51297
51298 2005-08-24  Bruno Haible  <bruno@clisp.org>
51299
51300         * gnulib-tool (import): Change --aux-dir default to "build-aux".
51301
51302 2005-08-24  Bruno Haible  <bruno@clisp.org>
51303
51304         * gnulib-tool (func_version): Update.
51305
51306 2005-08-24  Bruno Haible  <bruno@clisp.org>
51307
51308         * gnulib-tool (func_import, func_create_testdir,
51309         func_create_megatestdir): Quote all autoconf macro arguments.
51310
51311 2005-08-24  Bruno Haible  <bruno@clisp.org>
51312
51313         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
51314         option --force, because --force causes the aclocal.m4 of each
51315         subdirectory to be newer than the corresponding config.h.in.
51316
51317 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51318
51319         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
51320         All contents moved to gl_REGEX.
51321         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
51322         assume that it does.
51323
51324 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51325
51326         * lib/regex.h (REG_NOSYS)
51327         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
51328         Define, since POSIX requires it as of 2001.
51329         (_REG_ENOSYS)
51330         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
51331         New private symbol, used to keep the enum signed in all cases.
51332         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
51333         Youngman in
51334         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
51335
51336         * lib/regex_internal.c (re_string_skip_chars, register_state):
51337         (calc_state_hash):
51338         Remove forward decls; no longer needed now that we use prototypes.
51339         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
51340         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
51341         (clean_state_log_if_needed): Likewise.
51342
51343 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51344
51345         * config/srclist.txt: Add glibc bugs 1231-1233.
51346
51347 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51348
51349         Fix problems reported by Sam Steingold in
51350         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
51351         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
51352         assumed that reg_errcode_t is a signed type, which is not
51353         necessarily true if _XOPEN_SOURCE is not defined.
51354         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
51355         since some compilers warn about it otherwise.
51356
51357 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51358
51359         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
51360         (init_word_char, create_initial_state, duplicate_node_closure):
51361         (fetch_token, peek_token_bracket, build_range_exp):
51362         (build_collating_symbol): Remove forward decls; no longer needed
51363         now that we use prototypes.
51364
51365         * lib/regcomp.c:
51366         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
51367         (re_compile_fastmap_iter, regcomp, regerror, regfree):
51368         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
51369         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
51370         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
51371         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
51372         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
51373         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
51374         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
51375         (build_range_exp, build_collating_symbol, parse_bracket_exp):
51376         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
51377         (build_charclass, build_charclass_op, fetch_number, create_tree):
51378         (create_token_tree, mark_opt_subexp, duplicate_tree):
51379         Use prototypes rather than old-style definitions.
51380
51381         * lib/regex_internal.c:
51382         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
51383         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
51384         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
51385         (re_string_reconstruct, re_string_peek_byte_case):
51386         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
51387         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
51388         (re_node_set_init_copy, re_node_set_add_intersect):
51389         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
51390         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
51391         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
51392         (re_acquire_state, re_acquire_state_context, register_state):
51393         (create_ci_newstate, create_cd_newstate, free_state):
51394         Likewise.
51395         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
51396         re_search_2):
51397         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
51398         (re_search_internal, prune_impossible_nodes):
51399         (acquire_init_state_context, check_matching, static):
51400         (check_halt_node_context, check_halt_state_context, proceed_next_node):
51401         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
51402         (update_regs, sift_states_backward, build_sifted_states):
51403         (clean_state_log_if_needed, merge_state_array):
51404         (update_cur_sifted_state, add_epsilon_src_nodes):
51405         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
51406         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
51407         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
51408         (find_recover_state, check_subexp_matching_top, transit_state_mb):
51409         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
51410         (check_arrival, check_arrival_add_next_nodes):
51411         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
51412         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
51413         (check_node_accept_bytes, check_node_accept, extend_buffers):
51414         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
51415         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
51416         (sift_ctx_init):
51417         Likewise.
51418
51419         * lib/regex_internal.h:
51420         (re_string_allocate, re_string_construct, re_string_reconstruct):
51421         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
51422         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
51423         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
51424         (re_string_context_at, re_string_peek_byte_case):
51425         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
51426         is defined, since we now use prototypes always.
51427
51428         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
51429         C89 or better.  All uses removed.
51430
51431 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51432
51433         * config/srclist.txt: Add glibc bugs 1220-1227.
51434
51435 2005-08-20  Jim Meyering  <jim@meyering.net>
51436
51437         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
51438         of unused local, dfa.
51439
51440 2005-08-20  Bruno Haible  <bruno@clisp.org>
51441
51442         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
51443
51444 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51445
51446         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
51447         (re_node_set_insert_last, re_dfa_add_node):
51448         Rename local variables to avoid GCC shadowing warnings.
51449
51450 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51451
51452         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
51453         [defined lint]: Suppress bogus uninitialized-variable warnings.
51454
51455         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
51456         and let the caller return REG_ESPACE if out of space.  This
51457         removes an uninitialied-variable warning with GCC 4.0.1, and also
51458         avoids taking the address of a local variable.  All callers
51459         changed.
51460
51461 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51462
51463         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
51464         $LIBCSRC/posix/regexec.c.
51465         Add glibc bug 1217 for regcomp.c.
51466
51467 2005-08-19  Jim Meyering  <jim@meyering.net>
51468
51469         * lib/regexec.c (proceed_next_node): Redo local variables to
51470         avoid GCC shadowing warnings.
51471
51472 2005-08-18  Bruno Haible  <bruno@clisp.org>
51473
51474         * lib/strstr.c (strstr): Fix return value in multibyte case.
51475         * lib/strcasestr.c (strcasestr): Likewise.
51476
51477 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
51478
51479         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
51480
51481 2005-08-17  Jim Meyering  <jim@meyering.net>
51482
51483         Make the %s format (seconds since the epoch) work for a negative
51484         number and when used with a zero-padded field width, e.g. %015s.
51485
51486         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
51487         label so that it precedes the code to set `digits'.  Otherwise,
51488         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
51489         print `00-22'.  Now, it prints `-0022', as it should.
51490
51491 2005-08-17  Bruno Haible  <bruno@clisp.org>
51492
51493         * modules/strstr (Files): Add m4/mbrtowc.m4.
51494         (Depends-on): Add mbuiter.
51495
51496 2005-08-17  Bruno Haible  <bruno@clisp.org>
51497
51498         * modules/strcasestr: New file.
51499         * MODULES.html.sh (String handling, based on ANSI C 89): Add
51500         strcasestr.
51501
51502 2005-08-17  Bruno Haible  <bruno@clisp.org>
51503
51504         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
51505
51506 2005-08-17  Bruno Haible  <bruno@clisp.org>
51507
51508         * modules/mbuiter: New file.
51509         * MODULES.html.sh (Extended multibyte and wide character utilities):
51510         Add mbuiter.
51511
51512 2005-08-17  Bruno Haible  <bruno@clisp.org>
51513
51514         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
51515         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
51516
51517 2005-08-17  Bruno Haible  <bruno@clisp.org>
51518
51519         * m4/strcasestr.m4: New file.
51520
51521 2005-08-17  Bruno Haible  <bruno@clisp.org>
51522
51523         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
51524         * lib/strstr.c: Completely rewritten, with multibyte locale support.
51525
51526 2005-08-17  Bruno Haible  <bruno@clisp.org>
51527
51528         * lib/strcasestr.h: New file.
51529         * lib/strcasestr.c: New file.
51530
51531 2005-08-17  Bruno Haible  <bruno@clisp.org>
51532
51533         * lib/strcasecmp.c: Use mbuiter.h.
51534
51535 2005-08-17  Bruno Haible  <bruno@clisp.org>
51536
51537         * lib/mbuiter.h: New file.
51538
51539 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
51540
51541         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
51542         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
51543         and gl_GETOPT are both invoked via different paths (as happens
51544         with GNU tar CVS because it uses both argp and getopt), the former
51545         wins.
51546
51547 2005-08-16  Bruno Haible  <bruno@clisp.org>
51548
51549         * modules/tls: New file.
51550         * MODULES.html.sh (Multithreading): Add tls.
51551
51552 2005-08-16  Bruno Haible  <bruno@clisp.org>
51553
51554         * modules/strnlen1: New file.
51555         * MODULES.html.sh (String handling): Add strnlen1.
51556
51557 2005-08-16  Bruno Haible  <bruno@clisp.org>
51558
51559         * modules/strcase (Files): Add m4/mbrtowc.m4.
51560         (Depends-on): Add strnlen1, mbchar.
51561
51562 2005-08-16  Bruno Haible  <bruno@clisp.org>
51563
51564         * modules/mbiter: New file.
51565         * MODULES.html.sh (Extended multibyte and wide character utilities):
51566         Add mbiter.
51567
51568 2005-08-16  Bruno Haible  <bruno@clisp.org>
51569
51570         * modules/mbfile: New file.
51571         * MODULES.html.sh (Extended multibyte and wide character utilities):
51572         Add mbfile.
51573
51574 2005-08-16  Bruno Haible  <bruno@clisp.org>
51575
51576         * modules/mbchar: New file.
51577         * MODULES.html.sh (Extended multibyte and wide character utilities):
51578         New section.
51579
51580 2005-08-16  Bruno Haible  <bruno@clisp.org>
51581
51582         * m4/tls.m4: New file, from GNU gettext.
51583
51584 2005-08-16  Bruno Haible  <bruno@clisp.org>
51585
51586         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
51587         always.
51588         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
51589
51590 2005-08-16  Bruno Haible  <bruno@clisp.org>
51591
51592         * m4/mbiter.m4: New file.
51593
51594 2005-08-16  Bruno Haible  <bruno@clisp.org>
51595
51596         * m4/mbfile.m4: New file.
51597
51598 2005-08-16  Bruno Haible  <bruno@clisp.org>
51599
51600         * m4/mbchar.m4: New file.
51601
51602 2005-08-16  Bruno Haible  <bruno@clisp.org>
51603
51604         * lib/tls.h: New file, from GNU gettext.
51605         * lib/tls.c: New file, from GNU gettext.
51606
51607 2005-08-16  Bruno Haible  <bruno@clisp.org>
51608
51609         * lib/strnlen1.h: New file.
51610         * lib/strnlen1.c: New file.
51611
51612 2005-08-16  Bruno Haible  <bruno@clisp.org>
51613
51614         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
51615         (mbi_init): Update.
51616         (mbi_avail, mbi_advance): Let the iteration end before the terminating
51617         NUL byte, not after it.
51618
51619 2005-08-16  Bruno Haible  <bruno@clisp.org>
51620
51621         * lib/strcase.h (strcasecmp): Add note in comments.
51622         * lib/strncasecmp.c: Use code from strcasecmp.c.
51623         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
51624         (strcasecmp): Work correctly in multibyte locales.
51625
51626 2005-08-16  Bruno Haible  <bruno@clisp.org>
51627
51628         * lib/mbiter.h: New file.
51629
51630 2005-08-16  Bruno Haible  <bruno@clisp.org>
51631
51632         * lib/mbfile.h: New file.
51633
51634 2005-08-16  Bruno Haible  <bruno@clisp.org>
51635
51636         * lib/mbchar.h: New file.
51637         * lib/mbchar.c: New file.
51638
51639 2005-08-16  Bruno Haible  <bruno@clisp.org>
51640
51641         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
51642         the valid ones. Makes the comparison operations transitive:
51643         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
51644         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
51645
51646 2005-08-15  Simon Josefsson  <jas@extundo.com>
51647
51648         * modules/ssize_t (License): Change to 'unlimited'.
51649
51650         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
51651
51652 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51653
51654         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
51655         Add comments for each pending glibc patch.
51656
51657 2005-08-15  Bruno Haible  <bruno@clisp.org>
51658
51659         * lib/regex.h (__restrict_arr): Don't define to __restrict if
51660         __cplusplus is defined.
51661
51662 2005-08-14  Jim Meyering  <jim@meyering.net>
51663
51664         Sync from coreutils.
51665
51666         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
51667         Use the hash-table-based cycle-detection code not just when
51668         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
51669         Reported by James Youngman in
51670         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
51671         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
51672         FTS_TIGHT_CYCLE_CHECK.
51673         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
51674         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
51675         once again.
51676         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
51677         * lib/fts.c (fd_safer): Remove decl.
51678         Include fcntl--.h rather than unistd-safer.h
51679         (fts_safe_changedir): Don't call fd_safer; no longer needed
51680         now that we include fcntl--.h.
51681
51682 2005-08-12  Simon Josefsson  <jas@extundo.com>
51683
51684         * modules/getndelim2: Use ssize_t module.
51685         * modules/getnline: Likewise.
51686         * modules/safe-read: Likewise.
51687         * modules/xreadlink: Likewise.
51688
51689         * modules/ssize_t: New file.
51690
51691 2005-08-12  Simon Josefsson  <jas@extundo.com>
51692
51693         * m4/readline.m4: Look for termcap, curses or ncurses if required.
51694
51695 2005-08-12  Simon Josefsson  <jas@extundo.com>
51696
51697         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51698         ssize_t.
51699
51700 2005-08-12  Simon Josefsson  <jas@extundo.com>
51701
51702         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
51703         readline, getdelim and check_version.
51704         (Support for systems lacking ISO C 99: Sizes of integer types):
51705         Add size_max.
51706
51707 2005-08-12  Bruno Haible  <bruno@clisp.org>
51708
51709         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
51710
51711 2005-08-11  Simon Josefsson  <jas@extundo.com>
51712
51713         * modules/readline: New file.
51714
51715         * modules/strnlen (Files): Add strnlen.h.
51716
51717 2005-08-11  Simon Josefsson  <jas@extundo.com>
51718
51719         * m4/readline.m4: New file.
51720
51721 2005-08-11  Simon Josefsson  <jas@extundo.com>
51722
51723         * lib/readline.h, readline.c: New file.
51724
51725 2005-08-11  Simon Josefsson  <jas@extundo.com>
51726
51727         * doc/gnulib.texi (Initial import, Finishing touches): Mention
51728         gl_AVOID.
51729
51730 2005-08-11  Bruno Haible  <bruno@clisp.org>
51731
51732         * lib/strnlen.h (strnlen): Change parameter name to match comment.
51733
51734 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
51735
51736         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
51737
51738 2005-08-10  Simon Josefsson  <jas@extundo.com>
51739
51740         * tests/test-iconvme.c: New file.
51741
51742 2005-08-10  Simon Josefsson  <jas@extundo.com>
51743
51744         * m4/strnlen.m4: New file.
51745
51746         * m4/strndup.m4: Don't check for strnlen declaration, done in
51747         strnlen.m4.
51748
51749 2005-08-10  Simon Josefsson  <jas@extundo.com>
51750
51751         * lib/strndup.c: Use strnlen.h.
51752
51753         * lib/strnlen.h: New file.
51754
51755 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
51756
51757         * README: Typos.
51758
51759 2005-08-02  Simon Josefsson  <jas@extundo.com>
51760
51761         * modules/readline: New file.
51762
51763 2005-08-02  Simon Josefsson  <jas@extundo.com>
51764
51765         * modules/getdelim: New file.
51766
51767         * modules/getline: Rewrite, don't use getndelim2.
51768
51769 2005-08-02  Simon Josefsson  <jas@extundo.com>
51770
51771         * m4/getline.m4: Separate out getdelim stuff into separate module.
51772
51773         * m4/getdelim.m4: New file.
51774
51775 2005-08-02  Simon Josefsson  <jas@extundo.com>
51776
51777         * lib/getline.h, getline.c: Rewrite.
51778
51779         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
51780
51781 2005-07-31  Bruno Haible  <bruno@clisp.org>
51782
51783         * lib/lock.h (gl_lock_initializer): New macro.
51784         (gl_lock_define_initialized): Use it.
51785         (gl_rwlock_initializer): New macro.
51786         (gl_rwlock_define_initialized): Use it.
51787         (gl_recursive_lock_initializer): New macro.
51788         (gl_recursive_lock_define_initialized): Use it.
51789
51790 2005-07-30  Karl Berry  <karl@gnu.org>
51791
51792         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
51793         Report from Ben Pfaff, regarding getopt.
51794
51795 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
51796
51797         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
51798         normal way.
51799         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
51800         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
51801         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
51802         (gl_GETOPT): Use the new macros.  Most of the implementation
51803         is moved to the new macros.  This is for programs like Emacs
51804         that don't want all the functionality of gl_GETOPT.
51805
51806 2005-07-26  Bruno Haible  <bruno@clisp.org>
51807
51808         * m4/lock.m4: Update from GNU gettext.
51809
51810 2005-07-26  Bruno Haible  <bruno@clisp.org>
51811
51812         * lib/lock.h: Update from GNU gettext.
51813         * lib/lock.c: Update from GNU gettext.
51814
51815 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
51816
51817         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
51818         obsolescent AC_TRY_RUN.  Include the default includes files, for
51819         'exit'.
51820
51821 2005-07-24  Bruno Haible  <bruno@clisp.org>
51822
51823         * modules/visibility: New file.
51824         * MODULES.html.sh (Misc): Add visibility.
51825
51826 2005-07-24  Bruno Haible  <bruno@clisp.org>
51827
51828         * m4/visibility.m4: New file.
51829
51830 2005-07-24  Bruno Haible  <bruno@clisp.org>
51831
51832         * doc/visibility.texi: New file.
51833
51834 2005-07-22  Bruno Haible  <bruno@clisp.org>
51835
51836         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
51837         $(ALLOCA_H), redundant through BUILT_SOURCES.
51838         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
51839         redundant through BUILT_SOURCES.
51840         * modules/byteswap (Makefile.am): Remove explicit dependency on
51841         $(BYTESWAP_H), redundant through BUILT_SOURCES.
51842         * modules/fnmatch (Makefile.am): Remove explicit dependency on
51843         $(FNMATCH_H), redundant through BUILT_SOURCES.
51844         * modules/getopt (Makefile.am): Remove explicit dependency on
51845         $(GETOPT_H), redundant through BUILT_SOURCES.
51846         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
51847         redundant through BUILT_SOURCES.
51848         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
51849         redundant through BUILT_SOURCES.
51850         * modules/stdbool (Makefile.am): Remove explicit dependency on
51851         $(STDBOOL_H), redundant through BUILT_SOURCES.
51852         * modules/stdint (Makefile.am): Remove explicit dependency on
51853         $(STDINT_H), redundant through BUILT_SOURCES.
51854         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
51855         Remove explicit dependency on $(SYSEXITS_H).
51856         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
51857
51858 2005-07-18  Simon Josefsson  <jas@extundo.com>
51859
51860         * lib/check-version.c (check_version): Accept identical versions too.
51861
51862 2005-07-18  Bruno Haible  <bruno@clisp.org>
51863
51864         * modules/lock: New file.
51865         * MODULES.html.sh (Multithreading): New section.
51866
51867 2005-07-18  Bruno Haible  <bruno@clisp.org>
51868
51869         * m4/lock.m4: New file, from GNU gettext.
51870
51871 2005-07-18  Bruno Haible  <bruno@clisp.org>
51872
51873         * lib/lock.h: New file, from GNU gettext.
51874         * lib/lock.c: New file, from GNU gettext.
51875
51876 2005-07-18  Bruno Haible  <bruno@clisp.org>
51877
51878         * lib/lock.h (gl_once_t): New type.
51879         (gl_once_define, gl_once): New macros.
51880         * lib/lock.c (fresh_once): New variable.
51881         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
51882         functions.
51883
51884 2005-07-16  Simon Josefsson  <jas@extundo.com>
51885
51886         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
51887         workaround, suggested by Bruno.
51888
51889 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
51890
51891         * modules/xalloc (Depends-on): Add xalloc-die.
51892         * modules/xvasprintf (Depends-on): Add xalloc-die.
51893
51894 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
51895
51896         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
51897         with a minor change.
51898
51899 2005-07-15  Bruno Haible  <bruno@clisp.org>
51900
51901         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
51902         When using lib/poll.c, define poll as rpl_poll.
51903
51904 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
51905
51906         * modules/argp (Depends-on): Remove unlocked-io.
51907
51908 2005-07-14  Derek Price  <derek@ximbiot.com>
51909
51910         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
51911         for glob symlink bug.
51912
51913 2005-07-14  Bruno Haible  <bruno@clisp.org>
51914
51915         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
51916         Instead, test for *_unlocked function declarations directly.
51917
51918 2005-07-11  Simon Josefsson  <jas@extundo.com>
51919
51920         * modules/size_max: New file.
51921
51922         * modules/xsize: Depend on size_max module for size_max.m4.
51923
51924 2005-07-11  Simon Josefsson  <jas@extundo.com>
51925
51926         * lib/size_max.h: New file.
51927
51928 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
51929
51930         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
51931         copyright symbol and the year.
51932         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
51933         (version_etc_va): Use parameterized copyright notice.
51934         Reword to conform to the current GNU coding standards.
51935
51936 2005-07-11  Karl Berry  <karl@gnu.org>
51937
51938         * doc/gnulib.texi (Quoting): new node.
51939         (Initial import): more info, from Patrice.
51940
51941 2005-07-11  Bruno Haible  <bruno@clisp.org>
51942
51943         * gnulib-tool (func_usage): Document option --avoid.
51944         (Command line options): Handle --avoid.
51945         (func_acceptable): New function.
51946         (func_modules_transitive_closure): Use it.
51947
51948 2005-07-11  Bruno Haible  <bruno@clisp.org>
51949
51950         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
51951         Reported by Jim Meyering.
51952
51953 2005-07-10  Bruno Haible  <bruno@clisp.org>
51954
51955         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
51956         Needed when size_t is smaller than 'unsigned int'.
51957         Reported by Paul Eggert.
51958
51959 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
51960
51961         * modules/argp (Depends-on): Add unlocked-io
51962
51963 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
51964
51965         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
51966         block of defines.
51967
51968 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
51969
51970         * config/srclist.txt: Comment out regcomp.c, since we have a porting
51971         fix now.
51972
51973 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
51974         and Paul Eggert  <eggert@cs.ucla.edu>
51975
51976         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
51977         in wint_t, not wchar_t.  Remove now-unnecessary cast.
51978
51979 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
51980
51981         * modules/regex (Files): Add lib/regex_internal.c,
51982         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
51983         (Depends-on): Add extensions.
51984         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
51985
51986 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
51987
51988         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
51989         pathconf.
51990         * m4/same.m4 (gl_SAME): Likewise.
51991         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
51992
51993         * m4/regex.m4: Adjust to new libc regex implementation.
51994         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
51995         all the .c and .h parts of (the new) regex.
51996         Quote the m4 stuff better.
51997         Check for RE_ICASE bug of old gnulib.
51998         Check for REG_STARTEND of recent libc.
51999         Rename local variables from jm_* to gl_*.
52000         Quote operand of "test -f".
52001         Say "recent enough" version of libc, not "version 2".
52002         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
52003         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
52004         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
52005         Remove check for btowc, isascii.
52006         Require AM_LANGINFO_CODESET.
52007
52008 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
52009
52010         * lib/regex.c, regex.h: Sync from libc.
52011         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
52012         * lib/regexec.c:
52013         New files, synced from libc, except that regex_internal.h
52014         currently has a small porting fix.
52015
52016 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
52017
52018         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
52019         regex_internal.c, regexec.c.
52020         Add regex_internal.h too, but as a comment, since the libc version
52021         is currently broken in gnulib mode.
52022
52023 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
52024
52025         Support programs like Emacs that use gnulib but not gettext.
52026         * MODULES.html.sh (Internationalization functions): Add gettext-h.
52027         * modules/gettext-h: New file.
52028         * modules/gettext (Files): Remove lib/gettext.h.
52029         (Depends-on): Add gettext-h.
52030         (Makefile.am): Remove lib_SOURCES.
52031         * modules/argmatch, modules/c-stack, modules/closeout:
52032         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
52033         * modules/execute, modules/file-type, modules/getaddrinfo:
52034         * modules/getopt, modules/human, modules/javacomp:
52035         * modules/javaexec, modules/mkdir-p, modules/obstack:
52036         * modules/openat, modules/pagealign_alloc, modules/pipe:
52037         * modules/quotearg, modules/regex, modules/rpmatch:
52038         * modules/unicodeio, modules/userspec, modules/version-etc:
52039         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
52040         * modules/xsetenv:
52041         Depend on gettext-h, not gettext.
52042
52043 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
52044
52045         * gnulib-tool (func_import): Add support for 'public domain' license.
52046         * modules/alloca, modules/atexit, modules/memmove:
52047         Now public domain, not GPL.
52048         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
52049         * modules/realloc, modules/strerror, modules/strtod:
52050         Now LGPL, not GPL.
52051
52052 2005-07-05  Bruno Haible  <bruno@clisp.org>
52053
52054         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
52055         autoconf CVS. Needed for mingw.
52056
52057 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52058
52059         Remove the dependency of the strftime module on the tzset module.
52060         * modules/strftime (Depends-on): Remove dependency on tzset.
52061
52062 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52063
52064         Remove the dependency of the strftime module on the tzset module.
52065         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
52066         gl_FUNC_TZSET_CLOBBER.
52067
52068 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52069
52070         Remove the dependency of the strftime module on the tzset module.
52071         * lib/strftime.c (my_strftime)
52072         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
52073         Copy the input structure, to work around some of the bug with
52074         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
52075         Solaris releases, you should also use the tzset module, but we won't
52076         require it as a dependency any more since we don't want LGPLed code
52077         to depend on GPLed code.
52078
52079 2005-07-02  Jim Meyering  <jim@meyering.net>
52080
52081         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
52082         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
52083         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
52084         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
52085
52086 2005-07-02  Jim Meyering  <jim@meyering.net>
52087
52088         * lib/backupfile.c (backup_args): Change a `0' to NULL.
52089
52090 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
52091
52092         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
52093         declares only 'struct timespec;' (!).
52094
52095 2005-07-01  Jim Meyering  <jim@meyering.net>
52096
52097         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
52098         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
52099         * lib/save-cwd.c, tempname.c:
52100         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
52101         and don't include <sys/file.h>).
52102
52103 2005-06-29  Jim Meyering  <jim@meyering.net>
52104
52105         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
52106         type name.  Use the variable name instead.
52107         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
52108         Likewise.
52109
52110 2005-06-28  Simon Josefsson  <jas@extundo.com>
52111
52112         * modules/check-version (Files): Add check-version.m4.
52113
52114 2005-06-28  Simon Josefsson  <jas@extundo.com>
52115
52116         * m4/check-version.m4: New file, suggested by Jim Meyering
52117         <jim@meyering.net>.
52118
52119 2005-06-28  Simon Josefsson  <jas@extundo.com>
52120
52121         * lib/check-version.h, lib/check-version.c: New files.
52122
52123 2005-06-28  Simon Josefsson  <jas@extundo.com>
52124
52125         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
52126         collision with global variable.  Better indentation.  Don't
52127         increment buffer pointer beyond buffer end.  Based on comments
52128         from Paul Eggert <eggert@cs.ucla.edu>.
52129
52130         * lib/base64.h: Indent.
52131
52132 2005-06-28  Simon Josefsson  <jas@extundo.com>
52133
52134         * doc/gnulib.texi (Library version handling): New section.
52135
52136 2005-06-28  Jim Meyering  <jim@meyering.net>
52137
52138         * check-module (find_included_lib_files): Hard-code another
52139         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
52140         but modules/fts-lgpl (correctly) does not list those files.
52141
52142         * modules/canonicalize (Files): Add lib/pathmax.h.
52143
52144 2005-06-25  Simon Josefsson  <jas@extundo.com>
52145
52146         * modules/check-version: New file.
52147
52148 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
52149
52150         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
52151         initializer of struct addrinfo, as an indication that we don't
52152         care how many members the structure has.
52153
52154 2005-06-24  Derek Price  <derek@ximbiot.com>
52155         and Bruno Haible  <bruno@clisp.org>
52156
52157         Remove stat module & update lstat.
52158         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
52159         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
52160         * m4/stat.m4: Remove this file.
52161
52162 2005-06-24  Derek Price  <derek@ximbiot.com>
52163         and Bruno Haible  <bruno@clisp.org>
52164
52165         Remove stat module & update lstat.
52166         * lib/stat.c: Remove this file...
52167         (slash_aware_lstat): ...moving this content and its support...
52168         * lib/lstat.c (rpl_lstat): ...into here.
52169         * lib/lstat.h: New file.
52170
52171 2005-06-24  Derek Price  <derek@ximbiot.com>
52172         and Bruno Haible  <bruno@clisp.org>
52173
52174         Remove stat module & update lstat.
52175         * config/srclist.txt (libc sources): Remove stat.
52176
52177 2005-06-24  Derek Price  <derek@ximbiot.com>
52178         and Bruno Haible  <bruno@clisp.org>
52179
52180         Remove stat module & update lstat.
52181         * MODULES.html.sh (stat): Remove.
52182         * MODULES.html: Regenerated.
52183         * modules/lstat (Description): Correct function name.
52184         (Files): Add "lstat.h".
52185         (Depends-on): Remove stat, add xalloc, stat-macros.
52186         * modules/stat: Remove this file.
52187         (Include): Add "lstat.h", remove <sys/stat.h>.
52188
52189 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
52190
52191         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
52192         (ranged_convert): Don't save conversion in a temporary struct.
52193         This causes a warning with GCC 4.0.0, and anyway in the typical
52194         case it's not worth the extra 100 bytes or so of code.
52195         (ranged_convert, __mktime_internal): When calling a function via a
52196         pointer P, use P () rather than (*P) (), as we now assume C89 or
52197         better.
52198
52199 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
52200
52201         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
52202         "who -r" failed to give output.  Problem reported by Tim Waugh.
52203
52204         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
52205         (xcalloc): Use it to avoid needless tests.
52206         Problem reported by Jim Meyering.
52207
52208 2005-06-20  Derek Price  <derek@ximbiot.com>
52209
52210         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
52211         unnecessary for Autoconfs > 2.59c.
52212
52213 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52214
52215         * lib/argp.h (__option_is_short): Check upper limit of
52216         __key. Isprint() requires its argument to have the value
52217         of an unsigned char or EOF.
52218
52219 2005-06-16  Jim Meyering  <jim@meyering.net>
52220
52221         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
52222         when either N or S is zero.
52223
52224 2005-06-16  Derek Price  <derek@ximbiot.com>
52225
52226         * m4/bison.m4: Declare YACC & YFLAGS precious.
52227
52228 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
52229
52230         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
52231         multibyte string or pattern, fall back on unibyte matching.
52232         Problem reported by James Youngman.
52233
52234 2005-06-08  Bruno Haible  <bruno@clisp.org>
52235
52236         * modules/csharpcomp: New file.
52237         * MODULES.html.sh (C#): Add csharpcomp.
52238
52239 2005-06-08  Bruno Haible  <bruno@clisp.org>
52240
52241         * m4/csharpcomp.m4: New file, from GNU gettext.
52242
52243 2005-06-08  Bruno Haible  <bruno@clisp.org>
52244
52245         * lib/csharpcomp.h: New file, from GNU gettext.
52246         * lib/csharpcomp.c: New file, from GNU gettext.
52247         * lib/csharpcomp.sh.in: New file, from GNU gettext.
52248
52249 2005-06-08  Bruno Haible  <bruno@clisp.org>
52250
52251         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
52252         warning on mingw.
52253
52254 2005-06-07  Derek Price  <derek@ximbiot.com>
52255
52256         Sync from CVS.
52257         * lib/glob_.h: Indent nested #ifdef.
52258
52259 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
52260
52261         Sync from coreutils.
52262         Use "file name" when talking about file names, instead of "filename"
52263         or "path", as per the GNU coding standards.
52264         * lib/mkdir-p.c: Renamed from makepath.c.
52265         (make_dir_parents): Renamed from make_path.  All callers changed.
52266         * lib/mkdir-p.h: Likewise.  All includers changed.
52267         * lib/filenamecat.c: Renamed from path-concat.c.
52268         (file_name_concat): Renamed from path_concat.  All callers changed.
52269         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
52270         * lib/filenamecat.h: Likewise.  All includers changed.
52271         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
52272         in comments or local variable names.
52273         * lib/basename.c: Likewise.
52274         * lib/canonicalize.c, canonicalize.h: Likewise.
52275         * lib/dirname.c, dirname.h: Likewise.
52276         * lib/euidaccess.c: Likewise.
52277         * lib/exclude.c: Likewise
52278         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
52279         * lib/fsusage.c, fsuage.h: Likewise.
52280         * lib/fts.c, fts_.h: Likewise.
52281         * lib/getcwd.c: Likewise.
52282         * lib/getloadavg.c: Likewise.
52283         * lib/mkstemp.c: Likewise.
52284         * lib/mountlist.c, mountlist.h: Likewise.
52285         * lib/openat.c, openat.h: Likewise.
52286         * lib/readlink-stub.c: Likewise.
52287         * lib/readutmp.c, readutmp.h: Likewise.
52288         * lib/rename.c: Likewise.
52289         * lib/rmdir.c: Likewise.
52290         * lib/same.c: Likewise.
52291         * lib/savedir.c: Likewise.
52292         * lib/stripslash.c: Likewise.
52293         * lib/tempname.c: Likewise.
52294         * lib/xreadlink.c: Likewise.
52295         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
52296         All uses changed.
52297         * lib/exclude.h: Likewise.
52298
52299         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
52300         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
52301         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
52302         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
52303         * lib/pathmax.h: Include <limits.h> unconditionally, since other
52304         files have been getting away with it for years (MORE/BSD 4.3
52305         is extinct now).
52306         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
52307         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
52308
52309         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
52310         Define to 256, not 255, as per modern POSIX.
52311
52312 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
52313
52314         Sync from coreutils.
52315         Use "file name" when talking about file names, instead of "filename"
52316         or "path", as per the GNU coding standards.
52317         * MODULES.html.sh: mkdir-p renamed from makepath.
52318         filenamecat renamed from path-concat.
52319         * modules/filenamecat: Renamed from modules/path-concat.
52320         (Files): filenamecat.h and filenamecat.c renamed from
52321         path-concat.h and path-concat.c.
52322         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
52323         (Include): filenamecat.h, not path-concat.h.
52324         * modules/mkdir-p: Renamed from modules/makepath.
52325         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
52326         makepath.c.
52327         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
52328         (Include): mkdir-p.h, not makepath.h.
52329
52330 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
52331
52332         Sync from coreutils.
52333         * m4/mkdir-p.m4: Renamed from makepath.m4.
52334         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
52335         Rename files from makepath.c to mkdir-p.c, and from
52336         makepath.h to mkdir-p.h.
52337         * m4/filenamecat.m4: Renamed from path-concat.m4.
52338         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
52339         Rename files from path-concat.c to filenamecat.c,
52340         and from path-concat.h to filenamecat.h.
52341         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
52342         "file name" in local variables or comments.
52343         * m4/rename.m4: Likewise.
52344
52345 2005-06-01  Bruno Haible  <bruno@clisp.org>
52346
52347         * modules/csharpexec: New file.
52348         * MODULES.html.sh (C#): New section.
52349
52350 2005-06-01  Bruno Haible  <bruno@clisp.org>
52351
52352         * m4/csharp.m4: New file, from GNU gettext.
52353         * m4/csharpexec.m4: New file, from GNU gettext.
52354
52355 2005-06-01  Bruno Haible  <bruno@clisp.org>
52356
52357         * lib/csharpexec.h: New file, from GNU gettext.
52358         * lib/csharpexec.c: New file, from GNU gettext.
52359         * lib/csharpexec.sh.in: New file, from GNU gettext.
52360
52361 2005-05-31  Derek Price  <derek@ximbiot.com>
52362             Paul Eggert  <eggert@cs.ucla.edu>
52363
52364         Sync from cvs.
52365         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
52366
52367 2005-05-31  Derek Price  <derek@ximbiot.com>
52368             Paul Eggert  <eggert@cs.ucla.edu>
52369
52370         Sync from cvs.
52371         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
52372
52373 2005-05-29  Derek Price  <derek@ximbiot.com>
52374
52375         * config/srclist.txt (glob_.h, glob.c): Add these files.
52376
52377 2005-05-29  Derek Price  <derek@ximbiot.com>
52378
52379         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
52380         * modules/glob: New file.
52381         * modules/getlogin_r: Add link to POSIX spec in description.
52382
52383 2005-05-29  Derek Price  <derek@ximbiot.com>
52384             Paul Eggert  <eggert@cs.ucla.edu>
52385
52386         * m4/glob.m4: New file.
52387
52388 2005-05-29  Derek Price  <derek@ximbiot.com>
52389             Paul Eggert  <eggert@cs.ucla.edu>
52390
52391         * lib/glob_.h, lib/glob.c: New files.
52392
52393 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
52394
52395         * modules/fts (Files): Remove m4/inttypes-pri.m4.
52396         * modules/fts-lgpl (Depends-on): Remove gettext.
52397
52398 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
52399
52400         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
52401         and don't require gt_INTTYPES_PRI.
52402
52403 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
52404
52405         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
52406
52407         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
52408         the configuration hassle isn't worth it.
52409         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
52410         (LONGEST_MODIFIER, PRIuMAX): Remove.
52411
52412 2005-05-27  Bruno Haible  <bruno@clisp.org>
52413
52414         * lib/getlogin_r.h: Remove second include of <stddef.h>.
52415
52416 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
52417
52418         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
52419         _POSIX_PTHREAD_SEMANTICS for Solaris.
52420
52421 2005-05-25  Derek Price  <derek@ximbiot.com>
52422
52423         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
52424
52425 2005-05-25  Derek Price  <derek@ximbiot.com>
52426             Paul Eggert  <eggert@cs.ucla.edu>
52427
52428         * modules/getlogin_r, m4/getlogin_r.m4: New files.
52429         * lib/getlogin_r.c, getlogin_r.h: New files.
52430
52431 2005-05-25  Bruno Haible  <bruno@clisp.org>
52432             Derek Price  <derek@ximbiot.com>
52433
52434         * lib/getlogin_r.h: Simplify API documentation.
52435
52436 2005-05-23  Derek Price  <derek@ximbiot.com>
52437
52438         * modules/minmax (Files): Add m4/minmax.m4.
52439         (configure.ac): Add gl_MINMAX.
52440
52441 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
52442
52443         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
52444         so that unistd-safer.h (GPL'ed code) need not be included.
52445
52446 2005-05-22  Bruno Haible  <bruno@clisp.org>
52447
52448         * m4/minmax.m4: New file.
52449         Based on a patch by Derek Price <derek@ximbiot.com>.
52450
52451 2005-05-22  Bruno Haible  <bruno@clisp.org>
52452
52453         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
52454         (INT64_MIN): Fix definition.
52455         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
52456
52457         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
52458         NEED_SIGNED_INT_TYPES.
52459
52460         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
52461         HAVE_SYSTEM_INTTYPES.
52462
52463 2005-05-22  Bruno Haible  <bruno@clisp.org>
52464
52465         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
52466         Also include <sys/param.h> if it defines MIN, MAX.
52467         Based on a patch by Derek Price <derek@ximbiot.com>.
52468
52469 2005-05-21  Jim Meyering  <jim@meyering.net>
52470
52471         * modules/fts (Files): Add m4/inttypes-pri.m4.
52472         (Depends-on): Add lstat and remove gettext.  Alphabetize.
52473
52474 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52475
52476         New fts module.
52477         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
52478         (setup_dir, free_dir): New functions.
52479         (enter_dir, leave_dir): Define trivial
52480         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
52481         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
52482         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
52483         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
52484         Move to fts-cycle.c.
52485         (fts_open): Use setup_dir.
52486         (fts_close): Use free_dir.
52487         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
52488         This adds a label and some gotos, but the alternatives were messier.
52489         Check for memory allocation failure when entering a dir.
52490         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
52491         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
52492         (FTS): New member fts_cycle, that is a union that contains the
52493         old active_dir_ht and cycle_state.  All uses changed to mention
52494         fts_cycle.ht and fts_cycle.state.
52495         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
52496         fts.c, with the following changes:
52497         (setup_dir, free_dir): New functions.
52498         (enter_dir): Now returns bool.  Return true if successful, false
52499         if memory exhausted.  All callers changed.
52500         Do not bother partly cleaning up on
52501         memory allocation failure; that is free_dir's job.
52502         However, free ad if hash_insert fails, to avoid memory leak.
52503         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
52504         fts->fts_options to see which union member to use.
52505
52506 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52507
52508         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
52509         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
52510
52511 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52512
52513         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
52514
52515 2005-05-20  Jim Meyering  <jim@meyering.net>
52516
52517         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
52518         Now a macro, to pacify GCC.
52519
52520 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
52521
52522         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
52523         of -1.
52524
52525 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
52526
52527         * lib/chown.c (rpl_chown): Return -1 on failure.
52528
52529 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
52530
52531         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
52532         Don't check for stddef.h.
52533         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
52534         don't use its results.
52535         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
52536         since we include them unconditionally.  Don't require
52537         AM_STDBOOL_H, since stdbool is a prerequisite.
52538         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
52539         since we assume C89 or better.
52540         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
52541         as we don't use their results.
52542         Don't check for fchdir, memmove, memset, strrchr, as we use
52543         them unconditionally.
52544         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
52545         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
52546
52547 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
52548
52549         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
52550         Include <stddef.h> unconditionally, since we assume C89 now.
52551         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
52552         * lib/fts.c: Include fts_.h first, to check interface.
52553         Do not include intprops.h; no longer needed.
52554         Include cycle-check.h and hash.h, since fts_.h no longer does.
52555         Remove unnecessary casts of closedir to void.
52556         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
52557         decide whether to decrement nlinks.
52558         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
52559         (FTS): Use struct hash_table * instead of Hash_table, so that
52560         we no longer need to include hash.h here.
52561
52562 2005-05-18  Jim Meyering  <jim@meyering.net>
52563
52564         * modules/dirfd (License): Change to LGPL.  Most of the code
52565         is already in the public domain.
52566
52567 2005-05-18  Jim Meyering  <jim@meyering.net>
52568
52569         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
52570         Reported by Yoann Vandoorselaere.
52571
52572 2005-05-17  Jim Meyering  <jim@meyering.net>
52573
52574         * m4/fts.m4: New file, from coreutils.
52575
52576 2005-05-17  Jim Meyering  <jim@meyering.net>
52577
52578         * lib/fts.c, lib/fts_.h: New files, from coreutils.
52579
52580 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
52581
52582         Sync from coreutils.
52583         * m4/unlinkdir.m4: New file.
52584
52585 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
52586
52587         Sync from coreutils.
52588         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
52589         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
52590         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
52591         White space changes only.
52592         * lib/makepath.c (make_path): Port to hosts where leading "//" is
52593         special.
52594         * lib/yesno.c: Include getline.h, not ctype.h.
52595         (yesno): Don't remove leading white space; POSIX doesn't allow it.
52596         Use getline to remove arbitrary restriction on response length.
52597
52598 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
52599
52600         * config/srclist-update: Spell out "Street" in FSF postal
52601         mail address; this is the style the FSF seems to prefer.
52602
52603         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
52604         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
52605         this updates FSF postal mail address.
52606
52607         Sync from coreutils.
52608         * modules/unlinkdir: New file.
52609         * modules/yesno (Depends-on): Add getline.
52610         * MODULES.html.sh (File system functions): Add unlinkdir.
52611
52612 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
52613
52614         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
52615         lib/strsep.h:
52616         Change the initial comment to refer to GPL, not LGPL.
52617         gnulib-tool will change it to LGPL as needed.
52618
52619         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
52620         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
52621         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
52622         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
52623         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
52624         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
52625         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
52626         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
52627         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
52628         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
52629         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
52630         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
52631         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
52632         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
52633         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
52634         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
52635         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
52636         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
52637         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
52638         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
52639         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
52640         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
52641         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
52642         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
52643         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
52644         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
52645         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
52646         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
52647         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
52648         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
52649         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
52650         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
52651         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
52652         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
52653         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
52654         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
52655         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
52656         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
52657         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
52658         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
52659         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
52660         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
52661         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
52662         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
52663         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
52664         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
52665         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
52666         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
52667         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
52668         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
52669         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
52670         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
52671         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
52672         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
52673         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
52674         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
52675         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
52676         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
52677         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
52678         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
52679         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
52680         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
52681         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
52682         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
52683         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
52684         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
52685         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
52686         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
52687         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
52688         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
52689         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
52690         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
52691         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
52692         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
52693         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
52694         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
52695         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
52696         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
52697         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
52698         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
52699         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
52700         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
52701         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
52702         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
52703         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
52704         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
52705         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
52706         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
52707         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
52708         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
52709         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
52710         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
52711         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
52712         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
52713         lib/yesno.c, lib/yesno.h:
52714         Update FSF postal mail address.
52715
52716 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
52717
52718         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
52719         tests/test-memmem.c, tests/test-stpncpy.c:
52720         Update FSF postal mail address.
52721
52722 2005-05-13  Bruno Haible  <bruno@clisp.org>
52723
52724         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
52725         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
52726         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
52727         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
52728         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
52729         Add support for 64-bit integers in the MSVC compiler.
52730
52731 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52732
52733         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
52734
52735 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
52736
52737         * gnulib-tool (func_import): Sort and uniquify recommended includes.
52738
52739 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
52740
52741         * doc/getdate.texi (General date syntax): Don't say that date
52742         date --iso-8601=ns generates acceptable dates; it doesn't yet.
52743         Problem reported by Nic Ferrier.
52744
52745 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52746
52747         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
52748         specified in ai_socktype. Fix invalid ai_protocol
52749         check. ai_protocol is usually set to 0 or depending on
52750         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
52751         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
52752         ai_socktype / ai_protocol in the returned addrinfo structure.
52753
52754 2005-05-10  Simon Josefsson  <jas@extundo.com>
52755
52756         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
52757         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52758
52759 2005-05-10  Karl Berry  <karl@gnu.org>
52760
52761         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
52762         (from http://www.gnu.org/licenses).
52763         * doc/COPYING.LIB: also rename to COPYING.LESSER.
52764         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
52765         fdl.texi suffices.
52766
52767 2005-05-10  Karl Berry  <karl@gnu.org>
52768
52769         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
52770         (COPYING.DOC): remove.
52771
52772         * config/srclist-update: new FSF address.
52773
52774 2005-05-10  Derek Price  <derek@ximbiot.com>
52775
52776         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
52777         possible.
52778
52779 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52780             Bruno Haible  <bruno@clisp.org>
52781
52782         * modules/inet_ntop: New file.
52783         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52784         inet_ntop.
52785
52786 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52787             Bruno Haible  <bruno@clisp.org>
52788
52789         * m4/inet_ntop.m4: New file.
52790
52791 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52792             Bruno Haible  <bruno@clisp.org>
52793
52794         * lib/inet_ntop.h: New file.
52795         * lib/inet_ntop.c: New file, from glibc with modifications.
52796
52797 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
52798
52799         * modules/time_r (License): Change to LGPL.
52800         * modules/extensions (License): Change to LGPL.  Actually,
52801         the license is more permissive than that, but currently gnulib-tool
52802         doesn't know how to handle more-permissive licenses.
52803
52804         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
52805         Problem reported by Dave Love.
52806
52807 2005-05-08  Jim Meyering  <jim@meyering.net>
52808
52809         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
52810         blank.
52811
52812 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
52813
52814         * modules/argmatch (Depends-on): Add stdbool.
52815         * modules/backupfile (Depends-on): Likewise.
52816         * modules/chdir-long (Depends-on): Likewise.
52817         * modules/closeout (Depends-on): Likewise.
52818         * modules/cycle-check (Depends-on): Likewise.
52819         * modules/dirname (Depends-on): Likewise.
52820         * modules/fnmatch (Depends-on): Likewise.
52821         * modules/fsusage (Depends-on): Likewise.
52822         * modules/fwriteerror (Depends-on): Likewise.
52823         * modules/getcwd (Depends-on): Likewise.
52824         * modules/getloadavg (Depends-on): Likewise.
52825         * modules/hard-locale (Depends-on): Likewise.
52826         * modules/makepath (Depends-on): Likewise.
52827         * modules/mountlist (Depends-on): Likewise.
52828         * modules/nanosleep (Depends-on): Likewise.
52829         * modules/posixtm (Depends-on): Likewise.
52830         * modules/quotearg (Depends-on): Likewise.
52831         * modules/readtokens (Depends-on): Likewise.
52832         * modules/readtokens0 (Depends-on): Likewise.
52833         * modules/readutmp (Depends-on): Likewise.
52834         * modules/save-cwd (Depends-on): Likewise.
52835         * modules/strftime (Depends-on): Likewise.
52836         * modules/userspec (Depends-on): Likewise.
52837         * modules/utimecmp (Depends-on): Likewise.
52838         * modules/xgetcwd (Depends-on): Likewise.
52839         * modules/xnanosleep (Depends-on): Likewise.
52840         * modules/xstrtod (Depends-on): Likewise.
52841         * modules/yesno (Depends-on): Likewise.
52842
52843 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
52844
52845         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
52846         needless checks.
52847
52848 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52849
52850         Merge from coreutils.  Among other things,
52851         add bulletproofing for cases where stdin, stdout, or stderr are closed.
52852         * lib/fd-safer.c: New file.
52853         * lib/fcntl-safer.h, open-safer.c: Remove.
52854         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
52855         * lib/dup-safer.c: Include unistd-safer.h first.
52856         Don't include errno.h.
52857         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
52858         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
52859         * lib/file-type.c: Rely on file-type.h change.
52860         * lib/getloadavg.c: Include unistd-safer.h.
52861         (getloadavg): Use safer open.
52862         * lib/getusershell.c: Include "stdio-safer.h".
52863         (getusershell): Use safer fopen.
52864         * lib/long-options.c (long_options): Use NULL rather than 0.
52865         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
52866         'free'.
52867         * lib/modechange.c: Likewise.
52868         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
52869         (MODE_DONE): New constant.
52870         (struct mode_change): Remove 'next' member.
52871         (make_node_op_equals): New function; like the old one of the
52872         same name, except it allocates an array.
52873         (mode_compile, mode_create_from_ref): Use it.
52874         (mode_compile): Allocate result as an array, not a linked list.
52875         Parse octal string ourself, so that we catch mistakes like "+0".
52876         (mode_adjust): Arg is an array, not a linked list.
52877         * lib/modechange.c: Include stat-macros.h, xalloc.h.
52878         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
52879         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
52880         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
52881         Remove.  This is now stat-macros.h's job.
52882         (talloc): Remove.  All callers replaced by xalloc, so that
52883         our invokers don't have to worry about reporting memory failures.
52884         (make_node_op_equals): Remove.
52885         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
52886         New constants.
52887         (struct mode_change): Moved here from modechange.h.
52888         (mode_append_entry): Remove.
52889         (mode_compile): Remove MASKED_OPS arg, since it encouraged
52890         apps to have incorrect behavior.  Use simpler algorithm for head
52891         and tail.  Don't futz with umask; that's now the job of mode_adjust.
52892         Detect more invalid usages rather than having somewhat-random behavior.
52893         Don't insert an "a=" action, as that leads to incorrect behavior.
52894         (mode_compile, mode_create_from_ref): Return NULL on error instead
52895         of an enum, since now there's only one way to have an error.  All
52896         callers changed.
52897         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
52898         at the correct time.  Simplify calculation of "+u" and its ilk.
52899         Don't mishandle "+X".
52900         (mode_free): Remove "register" and localize decls.
52901         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
52902         (struct mode_change): Move to modechange.c; callers don't
52903         need to see this stuff.
52904         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
52905         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
52906         (mode_change, mode_adjust): Reflect the new signatures noted above.
52907         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
52908         that might redefine system include files.
52909         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
52910         (my_usleep): Use NULL rather than (void *) 0.
52911         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
52912         Use siginterrupt to specify that system calls should be interrupted.
52913         (rpl_nanosleep): Move initialization of suspended closer to call of
52914         my_usleep.
52915         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
52916         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
52917         (desirable_utmp_entry): New function.
52918         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
52919         using x2nrealloc, to simplify logic.
52920         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
52921         size calculation.  Do not assume utmp file is a regular file.
52922         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
52923         (READ_UTMP_CHECK_PIDS): New constant.
52924         * lib/save-cwd.c: Include unistd-safer.h.
52925         (save_cwd): Use fd_safer.
52926         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
52927         [!_LIBC] Include "stat-macros.h" instead.
52928         * lib/unistd-safer.h (fd_safer): New decl.
52929
52930 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52931
52932         * modules/getloadavg (Depends-on): Add unistd-safer.
52933         * modules/getusershell (Depends-on): Add stdio-safer.
52934         * modules/lstat (Depends-on): Remove xalloc.
52935         * modules/mkstemp (Depends-on): Add stat-macros.
52936         * modules/modechange (Depends-on): Remove xstrtol.
52937         Add stat-macros, xalloc.
52938         * modules/save-cwd (Depends-on): Add unistd-safer.
52939         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
52940         * modules/unistd-safer (Files): Add lib/fd-safer.c
52941         (Makefile.am): Remove lib_SOURCES.
52942
52943         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
52944         Remove fcntl-safer; unistd-safer supersedes it.
52945
52946 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52947
52948         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
52949         AC_HEADER_STAT.
52950         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
52951         (gl_PREREQ_CHOWN): Remove.
52952         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
52953         it.  Don't require AC_HEADER_STAT.
52954         (gl_PREREQ_LSTAT): Remove.
52955         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
52956         Don't require AC_HEADER_STAT.
52957         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
52958         (gl_PREREQ_RMDIR): Remove.
52959         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
52960         mention stat-macros.h or AC_HEADER_STAT, since we'll make
52961         the stat-macros module a prerequisite.
52962         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
52963         * m4/filemode.m4 (gl_FILEMODE): Likewise.
52964         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
52965         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
52966         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
52967         variable names.
52968         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
52969         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
52970         variable prefixes.
52971         * m4/fcntl-safer.m4: Remove.
52972         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
52973         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
52974         Invoke gl_PREREQ_FD_SAFER.
52975         (gl_PREREQ_FD_SAFER): New macro.
52976         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
52977         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
52978         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
52979         Remove duplicate call to AC_LIBOBJ(readutmp).
52980         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
52981
52982         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
52983         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
52984
52985 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52986
52987         * MODULES.html.sh (Misc): Add byteswap.
52988
52989 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
52990
52991         * modules/getcwd (Depends-on): Add extensions.
52992         * modules/openat (Depends-on): Likewise.
52993
52994 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
52995
52996         * modules/byteswap: New file.
52997
52998 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
52999
53000         * m4/byteswap.m4: New file.
53001
53002 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
53003
53004         * lib/byteswap_.h: New file.
53005
53006 2005-04-25  Karl Berry  <karl@gnu.org>
53007
53008         * m4/gettext.m4: Update from GNU gettext 0.14.4.
53009
53010 2005-04-25  Albert Chin  <china@thewrittenword.com>
53011
53012         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
53013         Toolkit C bug.
53014
53015 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
53016
53017         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
53018         (func_ln_if_changed) Remove forcibly for no error message
53019         in case file does not exist.
53020
53021 2005-04-19  Simon Josefsson  <jas@extundo.com>
53022
53023         * gnulib-tool (Options): Make --symlink mean --symbolic.
53024
53025 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
53026
53027         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
53028
53029 2005-04-16  Simon Josefsson  <jas@extundo.com>
53030
53031         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
53032
53033 2005-04-15  Simon Josefsson  <jas@extundo.com>
53034
53035         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
53036
53037 2005-04-15  Simon Josefsson  <jas@extundo.com>
53038
53039         * gnulib-tool: Rename --symlink to --symbolic.
53040
53041 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
53042
53043         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
53044         symbolic links to files instead of copying/moving.  Add --aux-dir,
53045         specifying directory relative --dir where auxiliary build tools
53046         are placed.
53047
53048 2005-04-14  Bruno Haible  <bruno@clisp.org>
53049
53050         * modules/allocsa (License): Change to LGPL.
53051         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53052
53053 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
53054
53055         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
53056         that "UTC +1 second" continues to work.  Problem reported
53057         by Dmitry V. Levin.
53058         (relunit_snumber): New rule.
53059         (relunit): Use it.
53060
53061 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
53062
53063         * lib/getdate.y (universal_time_zone_table): New constant.
53064         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
53065         universal_time_zone_table.
53066         (lookup_zone): Prefer universal_time_zone_table to
53067         local_time_zone_table, so that "GMT" time stamps are allowed in
53068         London during the summer.  Problem reported by Ian Abbott.
53069
53070 2005-04-12  Jim Meyering  <jim@meyering.net>
53071
53072         * lib/human.c (humblock): Set *options even when returning due to
53073         xstrtoumax conversion failure.  Thanks to a used-uninitialized
53074         warning from gcc-4.
53075
53076 2005-04-09  Jim Meyering  <jim@meyering.net>
53077
53078         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
53079         -Wuninitialized: initialize tm0.tm_year.
53080
53081 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
53082
53083         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
53084         count, since there's no maximum.  All uses changed.
53085         Add member dsts_seen.
53086         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
53087         not being INT_MAX.
53088         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
53089         Use pc_rels_seen to decide whther a date is absolute.
53090
53091         * lib/getdate.y (number): Don't overwrite year.
53092         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
53093         check.
53094
53095 2005-04-02  Simon Josefsson  <jas@extundo.com>
53096
53097         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
53098         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
53099
53100 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
53101
53102         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
53103         where no absolute path name can be longer than PATH_MAX.
53104
53105 2005-03-27  Jim Meyering  <jim@meyering.net>
53106
53107         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
53108
53109 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
53110
53111         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
53112         "one's complement" -> "ones' complement" in comment, as per Knuth.
53113         "value of type" -> "type or expression" in comment.
53114         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
53115
53116 2005-03-26  Jim Meyering  <jim@meyering.net>
53117
53118         Comment nits.
53119         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
53120         Correct typos: s/or/of/.
53121
53122 2005-03-26  Jim Meyering  <jim@meyering.net>
53123
53124         * modules/check-include-files: Move to ../ and rename to...
53125         * check-module: ...this.
53126
53127 2005-03-25  Jim Meyering  <jim@meyering.net>
53128
53129         * modules/xvasprintf (Files): Add xalloc.h.
53130
53131 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
53132
53133         * modules/gettext (Files): config/config.rpath ->
53134         build-aux/config.rpath
53135         * modules/iconv (Files): Likewise.
53136         Problem reported by Oskar Liljeblad.
53137
53138 2005-03-23  Jim Meyering  <jim@meyering.net>
53139
53140         * modules/check-include-files: New script to check for
53141         missing dependencies, multiple includes, etc.
53142
53143         * modules/c-strtold (Depends-on): Add xalloc.
53144         * modules/c-strtod (Depends-on): Add xalloc.
53145         * modules/hash (Depends-on): Add xalloc.
53146         (Files): Remove lib/xalloc.h.
53147
53148         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
53149         * modules/userspec (Files): Add lib/inttostr.h.
53150
53151 2005-03-23  Jim Meyering  <jim@meyering.net>
53152
53153         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
53154
53155 2005-03-22  Jim Meyering  <jim@meyering.net>
53156
53157         * modules/stat-macros: New module.
53158         * modules/canonicalize, modules/euidaccess, modules/file-type,
53159         * modules/filemode, modules/lchown, modules/makepath,
53160         * modules/rmdir, modules/stat: Depend on new stat-macros module
53161         rather than listing lib/stat-macros.h manually.
53162         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
53163
53164 2005-03-22  Jim Meyering  <jim@meyering.net>
53165
53166         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
53167
53168 2005-03-22  Bruno Haible  <bruno@clisp.org>
53169
53170         * config/srclist.txt: Replace target directory 'config' with
53171         'build-aux'.
53172         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
53173         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
53174         ../build-aux/.
53175
53176 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
53177
53178         * modules/chdir-long (Depends-on): Add mempcpy.
53179
53180         * modules/acl, modules/backupfile, modules/c-strtod,
53181         modules/c-strtold, modules/canon-host, modules/canonicalize,
53182         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
53183         modules/exclude, modules/exitfail, modules/file-type,
53184         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
53185         modules/getdate, modules/getline, modules/getpagesize,
53186         modules/getpass, modules/getugroups, modules/group-member,
53187         modules/hard-locale, modules/hash, modules/human, modules/idcache,
53188         modules/inttostr, modules/long-options, modules/makepath,
53189         modules/md5, modules/memcasecmp, modules/memcoll,
53190         modules/modechange, modules/mountlist, modules/path-concat,
53191         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
53192         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
53193         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
53194         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
53195         modules/strftime, modules/strndup, modules/strverscmp,
53196         modules/timespec, modules/unlocked-io, modules/userspec,
53197         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
53198         modules/yesno:
53199         Remove lib_SOURCES line from Makefile.am section, as this is now
53200         done automatically by the corresponding Autoconf macro.
53201
53202 2005-03-21  Jim Meyering  <jim@meyering.net>
53203
53204         Changes imported from coreutils.
53205
53206         * lib/cycle-check.c: Don't include xalloc.h.
53207
53208         * lib/path-concat.c: Don't include assert.h.
53209         (path_concat): Remove assertion that would have triggered
53210         for ABASE starting with more than one slash.
53211         Reported by Andreas Schwab.
53212
53213         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
53214         properly when ABASE is an absolute file name.
53215         Correct the description of this function.
53216         Include <assert.h>.
53217         Add an assertion and a test driver.
53218         This fixes a bug introduced on 2004-07-02.
53219         Andreas Schwab reported the resulting failure of cp --parents:
53220         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
53221
53222 2005-03-21  Jim Meyering  <jim@meyering.net>
53223
53224         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
53225         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
53226
53227 2005-03-21  Jim Meyering  <jim@meyering.net>
53228         and  Paul Eggert  <eggert@cs.ucla.edu>
53229
53230         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
53231         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
53232         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
53233         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
53234         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
53235         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
53236         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
53237         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
53238         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
53239         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
53240         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
53241         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
53242         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
53243         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
53244         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
53245         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
53246         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
53247         for these modules.
53248
53249 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
53250
53251         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
53252         (which shouldn't happen), generate nothing instead of returning 0
53253         immediately, so that nstrftime (NULL, ...) doesn't return 0.
53254
53255 2005-03-16  Bruno Haible  <bruno@clisp.org>
53256
53257         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
53258         HAVE_LONGLONG_64BIT.
53259
53260 2005-03-16  Bruno Haible  <bruno@clisp.org>
53261
53262         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
53263         HAVE_LONGLONG_64BIT.
53264
53265 2005-03-16  Bruno Haible  <bruno@clisp.org>
53266
53267         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
53268         HAVE_LONGLONG_64BIT.
53269
53270 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
53271
53272         * lib/strftime.c (my_strftime): Prepend space to format so that we can
53273         reliably distinguish strftime failure from empty output on POSIX
53274         hosts.
53275
53276 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
53277
53278         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
53279         (iconv_string): Don't guess a size-zero buffer, as that might cause
53280         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
53281         result would be 'too large', where 'too large' is (heuristically)
53282         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
53283         overflow concerns.  This will prevent some unwanted malloc failures
53284         when the inputs are very large.
53285
53286 2005-03-15  Karl Berry  <karl@gnu.org>
53287
53288         * config/srclist.txt (config.rpath): from gettext.
53289         * config/config.rpath: update.
53290
53291 2005-03-15  Bruno Haible  <bruno@clisp.org>
53292
53293         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
53294         to 'negate'.
53295
53296         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
53297         variable.
53298
53299         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
53300         results.
53301
53302 2005-03-14  Simon Josefsson  <jas@extundo.com>
53303
53304         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
53305         <fx@gnu.org>.
53306
53307 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
53308
53309         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
53310         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
53311         intprops.h.
53312         * lib/strtol.c: Likewise.
53313
53314 2005-03-14  Jim Meyering  <jim@meyering.net>
53315
53316         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
53317         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
53318         to be nonzero so that we (and caller) can detect the difference
53319         between a valid zero-length expansion and an error return, even
53320         when the underlying strftime fails before writing anything into
53321         that location.
53322
53323 2005-03-14  Bruno Haible  <bruno@clisp.org>
53324
53325         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
53326         Update from GNU gettext 0.14.3.
53327
53328 2005-03-10  Jim Meyering  <jim@meyering.net>
53329
53330         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
53331
53332 2005-03-10  Jim Meyering  <jim@meyering.net>
53333
53334         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
53335         so that this module works on systems without fchdir.
53336
53337 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
53338
53339         Factor int-properties macros into a single file, except for
53340         glibc-related files.
53341         * lib/intprops.h: New file.
53342         * lib/getloadavg.c: Include it instead of limits.h.
53343         (INT_STRLEN_BOUND): Remove.
53344         * lib/human.c: Include intprops.h.
53345         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
53346         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
53347         302/1000.
53348         * lib/inttostr.h: Include intprops.h instead of limits.h.
53349         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
53350         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
53351         for consistency with intprops.h.
53352         (time_t_is_integer, twos_complement_arithmetic): Use them.
53353         * lib/sig2str.h: Include <signal.h>, intprops.h.
53354         (INT_STRLEN_BOUND): Remove.
53355         * lib/strftime.c (TYPE_SIGNED): Remove.
53356         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
53357         * lib/strtol.c: Adjust comments to match intprops.h.
53358         * lib/userspec.c: Include intprops.h.
53359         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
53360         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
53361         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
53362         instead of rolling our own expressions.
53363         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
53364
53365         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
53366         instead of int.
53367         (my_strftime): Do not mishandle years close to INT_MAX, by doing
53368         the right thing even if adding 1900 would overflow.  Similarly
53369         for tm_mon + 1 and tm_yday + 1.
53370         Make %Y always equivalent to %C%y, and similarly for %G and %g.
53371         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
53372         (DO_SIGNED_NUMBER): New macro.
53373         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
53374
53375 2005-03-07  Bruno Haible  <bruno@clisp.org>
53376
53377         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
53378
53379 2005-03-07  Bruno Haible  <bruno@clisp.org>
53380
53381         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
53382
53383 2005-03-04  Derek R. Price  <derek@ximbiot.com>
53384
53385         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
53386         (func_import): Only replace files via --import when they have actually
53387         changed.
53388
53389 2005-03-03  Derek R. Price  <derek@ximbiot.com>
53390
53391         * m4/mmap-anon.m4: New file.
53392         * m4/pagealign_alloc.m4: New file.
53393
53394 2005-03-03  Derek R. Price  <derek@ximbiot.com>
53395             Bruno Haible  <bruno@clisp.org>
53396
53397         * modules/pagealign_alloc: New file.
53398         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
53399
53400 2005-03-03  Derek R. Price  <derek@ximbiot.com>
53401             Bruno Haible  <bruno@clisp.org>
53402
53403         * lib/pagealign_alloc.h: New file.
53404         * lib/pagealign_alloc.c: New file.
53405
53406 2005-03-03  Bruno Haible  <bruno@clisp.org>
53407
53408         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
53409         Use an all-permissive copyright notice, recommended by RMS.
53410
53411 2005-03-02  Bruno Haible  <bruno@clisp.org>
53412
53413         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
53414         of AIX, the replacement has to be done only after <string.h> is
53415         included, therefore not in config.h. stpncpy.h does the replacement,
53416         and stpncpy.c uses it.
53417
53418 2005-03-02  Bruno Haible  <bruno@clisp.org>
53419
53420         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
53421         stpncpy.c uses it.
53422
53423 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53424
53425         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
53426         The workaround isn't strictly needed for POSIX conformance, and
53427         it's too much of a pain to configure and maintain.  We'll ask
53428         people to fix their kernels instead.
53429         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
53430         (NANOSLEEP_BUG_WORKAROUND): Remove.
53431         (xnanosleep): Remove the workaround.
53432
53433 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53434
53435         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
53436         Reported by Derek Price.
53437         (Include): Add "timespec.h".
53438
53439         * modules/xnanosleep (Depends-on): Remove gethrxtime.
53440
53441 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53442
53443         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
53444         to detect nanosleep bug.
53445
53446 2005-03-01  Bruno Haible  <bruno@clisp.org>
53447
53448         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
53449
53450 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
53451
53452         * modules/gethrxtime: New file.
53453         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
53454         (Depends-on): Add gethrxtime.
53455         (configure.ac): Add gl_XNANOSLEEP.
53456         (Makefile.am): Remove lib_SOURCES line.
53457
53458 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
53459
53460         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
53461         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
53462
53463 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
53464
53465         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
53466         * lib/timespec.h (gettime): Return void, since it always
53467         succeeds now.  All uses changed.
53468         * lib/gettime.c (gettime) Likewise.
53469         [HAVE_NANOTIME]: Prefer nanotime.
53470         Assume gettimeofday succeeds, as POSIX requires.
53471         Assime time () succeeds, since other code already does.
53472         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
53473         (timespec_subtract): Remove.
53474         (NANOSLEEP_BUG_WORKAROUND): New constant.
53475         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
53476         things considerably.  Use it only on GNU/Linux hosts, since the
53477         workaround shouldn't be needed elsewhere.
53478
53479 2005-02-24  Bruno Haible  <bruno@clisp.org>
53480
53481         * modules/gettext (Files): Add m4/glibc2.m4.
53482
53483 2005-02-24  Bruno Haible  <bruno@clisp.org>
53484
53485         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
53486         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
53487         * m4/progtest.m4:
53488         Update from GNU gettext 0.14.2.
53489         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
53490
53491 2005-02-24  Bruno Haible  <bruno@clisp.org>
53492
53493         * lib/localcharset.c: Update from GNU gettext 0.14.2.
53494         * lib/config.charset: Update from GNU gettext 0.14.2.
53495
53496 2005-02-24  Bruno Haible  <bruno@clisp.org>
53497
53498         * lib/gettext.h: Update from GNU gettext 0.14.2.
53499
53500 2005-02-23  Simon Josefsson  <jas@extundo.com>
53501
53502         * m4/iconvme.m4: New file.
53503
53504 2005-02-23  Jim Meyering  <jim@meyering.net>
53505
53506         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
53507         change.
53508         Thanks to Bruno Haible for catching it.
53509
53510 2005-02-22  Simon Josefsson  <jas@extundo.com>
53511
53512         * modules/iconvme: New file.
53513
53514         * MODULES.html.sh: Add iconvme.
53515
53516 2005-02-22  Simon Josefsson  <jas@extundo.com>
53517
53518         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
53519
53520 2005-02-22  Simon Josefsson  <jas@extundo.com>
53521
53522         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
53523
53524 2005-02-22  Jim Meyering  <jim@meyering.net>
53525
53526         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
53527         s/ifndef/ifdef/.
53528
53529 2005-02-20  Neil Conway  <neilc@samurai.com>
53530
53531         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
53532         returned by OSX/Darwin if the specified buffer is not large
53533         enough for the hostname.
53534
53535 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53536
53537         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
53538         pass it to _help, otherwise the latter coredumps trying to
53539         dereference state.root_argp.
53540
53541 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53542
53543         * modules/chdir-long (Depends-on): Add memrchr.
53544         * modules/memrchr (Files): Add lib/memrchr.h.
53545         (Include): "memrchr.h".
53546
53547 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53548
53549         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
53550
53551 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53552
53553         * lib/memrchr.h: New file.
53554         * lib/chdir-long.c: Include it.
53555         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
53556         Don't bother including stddef.h.
53557
53558 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
53559
53560         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
53561         inclusion.
53562         Include <sys/types.h>, for dev_t.
53563         (ME_DUMMY, ME_REMOTE): Move from here....
53564         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
53565         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
53566         Dmitry V. Levin.
53567         Include mountlist.h first, to test the interface.
53568
53569 2005-01-29  Bruno Haible  <bruno@clisp.org>
53570
53571         * lib/progname.c (program_name): Initialize.
53572         Needed when linking statically on MacOS X.
53573
53574 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
53575
53576         Sync from coreutils.
53577         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
53578         (Depends-on): Add c-strtod.
53579         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
53580
53581 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
53582
53583         Sync from coreutils.
53584         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
53585
53586         Remove files that are specific to coreutils.
53587         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
53588
53589 2005-01-28  Bruno Haible  <bruno@clisp.org>
53590
53591         * modules/javacomp: New file.
53592         * MODULES.html.sh (Java): Add javacomp.
53593
53594 2005-01-28  Bruno Haible  <bruno@clisp.org>
53595
53596         * m4/javacomp.m4: New file, from GNU gettext.
53597
53598 2005-01-28  Bruno Haible  <bruno@clisp.org>
53599
53600         * lib/javacomp.sh.in: New file, from GNU gettext.
53601         * lib/javacomp.h: New file, from GNU gettext.
53602         * lib/javacomp.c: New file, from GNU gettext.
53603
53604 2005-01-26  Simon Josefsson  <jas@extundo.com>
53605
53606         * lib/gai_strerror.c: Use GPL in header.
53607
53608 2005-01-26  Bruno Haible  <bruno@clisp.org>
53609
53610         * modules/javaexec: New file.
53611         * MODULES.html.sh (Java): Add javaexec.
53612
53613 2005-01-26  Bruno Haible  <bruno@clisp.org>
53614
53615         * m4/javaexec.m4: New file, from GNU gettext.
53616
53617 2005-01-26  Bruno Haible  <bruno@clisp.org>
53618
53619         * lib/javaexec.sh.in: New file, from GNU gettext.
53620         * lib/javaexec.h: New file, from GNU gettext.
53621         * lib/javaexec.c: New file, from GNU gettext.
53622
53623 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53624
53625         * modules/lchown (Depends-on): Remove lchown.h
53626
53627 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53628
53629         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
53630         must be defined if the header file was not found, in order
53631         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
53632
53633 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53634
53635         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
53636         initializers for struct pentry_state.
53637         (__argp_error): Check return value of __asprintf
53638         (__argp_failure): Translate error message
53639
53640         * lib/argp-parse.c: Removed braces around the expansion of N_()
53641
53642 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
53643
53644         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
53645         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
53646         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
53647         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
53648         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
53649         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
53650         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
53651         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
53652         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
53653         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
53654         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
53655         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
53656         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
53657         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
53658         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
53659         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
53660         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
53661         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
53662         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
53663         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
53664         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
53665         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
53666         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
53667         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
53668         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
53669         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
53670         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
53671         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
53672         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
53673         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
53674         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
53675         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
53676         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
53677         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
53678         xstrtol.m4, xstrtoumax.m4, yesno.m4:
53679         Use an all-permissive copyright notice, recommended by RMS.
53680
53681 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
53682
53683         * modules/chdir-long (Depends-on): Remove mempcpy.
53684
53685 2005-01-21  Jim Meyering  <jim@meyering.net>
53686
53687         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
53688         same value as for Solaris 9.
53689
53690         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
53691         component length.  This included changing the parameter to be
53692         of type `char *' rather than `char const *'.
53693         * lib/chdir-long.h (chdir_long): Update prototype.
53694
53695         * lib/openat.c (fdopendir, fstatat): New functions.
53696         * lib/openat.h: Include headers required for use of DIR and struct
53697         stat.
53698         [AT_SYMLINK_NOFOLLOW]: Define.
53699         (fdopendir, fstatat): Add prototypes.
53700
53701 2005-01-21  Bruno Haible  <bruno@clisp.org>
53702
53703         * modules/classpath: New file.
53704         * MODULES.html.sh (Java): Add classpath.
53705
53706 2005-01-21  Bruno Haible  <bruno@clisp.org>
53707
53708         * lib/classpath.h: New file, from GNU gettext.
53709         * lib/classpath.c: New file, from GNU gettext.
53710
53711 2005-01-20  Simon Josefsson  <jas@extundo.com>
53712
53713         * modules/version-etc-fsf: New file.
53714
53715 2005-01-20  Simon Josefsson  <jas@extundo.com>
53716
53717         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
53718         * lib/version-etc.c: Remove version_etc_copyright.
53719         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
53720         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
53721
53722 2005-01-20  Simon Josefsson  <jas@extundo.com>
53723
53724         * lib/base64.h (isbase64): Add.
53725
53726         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
53727         using a unsigned prototype, don't inline.
53728         (base64_decode): Use it.
53729
53730 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53731
53732         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
53733         it.
53734
53735 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53736
53737         * lib/save-cwd.c (save_cwd): Remove code to support the case
53738         where fchdir is missing or flaky.
53739
53740 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53741
53742         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
53743
53744 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
53745
53746         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
53747         AC_LIBSOURCES now does this.
53748         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
53749         with new ullong_max module.
53750
53751 2005-01-19  Bruno Haible  <bruno@clisp.org>
53752
53753         * modules/sh-quote: New file.
53754         * MODULES.html.sh (Executing programs): Add sh-quote.
53755
53756 2005-01-19  Bruno Haible  <bruno@clisp.org>
53757
53758         * lib/sh-quote.h: New file, from GNU gettext.
53759         * lib/sh-quote.c: New file, from GNU gettext.
53760
53761 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
53762
53763         Merge from coreutils.
53764         * m4/ullong_max.m4: New file.
53765         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
53766         (gl_MACROS): Assume localeconv exists.
53767
53768 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
53769
53770         Merge changes from coreutils, as described below in several
53771         changelogs dated today.
53772
53773         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
53774         (O_DIRECTORY): Remove; not needed here, since "." must be
53775         a directory.  All uses removed.
53776         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
53777         universal on Suns, and we also need to test for IRIX.
53778         Revamp code to use 'if' rather than '#if'.
53779         Avoid unnecessary comparison of cwd->desc to 0.
53780
53781         * lib/utimens.c (futimens): Robustify the previous patch, by checking
53782         for known valid error numbers rather than observed invalid ones.
53783
53784 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
53785
53786         * modules/ullong_max: New file.
53787
53788         * modules/chdir-long, modules/openat: New files.
53789         * modules/save-cwd (Depends-on): Depend on chdir-long.
53790         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
53791
53792 2005-01-18  Jim Meyering  <jim@meyering.net>
53793
53794         Merge from coreutils.
53795         * m4/chdir-long.m4, m4/openat.m4: New files.
53796         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
53797         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
53798         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
53799         is sane and DOES follow symlinks.  Besides, testing 20 different
53800         systems found no broken chown implementations.
53801         Prompted by a change in rsync's copy of this macro.
53802         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
53803
53804         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
53805
53806         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
53807         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
53808         NULL-means-set-to-current-time semantics.
53809         Remove temporary file immediately, rather than waiting
53810         for configure's at-exit trap code to do it.
53811
53812 2005-01-18  Jim Meyering  <jim@meyering.net>
53813
53814         * lib/version-etc.c (version_etc_copyright): Update copyright date.
53815
53816         * lib/utimens.c (futimens): Account for the fact that futimes
53817         can also fail with errno == ENOSYS or errno == ENOENT.
53818         Patch from Dmitry V. Levin.
53819
53820         Change the name of the robust chdir function from chdir to chdir_long.
53821         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
53822         (restore_cwd): Use chdir_long, not chdir.
53823         * lib/chdir-long.c: Renamed from chdir.c.
53824         * lib/chdir-long.h: Renamed from chdir.h.
53825         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
53826         Hurd.
53827
53828 2005-01-18  Bruno Haible  <bruno@clisp.org>
53829
53830         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
53831         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
53832         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
53833         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
53834         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
53835         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
53836         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
53837         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
53838         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
53839         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
53840         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
53841         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
53842         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
53843         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
53844         Use an all-permissive copyright notice, recommended by RMS.
53845
53846 2005-01-18  Bob Proulx  <bob@proulx.com>
53847
53848         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
53849         simplify offsetof() macro construct to avoid compile failure with
53850         native HP-UX 11.0 ANSI C compiler.
53851
53852 2005-01-17  Bruno Haible  <bruno@clisp.org>
53853
53854         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
53855         redundant because stpncpy.m4 takes care of it.
53856
53857 2005-01-17  Bruno Haible  <bruno@clisp.org>
53858
53859         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
53860
53861 2005-01-17  Bruno Haible  <bruno@clisp.org>
53862
53863         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
53864         used.
53865
53866 2005-01-17  Bruno Haible  <bruno@clisp.org>
53867
53868         * lib/fwriteerror.h (fwriteerror): Change specification to include
53869         fclose.
53870         * lib/fwriteerror.c: Include <stdbool.h>.
53871         (fwriteerror): At the end, close the file stream. Record whether
53872         stdout was already closed.
53873
53874 2005-01-17  Bruno Haible  <bruno@clisp.org>
53875
53876         * lib/execute.c (environ): Declare if needed.
53877         * lib/pipe.c (environ): Likewise.
53878         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
53879
53880 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53881
53882         * modules/argp: Depend on vsnprintf
53883
53884 2005-01-10  Jim Meyering  <jim@meyering.net>
53885
53886         * modules/closeout (Depends-on): Add atexit.
53887
53888 2005-01-06  Bruno Haible  <bruno@clisp.org>
53889
53890         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
53891
53892 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
53893
53894         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
53895         definitions to be after all include files, to avoid collisions.
53896         Problem reported by Bob Proulx.
53897
53898 2005-01-04  Jim Meyering  <jim@meyering.net>
53899
53900         Changes imported from coreutils.
53901         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
53902         as the mkstemp template, use a temporary directory and an
53903         8.3-friendly template to avoid trouble on systems like DJGPP.
53904         Reported by Juan M. Guerrero via Stepan Kasal.
53905         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
53906         close. Remove the temporary directory right away, rather than waiting
53907         for configure's at-exit trap code to do it.
53908         Suggestion from Stepan Kasal.
53909
53910 2005-01-01  Simon Josefsson  <jas@extundo.com>
53911
53912         * gnulib-tool: Print #include directives when --import'ing.
53913
53914 2004-12-28  Simon Josefsson  <jas@extundo.com>
53915
53916         * tests/test-base64.c: Include required header files.  Remove
53917         unused variables.
53918
53919 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
53920
53921         * modules/error (Depends-on): Remove gettext.
53922
53923 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
53924
53925         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
53926         not needed.  This removes a dependency on the gettext module.
53927         [defined _LIBC]: Do not include <libintl.h>; not needed.
53928
53929 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
53930
53931         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
53932         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
53933
53934 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
53935
53936         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
53937         HAVE_DECL_STRTOLD.
53938
53939 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
53940
53941         * modules/getdate (Depends-on): Remove alloca-opt.
53942
53943 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
53944
53945         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
53946
53947 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
53948
53949         * lib/argp-parse.c: Include <stddef.h>.
53950         (alignof, alignto): New macros.
53951         (parser_init): Don't assume that void * is aligned sufficiently
53952         for struct option.
53953
53954         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
53955         need to extend the stack.
53956         (YYINITDEPTH): New macro, so that the initial stack isn't overly
53957         large.
53958
53959 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53960
53961         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
53962
53963 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
53964
53965         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
53966         (2004-10-24) change.  Apparently this was a false alarm.
53967
53968         * modules/getdate: Depend on alloca-opt, not alloca.
53969
53970 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
53971
53972         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
53973         Remove now-obsolete comment about AIX.
53974         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
53975         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
53976         (YYMAXDEPTH): New macro.
53977
53978 2004-12-18  Simon Josefsson  <jas@extundo.com>
53979
53980         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
53981
53982 2004-12-18  Bruno Haible  <bruno@clisp.org>
53983
53984         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
53985
53986 2004-12-18  Bruno Haible  <bruno@clisp.org>
53987
53988         * lib/fatal-signal.c (fatal_signals): Make non-const.
53989         (init_fatal_signals): New function.
53990         (uninstall_handlers, install_handlers): Ignore signals that were set to
53991         SIG_IGN.
53992         (at_fatal_signal): Call init_fatal_signals.
53993         (init_fatal_signal_set): Likewise. Ignore signals that were set to
53994         SIG_IGN.
53995         Reported by Paul Eggert.
53996
53997 2004-12-18  Bruno Haible  <bruno@clisp.org>
53998
53999         * doc/alloca.texi: New file.
54000         * doc/alloca-opt.texi: New file.
54001
54002 2004-12-17  Jim Meyering  <jim@meyering.net>
54003
54004         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
54005         Otherwise, install-sh could exit with improper exit status when
54006         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
54007
54008 2004-12-16  Simon Josefsson  <jas@extundo.com>
54009
54010         * tests/test-base64.c: Add license.
54011
54012 2004-12-15  Stepan Kasal  <address@hidden>
54013
54014         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
54015
54016 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
54017
54018         * modules/getcwd (Files): Add m4/d-ino.m4.
54019         Suggested by Mark D. Baushke.
54020
54021 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
54022
54023         * lib/getdate.y (textint): New member "negative".
54024         (time_zone_hhmm): New function.
54025         Expect 14 shift-reduce conflicts, not 13.
54026         (o_colon_minutes): New rule.
54027         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
54028         (yylex): Set the "negative" member of signed numbers.
54029
54030 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
54031
54032         * doc/getdate.texi (Time of day items, Time zone items):
54033         Describe new formats +00:00, UTC+00:00.
54034
54035 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
54036
54037         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
54038         spurious "-l"s.  Problem reported by Stepan Kasal.
54039
54040 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
54041
54042         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
54043         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
54044
54045 2004-12-04  Simon Josefsson  <jas@extundo.com>
54046
54047         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
54048         Vandoorselaere <yoann@prelude-ids.org>.
54049
54050 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
54051
54052         Changes imported from coreutils.
54053         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
54054         exist.
54055         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
54056
54057 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
54058
54059         Changes imported from coreutils.
54060         * lib/hard-locale.c: Assume <locale.h> exists.
54061         Include "strdup.h".
54062         (GLIBC_VERSION): New macro.
54063         (hard_locale): Assume setlocale exists.
54064         Rewrite to avoid #ifdef.
54065         Use strdup rather than malloc + strcpy.
54066         * lib/human.c: Assume <locale.h> exists.
54067         (human_readable): Assume localeconv exists.
54068
54069 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
54070
54071         * modules/hard-locale (Depends-on): Add strdup.
54072
54073 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
54074
54075         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
54076         convert T2, not T.  (Imported from libc.)
54077
54078 2004-11-30  Simon Josefsson  <jas@extundo.com>
54079
54080         * modules/restrict (License): Change to LGPL.
54081
54082 2004-11-30  Simon Josefsson  <jas@extundo.com>
54083
54084         * m4/restrict.m4: Add copyright and copying conditions.
54085
54086 2004-11-30  Simon Josefsson  <jas@extundo.com>
54087
54088         * m4/base64.m4: New file.
54089
54090 2004-11-30  Simon Josefsson  <jas@extundo.com>
54091
54092         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
54093         base64.
54094
54095         * tests/test-base64.c: New file.
54096
54097         * modules/base64: New file.
54098
54099 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
54100
54101         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
54102         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
54103
54104         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
54105
54106 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
54107
54108         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
54109         (__getcwd.c): Don't restore errno; glibc doesn't.
54110         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
54111         first, falling back to our code only if its results look suspicious.
54112         Ensure that the resulting buffer is only as large as necessary.
54113
54114         * lib/readutmp.c: Include readutmp.h first.
54115         Include <errno.h>, since readutmp.h no longer does that.
54116         * lib/readutmp.h: Don't include <errno.h>,
54117         <sys/param.h>, <time.h>; not needed to establish interface.
54118         (errno): Remove decl.
54119         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
54120         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
54121         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
54122
54123 2004-11-28  Simon Josefsson  <jas@extundo.com>
54124
54125         * lib/base64.h, base64.c: New file.
54126
54127 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
54128
54129         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
54130
54131 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
54132
54133         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
54134         (Depends-on): Remove pathmax, same.  Add mempcpy.
54135         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
54136         (Makefile.am): Append getcwd.h to lib_SOURCES.
54137         (Include): Add getcwd.h.
54138         (Maintainer): Change from Jim Meyering to "all, glibc",
54139         since getdate now uses intended-for-glibc code.
54140         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
54141         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
54142
54143 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
54144
54145         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
54146         HP's ANSI C compiler.
54147         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
54148         Declaring int functions causes warnings on some modern systems and
54149         shouldn't be needed to compile on ancient ones.
54150         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
54151         defined.
54152
54153         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
54154         with the following changes.
54155         (__set_errno): Parenthesize properly.
54156         Include <stdbool.h>.
54157         (MIN, MAX, MATCHING_INO): New macros.
54158         (__getcwd): Define with prototype, not K&R form.
54159         Use heuristics to allocate default buffer on stack if possible.
54160         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
54161         behavior, and to avoid the PATH_MAX limit when computing
54162         ../../../../...
54163         Use MATCHING_INO to compare inode number to file.
54164         Check for arithmetic overflow in size calculations.
54165         Fix bug in reallocation of dot array that caused getcwd to fail
54166         on directories nested deeper than 75.
54167         Be more careful about saving errno on error.
54168         Do not use realloc; use only free+malloc, as this is a bit
54169         more flexible and avoids a needless copy operation.
54170         Do not inspect st_dev and st_ino for symbolic links; POSIX
54171         doesn't specify the latter.
54172         Check for closedir errors.
54173         Avoid needless casts.
54174         Use "#ifdef weak_alias" around weak_alias, to be like other
54175         glibc code.
54176         The following changes to getcwd.c have effect only when used in
54177         gnulib; they have no effect inside glibc proper.
54178         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
54179         as alloca isn't used.
54180         (alloca, __alloca): Likewise.
54181         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
54182         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
54183         unconditionally, as gnulib assumes C89 or better.
54184         Do not include <sys/param.h>.
54185         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
54186         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
54187         better.
54188         (NULL) [!defined NULL]: Remove; we assume C89 or better.
54189         Include <dirent.h> in a way that is compatible with modern Autoconf.
54190         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
54191         New macros, if not already defined.
54192         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
54193         Use "_LIBC", not "defined _LIBC", for consistency.
54194         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
54195         a mempcpy module.
54196         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
54197         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
54198         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
54199         credit only to Jim Meyering and adjust the copyright dates.
54200         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
54201         <stdlib.h>, <unistd.h>, "pathmax.h".
54202         Instead, include "xgetcwd.h" (first) and "getcwd.h".
54203         (INITIAL_BUFFER_SIZE): Remove.
54204         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
54205
54206 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
54207
54208         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
54209         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
54210         Use the _ONCE methods, for efficiency.
54211         Check for fcntl.h.  In test program, include <errno.h>
54212         and <fcntl.h> if available.  Remove old K&R cruft from
54213         test program.  Check for common errors in GNU/Linux,
54214         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
54215         don't do AC_LIBOBJ, as that's getcwd.m4's job.
54216         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
54217         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
54218         name accordingly.
54219         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
54220         accommodate new getcwd.c.
54221         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
54222         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
54223         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
54224         that's all we need now.
54225
54226 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54227
54228         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
54229         argp-parse.c depends on getopt internals, that means we should
54230         always use our getopt, to be on the safe side.
54231         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
54232         order not to spoil the result of an eventual previous invocation
54233         of gl_GETOPT_SUBSTITUTE.
54234
54235 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54236
54237         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
54238         redefinition warnings. To avoid them, include the defines
54239         in `#if !defined __need_getopt ... #endif'. The only place
54240         where __getopt_argv_const is used is in definitions
54241         of getopt_long and getopt_long_only below, which are as well
54242         protected by `#ifndef __need_getopt'.
54243         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
54244         __need_getopt after including <stdio.h> and <unistd.h> These
54245         headers might have defined it.
54246
54247 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
54248
54249         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
54250
54251 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
54252
54253         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
54254         (futimens): New function, which uses futimes if available.
54255         (futimens, utimens): Support timespec==NULL, with same semantics
54256         as utime and utimens.
54257         * lib/utimens.h (futimens): New decl.
54258
54259 2004-11-23  Jim Meyering  <jim@meyering.net>
54260
54261         * lib/getopt_.h: Remove trailing blanks.
54262
54263 2004-11-23  Jim Meyering  <jim@meyering.net>
54264
54265         * lib/__fpending.c: Add comment.
54266
54267 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
54268
54269         * modules/canonicalize (Depends-on): Add xreadlink.
54270         Problem reported by James Youngman.
54271
54272 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
54273
54274         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
54275         New macros.
54276         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
54277         optopt): Use them instead of invoking ## directly; otherwise, the
54278         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
54279
54280 2004-11-19  Bruno Haible  <bruno@clisp.org>
54281
54282         * lib/strtok_r.c: Move comments from here...
54283         * lib/strtok_r.h: ... to here.
54284
54285 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
54286
54287         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
54288         implementations that mishandle size_t overflow.
54289
54290 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
54291
54292         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
54293         might fail.  Problem reported by Yoann Vandoorselaere.
54294         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
54295         implementations that mishandle size_t overflow.
54296
54297 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54298
54299         * modules/canon-host (Depends-on): Add strdup.
54300
54301 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54302
54303         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
54304
54305 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54306
54307         * lib/canon-host.c: Include "strdup.h".
54308         (canon_host): Use getaddrinfo if available, so that IPv6 works.
54309         Use strdup instead of malloc/strcpy to duplicate strings.
54310
54311         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
54312         (human_space_before_unit): New constant.
54313         * lib/human.c (human_readable): Support it.
54314
54315         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
54316         (xgetcwd): Set errno correctly when failing.
54317         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
54318         the failure is actually due to a PATH_MAX problem.
54319
54320         Further getopt changes to make it more likely that glibc will
54321         buy the changes back.
54322         * lib/getopt.c (POSIXLY_CORRECT): New constant.
54323         (getopt): Use it, so to preserve glibc semantic
54324         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
54325         when compiling for libc.
54326         * lib/getopt_.h (__getopt_argv_const): Bring it back.
54327         (getopt_long, getopt_long_only): Use it.
54328
54329         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
54330         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
54331         (getopt): Argv is now char * const *, as per standard.
54332         (_getopt_internal_r, _getopt_internal): Argv is now char **,
54333         not char *__getopt_argv_const *.
54334         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
54335         _getopt_long_only_r): Likewise.
54336         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
54337         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
54338         _getopt_long_r, _getopt_long_only_r): Likewise.
54339         * lib/getopt_.h (__getopt_argv_const): Remove.
54340         (getopt): Argv is now char * const *, as per standard.
54341
54342         * lib/getdate.y (tORDINAL): New token.
54343         (day, relunit): Allow it for relative times.
54344         (relative_time_table): Use tORDINAL for ordinals.
54345
54346 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54347
54348         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
54349         Document that "second" isn't allowed as an ordinal number.
54350
54351 2004-11-16  Jim Meyering  <jim@meyering.net>
54352
54353         * modules/closeout (Depends-on): Add fpending.
54354
54355 2004-11-15  Jim Meyering  <jim@meyering.net>
54356
54357         * lib/closeout.c: Include "__fpending.h" once again.
54358         Include <stdbool.h>.
54359         (close_stdout): Don't fail just because stdout was closed initially,
54360         since some programs don't write to stdout in the normal course of
54361         operation (other than --version and --help), and we don't want this
54362         function to make e.g. `touch file >&-' fail.
54363         But do fail if it was closed and someone has tried to write to it.
54364         E.g., `printf foo >&-' must fail.
54365
54366 2004-11-13  Jim Meyering  <jim@meyering.net>
54367
54368         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
54369
54370 2004-11-12  Simon Josefsson  <jas@extundo.com>
54371
54372         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
54373         small doc fix is still pending.
54374
54375 2004-11-11  Simon Josefsson  <jas@extundo.com>
54376
54377         * modules/strtok_r: New file.
54378
54379         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54380         strtok_r.
54381
54382 2004-11-11  Simon Josefsson  <jas@extundo.com>
54383
54384         * m4/strtok_r.m4: New file.
54385
54386         * m4/getopt.m4: Replace opterr.
54387
54388 2004-11-11  Simon Josefsson  <jas@extundo.com>
54389
54390         * lib/strtok_r.h, strtok_r.c: New file.
54391
54392 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
54393
54394         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
54395         of replacing opterr, getopt, etc.  This should handle the
54396         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
54397
54398 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
54399
54400         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
54401         we can stop lying to compilers about the constness of argv when we
54402         are compiled outside glibc.
54403         (getopt, getopt_long, getopt_long_only): Use it.
54404         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
54405         _getopt_internal, getopt): Likewise.
54406         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
54407         _getopt_long_only_r): Likewise.
54408         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
54409         _getopt_long_r, _getopt_long_only_r): Likewise.
54410
54411         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
54412         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
54413         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
54414         the other external symbols.
54415         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
54416         declaration, since the above renaming now works around collisions.
54417
54418 2004-11-11  Jim Meyering  <jim@meyering.net>
54419
54420         * lib/linebreak.c: Remove trailing blanks.
54421         * lib/alloca_.h: Likewise.
54422         * lib/acosl.c: Likewise.
54423         * lib/euidaccess.c: Likewise.
54424         * lib/allocsa.h: Likewise.
54425
54426 2004-11-10  Simon Josefsson  <jas@extundo.com>
54427
54428         * m4/getaddrinfo.m4: New file.
54429
54430 2004-11-10  Simon Josefsson  <jas@extundo.com>
54431
54432         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
54433
54434 2004-11-10  Simon Josefsson  <jas@extundo.com>
54435
54436         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54437         getaddrinfo.
54438
54439         * modules/getaddrinfo: New file.
54440
54441 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
54442
54443         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
54444
54445 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
54446
54447         * lib/mktime.c (SHR): New macro, which is a portable
54448         substitute for >> that should work even on Crays.
54449         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
54450         Problem reported by Mark D. Baushke in
54451         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
54452         * lib/getdate.y (SHR): Likewise.
54453         (tm_diff): Use it.
54454         * lib/strftime.c (SHR): Likewise.
54455         (tm_diff): Use it.
54456         * lib/quotearg.c (struct quoting_options): Use unsigned int for
54457         quote_these_too, so that right shifts are well defined.  All uses
54458         changed.
54459
54460 2004-11-10  Jim Meyering  <jim@meyering.net>
54461
54462         Ensure that no close failure goes unreported.
54463         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
54464         return early when it seems there's nothing to flush.
54465         Don't include __fpending.h.
54466
54467 2004-11-10  Jim Meyering  <jim@meyering.net>
54468
54469         * modules/closeout (Depends-on): Remove fpending.
54470
54471 2004-11-10  Jim Meyering  <jim@meyering.net>
54472
54473         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
54474
54475 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
54476
54477         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
54478         gl_FUNC_STRFTIME.
54479         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
54480         and AC_REQUIRE when possible, to avoid duplicate checks.
54481         Check for <wchar.h>.
54482
54483 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
54484
54485         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
54486
54487 2004-11-09  Bruno Haible  <bruno@clisp.org>
54488
54489         * m4/sockpfaf.m4: New file.
54490
54491 2004-11-05  Bruno Haible  <bruno@clisp.org>
54492
54493         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
54494         Reported by Mark D. Baushke <mdb@cvshome.org>.
54495
54496 2004-11-04  Bruno Haible  <bruno@clisp.org>
54497
54498         2004-09-11  Bruno Haible  <bruno@clisp.org>
54499                 * allocsa.valgrind: New file.
54500         2004-02-06  Bruno Haible  <bruno@clisp.org>
54501                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
54502                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
54503                 Reported by Christopher Seip <chris.seip@hp.com>.
54504
54505 2004-11-04  Bruno Haible  <bruno@clisp.org>
54506
54507         * modules/allocsa (Files): Add lib/allocsa.valgrind.
54508         (Makefile.am): Distribute it.
54509
54510 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
54511
54512         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
54513         with errno == ERANGE if the buffer is too small.
54514         Problem reported by Mark D. Baushke.
54515
54516 2004-11-03  Albert Chin  <china@thewrittenword.com>
54517             Paul Eggert  <eggert@cs.ucla.edu>
54518
54519         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
54520         equivalent, substitute $ac_type for equivalent type rather than
54521         blindly using uint32_t *always* which won't work if uint32_t is not
54522         available.  Define _UINT32_T to work around typedef of uint32_t if
54523         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
54524         2.5.1.
54525
54526 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
54527
54528         * m4/jm-macros.m4: Sync from coreutils.
54529         (gl_MACROS): Check for mbrlen, for pathchk.
54530         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
54531
54532 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
54533
54534         * lib/xreadlink.c (MAXSIZE): New macro.
54535         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
54536         size does not exceed MAXSIZE.  Avoid cast.
54537         As suggested by Mark D. Baushke in
54538         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
54539         if readlink fails with buffer size just under MAXSIZE, try again
54540         with MAXSIZE.
54541
54542 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
54543
54544         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
54545
54546 2004-11-02  Derek R. Price  <derek@ximbiot.com>
54547         and  Paul Eggert  <eggert@cs.ucla.edu>
54548
54549         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
54550         (get_date): Overparenthesize to avoid GCC warning.
54551
54552 2004-11-02  Bruno Haible  <bruno@clisp.org>
54553
54554         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
54555         returns void.
54556
54557 2004-11-02  Bruno Haible  <bruno@clisp.org>
54558
54559         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
54560         function returns void.
54561
54562 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54563
54564         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
54565         fflush_unlocked, flockfile, funlockfile, funlockfile,
54566         fputs_unlocked, putc_unlocked.
54567
54568 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54569
54570         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
54571         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
54572         already declared.
54573
54574 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
54575
54576         * modules/getdate (Files): Add doc/getdate.texi.
54577         (Depends-on): Add setenv, xalloc.
54578
54579 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
54580
54581         * lib/getdate.y: Add support for TZ="foo" within a date string.
54582         Fix some bugs near time_t boundaries.  Reject dates with
54583         out-of-range components, e.g., "Sept 31".
54584         Include <stdlib.h>, "setenv.h", "xalloc.h".
54585         (ISDIGIT_LOCALE): Remove; unused.
54586         Note that the TZ and time functions used here are not reentrant.
54587         (mktime_ok, get_tz): New functions.
54588         (TZBUFSIZE): New constant.
54589         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
54590         This requires that we sometimes generate our own TZ="XXX..." setting.
54591
54592 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
54593
54594         * doc/getdate.texi: New file, from coreutils with modifications for
54595         the new TZ parsing.
54596
54597 2004-10-27  Derek R. Price  <derek@ximbiot.com>
54598
54599         * lib/mktime.c (not_equal_tm): Remove redundant check.
54600
54601 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54602
54603         * modules/regex (lib_SOURCES): Add regex.c.
54604         Reported by James Youngman in
54605         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
54606
54607 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54608
54609         * lib/getdate.y: Use Bison 1.875 features, and some minor
54610         code cleanups.  This change does not affect semantics.
54611         Don't include <stdlib.h>; no longer needed.
54612         Don't include unlocked-io.h; only the "#if TEST" code uses
54613         stdio, and performance isn't crucial there.
54614         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
54615         Bison 1.875 features as described below.
54616         All uses of "PC." replaced by "pc->".
54617         (YYSTYPE): Add a forward declaration.
54618         (yylex, yyerror): Use full prototypes in forward decls.
54619         Use "%pure-parser" rather than obsolescent "%pure_parser".
54620         Use %parse-param and %lex-param instead of obsolescent
54621         YYPARSE_PARAM and YYLEX_PARAM.
54622         (meridian_table, month_and_day_table, time_units_table,
54623         relative_time_table, time_zone_table, military_table,
54624         lookup_zone, lookup_word, get_date):
54625         Use NULL instead of 0 where appropriate.
54626         (to_hour): Avoid abort (), to avoid a dependency on
54627         stdlib.h.
54628         (yyerror, yylex): Now accepts parser_control * arg.
54629         (main) [TEST]: Use '\0' rather than 0 for char.
54630
54631 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54632
54633         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
54634
54635 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54636
54637         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
54638         It's now the caller's responsibility to handle the case where
54639         !HAVE_GETPAGESIZE && !defined getpagesize.
54640
54641         * lib/mktime.c (leapyear): Arg is long int, not int.
54642
54643 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
54644
54645         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
54646
54647 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
54648
54649         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
54650         missing.  Problem reported by James Youngman.
54651
54652 2004-10-16  Simon Josefsson  <jas@extundo.com>
54653
54654         * gnulib-tool: Fix comments.  Fix parse problem.
54655         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
54656
54657 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
54658
54659         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
54660         implementation of getopt_long.  Problem reported by Alexander Taler in:
54661         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
54662
54663 2004-10-15  Bruno Haible  <bruno@clisp.org>
54664
54665         * gnulib-tool: Untabify. Initialize supplied_libname.
54666         (func_usage): More homogenous output.
54667         (func_modules_transitive_closure, func_modules_to_filelist,
54668         func_emit_lib_Makefile_am): New functions.
54669         (func_import): New function, extracted from big case statement. Use
54670         func_get_license, func_modules_transitive_closure,
54671         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
54672         opt_lgpl. Don't use test -a, as it's not portable.
54673         (func_create_testdir): Use func_modules_transitive_closure,
54674         func_modules_to_filelist, func_emit_lib_Makefile_am.
54675
54676 2004-10-15  Bruno Haible  <bruno@clisp.org>
54677
54678         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
54679
54680 2004-10-15  Bruno Haible  <bruno@clisp.org>
54681
54682         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
54683         the portions belonging to each module.
54684         Suggested by Derek Robert Price <derek@ximbiot.com>.
54685
54686 2004-10-12  Simon Josefsson  <jas@extundo.com>
54687
54688         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
54689         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
54690         to real functions.
54691
54692 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54693
54694         * modules/vsnprintf: New file.
54695
54696 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54697
54698         * m4/vsnprintf.m4: New file.
54699
54700 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54701
54702         * lib/vsnprintf.h: New file.
54703         * lib/vsnprintf.c: New file.
54704
54705 2004-10-11  Bruno Haible  <bruno@clisp.org>
54706
54707         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
54708         vsnprintf.
54709
54710 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
54711
54712         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
54713
54714 2004-10-07  Bruno Haible  <bruno@clisp.org>
54715
54716         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
54717         fits into the provided buffer.
54718
54719 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
54720
54721         * lib/diacrit.c, diacrit.h: Add GPL notice.
54722
54723         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
54724         notice.
54725         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
54726         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
54727         This avoids a potential constant-folding bug.
54728
54729 2004-10-05  Bruno Haible  <bruno@clisp.org>
54730
54731         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
54732         for the declaration of strsep.
54733
54734 2004-10-05  Bruno Haible  <bruno@clisp.org>
54735
54736         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
54737
54738 2004-10-04  Simon Josefsson  <jas@extundo.com>
54739
54740         * modules/memmem: New file.
54741         * tests/test-memmem.c: New file.
54742         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
54743
54744 2004-10-04  Simon Josefsson  <jas@extundo.com>
54745
54746         * m4/memmem.m4: New file.
54747
54748 2004-10-04  Simon Josefsson  <jas@extundo.com>
54749
54750         * lib/memmem.h: New file.
54751         * lib/memmem.c: New file, taken from glibc.
54752
54753 2004-10-04  Simon Josefsson  <jas@extundo.com>
54754
54755         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
54756         '#ifdef USE_UNLOCKED_IO'.
54757
54758 2004-10-04  Simon Josefsson  <jas@extundo.com>
54759
54760         * config/srclist.txt: Add memmem from glibc.
54761
54762 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54763
54764         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
54765
54766         * modules/argmatch, modules/argp, modules/closeout, modules/error,
54767         modules/exclude, modules/getdate, modules/getline,
54768         modules/getndelim2, modules/getpass, modules/getpass-gnu,
54769         modules/getusershell, modules/linebuffer, modules/md5,
54770         modules/mountlist, modules/posixtm, modules/readtokens,
54771         modules/readutmp, modules/regex, modules/sha1,
54772         modules/version-etc, modules/yesno:
54773         Remove dependency on unlocked-io.
54774
54775 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54776
54777         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
54778
54779         * m4/unlocked-io.m4: Add copyright notice.
54780         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
54781
54782 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54783
54784         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
54785         * lib/xmalloc.c (xmemdup): Likewise.
54786         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
54787         XFREE): Remove these long-obsolescent macros.
54788         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
54789         * lib/xstrdup.c: Remove.
54790
54791         * lib/regex.c (re_comp): Cast gettext return value to char *,
54792         Problem reported by Martin Neitzel via Mark D. Baushke.
54793
54794 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54795
54796         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
54797         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
54798         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
54799         regex.c, sha1.c, version-etc.c, yesno.c:
54800         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
54801         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
54802         the includer's responsibility.
54803
54804         Sync from coreutils.
54805
54806         * lib/modechange.c (mode_compile): Don't decrement a pointer that
54807         points to the start of a string, as the C Standard says the
54808         resulting behavior is undefined.
54809
54810         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
54811         simple -> simple_backups, numbered_existing ->
54812         numbered_existing_backups, numbered -> numbered_backups
54813         to avoid shadowing problems.  All uses changed.
54814         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
54815         * lib/backupfile.c (check_extension, numbered_backup):
54816         Rename locals to avoid shadowing 'basename'.
54817         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
54818         once.
54819
54820         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
54821         * lib/.cvsignore: Add getopt.h.
54822
54823 2004-10-04  Bruno Haible  <bruno@clisp.org>
54824
54825         * modules/README: New file.
54826         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
54827         not a module.
54828
54829 2004-10-02  Jim Meyering  <jim@meyering.net>
54830
54831         * lib/dirfd.h, getpagesize.h: Add copyright notice.
54832
54833 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54834
54835         * modules/strsep: New file.
54836
54837 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54838
54839         * m4/strsep.m4: New file.
54840
54841 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54842
54843         * lib/strsep.h: New file.
54844         * lib/strsep.c: New file.
54845
54846 2004-10-01  Simon Josefsson  <jas@extundo.com>
54847
54848         * lib/snprintf.c (snprintf): Handle size==0.
54849
54850 2004-10-01  Simon Josefsson  <jas@extundo.com>
54851             Bruno Haible  <bruno@clisp.org>
54852
54853         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
54854         (snprintf): Declare 'args'.
54855
54856 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
54857
54858         * lib/snprintf.c: Remove comments as to why each header is needed.
54859
54860 2004-10-01  Bruno Haible  <bruno@clisp.org>
54861
54862         * MODULES.html.sh: Add strsep.
54863
54864 2004-09-30  Simon Josefsson  <jas@extundo.com>
54865
54866         * modules/snprintf: New file.
54867
54868 2004-09-30  Simon Josefsson  <jas@extundo.com>
54869
54870         * m4/snprintf.m4: New file.
54871
54872 2004-09-30  Simon Josefsson  <jas@extundo.com>
54873
54874         * lib/snprintf.h, lib/snprintf.c: New files.
54875
54876 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54877
54878         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
54879         (hol_entry_help): Never translate an empty string.
54880         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
54881         * lib/argp.h (OPTION_NO_TRANS): New option.
54882
54883 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
54884
54885         * modules/argp (Maintainer): Replace Simon Josefsson
54886         by Sergey Poznyakoff.
54887
54888 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
54889
54890         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
54891         changes merged back into glibc.
54892
54893 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
54894
54895         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
54896
54897 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
54898
54899         * lib/xvasprintf.c: Include xalloc.h.
54900         (xvasprintf): Use xalloc_die, not xmalloc_die.
54901
54902 2004-09-29  Bruno Haible  <bruno@clisp.org>
54903
54904         * modules/alloca-opt: New file, derived from modules/alloca.
54905         * modules/allocsa: Depend on alloca-opt instead of alloca.
54906         * modules/setenv: Likewise.
54907         * modules/vasnprintf: Likewise.
54908         * MODULES.html.sh: Add alloca-opt.
54909
54910 2004-09-28  Simon Josefsson  <jas@extundo.com>
54911
54912         * gnulib-tool: New parameter --lgpl, to asseert that modules are
54913         LGPL, and to replace license template from GPL to LGPL.
54914
54915 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
54916
54917         * modules/dummy: Change license to LGPL.
54918
54919 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
54920
54921         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
54922
54923 2004-09-24  Simon Josefsson  <jas@extundo.com>
54924
54925         * modules/minmax (License): Change from GPL to LGPL.
54926
54927 2004-09-23  Simon Josefsson  <jas@extundo.com>
54928
54929         * gnulib-tool (--import): Typo.
54930
54931 2004-09-23  Simon Josefsson  <jas@extundo.com>
54932
54933         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
54934
54935 2004-09-22  Bruno Haible  <bruno@clisp.org>
54936
54937         * modules/*: Add 'License' field.
54938         * gnulib-tool: Accept --extract-license option.
54939         (func_get_license): New function.
54940
54941 2004-09-21  Bruno Haible  <bruno@clisp.org>
54942
54943         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
54944         Reported by Simon Josefsson.
54945
54946 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
54947
54948         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
54949         gl_AC_TYPE_LONG_LONG.
54950
54951 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
54952
54953         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
54954
54955 2004-09-18  Simon Josefsson  <jas@extundo.com>
54956         and  Paul Eggert  <eggert@cs.ucla.edu>
54957
54958         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
54959         calls with autoreconf.  Define GL_LIB.
54960
54961 2004-09-14  Karl Berry  <karl@gnu.org>
54962
54963         * config/srclist.txt: unsync setenv.c, sigh.
54964
54965 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
54966
54967         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
54968         Problem reported by Bruno Haible in:
54969         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
54970
54971 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
54972
54973         * config/srclist.txt: Comment out argp-pvh.c.
54974
54975 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
54976
54977         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
54978         in case some system header has #define'd it.  Problem reported by
54979         Soeren D. Schulze in
54980         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
54981
54982 2004-09-09  Karl Berry  <karl@gnu.org>
54983
54984         * regex.[ch]: delete from the root.  These were supposed to be
54985                 synced with emacs cvs, but this has not happened for about
54986                 a year, and anyway nothing else uses emacs regex.[ch].
54987                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
54988                 lib/regex[.ch] is untouched.
54989
54990 2004-09-09  Bruno Haible  <bruno@clisp.org>
54991
54992         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
54993
54994 2004-09-09  Bruno Haible  <bruno@clisp.org>
54995
54996         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
54997         modifications.
54998         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
54999
55000 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
55001
55002         * modules/xvasprintf: New file.
55003         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
55004
55005 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
55006
55007         * lib/xvasprintf.h: New file.
55008         * lib/xvasprintf.c: New file.
55009         * lib/xasprintf.c: New file.
55010
55011 2004-09-08  Bruno Haible  <bruno@clisp.org>
55012
55013         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
55014
55015 2004-09-08  Bruno Haible  <bruno@clisp.org>
55016
55017         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
55018         length is > INT_MAX.
55019         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
55020         more.
55021
55022 2004-09-08  Bruno Haible  <bruno@clisp.org>
55023
55024         * lib/stdint_.h: New file, taken from GNU clisp.
55025
55026 2004-09-08  Bruno Haible  <bruno@clisp.org>
55027             Oskar Liljeblad  <oskar@osk.mine.nu>
55028
55029         * modules/stdint: New file.
55030         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
55031
55032 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55033
55034         Import from coreutils.
55035         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
55036         strings on unbounded length.  alloca's performance benefits aren't
55037         that important here.
55038         (V_STRDUP): Remove.
55039         (parse_with_separator): New function, with most of the internals
55040         of the old parse_user_spec.  Allow user to omit both user and group,
55041         for compatibility with FreeBSD.
55042         Clone only the user name, not the entire spec.
55043         Do not set *uid, *gid unless entirely successful.
55044         Avoid memory leak in some failing cases.
55045         Fix regression for USER.GROUP reported by Dmitry V. Levin in
55046         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
55047         (parse_user_spec): Rewrite to use parse_with_separator.
55048
55049 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55050
55051         * modules/userspec: Don't depend on alloca.
55052
55053 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55054
55055         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
55056
55057 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
55058
55059         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
55060         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
55061         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
55062
55063 2004-08-16  Simon Josefsson  <jas@extundo.com>
55064
55065         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
55066         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
55067         Add --dry-run for --import.
55068         Let user provided command line parameters override configure.ac
55069         settings.
55070
55071 2004-08-12  Simon Josefsson  <jas@extundo.com>
55072
55073         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
55074         as discussed with Paul Eggert in threads rooted at
55075         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
55076         and
55077         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
55078         Before, the test was empty, and relied on ELIDE_CODE in source
55079         code.)
55080         (gl_PREREQ_GETOPT): New macro.
55081         (gl_GETOPT): Use them.
55082
55083 2004-08-12  Simon Josefsson  <jas@extundo.com>
55084
55085         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
55086         * lib/getopt_.h: Renamed from getopt.h.
55087
55088 2004-08-12  Simon Josefsson  <jas@extundo.com>
55089
55090         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
55091         Change default library name from libfoo to libgnu.
55092         Now, if you have a configure.ac that says:
55093                 gl_SOURCE_BASE(gl)
55094                 gl_M4_BASE(gl/m4)
55095                 gl_MODULES(error getopt etcetera)
55096                 gl_INIT
55097         you can import all you need by running:
55098                 ../gnulib/gnulib-tool --import
55099
55100         * modules/getopt (Files): Rename getopt.h to getopt_.h.
55101         (Makefile.am): Rewrite, use logic from argz.
55102         (Include): Use <getopt.h> instead of "getopt.h".
55103
55104 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55105
55106         * modules/argp (Files): Add m4/unlocked-io.m4.
55107         (Depends-on): Add extensions.
55108
55109 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55110
55111         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
55112         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
55113         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
55114         Check for program_invocation_name, program_invocation_short_name,
55115         flockfile, funlockfile, features.h, _getopt_long_only_r.
55116
55117 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55118
55119         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
55120         its complicated substitute.
55121         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
55122         and program_invocation_name.
55123         (__argp_basename) [!_LIBC]: Remove; the only use was
55124         replaced by its body.
55125         (__argp_short_program_name): Change condition from
55126         !defined __argp_short_program_name to
55127         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
55128         to match argp-namefrob.h.
55129         (__argp_failure): Don't assume strerror_r returns char *.
55130         * lib/argp-parse.c (N_): Define unconditionally.
55131         (argp_default_options): Fill out initializers with 0 to avoid
55132         gcc warnings.
55133
55134 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55135
55136         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
55137         getopt1.c.
55138
55139 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
55140
55141         Merge from coreutils.
55142
55143         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
55144
55145         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
55146         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
55147
55148 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
55149
55150         Merge from coreutils.
55151
55152         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
55153         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
55154         for Reliant Unix 5.43.
55155
55156         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
55157         (union fooround): Use uintmax_t, not long int.
55158         The rest is a merge from libc:
55159         [defined _LIBC]: Include <shlib-compat.h>.
55160         (_obstack) [defined _LIBC]: Remove after 2.3.4.
55161
55162         * lib/settime.c (settime): Recode to avoid warning with
55163         Sun Forte C 6U2.
55164
55165         * lib/strverscmp.c: Convert to UTF-8.
55166
55167 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
55168
55169         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
55170         m4/uintmax_t.m4.
55171
55172 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55173
55174         * modules/xalloc-die: New file.
55175         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
55176
55177         * modules/md5 (Files): Add m4/uint32_t.m4.
55178         * modules/sha1: Renamed from modules/sha.
55179         (Files):
55180         Rename lib/sha.h to lib/sha1.h.
55181         Rename lib/sha.c to lib/sha1.c.
55182         Rename m4/sha.m4 to m4/sha1.m4.
55183         (lib_SOURCES): Likewise.
55184         (configure.ac): Rename gl_SHA to gl_SHA1.
55185         (Include): sha.h -> sha1.h.
55186
55187 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55188
55189         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
55190         * m4/sha1.m4: Renamed from sha.m4.
55191         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
55192
55193 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55194
55195         * lib/obstack.h (obstack_empty_p):
55196         Don't assume that chunk->contents is suitably aligned.
55197         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
55198         Likewise. Problem reported by Benno in
55199         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
55200
55201         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
55202         readable.  This could be improved further but it'd take some work.
55203
55204 2004-08-08  Simon Josefsson  <jas@extundo.com>
55205
55206         * modules/xgethostname (Depends-on): Remove exit and error (not
55207         used).
55208
55209         * modules/getpass-gnu: Add getpass.h.
55210         (Depends-on): Add stdbool.
55211         * modules/getpass: Add getpass.h.
55212
55213 2004-08-08  Simon Josefsson  <jas@extundo.com>
55214
55215         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
55216         Check getpass declaration.
55217
55218 2004-08-08  Simon Josefsson  <jas@extundo.com>
55219
55220         * lib/xgethostname.c: Don't include error.h (not used).
55221
55222         * lib/getpass.h: Add.
55223         * lib/getpass.c: Include getpass.h first.
55224
55225 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
55226
55227         * lib/xalloc-die.c: New file.
55228         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
55229         All uses removed.
55230         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
55231         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
55232         xalloc-die.c.
55233         (_, N_, xalloc_die): Move to xalloc-die.c.
55234         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
55235         so that we needn't mess with xalloc_msg_memory_exhausted.
55236
55237         * lib/sha1.h: Renamed from sha.h.
55238         (SHA1_H): Renamed from _SHA_H.
55239         (sha1_ctx): Renamed from sha_ctx.
55240         (sha1_init_ctx): Renamed from sha_init_ctx.
55241         (sha1_process_block): Renamed from sha_process_block.
55242         (sha1_process_bytes): Renamed from sha_process_bytes.
55243         (sha1_finish_ctx): Renamed from sha_finish_ctx.
55244         (sha1_read_ctx): Renamed from sha_read_ctx.
55245         (sha1_stream): Renamed from sha_stream.
55246         (sha1_buffer): Renamed from sha_buffer.
55247         * lib/sha1.c: Likewise; renamed from sha.c.
55248         Do not include <sys/types.h>.
55249         Include <stddef.h> rather than <stdlib.h>.
55250
55251 2004-08-08  Bruno Haible  <bruno@clisp.org>
55252
55253         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
55254         FILESYSTEM_PREFIX_LEN.
55255         * lib/progreloc.c: Likewise.
55256         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
55257
55258 2004-08-06  Simon Josefsson  <jas@extundo.com>
55259
55260         * modules/progname (Depends-on): Don't depend on stdbool.
55261
55262 2004-08-06  Simon Josefsson  <jas@extundo.com>
55263
55264         * modules/getsubopt: New file.
55265         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55266         getsubopt.
55267
55268 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
55269
55270         More merge from coreutils.
55271
55272         * m4/utimens.m4, m4/utimecmp.m4: New files.
55273         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
55274         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
55275         prereq.m4, sha.m4: Import changes from coreutils.
55276
55277 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
55278
55279         More merge from coreutils.
55280         * modules/raise, modules/readtokens0, modules/utimens:
55281         * modules/utimecmp, module/xnanosleep: New files.
55282         * modules/strftime: Add lib/strftime.h.
55283         Change include from <time.h> to "strftime.h".
55284         * modules/yesno: Add lib/yesno.h.
55285         * modules/backupfile: Remove lib/addext.c.
55286         * modules/euidaccess: Add stat-macros.h.
55287         * modules/canonicalize, modules/euidaccess,
55288         modules/filemode, modules/lchown, modules/makepath,
55289         modules/rmdir, modules/stat: Likewise.
55290
55291 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
55292
55293         Merge from tar.
55294         * lib/argp-help.c (make_hol, hol_append): Don't assume that
55295         SIZE_MAX is a valid preprocessor constant.
55296         (__argp_basename): Change from "#ifndef _LIBC"
55297         to "#ifndef __argp_short_program_name", so that
55298         we don't compile these functions for tar.
55299
55300         More merges from coreutils.
55301         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
55302         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
55303         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
55304         * lib/addext.c: Remove; no longer needed.
55305         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
55306         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
55307         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
55308         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
55309         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
55310         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
55311         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
55312         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
55313         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
55314         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
55315         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
55316         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
55317         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
55318         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
55319         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
55320         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
55321         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
55322         Import changes from coreutils.
55323
55324 2004-08-05  Simon Josefsson  <jas@extundo.com>
55325
55326         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
55327
55328 2004-08-05  Simon Josefsson  <jas@extundo.com>
55329
55330         * m4/getsubopt.m4: New file.
55331
55332 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
55333
55334         Merge from coreutils.
55335
55336         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
55337         * m4/getcwd-path-max.m4: New files.
55338
55339         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
55340         FILESYSTEM_PREFIX_LEN ->
55341         FILE_SYSTEM_PREFIX_LEN.
55342         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
55343         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
55344         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
55345         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
55346
55347         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
55348         prerequisite modules now handle the DOS stuff.
55349         Don't check for unistd.h.
55350
55351 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
55352
55353         Merge from coreutils.
55354
55355         * lib/.gdb-history: Remove; this doesn't belong here.
55356
55357         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
55358         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
55359         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
55360         * lib/getcwd.c: New files.
55361
55362         * lib/dirname.h: Include <stdbool.h>.
55363         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
55364         for consistency with POSIX terminology.  All uses changed.
55365         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
55366         (strip_trailing_slashes): Use bool for booleans.
55367         * lib/stripslash.c (strip_trailing_slashes): Likewise.
55368
55369         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
55370         sometimes returns a positive errno value even when it succeeds.
55371         (print_errno_message) [!LIBC]: Fall back on strerror if
55372         __strerror_r fails.
55373
55374         * lib/path-concat.c (mempcpy): Don't define if a system header defines
55375         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
55376         (longest_relative_suffix): New function.
55377         (path_concat): Use it.  Assume first argument is not NULL.
55378         Port to DOS.  Omit redundant separators.
55379         Report an error instead of returning NULL.
55380         Use mempcpy instead of memcpy.
55381         (xpath_concat): Remove: not declared or used.
55382
55383         * lib/same.h: Include <stdbool.h>
55384         (same_name): Return bool, not int.
55385         * lib/same.c (same_name): Likewise.
55386         (errno): Don't declare; we assume C89 or better now.
55387
55388         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
55389         if not already defined.
55390
55391         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
55392         * lib/dup-safer.c (errno): Likewise.
55393
55394 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
55395
55396         Merge from coreutils.
55397         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
55398         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
55399         * modules/path-concat: Don't depend on strdup.
55400
55401 2004-08-03  Simon Josefsson  <jas@extundo.com>
55402
55403         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
55404         * lib/progname.h: Don't include stdbool.h.
55405
55406 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
55407
55408         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
55409         * MODULES.html.sh (func_all_modules): Remove fatal.
55410
55411 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
55412
55413         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
55414
55415 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
55416
55417         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
55418         working.
55419
55420 2004-08-02  Simon Josefsson  <jas@extundo.com>
55421
55422         * lib/getsubopt.h: New file, with comments from Bruno Haible.
55423         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
55424         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
55425
55426 2004-08-01  Simon Josefsson  <jas@extundo.com>
55427
55428         * lib/xgetdomainname.c: Include stdlib.h, for free().
55429
55430 2004-07-19  Bruno Haible  <bruno@clisp.org>
55431
55432         * MODULES.html.sh (func_all_modules): Add dummy.
55433
55434 2004-07-16  Simon Josefsson  <jas@extundo.com>
55435
55436         * modules/dummy: New file.
55437
55438 2004-07-16  Simon Josefsson  <jas@extundo.com>
55439
55440         * lib/dummy.c: New file.
55441
55442 2004-07-16  Bruno Haible  <bruno@clisp.org>
55443
55444         * lib/backupfile.h: Add extern "C" for C++.
55445         * lib/closeout.h: Likewise.
55446         * lib/copy-file.h: Likewise.
55447         * lib/findprog.h: Likewise.
55448         * lib/full-write.h: Likewise.
55449         * lib/pathname.h: Likewise.
55450         * lib/progname.h: Likewise.
55451         * lib/stpcpy.h: Likewise.
55452         * lib/stpncpy.h: Likewise.
55453         * lib/strcase.h: Likewise.
55454         * lib/strstr.h: Likewise.
55455         * lib/xalloc.h: Likewise.
55456
55457         * lib/mbswidth.h: Add extern "C" for C++.
55458         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
55459
55460 2004-07-13  Robert Millan  <robertmh@gnu.org>
55461
55462         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
55463
55464 2004-07-09  Simon Josefsson  <jas@extundo.com>
55465
55466         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
55467         failed without this.)
55468
55469 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55470
55471         * modules/chown (Files): Add lib/fchown-stub.c, since
55472         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
55473
55474 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55475
55476         * lib/fchown-stub.c: New file.
55477
55478 2004-06-24  Jim Meyering  <jim@meyering.net>
55479
55480         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
55481
55482 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55483
55484         * modules/argz: Omit "#include".
55485
55486         * MODULES.html.sh (func_all_modules): Add calloc, to match
55487         2004-06-01 addition of calloc module.
55488
55489 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55490
55491         * m4/argz.m4: New file, which is autoupdated from libtool.
55492
55493 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55494
55495         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
55496         libtool.
55497
55498 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55499
55500         * config/srclist-update: Don't insist on "USA." before the
55501         close-comment, as libtool omits the period and puts the */ on a
55502         separate line.
55503         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
55504         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
55505
55506 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
55507
55508         * modules/argz: New file.
55509         * MODULES.html.sh (func_all_modules): Add argz.
55510
55511 2004-06-12  Jim Meyering  <jim@meyering.net>
55512         and  Paul Eggert  <eggert@cs.ucla.edu>
55513
55514         * modules/hash (Files): Add lib/xalloc.h.
55515         * modules/pipe (Depends-on): Add wait-process.
55516         * modules/stat (Depends-on): Add xalloc.
55517         * modules/userspec (Files): Add lib/userspec.h.
55518         * modules/xstrto
55519
55520         Upgrade from gettext-0.13.
55521         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
55522         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
55523         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
55524
55525 2004-06-10  Jim Meyering  <jim@meyering.net>
55526
55527         * lib/calloc.c: New file.
55528
55529 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
55530
55531         * lib/getdate.y (yylex): Allow space between sign and number.
55532         Problem reported by Dan Jacobson.
55533
55534 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
55535
55536         Merge from coreutils CVS.
55537
55538         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
55539         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
55540         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
55541         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
55542         xstrtol.m4: Fix copyright date and/or serial number.
55543
55544         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
55545         See if we need an fchown replacement.
55546         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
55547         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
55548         and use the replacement function if we detect either defect.
55549
55550         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
55551         gl_UTIMECMP.
55552
55553 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
55554         and  Jim Meyering  <jim@meyering.net>
55555
55556         Merge from coreutils CVS.
55557
55558         * lib/stat-macros.h: New file, with contents from file-type.h
55559         and coreutils' system.h.
55560         * lib/file-type.c: Include "stat-macros.h".
55561         * lib/file-type.h (file_type): Move all macro definitions to new file,
55562         stat-macros.h.
55563
55564         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
55565         Wrap old code with this conditional.
55566         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
55567         function that does not dereference symlinks.
55568         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
55569
55570         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
55571         dependency problems.
55572         (xreadlink): Accept new arg SIZE, for efficiency.
55573         All decls and uses changed.
55574         * lib/xreadlink.h: Include <stddef.h>, for size_t.
55575
55576         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
55577         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
55578
55579         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
55580         sysexits.h.
55581
55582 2004-06-01  Jim Meyering  <jim@meyering.net>
55583
55584         * m4/calloc.m4: New file.
55585
55586 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
55587
55588         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
55589         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
55590         Also, fix a typo in a diagnostic.
55591
55592 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
55593
55594         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
55595         or AC_FUNC_REALLOC.
55596
55597 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
55598
55599         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
55600         macros to be defined.
55601         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
55602         the allocator returns NULL because the requested size is zero.
55603
55604 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
55605
55606         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
55607         var.  Add comment explaining why libc still defines it.  This
55608         merges the following patch from glibc:
55609         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
55610
55611 2004-05-20  Andreas Schwab  <schwab@suse.de>
55612
55613         * m4/free.m4: Replace free if it not known to work, not the other
55614         way round.
55615
55616 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
55617
55618         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
55619         present in glibc since revision 1.1 of this file.
55620         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
55621         obstack_alignment_mask, obstack_alloc, obstack_base,
55622         obstack_blank, obstack_blank_fast, obstack_chunk_size,
55623         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
55624         obstack_grow0, obstack_init, obstack_int_grow,
55625         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
55626         obstack_next_free, obstack_object_size, obstack_ptr_grow,
55627         obstack_ptr_grow_fast, obstack_room): Remove declarations of
55628         nonexistent functions.
55629
55630 2004-05-18  Karl Berry  <karl@gnu.org>
55631
55632         * config/srclist.txt: break link for vasnprintf.c.
55633
55634 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
55635
55636         Port obstack to the AS/400, where pointers are 16 bytes wide and
55637         you cannot cast an integer to a valid pointer.  This patch is
55638         currently waiting to be integrated into glibc; see
55639         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
55640
55641         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
55642         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
55643         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
55644         (struct obstack): temp member is now a union of a pointer and
55645         an integer, instead of an integer.  All integer uses changed.
55646         This does not affect the physical layout of struct obstack,
55647         except on hosts (like the AS/400) where the size or alignment of
55648         void * is greater than that of ptrdiff_t.
55649         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
55650         __STDC__)]: Store temporary in pointer member of union, not
55651         integer member.
55652         * lib/obstack.c: Include <stddef.h>, for offsetof.
55653         (struct fooalign): Remove; it doesn't need a name.
55654         (union fooround): Change double to long double, and add void *.
55655         (DEFAULT_ALIGNMENT): Use offsetof to compute.
55656         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
55657         not a macro.  Hence the values are always int; so remove all
55658         casts-to-int in uses.
55659
55660 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
55661
55662         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
55663         we can get this patch merged into glibc.
55664
55665 2004-05-17  Derek R. Price  <derek@ximbiot.com>
55666             Paul Eggert  <eggert@cs.ucla.edu>
55667
55668         * m4/argp: Depend on alloca.
55669
55670 2004-05-17  Derek R. Price  <derek@ximbiot.com>
55671             Paul Eggert  <eggert@cs.ucla.edu>
55672
55673         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
55674         freecoding.
55675
55676 2004-05-17  Bruno Haible  <bruno@clisp.org>
55677
55678         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
55679         precision that consists of a '.' followed by an empty digit string.
55680         Patch by Tor Lillqvist <tml@iki.fi>.
55681
55682 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55683
55684         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
55685         for backward compatibility with older code.  We need our own
55686         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
55687         it under some other name, and our alloca.h will define it.
55688
55689 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55690             Derek Price  <derek@ximbiot.com>
55691
55692         * lib/alloca.c: Include <alloca.h>, to get our interface.
55693         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
55694         include <alloca.h> first.  Use C89 prototype for alloca; this
55695         requires including <stddef.h> for size_t.  Use extern "C" if C++.
55696         Use #elif for simplicity, since we can assume C89 now.
55697         Don't try to source the system alloca.h since it will not be found
55698         and to prevent recursively including its replacement.
55699         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
55700         * lib/regex.c: Likewise.
55701
55702 2004-05-16  Derek Price  <derek@ximbiot.com>
55703             Paul Eggert  <eggert@cs.ucla.edu>
55704
55705         getline cleanup.  This changes the getndelim2 API: both order of
55706         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
55707         no delimiter).
55708
55709         * lib/getline.c: Don't include stddef.h or stdio.h, since our
55710         interface does that.
55711         (getline): Always use getdelim, so that we don't have two
55712         copies of this code.
55713         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
55714         if available.
55715         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
55716         (GETNDELIM2_MAXIMUM): New macro.
55717         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
55718         instead of the old practice of delim2==0.  All callers changed.
55719         Return -1 on overflow, instead of returning junk.
55720         Do not set *linesize unless allocation succeeds.
55721         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
55722         that we include sys/types.h.
55723         * lib/getnline.h: Likewise.
55724         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
55725         (getndelim2): Reorder arguments.
55726         * lib/getnline.c (getnline, getndelim):
55727         Don't discard the NMAX argument.
55728         (getnline): Invoke getndelim, to avoid code duplication.
55729         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
55730         of (size_t) -1 by callers of the getnline family.
55731
55732 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55733
55734         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
55735         Check for gettimeofday.
55736         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
55737         Check for settimeofday, stime.
55738
55739 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55740
55741         * lib/nanosleep.c (suspended): Change its type from int to
55742         sig_atomic_t volatile.
55743         (first_call): Make it private to rpl_nanosleep, and have it
55744         be zero initially as that's a bit faster.
55745         (my_usleep): Round up fractional times instead of truncating them,
55746         as this is the usual meaning for 'sleep'.
55747
55748         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
55749         doesn't work.
55750         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
55751         (ENOSYS): Define if not defined.
55752         (settime): Fall back on stime if it exists and settimeofday fails.
55753         But don't bother with fallbacks if a method fails with errno == EPERM.
55754
55755 2004-05-11  Jim Meyering  <jim@meyering.net>
55756
55757         Prior to this change, the save_cwd caller required read access to the
55758         current directory on most systems (ones with the fchdir function).
55759
55760         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
55761         fails, try write-only, and finally, resort to using xgetcwd.
55762
55763 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
55764
55765         * lib/obstack.c, obstack.h: Import changes from libc.
55766
55767 2004-04-28  Bruno Haible  <bruno@clisp.org>
55768
55769         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
55770         also implicitly appends .exe to executables.
55771         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
55772         accepts Windows pathnames.
55773         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
55774         Treat Cygwin like Windows, since it now accepts Windows pathnames.
55775         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
55776         Treat Cygwin like Windows, since it now accepts Windows pathnames.
55777         Reported by Derek Robert Price <derek@ximbiot.com>.
55778
55779 2004-04-21  Karl Berry  <karl@gnu.org>
55780
55781         * config/srclist.txt (localcharset.c): break sync.
55782
55783 2004-04-20  Paul Eggert  <eggert@twinsun.com>
55784
55785         * m4/host-os.m4: Add a copyright notice.
55786
55787 2004-04-20  Jim Meyering  <jim@meyering.net>
55788
55789         Change UTILS_ to gl_ in AC_DEFINE'd names.
55790         Change utils_- and jm_-prefixed variables, too.
55791         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
55792         UTILS_FUNC_MKDIR_TRAILING_SLASH.
55793         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
55794
55795         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
55796         Don't emit trailing blanks.
55797         Also rename jm_-prefixed variables to have gl_ prefix.
55798
55799         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
55800         Also rename jm_-prefixed variables to have gl_ prefix.
55801
55802         * m4/jm-macros.m4: Reflect the renamings.
55803         * m4/prereq.m4: Likewise.
55804
55805 2004-04-20  Jim Meyering  <jim@meyering.net>
55806
55807         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
55808         memory.
55809
55810 2004-04-20  Jim Meyering  <jim@meyering.net>
55811             Bruno Haible  <bruno@clisp.org>
55812
55813         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
55814         memory when realloc fails.
55815
55816 2004-04-19  Jim Meyering  <jim@meyering.net>
55817
55818         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
55819         now that readutmp.c may call `free (0)'.
55820
55821 2004-04-19  Bruno Haible  <bruno@clisp.org>
55822
55823         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
55824         * m4/inttypes_h.m4: Likewise.
55825         * m4/stdint_h.m4: Likewise.
55826         * m4/intmax_t.m4: Likewise.
55827         * m4/uintmax_t.m4: Likewise.
55828
55829 2004-04-18  Jim Meyering  <jim@meyering.net>
55830
55831         * m4/prereq.m4: Don't forbid jm_ prefix.
55832
55833         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
55834         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
55835         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
55836         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
55837         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
55838         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
55839         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
55840         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
55841         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
55842         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
55843         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
55844         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
55845         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
55846         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
55847         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
55848         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
55849         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
55850         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
55851         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
55852
55853 2004-04-18  Jim Meyering  <jim@meyering.net>
55854
55855         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
55856         failure, don't leak memory and do call END_UTMP_ENT.
55857
55858 2004-04-16  Jim Meyering  <jim@meyering.net>
55859
55860         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
55861         coreutils' stat program.
55862         (gl_PREREQ): Don't require jm_PREREQ_STAT.
55863
55864 2004-04-11  Paul Eggert  <eggert@twinsun.com>
55865
55866         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
55867         C89.
55868         (CHAR_BIT): Remove, since we assume C89.
55869         Include <stdint.h> if available, as per current Autoconf CVS advice.
55870
55871 2004-03-31  Jim Meyering  <jim@meyering.net>
55872
55873         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
55874         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
55875         * m4/xalloc.m4: Likewise.
55876
55877 2004-03-30  Paul Eggert  <eggert@twinsun.com>
55878
55879         Merge from coreutils.
55880
55881         * m4/inttostr.m4: New file.
55882         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
55883         Require AM_STDBOOL_H and gl_TIMESPEC instead.
55884         Require gl_CLOCK_TIME.
55885         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
55886
55887 2004-03-30  Paul Eggert  <eggert@twinsun.com>
55888
55889         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
55890         not bool, to be more consistent with Unix conventions.
55891         Suggested by Bruno Haible.
55892
55893         Merge from coreutils.
55894
55895         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
55896         * lib/umaxtostr.c: New files.
55897
55898         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
55899         the usual <time.h> dance.
55900         (get_date): Change signature to support fractional time stamps.
55901         All callers changed.
55902         * lib/getdate.y: Include "getdate.h" first, as we can now
55903         assume C89 and don't need to worry about 'const'.
55904         Similarly, include "unlocked-io.h" near start, not in middle.
55905         Include <limits.h>.
55906         (textint.value): Use long int rather than int.
55907         (textint.digits): Use size_t rather than int.
55908         (BILLION, LOG10_BILLION): New constants.
55909         (parser_control): New member rel_ns.  Members day_ordinal,
55910         time_zone, month, day, hour, minutes, rel_year, rel_month,
55911         rel_day, rel_hour, rel_minutes, rel_seconds
55912         are now long int, not int.  Member seconds is now struct timespec,
55913         not int.  New member timespec_seen.  Members dates_seen, days_seen,
55914         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
55915         not int.
55916         (%union.intval): Now long int, not int.
55917         New member timespec.
55918         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
55919         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
55920         (spec): Now is a timespec or an item list.
55921         (timespec, items): New nonterminals.
55922         (time, rel, relunit, number, get_date):
55923         Add support for fractional seconds.
55924         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
55925         (gmtime, localtime, mktime): Remove decls; not needed with C89.
55926         (to_hour): First arg is now long int, not int.
55927         (to_year): Returns long int, not int.
55928         Don't treat year -70 like 70.
55929         (tm_diff): Returns long int, not int.
55930         (lookup_word): Use bool instead of int when appropriate.
55931         (yylex): Use size_t for count, not int.
55932         Detect overflow when parsing large integer constants.
55933         Add support for fractions.
55934         (get_date): Make pointers 'const' if possible.
55935         Use more-portable code to detect integer overflow.
55936         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
55937         Don't use ctime; it's not reliable if the year has >4 digits.
55938
55939         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
55940         This is for compatibility with BSD.
55941
55942         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
55943         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
55944         From coreutils' system.h.
55945
55946         * lib/userspec.c: Don't include "posixver.h".
55947         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
55948         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
55949         compatible extension.  Simplify code by removing a boolean int
55950         that was always nonzero if a string was nonnull.
55951
55952 2004-03-30  Jim Meyering  <jim@meyering.net>
55953
55954         Merge from coreutils.
55955
55956         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
55957         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
55958         on some systems one must include <grp.h> before it.
55959         Reported by Christian Krackowizer.
55960
55961 2004-03-30  Jim Meyering  <jim@meyering.net>
55962
55963         Merge from coreutils.
55964
55965         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
55966
55967         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
55968         an empty input stream.
55969
55970         * lib/readtokens.c: Include <stdbool.h>.
55971         (readtoken): Use `size_t' rather than int/long.
55972         All callers adjusted.
55973         Use `bool' rather than `int' where appropriate.
55974         Use memset rather than an explicit loop.
55975         Use x2nrealloc rather than xrealloc.
55976         Allow the use of `\0' as a delimiter.
55977         (readtokens): Likewise.
55978         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
55979
55980 2004-03-30  Jim Meyering  <jim@meyering.net>
55981
55982         * m4/realloc.m4: Remove file, since now it does no more than
55983         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
55984         the `configure.ac' section of module/realloc.
55985         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
55986
55987 2004-03-30  Bruno Haible  <bruno@clisp.org>
55988
55989         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
55990         nonnull.
55991
55992 2004-03-29  Paul Eggert  <eggert@twinsun.com>
55993
55994         Merge changes to getloadavg.c from coreutils and Emacs.
55995
55996         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
55997         Define to an expression, not to the empty string.
55998         Include cloexec.h and xalloc.h.
55999         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
56000         Use set_cloexec_flag rather than rolling our own.
56001         * lib/cloexec.c, lib/cloexec.h: New files.
56002
56003 2004-03-29  Paul Eggert  <eggert@twinsun.com>
56004
56005         * m4/cloexec.m4: New file.
56006
56007 2004-03-18  Paul Eggert  <eggert@twinsun.com>
56008
56009         * lib/getopt.h: Sync with libc CVS.
56010
56011 2004-03-18  Paul Eggert  <eggert@twinsun.com>
56012             Bruno Haible  <bruno@clisp.org>
56013
56014         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
56015         mbswidth.
56016
56017 2004-03-18  Paul Eggert  <eggert@twinsun.com>
56018             Bruno Haible  <bruno@clisp.org>
56019
56020         * lib/mbswidth.h: Include <wchar.h> only if
56021         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
56022         <wchar.h>.
56023         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
56024
56025 2004-03-09  Paul Eggert  <eggert@twinsun.com>
56026
56027         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
56028         Sync with libc CVS.
56029         * lib/getopt_int.h: New file, also synced from libc.
56030
56031 2004-03-09  Paul Eggert  <eggert@twinsun.com>
56032
56033         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
56034         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
56035         Bring back getopt.c, getopt.h, getopt1.c.
56036
56037 2004-03-07  Paul Eggert  <eggert@twinsun.com>
56038
56039         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
56040         All uses changed.  Check for sa_sigaction member; this fixes
56041         a bug first reported by Jason Andrade in
56042         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
56043
56044 2004-03-07  Paul Eggert  <eggert@twinsun.com>
56045
56046         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
56047         '#if' expressions.  Unlike the code it replaces, it does not
56048         depend on (defined _SC_PAGESIZE).  However, it does depend on
56049         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
56050         first reported by Jason Andrade in
56051         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
56052
56053 2004-02-25  Simon Josefsson  <jas@extundo.com>
56054
56055         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
56056
56057 2004-02-25  Simon Josefsson  <jas@extundo.com>
56058
56059         * lib/strdup.h: New file.
56060         * lib/strdup.c: Include it.
56061         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
56062         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
56063
56064 2004-02-23  Karl Berry  <karl@gnu.org>
56065
56066         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
56067         (from fencepost.gnu.org:/gd/gnuorg).
56068
56069 2004-02-23  Karl Berry  <karl@gnu.org>
56070
56071         * config/srclistvars.sh (GNUORG) [karl]: redefine.
56072         * config/srclist.txt: add maintain/standards documents.
56073
56074 2004-02-18  Bruno Haible  <bruno@clisp.org>
56075
56076         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
56077         Reported by Derek Robert Price <derek@ximbiot.com>.
56078
56079 2004-02-16  Karl Berry  <karl@gnu.org>
56080
56081         * config/mkinstalldirs, install-sh: update from automake.
56082
56083 2004-02-06  Karl Berry  <karl@gnu.org>
56084
56085         * m4/po.m4: update from gettext 0.14.1.
56086
56087 2004-02-06  Karl Berry  <karl@gnu.org>
56088
56089         * lib/config.charset: update from gettext 0.14.1.
56090
56091 2004-02-05  Paul Eggert  <eggert@twinsun.com>
56092
56093         Add comments and code, prompted by suggestions from Bruno Haible
56094         for sh-quote.
56095         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
56096         describing the enum quoting_style values.
56097         * lib/quotearg.c (quotearg_alloc): New function.
56098         (quotearg_buffer_restyled): Treat lone { and } as special.
56099         Treat = as special.  Work around bug with older shells
56100         that "see" a '\' that is really the 2nd byte of a multibyte char.
56101         Quote empty string with shell_quoting_style.
56102
56103 2004-02-03  Bruno Haible  <bruno@clisp.org>
56104
56105         * m4/pipe.m4: New file, from GNU gettext.
56106
56107 2004-02-03  Bruno Haible  <bruno@clisp.org>
56108
56109         * lib/pipe.h: New file, from GNU gettext.
56110         * lib/pipe.c: New file, from GNU gettext.
56111
56112 2004-01-27  Bruno Haible  <bruno@clisp.org>
56113
56114         * m4/execute.m4: New file, from GNU gettext.
56115
56116 2004-01-27  Bruno Haible  <bruno@clisp.org>
56117
56118         * lib/execute.h: New file, from GNU gettext.
56119         * lib/execute.c: New file, from GNU gettext.
56120         * lib/w32spawn.h: New file, from GNU gettext.
56121
56122 2004-01-24  Paul Eggert  <eggert@twinsun.com>
56123
56124         Merge from diffutils.
56125
56126         * lib/file-type.c (file_type): Add typed memory objects.
56127         * lib/file-type.h (S_TYPEISTMO): New macro.
56128
56129         * lib/c-stack.h (c_stack_action): Remove argv argument.
56130         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
56131         (die): Don't calculate message unless segv_action returns.
56132         (get_stack_location, min_address_from_argv, max_address_from_argv,
56133         volatile stack_base, volatile_stack_size): Remove.
56134         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
56135         that every segmentation violation is a stack overflow.  (Ouch!)
56136         See Debian bug 136249 (still outstanding) for more info about why
56137         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
56138
56139 2004-01-24  Paul Eggert  <eggert@twinsun.com>
56140
56141         Exit-status fix from coreutils.
56142
56143         Use exit_failure consistently in place of EXIT_FAILURE,
56144         so that program exit statuses are consistent on failure.
56145
56146         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
56147         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
56148         * lib/argmatch.h: Comment fix to match the above.
56149         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
56150         Now a macro referring to exit_failure, instead of a separate
56151         variable.  Include "exitfail.h" to get it.
56152         * lib/xstrtol.h: Include "exitfail.h".
56153         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
56154
56155         * lib/long-options.c (parse_long_options): Use prototype
56156         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
56157         for clarity.
56158
56159 2004-01-21  Jim Meyering  <jim@meyering.net>
56160
56161         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
56162         so as not to conflict with a different-sized __mktime_internal
56163         function in GNU libc.
56164         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
56165         Problem building statically-linked `ls' reported by Michael Brunnbauer.
56166
56167 2004-01-20  Karl Berry  <karl@gnu.org>
56168
56169         * config/config.guess: update from config.
56170
56171         * config/srclistvars.sh: GNUWWWLICENSES for karl.
56172
56173 2004-01-20  Bruno Haible  <bruno@clisp.org>
56174
56175         Safer stack allocation.
56176         * lib/setenv.c: Include allocsa.h.
56177         (alloca): Remove fallback definition.
56178         (freea): Remove macro.
56179         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
56180         instead of freea.
56181
56182 2004-01-20  Bruno Haible  <bruno@clisp.org>
56183
56184         * m4/eealloc.m4: New file, from GNU gettext.
56185
56186 2004-01-20  Bruno Haible  <bruno@clisp.org>
56187
56188         * m4/allocsa.m4: New file, from GNU gettext.
56189
56190 2004-01-20  Bruno Haible  <bruno@clisp.org>
56191
56192         * lib/xallocsa.h: New file, from GNU gettext.
56193         * lib/xallocsa.c: New file, from GNU gettext.
56194
56195 2004-01-20  Bruno Haible  <bruno@clisp.org>
56196
56197         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
56198
56199 2004-01-20  Bruno Haible  <bruno@clisp.org>
56200
56201         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
56202         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
56203         specially.
56204
56205 2004-01-20  Bruno Haible  <bruno@clisp.org>
56206
56207         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
56208         patch.
56209
56210 2004-01-20  Bruno Haible  <bruno@clisp.org>
56211
56212         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
56213
56214 2004-01-20  Bruno Haible  <bruno@clisp.org>
56215
56216         * lib/eealloc.h: New file.
56217
56218 2004-01-20  Bruno Haible  <bruno@clisp.org>
56219
56220         * lib/binary-io.h: Avoid warnings on Cygwin.
56221
56222 2004-01-20  Bruno Haible  <bruno@clisp.org>
56223
56224         * lib/allocsa.h: New file, from GNU gettext.
56225         * lib/allocsa.c: New file, from GNU gettext.
56226
56227 2004-01-18  Karl Berry  <karl@gnu.org>
56228
56229         * doc/gpl.texi, doc/lgpl.texi: new files.
56230
56231 2004-01-18  Karl Berry  <karl@gnu.org>
56232
56233         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
56234         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
56235
56236 2004-01-15  Paul Eggert  <eggert@twinsun.com>
56237
56238         Merge from coreutils.
56239
56240         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
56241         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
56242         (gl_DEFAULT_POSIX2_VERSION): Move
56243         the documentation from 'configure' into 'config.hin',
56244         so that 'configure --help' isn't burdened by it and
56245         we don't have to worry about its formatting there.
56246         Reword the documentation so that it's more succinct
56247         and can be run together into a single paragraph.
56248         * m4/same.m4 (gl_SAME): Check for pathconf.
56249
56250 2004-01-15  Paul Eggert  <eggert@twinsun.com>
56251
56252         Merge from coreutils.
56253
56254         * lib/posixver.c: Include posixver.h.
56255
56256         * lib/same.c: Include <stdbool.h>, <limits.h>.
56257         (_POSIX_NAME_MAX): Define if not defined.
56258         (MIN): New macro.
56259         (same_name): If file names are silently truncated, report
56260         that the file names are the same if they are the same after
56261         the silent truncation.
56262
56263         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
56264         conversion function.
56265         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
56266         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
56267         longer needed.
56268
56269 2004-01-15  Jim Meyering  <jim@meyering.net>
56270
56271         Merge from coreutils.
56272
56273         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
56274         if no library is required.
56275         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
56276         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
56277         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
56278         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
56279         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
56280         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
56281         value, $ac_cv_search_crypt, if it's "none required".
56282         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
56283         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
56284         not gl_FUNC_GETLOADAVG.
56285         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
56286         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
56287
56288 2004-01-15  Jim Meyering  <jim@meyering.net>
56289
56290         Merge from coreutils.
56291
56292         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
56293         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
56294         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
56295
56296         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
56297         optional configure-time default.
56298
56299         * lib/version-etc.c (version_etc_copyright): Update copyright date.
56300
56301         * lib/xreadlink.c (xreadlink): Correct outdated comment.
56302
56303 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
56304
56305         Merge from coreutils.
56306
56307         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
56308         value, $ac_cv_search_nanosleep, if it's "none required".
56309
56310 2004-01-14  Paul Eggert  <eggert@twinsun.com>
56311
56312         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
56313         with like-named macro in fnmatch.c.
56314         (EXT): Use an internal constant instead.
56315
56316         Merge fnmatch patches from glibc.
56317         * lib/fnmatch.c (mbsinit): Remove define.
56318         Add libc_hidden_ver (__fnmatch, fnmatch).
56319         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
56320         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
56321
56322 2004-01-14  Karl Berry  <karl@gnu.org>
56323
56324         * config/install-sh: update from automake.
56325
56326 2004-01-13  Karl Berry  <karl@gnu.org>
56327
56328         * config/install-sh: update from automake.
56329
56330 2004-01-09  Karl Berry  <karl@gnu.org>
56331
56332         * config/install-sh: update from automake.
56333
56334 2004-01-05  Karl Berry  <karl@gnu.org>
56335
56336         * config/config.{sub,guess}: update from config.
56337
56338 2003-12-31  Karl Berry  <karl@gnu.org>
56339
56340         * config/depcomp: update from automake.
56341
56342 2003-12-14  Karl Berry  <karl@gnu.org>
56343
56344         * lib/config.charset: update from gettext-runtime.
56345
56346 2003-12-03  Paul Eggert  <eggert@twinsun.com>
56347
56348         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
56349         Bug reported by Alfred M. Szmidt.
56350
56351 2003-12-03  Bruno Haible  <bruno@clisp.org>
56352
56353         * m4/gettext.m4: Upgrade from gettext-0.13.
56354         * m4/po.m4: Upgrade from gettext-0.13.
56355         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
56356         * m4/intmax.m4: New file, from gettext-0.13.
56357         * m4/printf-posix.m4: New file, from gettext-0.13.
56358
56359 2003-11-29  Karl Berry  <karl@gnu.org>
56360
56361         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
56362
56363 2003-11-25  Paul Eggert  <eggert@twinsun.com>
56364             Bruno Haible  <bruno@clisp.org>
56365
56366         * lib/printf-parse.h: Don't include sys/types.h.
56367         (ARG_NONE): New macro.
56368         (char_directive): Change type of *arg_index fields to size_t.
56369         * lib/printf-parse.c: Don't include sys/types.h.
56370         (SSIZE_MAX): Remove macro.
56371         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
56372         Remove unnecessary overflow check.
56373         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
56374         fields.
56375
56376 2003-11-25  Bruno Haible  <bruno@clisp.org>
56377
56378         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
56379
56380 2003-11-25  Bruno Haible  <bruno@clisp.org>
56381
56382         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
56383         gt_TYPE_SSIZE_T.
56384
56385 2003-11-24  Paul Eggert  <eggert@twinsun.com>
56386
56387         * modules/alloca: Remove dependency on xalloc.
56388
56389 2003-11-24  Paul Eggert  <eggert@twinsun.com>
56390
56391         * lib/alloca.c: Remove dependency on xalloc module.
56392         (xalloc_die): Remove.
56393         (memory_full) [!defined emacs]: New macro.
56394         [!defined emacs]: Don't include xalloc.h.
56395         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
56396         address arithmetic overflows.  Change datatypes a bit to avoid
56397         unnecessary casts.
56398
56399 2003-11-22  Jim Meyering  <jim@meyering.net>
56400
56401         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
56402         s/size/size_t/.
56403
56404 2003-11-21  Karl Berry  <karl@gnu.org>
56405
56406         * config/config.{sub,guess}: update from config.
56407
56408 2003-11-18  Karl Berry  <karl@gnu.org>
56409
56410         * config/config.{sub,guess}: update from config.
56411
56412         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
56413
56414 2003-11-17  Paul Eggert  <eggert@twinsun.com>
56415
56416         * README: Mention that S+T cannot overflow if S is the size of
56417         an existing object and T is sufficiently small.
56418
56419 2003-11-17  Jim Meyering  <jim@meyering.net>
56420
56421         On systems without utime and without a utimes function capable of
56422         dealing with a NULL struct utimbuf* argument, this utime replacement
56423         could -- in unusual circumstances -- leak a file descriptor.
56424         * lib/utime.c: Include <unistd.h> and <errno.h>.
56425         (utime_null): Be sure to close `fd' and to preserve errno.
56426         Reported by Geoff Collyer via Arnold Robbins.
56427
56428 2003-11-17  Bruno Haible  <bruno@clisp.org>
56429
56430         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
56431         (Depends-on): Add xsize.
56432
56433 2003-11-17  Bruno Haible  <bruno@clisp.org>
56434
56435         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
56436
56437 2003-11-17  Bruno Haible  <bruno@clisp.org>
56438
56439         * lib/vasnprintf.c (alloca): Remove fallback definition.
56440         (freea): Remove definition.
56441         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
56442         Reported by Paul Eggert.
56443
56444 2003-11-16  Paul Eggert  <eggert@twinsun.com>
56445             Bruno Haible  <bruno@clisp.org>
56446
56447         Protect against address arithmetic overflow.
56448         * lib/printf-args.h: Include stddef.h.
56449         (arguments): Change type of field 'count' to size_t.
56450         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
56451         'unsigned int' where appropriate.
56452         * lib/printf-parse.h: Include sys/types.h.
56453         (char_directive): Change type of *arg_index fields to ssize_t.
56454         (char_directives): Change type of fields 'count', max_*_length to
56455         size_t.
56456         * lib/printf-parse.c: Include sys/types.h and xsize.h.
56457         (SSIZE_MAX): Define fallback value.
56458         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
56459         instead of 'int' where appropriate. Check a_allocated, d_allocated
56460         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
56461         * lib/vasnprintf.c: Include xsize.h.
56462         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
56463         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
56464         overflow. Avoid wraparound when converting a width or precision from
56465         decimal to binary.
56466
56467 2003-11-16  Bruno Haible  <bruno@clisp.org>
56468
56469         Update from GNU gettext.
56470         * lib/printf-parse.c: Generalize to it can be compiled for wide
56471         strings.
56472         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
56473         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
56474         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
56475         SNPRINTF): New macros.
56476         Don't include <alloca.h> if the file is used inside libintl.
56477         (local_wcslen): New function, for Solaris 2.5.1.
56478         (VASNPRINTF): Use it instead of wcslen.
56479
56480 2003-11-16  Bruno Haible  <bruno@clisp.org>
56481
56482         * lib/xsize.h (xmax): New function.
56483         (xsum, xsum3, xsum4): Declare as "pure" functions.
56484
56485 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56486
56487         * modules/xalloc (Files): Undo latest change, since xalloc.h
56488         no longer needs SIZE_MAX or PTRDIFF_MAX.
56489
56490 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56491
56492         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
56493         gl_PTRDIFF_MAX.
56494
56495 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56496
56497         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
56498         "return", to pacify some unknown compiler.  Problem reported
56499         by Joerg Schilling.
56500
56501 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56502
56503         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
56504         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
56505         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
56506         heuristic is just as accurate as far as we know, and it removes a
56507         dependency on size_max.m4 and ptrdiff_max.m4.
56508
56509 2003-11-11  Bruno Haible  <bruno@clisp.org>
56510
56511         * modules/xsize (Files): Add m4/size_max.m4.
56512         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
56513
56514 2003-11-11  Bruno Haible  <bruno@clisp.org>
56515
56516         * m4/size_max.m4: New file.
56517         * m4/ptrdiff_max.m4: New file.
56518         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
56519         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
56520         (gl_XALLOC): Invoke it.
56521
56522 2003-11-11  Bruno Haible  <bruno@clisp.org>
56523
56524         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
56525         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
56526         defined.
56527
56528 2003-11-10  Paul Eggert  <eggert@twinsun.com>
56529
56530         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
56531         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
56532         rejected some allocations of exactly SIZE_MAX - 2 bytes.
56533         From Bruno Haible.
56534         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
56535         not (size_t) -1, since it's defined here.
56536
56537 2003-11-09  Karl Berry  <karl@gnu.org>
56538
56539         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
56540
56541 2003-11-06  Paul Eggert  <eggert@twinsun.com>
56542
56543         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
56544         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
56545         Reject sizes of exactly SIZE_MAX bytes.
56546         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
56547         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
56548
56549 2003-11-05  Bruno Haible  <bruno@clisp.org>
56550
56551         * lib/xsize.h: Include limits.h, to avoid a possible collision with
56552         SIZE_MAX defined in <limits.h> on Solaris.
56553
56554 2003-11-04  Jim Meyering  <jim@meyering.net>
56555
56556         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
56557         variable names, rather than @VAR@.
56558         * modules/poll: Likewise.
56559
56560 2003-11-04  Bruno Haible  <bruno@clisp.org>
56561
56562         * modules/xsize: New file.
56563         * modules/linebreak: Depend on xsize.
56564         * MODULES.html.sh (func_all_modules): Add xsize.
56565
56566 2003-11-04  Bruno Haible  <bruno@clisp.org>
56567
56568         * m4/xsize.m4: New file.
56569
56570 2003-11-04  Bruno Haible  <bruno@clisp.org>
56571
56572         * lib/xsize.h: New file.
56573         * lib/linebreak.c: Include xsize.h.
56574         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
56575         argument for overflow.
56576         Suggested by Paul Eggert.
56577
56578 2003-11-03  Karl Berry  <karl@gnu.org>
56579
56580         * config/config.{guess,sub}: update from config.
56581
56582 2003-11-03  Jim Meyering  <jim@meyering.net>
56583
56584         * modules/userspec (lib_SOURCES): Add userspec.h.
56585         (Include): Add "userspec.h".
56586         Improve description.
56587
56588 2003-11-03  Jim Meyering  <jim@meyering.net>
56589
56590         * lib/userspec.c: Include "userspec.h".
56591         * lib/userspec.h: New file.
56592
56593 2003-11-03  Bruno Haible  <bruno@clisp.org>
56594
56595         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
56596
56597 2003-11-03  Bruno Haible  <bruno@clisp.org>
56598
56599         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
56600         available, to avoid (extremely rare) race condition.
56601         Suggested by Paul Eggert.
56602
56603 2003-11-02  Karl Berry  <karl@gnu.org>
56604
56605         * config/srclist.txt (vasprintf.c): sync broken, sigh.
56606
56607 2003-10-31  Paul Eggert  <eggert@twinsun.com>
56608
56609         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
56610         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
56611         (read_filesystem_list): Set and use me_type_malloced.
56612         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
56613         whatever the type happens to be), for brevity and consistency.
56614         Check for size calculation overflow on Alphas running OSF/1.
56615
56616 2003-10-31  Jim Meyering  <jim@meyering.net>
56617
56618         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
56619
56620         * lib/linebuffer.c: Include <string.h> for declaration of memset.
56621
56622 2003-10-30  Paul Eggert  <eggert@twinsun.com>
56623             Bruno Haible  <bruno@clisp.org>
56624
56625         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
56626         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
56627
56628 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
56629
56630         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
56631         netbsd*-gnu*.  Suggested by Robert Millan.
56632
56633 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56634
56635         * modules/group-member: Depend on stdbool.
56636
56637 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56638
56639         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
56640
56641 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56642
56643         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
56644         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
56645         after the 'gnu' in these cases.  This fixes some bugs in the
56646         previous change, and is based on suggestions by Robert Millan.
56647
56648 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56649
56650         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
56651         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
56652         no longer needed.
56653         * lib/quotearg.c (quotearg_n_options): Use it.
56654         * lib/group-member.c: Include <stdbool.h>.
56655         (free_group_info): Arg is now const *; don't free arg.
56656         (get_group_info): Now returns bool and accepts struct group_info *,
56657         rather than returning a malloc'ed struct group_info *.
56658         All uses changed.  Check for overflow in internal size calculation.
56659
56660         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
56661         rather than xmalloc/xrealloc.
56662         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
56663         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
56664         conformance bug: the old code used a pointer after freeing the
56665         storage that it addressed.
56666         * lib/hash.c (hash_initialize): Simplify the code by using
56667         xalloc_oversized rather than doing it by hand.
56668         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
56669         the buffer preserved.  Use free and xmalloc instead.
56670         * lib/quotearg.c (quotearg_n_options): Likewise.
56671         Use a simpler test for size overflow.  Don't use xalloc_oversized
56672         because unsigned int might be wider than size_t (!); this suggests
56673         that we should switch from unsigned int to size_t for slot numbers.
56674
56675 2003-10-28  Paul Eggert  <eggert@twinsun.com>
56676
56677         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
56678         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
56679         NetBSD kernels.  Requested by Richard Stallman.
56680
56681 2003-10-27  Paul Eggert  <eggert@twinsun.com>
56682
56683         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
56684         to allocate the returned structure.  Do not allocate a subarray,
56685         as x2nrealloc will do that.
56686         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
56687         instead of xnrealloc.
56688         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
56689
56690 2003-10-27  Bruno Haible  <bruno@clisp.org>
56691
56692         * lib/stdbool_.h: Better support for BeOS.
56693
56694 2003-10-26  Paul Eggert  <eggert@twinsun.com>
56695
56696         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
56697         now uses inline.
56698
56699 2003-10-26  Paul Eggert  <eggert@twinsun.com>
56700
56701         * lib/xalloc.h (xalloc_oversized): New static inline function, for
56702         callers that want to do their own size-overflow checking.  Include
56703         <stdbool.h>, since xalloc_oversized returns bool.
56704         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
56705         to use xalloc_oversized.
56706
56707         Add two functions x2realloc, x2nrealloc, for programs that grow
56708         arrays dynamically by doubling their sizes.
56709         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
56710         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
56711         New functions.
56712
56713         Port to C99 semantics for 'inline' of external functions.
56714         Bug reported by Bruno Haible.
56715         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
56716         with the old contents of xnmalloc.
56717         (xnmalloc, xmalloc): Use it.
56718         (xnrealloc_inline): New static inline function,
56719         with the old contents of xnrealloc.
56720         (xnrealloc, xrealloc): Use it.
56721
56722         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
56723         that.
56724
56725 2003-10-26  Karl Berry  <karl@gnu.org>
56726
56727         * config/srclist.txt (COPYING.DOC): no longer available from
56728         /gd/gnuorg; don't know where the ultimate source is.
56729
56730 2003-10-25  Paul Eggert  <eggert@twinsun.com>
56731
56732         Fix several address-calculation bugs in the hash modules,
56733         plus some minor code cleanup.
56734
56735         * lib/hash.h: Include <stdbool.h>, for bool.
56736         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
56737         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
56738         hash_get_n_entries, hash_get_max_bucket_length,
56739         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
56740         hash_rehash): Use size_t rather than unsigned.
56741         * lib/hash.c (struct hash_table, hash_get_n_buckets,
56742         hash_get_n_buckets_used, hash_get_n_entries,
56743         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
56744         hash_get_entries, hash_do_for_each, hash_string, is_prime,
56745         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
56746         Likewise.
56747         (SIZE_MAX): Define if not defined.
56748         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
56749         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
56750         hash_print):
56751         Use const * when possible.
56752         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
56753         (check_tuning): Fix bug: if tuning parameters were very close to
56754         0 or 1, rounding errors could have caused subscript violations.
56755         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
56756         (hash_initialize): Add 'fail:' label
56757         to free table and return NULL, and use it to simplify code.
56758         Use calloc rather than clearing the storage ourself.
56759         (hash_initialize, hash_rehash): Check for arithmetic overflow in
56760         buffer size calculations.
56761         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
56762         Include <stddef.h>, for size_t.
56763         * lib/hash-pjw.c (hash_pjw): Likewise.
56764         Switch to method described by Bruno Haible.
56765         Include <limits.h>, for CHAR_BIT.
56766         (SIZE_BITS): New macro.
56767
56768 2003-10-23  Paul Eggert  <eggert@twinsun.com>
56769
56770         * m4/getline.m4 (AM_FUNC_GETLINE):
56771         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
56772         hosts.  Problem reported by Derek Robert Price in
56773         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
56774         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
56775         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
56776
56777 2003-10-21  Paul Eggert  <eggert@twinsun.com>
56778
56779         * lib/getndelim2.c (getndelim2): When size calculation overflows,
56780         ceiling the allocation at NMAX bytes rather than silently
56781         discarding input bytes before NMAX is reached.  This makes
56782         a difference only if NMAX exceeds SIZE_MAX / 2.
56783
56784         * lib/obstack.c: Merge from glibc.
56785         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
56786         Add libc_hidden_def (_obstack_newchunk).
56787         (_obstack_free) [! defined _LIBC]: Remove.
56788         [defined _LIBC]: Make a strong alias from obstack_free, rather than
56789         a clone of the function body.
56790         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
56791         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
56792
56793         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
56794         glibc.
56795         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
56796         arg to memcpy.
56797
56798         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
56799         (obstack_ptr_grow_fast, obstack_int_grow_fast):
56800         Don't use lvalue casts, as GCC plans to remove support for them
56801         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
56802         was also present in the non-GCC version, indicating that this
56803         code had always been buggy and had never been widely used.
56804         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
56805         Use the fast variant of each macro, rather than copying the
56806         definiens of the fast variant; that way, we'll be more likely to
56807         catch future bugs in the fast variants.
56808
56809 2003-10-20  Bruno Haible  <bruno@clisp.org>
56810
56811         * modules/wait-process: New file.
56812         * MODULES.html.sh (func_all_modules): Add wait-process.
56813
56814 2003-10-20  Bruno Haible  <bruno@clisp.org>
56815
56816         * m4/wait-process.m4: New file.
56817
56818 2003-10-20  Bruno Haible  <bruno@clisp.org>
56819
56820         * lib/wait-process.h: New file, from GNU gettext.
56821         * lib/wait-process.c: New file, from GNU gettext.
56822
56823 2003-10-19  Jim Meyering  <jim@meyering.net>
56824
56825         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
56826         HPUX 10.20.
56827
56828 2003-10-18  Karl Berry  <karl@gnu.org>
56829
56830         * config/config.guess: update from config.
56831
56832 2003-10-16  Paul Eggert  <eggert@twinsun.com>
56833
56834         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
56835         (getgroups): First arg is int, not size_t.
56836         Don't let 'free' mangle errno.
56837
56838 2003-10-16  Paul Eggert  <eggert@twinsun.com>
56839
56840         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
56841
56842 2003-10-16  Karl Berry  <karl@gnu.org>
56843
56844         * config/config.{guess,sub}: update from config.
56845
56846 2003-10-16  Jim Meyering  <jim@meyering.net>
56847
56848         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
56849         memcpy.
56850
56851 2003-10-15  Paul Eggert  <eggert@twinsun.com>
56852
56853         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
56854         (SIZE_MAX): Remove.
56855         (new_exclude, add_exclude_file): Initial size no longer needs to
56856         be a power of 2.
56857         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
56858         our own address arithmetic overflow checking.
56859
56860         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
56861         (fnmatch): Do not alloca more than 2000 wide characters;
56862         instead, use malloc for large buffers.
56863         Check for address arithmetic overflow, and return -1
56864         with errno set to ENOMEM in that case.
56865         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
56866         (NEW_PATTERN): Do not alloca more than 8000 bytes;
56867         instead, return -1.  Check for address arithmetic overflow.
56868
56869 2003-10-14  Paul Eggert  <eggert@twinsun.com>
56870
56871         Handle invalid suffixes and overflow independently, so that
56872         callers can treat them independently as needed.  Fix some bugs in
56873         suffix handling, e.g., "100k@" was not diagnosed as an invalid
56874         suffix for a human-readable blocksize.  The major caller-visible
56875         change is the addition of a new
56876         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
56877         that both overflow and suffix chars were found.
56878
56879         * lib/human.c (humblock): Don't check separately for invalid suffix
56880         char; that is xstrtoumax's job (now that its bug is fixed).
56881         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
56882         INTMAX_MAX]: New macros.
56883         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
56884         TYPE_MAXIMUM): New macros.
56885         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
56886         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
56887         if overflow occurs, as it's what __strtol does and it's more useful
56888         in practice.
56889         (__xstrtol): If __strtol reports some error other than ERANGE,
56890         reflect it to the caller as LONGINT_INVALID.  If it reports
56891         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
56892         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
56893         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
56894         value.
56895         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
56896         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
56897         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
56898         [defined UINTMAX_MAX]: New macros.
56899
56900 2003-10-14  Bruno Haible  <bruno@clisp.org>
56901
56902         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
56903
56904 2003-10-14  Bruno Haible  <bruno@clisp.org>
56905
56906         * m4/sig_atomic_t: New file, from GNU gettext.
56907         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
56908
56909 2003-10-14  Bruno Haible  <bruno@clisp.org>
56910
56911         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
56912         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
56913         Also use volatile where needed.
56914
56915 2003-10-12  Paul Eggert  <eggert@twinsun.com>
56916
56917         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
56918         Change maintainer from Bruno Haible to 'all'.
56919
56920 2003-10-12  Paul Eggert  <eggert@twinsun.com>
56921
56922         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
56923
56924 2003-10-12  Paul Eggert  <eggert@twinsun.com>
56925
56926         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
56927         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
56928         and define in terms of the other primitives.
56929         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
56930         (SIZE_MAX): Define if not already defined.
56931         (array_size_overflow): New function.
56932         (xalloc_die): Abort instead of exiting if 'error' returns.
56933         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
56934         (xmalloc, xrealloc): Use them.
56935         (xcalloc): Check for address arithmetic overflow.
56936         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
56937         a bit faster than strcpy.
56938
56939 2003-10-10  Simon Josefsson  <jas@extundo.com>
56940
56941         * modules/argp (Depends-on): Add restrict and strcase.
56942
56943 2003-10-10  Simon Josefsson  <jas@extundo.com>
56944
56945         * m4/argp.m4: Add AC_C_INLINE.
56946
56947 2003-10-08  Paul Eggert  <eggert@twinsun.com>
56948
56949         Merge getpass from libc, plus a few fixes.
56950
56951         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
56952         Include <stdbool.h>.
56953         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
56954         __fsetlocking to empty.
56955         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
56956         do include <bits/libc-lock.h>.
56957         Do not include <fcntl.h>; not needed.
56958         [_LIBC]: Include <wchar.h>.
56959         (NOTCANCEL_MODE): New macro.
56960         (flockfile, funlockfile) [_LIBC]: New macros.
56961         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
56962         [!_LIBC]: New macros.
56963         (call_fclose): New function.
56964         (getpass): Use it.  Save tty stream separately; this simplifies the
56965         code and makes it more reliable if stdin happens to equal stdout.
56966         Invoke __fsetlocking on tty.
56967         Handle thread cancellation if needed.
56968         Namespace cleanup (use __tcgetattr, __getline).
56969         Use bool for Booleans.
56970         [USE_IN_LIBIO]: Handle wide streams.
56971         [!_LIBC]: Unconditionally do the fseek, since we don't know what
56972         stream might go where.
56973
56974         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
56975         doesn't have to include <stdio.h> before us.
56976         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
56977         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
56978         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
56979         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
56980         if not declared, so that we can use getpass.c code from libc without
56981         rewriting it.
56982         (flockfile, ftrylockfile, funlockfile): New macros.
56983
56984 2003-10-08  Paul Eggert  <eggert@twinsun.com>
56985
56986         * modules/getpass: Depend on stdbool.
56987
56988 2003-10-08  Paul Eggert  <eggert@twinsun.com>
56989
56990         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
56991
56992 2003-10-07  Karl Berry  <karl@gnu.org>
56993
56994         * config/config.{guess,sub}: update from config.
56995
56996 2003-10-06  Jim Meyering  <jim@meyering.net>
56997             Bruno Haible  <bruno@clisp.org>
56998
56999         This lets translators provide better translations for the
57000         "Written by ..." part of --version output.
57001         * lib/version-etc.h: Include stdarg.h.
57002         (version_etc_copyright): Declare as readonly.
57003         (version_etc): Make this function variadic with a NULL-terminated list
57004         of author name strings.
57005         (version_etc_va): New declaration.
57006         * lib/version-etc.c: Include stdarg.h, stdlib.h.
57007         (version_etc_copyright): Declare as readonly.
57008         (version_etc_va): New function. Provide a different translatable string
57009         for each possible number of authors < 10. Abbreviate when there are 10
57010         authors or more.
57011         (version_etc): Make this function variadic. Call version_etc_va.
57012         Suggestion from Gary V. Vaughan.
57013
57014         * lib/long-options.h (parse_long_options): Change prototype: the
57015         authors string is moved to the end and becomes variadic.
57016         * lib/long-options.c: Include stdarg.h.
57017         (parse_long_options): Make this function variadic, too.
57018         Call version_etc_va, not version_etc.
57019
57020 2003-10-06  Bruno Haible  <bruno@clisp.org>
57021
57022         * modules/version-etc-2: Remove file.
57023         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
57024
57025 2003-10-06  Bruno Haible  <bruno@clisp.org>
57026
57027         * modules/fatal-signal: New file.
57028         * MODULES.html.sh (func_all_modules): Add fatal-signal.
57029
57030 2003-10-06  Bruno Haible  <bruno@clisp.org>
57031
57032         * m4/fatal-signal.m4: New file.
57033         * m4/signalblocking.m4: New file, from GNU gettext.
57034
57035 2003-10-06  Bruno Haible  <bruno@clisp.org>
57036
57037         * lib/version-etc-2.h: Remove file.
57038         * lib/version-etc-2.c: Remove file.
57039
57040 2003-10-06  Bruno Haible  <bruno@clisp.org>
57041
57042         * lib/fatal-signal.h: New file, from GNU gettext.
57043         * lib/fatal-signal.c: New file, from GNU gettext.
57044
57045 2003-10-05  Paul Eggert  <eggert@twinsun.com>
57046
57047         * README: Rework advice for preventing empty .o files.
57048         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
57049         not <sys/types.h>.
57050
57051 2003-10-04  Karl Berry  <karl@gnu.org>
57052
57053         * lib/argp*: update from libc.
57054
57055 2003-10-04  Karl Berry  <karl@gnu.org>
57056
57057         * config/config.{guess,sub}: update from config.
57058
57059 2003-10-02  Bruno Haible  <bruno@clisp.org>
57060
57061         * modules/lchown (Include): Add lchown.h.
57062         * modules/time_r (Include): Use "..." syntax.
57063         * modules/xgetdomainname (Include): Add xgetdomainname.h.
57064
57065 2003-10-01  Simon Josefsson  <jas@extundo.com>
57066
57067         * MODULES.html.sh (func_all_modules): Move gethostname from section
57068         'based on' to section 'lacking' POSIX:2001.
57069
57070 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
57071
57072         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
57073         to output mode on the same stream.
57074
57075 2003-09-29  Paul Eggert  <eggert@twinsun.com>
57076
57077         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
57078         Fix arg typo in previous patch.
57079
57080 2003-09-28  Jim Meyering  <jim@meyering.net>
57081
57082         * lib/error.c: Correct cpp indentation.
57083
57084 2003-09-27  Paul Eggert  <eggert@twinsun.com>
57085
57086         * modules/free: New file.
57087
57088 2003-09-27  Paul Eggert  <eggert@twinsun.com>
57089
57090         * m4/free.m4: New file.
57091
57092 2003-09-27  Paul Eggert  <eggert@twinsun.com>
57093
57094         * lib/minmax.h (MIN, MAX)
57095         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
57096         Omit the special code that used __typeof__, since we worry that
57097         it could be more trouble than it's worth.  See:
57098         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
57099         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
57100
57101         * lib/free.c: New file.
57102
57103 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
57104
57105         Trivial fixes to Makefile.am parts of module listings.
57106         * modules/strstr: Append strstr.h to lib_SOURCES.
57107         * modules/strcase: Likewise, for strcase.h.
57108
57109 2003-09-27  Karl Berry  <karl@gnu.org>
57110
57111         * config/mkinstalldirs: update from automake.
57112
57113 2003-09-26  Paul Eggert  <eggert@twinsun.com>
57114
57115         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
57116         (error_tail): Do not loop, reallocating temporary buffer, since
57117         the output cannot contain more wide characters than the input
57118         contains bytes, the size must be big enough already.  This avoids
57119         one potential size overflow calculation.  Check for size overflow
57120         when calculating temporary buffer size.  Free temporary buffer
57121         when done, if it was allocated with malloc; this plugs a memory
57122         leak.  Remove casts from void * to pointers, that are no longer
57123         needed now that we're assuming C89 or better.
57124
57125         Merge error changes from glibc.
57126
57127         * lib/error.c, error.h: Update copyright notice header to match glibc.
57128         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
57129         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
57130         Disable cancellation while printing error.
57131         * lib/error.h: Prepend __ to parameter names.
57132
57133 2003-09-26  Jim Meyering  <jim@meyering.net>
57134
57135         * lib/error.c (error_tail): Move some declarations
57136         into inner scope where the local variables are used.
57137
57138 2003-09-26  Bruno Haible  <bruno@clisp.org>
57139
57140         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
57141         stpncpy().
57142         Don't define stpncpy through config.h; it's now done through stpncpy.h.
57143
57144 2003-09-26  Bruno Haible  <bruno@clisp.org>
57145
57146         * lib/stpncpy.h (gnu_stpncpy): New declaration.
57147         (stpncpy): Define as alias for gnu_stpncpy.
57148         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
57149
57150 2003-09-25  Simon Josefsson  <jas@extundo.com>
57151
57152         * lib/xgetdomainname.h: New file.
57153         * lib/xgetdomainname.c: New file.
57154
57155 2003-09-25  Simon Josefsson  <jas@extundo.com>
57156             Bruno Haible  <bruno@clisp.org>
57157
57158         * modules/getdomainname: New file.
57159         * modules/xgetdomainname: New file.
57160         * MODULES.html.sh (func_all_modules): Add getdomainname,
57161         xgetdomainname.
57162
57163 2003-09-25  Simon Josefsson  <jas@extundo.com>
57164             Bruno Haible  <bruno@clisp.org>
57165
57166         * m4/getdomainname.m4: New file.
57167
57168 2003-09-25  Simon Josefsson  <jas@extundo.com>
57169             Bruno Haible  <bruno@clisp.org>
57170
57171         * lib/getdomainname.h: New file.
57172         * lib/getdomainname.c: New file.
57173
57174 2003-09-25  Karl Berry  <karl@gnu.org>
57175
57176         * lib/argp-fmtstream.c, argp-help.c: update from libc.
57177
57178 2003-09-25  Karl Berry  <karl@gnu.org>
57179
57180         * config/install-sh: update from automake.
57181
57182 2003-09-25  Bruno Haible  <bruno@clisp.org>
57183
57184         * modules/version-etc-2: New file, from modules/version-etc with
57185         modifications.
57186         * MODULES.html.sh (func_all_modules): Add version-etc-2.
57187
57188 2003-09-25  Bruno Haible  <bruno@clisp.org>
57189
57190         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
57191         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
57192
57193 2003-09-24  Simon Josefsson  <jas@extundo.com>
57194
57195         * modules/xgethostname: Add xgethostname.h.
57196
57197 2003-09-24  Paul Eggert  <eggert@twinsun.com>
57198
57199         * lib/linebuffer.c (freebuffer): Don't free the argument, just
57200         the buffer associated with the argument.  Bug reported by
57201         Simon Josefsson.
57202
57203 2003-09-24  Paul Eggert  <eggert@twinsun.com>
57204
57205         * README: Document assumptions that 'int' is at least 32 bits
57206         wide, that integer arithmetic is 2's complement without overflow,
57207         that there are no holes in integer values, that adding sizes of
57208         two nonoverlapping objects can't overflow, and that all-bits-zero
57209         yields scalar zero.  Fix spelling and capitalization typos.
57210
57211 2003-09-19  Karl Berry  <karl@gnu.org>
57212
57213         * lib/argp.h: update from libc.
57214
57215 2003-09-17  Paul Eggert  <eggert@twinsun.com>
57216
57217         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
57218         to avoid spurious warnings like "AC_RUN_IFELSE was called before
57219         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
57220
57221 2003-09-17  Paul Eggert  <eggert@twinsun.com>
57222
57223         * gnulib-tool: Use "test -h", not "test -L", for portability
57224         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
57225         (tags_regexp): Remove, since \| doesn't conform to POSIX.
57226         (sed_extract_prog): Issue s commands one-by-one, rather than
57227         using \| in one s command.
57228
57229 2003-09-16  Paul Eggert  <eggert@twinsun.com>
57230
57231         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
57232         input error, instead of returning NULL the next time we are called
57233         (and therefore losing track of errno).
57234
57235 2003-09-16  Bruno Haible  <bruno@clisp.org>
57236
57237         * gnulib-tool (func_create_testdir): Warn about duplicated
57238         dependencies.
57239
57240 2003-09-15  Paul Eggert  <eggert@twinsun.com>
57241
57242         * modules/argmatch, modules/fatal, modules/obstack,
57243         modules/xalloc, modules/xgethostname: Sort dependencies by
57244         importance, not alphabetically.
57245
57246 2003-09-15  Paul Eggert  <eggert@twinsun.com>
57247
57248         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
57249         fails, so that the caller gets the proper errno.
57250
57251         * lib/readutmp.c (read_utmp): Likewise.
57252         Check for fstat error.  Close stream and free storage
57253         when failing.
57254
57255 2003-09-14  Karl Berry  <karl@gnu.org>
57256
57257         * config/srclist.txt (strdup.c): disable for c89 changes.
57258
57259 2003-09-14  Jim Meyering  <jim@meyering.net>
57260
57261         * lib/getloadavg.c: Correct cpp indentation.
57262         * lib/strdup.c: Likewise.
57263         * lib/vasnprintf.c: Likewise.
57264
57265 2003-09-14  Bruno Haible  <bruno@clisp.org>
57266
57267         * modules/fwriteerror: New file.
57268         * MODULES.html.sh (func_all_modules): Add fwriteerror.
57269
57270 2003-09-14  Bruno Haible  <bruno@clisp.org>
57271
57272         * lib/fwriteerror.h: New file.
57273         * lib/fwriteerror.c: New file.
57274
57275 2003-09-12  Paul Eggert  <eggert@twinsun.com>
57276
57277         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
57278         modules/xgethostname, modules/xalloc: Depend on exit.
57279
57280 2003-09-12  Paul Eggert  <eggert@twinsun.com>
57281
57282         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
57283
57284         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
57285         and AC_MINIX, too, so that their extensions are available.
57286
57287         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
57288         This macro has been superseded by gl_BACKUPFILE.
57289
57290         More patches to assume C89 or better.
57291
57292         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
57293
57294         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
57295         unconditionally.
57296         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
57297         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
57298         Include <string.h>, <stdlib.h> unconditionally.
57299         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
57300         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
57301         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
57302         headers or for string.h.
57303         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
57304         or strtoul.
57305
57306         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
57307         headers.
57308         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
57309         * m4/userspec.m4 (gl_USERSPEC): Likewise.
57310         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
57311         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
57312         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
57313         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
57314         memcpy, memset.
57315         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
57316         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
57317         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
57318         strtol.
57319         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
57320         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
57321         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
57322         strtoul.
57323
57324 2003-09-12  Paul Eggert  <eggert@twinsun.com>
57325
57326         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
57327         * lib/obstack.c [!defined _LIBC]: Likewise.
57328         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
57329         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
57330         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
57331
57332         More changes to assume C89 or better.
57333
57334         * lib/error.c (error_tail): Assume vprintf.
57335
57336         * lib/argmatch.c (getenv): Remove decl.
57337         * lib/progreloc.c (get_full_program_name): Define via prototype.
57338         * lib/setenv.c (clearenv): Likewise.
57339         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
57340         needed.
57341         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
57342         (malloc, memcpy): Remove decls.
57343         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
57344         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
57345         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
57346         (memcpy): Remove macro.
57347         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
57348         (__P): Remove.  All uses removed.
57349         (PTR): Remove.  All uses changed to void *.
57350         (CHAR_BIT, NULL): Remove.
57351         (spaces, zeros, memset_space, memset_zero)
57352         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
57353         Remove.
57354         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
57355         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
57356         Define with prototype.
57357         Remove now-unnecessary prototype decl.
57358         (extra_args_spec): Assume ANSI C.  All uses changed.
57359         (extra_args_spec_iso): Remove.
57360         (my_strftime, emacs_strftimeu): Define via prototype.
57361         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
57362         unconditionally.
57363         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
57364         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
57365         (strtoul, strtol): Remove decls.
57366         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
57367         LONG_MAX): Remove.
57368         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
57369         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
57370         (LOCALE_PARAM_PROTO): New macro.
57371         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
57372         (INTERNAL (strtol), strtol): Define with a prototype.
57373         (PARAMS): Remove.  All uses removed.
57374         * lib/tempname.c: Include <string.h> unconditionally.
57375         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
57376         * lib/xgethostname.c (main): Define with a prototype.
57377         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
57378         Include <stdlib.h> unconditionally.
57379         (calloc, malloc, realloc, free): Remove decls.
57380         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
57381         Include <stdlib.h> unconditionally.  Sort include file names.
57382         (strtod): Remove.
57383         (xstrtod): Define with a prototype.
57384         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
57385         (strtol, strtoul): Remove decls.
57386
57387 2003-09-11  Paul Eggert  <eggert@twinsun.com>
57388
57389         More patches to assume C89 or better.
57390         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
57391         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
57392         string.h, memchr, STDC_HEADERS.
57393
57394 2003-09-11  Paul Eggert  <eggert@twinsun.com>
57395
57396         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
57397         Include <stdlib.h>, <string.h> unconditionally.
57398         Remove now-unnecessary cast to char *.
57399         * lib/strnlen.c: Include <string.h> unconditionally.
57400         * lib/yesno.c (yesno): Define with a prototype.
57401
57402 2003-09-11  Bruno Haible  <bruno@clisp.org>
57403
57404         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
57405
57406 2003-09-10  Jim Meyering  <jim@meyering.net>
57407
57408         * lib/error.c: Correct indentation of cpp directives.
57409
57410 2003-09-10  Bruno Haible  <bruno@clisp.org>
57411
57412         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
57413         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
57414         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
57415         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
57416         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
57417         <stdlib.h> and <string.h> checks.
57418         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
57419         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
57420
57421 2003-09-10  Bruno Haible  <bruno@clisp.org>
57422
57423         * lib/strcspn.c: Include <string.h> unconditionally.
57424         * lib/strpbrk.c: Include <string.h> unconditionally.
57425         * lib/strstr.c: Include <string.h> unconditionally.
57426         * lib/unicodeio.c: Include <string.h> unconditionally.
57427         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
57428         * lib/unsetenv.c: Likewise.
57429         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
57430         * lib/yesno.c: Include <stdlib.h> unconditionally.
57431         (rpmatch): Add prototype.
57432
57433 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57434
57435         More patches to assume C89 or better.
57436         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
57437         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
57438         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
57439         or for string.h.
57440         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
57441         stdlib.h.
57442         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
57443         C headers.
57444         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
57445         string.h.
57446         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
57447         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
57448         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
57449         or for string.h.
57450         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
57451         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
57452         C headers.
57453         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
57454         memcpy.
57455         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
57456         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
57457         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
57458         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
57459         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
57460         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
57461         string.h, free.
57462         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
57463         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
57464         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
57465         C headers, or for string.h.
57466         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
57467         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
57468         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
57469         headers, memory.h, stdlib.h, string.h, strings.h.
57470         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
57471         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
57472         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
57473         strchr.
57474         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
57475         headers, memory.h, string.h.
57476         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
57477         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
57478         free.
57479         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
57480         headers.
57481         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
57482         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
57483         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
57484         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
57485         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
57486
57487 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57488
57489         More K&R removal.
57490
57491         * lib/acosl.c (main): Use a prototype.
57492         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
57493         tanl.c: Likewise.
57494
57495         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
57496
57497         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
57498         (getopt, etopt_long, getopt_long_only, _getopt_internal)
57499         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
57500         with a prototype.
57501         * lib/getopt.c (const): Remove macro.
57502         Include <string.h> unconditionally.
57503         (my_index): Remove; all uses changed to strchr.
57504         (strlen): Remove decl.
57505         (exchange): Remove forward decl; no longer needed.
57506         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
57507         Define with prototype.
57508         * lib/getopt1.c (const): Remove macro.
57509         (getopt_long, getopt_long_only, main): Define with prototype.
57510
57511         * lib/getugroups.c: Include <string.h> unconditionally.
57512
57513         * lib/getusershell.c: Include <stdlib.h> unconditionally.
57514         (getusershell, setusershell, endusershell, readname, main):
57515         Define with prototypes.
57516
57517         * lib/group-member.c: Include group-member.h first.
57518         Include <stdlib.h> unconditionally.
57519
57520         * lib/hard-locale.c: Include hard-locale.h first.
57521         Include <stdlib.h>, <string.h> unconditionally.
57522
57523         * lib/hash.c (free, malloc): Remove decls.
57524         Include <stdlib.h> unconditionally.
57525
57526         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
57527         (getenv): Do not declare.
57528
57529         * lib/idcache.c: Include <string.h> unconditionally.
57530
57531         * lib/long-options.c: Include long-options.h first, to test interface.
57532         Include <stdlib.h> unconditionally.
57533
57534         * lib/makepath.c: Include makepath.h first, to test interface.
57535         Include <stdlib.h> and <string.h> unconditionally.
57536
57537         * lib/linebuffer.c: Include <stdlib.h>.
57538         (free): Remove decl.
57539
57540         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
57541         stddef.h. rpl_malloc returns void *, not char *.
57542         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
57543         prototype.
57544
57545         * lib/md5.h: Include <limits.h> unconditionally.
57546         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
57547         (__P): Remove; all uses removed.
57548         * lib/md5.c: Include "md5.h" first.
57549         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
57550         md5_buffer, md5_process_bytes, md5_process_block):
57551         Define with prototypes.
57552         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
57553         * lib/sha.c: Include "sha.h" first.
57554         Include <stdlib.h>, <string.h> unconditionally.
57555
57556         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
57557         * lib/memcmp.c (__ptr_t): Likewise.
57558         * lib/memrchr.c (__ptr_t): Likewise.
57559         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
57560         Include <string.h> unconditionally.
57561         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
57562         * lib/memchr.c: Include <stdlib.h> unconditionally.
57563         * lib/memchr.c (LONG_MAX): Remove.
57564         * lib/memrchr.c (LONG_MAX): Likewise.
57565         * lib/memchr.c (__memchr): Define via a prototype.
57566         * lib/memrchr.c (__memrchr): Likewise.
57567         * lib/memcmp.c (__P): Remove, and remove all uses.
57568         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
57569         Remove forward decls; no longer needed.
57570         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
57571         Use types required by C89 in prototype.
57572
57573         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
57574         * lib/savedir.c: Likewise.
57575         * lib/mkdir.c (free): Remove decl.
57576         * lib/rmdir.c (rmdir): Define with a prototype.
57577         * lib/savedir.c: Include savedir.h first, to test interface.
57578
57579         * lib/mktime.c (STDC_HEADERS): Remove.
57580         Include <stdlib.h>, <string.h> unconditionally.
57581
57582         * lib/modechange.c: Include <stdlib.h> unconditionally.
57583         (malloc): Remove decl.
57584
57585         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
57586         (free): Remove decl.
57587
57588         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
57589         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
57590         (This type really should be intptr_t, but that's a C99ism.)
57591         (_obstack_memcpy): Remove: all uses changed to memcpy.
57592         Include <string.h> unconditionally.
57593         (struct obstack): Assume __STDC__ for types of members
57594         chunkfun, freefun, extra_arg.
57595         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
57596         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
57597         obstack_begin, obstack_specify_allocation,
57598         obstack_specify_allocation_with_arg, obstack_chunkfun,
57599         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
57600         Remove unprototyped decls and the macros that use them.
57601         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
57602         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
57603         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
57604         (defined __STDC__ && __STDC__)]:
57605         Remove nonprototyped code.
57606         Include <stdlib.h> unconditionally.
57607         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
57608         _obstack_allocated_p, _obstack_free, obstack_free,
57609         _obstack_memory_used, print_and_abort):
57610         Define using prototypes.
57611         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
57612         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
57613         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
57614         obstack_next_free, obstack_object_size, obstack_room) [0]:
57615         Remove unused, unprototyped code.
57616
57617         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
57618
57619         * lib/physmem.c (physmem_total, physmem_available, main): Define
57620         with prototypes.
57621
57622         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
57623         (main): Define with a prototype.
57624
57625         * lib/posixver.c (getenv): Remove decl.
57626
57627         * lib/putenv.c (malloc): Returns void *, not char *.
57628         Include <string.h> unconditionally.
57629         (strchr, memcpy, NULL): Do not define.
57630
57631         * lib/readtokens.c: Include readtokens.h first, to test interface.
57632         Include <stdlib.h>, <string.h> unconditionally.
57633         (init_tokenbuffer): Define with a prototype.
57634
57635         * lib/regex.c (PARAMS): Remove.  All uses removed.
57636         All uses of _RE_ARGS removed, too.
57637         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
57638         unconditionally.
57639         (bzero): Assume memset exists.
57640         (memcmp, memcpy, NULL): Remove.
57641         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
57642         char, or assignments to local vars of type signed char.
57643         (init_syntax_once, PREFIX(extract_number_and_incr),
57644         PREFIX(print_partial_compiled_pattern),
57645         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
57646         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
57647         PREFIX(regex_grow_registers), PREFIX(regex_compile),
57648         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
57649         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
57650         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
57651         wcs_compile_range, byte_compile_range, truncate_wchar,
57652         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
57653         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
57654         count_mbs_length, wcs_re_match_2_internal,
57655         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
57656         PREFIX(alt_match_null_string_p),
57657         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
57658         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
57659         regfree, PREFIX(extract_number)): Define with prototype.  Remove
57660         now-unnecessary declaration, if any.
57661         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
57662         regcomp, regexec):
57663         Remove now-unnecessary casts among pointer types.
57664         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
57665
57666         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
57667         (free): Remove decl.
57668
57669         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
57670
57671         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
57672         (free): Remove decl.
57673
57674         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
57675         * lib/xgetcwd.c: Likewise.
57676
57677         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
57678         (free): Remove decl.
57679
57680         * lib/strchrnul.c (strchrnul): Define with a prototype.
57681         Fix bug: c_in was not converted to char before searching.
57682
57683         The following changes are not K&R related:
57684
57685         * lib/group-member.h: Include <sys/types.h>, so that this file is
57686         self-contained.
57687         * lib/makepath.h: Likewise.
57688
57689         * lib/getusershell.c (readname, default_index, line_size, readname):
57690         Use size_t, not int, for sizes.
57691         (readname): If the size overflows, report an error instead of
57692         looping forever.
57693
57694 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57695
57696         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
57697         libc.
57698
57699 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57700
57701         * README: New section: portability guidelines.
57702
57703 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
57704
57705         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
57706         C89 spec.
57707
57708 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
57709
57710         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
57711
57712 2003-09-08  Paul Eggert  <eggert@twinsun.com>
57713
57714         Assume C89 or better; remove K&R cruft.
57715         A few of these changes were first proposed by Derek Robert Price
57716         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
57717
57718         * lib/addext.c: Include <string.h> unconditionally.
57719         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
57720         Don't declare getenv or malloc.
57721
57722         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
57723         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
57724         (NULL): Remove.
57725         (find_stack_direction, alloca): Use prototypes.
57726
57727         * lib/atexit.c (atexit): Define using a prototype.
57728
57729         * lib/basename.c, dirname.c, stripslash.c:
57730         Include <string.h> unconditionally.
57731
57732         * lib/bcopy.c: Include <stddef.h>.
57733         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
57734
57735         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
57736
57737         * lib/error.h (error, error_at_line, error_print_progname)
57738         [! (defined (__STDC__) && __STDC__)]: Remove decls.
57739         * lib/error.c: Include error.h first, to check interface.
57740         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
57741         (VA_START): Remove; all uses changeed to va_start.
57742         (exit, strerror): Remove decls.
57743         (error_print_progname): Prototype uncondionally.
57744         Don't include <errno.h>; no longer needed.
57745         (private_strerror): Remove.
57746         (error_tail): Always define.
57747         (error, error_at_line): Assume C89 or better; always use prototypes.
57748         * lib/fatal.c: Include "fatal.h" first, to test interface.
57749         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
57750         (VA_START): Remove; all uses changed to va_start.
57751         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
57752         this case.
57753         (exit): Remove decl.
57754         (fatal): Prototype unconditionally.  Assume va_start works.
57755         Abort at end, to pacify gcc.
57756
57757         * lib/euidaccess.c (main): Define with a prototype.
57758
57759         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
57760
57761         * lib/exitfail.c: Include <stdlib.h> unconditionally.
57762
57763         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
57764         prototypes.
57765         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
57766         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
57767         (getenv): Remove decl.
57768         (fnmatch): Define using a prototype.
57769         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
57770         (FCT): Define using a prototype.
57771
57772         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
57773
57774         * lib/gethostname.c: Include <stddef.h>.
57775         (gethostname): Define with prototype.  Length is size_t, not int.
57776
57777 2003-09-08  Paul Eggert  <eggert@twinsun.com>
57778
57779         Assume C89 or better; remove K&R cruft.
57780         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
57781         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
57782         string.h, getenv, malloc.
57783         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
57784         headers.
57785         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
57786         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
57787         do not check for strerror.
57788         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
57789         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
57790         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
57791         do not check for doprnt or vprintf.
57792         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
57793         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
57794
57795 2003-09-08  Paul Eggert  <eggert@twinsun.com>
57796
57797         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
57798         getversion.c should have been removed then, but was accidentally
57799         preserved.
57800
57801         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
57802         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
57803
57804 2003-09-08  Karl Berry  <karl@gnu.org>
57805
57806         * config/config.sub, config.guess, srclistvars.sh: update from savannah
57807                 config, forget about prep.
57808
57809         * config/depcomp, missing: update from automake.
57810
57811 2003-09-07  Paul Eggert  <eggert@twinsun.com>
57812
57813         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
57814         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
57815
57816 2003-09-07  Paul Eggert  <eggert@twinsun.com>
57817
57818         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
57819         copy_tm_result.  Bug reported by Simon Josefsson in
57820         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
57821
57822 2003-09-06  Paul Eggert  <eggert@twinsun.com>
57823
57824         * m4/time_r.m4: New file.
57825         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
57826         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
57827         is. Check for timegm declaration.
57828         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
57829         Do not check for gmtime_r.
57830         Replace mktime if __mktime_internal does not exist and if mktime
57831         hasn't been replaced already.
57832
57833 2003-09-06  Paul Eggert  <eggert@twinsun.com>
57834
57835         * lib/time_r.c, lib/time_r.h: New files.
57836
57837         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
57838         __localtime_r.
57839         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
57840         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
57841
57842         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
57843         __gmtime_r.
57844         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
57845         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
57846         Include <time_r.h>.
57847
57848         * lib/timegm.c: Switch to glibc implementation, with the following
57849         changes:
57850         [defined HAVE_CONFIG_H]: Include <config.h>.
57851         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
57852         (__mktime_internal) [!defined _LIBC]: New decl.
57853         (__gmtime_r) [!defined _LIBC]: New macro and function.
57854         (timegm): Use a prototype, since gnulib assumes C89.
57855         Do not bother declaring tmp to be const, as it's not really usefu.
57856         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
57857         (timegm): Declare only if HAVE_DECL_TIMEGM.
57858
57859 2003-09-06  Paul Eggert  <eggert@twinsun.com>
57860
57861         * MODULES.html.sh (func_all_modules): Add time_r.
57862         * modules/time_r: New file.
57863         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
57864         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
57865
57866 2003-09-03  Paul Eggert  <eggert@twinsun.com>
57867
57868         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
57869         Bug reported by Lute Kamstra in
57870         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
57871
57872         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
57873         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
57874         course with correspondingly smaller numbers for tomorrow and
57875         yesterday.  From Tadayoshi Funaba.  Originally installed into
57876         sh-utils on 1999-08-07, but the patch got lost (I guess during the
57877         coreutils merge?).
57878
57879 2003-08-31  Simon Josefsson  <jas@extundo.com>
57880
57881         * modules/timegm: New file.
57882         * MODULES.html.sh (func_all_modules): Add timegm.
57883
57884 2003-08-31  Simon Josefsson  <jas@extundo.com>
57885
57886         * m4/timegm.m4: New file.
57887
57888 2003-08-31  Simon Josefsson  <jas@extundo.com>
57889
57890         * lib/timegm.h: New file.
57891         * lib/timegm.c: New file.  Based on
57892         wget-1.8.2/src/http.c:mktime_from_utc.
57893
57894 2003-08-31  Karl Berry  <karl@gnu.org>
57895
57896         * lib/argp.h: update from libc.
57897
57898 2003-08-28  Bruno Haible  <bruno@clisp.org>
57899
57900         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
57901         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
57902         followed by '#define fnmatch fnmatch_posix' gives an error.
57903
57904 2003-08-28  Bruno Haible  <bruno@clisp.org>
57905
57906         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
57907         warning on QNX, which defines O_BINARY to 000000.
57908
57909 2003-08-27  Jim Meyering  <jim@meyering.net>
57910
57911         * m4/mkstemp.m4: Require that the system mkstemp be able to create
57912         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
57913         would fail after 32.  Reported by Danny Levinson.  Details here:
57914         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
57915
57916 2003-08-24  Bruno Haible  <bruno@clisp.org>
57917
57918         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
57919         MSVC7 <stdio.h> is included later.
57920
57921 2003-08-22  Simon Josefsson  <jas@extundo.com>
57922
57923         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
57924
57925 2003-08-20  Karl Berry  <karl@gnu.org>
57926
57927         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
57928
57929 2003-08-20  Bruno Haible  <bruno@clisp.org>
57930
57931         * modules/progname: New file.
57932         * MODULES.html.sh (func_all_modules): Add progname.
57933
57934 2003-08-20  Bruno Haible  <bruno@clisp.org>
57935
57936         * lib/progname.h: New file, from GNU gettext.
57937         * lib/progname.c: New file, from GNU gettext.
57938         * lib/progreloc.c: New file, from GNU gettext.
57939
57940 2003-08-19  Jim Meyering  <jim@meyering.net>
57941
57942         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
57943         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
57944
57945 2003-08-19  Bruno Haible  <bruno@clisp.org>
57946
57947         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
57948         more.
57949
57950 2003-08-19  Bruno Haible  <bruno@clisp.org>
57951
57952         * lib/xstrdup.c: Assume <string.h> exists.
57953
57954 2003-08-18  Paul Eggert  <eggert@twinsun.com>
57955
57956         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
57957         in makefile rules.
57958
57959 2003-08-18  Jim Meyering  <jim@meyering.net>
57960
57961         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
57962         * m4/lib-ld.m4: Likewise.
57963
57964 2003-08-18  Jim Meyering  <jim@meyering.net>
57965
57966         * lib/setenv.h: Indent nested cpp directive.
57967         * lib/vasnprintf.c: Remove trailing blanks.
57968
57969 2003-08-17  Simon Josefsson  <jas@extundo.com>
57970
57971         * modules/xstrndup: New file.
57972         * MODULES.html.sh (func_all_modules): Add xstrndup.
57973
57974 2003-08-17  Simon Josefsson  <jas@extundo.com>
57975
57976         * modules/argp: Fix autoconf macro name. Add more dependencies.
57977
57978 2003-08-17  Simon Josefsson  <jas@extundo.com>
57979
57980         * m4/xstrndup.m4: New file.
57981
57982 2003-08-17  Simon Josefsson  <jas@extundo.com>
57983
57984         * m4/argp.m4: New file.
57985
57986 2003-08-17  Simon Josefsson  <jas@extundo.com>
57987             Bruno Haible  <bruno@clisp.org>
57988
57989         * lib/xstrndup.h: New file.
57990         * lib/xstrndup.c: New file.
57991
57992 2003-08-17  Bruno Haible  <bruno@clisp.org>
57993
57994         * modules/strndup (Files, Include): Add lib/strndup.h.
57995
57996 2003-08-17  Bruno Haible  <bruno@clisp.org>
57997
57998         * modules/euidaccess (Files): Add lib/euidaccess.h.
57999
58000 2003-08-17  Bruno Haible  <bruno@clisp.org>
58001
58002         * lib/strndup.h: New file.
58003
58004 2003-08-17  Bruno Haible  <bruno@clisp.org>
58005
58006         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
58007         like AC_GNU_SOURCE.
58008         * modules/extensions (configure.ac): Comment out the invocation of
58009         gl_USE_SYSTEM_EXTENSIONS.
58010
58011 2003-08-16  Paul Eggert  <eggert@twinsun.com>
58012
58013         Merges from coreutils, etc.
58014         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
58015         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
58016         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
58017         fixing a typo.
58018         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
58019         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
58020
58021 2003-08-16  Paul Eggert  <eggert@twinsun.com>
58022
58023         Document merge from coreutils.
58024         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
58025         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
58026         * modules/utime: Add m4/utimes-null.m4.
58027
58028 2003-08-16  Paul Eggert  <eggert@twinsun.com>
58029
58030         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
58031         space, undoing this 2003-08-12 change:
58032         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
58033
58034 2003-08-16  Paul Eggert  <eggert@twinsun.com>
58035
58036         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
58037         strtoul.c from libc, undoing this 2003-08-12 change:
58038         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
58039
58040 2003-08-16  Jim Meyering  <jim@meyering.net>
58041
58042         Merges from coreutils.
58043         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
58044         prefix.  Adjust cache variables similarly.  Create 500 rather than
58045         just 300 files, to exercise bug on Darwin6.5, too.
58046         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
58047         $missing_dir.
58048         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
58049         AM_SYS_POSIX_TERMIOS.
58050         Reported by mkc@mathdogs.com.
58051         Also change use of $am_cv_sys_posix_termios
58052         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
58053         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
58054         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
58055         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
58056         in /proc/mounts until it finds one with matching device number.  This
58057         is unnecessary when the FILE argument *is* a mount point.  No stat call
58058         is necessary in that case.  So, disable the statvfs-testing code on
58059         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
58060         as RedHat bug# 84846.
58061         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
58062         to 1MB, so as not to render systems with no stack size limit (e.g.,
58063         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
58064         Include <unistd.h>.  On some systems,
58065         it is required for the definition of _SC_PAGESIZE.
58066
58067 2003-08-16  Jim Meyering  <jim@meyering.net>
58068
58069         Merge from coreutils.
58070         * lib/xstrtoimax.c: #else #if -> #elif.
58071         * lib/xstrtoumax.c: Likewise.
58072
58073 2003-08-16  Jim Meyering  <jim@meyering.net>
58074
58075         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
58076         * m4/utimes.m4: Removed.
58077         * m4/utimes-null.m4: Renamed from utimes.m4.
58078
58079         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
58080         to 1MB, so as not to render systems with no stack size limit (e.g.,
58081         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
58082         Include <unistd.h>.  On some systems,
58083         it is required for the definition of _SC_PAGESIZE.
58084
58085 2003-08-16  Jim Meyering  <jim@meyering.net>
58086         and Paul Eggert  <eggert@cs.ucla.edu>
58087
58088         Merges from coreutils, etc.
58089
58090         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
58091         using the latest version from cvs.  This avoids problems with #line
58092         directives using a vendor (Sun) compiler.
58093         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
58094         Don't set GETGROUPS_LIB here; now it's
58095         done via getgroups.m4's wrapper function.
58096         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
58097         rather than just in sh-util/configure.in, so that the
58098         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
58099         same.
58100         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
58101         AC_FUNC_GETLOADAVG where to find getloadavg.c.
58102         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
58103         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
58104         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
58105         Remove code that is now done by the newly-required macros.
58106         Append $(EXEEXT) to DF_PROG.
58107         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
58108         Do not invoke or require the following here,
58109         since prereq.m4 or some gnulib .m4 now does this for us:
58110         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
58111         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
58112         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
58113         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
58114         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
58115         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
58116         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
58117         AC_FUNC_OBSTACK.
58118         Do not replace the following functions, as this is now the job
58119         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
58120         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
58121         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
58122         atexit getpass, strdup, getpagesize.
58123         Replace 'raise'.
58124         Do not check for the following functions, as this is now the job
58125         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
58126         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
58127         setregid.
58128         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
58129         Check for sys/sysctl.h.
58130         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
58131         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
58132         of checking for ssize_t ourselves.
58133
58134         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
58135         Require every macro that gnulib/modules/* suggests for us.
58136         (jm_PREREQ_ADDEXT): New macro.
58137         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
58138         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
58139
58140         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
58141         (gl_PHYSMEM): Use it.
58142         Also check for `table' function.
58143         Check for new headers and functions.
58144         Add check for sys/sysmp.h.
58145         With suggestions from Kaveh Ghazi.
58146         Ignore headers that are present but cannot be compiled.  This
58147         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
58148         C 5.4.
58149
58150 2003-08-15  Paul Eggert  <eggert@twinsun.com>
58151
58152         Document merge from coreutils.
58153         * modules/userspec: Depend on posixver.
58154         * modules/strftime: Depend on tzset.
58155
58156 2003-08-15  Paul Eggert  <eggert@twinsun.com>
58157
58158         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
58159         rather than tab, after '#' in shell-script copyright notices.
58160         Suggested by Bruno Haible.
58161
58162 2003-08-15  Paul Eggert  <eggert@twinsun.com>
58163
58164         * config/srclist-update: Use three spaces, rather than tab, after '#'
58165         in shell-script copyright notices.  Suggested by Bruno Haible.
58166         Remove unnecessary parenthesization in regular expression.
58167
58168 2003-08-15  Jim Meyering  <jim@meyering.net>
58169
58170         Merge from coreutils.
58171         * lib/xgethostname.c: Include <stdlib.h>.
58172         (xghostname): Don't exit for anything other than memory-related
58173         failure; just return NULL.
58174         * lib/userspec.c: Include "posixver.h".
58175         (parse_user_spec): Accept `.' as a separator only
58176         in pre-POSIX-200112 mode.
58177         * lib/strtoimax.c: Use #elif rather than #else #if.
58178         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
58179         Remove function, now that we can rely on a working tzset function.
58180         [!_LIBC]: Ensure that the required autoconf test has been run.
58181         [!defined _NL_CURRENT && HAVE_STRFTIME]:
58182         Use underlying_strftime for %r.
58183         * lib/sha.c: Merge in some clean-up and optimization changes from
58184         glibc.
58185         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
58186         Ensure that it is a multiple of 64.
58187         Rearrange loop exit tests so as to avoid performing an
58188         additional fread after encountering an error or EOF.
58189         * lib/realloc.c: Update copyright date.
58190
58191 2003-08-15  Jim Meyering  <jim@meyering.net>
58192         and Paul Eggert  <eggert@twinsun.com>
58193
58194         Merge from coreutils.
58195         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
58196         member but strut utmpx does not.  Needed for AIX 4.3.3.
58197         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
58198
58199 2003-08-15  Jim Meyering  <jim@meyering.net>
58200         and Paul Eggert  <eggert@cs.ucla.edu>
58201
58202         Merges from coreutils, etc.
58203         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
58204         Require gl_FUNC_TZSET_CLOBBER.
58205         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
58206         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
58207         members.
58208
58209 2003-08-14  Paul Eggert  <eggert@twinsun.com>
58210
58211         Help the merge from coreutils.
58212         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
58213         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
58214         * m4/tzset.m4: Use it too.
58215
58216 2003-08-14  Paul Eggert  <eggert@twinsun.com>
58217
58218         * modules/tzset: New file.
58219
58220 2003-08-14  Jim Meyering  <jim@meyering.net>
58221
58222         Merges from coreutils.
58223         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
58224         variable names, rather than @FNMATCH_H@.
58225         * modules/alloca: Likewise for $(ALLOCA_H).
58226
58227         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
58228         the three copies of the literal target, `fnmatch.h'.
58229         * modules/alloca (alloca.h): Likewise.
58230
58231 2003-08-14  Jim Meyering  <jim@meyering.net>
58232
58233         Merge from coreutils.
58234         * m4/tzset.m4: New file.
58235         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
58236         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
58237         otherwise, AIX 5.1 systems would end up using the latter.
58238         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
58239         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
58240         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
58241         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
58242
58243 2003-08-14  Jim Meyering  <jim@meyering.net>
58244
58245         Merge from coreutils.
58246         * lib/obstack.h: Whitespace changes.
58247         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
58248         and xcalloc return values.
58249         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
58250         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
58251         hang on OSF/1 5.1 for DIR on both local and remote file systems.
58252         Reported by (and fix confirmed by) Nelson H. F. Beebe.
58253         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
58254         error from mntctl.
58255         Use mntctl's return value to drive the entry-processing loop, since
58256         we can't rely on the value of the vmt_length member in the last
58257         entry.  On some systems doing so could result in exhausting
58258         virtual memory.  Based in part on a patch from Mike Jetzer.
58259
58260 2003-08-14  Jim Meyering  <jim@meyering.net>
58261         and Paul Eggert  <eggert@twinsun.com>
58262
58263         Merges from coreutils, plus other fixes.
58264         * lib/physmem.c: Merge in portability changes from gcc/libiberty
58265         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
58266         for credits and details.  Thanks to Kaveh Ghazi for helping
58267         to keep these files in sync.
58268         (ARRAY_SIZE): Define it.
58269         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
58270         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
58271         (memcasecmp): Don't assume size_t fits in unsigned int.
58272         Remove casts and duplicate code.
58273         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
58274         (memcpy): Remove definition.
58275         Merge in some clean-up and optimization changes from glibc.
58276         [BLOCKSIZE]: Move definition to top of file.
58277         Ensure that it is a multiple of 64.
58278         Rearrange loop exit tests so as to avoid performing an
58279         additional fread after encountering an error or EOF.
58280         * lib/md5.h (md5_uintptr): Define.
58281         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
58282         return to the initial working directory.  Preserve errno
58283         for caller.
58284         * lib/idcache.c: Include "xalloc.h".
58285         (xmalloc, xrealloc): Remove decls.
58286         (getuser): Remove casts no longer required in C89.
58287         * lib/human.c: Include stdio.h, for sprintf.
58288         * lib/group-member.c: Include "xalloc.h".
58289         (xmalloc, xrealloc): Remove decls.
58290         (get_group_info): Remove casts no longer required in C89.
58291         * lib/getusershell.c (readname): Remove casts no longer required in
58292         C89.
58293         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
58294         * lib/getline.c: Whitespace fix, from coreutils.
58295
58296 2003-08-13  Paul Eggert  <eggert@twinsun.com>
58297
58298         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
58299         Check for isascii.
58300
58301         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
58302         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
58303         Undo previous (whitespace-only) change.
58304
58305 2003-08-13  Paul Eggert  <eggert@twinsun.com>
58306
58307         * lib/exclude.c: Include <ctype.h>
58308         (IN_CTYPE_DOMAIN): New macro.
58309         (is_space): New fn.
58310         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
58311         and empty lines.
58312
58313         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
58314         Undo previous (whitespace-only) change.
58315
58316 2003-08-13  Paul Eggert  <eggert@twinsun.com>
58317
58318         * config/srclist-update: Change update back to the old behavior,
58319         leaving whitespace alone.  Use one 'sed' command rather than a
58320         pipeline.
58321         (fixlicense): Now a variable, not a function.
58322         (remove_trailing_blanks): Remove.
58323         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
58324         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
58325         Undo previous (whitespace-only) change.
58326
58327 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58328
58329         Merge from coreutils.
58330         * modules/euidaccess: Add lib_SOURCES, include for new
58331         file euidaccess.h
58332
58333 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58334
58335         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
58336         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
58337         Normalize leading white space and remove trailing white space.
58338
58339         Merge from coreutils
58340         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
58341
58342         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
58343         0.12.1.  These files are now being upgraded automatically by
58344         ../config/srclist-update.
58345
58346 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58347
58348         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
58349         Normalize leading white space and remove trailing white space.
58350         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
58351         notice, as per ../config/srclist-update.
58352
58353         Merge from coreutils.
58354         * lib/euidaccess.h: New file.
58355         * lib/euidaccess.c: Include it.
58356         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
58357         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
58358         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
58359
58360 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58361
58362         * config/srclist-update: Add copyright notice.
58363         (remove_id_lines, remove_trailing_blanks): New constants.
58364         (fixfile): Use them to normalize spacing a bit in copied files.
58365         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
58366         Normalize leading white space and remove trailing white space.
58367
58368         * config/texinfo.tex: Sync with texinfo.
58369
58370         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
58371         strtoul.c from libc, to merge coreutils whitespace changes.
58372
58373         * config/srclist.txt: Get the following m4 files from gettext:
58374         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
58375         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
58376         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
58377         wint_t.m4.
58378
58379 2003-08-12  Karl Berry  <karl@gnu.org>
58380
58381         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
58382         been made.
58383
58384 2003-08-11  Paul Eggert  <eggert@twinsun.com>
58385
58386         * modules/gnu-source, m4/gnu-source.m4:
58387         Remove; we're assuming Autoconf 2.54 or later now.
58388         Suggested by Bruno Haible.
58389         * MODULES.html.sh (func_all_modules): Remove gnu-source.
58390
58391 2003-08-11  Bruno Haible  <bruno@clisp.org>
58392
58393         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
58394
58395 2003-08-11  Bruno Haible  <bruno@clisp.org>
58396
58397         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
58398         (vasnprintf): Use it instead of wcslen.
58399
58400 2003-08-11  Bruno Haible  <bruno@clisp.org>
58401
58402         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
58403         value to ensure that _Bool promotes to int. Use #define for _Bool when
58404         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
58405
58406 2003-08-10  Karl Berry  <karl@gnu.org>
58407
58408         * lib/regex.h: update from libc (whitespace fix).
58409
58410 2003-08-09  Paul Eggert  <eggert@twinsun.com>
58411
58412         Merge some files from coreutils.  These changes were
58413         originally made by Jim Meyering.
58414         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
58415         many older Unixes require this.
58416         * lib/alloca.c (alloca): Remove cast to argument of free;
58417         no longer needed in C89.
58418         * lib/alloca_.h, regex.h: Fix white space to match
58419         what GNU indent does.
58420
58421 2003-08-09  Paul Eggert  <eggert@twinsun.com>
58422
58423         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
58424         apparently Emacs's Unicode mode got confused before my 2003-08-05
58425         checkin.
58426
58427 2003-08-08  Paul Eggert  <eggert@twinsun.com>
58428
58429         * m4/extensions.m4: New file.
58430         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
58431         Require gl_USE_SYSTEM_EXTENSIONS.
58432         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
58433         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
58434
58435 2003-08-08  Paul Eggert  <eggert@twinsun.com>
58436
58437         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
58438         * modules/extensions, modules/gnu-source: New files.
58439         * modules/timespec, modules/unlocked-io: Depend on extensions.
58440
58441 2003-08-07  Paul Eggert  <eggert@twinsun.com>
58442
58443         * modules/restrict: New file.
58444         * MODULES.html.sh (func_all_modules): Add restrict.
58445         * modules/regex: Depend on restrict.
58446
58447 2003-08-07  Paul Eggert  <eggert@twinsun.com>
58448
58449         * m4/restrict.m4: New file.
58450         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
58451
58452 2003-08-07  Bruno Haible  <bruno@clisp.org>
58453
58454         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
58455         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
58456
58457 2003-08-07  Bruno Haible  <bruno@clisp.org>
58458
58459         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
58460         makes the module 'getndelim2' compatible with the module 'getline'.
58461
58462 2003-08-05  Paul Eggert  <eggert@twinsun.com>
58463
58464         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
58465         byte with "\201" to avoid glitches when editing that source file
58466         with multi-gnome-terminal.
58467
58468 2003-08-05  Paul Eggert  <eggert@twinsun.com>
58469
58470         * lib/bumpalloc.h: Remove.
58471
58472 2003-08-05  Paul Eggert  <eggert@twinsun.com>
58473
58474         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
58475         * modules/bumpalloc: Remove.
58476
58477 2003-08-04  Paul Eggert  <eggert@twinsun.com>
58478
58479         * lib/getloadavg.c: Change copyright notice and spacing to conform to
58480         GNU coding style.
58481
58482         Merge from coreutils.
58483         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
58484         1. From glibc.
58485         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
58486         from Karl Berry, implemented by Jim Meyering.
58487         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
58488         from Dmitry V. Levin.
58489         Remove anachronistic cast of xrealloc.
58490         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
58491         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
58492         type. Otherwise, it wouldn't compile with at least /bin/cc on
58493         ymp-cray-unicos9.0.2.X.
58494         Combine two mostly-identical uses of alloca into one.
58495         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
58496
58497 2003-08-04  Dave Love  <d.love@dl.ac.uk>
58498
58499         [From Emacs.]
58500
58501         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
58502         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
58503         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
58504         obsolete NLIST_NAME_UNION.
58505         [__GNU__]: Undef BSD and FSCALE.
58506         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
58507
58508 2003-08-03  Paul Eggert  <eggert@twinsun.com>
58509
58510         * lib/stdbool_.h (_Bool): Make it signed char, instead of
58511         an enum type, so that it's guaranteed to promote to int.  See:
58512         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
58513
58514 2003-08-03  Karl Berry  <karl@gnu.org>
58515
58516         * config/depcomp: update from automake.
58517
58518 2003-07-31  Paul Eggert  <eggert@twinsun.com>
58519
58520         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
58521         (strerror): Don't assume that a printable int fits in 14 bytes.
58522
58523 2003-07-31  Bruno Haible  <bruno@clisp.org>
58524
58525         * modules/getpass-gnu: New file.
58526         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
58527
58528 2003-07-31  Bruno Haible  <bruno@clisp.org>
58529
58530         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
58531
58532 2003-07-24  Karl Berry  <karl@gnu.org>
58533
58534         * config/missing: update from automake.
58535
58536 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
58537             Bruno Haible  <bruno@clisp.org>
58538
58539         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
58540         * lib/getline.c (getline, getdelim): Likewise.
58541         Remove _GNU_SOURCE define; now it's defined in config.h through
58542         m4/getline.m4.
58543
58544 2003-07-23  Karl Berry  <karl@gnu.org>
58545
58546         * config/config.sub: update from prep.
58547
58548 2003-07-22  Paul Eggert  <eggert@twinsun.com>
58549
58550         * modules/xalloc (Depends-on): Add exitfail.
58551         * modules/xmemcoll: Likewise.
58552
58553 2003-07-22  Paul Eggert  <eggert@twinsun.com>
58554
58555         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
58556         over-parenthesization in macros.
58557
58558         Sync with coreutils.
58559
58560         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
58561         required by C99.
58562
58563         Use `exit_failure' for xalloc and xmemcoll instead of their own
58564         private exit-failure variables.
58565         * lib/xalloc.h (xalloc_exit_failure): Remove.
58566         * lib/xmalloc.c: Likewise.  Include exitfail.h.
58567         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
58568         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
58569         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
58570         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
58571
58572 2003-07-20  Jim Meyering  <jim@meyering.net>
58573
58574         * modules/closeout (Depends-on): Add exitfail.
58575         Suggestion from Bruno Haible.
58576
58577 2003-07-19  Karl Berry  <karl@gnu.org>
58578
58579         * config/config.sub: update from prep.
58580
58581 2003-07-18  Paul Eggert  <eggert@twinsun.com>
58582
58583         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
58584         Remove.
58585         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
58586         to test that it can stand by itself.  Include "exitfail.h".
58587         Clients should set exit_failure instead.
58588         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
58589
58590 2003-07-18  Bruno Haible  <bruno@clisp.org>
58591
58592         * modules/getndelim2: New file.
58593         * modules/getline: Share files with module getndelim2.
58594         * modules/getnline: Depend on getndelim2 instead of sharing files with
58595         it. Add getnline.c to lib_SOURCES.
58596         * MODULES.html.sh (func_all_modules): Add getndelim2.
58597
58598 2003-07-18  Bruno Haible  <bruno@clisp.org>
58599
58600         * m4/getndelim2.m4: New file.
58601         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
58602         invoke gl_PREREQ_GETNDELIM2.
58603         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
58604         gl_PREREQ_GETNDELIM2.
58605         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
58606         gl_GETNDELIM2.
58607
58608 2003-07-18  Bruno Haible  <bruno@clisp.org>
58609
58610         * lib/getndelim2.h: New file.
58611         * lib/getndelim2.c: Make into a module of its own. Include config.h,
58612         getndelim2.h.
58613         (getndelim2): Make non-static. Change return type to ssize_t.
58614         * lib/getline.h: Change argument names.
58615         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
58616         * lib/getnline.c: Include getndelim2.h.
58617
58618 2003-07-18  Andreas Schwab  <schwab@suse.de>
58619
58620         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
58621
58622 2003-07-17  Karl Berry  <karl@gnu.org>
58623
58624         * config/config.sub: update from prep.
58625
58626 2003-07-17  Bruno Haible  <bruno@clisp.org>
58627
58628         * modules/getnline: New file.
58629         * modules/getline: Add lib/getndelim2.c to source file list.
58630         * MODULES.html.sh (func_all_modules): Add getnline.
58631
58632 2003-07-17  Bruno Haible  <bruno@clisp.org>
58633
58634         * m4/getnline.m4: New file.
58635
58636 2003-07-17  Bruno Haible  <bruno@clisp.org>
58637
58638         * m4/Makefile.am.in: Remove file.
58639         * m4/Makefile.am: Remove file.
58640         * m4/Makefile.in: Remove file.
58641
58642 2003-07-17  Bruno Haible  <bruno@clisp.org>
58643
58644         * lib/getnline.h: New file.
58645         * lib/getnline.c: New file.
58646         * lib/getndelim2.c: New file, extracted from getline.c.
58647         (getndelim2): Renamed from getdelim2, with added nmax argument.
58648         * lib/getline.c: Include getndelim2.c.
58649         (getdelim2): Moved out to getndelim2.c.
58650         (getline, getdelim): Update.
58651
58652 2003-07-17  Bruno Haible  <bruno@clisp.org>
58653
58654         * lib/Makefile.am: Remove file.
58655         * lib/Makefile.in: Remove file.
58656
58657 2003-07-17  Bruno Haible  <bruno@clisp.org>
58658
58659         * configure.in: Remove file.
58660         * Makefile.in: Remove file.
58661
58662 2003-07-17  Bruno Haible  <bruno@clisp.org>
58663
58664         * MODULES.html.sh: Put the </BODY> right before </HTML>.
58665
58666 2003-07-16  Karl Berry  <karl@gnu.org>
58667
58668         * config/srclist-update: was running fixlicense twice, which caused
58669                 texinfo.tex to be nullified for some reason.  Simplify,
58670                 $gplsrc is no longer needed as far as I can see?
58671
58672 2003-07-16  Jim Meyering  <jim@meyering.net>
58673
58674         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
58675
58676 2003-07-15  Paul Eggert  <eggert@twinsun.com>
58677
58678         * config/srclist.txt: Get the following files from gettext-runtime/intl
58679         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
58680         ref-del.sin.  From Bruno Haible.
58681         * config/srclist-update (fixfile): Change grep pattern again, since the
58682         previous fix didn't work (there was another trailing $).  Use
58683         '[$]' to escape the $s.
58684
58685 2003-07-15  Karl Berry  <karl@gnu.org>
58686
58687         * lib/vasnprintf.c: update from gettext.
58688
58689 2003-07-15  Karl Berry  <karl@gnu.org>
58690
58691         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
58692         gets expanded when surrounded by '$'.
58693
58694 2003-07-15  Jim Meyering  <jim@meyering.net>
58695
58696         * modules/save-cwd: Don't depend on error.  From Derek Price.
58697
58698 2003-07-15  Jim Meyering  <jim@meyering.net>
58699
58700         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
58701
58702 2003-07-14  Simon Josefsson  <jas@extundo.com>
58703
58704         * modules/mempcpy: New file.
58705         * MODULES.html.sh (func_all_modules): Add mempcpy.
58706
58707 2003-07-14  Simon Josefsson  <jas@extundo.com>
58708
58709         * m4/mempcpy.m4: New file.
58710
58711 2003-07-14  Simon Josefsson  <jas@extundo.com>
58712
58713         * lib/mempcpy.h: New file.
58714         * lib/mempcpy.c: New file.
58715
58716 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58717
58718         * modules/getdate, modules/posixtm: Depend on mktime.
58719
58720 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58721
58722         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
58723         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
58724         unicodeio.c, unicodeio.h, unlocked-io.h:
58725         Switch from LGPL to GPL.
58726
58727 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58728
58729         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
58730         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
58731         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
58732         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
58733         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
58734         updated automatically by ../config/srclist-update.  This changes
58735         their license from LPGL to GPL.
58736
58737 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58738
58739         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
58740         assumed to refer to the root of the most recent stable gettext version.
58741         * config/srclistvars.sh: Add defaults for eggert.
58742         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
58743         Match "This program" as well as "The program".  This is needed
58744         for gettext.
58745
58746 2003-07-14  Jim Meyering  <jim@meyering.net>
58747
58748         Don't emit diagnostics.  Let callers do that.
58749         * lib/save-cwd.c: Don't include "error.h".
58750         (save_cwd): Don't call error.  Ensure that errno is valid
58751         when returning nonzero.
58752
58753         * lib/save-cwd.h (restore_cwd): Update prototype.
58754         * lib/save-cwd.c (restore_cwd): Remove two parameters.
58755         Simplify.  Don't call error upon failure.  Let callers do that.
58756         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
58757         when auditing is enabled.  But don't bother updating the #if.
58758
58759 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
58760
58761         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
58762         it breaks C++ compilation.
58763         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
58764
58765 2003-07-10  Simon Josefsson  <jas@extundo.com>
58766
58767         * modules/strchrnul (Makefile.am): Add strchrnul.h.
58768
58769 2003-07-10  Jim Meyering  <jim@meyering.net>
58770
58771         * m4/clock_time.m4: Remove trailing blank.
58772         * m4/intmax_t.m4: Likewise.
58773
58774 2003-07-10  Jim Meyering  <jim@meyering.net>
58775
58776         * lib/vasnprintf.c: Remove trailing blanks.
58777         Make cpp indentation consistent.
58778
58779 2003-07-09  Paul Eggert  <eggert@twinsun.com>
58780
58781         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
58782         posixver.c, strftime.c, strnlen.c, strverscmp.c:
58783         Switch from LGPL to GPL.
58784
58785 2003-07-09  Paul Eggert  <eggert@twinsun.com>
58786
58787         * config/srclist.txt: Sort sublists.  Add
58788         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
58789         that differ from gnulib for one reason or another; we'd like this list
58790         to be smaller but for now let's document what we have.
58791
58792 2003-07-08  Paul Eggert  <eggert@twinsun.com>
58793
58794         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
58795         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
58796         and sweeter "eval x=$x".
58797         * config/srclist.txt: Get lib/argp* from glibc.
58798
58799 2003-07-07  Paul Eggert  <eggert@twinsun.com>
58800
58801         * lib/mktime.c: Fix some boundary cases and remove need for floating
58802         point.
58803
58804         Issue a compile-time diagnostic if time_t is floating point, or if
58805         two's complement arithmetic is not in effect, or if arithmetic
58806         right shift does not propagate the sign.  These assumptions were
58807         all in the original code but they weren't checked.
58808
58809         (TIME_T_MIDPOINT, verify): New macros.
58810         (__isleap): Remove; it has integer overflow problems.
58811         (leapyear): New function, without those problems.
58812         (ydhms_tm_diff): Remove; splitting into two parts.
58813         (ydhms_diff): New function, containing the arithmetic part of
58814         the old ydhms_tm_diff function.  Issue a compile-time
58815         diagnostic if we are not using C99 integer division.
58816         Avoid casts when possible.
58817         (guess_time_tm): New function, containing the checking part of
58818         the old ydhms_tm_diff function.  Return the new value, rather than
58819         the difference between it and the old.  Accept a new argument T
58820         so that *T specifies the old value.  Check for overflow in the result.
58821
58822         (__mktime_internal): Use a time_t offset, not a long int offset.
58823         This undoes the 2003-06-04 change, which is no longer needed now
58824         that we have better overflow checking.
58825         (localtime_offset): Likewise.
58826
58827         (__mktime_internal): Avoid harmful overflow on hosts where time_t
58828         and long are 64-bit but int is only 32-bit.
58829         (ydhms_diff): Use long int to store year1 and yday1.
58830         Issue a compile-time diagnostic if long int is not wide enough.
58831
58832         (__mktime_internal): Use long int to store adjusted year and yday.
58833         Use plain C rather than preprocessor commands, if that doesn't
58834         affect efficiency.
58835         Check for overflow (and try to repair) after each probe
58836         rather than checking only at the very end.  This avoids some bugs
58837         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
58838         does not equal GMT offset at maximum time).
58839         Use integer to check for overflow rather than floating point; this
58840         is more portable to non-IEEE hosts, and is a tad faster.
58841         When we detect that we are oscillating between two values,
58842         don't check whether tm_isdst has the requested value, since
58843         we already know the answer.  When tm_isdst has the wrong value,
58844         use a different heuristic to find the right one, based on the
58845         extreme values actually observed in practice in tz2003a,
58846         rather than the (overly optimistic) "previous 3 calendar quarters".
58847
58848         (not_equal_tm, print_tm, check_result): Use "const T" rather than
58849         "T const" to accommodate glibc style.
58850         (check_result): Use less-confusing report format.  "long" -> "long int.
58851         (main): Likewise.
58852         Don't loop if the iteration overflows time_t.
58853         Allow a negative step in the iteration.
58854
58855 2003-07-06  Karl Berry  <karl@gnu.org>
58856
58857         * config/depcomp: update from automake.
58858         * config/config.sub: update from prep.
58859
58860 2003-07-03  Karl Berry  <karl@gnu.org>
58861
58862         * config/config.guess: update from prep.
58863
58864 2003-07-01  Paul Eggert  <eggert@twinsun.com>
58865
58866         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
58867         xreadlink.c now includes it unconditionally.
58868
58869 2003-07-01  Paul Eggert  <eggert@twinsun.com>
58870
58871         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
58872         having it depend on HAVE_SYS_TYPES_H.
58873
58874 2003-07-01  Bruno Haible  <bruno@clisp.org>
58875
58876         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
58877         <sys/types.h> should be sufficient.
58878         Reported by Paul Eggert.
58879
58880 2003-06-26  Karl Berry  <karl@gnu.org>
58881
58882         * config/depcomp: update from automake.
58883
58884 2003-06-26  Bruno Haible  <bruno@clisp.org>
58885
58886         * modules/human: Depend on module stdbool.
58887
58888 2003-06-25  Bruno Haible  <bruno@clisp.org>
58889
58890         * modules/readlink: New file.
58891         * modules/xreadlink: Depend on it.
58892         * MODULES.html.sh (func_all_modules): Add readlink.
58893
58894 2003-06-25  Bruno Haible  <bruno@clisp.org>
58895
58896         * m4/readlink.m4: New file.
58897
58898 2003-06-25  Bruno Haible  <bruno@clisp.org>
58899
58900         * lib/readlink.c: New file.
58901
58902 2003-06-22  Karl Berry  <karl@gnu.org>
58903
58904         * config/srclist.txt: update mkinstalldirs from automake.
58905         * config/mkinstalldirs: update.
58906
58907 2003-06-22  Bruno Haible  <bruno@clisp.org>
58908
58909         Portability to mingw32.
58910         * m4/ssize_t.m4: New file, from GNU gettext.
58911         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
58912         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
58913
58914 2003-06-22  Bruno Haible  <bruno@clisp.org>
58915
58916         * modules/safe-read: Add m4/ssize_t.m4.
58917         * modules/xreadlink: Add m4/ssize_t.m4.
58918
58919 2003-06-20  Bruno Haible  <bruno@clisp.org>
58920
58921         Assume C89, so PARAMS isn't needed.
58922         * lib/unicodeio.h (PARAMS): Remove.
58923         * lib/unicodeio.c: Don't use PARAMS.
58924
58925 2003-06-18  Karl Berry  <karl@gnu.org>
58926
58927         * config/config.{guess,sub}: update from prep.
58928
58929 2003-06-18  Jim Meyering  <jim@meyering.net>
58930
58931         Merge changes from coreutils.
58932         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
58933         Remove explicit declarations of xmalloc and realloc.
58934         Include xalloc.h.
58935         (read_utmp): Remove anachronistic cast of xmalloc.
58936
58937 2003-06-17  Paul Eggert  <eggert@twinsun.com>
58938
58939         Assume C89, so PARAMS isn't needed.
58940         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
58941         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
58942         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
58943         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
58944         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
58945         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
58946         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
58947         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
58948         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
58949         lib/xstrtod.h, lib/xstrtol.h: Likewise.
58950         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
58951         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
58952         no longer needed. Anyway, config.h should always be included before any
58953         other file.
58954
58955 2003-06-11  Simon Josefsson  <jas@extundo.com>
58956
58957         * modules/sysexits: New file.
58958         * MODULES.html.sh (func_all_modules): Add sysexits.
58959
58960 2003-06-11  Simon Josefsson  <jas@extundo.com>
58961
58962         * lib/sysexit_.h: New file.
58963
58964 2003-06-11  Derek Price  <derek@ximbiot.com>
58965
58966         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
58967         necessary.
58968
58969 2003-06-11  Bruno Haible  <bruno@clisp.org>
58970
58971         * m4/sysexits.m4: New file.
58972
58973 2003-06-10  Simon Josefsson  <jas@extundo.com>
58974
58975         * lib/argp.h: New file, from glibc.
58976         * lib/argp-ba.c: New file, from glibc.
58977         * lib/argp-eexst.c: New file, from glibc.
58978         * lib/argp-fmtstream.c: New file, from glibc.
58979         * lib/argp-fmtstream.h: New file, from glibc.
58980         * lib/argp-fs-xinl.c: New file, from glibc.
58981         * lib/argp-help.c: New file, from glibc.
58982         * lib/argp-namefrob.h: New file, from glibc.
58983         * lib/argp-parse.c: New file, from glibc.
58984         * lib/argp-pv.c: New file, from glibc.
58985         * lib/argp-pvh.c: New file, from glibc.
58986         * lib/argp-xinl.c: New file, from glibc.
58987
58988 2003-06-10  Simon Josefsson  <jas@extundo.com>
58989
58990         * modules/strchrnul: New file.
58991
58992 2003-06-10  Simon Josefsson  <jas@extundo.com>
58993
58994         * modules/argp: New file.
58995
58996 2003-06-10  Simon Josefsson  <jas@extundo.com>
58997
58998         * m4/strchrnul.m4: New file.
58999
59000 2003-06-10  Simon Josefsson  <jas@extundo.com>
59001
59002         * lib/strchrnul.h: New file.
59003         * lib/strchrnul.c: New file.
59004
59005 2003-06-10  Bruno Haible  <bruno@clisp.org>
59006
59007         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
59008
59009 2003-06-07  Karl Berry  <karl@gnu.org>
59010
59011         * config/config.{guess,sub}: update from prep.
59012
59013 2003-06-07  Jim Meyering  <jim@meyering.net>
59014
59015         * modules/strtod: Use $(...) notation, not @...@ for
59016         AC_REPLACE'd variables.
59017         * modules/localcharset: Likewise.
59018
59019 2003-06-07  Jim Meyering  <jim@meyering.net>
59020
59021         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
59022         in place of my name in the copyright comment.
59023         Remove definition and uses of __P.
59024
59025         From coreutils.
59026         * lib/stat.c: Don't declare xmalloc explicitly.
59027         Instead, include "xalloc.h".
59028         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
59029         xrealloc, and xcalloc return values.
59030         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
59031         Improve comment.
59032         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
59033
59034 2003-06-07  Bruno Haible  <bruno@clisp.org>
59035
59036         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
59037         avoid AC_CONFIG_LINKS.
59038         * modules/fnmatch (Makefile.am): Use explicit creation rule for
59039         fnmatch.h, to avoid AC_CONFIG_LINKS.
59040         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
59041
59042 2003-06-07  Bruno Haible  <bruno@clisp.org>
59043
59044         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
59045         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
59046         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
59047         directory.
59048         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
59049         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
59050         directory.
59051
59052 2003-06-06  Jim Meyering  <jim@meyering.net>
59053
59054         Merge from coreutils.
59055         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
59056         Consolidate declarations and initializations of *_base* locals.
59057
59058         Merge from coreutils.
59059         This avoids a core dump on systems without GNU putenv,
59060         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
59061         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
59062         (unsetenv): New static function, from GNU libc.
59063         (rpl_putenv): Use it.
59064
59065         * lib/modechange.c: Remove trailing blanks.
59066
59067         Merge from coreutils.
59068         * lib/fsusage.c: Remove declaration of statfs.
59069         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
59070
59071         * lib/posixtm.c: Include <stdbool.h> unconditionally.
59072
59073 2003-06-06  Jim Meyering  <jim@meyering.net>
59074
59075         * lib/stdbool_.h: Renamed from stdbool.h.in.
59076
59077 2003-06-06  Jim Meyering  <jim@meyering.net>
59078             Bruno Haible  <bruno@clisp.org>
59079
59080         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
59081         Adjust Makefile.am snippet not to redirect directly to target.
59082         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
59083
59084 2003-06-05  Paul Eggert  <eggert@twinsun.com>
59085
59086         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
59087         mismatch, look in future quarters as well as past.  This fixes a
59088         bug when processing fall-backwards gaps immediately after a long
59089         period of daylight-saving time.
59090
59091         * lib/mktime.c: Assume freestanding C89 or better.
59092         (HAVE_LIMITS_H): Remove.  Assume it's 1.
59093         (__P): Remove; not used.
59094         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
59095         (mktime, not_equal_tm, print_tm, check_result,
59096         main): Use prototypes.  Use const * where appropriate.
59097         (main): Fix typo in testing code that uncovered by above changes.
59098         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
59099
59100 2003-06-04  Paul Eggert  <eggert@twinsun.com>
59101
59102         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
59103         locale.h, localeconv.  This merges changes from coreutils.
59104
59105         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
59106         It can be removed after the next Autoconf is released.
59107         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
59108         needed.
59109
59110 2003-06-04  Paul Eggert  <eggert@twinsun.com>
59111
59112         * lib/mktime.c: Fix Debian bug 177940
59113         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
59114         (localtime_offset): Now long int, not time_t, because we want it
59115         to be guaranteed to be signed.  All uses changed.
59116         (__mktime_internal): If overflow would occur when adding offset,
59117         don't add it.
59118
59119         Merge 'human' changes from coreutils.  Rewrite to support
59120         locale-specific notations like thousands separators.
59121         * lib/human.c: Simplify authorship notice.
59122         Include human.h immediately after config.h.
59123         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
59124         <limits.h>: Do not include, since human.h does.
59125         (SIZE_MAX, UINTMAX_MAX): New macros.
59126         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
59127         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
59128         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
59129         (power_letter): Renamed from suffixes.
59130         (generate_suffix_backwards): Remove.
59131         (adjust_value): Now takes int style (because of human.h changes)
59132         and long double value (for greater precision on some platforms).
59133         (group_number): New function.
59134         (human_readable): Use it.  Use integer options, not enum.
59135         Put the options before the sizes in the arg list.
59136         Support all the new options.
59137         The old human_readable function has been removed;
59138         use inttostr.h instead.
59139         (human_readable, default_block_size, humblock):
59140         Use uintmax_t, not int, for block sizes.
59141         (human_readable_inexact, block_size_types): Remove.
59142         (block_size_opts): New constant.
59143         (human_options): Renamed from human_block_size, with new signature
59144         that allows block sizes up to UINTMAX_MAX.  All callers changed.
59145         * lib/human.h: Add copyright and authorship notice.
59146         Include <limits.h> and <stdbool.h> unconditionally.
59147         (PARAMS): Remove.  All uses removed.
59148         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
59149         (enum human_inexact_style): Remove tag; now a nameless enum.
59150         (human_floor, human_ceiling, human_round_to_even): Now have
59151         values 2, 0, 1 rather than -1, 1, 0.
59152         (human_group_digits, human_suppress_point_zero, human_autoscale,
59153         human_base_1024, human_SI, human_B): New constants.
59154         (human_readable_inexact, human_block_size): Remove.
59155         (human_readable): Size args are now uintmax_t, not int.
59156         (human_options): New decl.
59157
59158         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
59159         unnecessary now that we assume C89 or better.  This change
59160         imported from coreutils.
59161
59162         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
59163         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
59164         in the 2003-05-30 sync from glibc.
59165
59166         .h files should stand alone, but we shouldn't include <sys/types.h>
59167         if we can get away with just <stddef.h>.
59168
59169         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
59170         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
59171         rather than <sys/types.h>, as we merely need size_t.
59172         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
59173         to get size_t.
59174         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
59175         Include <stdio.h>, to get FILE.
59176         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
59177         memcasecmp.h has included <stddef.h> and all we need is size_t.
59178         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
59179         our interface, instead of including <sys/types.h>
59180
59181 2003-06-04  Paul Eggert  <eggert@twinsun.com>
59182
59183         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
59184         now, as glibc mktime is buggy on non-glibc systems.
59185
59186 2003-06-03  Karl Berry  <karl@gnu.org>
59187
59188         * config/config.sub: update from prep.
59189
59190 2003-06-02  Paul Eggert  <eggert@twinsun.com>
59191
59192         [from coreutils]
59193         Fix some minor time-related bugs with POSIX time arguments.
59194         Some valid time stamps were being rejected (notably -1, and
59195         time stamps before 1900 on 64-bit hosts).  And some invalid
59196         time stamps were being accepted, e.g. September 31.
59197
59198         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
59199         that we can return (time_t) -1 successfully.
59200         * lib/posixtm.c: Likewise.
59201         [HAVE_STDBOOL_H]: Include <stdbool.h>.
59202         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
59203         (t): Remove static var.
59204         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
59205         of static var.  All uses changed.
59206         (year): Do not reject years before 1900; they can occur with
59207         64-bit time_t.
59208         (posix_time_parse): Do not check for out-of-range components;
59209         that is now the caller's responsibility, since our checks were
59210         only approximations.
59211         (posixtime): Use mktime to check for out-of-range components,
59212         since it knows them exactly.
59213         If mktime returns (time_t) -1, check whether an error actually occurred
59214         by invoking localtime on -1.
59215         (main) [TEST_POSIXTIME]: Check for input data errors, and report
59216         posixtime failures better.
59217         Improve the test data (in comments only).
59218
59219 2003-06-02  Karl Berry  <karl@gnu.org>
59220
59221         * config/mkinstalldirs (version): new variable.
59222         (--version): new option.
59223         (usage): improve message.
59224
59225 2003-05-30  Karl Berry  <karl@gnu.org>
59226
59227         * lib/mktime.c: update from libc.
59228
59229 2003-05-30  Bruno Haible  <bruno@clisp.org>
59230
59231         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
59232         * config/config.rpath: Upgrade to gettext-0.12.1.
59233
59234 2003-05-30  Bruno Haible  <bruno@clisp.org>
59235
59236         * m4/gettext.m4: Upgrade to gettext-0.12.1.
59237         * m4/nls.m4: New file, from gettext-0.12.1.
59238         * m4/po.m4: New file, from gettext-0.12.1.
59239         * m4/progtest.m4: Upgrade to gettext-0.12.1.
59240
59241 2003-05-30  Bruno Haible  <bruno@clisp.org>
59242
59243         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
59244         * lib/localcharset.h: Likewise.
59245         * lib/localcharset.c: Likewise.
59246
59247 2003-05-29  Karl Berry  <karl@gnu.org>
59248
59249         * config/config.rpath: update from gettext.
59250
59251 2003-05-28  Paul Eggert  <eggert@twinsun.com>
59252
59253         Assume the headers required for C89 freestanding compilers.
59254         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
59255         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
59256         * m4/human.m4 (gl_HUMAN): Likewise.
59257         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
59258         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
59259         * m4/userspec.m4 (gl_USERSPEC): Likewise.
59260         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
59261         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
59262         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
59263
59264 2003-05-28  Paul Eggert  <eggert@twinsun.com>
59265
59266         Assume the headers required for C89 freestanding compilers.
59267         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
59268         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
59269         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
59270         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
59271         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
59272         define, since <limits.h> is guaranteed to do that.
59273         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
59274         * lib/exclude.c: Include <stdbool.h> unconditionally.
59275         * lib/tempname.c: Include <stddef.h> unconditionally.
59276         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
59277         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
59278         <stddef.h> does that.
59279         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
59280         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
59281         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
59282         needed.
59283         * lib/xstrtol.c: Likewise.
59284         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
59285         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
59286
59287         * lib/addext.c (addext): Use assignment rather than cast, to avoid
59288         warnings on some platforms.
59289
59290         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
59291         arbitrarily.
59292
59293 2003-05-26  Jim Meyering  <jim@meyering.net>
59294
59295         Merge in a change from coreutils:
59296         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
59297         that is guaranteed to be `no'.  Use `no_such_member' to indicate
59298         that condition, rather than `-1' which is slightly misleading.
59299         Change the name of the cache variable to have the gl_ prefix.
59300         Prompted by a patch from Richard Dawe for DJGPP.
59301
59302 2003-05-24  Karl Berry  <karl@gnu.org>
59303
59304         * config/config.guess: update from prep.
59305
59306 2003-05-22  Karl Berry  <karl@gnu.org>
59307
59308         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
59309
59310 2003-05-20  Karl Berry  <karl@gnu.org>
59311
59312         * config/config.guess: update from prep.
59313
59314 2003-05-18  Karl Berry  <karl@gnu.org>
59315
59316         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
59317         might actually be set by the user.
59318
59319         * config/depcomp, install-sh, mdate-sh: update from automake.
59320
59321 2003-05-17  Bruno Haible  <bruno@clisp.org>
59322
59323         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
59324         invalid expansion for AC_EGREP_CPP.
59325         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
59326         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
59327         Suggested by Akim Demaille <akim@epita.fr> in
59328         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
59329
59330 2003-05-12  Jim Meyering  <jim@meyering.net>
59331
59332         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
59333         the space-padded-by-default conversion specifiers, %e, %k, %l.
59334
59335 2003-05-12  Bruno Haible  <bruno@clisp.org>
59336
59337         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
59338         the string is longer than 4 KB.
59339
59340 2003-05-11  Karl Berry  <karl@gnu.org>
59341
59342         * config/config.{guess,sub}: update from prep.
59343
59344 2003-05-09  Bruno Haible  <bruno@clisp.org>
59345
59346         * modules/error: Add m4/strerror_r.m4 to file list.
59347
59348 2003-05-03  Bruno Haible  <bruno@clisp.org>
59349
59350         Upgrade to Unicode-4.0.
59351         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
59352         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
59353         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
59354         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
59355         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
59356         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
59357         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
59358         Change width of U+E0100..U+E01EF from 1 to 0.
59359
59360 2003-04-25  Jim Meyering  <jim@meyering.net>
59361
59362         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
59363         of type size_t, not int.
59364
59365 2003-04-25  Bruno Haible  <bruno@clisp.org>
59366
59367         * lib/copy-file.c: Include <stddef.h>, for size_t.
59368
59369 2003-04-21  Paul Eggert  <eggert@twinsun.com>
59370
59371         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
59372         code which expansion is under static control.  Patch imported from
59373         Akim Demaille's patch to Bison; see
59374         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
59375
59376 2003-04-14  Bruno Haible  <bruno@clisp.org>
59377
59378         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
59379
59380 2003-04-11  Jim Meyering  <jim@meyering.net>
59381
59382         Merge changes from Coreutils.
59383
59384         2003-03-22  Jim Meyering  <jim@meyering.net>
59385
59386         * lib/strftime.c (widen): Cast alloca return value to proper type.
59387
59388         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
59389
59390         From GNU libc.
59391         * lib/strftime.c (my_strftime): Handle very large width
59392         specifications for numeric values correctly.  Improve checks for
59393         overflow.
59394
59395         2003-01-19  Jim Meyering  <jim@meyering.net>
59396
59397         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
59398         definitions.
59399         (nl_get_alt_digit) [! defined my_strftime]: Define.
59400         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
59401         _nl_get_alt_digit and _nl_get_walt_digit.
59402
59403         * lib/strftime.c (my_strftime): Merge in locale-related changes from
59404         libc. These changes have no effect outside of _LIBC.
59405
59406 2003-04-10  Bruno Haible  <bruno@clisp.org>
59407
59408         * modules/findprog: New file.
59409         * MODULES.html.sh (func_all_modules): Add it.
59410
59411 2003-04-10  Bruno Haible  <bruno@clisp.org>
59412
59413         * m4/findprog.m4: New file.
59414         * m4/eaccess.m4: New file.
59415
59416 2003-04-10  Bruno Haible  <bruno@clisp.org>
59417
59418         * lib/findprog.h: New file, from GNU gettext.
59419         * lib/findprog.c: New file, from GNU gettext.
59420
59421 2003-04-05  Jim Meyering  <jim@meyering.net>
59422
59423         Merge changes from Coreutils.
59424
59425         * lib/exclude.h (PARAMS): Remove definition and uses.
59426         * lib/exclude.c: Remove uses of `PARAMS'.
59427
59428         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
59429         Add test-cases for DOS filenames. Declare program_name.
59430         (main): Set up program_name.  Patch by Rich Dawe.
59431
59432         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
59433         error from mntctl.
59434         Use mntctl's return value to drive the entry-processing loop, since
59435         we can't rely on the value of the vmt_length member in the last
59436         entry.  On some systems doing so could result in exhausting
59437         virtual memory.  Based in part on a patch from Mike Jetzer.
59438
59439 2003-04-04  Bruno Haible  <bruno@clisp.org>
59440
59441         * modules/linebreak: New file.
59442         * MODULES.html.sh (func_all_modules): Add it.
59443
59444 2003-04-04  Bruno Haible  <bruno@clisp.org>
59445
59446         * m4/linebreak.m4: New file.
59447
59448 2003-04-04  Bruno Haible  <bruno@clisp.org>
59449
59450         * lib/linebreak.h: New file, from GNU gettext.
59451         * lib/linebreak.c: New file, from GNU gettext with slight
59452         modifications.
59453         * lib/lbrkprop.h: New file, from GNU gettext.
59454
59455 2003-04-03  Bruno Haible  <bruno@clisp.org>
59456
59457         * modules/utf8-ucs4: New file.
59458         * modules/utf16-ucs4: New file.
59459         * modules/ucs4-utf8: New file.
59460         * modules/ucs4-utf16: New file.
59461         * MODULES.html.sh (func_all_modules): Add them.
59462
59463 2003-04-03  Bruno Haible  <bruno@clisp.org>
59464
59465         * m4/utf-ucs4.m4: New file.
59466         * m4/ucs4-utf.m4: New file.
59467
59468 2003-04-03  Bruno Haible  <bruno@clisp.org>
59469
59470         * lib/utf8-ucs4.h: New file, from GNU gettext.
59471         * lib/utf16-ucs4.h: New file, from GNU gettext.
59472         * lib/ucs4-utf8.h: New file, from GNU gettext.
59473         * lib/ucs4-utf16.h: New file, from GNU gettext.
59474
59475 2003-04-02  Bruno Haible  <bruno@clisp.org>
59476
59477         * modules/binary-io: New file.
59478         * MODULES.html.sh (func_all_modules): Add it.
59479
59480 2003-04-02  Bruno Haible  <bruno@clisp.org>
59481
59482         * lib/binary-io.h: New file, from GNU gettext.
59483
59484 2003-04-01  Bruno Haible  <bruno@clisp.org>
59485
59486         * modules/pathname: New file.
59487         * MODULES.html.sh (func_all_modules): Add it.
59488
59489 2003-04-01  Bruno Haible  <bruno@clisp.org>
59490
59491         * lib/pathname.h: New file, from GNU gettext.
59492         * lib/concatpath.c: New file, from GNU gettext.
59493
59494 2003-03-30  Bruno Haible  <bruno@clisp.org>
59495
59496         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
59497
59498 2003-03-30  Bruno Haible  <bruno@clisp.org>
59499
59500         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
59501         function chown() doesn't exist.
59502
59503 2003-03-28  Bruno Haible  <bruno@clisp.org>
59504
59505         * modules/copy-file: New file.
59506         * MODULES.html.sh (func_all_modules): Add it.
59507
59508 2003-03-28  Bruno Haible  <bruno@clisp.org>
59509
59510         * m4/copy-file.m4: New file.
59511
59512 2003-03-28  Bruno Haible  <bruno@clisp.org>
59513
59514         * lib/copy-file.h: New file, from GNU gettext.
59515         * lib/copy-file.c: New file, from GNU gettext.
59516
59517 2003-03-18  Jim Meyering  <jim@meyering.net>
59518
59519         * lib/quote.c (quote_n): Fix typo in comment.
59520
59521 2003-03-18  Bruno Haible  <bruno@clisp.org>
59522
59523         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
59524         checking.
59525         * m4/onceonly_2_57.m4: Likewise.
59526
59527 2003-03-17  Bruno Haible  <bruno@clisp.org>
59528
59529         * m4/onceonly.m4: Require autoconf 2.54 or newer.
59530         (m4_quote): Remove macro.
59531         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
59532
59533 2003-03-14  Jim Meyering  <jim@meyering.net>
59534
59535         Merge changes from Coreutils.
59536         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
59537         to be const, in order to avoid warnings.
59538         (obstack_room): Likewise.
59539         (obstack_empty_p): Likewise.
59540
59541 2003-03-14  Bruno Haible  <bruno@clisp.org>
59542
59543         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
59544         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
59545
59546 2003-03-13  Paul Eggert  <eggert@twinsun.com>
59547
59548         Merge changes from Bison.
59549         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
59550         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
59551         when compiling Bison 1.875's `bitset bset = obstack_alloc
59552         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
59553         * lib/hash.c: Include <stdbool.h> unconditionally.
59554
59555 2003-03-13  Paul Eggert  <eggert@twinsun.com>
59556
59557         * m4/onceonly.m4 (m4_quote): New macro.
59558         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
59559         Quote AC_FOREACH variable-expansions properly.
59560
59561 2003-03-13  Paul Eggert  <eggert@twinsun.com>
59562
59563         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
59564
59565 2003-03-09  Paul Eggert  <eggert@twinsun.com>
59566
59567         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
59568         Reported by Bruce Becker; see:
59569         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
59570
59571 2003-03-03  Paul Eggert  <eggert@twinsun.com>
59572             Bruno Haible  <bruno@clisp.org>
59573
59574         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
59575         Reported by John Hughes, see
59576         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
59577
59578 2003-02-20  Bruno Haible  <bruno@clisp.org>
59579
59580         * MODULES.html.sh (func_all_modules): Add poll.
59581
59582 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
59583
59584         * modules/poll: New file.
59585
59586 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
59587
59588         * lib/poll_.h: New file.
59589         * lib/poll.c: New file.
59590
59591 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
59592
59593         * m4/poll.m4: New file.
59594
59595 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
59596
59597         * modules/mathl: New file.
59598
59599 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
59600
59601         * lib/mathl.h: New file.
59602         * lib/acosl.c: New file.
59603         * lib/asinl.c: New file.
59604         * lib/atanl.c: New file.
59605         * lib/ceill.c: New file.
59606         * lib/cosl.c: New file.
59607         * lib/expl.c: New file.
59608         * lib/floorl.c: New file.
59609         * lib/frexpl.c: New file.
59610         * lib/ldexpl.c: New file.
59611         * lib/logl.c: New file.
59612         * lib/sincosl.c: New file.
59613         * lib/sinl.c: New file.
59614         * lib/sqrtl.c: New file.
59615         * lib/tanl.c: New file.
59616         * lib/trigl.c: New file.
59617         * lib/trigl.h: New file.
59618
59619 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
59620
59621         * m4/mathl.m4: New file.
59622
59623 2003-02-18  Bruno Haible  <bruno@clisp.org>
59624
59625         * MODULES.html.sh (func_all_modules): Add mathl.
59626
59627 2003-02-17  Bruno Haible  <bruno@clisp.org>
59628
59629         * modules/mkdtemp: New module.
59630         * MODULES.html.sh (func_all_modules): Add it.
59631
59632 2003-02-17  Bruno Haible  <bruno@clisp.org>
59633
59634         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
59635
59636 2003-02-17  Bruno Haible  <bruno@clisp.org>
59637
59638         * lib/mkdtemp.h: New file, from GNU gettext.
59639         * lib/mkdtemp.c: New file, from GNU gettext.
59640
59641 2003-02-02  Jim Meyering  <jim@meyering.net>
59642
59643         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
59644         e.g. glibc-2.2.93.
59645
59646 2003-01-31  Bruno Haible  <bruno@clisp.org>
59647
59648         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
59649         'rpl_rename'.
59650         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
59651         'rpl_strnlen'.
59652         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
59653         'rpl_strtod'.
59654         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
59655         'rpl_utime'.
59656
59657 2003-01-31  Bruno Haible  <bruno@clisp.org>
59658
59659         * lib/rename.c: #undef rename before defining rpl_rename.
59660         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
59661
59662 2003-01-30  Bruno Haible  <bruno@clisp.org>
59663
59664         * modules/vasnprintf, modules/vasprintf: New modules.
59665         * MODULES.html.sh (func_all_modules): Add them.
59666
59667 2003-01-30  Bruno Haible  <bruno@clisp.org>
59668
59669         * m4/signed.m4: New file, from GNU gettext.
59670         * m4/longdouble.m4: New file, from GNU gettext.
59671         * m4/wchar_t.m4: New file, from GNU gettext.
59672         * m4/wint_t.m4: New file, from GNU gettext.
59673         * m4/vasnprintf.m4: New file.
59674         * m4/vasprintf.m4: New file.
59675
59676 2003-01-30  Bruno Haible  <bruno@clisp.org>
59677
59678         * lib/printf-args.h: New file, from GNU gettext.
59679         * lib/printf-args.c: New file, from GNU gettext.
59680         * lib/printf-parse.h: New file, from GNU gettext.
59681         * lib/printf-parse.c: New file, from GNU gettext.
59682         * lib/vasnprintf.h: New file, from GNU gettext.
59683         * lib/vasnprintf.c: New file, from GNU gettext.
59684         * lib/asnprintf.c: New file, from GNU gettext.
59685         * lib/vasprintf.h: New file, from GNU gettext with modifications.
59686         * lib/vasprintf.c: New file, from GNU gettext.
59687         * lib/asprintf.c: New file, from GNU gettext.
59688
59689 2003-01-29  Bruno Haible  <bruno@clisp.org>
59690
59691         * modules/stpncpy: New module.
59692         * MODULES.html.sh (func_all_modules): Add it.
59693
59694 2003-01-29  Bruno Haible  <bruno@clisp.org>
59695
59696         * m4/stpncpy.m4: New file.
59697
59698 2003-01-29  Bruno Haible  <bruno@clisp.org>
59699
59700         * lib/stpncpy.h: New file, from GNU gettext with modifications.
59701         * lib/stpncpy.c: New file, from GNU gettext with modifications.
59702
59703 2003-01-28  Bruno Haible  <bruno@clisp.org>
59704
59705         * modules/c-ctype: New module.
59706         * MODULES.html.sh (func_all_modules): Add it.
59707
59708 2003-01-28  Bruno Haible  <bruno@clisp.org>
59709
59710         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
59711         Paul Eggert.
59712         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
59713         Paul Eggert.
59714
59715 2003-01-27  Bruno Haible  <bruno@clisp.org>
59716
59717         * modules/xsetenv: New module.
59718         * MODULES.html.sh (func_all_modules): Add it.
59719
59720 2003-01-27  Bruno Haible  <bruno@clisp.org>
59721
59722         * lib/xsetenv.h: New file, from GNU gettext.
59723         * lib/xsetenv.c: New file, from GNU gettext.
59724
59725 2003-01-23  Jim Meyering  <jim@meyering.net>
59726
59727         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
59728         from working on systems without dirfd (at least Irix and OSF1/Tru64).
59729
59730 2003-01-23  Bruno Haible  <bruno@clisp.org>
59731
59732         * modules/minmax: New module.
59733         * MODULES.html.sh (func_all_modules): Add it.
59734
59735 2003-01-23  Bruno Haible  <bruno@clisp.org>
59736
59737         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
59738         Eggert.
59739
59740 2003-01-22  Bruno Haible  <bruno@clisp.org>
59741
59742         * modules/exit: New module.
59743         * MODULES.html.sh (func_all_modules): Add it.
59744
59745 2003-01-22  Bruno Haible  <bruno@clisp.org>
59746
59747         * lib/exit.h: New file, from GNU gettext.
59748
59749 2003-01-19  Bruno Haible  <bruno@clisp.org>
59750
59751         * gnulib-tool: Recognize option --extract-maintainer.
59752         (func_get_maintainer): New function.
59753         * modules/*: Add Maintainer entry.
59754
59755 2003-01-16  Jim Meyering  <jim@meyering.net>
59756
59757         * m4/regex.m4: The `regex' struct is both input and output.
59758         Initialize it before each use.  Patch by Tim Waugh.
59759
59760 2003-01-16  Bruno Haible  <bruno@clisp.org>
59761
59762         * MODULES.html.sh: Add a table of contents. Add the module name as
59763         leftmost column. Add hyperlinks.
59764
59765 2003-01-15  Bruno Haible  <bruno@clisp.org>
59766
59767         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
59768
59769 2003-01-15  Bruno Haible  <bruno@clisp.org>
59770
59771         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
59772         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
59773         suffix.
59774
59775 2003-01-15  Bruno Haible  <bruno@clisp.org>
59776
59777         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
59778
59779 2003-01-15  Bruno Haible  <bruno@clisp.org>
59780
59781         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
59782         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
59783
59784 2003-01-14  Jim Meyering  <jim@meyering.net>
59785
59786         * lib/same.c (same_name): Tweak a comment.
59787
59788 2003-01-14  Bruno Haible  <bruno@clisp.org>
59789
59790         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
59791         when a string comparison is sufficient.
59792
59793 2003-01-14  Bruno Haible  <bruno@clisp.org>
59794
59795         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
59796         'unsigned int'.
59797
59798 2003-01-14  Bruno Haible  <bruno@clisp.org>
59799
59800         * lib/hash-pjw.c: Add comment about low quality of this function.
59801
59802 2003-01-13  Bruno Haible  <bruno@clisp.org>
59803
59804         * modules/stpcpy: Distribute lib/stpcpy.h.
59805         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
59806
59807 2003-01-13  Bruno Haible  <bruno@clisp.org>
59808
59809         * modules/*: Add a description.
59810         * modules/strpbrk: Fix Makefile.am snippet.
59811         * modules/strtoimax: Fix dependencies.
59812         * modules/strtoumax: Likewise.
59813
59814 2003-01-13  Bruno Haible  <bruno@clisp.org>
59815
59816         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
59817         * modules/alloca (Makefile.am): All object files depend on alloca.h.
59818         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
59819
59820 2003-01-13  Bruno Haible  <bruno@clisp.org>
59821
59822         * gnulib-tool (func_create_testdir): Store config/* files in the main
59823         directory.
59824         * config.rpath: Move to ...
59825         * config/config.rpath: ... here.
59826         * modules/gettext: Contains config/config.rpath, not config.rpath.
59827         * modules/iconv: Likewise.
59828
59829 2003-01-12  Paul Eggert  <eggert@twinsun.com>
59830
59831         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59832         to avoid collisions with libcurses and libreadline.
59833
59834         * m4/getstr.m4: Remove.
59835         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
59836
59837 2003-01-12  Paul Eggert  <eggert@twinsun.com>
59838
59839         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59840         to avoid collisions with libcurses and libreadline.
59841
59842         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
59843         * lib/getstr.h, getstr.c: Remove.
59844         * lib/getline.c: Include "getline.h", to check interface.
59845         Move body of old getstr.c here: this defines MIN_CHUNK and
59846         declares getdelim2, which is renamed from getstr.
59847         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
59848
59849         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
59850         All uses changed.
59851         * lib/linebuffer.h: Likewise.
59852         (readline): Remove backward-compatibility macro.
59853
59854 2003-01-12  Paul Eggert  <eggert@twinsun.com>
59855
59856         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59857         to avoid collisions with libcurses and libreadline.
59858         * getstr: Remove.
59859         * MODULES.html.sh: Remove getstr.
59860         * modules/getline: Depend on unlocked-io, not getstr.
59861
59862 2003-01-12  Jim Meyering  <jim@meyering.net>
59863
59864         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
59865
59866 2003-01-10  Bruno Haible  <bruno@clisp.org>
59867
59868         * modules/alloca: Change Makefile.am requirements. Simplify Include
59869         requirements. Add lib/alloca_.h to file list.
59870
59871 2003-01-10  Bruno Haible  <bruno@clisp.org>
59872
59873         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
59874
59875 2003-01-10  Bruno Haible  <bruno@clisp.org>
59876
59877         * lib/alloca_.h: New file.
59878         * lib/getdate.y: Unconditionally include alloca.h.
59879         * lib/makepath.c: Likewise.
59880         * lib/setenv.c: Likewise.
59881         * lib/userspec.c: Likewise.
59882
59883 2003-01-09  Karl Berry  <karl@gnu.org>
59884
59885         * MODULES.html.sh: include `dirname $0` in PATH, to find
59886         gnulib-tool.
59887
59888 2003-01-09  Bruno Haible  <bruno@clisp.org>
59889
59890         * modules/stdbool: Change configure.ac, Makefile.am requirements.
59891         Simplify Include requirements. Add lib/stdbool.h.in to file list.
59892
59893 2003-01-09  Bruno Haible  <bruno@clisp.org>
59894
59895         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
59896
59897 2003-01-09  Bruno Haible  <bruno@clisp.org>
59898
59899         * lib/stdbool.h.in: New file.
59900
59901 2003-01-09  Bruno Haible  <bruno@clisp.org>
59902
59903         * gnulib-tool (func_all_modules): Ignore files ending in ~.
59904         * MODULES.html.sh: Likewise.
59905
59906 2003-01-08  Jim Meyering  <jim@meyering.net>
59907
59908         * lib/full-write.c: Undefine and define-away `const' after inclusion
59909         of errno.h, not before.  Suggestion from Bruno Haible.
59910
59911 2003-01-08  Bruno Haible  <bruno@clisp.org>
59912
59913         * modules/full-read: Depend on full-write.
59914
59915 2003-01-08  Bruno Haible  <bruno@clisp.org>
59916
59917         * lib/safe-read.c: Include specification header first, to ensure its
59918         selfcontainedness.
59919         * lib/full-write.c: Likewise.
59920
59921 2003-01-07  Jim Meyering  <jim@meyering.net>
59922
59923         * lib/full-write.c: Rework so that it may serve to define full_read,
59924         too.
59925         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
59926
59927 2003-01-07  Bruno Haible  <bruno@clisp.org>
59928
59929         * lib/strtoimax.c: Include <stdint.h> as an alternative to
59930         <inttypes.h>.
59931         * lib/xstrtol.h: Likewise.
59932         * lib/xstrtoimax.c: Likewise.
59933         * lib/xstrtoumax.c: Likewise.
59934         * lib/human.h: Likewise.
59935
59936         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
59937         on systems that have <inttypes.h> but not <stdint.h>.
59938
59939 2003-01-07  Bruno Haible  <bruno@clisp.org>
59940
59941         * MODULES.html.sh: Add copyright notice.
59942         (missed_files): Omit CVS directory entries.
59943         (func_module): Make it work with sed-3.02.
59944         * MODULES.txt: Remove file.
59945
59946 2003-01-06  Jim Meyering  <jim@meyering.net>
59947
59948         * lib/version-etc.c: Update year in translatable copyright string.
59949
59950 2003-01-03  Karl Berry  <karl@gnu.org>
59951
59952         * config/config.{guess,sub}: update from prep.
59953
59954 2003-01-02  Karl Berry  <karl@gnu.org>
59955
59956         * doc/COPYING.DOC: belatedly updated to 1.2.
59957
59958 2003-01-01  Karl Berry  <karl@gnu.org>
59959
59960         * gnulib-tool (func_verify_module): report module name $module in
59961         error message, not $1.
59962         * gnulib-tool (create-testdir): don't complain if destdir couldn't
59963         be created, only if it doesn't exist.
59964         * gnulib-tool (last_checkin_date): don't expand the $Date here.
59965
59966 2002-12-31  Paul Eggert  <eggert@twinsun.com>
59967
59968         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
59969
59970 2002-12-31  Paul Eggert  <eggert@twinsun.com>
59971
59972         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
59973         memcmp if strcoll doesn't work.
59974
59975 2002-12-31  Bruno Haible  <bruno@clisp.org>
59976
59977         * lib/utime.c (utime_null): No need to call ftruncate if the file was
59978         nonempty.
59979
59980 2002-12-31  Bruno Haible  <bruno@clisp.org>
59981
59982         * lib/memcoll.c (STRCOLL): New macro.
59983         (memcoll): Use it.
59984
59985 2002-12-31  Bruno Haible  <bruno@clisp.org>
59986
59987         * lib/localcharset.h: New file.
59988         * lib/localcharset.c: Include it.
59989         * lib/unicodeio.c: Likewise.
59990
59991 2002-12-31  Bruno Haible  <bruno@clisp.org>
59992
59993         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
59994         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
59995
59996 2002-12-31  Bruno Haible  <bruno@clisp.org>
59997
59998         * lib/getline.h: Include <stddef.h>, for size_t.
59999
60000         * lib/unicodeio.h: Include <stddef.h>, for size_t.
60001         * lib/unicodeio.c: Don't include <stddef.h>.
60002
60003 2002-12-31  Bruno Haible  <bruno@clisp.org>
60004
60005         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
60006         HAVE_TM_ZONE.
60007
60008 2002-12-24  Karl Berry  <karl@gnu.org>
60009
60010         * config/config.guess: update from prep.
60011
60012 2002-12-24  Bruno Haible  <bruno@clisp.org>
60013
60014         General infrasructure.
60015         * m4/README: Rewritten.
60016         * m4/onceonly.m4: New file.
60017         * m4/onceonly_2_57.m4: New file.
60018
60019         Module atexit.
60020         * m4/atexit.m4: New file.
60021
60022         Module strtod.
60023         * m4/strtod.m4: New file.
60024
60025         Module strtol.
60026         * m4/strtol.m4: New file.
60027
60028         Module strtoul.
60029         * m4/strtoul.m4: New file.
60030
60031         Module memchr.
60032         * m4/memchr.m4: New file.
60033
60034         Module memcmp.
60035         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
60036         (jm_FUNC_MEMCMP): Invoke it.
60037
60038         Module memcpy.
60039         * m4/memcpy.m4: New file.
60040
60041         Module memmove.
60042         * m4/memmove.m4: New file.
60043
60044         Module memset.
60045         * m4/memset.m4: New file.
60046
60047         Module strcspn.
60048         * m4/strcspn.m4: New file.
60049
60050         Module strpbrk.
60051         * m4/strpbrk.m4: New file.
60052
60053         Module strstr.
60054         * m4/strstr.m4: New file.
60055
60056         Module strerror.
60057         * m4/strerror.m4: New file.
60058
60059         Module mktime.
60060         * m4/mktime.m4: Renamed from jm-mktime.m4.
60061         (gl_PREREQ_MKTIME): New macro.
60062         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
60063
60064         Module malloc.
60065         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
60066         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
60067         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
60068
60069         Module realloc.
60070         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
60071         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
60072         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
60073
60074         Module strftime.
60075         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
60076         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
60077         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
60078         gl_TM_GMTOFF.
60079         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
60080
60081         Module xalloc.
60082         * m4/xalloc.m4: New file.
60083
60084         Module alloca.
60085         * m4/alloca.m4: New file.
60086
60087         Module putenv.
60088         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
60089         (jm_FUNC_PUTENV): Invoke it.
60090
60091         Module setenv.
60092         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
60093         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
60094         when invoked twice.
60095         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
60096         gt_FUNC_SETENV.
60097
60098         Module memrchr.
60099         * m4/memrchr.m4: New file.
60100
60101         Module stpcpy.
60102         * m4/stpcpy.m4: New file.
60103
60104         Module strcase.
60105         * m4/strcase.m4: New file.
60106
60107         Module strdup.
60108         * m4/strdup.m4: New file.
60109
60110         Module strnlen.
60111         * m4/strnlen.m4: New file.
60112
60113         Module strndup.
60114         * m4/strndup.m4: New file.
60115
60116         Module xstrtod.
60117         * m4/xstrtod.m4: New file.
60118
60119         Module xstrtol.
60120         * m4/xstrtol.m4: New file.
60121
60122         Module getdate.
60123         * m4/getdate.m4: New file.
60124
60125         Module unlocked-io.
60126         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
60127         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
60128         * m4/jm-glibc-io.m4n: Remove file.
60129
60130         Module long-options.
60131         * m4/long-options.m4: New file.
60132
60133         Module md5.
60134         * m4/md5.m4: New file.
60135
60136         Module sha.
60137         * m4/sha.m4: New file.
60138
60139         Module getstr.
60140         * m4/getstr.m4: New file.
60141
60142         Module getline.
60143         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
60144         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
60145         <sys/types.h>, for size_t. Use the function name gnu_getline, not
60146         simply getline. Infoke gl_PREREQ_GETLINE.
60147
60148         Module obstack.
60149         * m4/obstack.m4: New file.
60150
60151         Module hash.
60152         * m4/hash.m4: New file.
60153
60154         Module readtokens.
60155         * m4/readtokens.m4: New file.
60156
60157         Module strverscmp.
60158         * m4/strverscmp.m4: New file.
60159
60160         Module stdbool.
60161         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
60162         OSF/1.
60163
60164         Module strtoll.
60165         * m4/strtoll.m4: New file.
60166
60167         Module strtoull.
60168         * m4/strtoull.m4: New file.
60169
60170         Module strtoimax.
60171         * m4/strtoimax.m4: New file.
60172
60173         Module strtoumax.
60174         * m4/strtoumax.m4: New file.
60175
60176         Module xstrtoimax.
60177         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
60178         jm_AC_PREREQ_XSTRTOIMAX.
60179         Moved the strtol prerequisites to strtol.m4.
60180         Moved the strtoll prerequisites to strtoll.m4.
60181         Moved the strtoimax prerequisites to strtoimax.m4.
60182
60183         Module xstrtoumax.
60184         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
60185         jm_AC_PREREQ_XSTRTOUMAX.
60186         Moved the strtoul prerequisites to strtoul.m4.
60187         Moved the strtoull prerequisites to strtoull.m4.
60188         Moved the strtoumax prerequisites to strtoumax.m4.
60189
60190         Module chown.
60191         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
60192         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
60193
60194         Module dup2.
60195         * m4/dup2.m4: New file.
60196
60197         Module ftruncate.
60198         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
60199         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
60200
60201         Module getgroups.
60202         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
60203         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
60204
60205         Module gettimeofday.
60206         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
60207         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
60208         gl_PREREQ_GETTIMEOFDAY.
60209
60210         Module mkdir.
60211         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
60212         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
60213
60214         Module mkstemp.
60215         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
60216         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
60217         jm_AC_TYPE_UINTMAX_T.
60218         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
60219
60220         Module stat.
60221         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
60222         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
60223
60224         Module lstat.
60225         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
60226         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
60227
60228         Module timespec.
60229         * m4/timespec.m4 (gl_TIMESPEC): New macro.
60230         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
60231         * m4/st_mtim.m4: Indentation.
60232
60233         Module nanosleep.
60234         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
60235         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
60236         gl_PREREQ_NANOSLEEP.
60237
60238         Module regex.
60239         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
60240         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
60241         (gl_REGEX): New macro.
60242
60243         Module rename.
60244         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
60245         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
60246
60247         Module rmdir.
60248         * m4/rmdir.m4: New file.
60249
60250         Module utime.
60251         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
60252         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
60253         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
60254
60255         Module dirname.
60256         * m4/dirname.m4: New file.
60257
60258         Module getopt.
60259         * m4/getopt.m4: New file.
60260
60261         Module unistd-safer.
60262         * m4/unistd-safer.m4: New file.
60263
60264         Module fnmatch.
60265         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
60266         declaration.
60267         (gl_PREREQ_FNMATCH_EXTRA): New macro.
60268         (gl_FUNC_FNMATCH_POSIX): New macro.
60269         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
60270         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
60271         simply fnmatch.
60272
60273         Module exclude.
60274         * m4/exclude.m4: New file.
60275
60276         Module human.
60277         * m4/human.m4: New file.
60278
60279         Module acl.
60280         * m4/acl.m4: Nop.
60281
60282         Module backupfile.
60283         * m4/backupfile.m4: New file.
60284         * m4/d-ino.m4: Indentation.
60285
60286         Module fsusage.
60287         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
60288         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
60289         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
60290
60291         Module dirfd.
60292         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
60293         requirements.
60294
60295         Module euidaccess.
60296         * m4/euidaccess.m4: New file.
60297
60298         Module file-type.
60299         * m4/file-type.m4: New file.
60300
60301         Module fileblocks.
60302         * m4/fileblocks.m4: New file.
60303
60304         Module filemode.
60305         * m4/filemode.m4: New file.
60306
60307         Module isdir.
60308         * m4/isdir.m4: New file.
60309
60310         Module lchown.
60311         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
60312         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
60313
60314         Module makepath.
60315         * m4/makepath.m4: New file.
60316
60317         Module modechange.
60318         * m4/modechange.m4: New file.
60319
60320         Module mountlist.
60321         * m4/mountlist.m4: New file.
60322         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
60323         Indentation.
60324
60325         Module path-concat.
60326         * m4/path-concat.m4: New file.
60327
60328         Module pathmax.
60329         * m4/pathmax.m4: New file.
60330
60331         Module same.
60332         * m4/same.m4: New file.
60333
60334         Module save-cwd.
60335         * m4/save-cwd.m4: New file.
60336
60337         Module savedir.
60338         * m4/savedir.m4: New file.
60339
60340         Module xgetcwd.
60341         * m4/xgetcwd.m4: New file.
60342         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
60343
60344         Module xreadlink.
60345         * m4/xreadlink.m4: New file.
60346
60347         Module safe-read.
60348         * m4/safe-read.m4: New file.
60349
60350         Module safe-write.
60351         * m4/safe-write.m4: New file.
60352
60353         Module closeout.
60354         * m4/closeout.m4: New file.
60355
60356         Module stdio-safer.
60357         * m4/stdio-safer.m4: New file.
60358
60359         Module getpass.
60360         * m4/getpass.m4: New file.
60361
60362         Module getugroups.
60363         * m4/getugroups.m4: New file.
60364
60365         Module group-member.
60366         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
60367         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
60368
60369         Module idcache.
60370         * m4/idcache.m4: New file.
60371
60372         Module userspec.
60373         * m4/userspec.m4: New file.
60374
60375         Module gettime.
60376         * m4/clock_time.m4: New file.
60377         * m4/gettime.m4: New file.
60378
60379         Module settime.
60380         * m4/settime.m4: New file.
60381
60382         Module posixtm.
60383         * m4/posixtm.m4: New file.
60384
60385         Module gethostname.
60386         * m4/gethostname.m4: New file.
60387
60388         Module canon-host.
60389         * m4/canon-host.m4: New file.
60390
60391         Module gettext.
60392         * m4/codeset.m4: New file, from gettext-0.11.5.
60393         * m4/gettext.m4: New file, from gettext-0.11.5.
60394         * m4/glibc21.m4: New file, from gettext-0.11.5.
60395         * m4/iconv.m4: New file, from gettext-0.11.5.
60396         * m4/intdiv0.m4: New file, from gettext-0.11.5.
60397         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
60398         * m4/inttypes.m4: New file, from gettext-0.11.5.
60399         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
60400         * m4/isc-posix.m4: New file, from gettext-0.11.5.
60401         * m4/lcmessage.m4: New file, from gettext-0.11.5.
60402         * m4/lib-ld.m4: New file, from gettext-0.11.5.
60403         * m4/lib-link.m4: New file, from gettext-0.11.5.
60404         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
60405         * m4/progtest.m4: New file, from gettext-0.11.5.
60406         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
60407         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
60408         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
60409
60410         Module localcharset.
60411         * m4/localcharset.m4: New file.
60412
60413         Module hard-locale.
60414         * m4/hard-locale.m4: New file.
60415
60416         Module mbswidth.
60417         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
60418         onceonly macros.
60419         * m4/mbrtowc.m4: Add comment.
60420
60421         Module memcasecmp.
60422         * m4/memcasecmp.m4: New file.
60423
60424         Module memcoll.
60425         * m4/memcoll.m4: New file.
60426
60427         Module unicodeio.
60428         * m4/unicodeio.m4: New file.
60429
60430         Module rpmatch.
60431         * m4/rpmatch.m4: New file.
60432
60433         Module yesno.
60434         * m4/yesno.m4: New file.
60435
60436         Module exitfail.
60437         * m4/exitfail.m4: New file.
60438
60439         Module c-stack.
60440         * m4/c-stack.m4 (gl_C_STACK): New macro.
60441         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
60442
60443         Module error.
60444         * m4/error.m4 (gl_ERROR): New macro.
60445         (jm_PREREQ_ERROR): Use onceonly macros.
60446
60447         Module fatal.
60448         * m4/fatal.m4: New file.
60449
60450         Module getloadavg.
60451         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
60452         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
60453
60454         Module getpagesize.
60455         * m4/getpagesize.m4: New file.
60456
60457         Module getusershell.
60458         * m4/getusershell.m4: New file.
60459
60460         Module physmem.
60461         * m4/physmem.m4: New file.
60462
60463         Module posixver.
60464         * m4/posixver.m4: New file.
60465
60466         Module quotearg.
60467         * m4/quotearg.m4: New file.
60468
60469         Module quote.
60470         * m4/quote.m4: New file.
60471
60472         Module readutmp.
60473         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
60474
60475         Module sig2str.
60476         * m4/sig2str.m4: New file.
60477
60478         Other.
60479         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
60480         ulonglong.m4.
60481         * m4/intmax_t.m4: New file.
60482         * m4/d-type.m4: Indentation.
60483         * m4/jm-macros.m4: Update.
60484         * m4/prereq.m4 (jm_PREREQ): Update.
60485         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
60486         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
60487         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
60488         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
60489         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
60490         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
60491         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
60492         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
60493         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
60494         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
60495         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
60496         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
60497         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
60498         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
60499         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
60500         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
60501         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
60502         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
60503         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
60504
60505 2002-12-24  Bruno Haible  <bruno@clisp.org>
60506
60507         * MODULES.txt: Update according to m4/ changes.
60508
60509         Module gettext.
60510         * config.rpath: New file, from gettext-0.11.5.
60511
60512         * modules/*: New module descriptions.
60513         * gnulib-tool: New file.
60514         * MODULES.html.sh: New file.
60515
60516 2002-12-21  Karl Berry  <karl@gnu.org>
60517
60518         * doc/fdl.texi: update to version 1.2.
60519
60520 2002-12-19  Karl Berry  <karl@gnu.org>
60521
60522         * config/config.guess: update from prep.
60523
60524 2002-12-18  Bruno Haible  <bruno@clisp.org>
60525
60526         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
60527         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
60528
60529 2002-12-17  Bruno Haible  <bruno@clisp.org>
60530
60531         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
60532         stdlib.h, string.h.
60533
60534 2002-12-17  Bruno Haible  <bruno@clisp.org>
60535
60536         * lib/canon-host.c (strdup): Remove unused declaration.
60537
60538         * lib/fsusage.c: Include full_read.h.
60539         (get_fs_usage): Use full_read instead of safe_read.
60540
60541         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
60542
60543 2002-12-12  Karl Berry  <karl@gnu.org>
60544
60545         * config/config.guess: update from prep.
60546
60547 2002-12-11  Bruno Haible  <bruno@clisp.org>
60548
60549         * m4/setenv.m4: New file, from gettext-0.11.5.
60550
60551 2002-12-11  Bruno Haible  <bruno@clisp.org>
60552
60553         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
60554         not unsetenv().
60555         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
60556         modifications:
60557
60558         2002-12-11  Bruno Haible  <bruno@clisp.org>
60559
60560                 * setenv.c (alloca): Fall back to malloc.
60561                 (freea): New macro.
60562                 (setenv): Use freea() to free memory allocated with alloca().
60563
60564         2002-11-13  Bruno Haible  <bruno@clisp.org>
60565
60566                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
60567                 function declarations.
60568                 * unsetenv.c (unsetenv): Likewise.
60569
60570         2002-03-04  Bruno Haible  <bruno@clisp.org>
60571
60572                 Portability to AIX 4.3.3.
60573                 * unsetenv.c: New file, extracted from setenv.c.
60574                 * setenv.c: Move the unsetenv() function to unsetenv.c.
60575
60576         2001-12-20  Bruno Haible  <bruno@clisp.org>
60577
60578                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
60579                 use malloc instead. For SunOS 4.
60580
60581         2001-12-11  Bruno Haible  <bruno@clisp.org>
60582
60583                 * setenv.c: Declare alloca.
60584                 (compar_fn_t): New typedef.
60585                 (KNOWN_VALUE, STORE_VALUE): Use it.
60586
60587         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
60588         setenv.h.
60589
60590 2002-12-10  Paul Eggert  <eggert@twinsun.com>
60591
60592         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
60593         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
60594         Choose values that are less likely to collide with system fnmatch
60595         options.
60596         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
60597         defined (e.g., a pure POSIX system).
60598         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
60599         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
60600
60601 2002-12-06  Paul Eggert  <eggert@twinsun.com>
60602
60603         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
60604         a pain in practice to deal with generated m4 files.  This change
60605         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
60606
60607         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
60608         and jm-glibc-io.m4, as they are no longer a special case.
60609         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
60610         kludge and the auto-generation stuff.  Check only whether the
60611         functions are declared, not whether they exist, since older hosts
60612         that don't declare the functions can't use the optimization anyway.
60613
60614 2002-12-06  Jim Meyering  <jim@meyering.net>
60615
60616         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
60617
60618         Merge in changes from libc's misc/error.c, in preparation
60619         for the merge of gnulib's changes back into libc.
60620
60621         * lib/error.c (_): Define only if not already defined.
60622         Move definition to follow all #include directives.
60623         Include unlocked-io.h only if !_LIBC.
60624         [_LIBC]: Include <libio/libioP.h>.
60625         [USE_IN_LIBIO]: Include <libio/iolibio.h>
60626         (fflush): Tweak definition to use INTUSE.
60627         (putc): Define.
60628
60629 2002-12-05  Paul Eggert  <eggert@twinsun.com>
60630
60631         * lib/alloca.c [defined emacs]: Include "lisp.h".
60632         (xalloc_die) [defined emacs]: New macro.
60633         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
60634         [! defined emacs]: Include <xalloc.h>.
60635         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
60636         (pointer): Typedef to POINTER_TYPE *.
60637         (malloc): Remove decl; we now always use xmalloc.
60638         (alloca): Use old-style definition, since Emacs needs this.
60639         Check for arithmetic overflow when computing combined size.
60640
60641 2002-12-04  Paul Eggert  <eggert@twinsun.com>
60642
60643         Do not generate unlocked-io.h automatically, since it's easier to
60644         maintain it by hand.
60645
60646         * lib/unlocked-io.h: New file, from GNU diffutils,
60647         but with proper copyright notice and attribution.
60648         * lib/gen-uio: Remove.
60649         * lib/Makefile.am: Add copyright notice.
60650         (libfetish_a_SOURCES): Add unlocked-io.h.
60651         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
60652         (DISTCLEANFILES, io_functions): Remove macros.
60653         (EXTRA_DIST): Remove gen_uio.
60654         (unlocked-io.h): Remove rule.
60655
60656 2002-12-04  Jim Meyering  <jim@meyering.net>
60657
60658         Reflect the fact that stat.c and lstat.c are no longer generated.
60659         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
60660         (DISTCLEANFILES): Likewise.
60661         (EXTRA_DIST): Likewise.
60662         (all_local): Don't depend on stat.c or lstat.c.
60663         (stat.c, lstat.c): Remove rules.
60664         (EXTRA_DIST): Remove xstat.in.
60665
60666         * lib/xstat.in: Remove file.  Contents moved into stat.c.
60667         * lib/stat.c: New file.  Contents mostly from xstat.in.
60668         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
60669         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
60670
60671         * lib/safe-read.c: Rework so that it may serve to define safe_write,
60672         too.
60673         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
60674
60675 2002-12-03  Jim Meyering  <jim@meyering.net>
60676
60677         * lib/safe-read.c, safe-write.c: Change variable names and comments,
60678         but not semantics, to minimize the differences between these two files.
60679         (safe_read): Change comment to mention SAFE_READ_ERROR.
60680
60681         * lib/safe-read.c (IS_EINTR): Define.
60682         (safe_read): Use IS_EINTR in place of in-function cpp directives.
60683
60684 2002-12-02  Jim Meyering  <jim@meyering.net>
60685
60686         * lib/safe-read.c (EINTR): Define.
60687         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
60688         (INT_MAX): Provide fallback.
60689         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
60690
60691         * lib/safe-read.h (SAFE_READ_ERROR): Define.
60692
60693 2002-12-02  Bruno Haible  <bruno@clisp.org>
60694
60695         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
60696         Define, taken from safe-read.c.
60697         (INT_MAX): Provide fallback.
60698         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
60699         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
60700
60701         * lib/safe-read.c (EINTR): Remove definition.
60702         (safe_read): Don't use EINTR if it is absent.
60703
60704 2002-12-01  Jim Meyering  <jim@meyering.net>
60705
60706         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
60707         zero.
60708         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
60709
60710 2002-11-27  Paul Eggert  <eggert@twinsun.com>
60711
60712         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
60713         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
60714         with `if (! (value < limit)) abort ();', for readability.
60715
60716 2002-11-26  Karl Berry  <karl@gnu.org>
60717
60718         * lib/strdup.c: copy from libc again, with jim's ok.
60719         * lib/.cppi-disable: re-add strdup.c
60720
60721 2002-11-25  Karl Berry  <karl@gnu.org>
60722
60723         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
60724         instead of "strtol.c".
60725
60726 2002-11-25  Karl Berry  <karl@gnu.org>
60727
60728         * config/install-sh: update from automake for variable quoting, $0 in
60729         error msgs, etc.
60730
60731         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
60732         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
60733         entry.
60734
60735 2002-11-25  Jim Meyering  <jim@meyering.net>
60736
60737         * lib/mktime.c: Sync from libc, now that it has the latest fix.
60738
60739 2002-11-24  Karl Berry  <karl@gnu.org>
60740
60741         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
60742         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
60743
60744 2002-11-24  Jim Meyering  <jim@meyering.net>
60745
60746         Update from coreutils:
60747
60748         * lib/mktime.c: Merge in changes from libc.
60749
60750         Avoid a link-time failure on some Linux systems.
60751         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
60752         (otherwise).
60753         (__mon_yday): Declare with the STATIC attribute.
60754         (__mktime_internal): Likewise.
60755         Based on a report from Greg Schafer.
60756
60757 2002-11-23  Jim Meyering  <jim@meyering.net>
60758
60759         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
60760         Use `unsigned', not `int', as type of index.
60761
60762         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
60763
60764         * lib/fsusage.c: Remove unneeded parentheses around operands of
60765         `defined'.
60766
60767 2002-11-22  Paul Eggert  <eggert@twinsun.com>
60768
60769         * lib/quotearg.h: Allow multiple inclusion by surrounding with
60770         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
60771         so that we can be included first.
60772         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
60773         * lib/quotearg.c: Include quotearg.h immediately after config.h.
60774         No need to include stddef.h or sys/types.h any more.
60775         Surround local include files with "", not "<>".
60776         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
60777         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
60778         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
60779         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
60780         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
60781         (ISPRINT): Remove; no longer needed now that we assume C89.
60782
60783         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
60784         Preserve errno.
60785
60786         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
60787         quotearg_char): Use SIZE_MAX rather than
60788         (size_t) -1 when we are talking about "infinity".
60789
60790         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
60791
60792 2002-11-22  Paul Eggert  <eggert@twinsun.com>
60793
60794         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
60795         hint that one should use `if (! x) abort ();' rather than `assert
60796         (x);', and anyway it's one less thing to worry about configuring.
60797         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
60798         hash_rehash, hash_insert): Use abort rather than assert.
60799
60800 2002-11-22  Bruno Haible  <bruno@clisp.org>
60801
60802         * lib/safe-read.h: Assume C89. Add comments.
60803         (safe_read): Change return type to size_t.
60804         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
60805         byte counts > SSIZE_MAX correctly.
60806         * lib/safe-write.h: New file.
60807         * lib/safe-write.c: New file.
60808         * lib/full-read.h: New file.
60809         * lib/full-read.c: New file.
60810         * lib/full-write.h: Assume C89. Add comments.
60811         * lib/full-write.c: Include safe-write.h.
60812         (full_write): Rewritten to use safe_write.
60813         Suggested by Jim Meyering and Paul Eggert.
60814
60815 2002-11-21  Jim Meyering  <jim@meyering.net>
60816
60817         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
60818
60819         Merge in changes from the coreutils.
60820
60821         2002-09-25  Paul Eggert  <eggert@twinsun.com>
60822         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
60823         <stdint.h>.
60824         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
60825         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
60826         int.  Work more efficiently if X is the same width as uintmax_t.
60827         Do not compare X to -1, to avoid bogus compiler warning.
60828         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
60829         Don't assume that f_frsize and f_bsize are the same type.
60830
60831         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
60832         warning on FreeBSD.
60833
60834         * lib/makepath.c (make_path): Restore umask *before* creating the final
60835         component.
60836         (make_path): Minor reformatting.
60837
60838         * lib/xmalloc.c: Adjust to work with new autoconf macros,
60839         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
60840         HAVE_MALLOC/HAVE_REALLOC.
60841
60842         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
60843         dummy ones.  At least on GNU/Linux systems, `auto' means something
60844         else.
60845         From Michael Stone.
60846
60847 2002-11-21  Bruno Haible  <bruno@clisp.org>
60848
60849         Remove case insensitive option matching.
60850         * lib/argmatch.h (argcasematch): Remove declaration.
60851         (ARGCASEMATCH): Remove macro.
60852         (__xargmatch_internal): Remove case_sensitive argument.
60853         (XARGMATCH): Update.
60854         (XARGCASEMATCH): Remove macro.
60855         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
60856         case_sensitive argument.
60857         (argcasematch): Remove function.
60858         (__xargmatch_internal): Remove case_sensitive argument.
60859         (main): Use XARGMATCH instead of XARGCASEMATCH.
60860
60861         * lib/xmalloc.c: Change compile-time error message. Add comment about
60862         required autoconf version.
60863
60864 2002-11-20  Paul Eggert  <eggert@twinsun.com>
60865
60866         Merge argmatch cleanups from Bison.  Assume C89.
60867
60868         * lib/argmatch.c: Include config.h here, not in argmatch.h.
60869         Include stdlib.h, for EXIT_FAILURE.
60870         Always include <string.h>, since we assume C89.
60871         (EXIT_FAILURE): Remove pre-C89 bug workaround.
60872         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
60873         Include <stddef.h> instead, since it's all we need for size_t.
60874         (PARAMS): Remove.  All uses removed.
60875         (ARRAY_CARDINALITY): Do not bother to #undef.
60876         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
60877         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
60878         Remove unnecessary parentheses.
60879         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
60880         Insert necessary parentheses.
60881         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
60882         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
60883
60884 2002-11-19  Bruno Haible  <bruno@clisp.org>
60885
60886         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
60887         * lib/mbswidth.h: Include <stddef.h>, for size_t.
60888
60889         * lib/mbswidth.h (PARAMS): Remove macro.
60890         (mbswidth, mbsnwidth): Use ANSI C function declarations.
60891         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
60892
60893         * lib/gcd.h (PARAMS): Remove macro.
60894         (gcd): Use ANSI C function declarations.
60895         * lib/gcd.c (gcd): Likewise.
60896
60897 2002-11-15  Bruno Haible  <bruno@clisp.org>
60898
60899         * lib/strcspn.c: Include <stddef.h>.
60900         (strcspn): Use ANSI C function declaration. Change return type to
60901         size_t. Use NULL.
60902         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
60903         (strpbrk): Use NULL.
60904         * lib/strpbrk.h (PARAMS): Remove macro.
60905         (strpbrk): Use ANSI C function declaration.
60906         * lib/strstr.c: Don't include <sys/types.h>.
60907         * lib/strstr.h (PARAMS): Remove macro.
60908         (strstr): Use ANSI C function declarations.
60909
60910 2002-11-14  Karl Berry  <karl@gnu.org>
60911
60912         * config/mkinstalldirs: `do' on separate line, instead of
60913         `for var; do'.
60914
60915 2002-11-06  Bruno Haible  <bruno@clisp.org>
60916
60917         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
60918         * lib/gcd.c (gcd): Likewise.
60919
60920 2002-11-05  Bruno Haible  <bruno@clisp.org>
60921
60922         * lib/gcd.h: New file, from gettext-0.11.5.
60923         * lib/gcd.c: New file, from gettext-0.11.5.
60924
60925 2002-11-05  Bruno Haible  <bruno@clisp.org>
60926
60927         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60928         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60929         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60930         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60931
60932         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
60933         <libintl.h>.
60934         * lib/makepath.c: Include gettext.h instead of <locale.h> and
60935         <libintl.h>.
60936
60937         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
60938         * lib/human.c: Include gettext.h instead of <libintl.h>.
60939         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
60940         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
60941         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
60942         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
60943         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
60944         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
60945         (textdomain): Remove definition.
60946         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
60947
60948         * lib/long-options.c: Remove include of <libintl.h> and definition of
60949         _.
60950         * lib/same.c: Remove include of <libintl.h> and definition of _.
60951
60952 2002-11-04  Owen Taylor  <otaylor@redhat.com>
60953
60954         * lib/config.charset: A few additions for Solaris.
60955
60956 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
60957
60958         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
60959         * lib/localcharset.c (locale_charset): Declare as extern "C".
60960
60961 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
60962
60963         * lib/config.charset: msdos in uk_UA uses CP1125.
60964
60965 2002-11-04  Bruno Haible  <bruno@clisp.org>
60966
60967         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
60968         * lib/strcase.h: New file, from GNU gettext-0.11.5.
60969         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
60970         * lib/strstr.h: New file, from GNU gettext-0.11.5.
60971         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
60972
60973 2002-11-04  Bruno Haible  <bruno@clisp.org>
60974
60975         * lib/localcharset.c (locale_charset): Don't return an empty string.
60976
60977 2002-11-04  Bruno Haible  <bruno@clisp.org>
60978
60979         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
60980         aliases.
60981
60982 2002-11-04  Bruno Haible  <bruno@clisp.org>
60983
60984         * lib/config.charset: Update for newest glibc. Add canonical names
60985         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
60986
60987 2002-11-04  Bruno Haible  <bruno@clisp.org>
60988
60989         * lib/config.charset: Add support for NetBSD.
60990
60991 2002-11-04  Bruno Haible  <bruno@clisp.org>
60992
60993         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
60994
60995 2002-11-01  Bruno Haible  <bruno@clisp.org>
60996
60997         * configure.in: Add AC_CONFIG_AUX_DIR call.
60998         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
60999         test/Makefile.
61000         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
61001
61002 2002-09-28  Karl Berry  <karl@gnu.org>
61003
61004         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
61005         installed automake until the next release, since changes have been
61006         made.
61007
61008 2002-09-25  Karl Berry  <karl@gnu.org>
61009
61010         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
61011         * lib/getopt*: copy from libc/posix.
61012         * lib/gettext.h: copy from gettext.
61013         * lib/.cppi-disable: add strdup.c, gettext.h.
61014
61015 2002-09-25  Karl Berry  <karl@gnu.org>
61016
61017         * config/srclist.txt: enable gettext.h check.
61018         * config/config.{guess,sub}: update from prep.
61019         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
61020                 from automake 1.6.3.
61021         See srclist*.
61022
61023 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
61024
61025         * regex.c (PATFETCH): Remove the translating fetch.
61026         (PATFETCH_RAW): Rename to PATFETCH.
61027         (set_image_of_range): New fun.
61028         (SET_RANGE_TABLE_WORK_AREA): Use it.
61029         (regex_compile): Don't translate the pattern chars so eagerly.
61030         Only do it when inserting an `exactn' bytecode or when handling
61031         a char-range.
61032         (mutually_exclusive_p): Avoid empty statement.
61033
61034 2002-07-06  Jim Meyering  <meyering@lucent.com>
61035
61036         * m4/README: Don't mention Makefile.am.in.
61037         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
61038
61039 2002-07-01  Jim Meyering  <meyering@lucent.com>
61040
61041         * lib/c-stack.c: Include sys/time.h.
61042         From Volker Borchert.
61043
61044 2002-06-26  Paul Eggert  <eggert@twinsun.com>
61045
61046         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
61047
61048 2002-06-26  Paul Eggert  <eggert@twinsun.com>
61049
61050         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
61051         New macro.  Use it uniformly instead of
61052         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
61053         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
61054         reported by Vin Shelton.
61055
61056 2002-06-22  Paul Eggert  <eggert@twinsun.com>
61057
61058         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
61059         Do not assume SA_SIGINFO behavior.
61060         Bug reported by Jim Meyering on NetBSD 1.5.2.
61061
61062 2002-06-22  Jim Meyering  <meyering@lucent.com>
61063
61064         * m4/c-stack.m4: New file, from diffutils-2.8.2.
61065         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
61066
61067         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
61068         now that configure.ac uses AC_GNU_SOURCE.
61069         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
61070         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
61071
61072         Update to latest tools.  Suggestions from Paul Eggert.
61073         * m4/stdbool.m4: New file, from diffutils-2.8.2.
61074         * m4/gnu-source.m4: Update from diffutils-2.8.2.
61075         * m4/fnmatch.m4: Likewise.
61076         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
61077         to AC_HEADER_STDBOOL
61078
61079 2002-06-22  Jim Meyering  <meyering@lucent.com>
61080
61081         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
61082         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
61083
61084 2002-06-22  Jim Meyering  <meyering@lucent.com>
61085
61086         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
61087
61088         * lib/exitfail.c, exitfail.h: Likewise.
61089         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
61090
61091         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
61092         of fnmatch.h.
61093         (EXTRA_DIST): Add fnmatch_loop.c.
61094         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
61095
61096         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
61097         * lib/fnmatch.c: Update from diffutils-2.8.2.
61098         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
61099         * lib/fnmatch.h: Remove file.
61100
61101 2002-06-21  Jim Meyering  <meyering@lucent.com>
61102
61103         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
61104         * m4/mbrtowc.m4: Likewise.
61105
61106         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
61107         * m4/mbswidth.m4: Reflect name change:
61108         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
61109         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
61110
61111         * m4/lib-link.m4: Update from gettext-0.11.2.
61112         * m4/gettext.m4: Likewise.
61113
61114         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
61115         From Alfred M. Szmidt.
61116
61117 2002-06-18  Paul Eggert  <eggert@twinsun.com>
61118
61119         * lib/file-type.h: Report an error if neither S_ISREG nor
61120         S_IFREG is defined, instead of using a test specific to glibc
61121         2.2.  This should be safe, since POSIX requires S_ISREG and
61122         Unix Version 7 had S_IFREG.  We don't need to check for
61123         <sys/types.h> since we don't use any symbols that it defines.
61124
61125 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
61126
61127         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
61128         $@-t, so that each temporary file name is unique and valid in the first
61129         8 characters, for operation under DOS.
61130
61131 2002-06-15  Paul Eggert  <eggert@twinsun.com>
61132
61133         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
61134
61135 2002-06-15  Jim Meyering  <meyering@lucent.com>
61136
61137         Work even with DJGPP 2.03, which lacks support for symlinks.
61138         From Richard Dawe.
61139         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
61140         is defined.
61141         * lib/lchown.c (S_ISLNK): Likewise.
61142
61143 2002-06-15  Jim Meyering  <meyering@lucent.com>
61144
61145         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
61146         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
61147         have been included before this file.
61148
61149 2002-06-14  Jim Meyering  <meyering@lucent.com>
61150
61151         * lib/file-type.h: Use the version from diffutils-2.8.2.
61152         * lib/file-type.c: Likewise.
61153
61154 2002-06-07  Jim Meyering  <meyering@lucent.com>
61155
61156         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
61157         They're needed at least for NetBSD 1.5.2.
61158         ($statxfs_includes): Include those same headers.
61159         ($statxfs_includes): Include sys/vfs.h if available.
61160         ($statxfs_includes): Likewise for sys/statvfs.h.
61161         Check for the following members in both structs statfs and statvfs:
61162         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
61163
61164 2002-06-01  Jim Meyering  <meyering@lucent.com>
61165
61166         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
61167         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
61168
61169 2002-05-28  Jim Meyering  <meyering@lucent.com>
61170
61171         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
61172         Reported by Volker Borchert.
61173
61174 2002-05-27  Jim Meyering  <meyering@lucent.com>
61175
61176         Fix a problem seen only on nonconforming systems whereby ls.c's
61177         use of localtime, and then of gettimeofday would cause trouble:
61178         the localtime call used to initialize rpl_gettimeofday's save
61179         mechanism would clobber ls's current local time information so
61180         that in any long listing the first file would always be listed
61181         with date 1970-01-01.  Analysis by Volker Borchert.
61182
61183         * lib/gettimeofday.c (localtime): Undefine.
61184         (rpl_localtime): New function.
61185
61186 2002-05-27  Jim Meyering  <meyering@lucent.com>
61187
61188         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
61189         localtime.
61190
61191         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
61192         use the replacement function; it wouldn't resolve at link time.
61193         Reported by Volker Borchert.
61194
61195 2002-05-22  Jim Meyering  <meyering@lucent.com>
61196
61197         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
61198         file-type.h.
61199         * lib/file-type.h: New file.
61200         * lib/file-type.c (file_type): New file/function.  Extracted from
61201         diffutils.
61202
61203 2002-04-30  Jim Meyering  <meyering@lucent.com>
61204
61205         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
61206
61207 2002-04-29  Paul Eggert  <eggert@twinsun.com>
61208
61209         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
61210
61211 2002-04-29  Paul Eggert  <eggert@twinsun.com>
61212
61213         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
61214         Do not check for alloca.h (no longer used) or stdbool.h (was never
61215         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
61216
61217 2002-04-29  Paul Eggert  <eggert@twinsun.com>
61218
61219         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
61220
61221 2002-04-29  Jim Meyering  <meyering@lucent.com>
61222
61223         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
61224         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
61225         Use AC_FUNC_STRNLEN here instead.
61226
61227         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
61228         With autoconf-2.53a, it's part of AC_PROG_CC.
61229
61230 2002-04-28  Paul Eggert  <eggert@twinsun.com>
61231
61232         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
61233         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
61234
61235 2002-04-28  Paul Eggert  <eggert@twinsun.com>
61236
61237         * lib/sig2str.h, lib/sig2str.c: New files.
61238         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
61239
61240 2002-04-28  Paul Eggert  <eggert@twinsun.com>
61241
61242         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
61243         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
61244         of 127, since 64 is the largest conceivable number for ancient
61245         nonstandard hosts.
61246         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
61247
61248 2002-04-28  Jim Meyering  <meyering@lucent.com>
61249
61250         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
61251
61252 2002-04-24  Jim Meyering  <meyering@lucent.com>
61253
61254         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
61255         (jm_PREREQ): Use it.
61256
61257         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
61258         mach/mach.h fcntl.h.
61259         Check for this function: setlocale.
61260
61261 2002-04-24  Jim Meyering  <meyering@lucent.com>
61262
61263         * lib/gettext.h: New file, from Gettext.
61264         * lib/Makefile.am (INCLUDES): Remove -I../intl.
61265         (libfetish_a_SOURCES): Add gettext.h.
61266
61267 2002-04-16  Jim Meyering  <meyering@lucent.com>
61268
61269         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
61270         ut_pid, ut_id, ut_exit.
61271
61272 2002-04-16  Jim Meyering  <meyering@lucent.com>
61273
61274         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
61275         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
61276         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
61277
61278 2002-04-12  Jim Meyering  <meyering@lucent.com>
61279
61280         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
61281         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
61282         existence of the getmntinfo function.  Needed for Darwin 5.3.
61283
61284         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
61285         This is necessary at least on Darwin 5.3.
61286
61287         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
61288         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
61289         strnlen.o in the library, and that makes some versions of ranlib
61290         object.
61291
61292 2002-04-12  Jim Meyering  <meyering@lucent.com>
61293
61294         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
61295
61296 2002-04-09  Jim Meyering  <meyering@lucent.com>
61297
61298         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
61299         to be more precise.  Rather than saying we're checking whether the
61300         function `works', say what we're testing.
61301         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
61302         Reported by Bruno Haible.
61303
61304 2002-03-10  Jim Meyering  <meyering@lucent.com>
61305
61306         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
61307         Suggestion from Santiago Vila.
61308
61309 2002-03-08  Jim Meyering  <meyering@lucent.com>
61310
61311         * lib/rename.c: Mention that this wrapper is needed also on
61312         mips-dec-ultrix4.4 systems.
61313
61314 2002-03-02  Jim Meyering  <meyering@lucent.com>
61315
61316         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
61317         not HAVE_CLOCK_SETTIME.
61318
61319 2002-02-27  Paul Eggert  <eggert@twinsun.com>
61320
61321         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
61322         Check for clock_settime.
61323
61324 2002-02-27  Paul Eggert  <eggert@twinsun.com>
61325
61326         * lib/nanosleep.h: Rename to....
61327         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
61328
61329         * lib/gettime.c: New file.
61330         * lib/settime.c: New file.
61331         * lib/stime.c: Remove.
61332
61333         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
61334         timespec.h.  Remove nanosleep.h.
61335
61336 2002-02-25  Paul Eggert  <eggert@twinsun.com>
61337
61338         * m4/acl.m4: New file.
61339         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
61340         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
61341
61342 2002-02-25  Paul Eggert  <eggert@twinsun.com>
61343
61344         * lib/acl.c, lib/acl.h: New files.
61345         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
61346
61347 2002-02-24  Jim Meyering  <meyering@lucent.com>
61348
61349         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
61350         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
61351         cause trouble.  Reported by Nelson Beebe.
61352
61353 2002-02-23  Paul Eggert  <eggert@twinsun.com>
61354
61355         * lib/path-concat.c (xpath_concat): Reorder code to pacify
61356         compilers that don't know that xalloc_die never returns.
61357
61358 2002-02-20  Jim Meyering  <meyering@lucent.com>
61359
61360         * lib/getdate.c: Regenerate using bison-1.33.
61361
61362 2002-02-17  Jim Meyering  <meyering@lucent.com>
61363
61364         * config/config.guess (main): Don't use `head -1'; it's no longer
61365         portable. Use `sed 1q' instead.
61366
61367 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
61368
61369         * m4/codeset.m4: Upgrade to gettext-0.11.
61370         * m4/gettext.m4: Upgrade to gettext-0.11.
61371         * m4/glibc21.m4: Upgrade to gettext-0.11.
61372         * m4/iconv.m4: Upgrade to gettext-0.11.
61373         * m4/isc-posix.m4: Upgrade to gettext-0.11.
61374         * m4/lcmessage.m4: Upgrade to gettext-0.11.
61375         * m4/lib-ld.m4: New file, from gettext-0.11.
61376         * m4/lib-link.m4: New file, from gettext-0.11.
61377         * m4/lib-prefix.m4: New file, from gettext-0.11.
61378         * m4/progtest.m4: Upgrade to gettext-0.11.
61379
61380 2002-02-15  Paul Eggert  <eggert@twinsun.com>
61381
61382         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
61383         (jm_PREREQ): Use it.
61384
61385 2002-02-15  Paul Eggert  <eggert@twinsun.com>
61386
61387         * lib/posixver.c, lib/posixver.h: New files.
61388         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
61389
61390 2002-02-02  Paul Eggert  <eggert@twinsun.com>
61391             Bruno Haible  <bruno@clisp.org>
61392
61393         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
61394         (fwrite_success_callback): New declaration.
61395         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
61396         print_unicode_char. Call failure callback instead of error.
61397         (fwrite_success_callback): New function.
61398         (exit_failure_callback): New function.
61399         (fallback_failure_callback): New function.
61400         (print_unicode_char): Call unicode_to_mb.
61401
61402 2002-01-26  Jim Meyering  <meyering@lucent.com>
61403
61404         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
61405         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
61406
61407 2002-01-26  Jim Meyering  <meyering@lucent.com>
61408
61409         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
61410
61411 2002-01-22  Paul Eggert  <eggert@twinsun.com>
61412
61413         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
61414
61415 2002-01-22  Jim Meyering  <meyering@lucent.com>
61416
61417         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
61418         Otherwise, some versions of automake would omit the rule that makes
61419         Makefile from Makefile.in.
61420
61421 2002-01-21  Paul Eggert  <eggert@twinsun.com>
61422
61423         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
61424         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
61425         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
61426         (memcoll): Set errno to zero if there is no error.
61427
61428         * lib/quotearg.c (quotearg_buffer_restyled):
61429         Fix bug with quoting buffers containing NUL when backslashing escapes.
61430         This bug was exposed by the other changes in this patch.
61431         (quotearg_n_options): New arg ARGSIZE.
61432         All callers changed.
61433         (quoting_options_from_style): New function.
61434         (quotearg_n_style): Use it.
61435         (quotearg_n_style_mem): New function.
61436
61437         * lib/quotearg.h (quotearg_n_style_mem): New function.
61438
61439 2002-01-19  Jim Meyering  <meyering@lucent.com>
61440
61441         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
61442         Remove useless quotes: DF_PROG="df".
61443         * m4/strnlen.m4: New file.
61444
61445 2002-01-16  Paul Eggert  <eggert@twinsun.com>
61446
61447         * lib/backupfile.c (ISDIGIT): Comment fix.
61448         * lib/getdate.y (ISDIGIT): Likewise.
61449         * lib/posixtm.c (ISDIGIT, year): Likewise.
61450         * lib/strverscmp.c (ISDIGIT): Likewise.
61451         * lib/userspec.c (ISDIGIT): Likewise.
61452
61453 2002-01-16  Jim Meyering  <meyering@lucent.com>
61454
61455         * lib/getdate.y: Add three semicolons, each just before a closing
61456         brace. Bison (as of version 1.31) no longer papers over that mistake.
61457
61458 2002-01-05  Jim Meyering  <meyering@lucent.com>
61459
61460         * lib/version-etc.c (version_etc_copyright): Update copyright year.
61461
61462 2001-12-19  Paul Eggert  <eggert@twinsun.com>
61463
61464         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
61465         not silently exit merely because the output buffer happens to
61466         have nothing pending.
61467
61468 2001-12-18  Paul Eggert  <eggert@twinsun.com>
61469
61470         See the big note in ../ChangeLog.
61471         * lib/human.c (suffixes): Prefer K to k for 1024.
61472         (generate_suffix_backwards): New function.
61473         (human_readable_inexact): Use it.
61474         * lib/xstrtol.c (__xstrtol): If there is no number but there
61475         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
61476         Accept 'K' as well as 'k'.
61477
61478 2001-12-15  Jim Meyering  <meyering@lucent.com>
61479
61480         * lib/regex.h (__restrict_arr): Update from libc.
61481
61482         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
61483         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
61484         (STREQ): Define.
61485
61486 2001-12-14  Jim Meyering  <meyering@lucent.com>
61487
61488         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
61489         Suggestion from Bruno Haible.
61490
61491 2001-12-10  Jim Meyering  <meyering@lucent.com>
61492
61493         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
61494         xrealloc, Instead, include "xalloc.h".
61495         (initbuffer): Don't cast xmalloc return value to char*.
61496         (readline): Reword comment.
61497         Don't cast xrealloc return value to char*
61498         Return NULL, not 0.
61499
61500 2001-12-09  Jim Meyering  <meyering@lucent.com>
61501
61502         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
61503         about `signed and unsigned type in conditional expression'.
61504         * lib/posixtm.c (posix_time_parse): Likewise.
61505
61506         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
61507
61508         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
61509         to avoid a pedantic warning.
61510
61511         * lib/getstr.c: Don't include assert.h.
61512         (getstr): Remove warning-evoking assertions.
61513         Return -1 if offset parameter is out of bounds.
61514         Change the type of a local from int to size_t.
61515
61516         * lib/strftime.c (my_strftime_localtime_r): Include this function
61517         definition in the `#if ! HAVE_TM_GMTOFF' block.
61518
61519         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
61520         Include xalloc.h instead.
61521
61522 2001-12-02  Jim Meyering  <meyering@lucent.com>
61523
61524         * lib/tempname.c: Don't declare getenv, thus reverting the change of
61525         2001-11-18.  It's no longer necessary, now that stdlib.h is always
61526         included.
61527
61528         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
61529         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
61530
61531 2001-11-30  Akim Demaille  <akim@epita.fr>
61532
61533         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
61534         before being defined.
61535
61536 2001-11-27  Paul Eggert  <eggert@twinsun.com>
61537
61538         * lib/quotearg.h (quotearg_n, quotearg_n_style):
61539         First arg is int, not unsigned.
61540         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
61541         (SIZE_MAX, UINT_MAX): New macros.
61542         (quotearg_n_options): Abort if N is negative.
61543         Avoid overflow check on hosts where size_t is 64 bits and int
61544         is 32 bits, as overflow is impossible there.
61545         Fix off-by-one typo that caused unnecessary reallocation.
61546
61547 2001-11-27  Jim Meyering  <meyering@lucent.com>
61548
61549         * lib/tempname.c: Merge with version from libc.
61550         * lib/regex.c: Likewise.
61551
61552         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
61553         systems for which STDC_HEADERS is 0, it was not included, resulting in
61554         a warning about an integer-to-pointer conversion problem with getenv.
61555         Reported by Volker Borchert.
61556
61557 2001-11-26  Jim Meyering  <meyering@lucent.com>
61558
61559         * lib/gtod.h: Remove file.
61560         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
61561         * lib/gettimeofday.c: Don't include gtod.h.
61562         (GTOD_init): Remove function.
61563         (rpl_gettimeofday): Do its job here instead, rather than aborting.
61564         Suggestion from Volker Borchert.
61565
61566 2001-11-23  Jim Meyering  <meyering@lucent.com>
61567
61568         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
61569         it.
61570         * lib/hash.c (struct hash_table): Define it here instead.
61571
61572 2001-11-22  Jim Meyering  <meyering@lucent.com>
61573
61574         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
61575
61576 2001-11-20  Jim Meyering  <meyering@lucent.com>
61577
61578         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
61579         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
61580
61581 2001-11-19  Jim Meyering  <meyering@lucent.com>
61582
61583         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
61584         directory.  Use "conftestXXXXXX" as the template.
61585         Suggestion from Paul Eggert.
61586
61587         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
61588         immediately, so the test doesn't mistakenly hit the max-open-files
61589         limit.
61590
61591 2001-11-18  Paul Eggert  <eggert@twinsun.com>
61592
61593         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
61594         (TEMPORARIES): New macro.
61595         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
61596         removes an artificial limitation (e.g. HP-UX 10.20, where
61597         TMP_MAX is 17576).
61598
61599 2001-11-18  Jim Meyering  <meyering@lucent.com>
61600
61601         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
61602
61603 2001-11-18  Jim Meyering  <meyering@lucent.com>
61604
61605         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
61606         on SunOS 4.
61607
61608         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
61609         files will be created before anything else.
61610
61611 2001-11-17  Paul Eggert  <eggert@twinsun.com>
61612
61613         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
61614         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
61615
61616 2001-11-17  Jim Meyering  <meyering@lucent.com>
61617
61618         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
61619         Prompted by a report from Bob Proulx.
61620
61621         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
61622         Instead, require UTILS_FUNC_MKSTEMP.
61623
61624 2001-11-17  Jim Meyering  <meyering@lucent.com>
61625
61626         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
61627         Now, that's done as part of AC_FUNC_STRTOD.
61628
61629 2001-11-17  Jim Meyering  <meyering@lucent.com>
61630
61631         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
61632         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
61633         rather than group writable.  Patch by Juan F. Codagnone.
61634
61635         * lib/readtokens.c: Remove explicit declarations of xmalloc and
61636         xrealloc, Instead, include "xalloc.h".
61637
61638         * lib/mountlist.c: Include unlocked-io.h after all system headers.
61639         Remove explicit declarations of xmalloc, xrealloc,
61640         and xstrdup.  Instead, include "xalloc.h".
61641
61642         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
61643         unlocked-io.h.
61644         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
61645         Likewise.
61646         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
61647
61648         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
61649         Reported by Padraig Brady.
61650
61651         * lib/mkstemp.c: #undef mkstemp.
61652         Include config.h.
61653         (rpl_mkstemp): Rename from mkstemp.
61654         Protoize.
61655
61656 2001-11-16  Jim Meyering  <meyering@lucent.com>
61657
61658         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
61659         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
61660         determine the amount of total physical memory, use pstat_getstatic.
61661         HPUX-11 doesn't define _SC_PHYS_PAGES.
61662         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
61663         If sysconf couldn't be used to determine the amount of available
61664         physical memory, use both pstat_getstatic and pstat_getdynamic.
61665         Based on a patch from Bob Proulx.
61666
61667 2001-11-10  Jim Meyering  <meyering@lucent.com>
61668
61669         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
61670         (jm_PREREQ): Use it.
61671
61672 2001-11-09  Jim Meyering  <meyering@lucent.com>
61673
61674         * m4/jm-macros.m4: Require autoconf-2.52f.
61675         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
61676         Use these AC_-prefixed names, not the AM_-prefixed ones.
61677
61678         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
61679
61680 2001-11-05  Jim Meyering  <meyering@lucent.com>
61681
61682         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
61683
61684 2001-11-04  Jim Meyering  <meyering@lucent.com>
61685
61686         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
61687         $DEFS.
61688
61689 2001-11-03  Jim Meyering  <meyering@lucent.com>
61690
61691         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
61692         of AC_DEFUN.
61693
61694         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
61695         know the name of the variable in the macro definition.
61696
61697 2001-11-03  Jim Meyering  <meyering@lucent.com>
61698
61699         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
61700         in argmatch_to_argument call.
61701
61702         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
61703         argument.
61704
61705         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
61706         e.g., a fault due to an attempt to free a NULL pointer.
61707
61708 2001-11-01  Jim Meyering  <meyering@lucent.com>
61709
61710         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
61711         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
61712
61713 2001-11-01  Jim Meyering  <meyering@lucent.com>
61714
61715         * lib/dirfd.c, lib/dirfd.h: New files.
61716         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
61717
61718         * lib/hash.c (hash_print) [TESTING]: Clean up.
61719
61720 2001-10-22  Paul Eggert  <eggert@twinsun.com>
61721
61722         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
61723         to avoid a warning if -Wall.
61724
61725 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
61726
61727         * README: New file
61728         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
61729         (per RMS's instructions, this is now the canonical source)
61730         * lgpl/, gpl/: New directories.
61731
61732 2001-10-21  Paul Eggert  <eggert@twinsun.com>
61733
61734         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
61735
61736 2001-10-21  Jim Meyering  <meyering@lucent.com>
61737
61738         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
61739         this code would end up calling gettext even in packages built
61740         with --disable-nls.
61741         * lib/getopt.c (_): Likewise.
61742         * lib/regex.c (_): Likewise.
61743
61744 2001-10-20  Paul Eggert  <eggert@twinsun.com>
61745
61746         * m4/error.m4 (jm_PREREQ_ERROR):
61747         Do not invoke AC_CHECK_FUNCS with strerror_r, as
61748         AC_FUNC_STRERROR_R does that.
61749         Check for strerror declaration.
61750
61751         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
61752         are supposed to have them these days.
61753         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
61754         Merge changes from latest Autoconf CVS.
61755         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
61756         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
61757         POSIX decided to standardize on the int flavor of strerror_r.
61758
61759 2001-10-20  Paul Eggert  <eggert@twinsun.com>
61760
61761         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
61762         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
61763         Use strerror_r that is only a macro, even if it is not a function.
61764         (strerror): Check for HAVE_DECL_STRERROR before declaring.
61765         (private_strerror): Use prototypes, not old-style function definition.
61766         (print_errno_message): New function.
61767         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
61768         char*-flavored one.
61769         (error_tail, error, error_at_line): Use it.
61770
61771 2001-10-11  Jim Meyering  <meyering@lucent.com>
61772
61773         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
61774         and quote_n (1, ... to avoid clobbering a buffer.
61775
61776 2001-10-05  Jim Meyering  <meyering@lucent.com>
61777
61778         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
61779         hash-pjw.h.
61780         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
61781         * lib/hash-pjw.h: New file.
61782
61783 2001-09-30  Jim Meyering  <meyering@lucent.com>
61784
61785         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
61786         `struct fsstat' has the `f_fstypename' member.
61787         Use that to define FS_TYPE, which is now used to make
61788         the getfsstat link test tighter.
61789
61790 2001-09-30  Jim Meyering  <meyering@lucent.com>
61791
61792         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
61793         Include <sys/ucred.h>, for Apple Darwin.
61794         Include sys/mount.h and sys/fs_types.h only if available.
61795         (FS_TYPE): Define.
61796         (read_filesystem_list): Use FS_TYPE.
61797
61798 2001-09-29  Paul Eggert  <eggert@twinsun.com>
61799
61800         * lib/exclude.c (excluded_filename): 0 -> false, since it's
61801         a boolean context.
61802
61803 2001-09-29  Jim Meyering  <meyering@lucent.com>
61804
61805         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
61806         [one-argument getmntent function]): Include stdio.h before mntent.h.
61807         SunOS 4.1.x needs it for the declaration of `FILE'.
61808         Patch by Volker Borchert.
61809
61810         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
61811         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
61812         sys/fs_types.h, and make the link-test for getfsstat guard #include
61813         directives with appropriate #if HAVE_*_H tests so that we can
61814         detect getfsstat on Apple Darwin1.3.7 systems.
61815         Reported by Nelson Beebe.
61816         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
61817
61818 2001-09-28  Paul Eggert  <eggert@twinsun.com>
61819
61820         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
61821         #defines strtoimax.  Also treat the other strto* functions
61822         like strtoimax.
61823
61824         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
61825         Check for strtoul and strtoumax,
61826         as those declarations are made even in the signed case.
61827         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
61828         Likewise, for strtol and strtoimax.
61829
61830 2001-09-28  Paul Eggert  <eggert@twinsun.com>
61831
61832         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
61833         #defines strtoimax.  Also treat the other strto* functions
61834         like strtoimax.
61835
61836         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
61837         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
61838         (strtoimax, strtoumax): Do not declare if already defined as a macro.
61839
61840 2001-09-26  Jim Meyering  <meyering@lucent.com>
61841
61842         Most macros in unlocked-io.h had the wrong number of arguments.
61843         * lib/gen-uio: New script.
61844         (USE_UNLOCKED_IO): Define to 1 if not already defined.
61845         * lib/unlocked-io.hin: Remove file.
61846         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
61847         rather than trying to embed it here.
61848         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
61849         Reported by Padraig Brady.
61850
61851 2001-09-25  Volker Borchert  <bt@teknon.de>
61852
61853         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
61854         `result'.
61855
61856 2001-09-24  Jim Meyering  <meyering@lucent.com>
61857
61858         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
61859
61860 2001-09-23  Jim Meyering  <meyering@lucent.com>
61861
61862         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
61863         instead of the mere test for existence of mntent.h.  The latter
61864         would get a false-positive on AIX 3.4 systems.
61865         In the outer getmntent if-block, don't die if neither of the getmntent
61866         tests succeeds.  Instead, just fall through and continue with the
61867         remaining tests.
61868
61869 2001-09-23  Jim Meyering  <meyering@lucent.com>
61870
61871         * lib/mountlist.c: Remove useless parentheses in #if directives.
61872         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
61873         the deprecated MOUNTED symbol is no longer defined in mntent.h.
61874
61875 2001-09-22  Jim Meyering  <meyering@lucent.com>
61876
61877         * m4/gettext.m4: New file.  From gettext.
61878         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
61879         * m4/progtest.m4: Likewise
61880         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
61881         * m4/glibc21.m4: Likewise.
61882
61883         * m4/libintl.m4: Remove.  No longer used.
61884
61885 2001-09-22  Jim Meyering  <meyering@lucent.com>
61886
61887         * lib/localcharset.c: Update from latest gettext.
61888         * lib/config.charset: Likewise.
61889
61890 2001-09-20  Jim Meyering  <meyering@lucent.com>
61891
61892         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
61893         strtoimax.
61894         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
61895         strtoumax.
61896
61897 2001-09-20  Jim Meyering  <meyering@lucent.com>
61898
61899         * lib/xstrtol.c (strtoimax): Guard declaration with
61900         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
61901         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
61902         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
61903         (strtoumax): Likewise, for completeness (it wasn't necessary).
61904
61905 2001-09-17  Paul Eggert  <eggert@twinsun.com>
61906
61907         * lib/strtoimax.c (HAVE_LONG_LONG):
61908         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
61909         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
61910         to work around bug in IBM C compiler.
61911
61912 2001-09-17  Jim Meyering  <meyering@lucent.com>
61913
61914         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
61915         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
61916         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
61917         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
61918         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
61919         whenever the right hand side need not be expanded by the shell.
61920
61921 2001-09-16  Paul Eggert  <eggert@twinsun.com>
61922
61923         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
61924         library.  It's not correct, as some older glibcs are buggy.
61925         fnmatch wasn't fixed until glibc 2.2.
61926
61927         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
61928         special shell magic here.
61929
61930 2001-09-16  Jim Meyering  <meyering@lucent.com>
61931
61932         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
61933         * m4/jm-macros.m4: Require it.
61934
61935 2001-09-16  Jim Meyering  <meyering@lucent.com>
61936
61937         * lib/mkdir.c: New file.
61938
61939 2001-09-15  Jim Meyering  <meyering@lucent.com>
61940
61941         * m4/jm-macros.m4: Check for help2man.
61942
61943 2001-09-11  Jim Meyering  <meyering@lucent.com>
61944
61945         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
61946         The body, by Paul Eggert, was moved here from configure.in.
61947         * m4/jm-macros.m4: Require UTILS_HOST_OS.
61948
61949 2001-09-04  Paul Eggert  <eggert@twinsun.com>
61950
61951         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
61952         (jm_PREREQ): Use it.
61953
61954 2001-09-04  Paul Eggert  <eggert@twinsun.com>
61955
61956         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
61957         Use ssize_t, not int, to store result of readlink.
61958         Check for ssize_t overflow as well as size_t overflow,
61959         as POSIX says the result of readlink is implementation-defined
61960         when ssize_t overflows.
61961         Remove unnecessary cast to char*.
61962         Use free+malloc instead of realloc, as the storage doesn't need
61963         to be preserved and it's clearer and can be more efficient that way.
61964         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
61965         * lib/xreadlink.h (xreadlink): Update prototype.
61966
61967 2001-09-04  Paul Eggert  <eggert@twinsun.com>
61968
61969         * lib/xgetcwd.c: Revert some of the previous change; intead,
61970         fix the HAVE_GETCWD_NULL code to behave more like the
61971         !HAVE_GETCWD_NULL code used to.
61972
61973         Include "xalloc.h".
61974         (xgetcwd): Do not return NULL when memory is exhausted; instead,
61975         invoke xalloc_die.
61976
61977 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61978
61979         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
61980         sys/param.h, as pathmax.h includes them.
61981
61982 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61983
61984         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
61985         (jm_PREREQ_XGETCWD): New macro.
61986
61987         * m4/getcwd.m4: New file.
61988
61989 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61990
61991         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
61992         like the HAVE_GETCWD_NULL code.
61993         Include pathmax.h if not HAVE_GETCWD.
61994         Do not include xalloc.h.
61995         (INITIAL_BUFFER_SIZE): New symbol.
61996         Do not use xmalloc / xrealloc, since the caller is responsible for
61997         handling errors.  Preserve errno around `free' during failure.
61998         Do not overrun buffer when using getwd.
61999
62000 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62001
62002         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
62003         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
62004         getcwd (NULL, 0).
62005
62006 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62007
62008         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
62009         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
62010         spotted by Jim Meyering.
62011
62012 2001-09-03  Jim Meyering  <meyering@lucent.com>
62013
62014         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
62015         failure.
62016
62017 2001-09-02  Jim Meyering  <meyering@lucent.com>
62018
62019         * lib/error.c: Update from GNU libc.
62020
62021 2001-09-01  Jim Meyering  <meyering@lucent.com>
62022
62023         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
62024         Used by df.
62025
62026 2001-09-01  Jim Meyering  <meyering@lucent.com>
62027
62028         * lib/xreadlink.c: New file.
62029         * lib/xreadlink.h: New file.
62030         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
62031         xreadlink.h.
62032
62033         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
62034         doesn't conflict with sparc Solaris 7's definition in
62035         /usr/include/sys/int_types.h.
62036
62037         * lib/exclude.c: Use `""', not `<>' to #include non-system header
62038         files.
62039         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
62040         and strncasecmp as r-values.  Unixware didn't have declarations.
62041
62042 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62043
62044         * lib/xstrtol.h: Add copyright notice.
62045         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
62046         LONGINT_INVALID_SUFFIX_CHAR.
62047
62048 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62049
62050         * lib/xstrtol.c (strtoimax): New decl.
62051
62052 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62053
62054         * lib/xgetcwd.c: Don't include pathmax.h.
62055         Include stdlib.h and unistd.h if available.
62056         Include xalloc.h.
62057         (xmalloc, xstrdup, free): Remove decls.
62058         (xgetcwd): Don't assume sizes fit in unsigned.
62059         Check for overflow when computing sizes.
62060         Simplify reallocation code.
62061
62062 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62063
62064         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
62065         a directory's st_size can have an arbitrary value, so the old
62066         usage could waste an arbitrary amount of memory.  All uses
62067         changed.
62068         * lib/savedir.h: Update prototype.
62069
62070 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62071
62072         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
62073
62074         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
62075         old strtoimax.c.
62076
62077         Also, make the following further changes to make this file's
62078         configuration more similar to that of strtol.c:
62079         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
62080         (strtoumax, uintmax_t, strtoull, strtol): Remove.
62081         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
62082         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
62083         changed to signed values.
62084
62085         And make the following changes as well:
62086         Fix copyright notice, as 1999 was missing.
62087         (verify): New macro.
62088         (strtoimax): Check sizes at compile-time, not run-time.
62089         Prefer strtol to strtoll if both work.
62090         (main): Remove; it was not that useful and was a pain to maintain.
62091
62092         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
62093
62094 2001-08-31  Jim Meyering  <meyering@lucent.com>
62095
62096         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
62097         Use an initial, malloc'd, buffer of length 128 rather than
62098         a statically allocated one of length 1024.
62099
62100 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62101
62102         Simplify code, partly by assuming autoconf 2.52 semantics.
62103
62104         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
62105
62106         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
62107         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
62108         All uses removed.
62109         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
62110         Move AC_REQUIRE to next-to-top level, to avoid confusion.
62111         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
62112         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
62113         jm_AC_HEADER_INTTYPES_H.
62114         * m4/jm-macros.m4 (jm_MACROS): Likewise.
62115
62116         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
62117
62118         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
62119         Quote first arg of AC_DEFUN.
62120         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
62121         since they are needed to parse the include file even if we need
62122         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
62123         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
62124         but with opposite signedness.
62125
62126 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62127
62128         Merge 'exclude' changes from tar 1.13.22.
62129         This fixes one or two unlikely storage allocation overflow bugs,
62130         but doesn't change user-visible behavior otherwise.
62131
62132 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62133
62134         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
62135         (jm_PREREQ_EXCLUDE): New macro.
62136
62137 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62138
62139         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
62140         tm to be declared.
62141
62142 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62143
62144         * lib/hash.c: Remove '2001' from copyright notice.
62145
62146 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62147
62148         * lib/full-write.h: New file.
62149         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
62150         * lib/full-write.c: Correct credits, as cccp.c no longer
62151         exists and anyway it was so heavily changed from the old cccp
62152         code as to be unrecognizable.  Include full-write.h.
62153         (full_write) Return size_t, with short writes meaning failure.
62154         All callers changed.  This fixes a bug with large buffers
62155         on 64-bit hosts.
62156         * lib/utime.c: Include full-write.h.
62157
62158 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62159
62160         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
62161         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
62162         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
62163         Include if available.
62164         (<xalloc.h>): Include
62165         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
62166         (verify): New macro.  Use it to verify that EXCLUDE macros do not
62167         collide with FNM macros.
62168         (struct patopts): New struct.
62169         (struct exclude): Use it, as exclude patterns now come with options.
62170         (new_exclude): Support above changes.
62171         (new_exclude, add_exclude_file):
62172         Initial size must now be a power of two to simplify overflow checking.
62173         (free_exclude, fnmatch_no_wildcards): New function.
62174         (excluded_filename): No longer requires options arg, as the options
62175         are determined by add_exclude.  Now returns bool, not int.
62176         (excluded_filename, add_exclude):
62177         Add support for the fancy new exclusion options.
62178         (add_exclude, add_exclude_file): Now takes int options arg.
62179         Check for arithmetic overflow when computing sizes.
62180         (add_exclude_file): xrealloc might modify errno, so don't
62181         realloc until after errno might be used.
62182
62183         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
62184         New macros.
62185         (free_exclude): New decl.
62186         (add_exclude, add_exclude_file): Now takes int options arg.
62187         (excluded_filename): No longer requires options arg, as the options
62188         are determined by add_exclude.  Now returns bool, not int.
62189
62190 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62191
62192         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
62193
62194 2001-08-27  Jim Meyering  <meyering@lucent.com>
62195
62196         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
62197
62198         * lib/version-etc.c (N_): Remove definition.
62199         Revert most of last change.
62200         Instead, simply don't mark the `Copyright...' string for translation.
62201         Based on advice from Paul Eggert.
62202
62203         * lib/strtoxmax.c: Tweak comment.
62204
62205 2001-08-26  Jim Meyering  <meyering@lucent.com>
62206
62207         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
62208
62209         * m4/xstrtoimax.m4: New file.
62210         * m4/xstrtoumax.m4: Add comments explaining why we
62211         AC_REPLACE_FUNCS(strtol).
62212
62213 2001-08-26  Jim Meyering  <meyering@lucent.com>
62214
62215         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
62216         of copyright with `%s' so translators don't get an untranslated
62217         message in 2002.
62218         (COPYRIGHT_YEAR): Define.
62219         (version_etc): Use fprintf rather than fputs.
62220         Suggestion from Ulrich Drepper.
62221
62222         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
62223
62224         * lib/strtoll.c: New file, from GNU libc.
62225         * lib/xstrtoimax.c: New file.
62226
62227         * lib/xstrtol.h: Add xstrtoimax.
62228         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
62229         * lib/strtoimax.c: New file.  Likewise, but first define
62230         STRTOUXMAX_SIGNED.
62231
62232         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
62233         ...
62234         * lib/strtoxmax.c: ... then renamed to this.
62235
62236 2001-08-18  Paul Eggert  <eggert@twinsun.com>
62237
62238         * m4/inttypes.m4: Add AC_PREREQ(2.13).
62239         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
62240         (jm_AC_TYPE_INTMAX_T): New macro.
62241         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
62242
62243         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
62244
62245         * m4/longlong.m4: Renamed from ulonglong.m4.
62246         * m4/inttypes.m4: Renamed from inttypes_h.m4.
62247         * m4/uintmax_t.m4: Removed.
62248
62249 2001-08-13  Paul Eggert  <eggert@twinsun.com>
62250
62251         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
62252         Port to Solaris 8, where 'sed' requires a space after the 'r'
62253         command, and where sh dislikes "$/".  Clean up the spacing a bit.
62254         Redirect output to $tmp just once.
62255
62256 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
62257
62258         * lib/addext.c (<errno.h>): Include.
62259         (errno): Declare if not defined.
62260         (addext): Work correctly when pathconf returns -1 and leaves
62261         errno alone because there is no limit.  Also, work even if
62262         pathconf returns a value greater than SIZE_MAX.
62263
62264 2001-08-12  Jim Meyering  <meyering@lucent.com>
62265
62266         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
62267         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
62268         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
62269         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
62270         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
62271         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
62272         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
62273         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
62274         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
62275         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
62276         utime.m4, utimes.m4, xstrtoumax.m4:
62277         Quote the first argument in each use of AC_DEFUN.
62278
62279 2001-08-12  Jim Meyering  <meyering@lucent.com>
62280
62281         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
62282         Simply `return getcwd (NULL, 0);'.
62283         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
62284         Use 1300 as initial value for length, not PATH_MAX.
62285
62286         * lib/pathmax.h: Clean up cpp syntax.
62287
62288 2001-08-12  Jim Meyering  <meyering@lucent.com>
62289
62290         * lib/gettimeofday.c: New file.
62291         * lib/gtod.h: New file.
62292         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
62293
62294 2001-08-05  Jim Meyering  <meyering@lucent.com>
62295
62296         * m4/jm-macros.m4: Require autoconf-2.52.
62297
62298 2001-08-04  Jim Meyering  <meyering@lucent.com>
62299
62300         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
62301         stmt, to get in sync with glibc.
62302
62303 2001-08-03  Paul Eggert  <eggert@twinsun.com>
62304
62305         The following changes are from gettext 0.10.39 as maintained by
62306         Bruno Haible.
62307
62308         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
62309         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
62310         with inverted sense.  All uses changed.
62311
62312         * lib/mbswidth.c: Don't include <limits.h>.
62313         Include <stdlib.h> and <string.h> unconditionally.
62314         (iswcntrl, mbsinit, ISCNTRL): New macros.
62315         (mbsnwidth): Use K&R style function declarations.
62316         Don't bother checking for MB_LEN_MAX == 1, since the compiler
62317         can optimize it when MB_CUR_MAX == 1.
62318         The width of control characters is zero, not 1.
62319
62320 2001-08-03  Paul Eggert  <eggert@twinsun.com>
62321
62322         The following changes are from gettext 0.10.39 as maintained by
62323         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
62324
62325         * m4/codeset.m4: Upgrade to serial AM1.
62326         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
62327         all uses changed.  Quote first arg of AC_DEFUN.
62328         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
62329
62330         * m4/iconv.m4: Upgrade to serial AM2.
62331         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
62332         Add --with-libconv-prefix.
62333         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
62334         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
62335         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
62336         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
62337         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
62338
62339         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
62340         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
62341         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
62342         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
62343         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
62344         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
62345         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
62346         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
62347         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
62348
62349         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
62350         string.h any more.
62351
62352         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
62353         not the default value.
62354
62355         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
62356         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
62357         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
62358         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
62359         Also check for iswcntrl, used for wcwidth fallback.
62360         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
62361         to Autoconf 2.13.
62362
62363 2001-08-03  Jim Meyering  <meyering@lucent.com>
62364
62365         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
62366         as it was in the original.  Reported by Paul Eggert.
62367
62368 2001-07-16  Jim Meyering  <meyering@lucent.com>
62369
62370         * m4/gettimeofday.m4: New file.
62371         Prompted by a report from Bernhard Baehr.
62372
62373 2001-07-15  Jim Meyering  <meyering@lucent.com>
62374
62375         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
62376         stuff. Now it's in ../Makefile.cfg.
62377
62378 2001-07-15  Jim Meyering  <meyering@lucent.com>
62379
62380         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
62381         (BUILT_SOURCES): Add unlocked-io.h.
62382         (io_functions): Define.
62383         (unlocked-io.h): New rule.
62384         (DISTCLEANFILES): Add unlocked-io.h.
62385         (all-local): Depend on unlocked-io.h, to ensure it is created.
62386
62387         * lib/unlocked-io.hin: New file
62388
62389         * lib/regex.c: Update from glibc.
62390
62391 2001-07-05  Jim Meyering  <meyering@lucent.com>
62392
62393         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
62394         recommendation.
62395         (libfetish_a_SOURCES): Put all .h files here instead.
62396         Remove a thus-exposed (better checks in automake) duplicate and
62397         two unnecessary .h files.
62398
62399 2001-07-04  Jim Meyering  <meyering@lucent.com>
62400
62401         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
62402         that generates jm-glibc-io.m4 so that it doesn't trigger any make
62403         distcheck failure.
62404
62405 2001-07-02  Jim Meyering  <meyering@lucent.com>
62406
62407         The following changes were prompted by suggestions from Bruno Haible.
62408
62409         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
62410         is now generated.
62411         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
62412         definition of EXTRA_DIST.
62413         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
62414         ensure that the generated file is created/updated whenever the list
62415         of $(unlocked_functions) is changed.
62416         (jm-glibc-io.m4): New rule.
62417         (unlocked-io.h): New rule -- currently unused.
62418
62419 2001-06-24  Jim Meyering  <meyering@lucent.com>
62420
62421         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
62422         unmatched right bracket, rather than kludging it with an extra,
62423         falsely-matching quote in a comment.  Patch by Akim Demaille.
62424
62425 2001-06-11  Jim Meyering  <meyering@lucent.com>
62426
62427         * lib/regex.c: Update from GNU libc.
62428
62429 2001-05-27  Jim Meyering  <meyering@lucent.com>
62430
62431         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
62432         Check for ut_type in struct utmp.
62433
62434 2001-05-27  Jim Meyering  <meyering@lucent.com>
62435
62436         * lib/readutmp.h (UT_TYPE): Define.
62437
62438 2001-05-24  Jim Meyering  <meyering@lucent.com>
62439
62440         * lib/argmatch.c: Include "quote.h".
62441         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
62442         quote function.  Reported by Göran Uddeborg.
62443
62444 2001-05-22  Jim Meyering  <meyering@lucent.com>
62445
62446         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
62447         now that we use the package-supplied version unconditionally.
62448         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
62449
62450 2001-05-21  Jim Meyering  <meyering@lucent.com>
62451
62452         * m4/regex.m4: Change a couple backticks to single quotes to avoid
62453         shell syntax errors.
62454
62455 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
62456
62457         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
62458
62459 2001-05-20  Paul Eggert  <eggert@twinsun.com>
62460
62461         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
62462         Don't bother to check library strftime, since
62463         we'll be using our own my_strftime function anyway.
62464         Define my_strftime instead of strftime.
62465
62466 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
62467
62468         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
62469         which is not yet declared.
62470
62471 2001-05-15  Jim Meyering  <meyering@lucent.com>
62472
62473         * m4/regex.m4: Use proper quoting so brackets appear in the test
62474         program.
62475         Reported by, and with help from, Bruno Haible.
62476
62477 2001-05-13  Jim Meyering  <meyering@lucent.com>
62478
62479         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
62480         undefined.
62481
62482 2001-05-11  Paul Eggert  <eggert@twinsun.com>
62483
62484         dirname code cleanup.  base_name now behaves more compatibly
62485         with POSIX basename when given file names that have trailing
62486         slashes, and similarly for dir_name.  Add new primitives
62487         base_len and dir_len.  Put the directory-name-related decls
62488         into dirname.h.
62489
62490         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
62491         * lib/backupfile.c (base_name): Likewise.
62492         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
62493         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
62494         * lib/makepath.c (strip_trailing_slashes): Likewise.
62495         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
62496         ISSLASH): Likewise.
62497         * lib/rename.c (strip_trailing_slashes): Likewise.
62498         * lib/same.c (base_name): Likewise.
62499         * lib/stripslash.c (ISSLASH): Likewise.
62500
62501         * lib/addext.c: Include <dirname.h> after size_t is defined.
62502         * lib/backupfile.c: Likewise.
62503
62504         * lib/addext.c (addext): Use base_len to trim redundant
62505         trailing slashes instead of doing it ourselves.
62506         But do not trim the last slash if it is not redundant.
62507
62508         * lib/backupfile.c (find_backup_file_name,
62509         max_backup_version): Use base_len instead of rolling it ourselves.
62510         Handle the case of "" and (on DOS) "C:" correctly.
62511
62512         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
62513         needed. Include <string.h>, <dirname.h>.
62514         (base_name): Allow file names ending in slashes, other than names
62515         that are all slashes.  In this case, return the basename followed
62516         by the slashes.  This is more general, and can be used in places
62517         where the original base_name purposely had an assertion failure.
62518         (base_len): New function.
62519
62520         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
62521         Do not include <assert.h>; no longer needed.
62522         Include xalloc.h.
62523         (memrchr): Remove decl.
62524         (dir_name_r): Remove.
62525         (dir_len): Renamed from dirlen.  All callers changed.
62526         Rewrite in terms of base_name, for simplicity and consistency.
62527         (dir_name): Never return NULL.  All callers changed.
62528         Do not include <stdlib.h> in test program; no longer needed.
62529         return 0; is fine for test program.
62530
62531         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
62532         New macros.
62533         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
62534
62535         * lib/path-concat.c (path_concat): Use base_len to compute
62536         base length, not strlen; this means we cannot rely on memcpy
62537         to null-terminate.
62538
62539         * lib/same.c (STREQ): Remove.
62540         (same_name): Handle the case where the basename ends in trailing '/'.
62541
62542         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
62543         a slash was stripped.  Do not strip the last slash after a
62544         file system prefix.
62545
62546 2001-05-11  Paul Eggert  <eggert@twinsun.com>
62547
62548         * lib/Makefile.am (libfetish_a_SOURCES):
62549         Add strftime.c, since we now compile it on all hosts.
62550
62551         * lib/strftime.c (my_strftime):
62552         Define to nstrftime if emacs, but only if my_strftime is not defined.
62553         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
62554         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
62555         Add one more extra argument: a nanoseconds value.
62556         All uses changed.
62557         (ns): New macro.
62558         (my_strftime function): Add %N format.
62559         (emacs_strftimeu): Renamed from emacs_strftime,
62560         with extra ut argument.
62561
62562 2001-05-09  Paul Eggert  <eggert@twinsun.com>
62563
62564         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
62565
62566 2001-04-21  Jim Meyering  <meyering@lucent.com>
62567
62568         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
62569         doesn't interfere.
62570
62571 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
62572
62573         * m4/ftruncate.m4: Check for chsize.
62574         Link with ftruncate.o unconditionally if ftruncate is missing.
62575         This was required when cross-compiling to i586-mingw32msvc.
62576
62577 2001-04-08  Jim Meyering  <meyering@lucent.com>
62578
62579         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
62580         recomputed; that's necessary when the offset spans a DST transition.
62581         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
62582
62583 2001-04-02  Jim Meyering  <meyering@lucent.com>
62584
62585         * lib/regex.h, regex.c: Update from GNU libc.
62586
62587 2001-03-24  Jim Meyering  <meyering@lucent.com>
62588
62589         * m4/jm-macros.m4: Require autoconf-2.49d.
62590
62591 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
62592
62593         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
62594
62595 2001-03-19  Paul Eggert  <eggert@twinsun.com>
62596
62597         * lib/version-etc.c (version_etc_copyright): Update to 2001.
62598
62599 2001-03-17  Jim Meyering  <meyering@lucent.com>
62600
62601         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
62602         now that the version in autoconf is equivalent.
62603         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
62604
62605         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
62606         Suggestion from Akim Demaille.
62607
62608         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
62609         (jm_PREREQ_TEMPNAME): New function.
62610
62611 2001-03-16  Paul Eggert  <eggert@twinsun.com>
62612
62613         * lib/tempname.c (uint64_t): Define to uintmax_t if
62614         not defined, and if UINT64_MAX is not defined.
62615         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
62616         Reported by John David Anglin.
62617
62618 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
62619
62620         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
62621         resolve alias if codeset is empty.
62622         * lib/config.charset (BeOS): Use wildcard syntax.
62623
62624 2001-03-13  Jim Meyering  <meyering@lucent.com>
62625
62626         * lib/path-concat.c (path_concat)
62627         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
62628         concatenating e.g., `C:' and `foo'.
62629         From Bruno Haible.
62630
62631 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
62632
62633         * lib/localcharset.c (locale_charset): Don't use
62634         setlocale(LC_CTYPE,NULL). Don't return NULL.
62635         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
62636
62637 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
62638
62639         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
62640         support for DOS/DJGPP.
62641
62642 2001-03-01  Paul Eggert  <eggert@twinsun.com>
62643
62644         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
62645         lacks mkstemp.  Compile our own tempname.c if we compile our own
62646         mkstemp.c, as mkstemp relies on tempname.
62647
62648 2001-03-01  Jim Meyering  <meyering@lucent.com>
62649
62650         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
62651         AH_VERBATIM really does output its argument verbatim.
62652
62653 2001-02-28  Paul Eggert  <eggert@twinsun.com>
62654
62655         * lib/Makefile.am (libfetish_a_SOURCES):
62656         Add dup-safer.c, fopen-safer.c.
62657         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
62658
62659         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
62660         * lib/unistd-safer.h: New files.
62661
62662 2001-02-25  Paul Eggert  <eggert@twinsun.com>
62663
62664         The mkstemp replacement is taken from glibc 2.2.2, with some
62665         portability fixes for use outside glibc, as follows:
62666
62667         * lib/tempname.c (struct_stat64): New macro.
62668         (direxists, __gen_tempname): Use it.
62669         This avoids a portability problem with Solaris 8.
62670
62671         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
62672         (<stddef.h>, <stdint.h>, <string.h>):
62673         Include only if STDC_HEADERS || _LIBC.
62674         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
62675         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
62676         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
62677         (__set_errno): Define this macro if <errno.h> doesn't.
62678         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
62679         Define these macros if <stdio.h> doesn't.
62680         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
62681         Define these macros if <sys/stat.h>
62682         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
62683         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
62684         __xstat64): Define if not _LIBC.
62685         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
62686         (__gen_tempname): Invoke gettimeofday only if
62687         HAVE_GETTIMEOFDAY || _LIBC;
62688         otherwise, fall back on plain "time".
62689         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
62690
62691         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
62692
62693         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
62694
62695 2001-02-18  Paul Eggert  <eggert@twinsun.com>
62696
62697         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
62698
62699 2001-02-17  Paul Eggert  <eggert@twinsun.com>
62700
62701         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
62702         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
62703         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
62704         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
62705
62706 2001-02-17  Paul Eggert  <eggert@twinsun.com>
62707
62708         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
62709         Remove workaround macros for hosts that have mbrtowc but not
62710         mbstate_t, as we now insist on proper declarations for both
62711         before using mbrtowc.
62712
62713 2001-02-17  Jim Meyering  <meyering@lucent.com>
62714
62715         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
62716         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
62717         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
62718         UnixWare 7.1.1.
62719
62720         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
62721         rather than AC_CACHE_VAL.
62722
62723 2001-02-17  Jim Meyering  <meyering@lucent.com>
62724
62725         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
62726         around included file name.
62727
62728         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
62729
62730         * lib/strftime.c: Update from GNU libc (the only changes were to
62731         comments).
62732
62733 2001-02-17  Jim Meyering  <meyering@lucent.com>
62734
62735         * lib/regex.c: Update from libc.
62736
62737 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
62738
62739         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
62740         clash.
62741
62742 2001-02-16  Paul Eggert  <eggert@twinsun.com>
62743
62744         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
62745         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
62746         Reported by Mark Hounschell via Paul Eggert.
62747
62748 2001-02-07  Jim Meyering  <meyering@lucent.com>
62749
62750         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
62751
62752 2001-02-05  Jim Meyering  <meyering@lucent.com>
62753
62754         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
62755         it includes the patch required for `large file' support with at least
62756         HP-UX's 10.20 /bin/cc.
62757
62758 2001-02-03  Jim Meyering  <meyering@lucent.com>
62759
62760         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
62761         AS_IF, now that it works once again (mysteriously).
62762         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
62763
62764 2001-01-30  Jim Meyering  <meyering@lucent.com>
62765
62766         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
62767         * m4/chown.m4: Rename conftestchown to conftest.chown.
62768         * m4/rename.m4: s/conftestdir/conftest.d1/ and
62769         s/conftestdir2/conftest.d2/.
62770         * m4/utimes.m4: s/conftestdata/conftest.data/
62771         Inspired by Pavel Roskin's change in autoconf.
62772
62773 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
62774
62775         * lib/config.charset: Update for FreeBSD 4.2.
62776
62777 2001-01-27  Jim Meyering  <meyering@lucent.com>
62778
62779         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
62780         a use of AS_IF.
62781         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
62782
62783 2001-01-26  Jim Meyering  <meyering@lucent.com>
62784
62785         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
62786         quotearg.c includes it.
62787
62788 2001-01-26  Jim Meyering  <meyering@lucent.com>
62789
62790         * lib/quotearg.c: Include stddef.h.
62791         * lib/quote.c: Include stddef.h.
62792         Reported by Axel Kittenberger.
62793
62794         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
62795         line in double quotes so that it evokes a better diagnostic.
62796         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
62797         Reported by Axel Kittenberger.
62798
62799 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
62800
62801         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
62802         as if it was a `charset'.
62803
62804 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
62805
62806         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
62807         has const.
62808
62809 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
62810
62811         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
62812         to avoid a warning.  Add back 'const' to inptr.
62813
62814 2001-01-20  Jim Meyering  <meyering@lucent.com>
62815
62816         Be sure that headers are checked before used in code compiled
62817         for the type checks.
62818         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
62819         In place of that, invoke jm_CHECK_ALL_TYPES.
62820         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
62821         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
62822         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
62823         The check for ssize_t was mistakenly run before the test for unistd.h.
62824
62825         The configure-time check for stdbool.h was missing.
62826         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
62827         (jm_PREREQ_HASH): New function.
62828
62829 2001-01-17  Jim Meyering  <meyering@lucent.com>
62830
62831         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
62832         for autoconf-2.49c.
62833         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
62834
62835 2001-01-16  Jim Meyering  <meyering@lucent.com>
62836
62837         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
62838         From Bruno Haible.
62839
62840 2001-01-14  Jim Meyering  <meyering@lucent.com>
62841
62842         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
62843         foo and bar.  Create conftestdir/ in the script, not in the C code.
62844         Remove directories in the script, not in the C code.
62845         Remove conftestdir{,2} before trying to create the directory.
62846         Make the entire configure script fail if the mkdir fails.
62847
62848 2001-01-14  Jim Meyering  <meyering@lucent.com>
62849
62850         * lib/rename.c: New file.  From Volker Borchert.
62851         Include stdlib.h, string.h or strings.h, and xalloc.h.
62852         Use strip_trailing_slashes rather than open-coding it.
62853
62854 2001-01-03  Paul Eggert  <eggert@twinsun.com>
62855
62856         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
62857
62858 2001-01-03  Jim Meyering  <meyering@lucent.com>
62859
62860         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
62861         of local `inptr' to avoid warning with some system declarations of
62862         iconv.
62863
62864 2001-01-02  Volker Borchert  <bt@teknon.de>
62865
62866         * m4/rename.m4: New file.
62867         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
62868
62869 2001-01-01  Jim Meyering  <meyering@lucent.com>
62870
62871         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
62872         even on systems with utmpx.h.  It's necessary for the declaration of
62873         utmp's ut_user member.  Reported by Andreas Jaeger.
62874
62875         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
62876         available. They are required for the declarations of getgrgid and
62877         getpwuid resp.
62878         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
62879         Reported by Andreas Jaeger.
62880
62881 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
62882
62883         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
62884         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
62885         so `make install' also works in VPATH builds.
62886
62887 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
62888
62889         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
62890         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
62891         can be used in subdirectories.
62892
62893 2000-12-29  Paul Eggert  <eggert@twinsun.com>
62894
62895         * lib/modechange.c: Do not assume that mode_t uses the
62896         traditional octal encoding.  E.g. "chmod 1 FOO" should set
62897         the other-execute bit of FOO even if S_IXOTH != 1.
62898
62899         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
62900         WOTH, XOTH, ALLM): New macros.
62901         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
62902          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
62903         Use them.
62904         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
62905         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
62906         (mode_compile):
62907         No need to use uintmax_t; unsigned long is long enough.
62908         Don't bother to get suffix since we don't use it.
62909
62910 2000-12-26  Jim Meyering  <meyering@lucent.com>
62911
62912         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
62913         better with autoheader.
62914
62915 2000-12-24  Jim Meyering  <meyering@lucent.com>
62916
62917         * lib/hash.c (is_prime): Return explicit boolean values.
62918         (hash_get_first): Return NULL to appease Irix5.6's 89.
62919         Reported by Nelson Beebe.
62920
62921 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
62922
62923         * lib/localcharset.c (locale_charset): Add support for Win32.
62924
62925 2000-12-18  Paul Eggert  <eggert@twinsun.com>
62926
62927         * lib/physmem.h, lib/physmem.c: New files.
62928
62929         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
62930         (noinst_HEADERS): Add physmem.h.
62931
62932         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
62933         't' for compatibility with Solaris 8 sort.
62934
62935 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
62936
62937         * lib/config.charset: Add support for BeOS.
62938
62939 2000-12-17  Jim Meyering  <meyering@lucent.com>
62940
62941         * m4/dos.m4 (jm_AC_DOS): New file and macro.
62942         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
62943
62944 2000-12-16  Jim Meyering  <meyering@lucent.com>
62945
62946         This bug had a serious impact on chown: `chown N:M FILE' (for integer
62947         N and M) would have treated it like `chown N:N FILE'.
62948
62949         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
62950
62951 2000-12-16  Jim Meyering  <meyering@lucent.com>
62952
62953         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
62954         SHELLS_FILE to a file name that's useful on djgpp systems.
62955         Include stdlib.h.
62956         (ADDITIONAL_DEFAULT_SHELLS): Define.
62957         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
62958         Based mostly on a patch from Prashant TR.
62959
62960 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
62961
62962         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
62963         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
62964         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
62965
62966 2000-12-08  Andreas Schwab  <schwab@suse.de>
62967
62968         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
62969         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
62970
62971 2000-12-07  Jim Meyering  <meyering@lucent.com>
62972
62973         * lib/stripslash.c (ISSLASH): Define.
62974         (strip_trailing_slashes): Use ISSLASH rather than comparing against
62975         `/'.
62976         From Prashant TR.
62977
62978         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
62979         (dir_name_r): Declare this function as static.
62980         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
62981         manifest itself on a name containing a mix of slashes and
62982         backslashes.
62983         Make this function work with names starting with a DOS-style
62984         drive letter and colon prefix.
62985         (dir_name): Append `.' if necessary.
62986         Based mostly on patches from Prashant TR and Eli Zaretskii.
62987
62988         * lib/dirname.h (dir_name_r): Remove prototype.
62989
62990 2000-12-06  Paul Eggert  <eggert@twinsun.com>
62991
62992         * m4/off_t-format.m4: Remove this file.
62993         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
62994
62995 2000-12-06  Jim Meyering  <meyering@lucent.com>
62996
62997         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
62998         replacement strtoull, we may well need the replacement strtoul, too.
62999         Check for declarations of strtoul and strtoull.
63000         Check for strtol.  Mainly as a cue to cause automake to include
63001         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
63002         Check for limits.h -- strtol.c needs it.
63003
63004 2000-12-05  Jim Meyering  <meyering@lucent.com>
63005
63006         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
63007
63008 2000-12-04  Jim Meyering  <meyering@lucent.com>
63009
63010         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
63011         Also include memory.h, stdlib.h, unistd.h if appropriate.
63012         Reported by Andreas Jaeger (conflicting declaration of malloc).
63013
63014 2000-12-02  Jim Meyering  <meyering@lucent.com>
63015
63016         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
63017         * m4/jm-macros.m4 (jm_MACROS): require it.
63018
63019 2000-12-02  Jim Meyering  <meyering@lucent.com>
63020
63021         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
63022
63023 2000-12-01  Paul Eggert  <eggert@twinsun.com>
63024
63025         * lib/memrchr.c: Include <config.h> before any system include file.
63026
63027 2000-11-30  Jim Meyering  <meyering@lucent.com>
63028
63029         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
63030
63031 2000-11-30  Jim Meyering  <meyering@lucent.com>
63032
63033         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
63034
63035 2000-11-29  Paul Eggert  <eggert@twinsun.com>
63036
63037         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
63038
63039 2000-11-26  Jim Meyering  <meyering@lucent.com>
63040
63041         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
63042
63043 2000-11-22  Paul Eggert  <eggert@twinsun.com>
63044
63045         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
63046         size of (size_t) -1; it's not portable.
63047
63048 2000-11-17  Jim Meyering  <meyering@lucent.com>
63049
63050         * lib/strstr.c: Update from GNU libc.
63051
63052 2000-11-17  Akim Demaille  <akim@epita.fr>
63053
63054         * lib/obstack.h: Formatting changes.
63055         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
63056         prevent type checking.
63057         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
63058         cast the value to (void *): assigning a `foo *' to a `void *'
63059         variable is valid.
63060         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
63061
63062 2000-11-16  Jim Meyering  <meyering@lucent.com>
63063
63064         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
63065
63066 2000-11-11  Jim Meyering  <meyering@lucent.com>
63067
63068         * lib/error.c: Add a couple #includes, merging from GNU libc version.
63069
63070 2000-11-10  Jim Meyering  <meyering@lucent.com>
63071
63072         * lib/obstack.h: Update from GNU libc.
63073         * lib/obstack.c: Likewise.
63074
63075 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
63076
63077         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
63078
63079 2000-11-06  Paul Eggert  <eggert@twinsun.com>
63080
63081         * lib/getusershell.c (setusershell): Use rewind rather than
63082         fseek/fseeko, to avoid configuration hassles with fseeko.
63083         Don't bother opening SHELLS_FILE if shellstream is NULL;
63084         it's not necessary.
63085
63086 2000-11-05  Jim Meyering  <meyering@lucent.com>
63087
63088         * lib/makepath.h (make_dir): Declare.
63089         * lib/makepath.c (make_dir): Remove `static' attribute.
63090         Tweak a comment.
63091
63092 2000-11-04  Jim Meyering  <meyering@lucent.com>
63093
63094         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
63095
63096 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
63097
63098         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
63099         last one in a bucket, advance to the next bucket.
63100
63101 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
63102
63103         * lib/fnmatch.c: Do not comment out all the code if we are using
63104         the GNU C library, because in some cases we are replacing buggy
63105         code in the GNU C library itself.
63106
63107 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
63108
63109         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
63110         (regex_compile): Catch bogus \(\1\).
63111
63112 2000-10-30  Paul Eggert  <eggert@twinsun.com>
63113
63114         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
63115         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
63116         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
63117
63118 2000-10-30  Paul Eggert  <eggert@twinsun.com>
63119
63120         * lib/error.h, getline.h, modechange.h:
63121         Remove "2000" from Copyright line, as the file hasn't been
63122         changed this year other than in the copyright notice.
63123
63124         * lib/xalloc.h: Add "2000" to Copyright line, as this file
63125         was changed this year.
63126
63127 2000-10-29  Jim Meyering  <meyering@lucent.com>
63128
63129         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
63130         renaming.
63131         * m4/ls-mntd-fs.m4: Likewise
63132
63133 2000-10-29  Jim Meyering  <meyering@lucent.com>
63134
63135         * lib/xstat.in: Fix grammar in comment.
63136
63137 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
63138
63139         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
63140         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
63141         doesn't define __restrict_arr.
63142
63143 2000-10-28  Jim Meyering  <meyering@lucent.com>
63144
63145         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
63146         (jm_PREREQ_MEMCHR): New function.
63147
63148 2000-10-28  Jim Meyering  <meyering@lucent.com>
63149
63150         * lib/memchr.c: Update from libc.
63151         Adjust for portability:
63152         [HAVE_STDLIB_H]: Include stdlib.h.
63153         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
63154         Undef __memchr, too.
63155         [!weak_alias]: Define __memchr to memchr.
63156
63157         * lib/regex.c: Update from libc.
63158         * lib/regex.h: Likewise.
63159         * lib/getopt1.c: Likewise.
63160         * lib/memcmp.c: Likewise.
63161
63162         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
63163         Avoid using fseek, when possible -- it's broken by design.
63164         Patch by Ulrich Drepper.
63165
63166 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
63167
63168         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
63169         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
63170         Giving in to popular pressure to shut up the compiler with casts.
63171
63172 2000-10-26  Jim Meyering  <meyering@lucent.com>
63173
63174         * lib/strftime.c: Update from libc.
63175
63176 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
63177
63178         * regex.c: More `unsigned char' -> `re_char' changes.
63179         Also change several `int' into `re_wchar_t'.
63180         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
63181         (PUSH_FAILURE_POINTER): Don't cast any more.
63182         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
63183         We want GCC to complain, since this piece of code makes
63184         re_match non-reentrant, which *should* be fixed.
63185         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
63186         (EXTEND_BUFFER): Use RETALLOC.
63187         (SET_LIST_BIT): Don't cast.
63188         (re_wchar_t): New type.
63189         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
63190         that those two functions will always properly return.
63191         (IMMEDIATE_QUIT_CHECK): Cast to void.
63192         (analyse_first): Use recursion rather than an explicit stack.
63193         (re_compile_fastmap): Can't fail anymore.
63194         (re_search_2): Don't check re_compile_fastmap for failure.
63195         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
63196         Now also sets the new value (passed in a new argument).
63197         (re_match_2_internal): Use it.
63198         Also, use a new var `reg' of type size_t when looping through regs
63199         rather than reuse the inappropriate `mcnt'.
63200
63201 2000-10-25  Jim Meyering  <meyering@lucent.com>
63202
63203         * lib/obstack.c: Update from libc.
63204
63205 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
63206
63207         * regex.c (regex_compile): Change the way of handling a range from
63208         a char less than 256 to a char not less than 256.
63209
63210 2000-10-24  Andrew Innes  <andrewi@gnu.org>
63211
63212         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
63213         NT-Emacs only.
63214         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
63215         so that re_search functions only quit when callers expect them to.
63216
63217 2000-10-23  Jim Meyering  <meyering@lucent.com>
63218
63219         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
63220         wrong.  That set_locale call must not have any side effects.
63221         From Paul Eggert.
63222
63223 2000-10-22  Jim Meyering  <meyering@lucent.com>
63224
63225         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
63226         [CYCLIC]: Remove now-unused definition.
63227
63228         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
63229         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
63230         Suggestion from Ulrich Drepper.
63231
63232 2000-10-21  Jim Meyering  <meyering@lucent.com>
63233
63234         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
63235         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
63236         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
63237
63238 2000-10-21  Jim Meyering  <meyering@lucent.com>
63239
63240         * lib/dirname.c (memrchr): Declare if necessary.
63241         (dir_name): Remove the restriction that there be no
63242         trailing slashes.  Now, this code skips past them, effectively
63243         ignoring them.
63244         [TEST_DIRNAME] (main): New unit tests.
63245
63246         * lib/memrchr.c: New file from GNU libc.
63247         Undef __memrchr, too.
63248         [!weak_alias]: Define __memrchr to memrchr.
63249         Guard weak_alias use with `#ifdef weak_alias'.
63250
63251 2000-10-21  Jim Meyering  <meyering@lucent.com>
63252
63253         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
63254         (dir_name): Use dir_name_r.
63255         * lib/dirname.h (dir_name_r): Declare it.
63256
63257 2000-10-17  Jim Meyering  <meyering@lucent.com>
63258
63259         * lib/quote.h (PARAMS): Define and use.
63260         Reported by Akim Demaille.
63261
63262         * lib/getopt.c: Update from libc.
63263
63264 2000-10-16  Jim Meyering  <meyering@lucent.com>
63265
63266         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
63267         setlocale.
63268         From Jan Fedak.
63269
63270 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
63271
63272         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
63273
63274 2000-09-25  Jim Meyering  <meyering@lucent.com>
63275
63276         * lib/md5.h (rol): Define (from GnuPG).
63277
63278         * lib/sha.c: Give credit (GnuPG) where due.
63279         (M): Use rol rather than open-coding it.
63280         Add a FIXME comment.
63281
63282 2000-09-21  Jim Meyering  <meyering@lucent.com>
63283
63284         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
63285         Reported by Michael Stone.
63286
63287 2000-09-20  Jim Meyering  <meyering@lucent.com>
63288
63289         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
63290         (noinst_HEADERS): Add sha.h.
63291         Based on code from Scott G. Miller and from GnuPG.
63292
63293 2000-09-18  Jim Meyering  <meyering@lucent.com>
63294
63295         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
63296         LIBS. Otherwise, everyone ends up linking with -lelf for some
63297         configurations.
63298         Reported by Mike Stone.
63299
63300 2000-09-15  Jim Meyering  <meyering@lucent.com>
63301
63302         * lib/regex.c: Update from libc.
63303
63304 2000-09-10  Jim Meyering  <meyering@lucent.com>
63305
63306         * lib/getopt.c (_getopt_internal): Update from glibc.
63307
63308 2000-09-09  Jim Meyering  <meyering@lucent.com>
63309
63310         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
63311         think it should be used as a general replacement for isascii.
63312         * lib/fnmatch.c: Likewise.
63313         * lib/mbswidth.c: Likewise
63314         * lib/regex.c: Likewise.
63315
63316         Don't use atoi.
63317         * lib/userspec.c: Include sys/param.h and limits.h.
63318         Include xstrtol.h.
63319         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
63320         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
63321         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
63322         UID, GID.  Check range.
63323
63324 2000-09-06  Jim Meyering  <meyering@lucent.com>
63325
63326         * lib/getopt.c (_getopt_internal): Update from glibc.
63327
63328 2000-08-30  Jim Meyering  <meyering@lucent.com>
63329
63330         * lib/strftime.c: Merge in changes from GNU libc.
63331
63332 2000-08-26  Jim Meyering  <meyering@lucent.com>
63333
63334         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
63335         * m4/fpending.m4: New file.
63336
63337 2000-08-26  Jim Meyering  <meyering@lucent.com>
63338
63339         * lib/closeout.c: Include "__fpending.h".
63340         (close_stdout_status): Return right away if there's nothing to flush.
63341
63342         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
63343         * lib/__fpending.c: New file.
63344         * lib/__fpending.h: New file.
63345
63346 2000-08-20  Jim Meyering  <meyering@lucent.com>
63347
63348         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
63349         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
63350         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
63351
63352 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
63353
63354         Improve fileutils installation on systems where running
63355         programs (like install) can't be unlinked.
63356         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
63357         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
63358
63359 2000-08-07  Paul Eggert  <eggert@twinsun.com>
63360
63361         Standardize on "memory exhausted" instead of "Memory exhausted"
63362         or "virtual memory exhausted".
63363         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
63364         "virtual memory exhausted".
63365         * lib/same.c (same_name): Invoke xalloc_die instead of printing
63366         our own message.
63367         * lib/userspec.c (parse_user_spec): Likewise.
63368         * lib/bumpalloc.h: comment fix
63369         * lib/same.c, userspec.c: Include xalloc.h.
63370
63371         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
63372         not char *const and pointing to a constant array.
63373         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
63374         (xrealloc): Comment fix.
63375
63376         * lib/userspec.c (parse_user_spec):
63377         Don't translate a message until just before returning,
63378         to avoid unnecessary translation.
63379
63380 2000-08-07  Jim Meyering  <meyering@lucent.com>
63381
63382         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
63383         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
63384         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
63385         getgroups.c, gethostname.c, getopt.h, group-member.c,
63386         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
63387         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
63388         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
63389         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
63390         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
63391         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
63392         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
63393         yesno.c: Back out Copyright date changes for each file with no change
63394         this year.  This eases coordination with other programs using the same
63395         source code modules.  From Paul Eggert.
63396
63397 2000-08-06  Paul Eggert  <eggert@twinsun.com>
63398
63399         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
63400         not char, for compatibility with glibc 2.1.3 strftime.c.
63401
63402 2000-08-03  Greg McGary  <greg@mcgary.org>
63403
63404         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
63405         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
63406         (EXTEND_BUFFER): Use them.
63407
63408 2000-08-01  Jim Meyering  <meyering@lucent.com>
63409
63410         * lib/dirname.c (ISSLASH): Define.
63411         (BACKSLASH_IS_PATH_SEPARATOR): Define.
63412         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
63413         both `\' and `/' may be use as path separators.
63414         Based on a patch from Prashant TR.
63415
63416 2000-07-31  Paul Eggert  <eggert@twinsun.com>
63417
63418         * lib/quotearg.c (quotearg_n_options): Don't make the initial
63419         slot vector a constant, since it might get modified.
63420
63421 2000-07-31  Jim Meyering  <meyering@lucent.com>
63422
63423         * lib/xmalloc.c: Use `virtual memory exhausted', not
63424         `Memory exhausted'.
63425         * lib/obstack.c (print_and_abort): Likewise.
63426
63427 2000-07-30  Paul Eggert  <eggert@twinsun.com>
63428
63429         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
63430         buffer, so that the caller can always quote one small
63431         component of a "memory exhausted" message in slot 0.
63432         From a suggestion by Jim Meyering.
63433
63434 2000-07-30  Jim Meyering  <meyering@lucent.com>
63435
63436         * lib/makepath.c (make_path): Quote the other instance, too.
63437
63438         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
63439         (STATIC_BUF_SIZE): Define.
63440         (quotearg_n_options): Use only statically allocated storage when
63441         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
63442         than STATIC_BUF_SIZE.
63443
63444 2000-07-29  Jim Meyering  <meyering@lucent.com>
63445
63446         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
63447         * lib/dirname.c (dir_name): Likewise.
63448
63449         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
63450         `/'.
63451
63452         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
63453         (dir_name): Assert that there are no trailing slashes.
63454
63455 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
63456
63457         * lib/mbswidth.h (mbswidth): Add a flags argument.
63458         (mbswidth): New declaration.
63459         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
63460         * lib/mbswidth.c (mbswidth): Add a flags argument.
63461         (mbsnwidth): New function.
63462
63463 2000-07-24  Jim Meyering  <meyering@lucent.com>
63464
63465         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
63466
63467 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63468
63469         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
63470
63471 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63472
63473         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
63474         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
63475         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
63476         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
63477         invoke multibyte primitives.
63478
63479 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63480
63481         * lib/quotearg.c:
63482         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
63483         so that mbstate_t is always defined.
63484
63485         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
63486         be 1 in at least one GCC installation, and this configuration
63487         error is likely to be common.  Ignoring MB_LEN_MAX hurts
63488         performance on hosts that have mbrtowc but have only unibyte
63489         locales, but I assume these hosts are rare.
63490
63491 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63492
63493         * lib/mbswidth.c (_XOPEN_SOURCE):
63494         Don't define; this causes problems on Solaris 7.
63495         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
63496
63497 2000-07-23  Jim Meyering  <meyering@lucent.com>
63498
63499         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
63500         too: getgrgid, getpwuid, getuid.
63501
63502 2000-07-23  Jim Meyering  <meyering@lucent.com>
63503
63504         * lib/basename.c (base_name): Add an assertion.
63505
63506 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
63507
63508         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
63509         shadow its mbsinit function.
63510
63511 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
63512
63513         * lib/mbswidth.h: New file.
63514         * lib/mbswidth.c: New file.
63515         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
63516         (noinst_HEADERS): Add mbswidth.h.
63517
63518 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
63519
63520         * lib/config.charset: Add support for FreeBSD. Improve support for
63521         HP-UX and IRIX 6.
63522
63523 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
63524
63525         * m4/mbswidth.m4: New file.
63526         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
63527
63528 2000-07-15  Jim Meyering  <meyering@lucent.com>
63529
63530         * lib/makepath.c: Include quote.h.
63531         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
63532         corresponding argument in a `quote (...)' call.
63533         Give better diagnostics.
63534
63535         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
63536         (noinst_HEADERS): Add quote.h.
63537
63538         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
63539         from tar's src/misc.c.
63540         * lib/quote.h: New file.  Prototypes for same.
63541
63542 2000-07-14  Paul Eggert  <eggert@twinsun.com>
63543
63544         From a suggestion by Bruno Haible.
63545         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
63546         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
63547         to decide whether to define the BeOS workaround macro;
63548         this adjusts to the change to AC_MBSTATE_T.
63549
63550 2000-07-14  Jim Meyering  <meyering@lucent.com>
63551
63552         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
63553         jm_AC_TYPE_UINTMAX_T.
63554
63555 2000-07-13  Paul Eggert  <eggert@twinsun.com>
63556
63557         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
63558
63559         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
63560         quotearg_buffer_restyled): Add support for
63561         clocale_quoting_style.  Undo previous change to
63562         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
63563         and "{RIGHT QUOTATION MARK}" msgids.
63564
63565 2000-07-10  Paul Eggert  <eggert@twinsun.com>
63566
63567         From a suggestion by Bruno Haible.
63568         * m4/mbstate_t.m4 (AC_MBSTATE_T):
63569         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
63570         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
63571         and mbstate_t, to a single-part test that simply defines mbstate_t.
63572         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
63573         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
63574
63575 2000-07-10  Jim Meyering  <meyering@lucent.com>
63576
63577         * m4/strerror_r.m4: Mirror the correction made in autoconf.
63578
63579         * m4/gnu-source.m4: Output to confdefs.h directly.
63580         Suggestion from Akim Demaille.
63581
63582 2000-07-09  Paul Eggert  <eggert@twinsun.com>
63583
63584         The old behavior of quoting `like this' doesn't look good with
63585         newer, ISO-style fonts.  See:
63586         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
63587
63588         Instead, quote "like this" by default.  Let the translator
63589         tailor the locale-specific quoting behavior by providing
63590         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
63591
63592         * lib/quotearg.c (N_): New macro.
63593         (gettext_default): New function.
63594         (quotearg_buffer_restyled): Use
63595         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
63596         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
63597
63598 2000-07-09  Jim Meyering  <meyering@lucent.com>
63599
63600         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
63601         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
63602
63603         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
63604         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
63605
63606 2000-07-09  Jim Meyering  <meyering@lucent.com>
63607
63608         * lib/Most files: Update copyright dates to include 2000.
63609
63610 2000-07-08  Jim Meyering  <meyering@lucent.com>
63611
63612         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
63613         if not defined.
63614         (xgethostname): Remove now-unnecessary #ifdef.
63615         Move declaration of `err' into loop where it's used.
63616
63617 2000-07-05  Paul Eggert  <eggert@twinsun.com>
63618         and Bruno Haible  <haible@clisp.cons.org>
63619
63620         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
63621         only if the test for an object-type mbstate_t fails.  This
63622         prevents us from mistakenly reporting that mbstate_t is a
63623         system object type after we "#define mbstate_t int" to work
63624         around its lack.
63625
63626 2000-07-05  Paul Eggert  <eggert@twinsun.com>
63627         and Bruno Haible  <haible@clisp.cons.org>
63628
63629         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
63630
63631 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
63632
63633         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
63634         to strerror_r.
63635         Include <ctype.h> for use of isalpha.
63636
63637 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
63638
63639         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
63640         by allocating a larger buffer. Test the gethostname return value for
63641         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
63642         returns an error and ENAMETOOLONG isn't defined.
63643
63644 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
63645
63646         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
63647         dimension.
63648
63649 2000-07-04  Jim Meyering  <meyering@lucent.com>
63650
63651         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
63652         of the deprecated AC_CHECKING.
63653
63654 2000-07-04  Jim Meyering  <meyering@lucent.com>
63655
63656         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
63657         Reported by Bruno Haible.
63658
63659 2000-07-04  Jim Meyering  <meyering@lucent.com>
63660
63661         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
63662         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
63663         lacks mbrtowc.
63664
63665 2000-07-03  Paul Eggert  <eggert@twinsun.com>
63666
63667         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
63668         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
63669
63670 2000-07-03  Paul Eggert  <eggert@twinsun.com>
63671         and Bruno Haible  <haible@clisp.cons.org>
63672
63673         * lib/quotearg.c (mbrtowc):
63674         Assign to *pwc, and return 1 only if result is nonzero.
63675         (iswprint): Use ISPRINT when substituting our own mbrtowc.
63676
63677 2000-07-03  Jim Meyering  <meyering@lucent.com>
63678
63679         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
63680
63681 2000-07-03  Jim Meyering  <meyering@lucent.com>
63682
63683         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
63684         This is necessary to get a definition of e.g., UTMP_FILE on
63685         HP-UX 10.20.
63686         From Bob Proulx.
63687
63688 2000-07-02  Jim Meyering  <meyering@lucent.com>
63689
63690         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
63691
63692         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
63693         AC_LIBOBJ(function_name).
63694         * m4/chown.m4: Likewise.
63695         * m4/fnmatch.m4: Likewise.
63696         * m4/ftruncate.m4: Likewise.
63697         * m4/getgroups.m4: Likewise.
63698         * m4/getline.m4: Likewise.
63699         * m4/group-member.m4: Likewise.
63700         * m4/jm-macros.m4: Likewise.
63701         * m4/lstat.m4: Likewise.
63702         * m4/malloc.m4: Likewise.
63703         * m4/memcmp.m4: Likewise.
63704         * m4/nanosleep.m4: Likewise.
63705         * m4/putenv.m4: Likewise.
63706         * m4/realloc.m4: Likewise.
63707         * m4/regex.m4: Likewise.
63708         * m4/stat.m4: Likewise.
63709         * m4/strftime.m4: Likewise.
63710
63711 2000-07-02  Jim Meyering  <meyering@lucent.com>
63712
63713         * lib/quotearg.c (mbstate_t): Don't define here.
63714
63715 2000-07-02  Jim Meyering  <meyering@lucent.com>
63716
63717         * lib/nanosleep.c (SIGCONT): Define if not already defined.
63718
63719 2000-07-01  Jim Meyering  <meyering@lucent.com>
63720
63721         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
63722
63723 2000-07-01  Jim Meyering  <meyering@lucent.com>
63724
63725         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
63726         problem.
63727
63728 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
63729
63730         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
63731         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
63732
63733 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
63734
63735         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
63736         per change in ../m4/ls-mntd-fs.m4.
63737         (read_filesystem_list): Ignore symbolic links.
63738
63739 2000-06-29  Jim Meyering  <meyering@lucent.com>
63740
63741         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
63742         for declaration of strcmp.
63743
63744         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
63745
63746         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
63747         Avoid warning by casting result to `char *' to remove `const'.
63748
63749 2000-06-28  Jim Meyering  <meyering@lucent.com>
63750
63751         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
63752         included by quotearg.c, for which we perform this test.  From
63753         Bruno Haible.
63754
63755 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
63756
63757         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
63758         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
63759         <utmpx.h> exists, put readutmp.o into LIBOBJS.
63760
63761 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
63762
63763         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
63764
63765 2000-06-26  Paul Eggert  <eggert@twinsun.com>
63766
63767         savedir now sets errno on failure and invokes xmalloc to get memory.
63768         Fix a couple of other minor bugs while we're at it.
63769
63770         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
63771         (NAMLEN): Remove macro.
63772         (malloc, realloc): Remove decls.
63773         (stpcpy): Likewise.
63774         ("xalloc.h"): Include.
63775         (NAME_SIZE_DEFAULT): New macro.
63776         (savedir): Use xmalloc / xrealloc to allocate memory.
63777         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
63778         Skip "" directory entries.
63779         Use strlen to calculate directory entry length, since the old method
63780         is rarely used these days and isn't worth supporting.
63781         Don't use a pointer after freeing it.
63782         Check for integer overflow when calculating allocation size.
63783         Use memcpy to copy entries, instead of stpcpy.
63784         Set errno properly when returning NULL.
63785         Check for readdir error.
63786
63787 2000-06-26  Jim Meyering  <meyering@lucent.com>
63788
63789         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
63790
63791 2000-06-25  Jim Meyering  <meyering@lucent.com>
63792
63793         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
63794         Linux header bug when _XOPEN_SOURCE is defined to 500.
63795
63796 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
63797
63798         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
63799         deficiency.
63800
63801 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
63802
63803         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
63804         Include xalloc.h.
63805         Don't include <stdlib.h>.  Don't declare malloc, realloc.
63806
63807 2000-06-24  Jim Meyering  <meyering@lucent.com>
63808
63809         * m4/strerror_r.m4: Revive this file -- to try out an experimental
63810         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
63811         for which strerror does return char*, but which lacks a conveniently
63812         accessible declaration of the function.  If the compile-test says
63813         strerror_r doesn't work, then resort to a `run'-test that works on
63814         BeOS and segfaults on DEC Unix.
63815
63816 2000-06-24  Jim Meyering  <meyering@lucent.com>
63817
63818         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
63819
63820 2000-06-23  Paul Eggert  <eggert@twinsun.com>
63821
63822         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
63823         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
63824
63825 2000-06-23  Paul Eggert  <eggert@twinsun.com>
63826
63827         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
63828         (mbrtowc, mbstate_t): Define substitutes if
63829         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
63830         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
63831         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
63832
63833 2000-06-23  Jim Meyering  <meyering@lucent.com>
63834
63835         * m4/afs.m4: Add missing AC_MSG_RESULT.
63836         Reported by Bruno Haible.
63837
63838         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
63839         Suggestion from Bruno Haible.
63840
63841 2000-06-23  Jim Meyering  <meyering@lucent.com>
63842
63843         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
63844
63845 2000-06-21  Jim Meyering  <meyering@lucent.com>
63846
63847         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
63848
63849 2000-06-21  Jim Meyering  <meyering@lucent.com>
63850
63851         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
63852         (noinst_HEADERS): Add getstr.h.
63853
63854         * lib/getline.c (getstr): Move into a separate file.
63855         * lib/getstr.c (getstr): New file, extracted from getline.c, with
63856         the following changes: new parameter, delim2; both delim[12]
63857         parameters have type `int', not `char'.  The latter would lose
63858         with 8-bit delimiters.
63859         * lib/getstr.h: New file.
63860
63861 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
63862
63863         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
63864         than 1024, return a memory chunk of least possible size, instead
63865         of size PATH_MAX + 2. In the loop, increment the size proportionally.
63866         Use free/xmalloc instead of xrealloc to avoid copying for very long
63867         paths.
63868
63869 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
63870
63871         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
63872         the empty string.
63873
63874 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
63875
63876         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
63877         address, not strdup.  Include <stdlib.h> and don't declare free().
63878
63879 2000-06-19  Jim Meyering  <meyering@lucent.com>
63880
63881         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
63882
63883 2000-06-18  Jim Meyering  <meyering@lucent.com>
63884
63885         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
63886
63887         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
63888         `checking whether...' message to be consistent with that of the
63889         lstat test.
63890
63891 2000-06-18  Jim Meyering  <meyering@lucent.com>
63892
63893         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
63894         Besides, these days every porting target provides a mkdir function.
63895
63896         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
63897         needed. (this snippet comes from src/system.h).
63898
63899 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
63900
63901         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
63902
63903 2000-06-15  Paul Eggert  <eggert@twinsun.com>
63904
63905         * lib/human.c (adjust_value): New function.
63906         (human_readable_inexact): Apply rounding style even when
63907         printing approximate values.
63908
63909 2000-06-14  Paul Eggert  <eggert@twinsun.com>
63910
63911         * lib/human.c (human_readable_inexact): Allow an input block
63912         size that is not a multiple of the output block size, and vice versa.
63913         Reported by Piergiorgio Sartor.
63914
63915 2000-06-14  Paul Eggert  <eggert@twinsun.com>
63916
63917         * lib/getdate.y (get_date): Apply relative times after time
63918         zone indicator, not before.  Reported by Todd A. Jacobs.
63919
63920 2000-06-13  Jim Meyering  <meyering@lucent.com>
63921
63922         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
63923
63924         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
63925
63926 2000-06-12  Paul Eggert  <eggert@twinsun.com>
63927
63928         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
63929
63930 2000-06-12  Jim Meyering  <meyering@lucent.com>
63931
63932         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
63933         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
63934         optional argument.
63935         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
63936         the optional argument, `lib'.
63937
63938 2000-06-08  Jim Meyering  <meyering@lucent.com>
63939
63940         * m4/largefile.m4: Remove file (now that it's part of autoconf).
63941
63942 2000-06-04  Paul Eggert  <eggert@twinsun.com>
63943
63944         Rewrite largefile configuration so that we don't need to run
63945         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
63946         AC_CANONICAL_HOST in configure.in -- jmm]
63947
63948         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
63949         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
63950         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
63951         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
63952         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
63953         All uses changed.
63954         Instead of inspecting the output of getconf, try to compile the
63955         test program without and with the macro definition.
63956         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
63957         for getconf.  Instead, check for the needed flags by compiling
63958         test programs.
63959
63960 2000-06-04  Paul Eggert  <eggert@twinsun.com>
63961
63962         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
63963
63964 2000-06-04  Jim Meyering  <meyering@lucent.com>
63965
63966         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
63967         SunOS 4.1.4 for which gid_t is an unsigned type.
63968
63969 2000-06-03  Jim Meyering  <meyering@lucent.com>
63970
63971         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
63972         now that autoconf requires that.
63973
63974         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
63975         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
63976         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
63977
63978 2000-06-03  Jim Meyering  <meyering@lucent.com>
63979
63980         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
63981
63982 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
63983
63984         * m4/glibc21.m4: New file.
63985         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
63986
63987 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
63988
63989         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
63990         newer, don't install charset.alias.
63991         * lib/config.charset: Change the Linux/glibc rules so they become empty
63992         on glibc-2.1 or newer.
63993
63994 2000-06-02  Jim Meyering  <meyering@lucent.com>
63995
63996         * lib/mountlist.c: Back out last change.  Instead, do this...
63997         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
63998         me_dummy member using the same `ignore'-testing code.
63999         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
64000         fs_type strings.
64001         From Mark D. Roth.
64002
64003 2000-05-29  Jim Meyering  <meyering@lucent.com>
64004
64005         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
64006         mounts with the `ignore' attribute.  Based on a patch from
64007         Mark D. Roth.
64008
64009 2000-05-28  Jim Meyering  <meyering@lucent.com>
64010
64011         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
64012         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64013         * m4/stat.m4: Likewise.
64014         * m4/lstat.m4: Likewise.
64015         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
64016
64017         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
64018         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
64019
64020 2000-05-26  Jim Meyering  <meyering@lucent.com>
64021
64022         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
64023
64024 2000-05-24  Jim Meyering  <meyering@lucent.com>
64025
64026         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
64027         autoconf requires that.
64028         * m4/lib-check.m4: Likewise.
64029         * m4/jm-macros.m4: Likewise.
64030         * m4/strftime.m4: Likewise.
64031
64032         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
64033         AC_CHECK_DECLS, now that autoconf requires that.
64034
64035 2000-05-22  Jim Meyering  <meyering@lucent.com>
64036
64037         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64038         * m4/lstat.m4: Likewise.
64039
64040 2000-05-22  Jim Meyering  <meyering@lucent.com>
64041
64042         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
64043
64044 2000-05-20  Jim Meyering  <meyering@lucent.com>
64045
64046         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
64047         (jm_PREREQ): Use it.
64048
64049 2000-05-18  Jim Meyering  <meyering@lucent.com>
64050
64051         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
64052         back, too, since it may have been modified by allocate_entry.
64053         (hash_delete): Rewrite to use neither the assignment operator
64054         nor the comma operator in an if-expression.
64055
64056 2000-05-15  Paul Eggert  <eggert@twinsun.com>
64057
64058         * lib/closeout.c:
64059         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
64060         Remove; no longer needed.
64061         "quotearg.h": Add include.
64062         (file_name): Do not bother to explicitly initialize to NULL; it's less
64063         efficient on some hosts.
64064         (close_stdout_status): Remove test as to whether stdout was already
64065         closed; it breaks for the case "echo x | sort >&-".
64066         Quote file name colons.
64067         Do not assume that _("write error") lacks format strings.
64068
64069 2000-05-15  Jim Meyering  <meyering@lucent.com>
64070
64071         * lib/version-etc.c (version_etc_copyright): Update the copyright
64072         string used in all --version output.
64073
64074 2000-05-14  Jim Meyering  <meyering@lucent.com>
64075
64076         * lib/closeout.c (close_stdout_set_file_name): New function.
64077         (close_stdout_status): Use new file-scoped global.
64078         Return right away if fstat says the stdout file descriptor is invalid.
64079         * lib/closeout.h (close_stdout_set_file_name): Declare.
64080
64081 2000-05-10  Jim Meyering  <meyering@lucent.com>
64082
64083         * lib/closeout.c [default_exit_status]: New file-scoped variable.
64084         (close_stdout_set_status): New function.
64085         * lib/closeout.h (close_stdout_set_status): Declare.
64086
64087 2000-05-09  Jim Meyering  <meyering@lucent.com>
64088
64089         * m4/gettext.m4: Rename this...
64090         * m4/libintl.m4: ...to this.
64091
64092 2000-05-08  Jim Meyering  <meyering@lucent.com>
64093
64094         * lib/long-options.c: Don't include closeout.h.
64095         (parse_long_options): Don't call close_stdout for --version.
64096
64097 2000-05-06  Paul Eggert  <eggert@twinsun.com>
64098
64099         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
64100         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
64101         2.1.3 bug.  This avoids a clash when files like regex.c define
64102         _GNU_SOURCE.
64103
64104 2000-05-06  Jim Meyering  <meyering@lucent.com>
64105
64106         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
64107         (AC_REPLACE_FUNCS): Add strnlen.
64108
64109         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
64110         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
64111
64112         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
64113         AC_SEARCH_LIBS call for nanosleep.
64114         (LIB_NANOSLEEP): Set and AC_SUBST.
64115
64116 2000-05-06  Jim Meyering  <meyering@lucent.com>
64117
64118         * lib/strnlen.c: Undefine __strnlen and strnlen.
64119         [!weak_alias]: Define __strnlen to strnlen.
64120
64121         * lib/atexit.c: New file, from libiberty.
64122
64123 2000-05-06  Jim Meyering  <meyering@lucent.com>
64124
64125         * lib/closeout.c (close_stdout_status): Also check for errors on the
64126         stderr stream.
64127
64128 2000-05-05  Jim Meyering  <meyering@lucent.com>
64129
64130         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
64131         AC_SEARCH_LIBS call for clock_gettime.
64132         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
64133
64134         * m4/search-libs.m4: Update from autoconf.
64135
64136         su doesn't work on Solaris 2.6.
64137         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
64138         <shadow.h>.  Reported by Dragos Harabor.
64139
64140 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
64141
64142         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
64143         memcpy instead of xmalloc, xrealloc, path_concat.
64144         (locale_charset): Treat empty environment variables as absent.
64145         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
64146
64147 2000-05-04  Jim Meyering  <meyering@lucent.com>
64148
64149         * lib/getopt.c: Update from glibc.
64150         * lib/obstack.c: Likewise.
64151         * lib/obstack.h: Likewise.
64152         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
64153         file
64154
64155         * lib/regex.h: Likewise.
64156         * lib/strndup.c: Likewise.
64157         * lib/strnlen.c: New file, from glibc.
64158
64159 2000-05-03  Jim Meyering  <meyering@lucent.com>
64160
64161         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
64162
64163 2000-05-02  Paul Eggert  <eggert@twinsun.com>
64164
64165         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
64166         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
64167         compile-time test, rather than inspecting host and OS, to
64168         decide whether to define _LARGEFILE_SOURCE.
64169
64170 2000-05-01  Jim Meyering  <meyering@lucent.com>
64171
64172         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
64173
64174         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
64175         Based on a patch from Bruno Haible.
64176
64177 2000-05-01  Jim Meyering  <meyering@lucent.com>
64178
64179         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
64180
64181 2000-04-29  Jim Meyering  <meyering@lucent.com>
64182
64183         * lib/path-concat.c: Declare strdup only if it's not defined.
64184         * lib/canon-host.c: Likewise.
64185
64186 2000-04-28  Jim Meyering  <meyering@lucent.com>
64187
64188         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
64189         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
64190         is included first, then limits.h is included by locale.h by libintl.h.
64191         From John David Anglin.
64192
64193 2000-04-25  Jim Meyering  <meyering@lucent.com>
64194
64195         * lib/makepath.c (S_IRWXUGO): Define.
64196         (make_path): Always perform explicit chmod if MODE specifies any
64197         of the `special' permission bits.  Prompted by a bug report against
64198         install from Mate Wierdl and Joost van Baal.
64199
64200 2000-04-18  Jim Meyering  <meyering@lucent.com>
64201
64202         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
64203         (jm_PREREQ): Use it.
64204
64205 2000-04-18  Jim Meyering  <meyering@lucent.com>
64206
64207         * lib/README: New file.
64208
64209         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
64210         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
64211
64212 2000-04-17  Jim Meyering  <meyering@lucent.com>
64213
64214         Get it right :-)
64215         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
64216         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
64217         Suggestion from Akim Demaille.
64218
64219 2000-04-17  Jim Meyering  <meyering@lucent.com>
64220
64221         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
64222         the definition of it to rpl_strftime also defined-away the system's
64223         declaration.
64224
64225 2000-04-15  Jim Meyering  <meyering@lucent.com>
64226
64227         Use `C' to denote so-called `contiguous' files, the same way
64228         that tar does.
64229         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
64230         (ftypelet): Use S_ISCTG.
64231         From Michael Deutschmann.
64232
64233 2000-04-14  Jim Meyering  <meyering@lucent.com>
64234
64235         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
64236         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
64237         clobbered.
64238
64239 2000-04-14  Jim Meyering  <meyering@lucent.com>
64240
64241         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
64242
64243 2000-04-13  Jim Meyering  <meyering@lucent.com>
64244
64245         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
64246         AH_VERBATIM to insert required #ifndef into config.h.in.
64247         Suggestion from Akim Demaille.
64248
64249 2000-04-12  Jim Meyering  <meyering@lucent.com>
64250
64251         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
64252         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
64253         Christian Krackowizer.
64254
64255         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
64256         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
64257         (AC_SYS_LARGEFILE): Require.
64258         (AM_C_PROTOTYPES): Require.
64259
64260 2000-04-08  Jim Meyering  <meyering@lucent.com>
64261
64262         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
64263         names don't conflict.  Reported by Eli Zaretskii.
64264
64265 2000-04-07  Jim Meyering  <meyering@lucent.com>
64266
64267         * lib/putenv.c: Move inclusion of errno.h so it follows that of
64268         sys/types.h, to work around system header problems on AIX 3.2.5.
64269         From Bruno Haible.
64270
64271 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
64272
64273         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
64274         bug.  Deal with the different error behavior of Irix iconv.
64275
64276 2000-04-05  Paul Eggert  <eggert@twinsun.com>
64277
64278         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
64279         IRIX if the installer said otherwise.
64280
64281 2000-04-05  Jim Meyering  <meyering@lucent.com>
64282
64283         Portability tweaks required for ultrix4.3.
64284         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
64285         (jm_CHECK_DECLS): Add getutent to the list of functions.
64286         (_jm_DECL_HEADERS): Add utmpx.h.
64287         From John David Anglin.
64288
64289         * m4/strftime.m4: Back out the 2000-04-02 change.
64290         Instead of that change, simply undefine putenv in the test program.
64291
64292 2000-04-05  Jim Meyering  <meyering@lucent.com>
64293
64294         Portability tweaks required for ultrix4.3.
64295         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
64296         getutent.
64297         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
64298         * lib/canon-host.c: Declare strdup.
64299         * lib/path-concat.c: Likewise.
64300         From John David Anglin.
64301
64302 2000-04-04  Jim Meyering  <meyering@lucent.com>
64303
64304         Be more DOS 8.3-friendly.
64305         * lib/ref-add.sin: Renamed from ref-add.sed.in.
64306         * lib/ref-del.sin: Renamed from ref-del.sed.in.
64307         * lib/Makefile.am: Reflect renaming.
64308         Reported by Eli Zaretskii.
64309
64310         Use a temporary file name that won't clash with `charset.alias'
64311         in the DOS 8.3 name space.
64312         * lib/Makefile.am (charset_tmp): Define.
64313         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
64314         (uninstall-local): Likewise.
64315         Reported by Eli Zaretskii.
64316
64317 2000-04-03  Jim Meyering  <meyering@lucent.com>
64318
64319         * m4/gettext.m4: Fix typo in comment.
64320
64321         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
64322         textutils/configure.in).  Suggestion from Paul Eggert.
64323         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
64324
64325 2000-04-02  Paul Eggert  <eggert@twinsun.com>
64326
64327         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
64328         variable in the shell rather than using putenv, which isn't
64329         portable.  This avoids the configure-time inter-test dependency
64330         on the potentially-renamed putenv function.
64331
64332 2000-03-30  Paul Eggert  <eggert@twinsun.com>
64333
64334         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
64335         before checking struct stat.st_blksize, so that
64336         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
64337
64338 2000-03-29  Paul Eggert  <eggert@twinsun.com>
64339
64340         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
64341         since strftime.c uses HAVE_STRFTIME to decide whether to use
64342         the underlying strftime.
64343
64344 2000-03-29  Paul Eggert  <eggert@twinsun.com>
64345
64346         * lib/time/strftime.c (my_strftime): Make sure we call the system
64347         strftime, not ourselves, when invoking the underlying strftime.
64348
64349 2000-03-24  Jim Meyering  <meyering@lucent.com>
64350
64351         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
64352         (charset_alias): Define.
64353         (install-exec-local): Factor out common code.
64354         (uninstall-local): Split lines longer than 80.
64355         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
64356         (SUFFIXES): Define.
64357         (.sed.in.sed): New rule.  Don't redirect directly to $@.
64358         (CLEANFILES): Add ref-add.sed and ref-del.sed.
64359
64360 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
64361
64362         * lib/config.charset: Output a line containing "Packages using this
64363         file".
64364         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
64365         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
64366         ref-del.sed): New rules.
64367
64368 2000-03-17  Jim Meyering  <meyering@lucent.com>
64369
64370         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
64371         Otherwise, include <strings.h>
64372
64373 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
64374
64375         * lib/unicodeio.c (utf8_wctomb): New function.
64376         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
64377         format instead of in UCS-4 with platform dependent endianness.
64378
64379 2000-03-10  Jim Meyering  <meyering@lucent.com>
64380
64381         * m4/lib-check.m4: Look for getspnam in -lgen, too.
64382         From Marco Franzen.
64383
64384 2000-03-07  Paul Eggert  <eggert@twinsun.com>
64385
64386         * lib/savedir.c (savedir): Work even if directory size is
64387         negative; this can happen with some screwy NFS configurations.
64388
64389 2000-03-06  Jim Meyering  <meyering@lucent.com>
64390
64391         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
64392         if it's NULL (because we ran out of memory).  From Bruno Haible.
64393
64394 2000-03-05  Jim Meyering  <meyering@lucent.com>
64395
64396         * lib/localcharset.c ("path-concat.h"): Include.
64397         (get_charset_aliases): Use path_concat instead of ANSI string
64398         concatenation.
64399
64400         * lib/unicodeio.h (PARAMS): Define.
64401         Use it to guard prototype.
64402
64403 2000-03-04  Jim Meyering  <meyering@lucent.com>
64404
64405         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
64406         for lib/localcharset.c.
64407
64408 2000-03-04  Jim Meyering  <meyering@lucent.com>
64409
64410         * lib/Makefile.am (install-exec-local): Create $(libdir) before
64411         installing into it.
64412         (uninstall-local): Uncomment this rule so `make distcheck' works
64413         once again.
64414
64415         * lib/unicodeio.c (<errno.h>): Include it.
64416         (errno): Declare if not defined.
64417
64418         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
64419
64420         * lib/config.charset: New version, incorporating remarks from a linux
64421         i18n mailing list.  From Bruno Haible.
64422
64423 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
64424
64425         * m4/codeset.m4: New file.
64426         * m4/iconv.m4: New file.
64427         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
64428
64429 2000-03-03  Jim Meyering  <meyering@lucent.com>
64430
64431         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
64432
64433 2000-03-02  Jim Meyering  <meyering@lucent.com>
64434
64435         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
64436         the messages come out on separate lines.
64437
64438         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
64439         rather than jm_CHECK_DECLARATIONS.
64440         * m4/decl.m4: Remove now-unused file.
64441
64442         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
64443         geteuid.
64444
64445 2000-03-02  Jim Meyering  <meyering@lucent.com>
64446
64447         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
64448
64449 2000-03-01  Jim Meyering  <meyering@lucent.com>
64450
64451         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
64452         * lib/unicodeio.c: Likewise.
64453
64454 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
64455
64456         * lib/config.charset: New file.
64457         * lib/localcharset.c: New file.
64458         * lib/unicodeio.h, lib/unicodeio.c: New files.
64459         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
64460         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
64461         (noinst_HEADERS): Add unicodeio.h.
64462         (all-local, install-exec-local, charset.alias): New targets.
64463
64464 2000-02-28  Paul Eggert  <eggert@twinsun.com>
64465
64466         * lib/quotearg.c (ALERT_CHAR): New macro.
64467         (quotearg_buffer_restyled): Use it.
64468
64469 2000-02-27  Jim Meyering  <meyering@lucent.com>
64470
64471         * m4/check-decl.m4: Add getenv to the list.
64472
64473 2000-02-27  Jim Meyering  <meyering@lucent.com>
64474
64475         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
64476         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
64477
64478         * lib/backupfile.c: Guard inclusion of stdlib.h with
64479         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
64480         Declare malloc if needed.
64481
64482         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
64483         `#ifndef HAVE_DECL..'
64484         now that autoconf always defines the HAVE_DECL_ symbols.
64485         * lib/human.c: Likewise.
64486         * lib/same.c: Likewise.
64487         * lib/strtoumax.c: Likewise.
64488
64489         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
64490         declaration check was not run.
64491         * lib/hash.c: Likewise.
64492         * lib/human.c: Likewise.
64493         * lib/same.c: Likewise.
64494         * lib/strtoumax.c: Likewise.
64495
64496         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
64497         `.', then first look up the entire `.'-containing string as a login
64498         name.
64499
64500 2000-02-23  Jim Meyering  <meyering@lucent.com>
64501
64502         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
64503         in place of my hack.
64504
64505 2000-02-18  Paul Eggert  <eggert@twinsun.com>
64506
64507         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
64508         (textint): New typedef.
64509         (parser_control): Member year changed from int to textint.
64510         All uses changed.
64511         (YYSTYPE): Removed; replaced by %union with int and textint members.
64512         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
64513         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
64514         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
64515         (tSNUMBER, tUNUMBER): Now of type <textintval>.
64516         (date, number, to_year): Use width of number in digits, not its value,
64517         to determine whether it's a 2-digit year, or a 2-digit time.
64518         (yylex): Store number of digits of numeric tokens.
64519         Reported by John Kendall.
64520
64521         (parser_control): Changed from struct parser_control to typedef (for
64522         consistency).  All uses changed.
64523
64524         (tID): Removed; not used.
64525         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
64526
64527 2000-02-14  Paul Eggert  <eggert@twinsun.com>
64528
64529         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
64530         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
64531
64532 2000-02-12  Jim Meyering  <meyering@lucent.com>
64533
64534         * lib/userspec.c (ISDIGIT): Define it.
64535         (isdigit): Remove definition.
64536         (is_number): Use ISDIGIT, not isdigit.
64537         <libintl.h>: Include.
64538         (_ and N_): Define.
64539         (parse_user_spec): Mark translatable strings.
64540
64541 2000-02-10  Jim Meyering  <meyering@lucent.com>
64542
64543         With these changes, nanosleep.[ch] are finally enough like the other
64544         lib/* replacement files to compile on a few more losing systems.
64545
64546         * lib/nanosleep.h: Don't include config.h.
64547         Remove prototype from declaration of nanosleep.
64548         (PARAMS): Remove now-unneeded definition.
64549         * lib/nanosleep.c: #undef nanosleep.
64550         (rpl_nanosleep): Rename from nanosleep.
64551
64552 2000-02-10  Jim Meyering  <meyering@lucent.com>
64553
64554         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
64555         gnu_nanosleep to rpl_nanosleep.
64556
64557 2000-02-09  Jim Meyering  <meyering@lucent.com>
64558
64559         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
64560         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
64561
64562 2000-02-08  Akim Demaille  <akim@epita.fr>
64563
64564         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
64565         `[' and `]' and remove uses of `changequote'.
64566         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
64567         (AC_SYS_LARGEFILE): Likewise.
64568         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
64569         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
64570         of changequote.
64571         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
64572         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
64573         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
64574         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
64575
64576 2000-02-05  Jim Meyering  <meyering@lucent.com>
64577
64578         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
64579         Remove explicit use of AC_HEADER_TIME.  It is required by
64580         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
64581         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
64582         in autoconf whereby the expansion of the latter ended up preceding
64583         the expansion of its prerequisite, AC_HEADER_TIME.
64584         Reported by Volker Borchert.
64585
64586 2000-02-03  Jim Meyering  <meyering@lucent.com>
64587
64588         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
64589
64590 2000-02-03  Jim Meyering  <meyering@lucent.com>
64591
64592         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
64593         rather than with `#if HAVE_UTMPNAME'.
64594
64595 2000-02-02  Jim Meyering  <meyering@lucent.com>
64596
64597         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
64598         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
64599         Reported by Eli Zaretskii.
64600
64601 2000-02-01  Jim Meyering  <meyering@lucent.com>
64602
64603         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
64604
64605 2000-01-31  Jim Meyering  <meyering@lucent.com>
64606
64607         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
64608         functions.  Add the time.h and sys/time.h headers along with the
64609         AC_REQUIRE'ment of AC_HEADER_TIME.
64610
64611 2000-01-31  Jim Meyering  <meyering@lucent.com>
64612
64613         * lib/nanosleep.h (nanosleep): Guard declaration with
64614         `#if ! HAVE_DECL_NANOSLEEP'.
64615         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
64616         the declaration in that vendor's sys/timers.h.
64617         Reported by Christian Krackowizer.
64618
64619         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
64620         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
64621         (ISPRINT): Likewise.
64622         Reported by Tom Tromey.
64623
64624 2000-01-30  Jim Meyering  <meyering@lucent.com>
64625
64626         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
64627
64628         * m4/prereq.m4 (utmp_includes): Define.
64629         Check for ut_user and ut_name members in both struct utmpx
64630         and struct utmp.
64631
64632 2000-01-30  Jim Meyering  <meyering@lucent.com>
64633
64634         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
64635         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
64636         header files where only utmpx.ut_user is declared.
64637
64638         * lib/readutmp.h (UT_USER): Define.
64639
64640 2000-01-29  Jim Meyering  <meyering@lucent.com>
64641
64642         * m4/lib-check.m4: New file containing library-related checks from
64643         fileutils and sh-utils (textutils had none).
64644
64645 2000-01-28  Jim Meyering  <meyering@lucent.com>
64646
64647         * m4/perl.m4: Change format of warning message to look more like that
64648         from the missing script.  Suggestion from François Pinard.
64649
64650 2000-01-25  Jim Meyering  <meyering@lucent.com>
64651
64652         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
64653         well as time.h in the compile check.
64654         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
64655         Fix typo in cross-compiling case: s/yes/no/.
64656
64657 2000-01-23  Jim Meyering  <meyering@lucent.com>
64658
64659         * m4/jm-macros.m4: Move df-related tests here from
64660         fileutils/configure.in
64661
64662         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
64663         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
64664
64665         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
64666         s/space/ac_fsusage_space/.
64667         (jm_FILE_SYSTEM_USAGE): Take two parameters.
64668
64669         * m4/ftruncate.m4: New file (derived from part of
64670         fileutils/configure.in).
64671         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
64672         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
64673
64674         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
64675         AC_SUBST these here, rather than just in sh-util/configure.in, so
64676         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
64677         all the same.
64678         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
64679         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
64680         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
64681         (AC_SUBST(POW_LIBM)): Likewise.
64682         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
64683
64684 2000-01-23  Jim Meyering  <meyering@lucent.com>
64685
64686         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
64687         obstack.c.
64688
64689 2000-01-22  Jim Meyering  <meyering@lucent.com>
64690
64691         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
64692
64693         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
64694
64695         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
64696         configure.in
64697         (AC_CHECK_HEADERS): Likewise for sh-utils.
64698         (AC_CHECK_HEADERS): Likewise for textutils.
64699         Merge the three lists of headers.
64700
64701         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
64702         from fileutils' configure.in.
64703
64704         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
64705         code. Moved tests into their own function (_jm_DECL_HEADERS) in
64706         check-decl.m4.
64707
64708         * m4/check-decl.m4: Use #if rather than #ifdef.
64709         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
64710         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
64711         (_jm_DECL_HEADERS): Define new function.
64712         (jm_CHECK_DECLARATIONS): Require it.
64713
64714 2000-01-22  Jim Meyering  <meyering@lucent.com>
64715
64716         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
64717         [! HAVE_DECL_STRTOULL]: Declare strtoull.
64718         Required for some AIX systems.  Reported by Christian Krackowizer.
64719         [TESTING] (main): New function.
64720
64721         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
64722         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
64723         letters.
64724
64725         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
64726         iswprint.
64727
64728         * lib/strverscmp.c (ISDIGIT): Define.
64729         (strverscmp): Use ISDIGIT, not isdigit.
64730
64731 2000-01-19  Jim Meyering  <meyering@lucent.com>
64732
64733         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
64734         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
64735         defines `struct timespec' in <sys/time.h>
64736
64737         * m4/c-bs-a.m4: Remove uses of changequote altogether.
64738         Thanks to Akim for explaining.
64739
64740 2000-01-17  Paul Eggert  <eggert@twinsun.com>
64741
64742         * lib/nanosleep.c (nanosleep):
64743         Don't use SA_INTERRUPT to decide whether to call sigaction, as
64744         POSIX.1 doesn't require SA_INTERRUPT and some systems
64745         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
64746         it's been part of POSIX.1 since day 1 (in 1988).
64747
64748 2000-01-17  Jim Meyering  <meyering@lucent.com>
64749
64750         * lib/interlock: Remove unused file.  Reported by François Pinard.
64751
64752 2000-01-16  Paul Eggert  <eggert@twinsun.com>
64753
64754         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
64755         alert, backslash, formfeed, and vertical tab unnecessarily in
64756         shell quoting style.
64757
64758 2000-01-16  Jim Meyering  <meyering@lucent.com>
64759
64760         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
64761         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
64762         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
64763         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
64764
64765 2000-01-16  Jim Meyering  <meyering@lucent.com>
64766
64767         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
64768         because the latter didn't work.
64769
64770 2000-01-15  Jim Meyering  <meyering@lucent.com>
64771
64772         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
64773         (AC_REPLACE_FUNCS): Add memcpy and memset.
64774         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
64775         Add strpbrk.
64776         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
64777
64778 2000-01-12  Jim Meyering  <meyering@lucent.com>
64779
64780         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
64781         (jm_PREREQ): Use it.
64782         (jm_PREREQ_READUTMP): New macro.
64783         (jm_PREREQ): Use it.
64784
64785 2000-01-11  Paul Eggert  <eggert@twinsun.com>
64786
64787         Quote multibyte characters correctly.
64788         * m4/c-bs-a.m4: New file.
64789         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
64790         (jm_PREREQ): Use it.
64791
64792 2000-01-11  Paul Eggert  <eggert@twinsun.com>
64793
64794         * m4/uintmax_t.m4: Port to autoconf 2.13.
64795
64796 2000-01-08  Jim Meyering  <meyering@ascend.com>
64797
64798         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
64799         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
64800
64801 2000-01-04  Jim Meyering  <meyering@ascend.com>
64802
64803         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
64804         jm_STRUCT_DIRENT_D_TYPE.
64805         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
64806         jm_STRUCT_DIRENT_D_INO.
64807         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
64808         jm_STRUCT_UTIMBUF.
64809         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
64810         renamings.
64811         * m4/utime.m4: Likewise.
64812
64813         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
64814         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
64815
64816 2000-01-03  Paul Eggert  <eggert@twinsun.com>
64817
64818         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
64819         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
64820
64821 2000-01-02  Jim Meyering  <meyering@ascend.com>
64822
64823         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
64824         remember if this is necessary.
64825
64826 1999-12-26  Jim Meyering  <meyering@ascend.com>
64827
64828         * m4/jm-macros.m4: Use it here.
64829         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
64830
64831 1999-12-23  Jim Meyering  <meyering@ascend.com>
64832
64833         * m4/jm-macros.m4: Check for clock_gettime (moved from
64834         fileutils/configure.in)
64835         Check for gettimeofday.
64836
64837 1999-12-20  Jim Meyering  <meyering@ascend.com>
64838
64839         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
64840         autoconf-2.14a-1999-12-20.
64841
64842 1999-12-19  Jim Meyering  <meyering@ascend.com>
64843
64844         * m4/lstat-slash.m4: New file.
64845         * m4/jm-macros.m4: Use the new macro:
64846         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64847
64848 1999-12-07  Jim Meyering  <meyering@ascend.com>
64849
64850         * m4/perl.m4: Require that File::Compare be available, too.
64851         Too many systems seem to lack it.
64852
64853         * m4/strftime.m4: Add checks for most of the cpp macros tested in
64854         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
64855
64856 1999-11-18  Paul Eggert  <eggert@twinsun.com>
64857
64858         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
64859         problem with the QNX 4.25 shell, which doesn't propagate exit
64860         status of failed commands inside shell assignments.
64861
64862 1999-11-17  Jim Meyering  <meyering@ascend.com>
64863
64864         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
64865
64866 1999-11-07  Jim Meyering  <meyering@ascend.com>
64867
64868         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
64869
64870 1999-11-06  Jim Meyering  <meyering@ascend.com>
64871
64872         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
64873         * m4/jm-macros.m4 (jm_MACROS): Use it here.
64874
64875 1999-11-05  Jim Meyering  <meyering@ascend.com>
64876
64877         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
64878         configure.in of textutils, fileutils, and sh-utils into this one
64879         (shared between those packages) file.
64880         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
64881         AC_STRUCT_ST_BLKSIZE.
64882
64883 1999-11-03  Jim Meyering  <meyering@ascend.com>
64884
64885         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
64886         of AC_CHECK_TYPE checks includes unistd.h.
64887         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
64888         Suggestion from Akim Demaille.
64889
64890 1999-10-30  Jim Meyering  <meyering@ascend.com>
64891
64892         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
64893         m4-quoted string.
64894         * m4/ls-mntd-fs.m4: Likewise.
64895         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
64896         * m4/jm-winsz1.m4: Likewise.
64897
64898         * m4/const.m4: Remove file, since the fix made it into the experimental
64899         version of autoconf.
64900         * m4/mktime.m4: Likewise.
64901
64902         * m4/check-type.m4: Remove file, now that the latest version of
64903         AC_CHECK_TYPE takes a third arg to specify additional #includes.
64904
64905         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
64906         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
64907         AC_CHECK_TYPE.
64908
64909 1999-10-04  Jim Meyering  <meyering@ascend.com>
64910
64911         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
64912
64913 1999-09-22  Paul Eggert  <eggert@twinsun.com>
64914
64915         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
64916         2.95.1 bug with HP-UX 10.20.
64917
64918 1999-09-17  Jim Meyering  <meyering@ascend.com>
64919
64920         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
64921         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
64922         due to missing strdup (against sh-utils-2.0).
64923
64924 1999-08-29  Jim Meyering  <meyering@ascend.com>
64925
64926         * m4/jm-macros.m4: Require jm_BISON.
64927         * m4/bison.m4: New file.
64928
64929 1999-08-17  Paul Eggert  <eggert@twinsun.com>
64930
64931         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
64932         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
64933
64934 1999-08-05  Jim Meyering  <meyering@ascend.com>
64935
64936         * m4/getline.m4: Rename test file from conftestdata to conftest.data
64937         to avoid conflicts with `conftest' on 8+3 filesystems.
64938         Suggestion from Eli Zaretskii.
64939
64940 1999-08-04  Jim Meyering  <meyering@ascend.com>
64941
64942         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
64943         fileutils and sh-utils (textutils's getline test was inadequate).
64944         (AM_FUNC_GETLINE): Run this test.
64945         (AC_CHECK_FUNCS): Check for getdelim.
64946         Reported by Bob Proulx.
64947
64948 1999-08-02  Jim Meyering  <meyering@ascend.com>
64949
64950         * m4/jm-macros.m4: Add a comment.
64951
64952 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64953
64954         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
64955         <inttypes.h> defines strtoumax as a macro (and not as a
64956         function).
64957
64958 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64959
64960         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
64961         that we can shift, multiply and divide unsigned long long
64962         values; Ultrix cc can't do it.
64963
64964 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64965
64966         * m4/mktime.m4: New file, which is a preview of what should appear
64967         in the next public autoconf release.
64968
64969 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64970
64971         * m4/lfs.m4: Remove this file.
64972         * m4/largefile.m4: New file.  It contains the old contents of
64973         lfs.m4, except that all names with prefix AC_LFS have been
64974         changed to use the prefix AC_SYS_LARGEFILE instead, to be
64975         compatible with future autoconf versions.  Also, some minor m4
64976         quoting problems have been fixed.
64977
64978 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64979
64980         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
64981         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
64982         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
64983         and simplify the shell code.
64984
64985 1999-08-01  Jim Meyering  <meyering@ascend.com>
64986
64987         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
64988         m4.
64989
64990 1999-07-20  Jim Meyering  <meyering@ascend.com>
64991
64992         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
64993
64994 1999-07-15  Jim Meyering  <meyering@ascend.com>
64995
64996         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
64997
64998 1999-05-22  Jim Meyering  <meyering@ascend.com>
64999
65000         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
65001
65002 1999-05-20  Jim Meyering  <meyering@ascend.com>
65003
65004         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
65005         Add a colon after each `then' in case $4 is empty.
65006
65007 1999-05-16  Jim Meyering  <meyering@ascend.com>
65008
65009         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
65010
65011 1999-05-10  Jim Meyering  <meyering@ascend.com>
65012
65013         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
65014
65015         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
65016         AC_FUNC_MKTIME.
65017
65018 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
65019
65020         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
65021
65022 1999-05-04  Paul Eggert  <eggert@twinsun.com>
65023
65024         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
65025         not CPPFLAGS, so that linking works correctly in IRIX.
65026
65027 1999-04-30  Paul Eggert  <eggert@twinsun.com>
65028
65029         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
65030
65031 1999-04-20  Paul Eggert  <eggert@twinsun.com>
65032
65033         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
65034         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
65035         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
65036         jm_AC_TYPE_UNSIGNED_LONG_LONG.
65037         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
65038
65039         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
65040
65041 1999-04-20  Jim Meyering  <meyering@ascend.com>
65042
65043         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
65044         AC_REPLACE xstroull if necessary.  From Paul Eggert.
65045         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
65046
65047 1999-04-18  Jim Meyering  <meyering@ascend.com>
65048
65049         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
65050         * m4/jm-macros.m4: Use it.
65051
65052 1999-04-06  Jim Meyering  <meyering@ascend.com>
65053
65054         * m4/strftime.m4: Remove test for %f.
65055
65056 1999-03-29  Jim Meyering  <meyering@ascend.com>
65057
65058         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
65059         superset of the AC_TYPE_* checks in the textutils, fileutils,
65060         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
65061         AC_TYPE_PID_T.
65062
65063 1999-03-28  Jim Meyering  <meyering@ascend.com>
65064
65065         * m4/jm-macros.m4: Define GNU_PACKAGE here.
65066         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
65067         replaced e.g., in the *.sh files of the sh-utils.
65068
65069 1999-03-20  Jim Meyering  <meyering@ascend.com>
65070
65071         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
65072         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
65073         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
65074
65075 1999-03-19  Jim Meyering  <meyering@ascend.com>
65076
65077         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
65078
65079 1999-03-12  Jim Meyering  <meyering@ascend.com>
65080
65081         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
65082
65083 1999-03-07  Jim Meyering  <meyering@ascend.com>
65084
65085         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
65086         declared.
65087
65088 1999-02-17  Jim Meyering  <meyering@ascend.com>
65089
65090         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
65091         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
65092
65093 1999-02-07  Jim Meyering  <meyering@ascend.com>
65094
65095         * m4/group-member.m4: New file -- extracted from sh-utils'
65096         configure.in.
65097
65098         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
65099         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
65100
65101 1999-02-06  Jim Meyering  <meyering@ascend.com>
65102
65103         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
65104         * m4/fnmatch.m4: Likewise.
65105         * m4/getgroups.m4: Likewise.
65106         * m4/lstat.m4: Likewise.
65107         * m4/malloc.m4: Likewise.
65108         * m4/putenv.m4: Likewise.
65109         * m4/realloc.m4: Likewise.
65110         * m4/regex.m4: Likewise.
65111         * m4/stat.m4: Likewise.
65112         * m4/strftime.m4: Likewise.
65113         Suggestion from Alain Magloire.
65114
65115         * m4/chown.m4: Use `.$ac_objext', not `.o'.
65116         * m4/fnmatch.m4: Likewise.
65117         * m4/getgroups.m4: Likewise.
65118         * m4/getline.m4: Likewise.
65119         * m4/lstat.m4: Likewise.
65120         * m4/malloc.m4: Likewise.
65121         * m4/memcmp.m4: Likewise.
65122         * m4/putenv.m4: Likewise.
65123         * m4/realloc.m4: Likewise.
65124         * m4/regex.m4: Likewise.
65125         * m4/stat.m4: Likewise.
65126         * m4/strftime.m4: Likewise.
65127         Suggestion from Alain Magloire.
65128
65129         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
65130         an argument.
65131
65132         * m4/regex.m4: Add a run-time Test for proper operation of
65133         re_compile_pattern.
65134
65135 1999-01-31  Jim Meyering  <meyering@ascend.com>
65136
65137         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
65138
65139 1999-01-30  Jim Meyering  <meyering@ascend.com>
65140
65141         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
65142
65143         * m4/jm-mktime.m4: Make this a wrapper around the official
65144         AM_FUNC_MKTIME rather than my private copy, now that the official one
65145         is up to date.
65146         * m4/mktime.m4: Remove file.
65147
65148         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
65149         * m4/uptime.m4: Likewise.
65150         * m4/uintmax_t.m4: Likewise.
65151
65152 1999-01-28  Jim Meyering  <meyering@ascend.com>
65153
65154         * m4/jm-macros.m4: Use jm_AFS.
65155         * m4/afs.m4: New file (from fileutils' configure.in).
65156
65157         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
65158         * m4/chown.m4: Likewise.
65159         * m4/d-ino.m4: Likewise.
65160         * m4/d-type.m4: Likewise.
65161         * m4/fnmatch.m4: Likewise.
65162         * m4/getgroups.m4: Likewise.
65163         * m4/gettext.m4: Likewise.
65164         * m4/jm-mktime.m4: Likewise.
65165         * m4/jm-winsz2.m4: Likewise.
65166         * m4/lcmessage.m4: Likewise.
65167         * m4/ls-mntd-fs.m4: Likewise.
65168         * m4/malloc.m4: Likewise.
65169         * m4/memcmp.m4: Likewise.
65170         * m4/putenv.m4: Likewise.
65171         * m4/realloc.m4: Likewise.
65172         * m4/st_mtim.m4: Likewise.
65173         * m4/strftime.m4: Likewise.
65174
65175 1999-01-16  Jim Meyering  <meyering@ascend.com>
65176
65177         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
65178         (ARGMATCH_DIE_DECL): Define.
65179
65180 1999-01-12  Jim Meyering  <meyering@ascend.com>
65181
65182         * m4/Makefile.am.in: Rewrite to avoid using fmt.
65183         Reported by Lars Hecking.
65184
65185 1999-01-10  Jim Meyering  <meyering@ascend.com>
65186
65187         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
65188         gross kludge.
65189         * m4/inttypes_h.m4: Likewise.
65190         * m4/lstat.m4: Likewise.
65191         * m4/malloc.m4: Likewise.
65192         * m4/readdir.m4: Likewise.
65193         * m4/realloc.m4: Likewise.
65194         * m4/st_dm_mode.m4: Likewise.
65195         * m4/stat.m4: Likewise.
65196         * m4/utimbuf.m4: Likewise.
65197         * m4/utimes.m4: Likewise.
65198
65199         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
65200         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
65201         comments in config.h.in are meaningful.
65202
65203         * m4/jm-macros.m4: Require autoconf-2.13 here.
65204
65205         * m4/regex.m4: By default, don't use the included regex.c on systems
65206         with glibc 2.  Suggestion from Uli Drepper.
65207
65208 1999-01-02  Jim Meyering  <meyering@ascend.com>
65209
65210         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
65211
65212 1998-12-18  Jim Meyering  <meyering@ascend.com>
65213
65214         * m4/Makefile.am.in (Makefile.am): Simplify rule.
65215         Based on a suggestion from Lars Hecking.
65216
65217 1998-11-16  Paul Eggert  <eggert@twinsun.com>
65218
65219         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
65220
65221 1998-11-16  Jim Meyering  <meyering@ascend.com>
65222
65223         * m4/lfs.m4: Double-quote the `uname...` expression.
65224
65225 1998-11-14  Jim Meyering  <meyering@ascend.com>
65226
65227         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
65228         * m4/stat.m4: Likewise.
65229
65230 1998-11-03  Jim Meyering  <meyering@ascend.com>
65231
65232         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
65233         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
65234
65235 1998-10-18  Jim Meyering  <meyering@ascend.com>
65236
65237         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
65238
65239 1998-10-17  Jim Meyering  <meyering@ascend.com>
65240
65241         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
65242         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
65243         calls for those previously hard-coded headers.  Instead, take a new
65244         parameter.
65245         (jm_CHECK_DECLARATIONS): Reflect interface change.
65246         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
65247         (jm_CHECK_DECL_LOCALTIME_R): New macro.
65248
65249         * m4/mktime.m4: Test for spring-forward gap before long-running test.
65250
65251 1998-10-14  Jim Meyering  <meyering@ascend.com>
65252
65253         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
65254         instead of "TZ=America/Vancouver".  From Paul Eggert.
65255
65256 1998-10-11  Jim Meyering  <meyering@ascend.com>
65257
65258         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
65259         This adds a test for a recently added compatibility fix for mktime.c.
65260         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
65261
65262 1998-09-27  Jim Meyering  <meyering@ascend.com>
65263
65264         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
65265
65266         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
65267         ../configure.in, including a change from Gordon Matzigkeit to allow
65268         cross-compiling for the Hurd.
65269
65270         * m4/glibc.m4: New file/macro to test for the GNU C Library
65271         versions 1 and 2.  From Gordon Matzigkeit.
65272         Indent.
65273
65274 1998-09-21  Jim Meyering  <meyering@ascend.com>
65275
65276         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
65277
65278 1998-08-18  Paul Eggert  <eggert@twinsun.com>
65279
65280         Port nanosecond-resolution times to UnixWare 2.1.2 and
65281         pedantic Solaris 2.6.
65282
65283         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
65284         AC_STRUCT_ST_MTIM.
65285         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
65286         Generate name of ns member, instead of just 1 or undef.
65287         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
65288
65289 1998-08-15  Jim Meyering  <meyering@ascend.com>
65290
65291         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
65292         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
65293         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
65294         instead of jm_TYPE_SSIZE_T.
65295
65296 1998-08-12  Jim Meyering  <meyering@ascend.com>
65297
65298         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
65299
65300 1998-08-02  Jim Meyering  <meyering@ascend.com>
65301
65302         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
65303         in acconfig.h manually.
65304
65305 1998-07-31  Paul Eggert  <eggert@twinsun.com>
65306
65307         * m4/st_mtim.m4: New file.
65308
65309 1998-07-28  Jim Meyering  <meyering@ascend.com>
65310
65311         * m4/utimes.m4: Undef stat.
65312
65313 1998-07-25  Jim Meyering  <meyering@ascend.com>
65314
65315         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
65316         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
65317
65318 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
65319
65320         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
65321         uid and gid actually remain unchanged.
65322
65323 1998-07-07  Jim Meyering  <meyering@ascend.com>
65324
65325         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
65326
65327 1998-07-04  Jim Meyering  <meyering@ascend.com>
65328
65329         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
65330         to prove that this macro can be used in packages without regex.c.
65331
65332 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
65333
65334         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
65335         is to be used.
65336
65337 1998-07-03  Jim Meyering  <meyering@ascend.com>
65338
65339         * m4/gettext.m4: Add -lintl if it's found to be necessary.
65340
65341         * m4/gettext.m4: New file -- from gettext-0.10.35.
65342         * m4/lcmessage.m4: Likewise.
65343         * m4/progtest.m4: Likewise.
65344
65345         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
65346         * m4/jm-macros.m4: Require the new macro.
65347
65348 1998-06-29  Jim Meyering  <meyering@ascend.com>
65349
65350         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
65351         for the definition of NGROUPS (used in a system header included
65352         by sys/mount.h).
65353
65354 1998-06-28  Jim Meyering  <meyering@ascend.com>
65355
65356         * m4/ls-mntd-fs.m4: New file.
65357         * m4/fstypename.m4: New file.
65358
65359         * m4/jm-macros.m4: Require the new macro.
65360         * m4/jm-glibc-io.m4: New file.
65361
65362 1998-05-19  Jim Meyering  <meyering@ascend.com>
65363
65364         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
65365         * m4/lchown.m4: New file.
65366
65367         * m4/Makefile.am.in: New file.
65368         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
65369
65370 1998-05-14  Jim Meyering  <meyering@ascend.com>
65371
65372         * m4/Makefile.am (EXTRA_DIST): Add them.
65373         * m4/jm-macros.m4: New file.
65374         * m4/utimbuf.m4: New file.
65375
65376 1998-05-12  Jim Meyering  <meyering@ascend.com>
65377
65378         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
65379
65380 1998-05-11  Jim Meyering  <meyering@ascend.com>
65381
65382         * m4/isc-posix.m4: New file.
65383
65384 1998-05-10  Jim Meyering  <meyering@ascend.com>
65385
65386         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
65387
65388 1998-05-09  Jim Meyering  <meyering@ascend.com>
65389
65390         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
65391         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
65392         with automake.
65393
65394         * m4/ssize_t.m4: New file.
65395         * m4/mktime.m4: Remove file -- the new automake has this now.
65396
65397 1998-04-26  Jim Meyering  <meyering@ascend.com>
65398
65399         * m4/assert.m4: New file.
65400         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
65401
65402 1998-04-05  Jim Meyering  <meyering@ascend.com>
65403
65404         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
65405         (jm_PREREQ): Use it here.
65406
65407 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
65408
65409         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
65410         in acconfig.h.
65411
65412 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
65413
65414         * m4/prereq.m4: New file.
65415         * m4/error.m4: New file.
65416         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
65417
65418 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
65419
65420         * m4/getline.m4: Don't set am_cv_func_working_getline before the
65421         cache-check for the same variable -- that defeated the purpose of
65422         the test; the test program was never run.  This was a problem only
65423         on systems with losing getline functions -- HP-UX 10.20 is one.
65424         Reported by Bjorn Helgaas.
65425
65426 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
65427
65428         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
65429
65430 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
65431
65432         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
65433
65434         * m4/const.m4: New file.  Use an initializer in this declaration
65435         typedef int charset[2]; const charset x;
65436         Reported by Bob Glickstein.
65437
65438 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
65439
65440         * m4/chown.m4: Fix reversed types on -1 args to chown.
65441         From Kaveh Ghazi.
65442
65443 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
65444
65445         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
65446         Add lseek and memchr.
65447
65448         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
65449         T.E.Dickey <dickey@clark.net> said that some older preprocessors
65450         have a 20-character limit on names.
65451
65452 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
65453
65454         * m4/inttypes_h.m4: New file.
65455         * m4/uintmax_t.m4: New file.
65456         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
65457
65458
65459         -----
65460
65461         Local Variables:
65462         coding: utf-8
65463         End:
65464
65465         Copyright (C) 1997-2010 Free Software Foundation, Inc.
65466
65467         Copying and distribution of this file, with or without
65468         modification, are permitted provided the copyright notice
65469         and this notice are preserved.