Make the multithread modules work on Cygwin 1.7.2.
[pspp] / ChangeLog
1 2010-04-05  Bruno Haible  <bruno@clisp.org>
2
3         Make the multithread modules work on Cygwin 1.7.2.
4         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
5         imported symbols can be declared weak, so that it returns "no" on
6         Cygwin 1.7.2.
7
8 2010-04-05  Bruno Haible  <bruno@clisp.org>
9
10         Use the module 'strncat'.
11         * modules/unistr/u8-strncat (Depends-on): Add strncat.
12
13         Tests for module 'strncat'.
14         * modules/strncat-tests: New file.
15         * tests/test-strncat.c: New file.
16
17         New module 'strncat'.
18         * lib/string.in.h (strncat): New declaration.
19         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
20         * m4/strncat.m4: New file, based on m4/memchr.m4.
21         * modules/strncat: New file.
22         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
23         is declared.
24         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
25         REPLACE_STRNCAT.
26         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
27         REPLACE_STRNCAT.
28         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
29         module.
30         * tests/test-string-c++.cc: Check signature of strncat.
31
32 2010-04-05  Jim Meyering  <meyering@redhat.com>
33
34         xstrtoumax-tests: convert to use init.sh
35         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
36         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
37         Use Exit, not exit.
38         Remove uses of $EXEEXT and "./" to run a program in the current dir.
39
40         xstrtoimax-tests: convert to use init.sh
41         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
42         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
43         Use Exit, not exit.
44         Remove uses of $EXEEXT and "./" to run a program in the current dir.
45
46 2010-04-05  Bruno Haible  <bruno@clisp.org>
47
48         sys_socket: Avoid #define replacements in C++ mode.
49         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
50         warning to the function if possible, rather than #defining the symbol
51         to a dysfunctional alias.
52
53 2010-04-05  Bruno Haible  <bruno@clisp.org>
54
55         fseeko: Fix C++ test error on mingw.
56         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
57         gl_FUNC_FSEEKO.
58         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
59         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
60         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
61         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
62
63 2010-04-05  Bruno Haible  <bruno@clisp.org>
64
65         duplocale: Improve test output.
66         * tests/test-duplocale.c (main): Print reason for skipped test.
67
68 2010-04-05  Bruno Haible  <bruno@clisp.org>
69
70         Assume rmdir exists.
71         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
72         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
73
74 2010-04-05  Bruno Haible  <bruno@clisp.org>
75
76         Fix link error on Solaris 8 with cc.
77         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
78
79 2010-04-05  Bruno Haible  <bruno@clisp.org>
80
81         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
82         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
83
84 2010-04-05  Bruno Haible  <bruno@clisp.org>
85
86         vasprintf: Update documentation.
87         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
88
89 2010-04-05  Bruno Haible  <bruno@clisp.org>
90
91         ptsname: Improve test.
92         * tests/test-ptsname.c (main): Also try the various master names of BSD
93         systems.
94
95 2010-04-05  Bruno Haible  <bruno@clisp.org>
96
97         memchr: Avoid a possible C++ test error.
98         * lib/string.in.h (memchr): Provide declaration if function is missing.
99         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
100         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
101         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
102         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
103
104 2010-04-05  Bruno Haible  <bruno@clisp.org>
105
106         strtok_r: Improve idiom.
107         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
108         AC_LIBOBJ is used.
109
110 2010-04-05  Bruno Haible  <bruno@clisp.org>
111
112         strdup: Improve idiom.
113         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
114         AC_LIBOBJ is used.
115         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
116         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
117         when AC_LIBOBJ is used.
118
119 2010-04-05  Bruno Haible  <bruno@clisp.org>
120
121         mbsinit, mbrtowc, wcrtomb: Improve idioms.
122         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
123         don't set REPLACE_MBSINIT to 1.
124         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
125         don't set REPLACE_MBRTOWC to 1.
126         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
127         exist, don't set REPLACE_MBSRTOWCS to 1.
128         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
129         exist, don't set REPLACE_MBSNRTOWCS to 1.
130         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
131         don't set REPLACE_WCRTOMB to 1.
132         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
133         exist, don't set REPLACE_WCSRTOMBS to 1.
134         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
135         exist, don't set REPLACE_WCSNRTOMBS to 1.
136
137 2010-04-05  Bruno Haible  <bruno@clisp.org>
138
139         ldexpl: Improve idiom.
140         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
141         make sure to set HAVE_DECL_LDEXPL to 0.
142
143 2010-04-05  Jim Meyering  <meyering@redhat.com>
144
145         xstrtol-tests: convert to use init.sh
146         * modules/xstrtol-tests (Files): Add tests/init.sh.
147         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
148         Use Exit, not exit.
149         Remove uses of $EXEEXT and "./" to run a program in the current dir.
150
151         atexit-tests: convert to use init.sh
152         * modules/atexit-tests (Files): Add tests/init.sh.
153         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
154         Use Exit, not exit.
155         Remove uses of $EXEEXT and "./" to run a program in the current dir.
156
157         init.sh: fix typo
158         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
159
160         init.sh: make it easier for a test script to write to the tty, ...
161         when using automake's parallel-tests mode.
162         * tests/init.sh (stderr_fileno_): Define overridable variable.
163         (warn_): New function, to use it.
164         (fail_, skip_, framework_failure_): Use warn_.
165
166 2010-04-04  Bruno Haible  <bruno@clisp.org>
167
168         btowc: Avoid warning.
169         * lib/btowc.c: Include <stdlib.h>.
170         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
171
172 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
173             Bruno Haible  <bruno@clisp.org>
174
175         wchar: Port to NetBSD 1.5.
176         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
177         * lib/wctype.in.h (WEOF): Likewise.
178
179 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
180             Bruno Haible  <bruno@clisp.org>
181
182         Port extended stdio to NetBSD 1.5.
183         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
184         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
185         older.
186
187 2010-04-04  Bruno Haible  <bruno@clisp.org>
188
189         string: Remove unused substitution.
190         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
191         HAVE_DECL_STRERROR.
192         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
193
194 2010-04-04  Bruno Haible  <bruno@clisp.org>
195
196         strtod: Avoid a possible C++ test error.
197         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
198         set REPLACE_STRTOD.
199
200 2010-04-04  Bruno Haible  <bruno@clisp.org>
201
202         strerror: Update documentation.
203         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
204
205 2010-04-04  Bruno Haible  <bruno@clisp.org>
206
207         stdio: Fix some C++ test errors on Solaris 8 with GCC.
208         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
209         _GL_CXXALIAS_SYS_CAST.
210
211 2010-04-04  Bruno Haible  <bruno@clisp.org>
212
213         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
214         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
215         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
216         REPLACE_FREXPL to 1.
217         * doc/posix-functions/frexpl.texi: Update documentation.
218
219 2010-04-04  Bruno Haible  <bruno@clisp.org>
220
221         math: Fix some C++ test errors on Solaris 8 and Cygwin.
222         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
223
224 2010-04-04  Bruno Haible  <bruno@clisp.org>
225
226         Implement nanosleep for native Windows.
227         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
228
229 2010-04-04  Bruno Haible  <bruno@clisp.org>
230
231         math: Fix some C++ test errors on Solaris 8.
232         * lib/math.in.h (truncf, trunc): Use simpler idiom.
233
234 2010-04-04  Bruno Haible  <bruno@clisp.org>
235
236         math: Fix some C++ test errors on Cygwin.
237         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
238         truncl): Provide declaration if the system does not have it.
239         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
240         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
241         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
242         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
243         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
244         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
245         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
246         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
247         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
248         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
249         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
250         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
251         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
252         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
253         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
254         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
255         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
256         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
257         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
258         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
259         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
260         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
261
262 2010-04-04  Bruno Haible  <bruno@clisp.org>
263
264         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
265         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
266         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
267         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
268         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
269         * m4/isinf.m4 (gl_ISINF): Likewise.
270         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
271
272 2010-04-04  Bruno Haible  <bruno@clisp.org>
273
274         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
275         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
276
277 2010-04-04  Bruno Haible  <bruno@clisp.org>
278
279         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
280         * modules/tmpfile (configure.ac): Update.
281
282         tmpfile: Fix C++ test error on mingw.
283         * lib/stdio.in.h (tmpfile): New declaration.
284         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
285         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
286         * modules/tmpfile (Depends-on): Add stdio.
287         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
288         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
289         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
290         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
291         REPLACE_TMPFILE.
292         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
293
294 2010-04-04  Bruno Haible  <bruno@clisp.org>
295
296         ioctl: Fix C++ test error on mingw.
297         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
298         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
299         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
300
301 2010-04-03  Bruno Haible  <bruno@clisp.org>
302
303         wcwidth: Fix C++ test error on mingw.
304         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
305         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
306         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
307
308 2010-04-03  Bruno Haible  <bruno@clisp.org>
309
310         nanosleep: Fix C++ test error on mingw.
311         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
312         * lib/time.in.h (nanosleep): Use modern idiom.
313         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
314         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
315         REPLACE_NANOSLEEP to 1.
316         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
317         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
318
319 2010-04-03  Bruno Haible  <bruno@clisp.org>
320
321         strptime: Fix C++ test error on mingw.
322         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
323         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
324         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
325         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
326         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
327         not REPLACE_STRPTIME.
328         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
329         REPLACE_STRPTIME.
330
331 2010-04-03  Bruno Haible  <bruno@clisp.org>
332
333         timegm: Fix C++ test error on mingw.
334         * lib/time.in.h (timegm): Use modern idiom.
335         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
336         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
337         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
338         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
339
340 2010-04-03  Bruno Haible  <bruno@clisp.org>
341
342         timegm: Assume declaration if function exists.
343         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
344         if it exists. Don't clobber ac_cv_func_timegm.
345
346 2010-04-03  Bruno Haible  <bruno@clisp.org>
347
348         time_r: Fix C++ test error on mingw.
349         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
350         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
351         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
352         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
353         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
354
355 2010-04-03  Bruno Haible  <bruno@clisp.org>
356
357         time_r: Minor updates.
358         * modules/time_r (Description): Mention the provided functions.
359         * lib/time_r.c: Don't include <string.h>.
360         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
361         * doc/posix-functions/localtime_r.texi: Likewise.
362
363 2010-04-03  Bruno Haible  <bruno@clisp.org>
364
365         time: Fix regression introduced on 2010-03-08.
366         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
367         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
368
369 2010-04-03  Jim Meyering  <meyering@redhat.com>
370
371         maint.mk: don't silently disable project-specific syntax-check rules
372         * top/maint.mk (_prohibit_regexp): Define, to help people realize
373         that they need to convert their project-specific syntax-check rules
374         to use the new _sc_search_regexp.
375
376 2010-04-03  Bruno Haible  <bruno@clisp.org>
377
378         fchdir: Fix regression introduced on 2010-03-08.
379         * lib/unistd.in.h (fchdir): Fix declaration.
380         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
381         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
382         REPLACE_FCHDIR.
383         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
384         REPLACE_FCHDIR.
385
386 2010-04-03  Bruno Haible  <bruno@clisp.org>
387
388         getpagesize: Fix C++ test error on mingw.
389         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
390         system does not declare the function.
391         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
392         declared.
393         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
394         HAVE_DECL_GETPAGESIZE.
395         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
396
397 2010-04-03  Bruno Haible  <bruno@clisp.org>
398
399         stdio: Make C++ tests work on mingw.
400         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
401         does not declare the function.
402
403 2010-04-03  Bruno Haible  <bruno@clisp.org>
404
405         ftello: Fix C++ test error on mingw.
406         * lib/stdio.in.h (ftello): Use modern idiom.
407         * lib/ftello.c (ftello): Renamed from rpl_ftello.
408         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
409         is missing and that it needs to be replaced.
410         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
411         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
412         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
413
414 2010-04-03  Bruno Haible  <bruno@clisp.org>
415
416         fseeko: Fix C++ test error on mingw.
417         * lib/stdio.in.h (fseeko): Use modern idiom.
418         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
419         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
420         is missing and that it needs to be replaced.
421         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
422         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
423         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
424
425 2010-04-03  Bruno Haible  <bruno@clisp.org>
426
427         mkstemp: Fix C++ test error on mingw.
428         * lib/stdlib.in.h (mkstemp): Use modern idiom.
429         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
430         function is missing and that it needs to be replaced.
431         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
432         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
433
434 2010-04-03  Bruno Haible  <bruno@clisp.org>
435
436         stpncpy: Fix C++ test error on mingw.
437         * lib/string.in.h (stpncpy): Use modern idiom.
438         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
439         function is missing and that it needs to be replaced.
440         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
441         REPLACE_STPNCPY.
442         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
443
444 2010-04-03  Bruno Haible  <bruno@clisp.org>
445
446         sys_stat: Fix C++ test error on mingw.
447         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
448         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
449
450 2010-04-03  Bruno Haible  <bruno@clisp.org>
451
452         pty: Update doc.
453         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
454
455 2010-04-03  Bruno Haible  <bruno@clisp.org>
456
457         unistd: Fix C++ test error on mingw.
458         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
459
460 2010-04-03  Bruno Haible  <bruno@clisp.org>
461
462         Update doc regarding mingw.
463         * doc/glibc-functions/openpty.texi: Update regarding mingw.
464         * doc/glibc-functions/login_tty.texi: Likewise.
465         * doc/glibc-functions/forkpty.texi: Likewise.
466
467 2010-04-03  Bruno Haible  <bruno@clisp.org>
468
469         stdlib: Avoid compilation failure of c-strtold on mingw.
470         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
471
472 2010-04-03  Bruno Haible  <bruno@clisp.org>
473
474         locale: Make C++ tests work on Cygwin and mingw.
475         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
476         cannot provide the function.
477         Reported by Simon Josefsson.
478
479 2010-04-03  Bruno Haible  <bruno@clisp.org>
480
481         localename: Port to MacOS X 10.6.
482         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
483         memory layout of the locales in MacOS X 10.6 as well.
484         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
485
486 2010-04-02  Bruno Haible  <bruno@clisp.org>
487
488         gnulib-tool: Ensure that long-running tests are executed last.
489         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
490         running tests after the one for the other tests.
491
492 2010-04-02  Bruno Haible  <bruno@clisp.org>
493
494         gnulib-tool: Ensure the tests in the main directory are executed first.
495         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
496         start with the current directory.
497
498 2010-04-02  Bruno Haible  <bruno@clisp.org>
499
500         Tests for module 'havelib', moved here from GNU gettext.
501         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
502         modifications.
503         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
504         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
505         with modifications.
506         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
507         modifications.
508         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
509         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
510         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
511         with modifications.
512         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
513         with modifications.
514         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
515         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
516         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
517         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
518         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
519         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
520         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
521         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
522         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
523         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
524         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
525         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
526         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
527         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
528         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
529         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
530         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
531         with modifications.
532         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
533         with modifications.
534         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
535         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
536         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
537         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
538         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
539         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
540         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
541         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
542         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
543         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
544         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
545         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
546         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
547         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
548         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
549         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
550         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
551         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
552         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
553         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
554         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
555         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
556         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
557         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
558         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
559         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
560         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
561         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
562         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
563         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
564         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
565         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
566         * tests/havelib/rpathx/rpathx.c: New file, from
567         gettext/autoconf-lib-link.
568         * tests/havelib/rpathx/Makefile.am: New file, from
569         gettext/autoconf-lib-link.
570         * tests/havelib/rpathx/configure.ac: New file, from
571         gettext/autoconf-lib-link with modifications.
572         * tests/havelib/rpathy/rpathy.c: New file, from
573         gettext/autoconf-lib-link.
574         * tests/havelib/rpathy/Makefile.am: New file, from
575         gettext/autoconf-lib-link.
576         * tests/havelib/rpathy/configure.ac: New file, from
577         gettext/autoconf-lib-link with modifications.
578         * tests/havelib/rpathz/rpathz.c: New file, from
579         gettext/autoconf-lib-link.
580         * tests/havelib/rpathz/Makefile.am: New file, from
581         gettext/autoconf-lib-link.
582         * tests/havelib/rpathz/configure.ac: New file, from
583         gettext/autoconf-lib-link with modifications.
584         * tests/havelib/rpathlx/usex.c: New file, from
585         gettext/autoconf-lib-link.
586         * tests/havelib/rpathlx/Makefile.am: New file, from
587         gettext/autoconf-lib-link.
588         * tests/havelib/rpathlx/configure.ac: New file, from
589         gettext/autoconf-lib-link with modifications.
590         * tests/havelib/rpathly/usey.c: New file, from
591         gettext/autoconf-lib-link.
592         * tests/havelib/rpathly/Makefile.am: New file, from
593         gettext/autoconf-lib-link.
594         * tests/havelib/rpathly/configure.ac: New file, from
595         gettext/autoconf-lib-link with modifications.
596         * tests/havelib/rpathlz/usez.c: New file, from
597         gettext/autoconf-lib-link.
598         * tests/havelib/rpathlz/Makefile.am: New file, from
599         gettext/autoconf-lib-link.
600         * tests/havelib/rpathlz/configure.ac: New file, from
601         gettext/autoconf-lib-link with modifications.
602         * tests/havelib/rpathlyx/usey.c: New file, from
603         gettext/autoconf-lib-link.
604         * tests/havelib/rpathlyx/Makefile.am: New file, from
605         gettext/autoconf-lib-link.
606         * tests/havelib/rpathlyx/configure.ac: New file, from
607         gettext/autoconf-lib-link with modifications.
608         * tests/havelib/rpathlzyx/usez.c: New file, from
609         gettext/autoconf-lib-link.
610         * tests/havelib/rpathlzyx/Makefile.am: New file, from
611         gettext/autoconf-lib-link.
612         * tests/havelib/rpathlzyx/configure.ac: New file, from
613         gettext/autoconf-lib-link with modifications.
614         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
615         with modifications.
616
617 2010-04-02  Bruno Haible  <bruno@clisp.org>
618
619         gnulib-tool: Create distributed built sources also for the tests.
620         * gnulib-tool (func_create_testdir): Also generate distributed built
621         sources in the tests directory.
622
623 2010-04-02  Bruno Haible  <bruno@clisp.org>
624
625         gnulib-tool: Obey user's environment variables.
626         * gnulib-tool (func_create_testdir): When creating built sources,
627         respect the environment variables for autoconf, automake, etc. given by
628         the user.
629
630 2010-04-02  Bruno Haible  <bruno@clisp.org>
631
632         gnulib-tool: Provide the value of --m4-base to modules.
633         * gnulib-tool (func_import, func_create_testdir): Emit a definition
634         of gl_m4_base.
635
636 2010-04-02  Eric Blake  <eblake@redhat.com>
637
638         maint.mk: fix some fallout
639         * NEWS: Document the incompatible change, and its effect on cfg.mk.
640         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
641
642 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
643
644         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
645         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
646         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
647         (sc_cast_of_x_alloc_return_value): Likewise.
648         (sc_cast_of_alloca_return_value): Likewise.
649         (sc_space_tab): Likewise.
650         (sc_prohibit_atoi_atof): Likewise.
651         (sc_prohibit_magic_number_exit): Likewise.
652         (sc_error_exit_success): Likewise.
653         (sc_file_system): Likewise.
654         (sc_prohibit_have_config_h): Likewise.
655         (sc_require_config_h): Likewise.
656         (sc_prohibit_HAVE_MBRTOWC): Likewise.
657         (sc_obsolete_symbols): Likewise.
658         (sc_changelog): Likewise.
659         (sc_program_name): Likewise.
660         (sc_the_the): Likewise.
661         (sc_trailing_blank): Likewise.
662         (sc_two_space_separator_in_usage): Likewise.
663         (sc_useless_cpp_parens): Likewise.
664         (sc_GPL_version): Likewise.
665         (sc_GFDL_version): Likewise.
666         (sc_texinfo_acronym): Likewise.
667         (sc_prohibit_cvs_keyword): Likewise.
668         (sc_prohibit_stat_st_blocks): Likewise.
669         (sc_prohibit_S_IS_definition): Likewise.
670         (sc_redundant_const): Likewise.
671         (sc_makefile_TAB_only_indentation): Likewise.
672         (sc_m4_quote_check): Likewise.
673         (sc_makefile_path_separator_check): Likewise.
674         (sc_copyright_check): Likewise.
675         (sc_Wundef_boolean): Likewise.
676         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
677
678         maint.mk: match 0 or more whitespace-before-function-call '('
679         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
680         that have zero or two-and-more spaces between the function name
681         and the open parenthesis.
682         (sc_error_message_warn_fatal): Likewise.
683         (sc_error_message_uppercase): Likewise.
684         (sc_error_message_period): Likewise.
685
686 2010-03-31  Eric Blake  <eblake@redhat.com>
687
688         maint.mk: check for [ as well as test
689         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
690         Based on a libvirt report by Matthias Bolte.
691
692         gnumakefile: don't squelch _version output
693         * top/GNUmakefile (_version): Create one-shot dependency rather
694         than using $(shell) when version must be regenerated.
695         (_autoreconf): Run verbosely, by default.
696
697         sys_time: avoid compiler warnings
698         * lib/sys_time.in.h (includes): Ensure gcc pragma is
699         unconditional, fixing regression from 2010-03-29.
700         Reported by Simon Josefsson.
701
702 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
703
704         maint.mk: s/_header_without_use/_sc_header_without_use/
705         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
706         (sc_prohibit_assert_without_use): Use the new name.
707         (sc_prohibit_close_stream_without_use): Likewise.
708         (sc_prohibit_getopt_without_use): Likewise.
709         (sc_prohibit_quotearg_without_use): Likewise.
710         (sc_prohibit_quote_without_use): Likewise.
711         (sc_prohibit_long_options_without_use): Likewise.
712         (sc_prohibit_inttostr_without_use): Likewise.
713         (sc_prohibit_ignore_value_without_use): Likewise.
714         (sc_prohibit_error_without_use): Likewise.
715         (sc_prohibit_xalloc_without_use): Likewise.
716         (sc_prohibit_hash_without_use): Likewise.
717         (sc_prohibit_hash_pjw_without_use): Likewise.
718         (sc_prohibit_safe_read_without_use): Likewise.
719         (sc_prohibit_argmatch_without_use): Likewise.
720         (sc_prohibit_canonicalize_without_use): Likewise.
721         (sc_prohibit_root_dev_ino_without_use): Likewise.
722         (sc_prohibit_openat_without_use): Likewise.
723         (sc_prohibit_c_ctype_without_use): Likewise.
724         (sc_prohibit_signal_without_use): Likewise.
725         (sc_prohibit_intprops_without_use): Likewise.
726
727 2010-03-30  Eric Blake  <eblake@redhat.com>
728
729         maint: improve module indicators
730         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
731         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
732         columns, and avoid extra macro expansion.
733
734         fdopendir: work around FreeBSD bug
735         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
736         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
737         * modules/dirent (Makefile.am): Substitute it.
738         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
739         declaration.
740         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
741         fix.
742         Reported by Christian Weisgerber <naddy@mips.inka.de>.
743
744 2010-03-29  Bruno Haible  <bruno@clisp.org>
745
746         Emit #pragma system_header after the inclusion guard, not before.
747         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
748         guard that spans the entire file, not before. This enables an
749         optimization in GCC's preprocessor.
750         * lib/ctype.in.h: Likewise.
751         * lib/dirent.in.h: Likewise.
752         * lib/errno.in.h: Likewise.
753         * lib/float.in.h: Likewise.
754         * lib/getopt.in.h: Likewise.
755         * lib/iconv.in.h: Likewise.
756         * lib/langinfo.in.h: Likewise.
757         * lib/locale.in.h: Likewise.
758         * lib/math.in.h: Likewise.
759         * lib/netdb.in.h: Likewise.
760         * lib/netinet_in.in.h: Likewise.
761         * lib/pty.in.h: Likewise.
762         * lib/sched.in.h: Likewise.
763         * lib/se-selinux.in.h: Likewise.
764         * lib/search.in.h: Likewise.
765         * lib/spawn.in.h: Likewise.
766         * lib/stdarg.in.h: Likewise.
767         * lib/stdint.in.h: Likewise.
768         * lib/string.in.h: Likewise.
769         * lib/strings.in.h: Likewise.
770         * lib/sys_file.in.h: Likewise.
771         * lib/sys_ioctl.in.h: Likewise.
772         * lib/sys_time.in.h: Likewise.
773         * lib/sys_times.in.h: Likewise.
774         * lib/sys_utsname.in.h: Likewise.
775         * lib/sys_wait.in.h: Likewise.
776         * lib/sysexits.in.h: Likewise.
777         * lib/wctype.in.h: Likewise.
778
779 2010-03-28  James Youngman  <jay@gnu.org>
780
781         save-cwd: don't leak a file descriptor when the caller execs.
782         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
783         saved file descriptor.
784         * modules/save-cwd (Depends-on): Depend on cloexec.
785
786 2010-03-29  Bruno Haible  <bruno@clisp.org>
787
788         Remove vestiges of fts-lgpl module.
789         * lib/fts_.h: Assume GNULIB_FTS is 1.
790         * lib/fts.c: Likewise.
791         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
792
793 2010-03-28  Bruno Haible  <bruno@clisp.org>
794
795         Fix definition of tests witness macro.
796         * gnulib-tool (func_import): Fix definition of witness macro.
797
798 2010-03-28  Bruno Haible  <bruno@clisp.org>
799
800         Fix ioctl's protoype on glibc systems.
801         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
802         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
803         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
804         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
805         signature. If not, arrange to replace the ioctl function.
806         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
807         REPLACE_IOCTL.
808         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
809         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
810         Reported by Ludovic Courtès <ludo@gnu.org>.
811
812 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
813
814         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
815         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
816         made it so grep -r --include=GLOB* ... did not work.
817
818 2010-03-26  Jim Meyering  <meyering@redhat.com>
819             Eric Blake  <eblake@redhat.com>
820
821         maint.mk: prohibit use of test's -o and -a operators
822         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
823
824 2010-03-28  Bruno Haible  <bruno@clisp.org>
825
826         Remove unused GNULIB_XYZ macro definitions.
827         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
828         invocation.
829
830 2010-03-28  Bruno Haible  <bruno@clisp.org>
831
832         Mark privileged tests modules.
833         * modules/idpriv-drop-tests (Status): New section.
834         * modules/idpriv-droptemp-tests (Status): New section.
835
836 2010-03-28  Bruno Haible  <bruno@clisp.org>
837
838         Split C++ tests into separate tests modules.
839         * modules/dirent-c++-tests: New file, extracted from
840         modules/dirent-tests.
841         * modules/dirent-tests: Depend on it.
842         * modules/fcntl-h-c++-tests: New file, extracted from
843         modules/fcntl-h-tests.
844         * modules/fcntl-h-tests: Depend on it.
845         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
846         * modules/glob-tests: Depend on it.
847         * modules/iconv-h-c++-tests: New file, extracted from
848         modules/iconv-h-tests.
849         * modules/iconv-h-tests: Depend on it.
850         * modules/langinfo-c++-tests: New file, extracted from
851         modules/langinfo-tests.
852         * modules/langinfo-tests: Depend on it.
853         * modules/locale-c++-tests: New file, extracted from
854         modules/locale-tests.
855         * modules/locale-tests: Depend on it.
856         * modules/math-c++-tests: New file, extracted from modules/math-tests.
857         * modules/math-tests: Depend on it.
858         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
859         * modules/pty-tests: Depend on it.
860         * modules/search-c++-tests: New file, extracted from
861         modules/search-tests.
862         * modules/search-tests: Depend on it.
863         * modules/signal-c++-tests: New file, extracted from
864         modules/signal-tests.
865         * modules/signal-tests: Depend on it.
866         * modules/spawn-c++-tests: New file, extracted from
867         modules/spawn-tests.
868         * modules/spawn-tests: Depend on it.
869         * modules/stdio-c++-tests: New file, extracted from
870         modules/stdio-tests.
871         * modules/stdio-tests: Depend on it.
872         * modules/stdlib-c++-tests: New file, extracted from
873         modules/stdlib-tests.
874         * modules/stdlib-tests: Depend on it.
875         * modules/string-c++-tests: New file, extracted from
876         modules/string-tests.
877         * modules/string-tests: Depend on it.
878         * modules/sys_ioctl-c++-tests: New file, extracted from
879         modules/sys_ioctl-tests.
880         * modules/sys_ioctl-tests: Depend on it.
881         * modules/sys_select-c++-tests: New file, extracted from
882         modules/sys_select-tests.
883         * modules/sys_select-tests: Depend on it.
884         * modules/sys_socket-c++-tests: New file, extracted from
885         modules/sys_socket-tests.
886         * modules/sys_socket-tests: Depend on it.
887         * modules/sys_stat-c++-tests: New file, extracted from
888         modules/sys_stat-tests.
889         * modules/sys_stat-tests: Depend on it.
890         * modules/sys_time-c++-tests: New file, extracted from
891         modules/sys_time-tests.
892         * modules/sys_time-tests: Depend on it.
893         * modules/time-c++-tests: New file, extracted from modules/time-tests.
894         * modules/time-tests: Depend on it.
895         * modules/unistd-c++-tests: New file, extracted from
896         modules/unistd-tests.
897         * modules/unistd-tests: Depend on it.
898         * modules/wchar-c++-tests: New file, extracted from
899         modules/wchar-tests.
900         * modules/wchar-tests: Depend on it.
901         * modules/wctype-c++-tests: New file, extracted from
902         modules/wctype-tests.
903         * modules/wctype-tests: Depend on it.
904         Reported by Simon Josefsson.
905
906 2010-03-28  Bruno Haible  <bruno@clisp.org>
907
908         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
909         * gnulib-tool (func_exists_module): New function, extracted from
910         func_verify_module.
911         (func_verify_module): Use it.
912         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
913         'foo' only if 'foo' exists.
914         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
915         module.
916
917 2010-03-28  Bruno Haible  <bruno@clisp.org>
918
919         gnulib-tool: Add support for special categories of tests.
920         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
921         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
922         (func_usage): Document them.
923         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
924         inc_unportable_tests, inc_all_tests): New variables.
925         (func_acceptable): Consider these variables.
926         (func_modules_transitive_closure): Make it work when the 'Status' field
927         consists of multiple words.
928         (func_import): Store and restore the values of inc_cxx_tests,
929         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
930         inc_all_tests in gnulib-comp.m4.
931         (func_create_testdir): Set inc_all_tests to true.
932         * doc/gnulib.texi (Extra tests modules): New section.
933         Suggested by Jim Meyering.
934
935 2010-03-28  Bruno Haible  <bruno@clisp.org>
936
937         ansi-c++-opt: Allow turning off the C++ build by default.
938         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
939         gl_CXX_CHOICE_DEFAULT_NO is defined.
940         Requested by Eric Blake.
941
942 2010-03-28  Bruno Haible  <bruno@clisp.org>
943
944         unistd: Avoid #define replacements in C++ mode.
945         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
946         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
947         setsockopt, shutdown, select): In C++, attach a warning to the function
948         if possible, rather than #defining the symbol to a dysfunctional alias.
949         Reported by John W. Eaton <jwe@gnu.org>.
950
951 2010-03-28  Bruno Haible  <bruno@clisp.org>
952
953         Fix link errors on mingw.
954         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
955         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
956         $(LIBSOCKET).
957         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
958         $(LIBSOCKET).
959
960 2010-03-28  Bruno Haible  <bruno@clisp.org>
961             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
962
963         lib-ignore: Determine different options for different compilers.
964         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
965         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
966         Add comments.
967         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
968         * NEWS: Mention the change.
969
970 2010-03-27  Bruno Haible  <bruno@clisp.org>
971
972         Remove unused GNULIB_XYZ macro definitions.
973         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
974         * modules/fseek (configure.ac): Likewise.
975         * modules/ioctl (configure.ac): Likewise.
976         * modules/open (configure.ac): Likewise.
977         * modules/stdlib-safer (configure.ac): Likewise.
978
979 2010-03-27  Bruno Haible  <bruno@clisp.org>
980
981         Add a remark about certain modules.
982         * modules/malloc (Comment): New section.
983         * modules/realloc (Comment): Likewise.
984         * modules/sigpipe (Comment): Likewise.
985
986 2010-03-27  Bruno Haible  <bruno@clisp.org>
987
988         Resolve conflict between the two kinds of module indicators.
989         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
990         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
991         * modules/canonicalize (configure.ac): Invoke
992         gl_MODULE_INDICATOR_FOR_TESTS.
993         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
994         GNULIB_XYZ.
995         * tests/test-dirent-c++.cc: Likewise.
996         * tests/test-dirent-safer.c: Likewise.
997         * tests/test-dup2.c: Likewise.
998         * tests/test-fchdir.c: Likewise.
999         * tests/test-fcntl-h-c++.cc: Likewise.
1000         * tests/test-getopt.c: Likewise.
1001         * tests/test-getopt.h: Likewise.
1002         * tests/test-langinfo-c++.cc: Likewise.
1003         * tests/test-locale-c++.cc: Likewise.
1004         * tests/test-math-c++.cc: Likewise.
1005         * tests/test-pty-c++.cc: Likewise.
1006         * tests/test-search-c++.cc: Likewise.
1007         * tests/test-signal-c++.cc: Likewise.
1008         * tests/test-spawn-c++.cc: Likewise.
1009         * tests/test-stdio-c++.cc: Likewise.
1010         * tests/test-stdlib-c++.cc: Likewise.
1011         * tests/test-string-c++.cc: Likewise.
1012         * tests/test-sys_ioctl-c++.cc: Likewise.
1013         * tests/test-sys_select-c++.cc: Likewise.
1014         * tests/test-sys_socket-c++.cc: Likewise.
1015         * tests/test-sys_stat-c++.cc: Likewise.
1016         * tests/test-sys_time-c++.cc: Likewise.
1017         * tests/test-time-c++.cc: Likewise.
1018         * tests/test-unistd-c++.cc: Likewise.
1019         * tests/test-wchar-c++.cc: Likewise.
1020         * tests/uninorm/test-u8-nfc.c: Likewise.
1021         * tests/uninorm/test-u8-nfd.c: Likewise.
1022         * tests/uninorm/test-u8-nfkc.c: Likewise.
1023         * tests/uninorm/test-u8-nfkd.c: Likewise.
1024         * tests/uninorm/test-u16-nfc.c: Likewise.
1025         * tests/uninorm/test-u16-nfd.c: Likewise.
1026         * tests/uninorm/test-u16-nfkc.c: Likewise.
1027         * tests/uninorm/test-u16-nfkd.c: Likewise.
1028         * tests/uninorm/test-u32-nfc.c: Likewise.
1029         * tests/uninorm/test-u32-nfc-big.c: Likewise.
1030         * tests/uninorm/test-u32-nfd.c: Likewise.
1031         * tests/uninorm/test-u32-nfd-big.c: Likewise.
1032         * tests/uninorm/test-u32-nfkc.c: Likewise.
1033         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
1034         * tests/uninorm/test-u32-nfkd.c: Likewise.
1035         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
1036         * tests/uninorm/test-u32-normalize-big.c: Likewise.
1037
1038 2010-03-27  Bruno Haible  <bruno@clisp.org>
1039
1040         Distinguish two kinds of module indicators.
1041         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
1042         gl_MODULE_INDICATOR.
1043         (gl_MODULE_INDICATOR): New macro.
1044         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
1045         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
1046         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
1047         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
1048         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
1049         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
1050         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
1051         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
1052         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
1053         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
1054         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
1055         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
1056         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
1057         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
1058         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
1059         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
1060         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
1061         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
1062         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
1063         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
1064         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
1065         * modules/cloexec (configure.ac): Likewise.
1066         * modules/getopt-gnu (configure.ac): Likewise.
1067         * modules/uninorm/u8-normalize (configure.ac): Likewise.
1068         * modules/uninorm/u16-normalize (configure.ac): Likewise.
1069         * modules/uninorm/u32-normalize (configure.ac): Likewise.
1070         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
1071
1072 2010-03-27  Bruno Haible  <bruno@clisp.org>
1073
1074         New module description field 'Comment'.
1075         * gnulib-tool: New option --extract-comment.
1076         (func_usage): Document it.
1077         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
1078         (func_get_comment): New function.
1079         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
1080
1081 2010-03-27  Bruno Haible  <bruno@clisp.org>
1082
1083         Addendum to 2010-02-07 commit.
1084         * gnulib-tool (func_usage): Document --extract-applicability option.
1085
1086 2010-03-27  Bruno Haible  <bruno@clisp.org>
1087
1088         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
1089         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
1090         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
1091         rather than link errors.
1092
1093 2010-03-27  Bruno Haible  <bruno@clisp.org>
1094
1095         Avoid side effects from tests-related modules on the compilation of lib.
1096         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
1097         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
1098         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
1099         parameter. Emit into AM_CPPFLAGS a definition of the designated C
1100         macro.
1101         (func_import): Define a witness macro. Assign it a value that depends
1102         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
1103         tests-related modules.
1104         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
1105         Reported by Jim Meyering.
1106
1107 2010-03-27  Bruno Haible  <bruno@clisp.org>
1108
1109         Factorize common .m4 code.
1110         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
1111         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
1112         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
1113         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
1114         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
1115         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
1116         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
1117         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
1118         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
1119         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
1120         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
1121         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
1122         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
1123         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
1124         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
1125         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
1126         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
1127         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
1128         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
1129         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
1130         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
1131         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
1132         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
1133         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
1134         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
1135         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
1136         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
1137         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
1138         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
1139         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
1140         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
1141         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
1142
1143 2010-03-27  Bruno Haible  <bruno@clisp.org>
1144
1145         Fix a compilation error on Cygwin with g++ >= 4.3.
1146         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
1147         if it is undefined or if we alias it to chmod.
1148         (lstat): Don't warn about the use of this function if it is undefined
1149         or if we alias it to stat.
1150         Reported by Simon Josefsson.
1151
1152 2010-03-27  Bruno Haible  <bruno@clisp.org>
1153
1154         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
1155         * modules/getlogin (configure.ac): Update.
1156
1157         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
1158         * modules/getlogin_r (configure.ac): Update.
1159
1160         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
1161         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
1162         * modules/inet_ntop (configure.ac): Update.
1163
1164         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
1165         * modules/inet_pton (configure.ac): Update.
1166
1167         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
1168         * modules/mbslen (configure.ac): Update.
1169
1170         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
1171         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
1172         * modules/forkpty (configure.ac): Update.
1173         * modules/openpty (configure.ac): Update.
1174
1175 2010-03-26  Simon Josefsson  <simon@josefsson.org>
1176
1177         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
1178         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
1179
1180 2010-03-25  Eric Blake  <eblake@redhat.com>
1181
1182         maint: use pragma consistently across replacement headers
1183         * lib/ctype.in.h (system_header): Hoist for consistent placement.
1184         * lib/dirent.in.h (system_header): Likewise.
1185         * lib/errno.in.h (system_header): Likewise.
1186         * lib/float.in.h (system_header): Likewise.
1187         * lib/getopt.in.h (system_header): Likewise.
1188         * lib/iconv.in.h (system_header): Likewise.
1189         * lib/inttypes.in.h (system_header): Likewise.
1190         * lib/langinfo.in.h (system_header): Likewise.
1191         * lib/locale.in.h (system_header): Likewise.
1192         * lib/math.in.h (system_header): Likewise.
1193         * lib/netdb.in.h (system_header): Likewise.
1194         * lib/netinet_in.in.h (system_header): Likewise.
1195         * lib/pty.in.h (system_header): Likewise.
1196         * lib/sched.in.h (system_header): Likewise.
1197         * lib/se-selinux.in.h (system_header): Likewise.
1198         * lib/search.in.h (system_header): Likewise.
1199         * lib/spawn.in.h (system_header): Likewise.
1200         * lib/stdarg.in.h (system_header): Likewise.
1201         * lib/stdint.in.h (system_header): Likewise.
1202         * lib/string.in.h (system_header): Likewise.
1203         * lib/strings.in.h (system_header): Likewise.
1204         * lib/sys_file.in.h (system_header): Likewise.
1205         * lib/sys_ioctl.in.h (system_header): Likewise.
1206         * lib/sys_socket.in.h (system_header): Likewise.
1207         * lib/sys_times.in.h (system_header): Likewise.
1208         * lib/sys_utsname.in.h (system_header): Likewise.
1209         * lib/sys_wait.in.h (system_header): Likewise.
1210         * lib/sysexits.in.h (system_header): Likewise.
1211         * lib/unistd.in.h (system_header): Likewise.
1212         * lib/wctype.in.h (system_header): Likewise.
1213
1214         arpa/inet: fix mingw compilation warning
1215         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
1216         Reported by Matthew Bolte.
1217
1218 2010-03-25  Bruno Haible  <bruno@clisp.org>
1219
1220         Avoid collision between gnulib wrapper and libintl wrapper.
1221         * lib/printf.c (printf): Don't define if a printf wrapper is already
1222         defined in intl/printf.c.
1223         Reported by Michel Boaventura <michel@michelboaventura.com>.
1224
1225 2010-03-25  Bruno Haible  <bruno@clisp.org>
1226
1227         Use ANSI C.
1228         * lib/readutmp.h (getutent): Provide ANSI C prototype.
1229
1230 2010-03-25  Bruno Haible  <bruno@clisp.org>
1231
1232         Minor formatting changes.
1233         * lib/acosl.c: Insert space before function argument list.
1234         * lib/argz.c: Likewise.
1235         * lib/asinl.c: Likewise.
1236         * lib/expl.c: Likewise.
1237         * lib/gen-uni-tables.c: Likewise.
1238         * lib/gettext.h: Likewise.
1239         * lib/glthread/lock.h: Likewise.
1240         * lib/tanl.c: Likewise.
1241         * lib/uniname/uniname.c: Likewise.
1242         * tests/test-idpriv-drop.c: Likewise.
1243         * tests/test-idpriv-droptemp.c: Likewise.
1244         * tests/test-lock.c: Likewise.
1245         * tests/test-tls.c: Likewise.
1246         * lib/argp-help.c: Insert space before function-like macro argument
1247         list.
1248         * lib/memcmp.c: Likewise.
1249         * tests/test-base64.c: Likewise.
1250         * lib/localename.c: Insert space before sizeof's argument list.
1251         * lib/safe-alloc.h: Likewise.
1252         * lib/file-set.h: Insert space before macro argument list.
1253         * tests/test-argp.c: Likewise.
1254         * lib/argp-namefrob.h: Insert space before function parameter list.
1255         * lib/getaddrinfo.c: Likewise.
1256         * lib/netdb.in.h: Likewise.
1257         * lib/parse-duration.h: Likewise.
1258         * lib/parse-duration.c: Likewise.
1259         * lib/poll.c: Likewise.
1260         * lib/select.c: Likewise.
1261         * lib/trim.h: Likewise.
1262         * tests/test-usleep.c: Likewise.
1263         * lib/ldexpl.c: Insert space before function parameter list and before
1264         function argument list.
1265         * lib/logl.c: Likewise.
1266         * lib/sqrtl.c: Likewise.
1267         * lib/trim.c: Likewise.
1268         * lib/cosl.c: Use GNU style indentation. Insert space before function
1269         argument list.
1270         * lib/sinl.c: Likewise.
1271         * lib/tsearch.c: Insert space after 'for'.
1272         Reported by Jim Meyering.
1273
1274 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
1275
1276         * maint.mk (sc_Wundef_boolean): Check for the presence of the
1277         config header before grepping, as it's not present before
1278         autoreconf/configure are run.  Reported by Simon Josefsson.
1279
1280 2010-03-23  Bruno Haible  <bruno@clisp.org>
1281
1282         pt_chown: Make it work with automake < 1.11.
1283         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
1284         Reported by Simon Josefsson.
1285
1286 2010-03-23  Bruno Haible  <bruno@clisp.org>
1287
1288         pt_chown: Don't depend on GPLed modules.
1289         * lib/pt_chown.c: Don't include idpriv.h.
1290         (main): Don't drop privileges.
1291         * modules/pt_chown (Depends-on): Remove idpriv-drop.
1292         Reported by Simon Josefsson.
1293
1294 2010-03-24  Simon Josefsson  <simon@josefsson.org>
1295
1296         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
1297         suggestions from karl@freefriends.org (Karl Berry).
1298
1299 2010-03-22  Eric Blake  <eblake@redhat.com>
1300
1301         gethostname: further tweaks
1302         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
1303         are overriding gethostname.
1304         Suggested by Bruno Haible.
1305
1306 2010-03-21  Bruno Haible  <bruno@clisp.org>
1307
1308         Fix comments.
1309         * lib/forkpty.c (rpl_forkpty): Fix comment.
1310         * lib/openpty.c (rpl_openpty): Likewise.
1311         Reported by Eric Blake.
1312
1313 2010-03-22  Eric Blake  <eblake@redhat.com>
1314
1315         gethostname: fix build on mingw
1316         * lib/unistd.in.h (includes): Work around fact that mingw
1317         <winsock2.h> re-includes <unistd.h>, by avoiding any
1318         redeclarations if we are being included by <winsock2.h>.
1319         Reported by Matthias Bolte.
1320
1321 2010-03-21  Bruno Haible  <bruno@clisp.org>
1322
1323         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
1324         * lib/forkpty.c (forkpty): New replacement function, from glibc with
1325         modifications.
1326         * lib/pty.in.h (forkpty): Update declaration. Add comments.
1327         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
1328         provide the replacement.
1329         * modules/forkpty (Depends-on): Add openpty, login_tty.
1330         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
1331         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
1332         * doc/glibc-functions/forkpty.texi: More supported platforms.
1333         * config/srclist.txt: Add forkpty.c (commented).
1334
1335 2010-03-21  Bruno Haible  <bruno@clisp.org>
1336
1337         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
1338         (Makefile.am): Verify that PTY_LIB is defined.
1339
1340         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
1341
1342 2010-03-21  Bruno Haible  <bruno@clisp.org>
1343
1344         Tests for module 'login_tty'.
1345         * modules/login_tty-tests: New file.
1346         * tests/test-login_tty.c: New file.
1347
1348         New module 'login_tty'.
1349         * lib/login_tty.c: New file.
1350         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
1351         * modules/login_tty: New file.
1352         * doc/glibc-functions/login_tty.texi: Mention the new module.
1353
1354 2010-03-21  Bruno Haible  <bruno@clisp.org>
1355
1356         login_tty: Documentation.
1357         * doc/glibc-functions/login_tty.texi: New file.
1358         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
1359
1360 2010-03-21  Bruno Haible  <bruno@clisp.org>
1361
1362         pty: Consistent macro naming.
1363         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
1364         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
1365         * modules/pty (configure.ac): Update.
1366
1367 2010-03-21  Bruno Haible  <bruno@clisp.org>
1368
1369         Tests for openpty: Make stricter.
1370         * tests/test-openpty.c (main): Add test of canonical processing and
1371         erase.
1372         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
1373
1374         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
1375         * lib/openpty.c (openpty): New replacement function.
1376         * lib/pty.in.h: Include <termios.h>.
1377         (openpty): Update declaration. Add comments.
1378         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
1379         is not declared, arrange to provide the replacement. Check for _getpty
1380         and posix_openpt.
1381         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
1382         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
1383         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
1384         * modules/pty-tests (test_pty_c___LDADD): New variable.
1385         * doc/glibc-functions/openpty.texi: More supported platforms.
1386
1387 2010-03-21  Bruno Haible  <bruno@clisp.org>
1388
1389         setenv: Tweaks.
1390         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
1391         the test program.
1392         * doc/posix-functions/setenv.texi: Update platforms list.
1393
1394 2010-03-21  Bruno Haible  <bruno@clisp.org>
1395
1396         New module 'unlockpt'.
1397         * lib/unlockpt.c: New file, from glibc with modifications.
1398         * m4/unlockpt.m4: New file.
1399         * modules/unlockpt: New file.
1400         * lib/stdlib.in.h (unlockpt): New declaration.
1401         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
1402         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
1403         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
1404         HAVE_UNLOCKPT.
1405         * doc/posix-functions/unlockpt.texi: Mention the new module.
1406         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
1407         * config/srclist.txt: Add unlockpt.c (commented).
1408
1409 2010-03-21  Jim Meyering  <meyering@redhat.com>
1410
1411         maint.mk: prohibit inclusion of "intprops.h" without use
1412         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
1413
1414 2010-03-21  Bruno Haible  <bruno@clisp.org>
1415
1416         New module 'grantpt'.
1417         * lib/grantpt.c: New file, from glibc with modifications.
1418         * m4/grantpt.m4: New file.
1419         * modules/grantpt: New file.
1420         * lib/stdlib.in.h (grantpt): New declaration.
1421         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
1422         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
1423         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
1424         HAVE_GRANTPT.
1425         * doc/posix-functions/grantpt.texi: Mention the new module.
1426         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
1427         * config/srclist.txt: Add grantpt.c (commented).
1428
1429 2010-03-21  Bruno Haible  <bruno@clisp.org>
1430
1431         New module 'pt_chown'.
1432         * lib/pt_chown.c: New file, from glibc with modifications.
1433         * lib/pty-private.h: New file, from glibc with modifications.
1434         * modules/pt_chown: New file.
1435         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
1436
1437 2010-03-21  Bruno Haible  <bruno@clisp.org>
1438
1439         Tests for module 'ptsname'.
1440         * modules/ptsname-tests: New file.
1441         * tests/test-ptsname.c: New file.
1442
1443         New module 'ptsname'.
1444         * lib/ptsname.c: New file, from glibc with modifications.
1445         * m4/ptsname.m4: New file.
1446         * modules/ptsname: New file.
1447         * lib/stdlib.in.h (ptsname): New declaration.
1448         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
1449         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
1450         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
1451         HAVE_PTSNAME.
1452         * doc/posix-functions/ptsname.texi: Mention the new module.
1453         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
1454         * config/srclist.txt: Add ptsname.c (commented).
1455
1456 2010-03-21  Bruno Haible  <bruno@clisp.org>
1457
1458         Tests for module 'ttyname_r'.
1459         * modules/ttyname_r-tests: New file.
1460         * tests/test-ttyname_r.c: New file.
1461
1462         New module 'ttyname_r'.
1463         * lib/ttyname_r.c: New file.
1464         * m4/ttyname_r.m4: New file.
1465         * modules/ttyname_r: New file.
1466         * lib/unistd.in.h (ttyname_r): New declaration.
1467         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
1468         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
1469         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
1470         HAVE_TTYNAME_R.
1471         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
1472         * doc/posix-functions/ttyname_r.texi: Mention the new module.
1473
1474 2010-03-20  Bruno Haible  <bruno@clisp.org>
1475
1476         signal: Undefine macro definitions in C++ mode.
1477         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
1478         sigfillset): Undefine macro definitions from the system header in C++
1479         mode.
1480         Reported by John W. Eaton <jwe@gnu.org>.
1481
1482 2010-03-20  Bruno Haible  <bruno@clisp.org>
1483
1484         Ensure no #include statements inside extern "C" { ... }.
1485         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
1486         contain #include statements.
1487         * lib/time.in.h: Likewise.
1488
1489 2010-03-20  Bruno Haible  <bruno@clisp.org>
1490
1491         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
1492         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
1493         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
1494         Reported by John W. Eaton <jwe@gnu.org>.
1495
1496 2010-03-20  Bruno Haible  <bruno@clisp.org>
1497
1498         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
1499         Reported by Jim Meyering.
1500
1501 2010-03-20  Bruno Haible  <bruno@clisp.org>
1502
1503         pipe: Set errno upon failure.
1504         * lib/pipe.h: Specify that when -1 is returned, errno is set.
1505         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
1506         errno value in error message.
1507
1508 2010-03-20  Bruno Haible  <bruno@clisp.org>
1509             Jim Meyering  <meyering@redhat.com>
1510
1511         lchown: Avoid "unused variable" warning.
1512         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
1513
1514 2010-03-20  Bruno Haible  <bruno@clisp.org>
1515
1516         Work around unlink() bug on MacOS X 10.5.6.
1517         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
1518         attempting to unlink a parent directory.
1519         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
1520         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
1521         activate for the replacement function.
1522         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
1523
1524 2010-03-20  Bruno Haible  <bruno@clisp.org>
1525
1526         Fix link errors on Solaris 8.
1527         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
1528         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
1529
1530 2010-03-19  Jim Meyering  <meyering@redhat.com>
1531
1532         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
1533         The _LIBC implementation of build_range_exp correctly honors the
1534         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
1535         However, the non-_LIBC implementation would ignore that syntax-bit
1536         flag and return REG_ERANGE unconditionally.
1537         This change makes it honor that flag.
1538         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
1539         Make two pointer parameters "const".
1540         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
1541         (parse_bracket_exp): Update caller.
1542
1543         regex.m4: correct the reversed range endpoint ([b-a]) test
1544         * m4/regex.m4: When requiring that [b-a] evoke failure,
1545         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
1546         test pass once again for x86-based systems.
1547
1548 2010-03-19  Bruno Haible  <bruno@clisp.org>
1549
1550         scandir: Fix link error on Solaris 8.
1551         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
1552         macros.
1553
1554 2010-03-19  Bruno Haible  <bruno@clisp.org>
1555
1556         getusershell: Fix documentation.
1557         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
1558         module.
1559         * doc/glibc-functions/setusershell.texi: Likewise.
1560
1561         getusershell: Provide declaration, missing on Solaris 9.
1562         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
1563         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
1564         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
1565         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
1566         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1567         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
1568         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
1569         HAVE_GETUSERSHELL.
1570         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
1571
1572 2010-03-19  Bruno Haible  <bruno@clisp.org>
1573
1574         wctype: Provide iswblank function.
1575         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
1576         exists and is fine.
1577         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
1578         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
1579         * tests/test-wctype.c (main): Re-enable the iswblank tests.
1580         * doc/posix-functions/iswblank.texi: Update.
1581
1582 2010-03-19  Bruno Haible  <bruno@clisp.org>
1583
1584         Tests of module 'pty' in C++ mode.
1585         * modules/pty-tests: New file.
1586         * tests/test-pty-c++.cc: New file.
1587         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1588
1589 2010-03-19  Eric Blake  <eblake@redhat.com>
1590
1591         logb: fix documentation
1592         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
1593         1.5 declaration bug.
1594
1595         forkpty, openpty: prefer glibc's const-safe prototype
1596         * lib/forkpty.c (rpl_forkpty): New file.
1597         * lib/openpty.c (rpl_openpty): Likewise.
1598         * modules/forkpty (Files): Distribute it.
1599         * modules/openpty (Files): Likewise.
1600         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
1601         check...
1602         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
1603         replacement for for non-const BSD signature.
1604         * modules/pty (Makefile.am): Substitute witnesses.
1605         * lib/pty.in.h (forkpty, openpty): Declare replacements.
1606         * tests/test-forkpty.c: Update signature check.
1607         * tests/test-openpty.c: Likewise.
1608         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
1609         * doc/glibc-functions/openpty.texi (openpty): Likewise.
1610
1611         forkpty, openpty: split functions into new modules
1612         * modules/pty (Makefile.am): Substitute new witnesses.
1613         (Libraries): Move library detection...
1614         * modules/forkpty: ...into new module.
1615         * modules/openpty: Another new module.
1616         * modules/pty-tests: Rename and split...
1617         * modules/forkpty-tests: ...to this...
1618         * modules/openpty-tests: ...and this.
1619         * tests/test-pty.c: Rename and split...
1620         * tests/test-forkpty.c: ...to this...
1621         * tests/test-openpty.c: ...and this.
1622         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
1623         (gl_PTY): Split library searching...
1624         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
1625         (gl_FORKPTY, gl_OPENPTY): New macros.
1626         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
1627         * NEWS: Mention the split.
1628         * MODULES.html.sh (Misc): Document the modules.
1629         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
1630         * doc/glibc-functions/openpty.texi (openpty): Likewise.
1631
1632         pty: improve replacement header
1633         * lib/pty.in.h: New file.
1634         * modules/pty (Files): Ship it.
1635         (Makefile.am): Always build replacement.
1636         * m4/pty.m4: Rename...
1637         * m4/pty_h.m4: ...to this.
1638         (gl_PTY): Modernize setting of witness macros; update check of
1639         forkpty to take proper advantage of cache.
1640         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
1641
1642         getopt: avoid compiler warning
1643         * lib/getopt.c (attribute_hidden): Remove unused macro.
1644
1645 2010-03-18  Bruno Haible  <bruno@clisp.org>
1646
1647         Fix link errors on Solaris 8.
1648         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
1649         * modules/search-tests (test_search_c___LDADD): Likewise.
1650         * modules/signal-tests (test_signal_c___LDADD): Likewise.
1651         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
1652         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
1653         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
1654         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
1655         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
1656         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
1657
1658 2010-03-18  Bruno Haible  <bruno@clisp.org>
1659
1660         Fix bug introduced on 2010-03-14.
1661         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
1662         (gl_SPAWN_H): Require it.
1663         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
1664         Reported by Simon Josefsson.
1665
1666 2010-03-18  Bruno Haible  <bruno@clisp.org>
1667
1668         Fix typo introduced on 2009-12-31.
1669         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
1670         posix_spawn_file_actions_adddup2.
1671
1672 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
1673         and Eric Blake  <eblake@redhat.com>
1674
1675         test-vc-list-files-git: make more robust
1676         * tests/test-vc-list-files-git.sh: Unset problematic environment
1677         variables.  Chain commands together.
1678
1679 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
1680
1681         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
1682         `AC_CHECK_DECL' invocation.
1683
1684 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
1685
1686         * lib/inttostr.c (inttostr): Make sure the invocation of verify
1687         appears before executable statements. Suggested by Petr Sumbera
1688         <Petr.Sumbera@Sun.COM>.
1689
1690 2010-03-14  Bruno Haible  <bruno@clisp.org>
1691
1692         * tests/test-flock.c (test_exclusive): Comment out a test that causes
1693         portability problems. Instead use a simpler test.
1694         (main): Check that invalid arguments are rejected only on Linux.
1695
1696 2010-03-14  Bruno Haible  <bruno@clisp.org>
1697
1698         Fix bug introduced on 2009-12-31.
1699         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
1700         gl_PREREQ_SYS_H_WINSOCK2 always.
1701         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
1702         SYS_SOCKET_H variable.
1703         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
1704         Update comments.
1705         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
1706         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
1707         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
1708         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
1709         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
1710
1711 2010-03-14  Bruno Haible  <bruno@clisp.org>
1712
1713         Fix values returned by sinl, cosl.
1714         * lib/trigl.h: Add specification comments.
1715         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
1716         that combines the values from the precomputed table with the values of
1717         the Chebyshev polynomials.
1718
1719 2010-03-14  Bruno Haible  <bruno@clisp.org>
1720
1721         Fix compilation error when modules 'posix_spawn[p]' are not used.
1722         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
1723         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
1724
1725 2010-03-14  Bruno Haible  <bruno@clisp.org>
1726
1727         Fix compilation error on mingw when module 'time_r' is not used.
1728         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
1729         is 1.
1730         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
1731         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
1732         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
1733         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
1734
1735 2010-03-14  Bruno Haible  <bruno@clisp.org>
1736
1737         Fix compilation error with Sun C.
1738         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
1739         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
1740         instead of GCC specific ULONG_LONG_MAX.
1741         * lib/xstrtoll.c: Likewise.
1742         * lib/xstrtoull.c: Likewise.
1743
1744 2010-03-13  Bruno Haible  <bruno@clisp.org>
1745
1746         Allow the user to disable C++ code and tests.
1747         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
1748         (gl_PROG_ANSI_CXX): Require it.
1749
1750 2010-03-13  Bruno Haible  <bruno@clisp.org>
1751
1752         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
1753         cases.
1754
1755 2010-03-13  Bruno Haible  <bruno@clisp.org>
1756
1757         Test that gnulib does not break the standard C++ headers.
1758         * tests/test-locale-c++2.cc: New file.
1759         * modules/locale-tests (Files): Add it.
1760         (Makefile.am): Compile it for test-locale-c++.
1761         * tests/test-math-c++2.cc: New file.
1762         * modules/math-tests (Files): Add it.
1763         (Makefile.am): Compile it for test-math-c++.
1764         * tests/test-signal-c++2.cc: New file.
1765         * modules/signal-tests (Files): Add it.
1766         (Makefile.am): Compile it for test-signal-c++.
1767         * tests/test-stdio-c++2.cc: New file.
1768         * modules/stdio-tests (Files): Add it.
1769         (Makefile.am): Compile it for test-stdio-c++.
1770         * tests/test-stdlib-c++2.cc: New file.
1771         * modules/stdlib-tests (Files): Add it.
1772         (Makefile.am): Compile it for test-stdlib-c++.
1773         * tests/test-string-c++2.cc: New file.
1774         * modules/string-tests (Files): Add it.
1775         (Makefile.am): Compile it for test-string-c++.
1776         * tests/test-time-c++2.cc: New file.
1777         * modules/time-tests (Files): Add it.
1778         (Makefile.am): Compile it for test-time-c++.
1779         Reported by John W. Eaton <jwe@gnu.org>.
1780
1781 2010-03-13  Bruno Haible  <bruno@clisp.org>
1782
1783         * gnulib-tool (func_usage): Clarify which options are available for
1784         --create-testdir and --create-megatestdir.
1785
1786 2010-03-13  Bruno Haible  <bruno@clisp.org>
1787
1788         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
1789         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
1790         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
1791         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
1792         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
1793         when appropriate.
1794         Reported by Jim Meyering.
1795
1796 2010-03-12  Simon Josefsson  <simon@josefsson.org>
1797
1798         * gnulib-tool (func_import): Explain origin of code.
1799
1800 2010-03-12  Bruno Haible  <bruno@clisp.org>
1801
1802         Fix problem with automake's definition of CXXLINK.
1803         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
1804         Reported by Simon Josefsson and Ludovic Courtès.
1805
1806 2010-03-12  Bruno Haible  <bruno@clisp.org>
1807
1808         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
1809         stable releases.
1810
1811 2010-03-11  Bruno Haible  <bruno@clisp.org>
1812
1813         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
1814         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
1815         whether the system provides one variant or multiple variants of the
1816         function.
1817         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
1818         C++ compilers.
1819         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
1820         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
1821         Reported by Jim Meyering.
1822
1823 2010-03-09  Simon Josefsson  <simon@josefsson.org>
1824
1825         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
1826
1827 2010-03-08  Bruno Haible  <bruno@clisp.org>
1828
1829         gnulib-tool: Add support for --libtool in --create-testdir.
1830         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
1831         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
1832
1833 2010-03-08  Eric Blake  <eblake@redhat.com>
1834
1835         gnulib-tool.texi: mention possibility of git submodule
1836         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
1837         submodules.
1838         * doc/.gitignore: Ignore another generated file.
1839
1840 2010-03-08  Karl Berry  <karl@gnu.org>
1841
1842         * doc/gnulib-tool.texi (VCS Issues): Mention third option
1843         of committing gnulib files while skipping others.
1844
1845 2010-03-07  Bruno Haible  <bruno@clisp.org>
1846
1847         Tests of module 'wctype' in C++ mode.
1848         * tests/test-wctype-c++.cc: New file.
1849         * modules/wctype-tests (Files): Add it and tests/signature.h.
1850         (Depends-on): Add ansi-c++-opt.
1851         (Makefile.am): Arrange to compile and run test-wctype-c++.
1852
1853         Tests of module 'wchar' in C++ mode.
1854         * tests/test-wchar-c++.cc: New file.
1855         * modules/wchar-tests (Files): Add it and tests/signature.h.
1856         (Depends-on): Add ansi-c++-opt.
1857         (Makefile.am): Arrange to compile and run test-wchar-c++.
1858         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
1859         gl_MODULE_INDICATOR.
1860
1861         Tests of module 'unistd' in C++ mode.
1862         * tests/test-unistd-c++.cc: New file.
1863         * modules/unistd-tests (Files): Add it and tests/signature.h.
1864         (Depends-on): Add ansi-c++-opt.
1865         (Makefile.am): Arrange to compile and run test-unistd-c++.
1866         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
1867         gl_MODULE_INDICATOR.
1868
1869         Tests of module 'time' in C++ mode.
1870         * tests/test-time-c++.cc: New file.
1871         * modules/time-tests (Files): Add it and tests/signature.h.
1872         (Depends-on): Add ansi-c++-opt.
1873         (Makefile.am): Arrange to compile and run test-time-c++.
1874         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1875
1876         Tests of module 'sys_time' in C++ mode.
1877         * tests/test-sys_time-c++.cc: New file.
1878         * modules/sys_time-tests (Files): Add it and tests/signature.h.
1879         (Depends-on): Add ansi-c++-opt.
1880         (Makefile.am): Arrange to compile and run test-sys_time-c++.
1881         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
1882         gl_MODULE_INDICATOR.
1883
1884         Tests of module 'sys_stat' in C++ mode.
1885         * tests/test-sys_stat-c++.cc: New file.
1886         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
1887         (Depends-on): Add ansi-c++-opt.
1888         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
1889         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
1890         gl_MODULE_INDICATOR.
1891
1892         Tests of module 'sys_socket' in C++ mode.
1893         * tests/test-sys_socket-c++.cc: New file.
1894         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
1895         (Depends-on): Add ansi-c++-opt.
1896         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
1897         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
1898         gl_MODULE_INDICATOR.
1899
1900         Tests of module 'sys_select' in C++ mode.
1901         * tests/test-sys_select-c++.cc: New file.
1902         * modules/sys_select-tests (Files): Add it and tests/signature.h.
1903         (Depends-on): Add ansi-c++-opt.
1904         (Makefile.am): Arrange to compile and run test-sys_select-c++.
1905         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
1906         gl_MODULE_INDICATOR.
1907
1908         Tests of module 'sys_ioctl' in C++ mode.
1909         * tests/test-sys_ioctl-c++.cc: New file.
1910         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
1911         (Depends-on): Add ansi-c++-opt.
1912         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
1913         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
1914         gl_MODULE_INDICATOR.
1915
1916         Tests of module 'string' in C++ mode.
1917         * tests/test-string-c++.cc: New file.
1918         * modules/string-tests (Files): Add it and tests/signature.h.
1919         (Depends-on): Add ansi-c++-opt.
1920         (Makefile.am): Arrange to compile and run test-string-c++.
1921         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
1922         gl_MODULE_INDICATOR.
1923
1924         Tests of module 'stdlib' in C++ mode.
1925         * tests/test-stdlib-c++.cc: New file.
1926         * modules/stdlib-tests (Files): Add it and tests/signature.h.
1927         (Depends-on): Add ansi-c++-opt.
1928         (Makefile.am): Arrange to compile and run test-stdlib-c++.
1929         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
1930         gl_MODULE_INDICATOR.
1931
1932         Tests of module 'stdio' in C++ mode.
1933         * tests/test-stdio-c++.cc: New file.
1934         * modules/stdio-tests (Files): Add it and tests/signature.h.
1935         (Depends-on): Add ansi-c++-opt.
1936         (Makefile.am): Arrange to compile and run test-stdio-c++.
1937         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
1938         gl_MODULE_INDICATOR.
1939
1940         Tests of module 'spawn' in C++ mode.
1941         * tests/test-spawn-c++.cc: New file.
1942         * modules/spawn-tests (Files): Add it and tests/signature.h.
1943         (Depends-on): Add ansi-c++-opt.
1944         (Makefile.am): Arrange to compile and run test-spawn-c++.
1945         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
1946         gl_MODULE_INDICATOR.
1947
1948         Tests of module 'signal' in C++ mode.
1949         * tests/test-signal-c++.cc: New file.
1950         * modules/signal-tests (Files): Add it and tests/signature.h.
1951         (Depends-on): Add ansi-c++-opt.
1952         (Makefile.am): Arrange to compile and run test-signal-c++.
1953         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
1954         gl_MODULE_INDICATOR.
1955
1956         Tests of module 'search' in C++ mode.
1957         * tests/test-search-c++.cc: New file.
1958         * modules/search-tests (Files): Add it and tests/signature.h.
1959         (Depends-on): Add ansi-c++-opt.
1960         (Makefile.am): Arrange to compile and run test-search-c++.
1961         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
1962         gl_MODULE_INDICATOR.
1963
1964         Tests of module 'math' in C++ mode.
1965         * tests/test-math-c++.cc: New file.
1966         * modules/math-tests (Files): Add it and tests/signature.h.
1967         (Depends-on): Add ansi-c++-opt.
1968         (Makefile.am): Arrange to compile and run test-math-c++.
1969         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1970
1971         Tests of module 'locale' in C++ mode.
1972         * tests/test-locale-c++.cc: New file.
1973         * modules/locale-tests (Files): Add it and tests/signature.h.
1974         (Depends-on): Add ansi-c++-opt.
1975         (Makefile.am): Arrange to compile and run test-locale-c++.
1976         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
1977         gl_MODULE_INDICATOR.
1978
1979         Tests of module 'langinfo' in C++ mode.
1980         * tests/test-langinfo-c++.cc: New file.
1981         * modules/langinfo-tests (Files): Add it and tests/signature.h.
1982         (Depends-on): Add ansi-c++-opt.
1983         (Makefile.am): Arrange to compile and run test-langinfo-c++.
1984         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
1985         gl_MODULE_INDICATOR.
1986
1987         Tests of module 'iconv-h' in C++ mode.
1988         * tests/test-iconv-h-c++.cc: New file.
1989         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
1990         (Depends-on): Add ansi-c++-opt.
1991         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
1992
1993         Tests of module 'glob' in C++ mode.
1994         * tests/test-glob-c++.cc: New file.
1995         * modules/glob-tests (Files): Add it.
1996         (Depends-on): Add ansi-c++-opt.
1997         (Makefile.am): Arrange to compile and run test-glob-c++.
1998
1999         Tests of module 'fcntl-h' in C++ mode.
2000         * tests/test-fcntl-h-c++.cc: New file.
2001         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
2002         (Depends-on): Add ansi-c++-opt.
2003         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
2004         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
2005         gl_MODULE_INDICATOR.
2006
2007         Tests of module 'dirent' in C++ mode.
2008         * tests/test-dirent-c++.cc: New file.
2009         * modules/dirent-tests (Files): Add it and tests/signature.h.
2010         (Depends-on): Add ansi-c++-opt.
2011         (Makefile.am): Arrange to compile and run test-dirent-c++.
2012         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
2013         gl_MODULE_INDICATOR.
2014
2015         New module 'ansi-c++-opt'.
2016         * modules/ansi-c++-opt: New file.
2017         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
2018
2019         Document C++ namespace mode.
2020         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
2021
2022         wctype: Avoid #define replacements in C++ mode.
2023         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
2024         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
2025         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
2026         In C++, define a namespaced alias symbol.
2027         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
2028         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
2029         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
2030         rule.
2031
2032         wchar: Avoid #define replacements in C++ mode.
2033         * lib/wchar.in.h: Include c++defs.h.
2034         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
2035         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
2036         symbol.
2037         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
2038         * modules/wchar (Depends-on): Add c++defs.
2039         (Makefile.am): Update wchar.h rule.
2040
2041         unistd: Avoid #define replacements in C++ mode.
2042         * lib/unistd.in.h: Include c++defs.h.
2043         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
2044         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
2045         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
2046         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
2047         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
2048         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
2049         symbol.
2050         (environ): Update.
2051         * modules/unistd (Depends-on): Add c++defs.
2052         (Makefile.am): Update unistd.h rule.
2053
2054         time: Avoid #define replacements in C++ mode.
2055         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
2056         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
2057         define a namespaced alias symbol.
2058         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
2059         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
2060         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
2061         * modules/time (Depends-on): Add c++defs, warn-on-use.
2062         (Makefile.am): Update time.h rule.
2063         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
2064         * modules/nanosleep (configure.ac): Likewise.
2065         * modules/strptime (configure.ac): Likewise.
2066         * modules/timegm (configure.ac): Likewise.
2067
2068         sys_time: Avoid #define replacements in C++ mode.
2069         * lib/sys_time.in.h: Include c++defs.h.
2070         (gettimeofday): In C++, define a namespaced alias symbol.
2071         * modules/sys_time (Depends-on): Add c++defs.
2072         (Makefile.am): Update sys/time.h rule.
2073
2074         sys_stat: Avoid #define replacements in C++ mode.
2075         * lib/sys_stat.in.h: Include c++defs.h.
2076         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
2077         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
2078         namespaced alias symbol.
2079         In C++, define a namespaced alias symbol.
2080         * modules/sys_stat (Depends-on): Add c++defs.
2081         (Makefile.am): Update sys/stat.h rule.
2082
2083         sys_socket: Avoid #define replacements in C++ mode.
2084         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
2085         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
2086         definitions also when the system has a <sys/socket.h>.
2087         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
2088         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
2089         In C++, define a namespaced alias symbol.
2090         * modules/sys_socket (Depends-on): Add c++defs.
2091         (Makefile.am): Update sys/socket.h rule.
2092
2093         sys_select: Avoid #define replacements in C++ mode.
2094         * lib/sys_select.in.h: Include c++defs.h. Enable the function
2095         definitions also when the system has a <sys/select.h>.
2096         (select): In C++, define a namespaced alias symbol.
2097         * modules/sys_select (Depends-on): Add c++defs.
2098         (Makefile.am): Update sys/select.h rule.
2099
2100         sys_ioctl: Avoid #define replacements in C++ mode.
2101         * lib/sys_ioctl.in.h: Include c++defs.h.
2102         (ioctl): In C++, define a namespaced alias symbol.
2103         * modules/sys_ioctl (Depends-on): Add c++defs.
2104         (Makefile.am): Update sys/ioctl.h rule.
2105
2106         string: Avoid #define replacements in C++ mode.
2107         * lib/string.in.h: Include c++defs.h.
2108         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
2109         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
2110         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
2111         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
2112         strsignal, strverscmp): In C++, define a namespaced alias symbol.
2113         * modules/string (Depends-on): Add c++defs.
2114         (Makefile.am): Update string.h rule.
2115
2116         stdlib: Avoid #define replacements in C++ mode.
2117         * lib/stdlib.in.h: Include c++defs.h.
2118         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
2119         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
2120         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
2121         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
2122         symbol.
2123         * modules/stdlib (Depends-on): Add c++defs.
2124         (Makefile.am): Update stdlib.h rule.
2125
2126         stdio: Avoid #define replacements in C++ mode.
2127         * lib/stdio.in.h: Include c++defs.h.
2128         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
2129         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
2130         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
2131         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
2132         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
2133         namespaced alias symbol.
2134         * modules/stdio (Depends-on): Add c++defs.
2135         (Makefile.am): Update stdio.h rule.
2136
2137         spawn: Avoid #define replacements in C++ mode.
2138         * lib/spawn.in.h: Include c++defs.h.
2139         (posix_spawn, posix_spawnp, posix_spawnattr_init,
2140         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
2141         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
2142         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
2143         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
2144         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
2145         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
2146         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
2147         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
2148         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
2149         In C++, define a namespaced alias symbol.
2150         * modules/spawn (Depends-on): Add c++defs.
2151         (Makefile.am): Update spawn.h rule.
2152
2153         signal: Avoid #define replacements in C++ mode.
2154         * lib/signal.in.h: Include c++defs.h.
2155         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
2156         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
2157         namespaced alias symbol.
2158         * modules/signal (Depends-on): Add c++defs.
2159         (Makefile.am): Update signal.h rule.
2160
2161         search: Avoid #define replacements in C++ mode.
2162         * lib/search.in.h: Include c++defs.h.
2163         (_gl_search_compar_fn, _gl_search_action_fn): New types.
2164         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
2165         symbol.
2166         * modules/search (Depends-on): Add c++defs.
2167         (Makefile.am): Update search.h rule.
2168
2169         math: Avoid #define replacements in C++ mode.
2170         * lib/math.in.h: Include c++defs.h.
2171         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
2172         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
2173         trunc, truncl): In C++, define a namespaced alias symbol.
2174         * modules/math (Depends-on): Add c++defs.
2175         (Makefile.am): Update math.h rule.
2176
2177         locale: Avoid #define replacements in C++ mode.
2178         * lib/locale.in.h: Include c++defs.h.
2179         (duplocale): In C++, define a namespaced alias symbol.
2180         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
2181         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
2182         * modules/locale (Depends-on): Add c++defs.
2183         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
2184
2185         langinfo: Avoid #define replacements in C++ mode.
2186         * lib/langinfo.in.h: Include c++defs.h.
2187         (nl_langinfo): In C++, define a namespaced alias symbol.
2188         * modules/langinfo (Depends-on): Add c++defs.
2189         (Makefile.am): Update langinfo.h rule.
2190
2191         iconv-h: Avoid #define replacements in C++ mode.
2192         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
2193         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
2194         symbol.
2195         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
2196         whenever iconv is present.
2197         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
2198         (Makefile.am): Update iconv.h rule.
2199
2200         glob: Avoid #define replacements in C++ mode.
2201         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
2202         (_gl_glob_errfunc_fn): New type.
2203         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
2204         symbol.
2205         * modules/glob (Depends-on): Add c++defs, warn-on-use.
2206         (Makefile.am): Update glob.h rule.
2207
2208         fcntl-h: Avoid #define replacements in C++ mode.
2209         * lib/fcntl.in.h: Include c++defs.h.
2210         (fcntl, open, openat): In C++, define a namespaced alias symbol.
2211         * modules/fcntl-h (Depends-on): Add c++defs.
2212         (Makefile.am): Update fcntl.h rule.
2213
2214         dirent: Avoid #define replacements in C++ mode.
2215         * lib/dirent.in.h: Include c++defs.h.
2216         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
2217         namespaced alias symbol.
2218         (dirfd): Update declaration.
2219         * modules/dirent (Depends-on): Add c++defs.
2220         (Makefile.am): Update dirent.h rule.
2221
2222         ctype: Make it usable in C++ code.
2223         * lib/ctype.in.h: Include c++defs.h.
2224         (isblank): Declare as extern "C".
2225         * modules/ctype (Depends-on): Add c++defs.
2226         (Makefile.am): Update ctype.h rule.
2227
2228         New module 'c++defs'.
2229         * modules/c++defs: New file.
2230         * build-aux/c++defs.h: New file.
2231         Reported by John W. Eaton <jwe@gnu.org>.
2232
2233 2010-03-07  Bruno Haible  <bruno@clisp.org>
2234
2235         logb: Provide missing declaration for Cygwin.
2236         * lib/math.in.h (logb): New declaration.
2237         * m4/logb.m4: New file.
2238         * modules/logb (Files): Add m4/logb.m4.
2239         (Depends-on): Add math.
2240         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
2241         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
2242         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
2243         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
2244         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
2245
2246 2010-03-07  Bruno Haible  <bruno@clisp.org>
2247
2248         Fix test-cond link error.
2249         * tests/test-cond.c: Include <stdio.h>.
2250
2251 2010-03-07  Bruno Haible  <bruno@clisp.org>
2252
2253         Fix test-dirent-safer link error.
2254         * modules/dirent-safer-tests (Makefile.am): Define
2255         test_dirent_safer_LDADD.
2256
2257 2010-03-07  Bruno Haible  <bruno@clisp.org>
2258
2259         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
2260         among default module list.
2261
2262 2010-03-07  Bruno Haible  <bruno@clisp.org>
2263
2264         Fix link error on platforms with GNU libiconv.
2265         * modules/unistr/u8-strcoll-tests (Makefile): Define
2266         test_u8_strcoll_LDADD.
2267         * modules/unistr/u16-strcoll-tests (Makefile): Define
2268         test_u16_strcoll_LDADD.
2269         * modules/unistr/u32-strcoll-tests (Makefile): Define
2270         test_u32_strcoll_LDADD.
2271
2272 2010-03-07  Bruno Haible  <bruno@clisp.org>
2273
2274         Use POSIX declarations for socket functions.
2275         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
2276         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
2277         rpl_sendto): Change declaration to match POSIX.
2278         * lib/connect.c (rpl_connect): Likewise.
2279         * lib/accept.c (rpl_accept): Likewise.
2280         * lib/bind.c (rpl_bind): Likewise.
2281         * lib/getpeername.c (rpl_getpeername): Likewise.
2282         * lib/getsockname.c (rpl_getsockname): Likewise.
2283         * lib/recv.c (rpl_recv): Likewise.
2284         * lib/send.c (rpl_send): Likewise.
2285         * lib/recvfrom.c (rpl_recvfrom): Likewise.
2286         * lib/sendto.c (rpl_sendto): Likewise.
2287
2288 2010-03-06  Bruno Haible  <bruno@clisp.org>
2289
2290         Clarify access, euidaccess, faccessat.
2291         * doc/posix-functions/faccessat.texi: Mention security problem under
2292         "Other problems", not "Portability problems".
2293         * doc/posix-functions/access.texi: Likewise. Mention a related security
2294         problem.
2295         * doc/glibc-functions/euidaccess.texi: Mention security problems.
2296         * lib/euidaccess.c: Add comments about platforms.
2297         * lib/unistd.in.h (access, euidaccess): Add warnings.
2298
2299 2010-03-07  Bruno Haible  <bruno@clisp.org>
2300
2301         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
2302         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
2303         (POSIX_SPAWN_SETSCHEDULER): Likewise.
2304         (POSIX_SPAWN_USEVFORK): Define in a way that works when
2305         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
2306         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
2307         declare when POSIX_SPAWN_SETSCHEDULER is zero.
2308         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
2309         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
2310         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
2311         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
2312         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
2313         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
2314         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
2315         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
2316         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
2317         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
2318         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
2319         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
2320         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
2321         Likewise.
2322         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
2323         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
2324         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
2325         Likewise.
2326         * tests/test-spawn.c (main): Make it work when
2327         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
2328
2329 2010-03-07  Bruno Haible  <bruno@clisp.org>
2330
2331         Fix incorrect Makefile.am generation in German locale.
2332         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
2333         Execute sed command with character range in C locale.
2334
2335 2010-03-06  Bruno Haible  <bruno@clisp.org>
2336
2337         Tests for module 'iconv-h'.
2338         * modules/iconv-h-tests: New file.
2339         * tests/test-iconv-h.c: New file.
2340
2341         New module 'iconv-h'.
2342         * modules/iconv-h: New file.
2343         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
2344         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
2345         (configure.ac): Remove gl_ICONV_H.
2346         (Makefile.am): Remove rule for iconv.h.
2347
2348 2010-03-06  Bruno Haible  <bruno@clisp.org>
2349
2350         More consistent naming of *.m4 files.
2351         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
2352         * modules/wctype (Files): Update.
2353
2354         More consistent naming of *.m4 files.
2355         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
2356         * modules/wchar (Files): Update.
2357
2358 2010-03-06  Jim Meyering  <meyering@redhat.com>
2359
2360         euidaccess: relax license to LGPLv2+
2361         * modules/euidaccess (License): Relax to LGPLv2+.
2362
2363 2010-03-06  Bruno Haible  <bruno@clisp.org>
2364
2365         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
2366         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
2367         (Makefile.am): Augment lib_SOURCES instead.
2368
2369 2010-03-04  Jim Meyering  <meyering@redhat.com>
2370
2371         utime: remove obsolete module
2372         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
2373         unnecessary for years, and has been marked as obsolete for 10 months.
2374         * modules/utime: Remove file.
2375         * lib/utime.c: Remove file.
2376         * m4/utime.m4: Remove file.
2377         * m4/utimes-null.m4: Remove file.
2378         * doc/posix-functions/utime.texi (utime): Remove reference to
2379         the module.  Move the sole "fixed by gnulib" item into the
2380         "problems not fixed by Gnulib" list.
2381         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
2382
2383 2010-03-05  Simon Josefsson  <simon@josefsson.org>
2384
2385         * modules/exit (License): Relax license to LGPLv2+.
2386         (Status): Mark as obsolete.
2387         * NEWS: Mention deprecated 'exit' module.
2388         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
2389         of now obsolete 'exit'.
2390
2391 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2392
2393         fts-lgpl: remove unused module
2394         * modules/fts-lgpl: Remove.
2395         * MODULES.html.sh (func_all_modules): Adjust.
2396         * check-module (find_included_lib_files): Adjust.
2397         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
2398
2399 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
2400
2401         copy-acl: enhance Solaris ACL error handling
2402         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
2403         * lib/set-mode-acl.c (qset_acl): Likewise.
2404
2405 2010-03-02  Bruno Haible  <bruno@clisp.org>
2406
2407         spawn: Don't override the system defined values on FreeBSD 8.
2408         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
2409         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
2410         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
2411         if HAVE_POSIX_SPAWN is 1.
2412         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
2413
2414 2010-03-01  Bruno Haible  <bruno@clisp.org>
2415
2416         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
2417         regarding Automake.
2418
2419 2010-02-25  Bruno Haible  <bruno@clisp.org>
2420
2421         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
2422         * gnulib-tool: Define 'echo' as a function only before the ksh alias
2423         setting, not afterwards.
2424         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
2425
2426 2010-02-24  Eric Blake  <eblake@redhat.com>
2427
2428         bootstrap, git-version-gen: use timestamp
2429         * build-aux/git-version-gen (scriptversion): Force UTC.
2430         * build-aux/bootstrap (scriptversion): New variable.
2431
2432         bootstrap: allow older git
2433         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
2434         older than 1.6.4.  Requested by the libvirt project.
2435
2436 2010-02-23  Eric Blake  <eblake@redhat.com>
2437
2438         warn-on-use: work with old autoconf
2439         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
2440         AS_VAR semantics of autoconf 2.60.
2441         Reported by Bruno Haible.
2442
2443         bootstrap: improve some comments
2444         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
2445         clarification comments.
2446
2447         gettimeofday: provide correct function
2448         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
2449         when replacement is declared, otherwise provide gettimeofday.
2450         Reported by Michael Goffioul.
2451
2452 2010-02-23  Jim Meyering  <meyering@redhat.com>
2453
2454         lib-ignore: relax license to "unlimited", not LGPLv2+
2455         * modules/lib-ignore (License): Relax to "unlimited".
2456
2457 2010-02-23  Jim Meyering  <meyering@redhat.com>
2458
2459         lib-ignore: relax license to LGPLv2+
2460         * modules/lib-ignore (License): Relax to LGPLv2+.
2461
2462 2010-02-22  Eric Blake  <eblake@redhat.com>
2463
2464         lseek: avoid bash 3.2 broken pipe bug
2465         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
2466         warning from bash 3.2.
2467         Reported by Ben Pfaff, with analysis from Bruno Haible.
2468
2469         bootstrap: support non-FSF copyright holder
2470         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
2471         bootstrap.conf override of COPYRIGHT_HOLDER.
2472         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
2473
2474         bootstrap: interoperate with gettext 0.14.1
2475         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
2476
2477         bootstrap: allow for alternate submodule location
2478         * build-aux/bootstrap (gnulib_path): New variable; use instead of
2479         hardcoding submodule location.
2480         (gnulib_mk): Allow direct use of Makefile.am.
2481
2482         bootstrap: use GNULIB_SRCDIR to reduce disk usage
2483         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
2484         rather than reconfiguring where the submodule points.
2485
2486         gettimeofday: restore support for platforms that lack function
2487         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
2488         replacement if function is missing.
2489         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
2490         * modules/sys_time (Makefile.am): Substitute it.
2491         * lib/sys_time.in.h (gettimeofday): Check it.
2492         Reported by Michael Goffioul.
2493
2494 2010-02-21  Bruno Haible  <bruno@clisp.org>
2495
2496         * lib/stdio.in.h (obstack_printf): Fix typo.
2497
2498 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
2499
2500         vc-list-files: use bzr ls's -R option
2501         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
2502         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
2503
2504 2010-02-21  Jim Meyering  <meyering@redhat.com>
2505
2506         init.sh: fix EXEEXT shims to work also for names like test-prog
2507         * tests/init.sh: Re-exec a better shell, when needed.
2508         If the current shell lacks support for posix $(...), an init.sh-using
2509         test will now try to find a shell that supports that.  If EXEEXT is
2510         nonempty, we also require support for hyphen-in-alias-name and shell
2511         substitutions like ${var#glob}.  Failure to find such a shell results
2512         in a skipped test.
2513
2514 2010-02-21  Bruno Haible  <bruno@clisp.org>
2515
2516         Really work around around "broken pipe" error message from bash 3.2.
2517         * gnulib-tool (func_reset_sigpipe): Remove function.
2518         (echo): In bash 3.2, define to a function that uses printf.
2519         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
2520
2521 2010-02-20  Bruno Haible  <bruno@clisp.org>
2522
2523         Restore support for automake 1.9.6 with autoconf 2.61.
2524         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
2525         Reported by James Youngman <jay@gnu.org>.
2526
2527 2010-02-20  Bruno Haible  <bruno@clisp.org>
2528
2529         Improve *printf warning condition.
2530         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
2531         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
2532         and the function is overridden due to SIGPIPE emulation.
2533
2534 2010-02-20  Bruno Haible  <bruno@clisp.org>
2535
2536         * lib/stdio.in.h: Tweak comments.
2537
2538 2010-02-19  Bruno Haible  <bruno@clisp.org>
2539
2540         Make it easier to find modules. New gnulib-tool option '--find'.
2541         * gnulib-tool: New option --find.
2542         (func_usage): Document it.
2543         (func_sanitize_modulelist): New function, extracted from
2544         func_all_modules.
2545         (func_all_modules): Invoke it.
2546         * doc/gnulib-tool.texi (Which modules?): New node.
2547
2548 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
2549
2550         * lib/sys_select.in.h: Provide select replacement even if
2551         sys/select.h exists on a system, for Interix.
2552
2553 2010-02-18  Jim Meyering  <meyering@redhat.com>
2554
2555         init.sh: don't use $(...) just yet
2556         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
2557         to accommodate e.g., Solaris' /bin/sh.
2558
2559 2010-02-17  Bruno Haible  <bruno@clisp.org>
2560
2561         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
2562         Reported by Ludovic Courtès <ludo@gnu.org>.
2563
2564 2010-02-16  Simon Josefsson  <simon@josefsson.org>
2565
2566         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
2567         linking with -lintl.
2568
2569 2010-02-17  Simon Josefsson  <simon@josefsson.org>
2570
2571         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
2572         if not provided by the system's netdb.h.  Reported by
2573         ludo@gnu.org (Ludovic Courtès).
2574
2575 2010-02-15  Jim Meyering  <meyering@redhat.com>
2576
2577         init.sh: improve portability and efficiency
2578         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
2579         "dummy" in a for loop.
2580         Use '!', not '^' to select the complement of a character set used
2581         in a "case" statement.
2582         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
2583         Suggestions from Eric Blake.
2584
2585         init.sh: automatically accommodate programs with the .exe suffix
2586         Automatically arrange for an invocation of "prog" to execute the
2587         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
2588         may use the simpler "prog", yet still work when built on a system
2589         that requires specifying the added suffix.
2590         Do this by constructing a function named "prog" that invokes
2591         "prog.exe" for each .exe file in selected directories.
2592         * tests/init.sh (find_exe_basenames_): New function.
2593         (create_exe_shim_functions_): New function.
2594         (path_prepend_): Use it.
2595
2596         maint.mk: mark syntax-check sc_*.m rules as .PHONY
2597         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
2598         "make -t syntax-check" doesn't create a ton of sc_*.m files.
2599
2600 2010-02-14  Jim Meyering  <meyering@redhat.com>
2601
2602         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
2603         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
2604         (sc_prohibit_hash_pjw_without_use): New rule.
2605
2606         maint.mk: allow the default upload destination dir to be overridden
2607         * top/maint.mk (upload_dest_dir_): Define with a default that
2608         preserves the status quo.
2609         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
2610         Reported by Peter Simons.
2611
2612         maint.mk: prohibit inclusion of "hash.h" without_use
2613         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
2614
2615 2010-02-10  Jim Meyering  <meyering@redhat.com>
2616
2617         maint.mk: prohibit inclusion of "ignore-value.h" without_use
2618         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
2619
2620 2010-02-09  Eric Blake  <ebb9@byu.net>
2621         and Bruno Haible  <bruno@clisp.org>
2622
2623         obstack-printf-posix: ensure declaration
2624         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
2625         extracted from gl_FUNC_OBSTACK_PRINTF.
2626         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
2627         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
2628         Likewise.
2629         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
2630         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
2631         0.
2632
2633 2010-02-08  Bruno Haible  <bruno@clisp.org>
2634
2635         gnulib-tool: Fix typo in 2010-02-07 commit.
2636         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
2637         Reported by Eric Blake.
2638
2639 2010-02-07  Bruno Haible  <bruno@clisp.org>
2640
2641         gnulib-tool: Fix up caching patches.
2642         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
2643         option --no-cache. Use associative arrays when supported by the shell.
2644         (sed_comments): New variable.
2645         (modcache): Renamed from do_cache.
2646         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
2647         abbreviate unnecessarily.
2648         (have_associative): New variable.
2649         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
2650         way also for ksh and zsh.
2651         (func_init_sed_convert_to_cache_statements): New function, extracted
2652         from func_cache_lookup_module. Add support for associative arrays.
2653         Don't set the c_MODULE_cached variable here. Ignore all lines before
2654         the first field header. Remove only the final newline, not all trailing
2655         newlines. Support empty fields correctly. Limit the use of 'eval' to
2656         assignments.
2657         (func_get_description, func_get_status, func_get_notice,
2658         func_get_applicability, func_get_filelist, func_get_dependencies,
2659         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
2660         func_get_automake_snippet, func_get_include_directive,
2661         func_get_link_directive, func_get_license, func_get_maintainer):
2662         Update documentation. List the unoptimized code first. Add support for
2663         associative arrays. Limit the use of 'eval' to assignments.
2664         (func_get_applicability): Undo stylistic pessimisations.
2665         (func_get_automake_snippet, func_get_include_directive): Reduce code
2666         duplication.
2667         (func_modules_transitive_closure, func_modules_add_dummy,
2668         func_modules_notice, func_modules_to_filelist, func_add_file,
2669         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
2670         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
2671         func_create_testdir, func_create_megatestdir): Update documentation.
2672
2673 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2674
2675         * gnulib-tool (func_cache_lookup_module): Store the module name
2676         belonging to the cache variable; error out if two different
2677         module names map to the same cache variable name.
2678
2679 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2680
2681         gnulib-tool: Make caching optional.
2682         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
2683         Update matching short versions of --no-changelog.
2684         (func_usage): Update.
2685         (sed_extract_cache_prog): Renamed from ...
2686         (sed_extract_prog): ... this; revert to old extraction script.
2687         (func_get_description, func_get_status)
2688         (func_get_notice, func_get_applicability, func_get_filelist)
2689         (func_get_dependencies, func_get_autoconf_early_snippet)
2690         (func_get_autoconf_snippet, func_get_automake_snippet)
2691         (func_get_include_directive, func_get_link_directive)
2692         (func_get_license, func_get_maintainer): If $do_cache is false,
2693         use old, non-caching extraction scripts.
2694         Suggestion by Bruno Haible.
2695
2696 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2697
2698         gnulib-tool: cache module metainformation.
2699         * gnulib-tool (sed_extract_prog): Match newline before each
2700         header, and rewrite header to a shell variable suffix.
2701         (func_cache_var, func_cache_lookup_module): New functions,
2702         to turn a module name into a cache variable prefix, and to
2703         look up and cache module metainformation.
2704         (func_get_description, func_get_status)
2705         (func_get_notice, func_get_applicability, func_get_filelist)
2706         (func_get_dependencies, func_get_autoconf_early_snippet)
2707         (func_get_autoconf_snippet, func_get_automake_snippet)
2708         (func_get_include_directive, func_get_link_directive)
2709         (func_get_license, func_get_maintainer): Use
2710         func_cache_lookup_module.
2711
2712 2010-02-07  Bruno Haible  <bruno@clisp.org>
2713
2714         fnctl: Fix missing dependency.
2715         * modules/fcntl (Depends-on): Add getdtablesize.
2716         Reported by John W. Eaton <jwe@gnu.org>.
2717
2718 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
2719
2720         Argp: fix recognition of short alias options.
2721
2722         * lib/argp-parse.c (convert_options): Fix improper use of
2723         `|' between character values.
2724         * tests/test-argp.c (group1_option): New alias option
2725         --read (-r).
2726         (group1_parser): Special handling for 'r'.
2727         (test15): New test case.
2728         (test_fun): Add test15.
2729         * tests/test-argp-2.sh: Update expected --help and --usage
2730         outputs.
2731
2732 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
2733
2734         * tests/test-argp.c: Fix indentation.
2735
2736 2010-02-04  Eric Blake  <ebb9@byu.net>
2737
2738         gettimeofday: expose type of second argument
2739         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
2740         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
2741         * tests/test-gettimeofday.c: Use it to silence warning.
2742         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
2743         the issue.
2744
2745 2010-02-03  Jim Meyering  <meyering@redhat.com>
2746
2747         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
2748         * lib/regcomp.c (TYPE_SIGNED): Define.
2749         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
2750
2751         regcomp.c: avoid a new -Wshadow warning
2752         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
2753
2754 2010-02-01  Jim Meyering  <meyering@redhat.com>
2755
2756         removing useless parentheses in cpp #define directives
2757         For motivation, see commit c0221df4, "define STREQ(a,b)
2758         consistently, removing useless parentheses"
2759         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
2760         * lib/mountlist.c (MNT_IGNORE): Likewise.
2761         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
2762
2763 2010-02-01  Eric Blake  <ebb9@byu.net>
2764
2765         sys_time: use link-warning
2766         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
2767         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
2768         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
2769         * modules/sys_time (Depends-on): Add warn-on-use.
2770         (Makefile.am): Always build replacement.
2771         (configure.ac): Update substitutions.
2772         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
2773         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
2774         bother with SYS_TIME_H.
2775         * modules/gettimeofday (configure.ac): Declare indicator.
2776         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
2777         in use.
2778
2779         closein-tests: silence compiler warning
2780         * tests/test-closein.c (main): Ignore fread result.
2781         * modules/closein-tests (Depends-on): Add ignore-value.
2782
2783         tests: silence warning about system return
2784         * tests/test-areadlink-with-size.c (main): Ignore system result.
2785         * tests/test-areadlink.c (main): Likewise.
2786         * tests/test-areadlinkat-with-size.c (main): Likewise.
2787         * tests/test-areadlinkat.c (main): Likewise.
2788         * tests/test-canonicalize-lgpl.c (main): Likewise.
2789         * tests/test-canonicalize.c (main): Likewise.
2790         * tests/test-chown.c (main): Likewise.
2791         * tests/test-fchownat.c (main): Likewise.
2792         * tests/test-fdutimensat.c (main): Likewise.
2793         * tests/test-fstatat.c (main): Likewise.
2794         * tests/test-futimens.c (main): Likewise.
2795         * tests/test-lchown.c (main): Likewise.
2796         * tests/test-link.c (main): Likewise.
2797         * tests/test-linkat.c (main): Likewise.
2798         * tests/test-lstat.c (main): Likewise.
2799         * tests/test-mkdir.c (main): Likewise.
2800         * tests/test-mkdirat.c (main): Likewise.
2801         * tests/test-mkfifo.c (main): Likewise.
2802         * tests/test-mkfifoat.c (main): Likewise.
2803         * tests/test-mknod.c (main): Likewise.
2804         * tests/test-readlink.c (main): Likewise.
2805         * tests/test-remove.c (main): Likewise.
2806         * tests/test-rename.c (main): Likewise.
2807         * tests/test-renameat.c (main): Likewise.
2808         * tests/test-rmdir.c (main): Likewise.
2809         * tests/test-symlink.c (main): Likewise.
2810         * tests/test-symlinkat.c (main): Likewise.
2811         * tests/test-unlink.c (main): Likewise.
2812         * tests/test-unlinkat.c (main): Likewise.
2813         * tests/test-utimens.c (main): Likewise.
2814         * tests/test-utimensat.c (main): Likewise.
2815         * modules/areadlink-tests (Depends-on): Add ignore-value.
2816         * modules/areadlink-with-size-tests (Depends-on): Likewise.
2817         * modules/areadlinkat-tests (Depends-on): Likewise.
2818         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
2819         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
2820         * modules/canonicalize-tests (Depends-on): Likewise.
2821         * modules/chown-tests (Depends-on): Likewise.
2822         * modules/fdutimensat-tests (Depends-on): Likewise.
2823         * modules/futimens-tests (Depends-on): Likewise.
2824         * modules/lchown-tests (Depends-on): Likewise.
2825         * modules/link-tests (Depends-on): Likewise.
2826         * modules/linkat-tests (Depends-on): Likewise.
2827         * modules/lstat-tests (Depends-on): Likewise.
2828         * modules/mkdir-tests (Depends-on): Likewise.
2829         * modules/mkfifo-tests (Depends-on): Likewise.
2830         * modules/mkfifoat-tests (Depends-on): Likewise.
2831         * modules/mknod-tests (Depends-on): Likewise.
2832         * modules/openat-tests (Depends-on): Likewise.
2833         * modules/readlink-tests (Depends-on): Likewise.
2834         * modules/remove-tests (Depends-on): Likewise.
2835         * modules/rename-tests (Depends-on): Likewise.
2836         * modules/renameat-tests (Depends-on): Likewise.
2837         * modules/rmdir-tests (Depends-on): Likewise.
2838         * modules/symlink-tests (Depends-on): Likewise.
2839         * modules/symlinkat-tests (Depends-on): Likewise.
2840         * modules/unlink-tests (Depends-on): Likewise.
2841         * modules/utimens-tests (Depends-on): Likewise.
2842         * modules/utimensat-tests (Depends-on): Likewise.
2843
2844 2010-01-31  Bruno Haible  <bruno@clisp.org>
2845
2846         Perform the same test for many <math.h> functions.
2847         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
2848         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
2849         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
2850         of gl_MATHFUNC.
2851         * modules/acos (configure.ac): Likewise.
2852         * modules/asin (configure.ac): Likewise.
2853         * modules/atan (configure.ac): Likewise.
2854         * modules/atan2 (configure.ac): Likewise.
2855         * modules/cbrt (configure.ac): Likewise.
2856         * modules/copysign (configure.ac): Likewise.
2857         * modules/cos (configure.ac): Likewise.
2858         * modules/cosh (configure.ac): Likewise.
2859         * modules/erf (configure.ac): Likewise.
2860         * modules/erfc (configure.ac): Likewise.
2861         * modules/exp (configure.ac): Likewise.
2862         * modules/fmod (configure.ac): Likewise.
2863         * modules/hypot (configure.ac): Likewise.
2864         * modules/j0 (configure.ac): Likewise.
2865         * modules/j1 (configure.ac): Likewise.
2866         * modules/jn (configure.ac): Likewise.
2867         * modules/lgamma (configure.ac): Likewise.
2868         * modules/log (configure.ac): Likewise.
2869         * modules/log10 (configure.ac): Likewise.
2870         * modules/log1p (configure.ac): Likewise.
2871         * modules/pow (configure.ac): Likewise.
2872         * modules/remainder (configure.ac): Likewise.
2873         * modules/sin (configure.ac): Likewise.
2874         * modules/sinh (configure.ac): Likewise.
2875         * modules/tan (configure.ac): Likewise.
2876         * modules/tanh (configure.ac): Likewise.
2877         * modules/y0 (configure.ac): Likewise.
2878         * modules/y1 (configure.ac): Likewise.
2879         * modules/yn (configure.ac): Likewise.
2880         Suggested by Paolo Bonzini.
2881
2882 2010-01-31  Bruno Haible  <bruno@clisp.org>
2883
2884         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
2885
2886 2010-01-31  Bruno Haible  <bruno@clisp.org>
2887
2888         Work around getdelim() bug on FreeBSD 8.0.
2889         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
2890         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
2891         not work.
2892         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
2893         is 1.
2894         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
2895         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
2896         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
2897         a non-zero size.
2898         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
2899
2900 2010-01-31  Bruno Haible  <bruno@clisp.org>
2901
2902         Work around getline() bug on FreeBSD 8.0.
2903         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
2904         and a non-zero size.
2905         * tests/test-getline.c (main): Likewise.
2906         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
2907         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
2908
2909 2010-01-28  Eric Blake  <ebb9@byu.net>
2910
2911         regex: fix build failure
2912         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
2913         platforms.
2914
2915 2010-01-28  Jim Meyering  <meyering@redhat.com>
2916
2917         regex: do not ignore memory allocation failure
2918         * lib/regex_internal.c (create_cd_newstate): Detect
2919         re_node_set_init_copy failure.   Extracted from glibc commit
2920         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2921
2922         regex: sync more white-space changes from libc
2923         * lib/regex_internal.c: White-space only changes.
2924         * lib/regexec.c: Likewise.
2925
2926         regex: add many uses of __attribute_warn_unused_result__
2927         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
2928         * lib/regexec.c: Likewise.
2929         Extracted from a messy glibc commit.
2930
2931         regcomp.c: spelling and merge-artifact from glibc
2932         * lib/regcomp.c: Merge remainder of glibc's
2933         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2934
2935         regcomp.c: sync white-space changes from glibc
2936         * lib/regcomp.c: Merge to accommodate white space
2937         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2938
2939         regcomp.c: do not ignore internal return values
2940         * lib/regcomp.c: Do not ignore internal return values.
2941         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
2942         but without its white-space changes and spelling fixes.
2943
2944         regex_internal.h: define __attribute_warn_unused_result__
2945         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
2946
2947         maint: add a syntax-check rule to check for vulnerable Makefile.in
2948         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
2949
2950 2010-01-27  Jim Meyering  <meyering@redhat.com>
2951
2952         ncftpput-ftp: clean up spaces
2953         * build-aux/ncftpput-ftp: Make Copyright line consistent.
2954         Remove trailing blanks.
2955
2956 2010-01-27  Simon Josefsson  <simon@josefsson.org>
2957
2958         * build-aux/git-version-gen: Fix copyright statement.
2959         * build-aux/gnupload: Likewise.
2960         * tests/test-arcfour.c: Likewise.
2961         * tests/test-arctwo.c: Likewise.
2962         * tests/test-count-one-bits.c: Likewise.
2963         * tests/test-crc.c: Likewise.
2964         * tests/test-des.c: Likewise.
2965         * tests/test-gc-arcfour.c: Likewise.
2966         * tests/test-gc-arctwo.c: Likewise.
2967         * tests/test-gc-des.c: Likewise.
2968         * tests/test-gc-hmac-md5.c: Likewise.
2969         * tests/test-gc-hmac-sha1.c: Likewise.
2970         * tests/test-gc-md2.c: Likewise.
2971         * tests/test-gc-md4.c: Likewise.
2972         * tests/test-gc-md5.c: Likewise.
2973         * tests/test-gc-pbkdf2-sha1.c: Likewise.
2974         * tests/test-gc-rijndael.c: Likewise.
2975         * tests/test-gc-sha1.c: Likewise.
2976         * tests/test-gc.c: Likewise.
2977         * tests/test-gethostname.c: Likewise.
2978         * tests/test-gettimeofday.c: Likewise.
2979         * tests/test-hash.c: Likewise.
2980         * tests/test-hmac-md5.c: Likewise.
2981         * tests/test-hmac-sha1.c: Likewise.
2982         * tests/test-md2.c: Likewise.
2983         * tests/test-md4.c: Likewise.
2984         * tests/test-md5.c: Likewise.
2985         * tests/test-memchr.c: Likewise.
2986         * tests/test-memchr2.c: Likewise.
2987         * tests/test-memcmp.c: Likewise.
2988         * tests/test-memmem.c: Likewise.
2989         * tests/test-memrchr.c: Likewise.
2990         * tests/test-rawmemchr.c: Likewise.
2991         * tests/test-read-file.c: Likewise.
2992         * tests/test-rijndael.c: Likewise.
2993         * tests/test-sockets.c: Likewise.
2994         * tests/test-strchrnul.c: Likewise.
2995         * tests/test-strstr.c: Likewise.
2996         * tests/test-strtod.c: Likewise.
2997         * build-aux/ncftpput-ftp: Likewise.
2998
2999 2010-01-26  Eric Blake  <ebb9@byu.net>
3000
3001         ignore-value: update recommended header name
3002         * modules/ignore-value (Include): Only use <> for headers that
3003         exist in glibc.
3004
3005 2010-01-26  Jim Meyering  <meyering@redhat.com>
3006
3007         test-userspec.c: avoid compiler warnings
3008         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
3009         and "initialization discards qualifiers..." warnings.
3010         Put the first "uid" in its own scope, and make char* members "const".
3011
3012 2010-01-25  Bruno Haible  <bruno@clisp.org>
3013
3014         gnulib-tool: Make warning diagnostics consistent.
3015         * gnulib-tool (func_warning): New function.
3016         Use it everywhere where gnulib-tool produces output to stderr and it is
3017         not a fatal error.
3018
3019 2010-01-25  Bruno Haible  <bruno@clisp.org>
3020
3021         Fix test dependencies.
3022         * modules/xstrtol-tests (Depends-on): Add inttypes.
3023         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
3024
3025 2010-01-25 Pádraig Brady <P@draigBrady.com>
3026
3027         syntax-check: detect incorrect boolean macro values in config.h
3028         * modules/maintainer-makefile (configure.ac): Parameterize the location
3029         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
3030         The logic is from Eric Blake and the location indicated by Jim Meyering.
3031         Note the more natural CONFIG_HEADER name is prohibited by automake
3032         for backwards compatibility reasons.
3033         * top/maint.mk (sc_Wundef_boolean): New rule.
3034
3035 2010-01-25  Jim Meyering  <meyering@redhat.com>
3036
3037         bootstrap: detect MacOS 10.6's shasum, too
3038         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
3039         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
3040
3041 2010-01-23  Jim Meyering  <meyering@redhat.com>
3042
3043         xstrtoll: new module
3044         * modules/xstrtoll: New file.
3045         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
3046         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
3047         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
3048         ./configure fails if you use this module and lack "long long".
3049         * modules/xstrtoll-tests: New module.
3050         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
3051         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
3052         new init.sh-based test framework.
3053
3054 2010-01-24  Bruno Haible  <bruno@clisp.org>
3055
3056         Tests for module 'yn'.
3057         * modules/yn-tests: New file.
3058         * tests/test-yn.c: New file.
3059
3060         Tests for module 'y1'.
3061         * modules/y1-tests: New file.
3062         * tests/test-y1.c: New file.
3063
3064         Tests for module 'y0'.
3065         * modules/y0-tests: New file.
3066         * tests/test-y0.c: New file.
3067
3068         Tests for module 'tanh'.
3069         * modules/tanh-tests: New file.
3070         * tests/test-tanh.c: New file.
3071
3072         Tests for module 'tan'.
3073         * modules/tan-tests: New file.
3074         * tests/test-tan.c: New file.
3075
3076         Tests for module 'sqrt'.
3077         * modules/sqrt-tests: New file.
3078         * tests/test-sqrt.c: New file.
3079
3080         Tests for module 'sinh'.
3081         * modules/sinh-tests: New file.
3082         * tests/test-sinh.c: New file.
3083
3084         Tests for module 'sin'.
3085         * modules/sin-tests: New file.
3086         * tests/test-sin.c: New file.
3087
3088         Tests for module 'rint'.
3089         * modules/rint-tests: New file.
3090         * tests/test-rint.c: New file.
3091
3092         Tests for module 'remainder'.
3093         * modules/remainder-tests: New file.
3094         * tests/test-remainder.c: New file.
3095
3096         Tests for module 'pow'.
3097         * modules/pow-tests: New file.
3098         * tests/test-pow.c: New file.
3099
3100         Tests for module 'nextafter'.
3101         * modules/nextafter-tests: New file.
3102         * tests/test-nextafter.c: New file.
3103
3104         Tests for module 'modf'.
3105         * modules/modf-tests: New file.
3106         * tests/test-modf.c: New file.
3107
3108         Tests for module 'logb'.
3109         * modules/logb-tests: New file.
3110         * tests/test-logb.c: New file.
3111
3112         Tests for module 'log1p'.
3113         * modules/log1p-tests: New file.
3114         * tests/test-log1p.c: New file.
3115
3116         Tests for module 'log10'.
3117         * modules/log10-tests: New file.
3118         * tests/test-log10.c: New file.
3119
3120         Tests for module 'log'.
3121         * modules/log-tests: New file.
3122         * tests/test-log.c: New file.
3123
3124         Tests for module 'lgamma'.
3125         * modules/lgamma-tests: New file.
3126         * tests/test-lgamma.c: New file.
3127
3128         Tests for module 'ldexp'.
3129         * modules/ldexp-tests: New file.
3130         * tests/test-ldexp.c: New file.
3131
3132         Tests for module 'jn'.
3133         * modules/jn-tests: New file.
3134         * tests/test-jn.c: New file.
3135
3136         Tests for module 'j1'.
3137         * modules/j1-tests: New file.
3138         * tests/test-j1.c: New file.
3139
3140         Tests for module 'j0'.
3141         * modules/j0-tests: New file.
3142         * tests/test-j0.c: New file.
3143
3144         Tests for module 'hypot'.
3145         * modules/hypot-tests: New file.
3146         * tests/test-hypot.c: New file.
3147
3148         Tests for module 'fmod'.
3149         * modules/fmod-tests: New file.
3150         * tests/test-fmod.c: New file.
3151
3152         Tests for module 'fabs'.
3153         * modules/fabs-tests: New file.
3154         * tests/test-fabs.c: New file.
3155
3156         Tests for module 'exp'.
3157         * modules/exp-tests: New file.
3158         * tests/test-exp.c: New file.
3159
3160         Tests for module 'erfc'.
3161         * modules/erfc-tests: New file.
3162         * tests/test-erfc.c: New file.
3163
3164         Tests for module 'erf'.
3165         * modules/erf-tests: New file.
3166         * tests/test-erf.c: New file.
3167
3168         Tests for module 'cosh'.
3169         * modules/cosh-tests: New file.
3170         * tests/test-cosh.c: New file.
3171
3172         Tests for module 'cos'.
3173         * modules/cos-tests: New file.
3174         * tests/test-cos.c: New file.
3175
3176         Tests for module 'copysign'.
3177         * modules/copysign-tests: New file.
3178         * tests/test-copysign.c: New file.
3179
3180         Tests for module 'cbrt'.
3181         * modules/cbrt-tests: New file.
3182         * tests/test-cbrt.c: New file.
3183
3184         Tests for module 'atan2'.
3185         * modules/atan2-tests: New file.
3186         * tests/test-atan2.c: New file.
3187
3188         Tests for module 'atan'.
3189         * modules/atan-tests: New file.
3190         * tests/test-atan.c: New file.
3191
3192         Tests for module 'asin'.
3193         * modules/asin-tests: New file.
3194         * tests/test-asin.c: New file.
3195
3196         Tests for module 'acos'.
3197         * modules/acos-tests: New file.
3198         * tests/test-acos.c: New file.
3199
3200 2010-01-24  Bruno Haible  <bruno@clisp.org>
3201
3202         Fix tests for common <math.h> functions.
3203         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
3204         code snippet that references the function pointer, rather than merely
3205         calling the function. Substitute the FUNC_LIBM variable.
3206         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
3207         * modules/acos (configure.ac): Likewise.
3208         * modules/asin (configure.ac): Likewise.
3209         * modules/atan (configure.ac): Likewise.
3210         * modules/atan2 (configure.ac): Likewise.
3211         * modules/cbrt (configure.ac): Likewise.
3212         * modules/copysign (configure.ac): Likewise.
3213         * modules/cos (configure.ac): Likewise.
3214         * modules/cosh (configure.ac): Likewise.
3215         * modules/erf (configure.ac): Likewise.
3216         * modules/erfc (configure.ac): Likewise.
3217         * modules/exp (configure.ac): Likewise.
3218         * modules/fabs (configure.ac): Likewise.
3219         * modules/fmod (configure.ac): Likewise.
3220         * modules/hypot (configure.ac): Likewise.
3221         * modules/j0 (configure.ac): Likewise.
3222         * modules/j1 (configure.ac): Likewise.
3223         * modules/jn (configure.ac): Likewise.
3224         * modules/ldexp (configure.ac): Likewise.
3225         * modules/lgamma (configure.ac): Likewise.
3226         * modules/log (configure.ac): Likewise.
3227         * modules/log10 (configure.ac): Likewise.
3228         * modules/log1p (configure.ac): Likewise.
3229         * modules/logb (configure.ac): Likewise.
3230         * modules/modf (configure.ac): Likewise.
3231         * modules/nextafter (configure.ac): Likewise.
3232         * modules/pow (configure.ac): Likewise.
3233         * modules/remainder (configure.ac): Likewise.
3234         * modules/rint (configure.ac): Likewise.
3235         * modules/sin (configure.ac): Likewise.
3236         * modules/sinh (configure.ac): Likewise.
3237         * modules/tan (configure.ac): Likewise.
3238         * modules/tanh (configure.ac): Likewise.
3239         * modules/y0 (configure.ac): Likewise.
3240         * modules/y1 (configure.ac): Likewise.
3241         * modules/yn (configure.ac): Likewise.
3242
3243 2010-01-24  Bruno Haible  <bruno@clisp.org>
3244
3245         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
3246         * tests/test-acosl.c (x): New variable.
3247         (main): Store argument in x and fetch it from x.
3248         * tests/test-asinl.c (x): New variable.
3249         (main): Store argument in x and fetch it from x.
3250         * tests/test-atanl.c (x): New variable.
3251         (main): Store argument in x and fetch it from x.
3252         * tests/test-cosl.c (x): New variable.
3253         (main): Store argument in x and fetch it from x.
3254         * tests/test-expl.c (x): New variable.
3255         (main): Store argument in x and fetch it from x.
3256         * tests/test-logl.c (x): New variable.
3257         (main): Store argument in x and fetch it from x.
3258         * tests/test-sinl.c (x): New variable.
3259         (main): Store argument in x and fetch it from x.
3260         * tests/test-sqrtl.c (x): New variable.
3261         (main): Store argument in x and fetch it from x.
3262         * tests/test-tanl.c (x): New variable.
3263         (main): Store argument in x and fetch it from x.
3264
3265 2010-01-24  Bruno Haible  <bruno@clisp.org>
3266
3267         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
3268         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
3269         assignments to the initial TESTS_ENVIRONMENT.
3270         * doc/gnulib.texi (Unit test modules): Document it.
3271         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
3272         TESTS_ENVIRONMENT.
3273         * modules/btowc-tests (Makefile.am): Likewise.
3274         * modules/c-stack-tests (Makefile.am): Likewise.
3275         * modules/c-strcase-tests (Makefile.am): Likewise.
3276         * modules/copy-file-tests (Makefile.am): Likewise.
3277         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
3278         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
3279         * modules/mbrtowc-tests (Makefile.am): Likewise.
3280         * modules/mbscasecmp-tests (Makefile.am): Likewise.
3281         * modules/mbscasestr-tests (Makefile.am): Likewise.
3282         * modules/mbschr-tests (Makefile.am): Likewise.
3283         * modules/mbscspn-tests (Makefile.am): Likewise.
3284         * modules/mbsinit-tests (Makefile.am): Likewise.
3285         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
3286         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
3287         * modules/mbspbrk-tests (Makefile.am): Likewise.
3288         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
3289         * modules/mbsrchr-tests (Makefile.am): Likewise.
3290         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
3291         * modules/mbsspn-tests (Makefile.am): Likewise.
3292         * modules/mbsstr-tests (Makefile.am): Likewise.
3293         * modules/nl_langinfo-tests (Makefile.am): Likewise.
3294         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
3295         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
3296         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
3297         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
3298         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
3299         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
3300         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
3301         * modules/wcrtomb-tests (Makefile.am): Likewise.
3302         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
3303         * modules/wcsrtombs-tests (Makefile.am): Likewise.
3304         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
3305         assignments from TESTS_ENVIRONMENT.
3306         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
3307         augmentation.
3308         * modules/argp-version-etc-tests (Makefile.am): Likewise.
3309         * modules/atexit-tests (Makefile.am): Likewise.
3310         * modules/binary-io-tests (Makefile.am): Likewise.
3311         * modules/closein-tests (Makefile.am): Likewise.
3312         * modules/dprintf-posix-tests (Makefile.am): Likewise.
3313         * modules/exclude-tests (Makefile.am): Likewise.
3314         * modules/fflush-tests (Makefile.am): Likewise.
3315         * modules/fpending-tests (Makefile.am): Likewise.
3316         * modules/fprintf-posix-tests (Makefile.am): Likewise.
3317         * modules/freadahead-tests (Makefile.am): Likewise.
3318         * modules/freadptr-tests (Makefile.am): Likewise.
3319         * modules/freadseek-tests (Makefile.am): Likewise.
3320         * modules/fseek-tests (Makefile.am): Likewise.
3321         * modules/fseeko-tests (Makefile.am): Likewise.
3322         * modules/ftell-tests (Makefile.am): Likewise.
3323         * modules/ftello-tests (Makefile.am): Likewise.
3324         * modules/idpriv-drop-tests (Makefile.am): Likewise.
3325         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
3326         * modules/lseek-tests (Makefile.am): Likewise.
3327         * modules/parse-duration-tests (Makefile.am): Likewise.
3328         * modules/perror-tests (Makefile.am): Likewise.
3329         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
3330         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
3331         * modules/pipe-tests (Makefile.am): Likewise.
3332         * modules/pread-tests (Makefile.am): Likewise.
3333         * modules/printf-posix-tests (Makefile.am): Likewise.
3334         * modules/select-tests (Makefile.am): Likewise.
3335         * modules/sigpipe-tests (Makefile.am): Likewise.
3336         * modules/tsearch-tests (Makefile.am): Likewise.
3337         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
3338         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
3339         * modules/uniname/uniname-tests (Makefile.am): Likewise.
3340         * modules/uniwidth/width-tests (Makefile.am): Likewise.
3341         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
3342         * modules/version-etc-tests (Makefile.am): Likewise.
3343         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
3344         * modules/vprintf-posix-tests (Makefile.am): Likewise.
3345         * modules/xalloc-die-tests (Makefile.am): Likewise.
3346         * modules/xprintf-posix-tests (Makefile.am): Likewise.
3347         * modules/xstrtoimax-tests (Makefile.am): Likewise.
3348         * modules/xstrtol-tests (Makefile.am): Likewise.
3349         * modules/xstrtoumax-tests (Makefile.am): Likewise.
3350         * modules/yesno-tests (Makefile.am): Likewise.
3351         Suggested by Jim Meyering.
3352
3353 2010-01-24  Bruno Haible  <bruno@clisp.org>
3354
3355         More documentation.
3356         * doc/gnulib.texi (Writing modules): New chapter.
3357         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
3358         the new chapter.
3359
3360 2010-01-24  Jim Meyering  <meyering@redhat.com>
3361
3362         maint.mk: do not prepend "./" after filtering
3363         * top/maint.mk (_prepend_srcdir_prefix): New variable
3364         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
3365         "./" when $(srcdir) is ".".
3366
3367         define STREQ(a,b) consistently, removing useless parentheses
3368         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
3369         since the only risk is that "a" or "b" contains an unparenthesized
3370         comma, but if either did that, STREQ would have 3 or more arguments.
3371         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
3372         * lib/fts.c (STREQ): Remove unnecessary parentheses.
3373         * lib/hash-triple.c (STREQ): Likewise.
3374         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
3375         * lib/getugroups.c (STREQ): Likewise.
3376
3377 2010-01-23  Jim Meyering  <meyering@redhat.com>
3378
3379         maint.mk: fix syntax-check in a non-srcdir build directory
3380         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
3381         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
3382
3383 2010-01-22  Jim Meyering  <meyering@redhat.com>
3384
3385         userspec: add unit tests
3386         * tests/test-userspec.c: New file.
3387         * modules/userspec-tests: Likewise.
3388
3389 2010-01-21  Jim Meyering  <meyering@redhat.com>
3390
3391         maint.mk: handle source file names containing "." robustly
3392         * top/maint.mk (_dot_escaped_srcdir): Define.
3393         (VC_LIST): Use it in LHS of sed substitution.
3394
3395 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
3396
3397         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
3398         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
3399         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
3400         from a non-srcdir build.
3401
3402 2010-01-20  Eric Blake  <ebb9@byu.net>
3403
3404         warn-on-use: use instead of link-warning
3405         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
3406         * modules/unistd (Depends-on, Makefile.am): Likewise.
3407         * modules/arpa_inet (Depends-on): Replace link-warning with
3408         warn-on-use.
3409         (Makefile.am): Update rules accordingly.
3410         * modules/ctype (Depends-on, Makefile.am): Likewise.
3411         * modules/dirent (Depends-on, Makefile.am): Likewise.
3412         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
3413         * modules/inttypes (Depends-on, Makefile.am): Likewise.
3414         * modules/langinfo (Depends-on, Makefile.am): Likewise.
3415         * modules/locale (Depends-on, Makefile.am): Likewise.
3416         * modules/math (Depends-on, Makefile.am): Likewise.
3417         * modules/search (Depends-on, Makefile.am): Likewise.
3418         * modules/signal (Depends-on, Makefile.am): Likewise.
3419         * modules/spawn (Depends-on, Makefile.am): Likewise.
3420         * modules/stdlib (Depends-on, Makefile.am): Likewise.
3421         * modules/string (Depends-on, Makefile.am): Likewise.
3422         * modules/strings (Depends-on, Makefile.am): Likewise.
3423         * modules/sys_file (Depends-on, Makefile.am): Likewise.
3424         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
3425         * modules/sys_select (Depends-on, Makefile.am): Likewise.
3426         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
3427         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
3428         * modules/sys_times (Depends-on, Makefile.am): Likewise.
3429         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
3430         * modules/wchar (Depends-on, Makefile.am): Likewise.
3431         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
3432         should be poisoned.
3433         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
3434         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
3435         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
3436         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
3437         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
3438         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
3439         * m4/math_h.m4 (gl_MATH_H): Likewise.
3440         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
3441         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
3442         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3443         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
3444         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
3445         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
3446         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
3447         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
3448         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
3449         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3450         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
3451         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
3452         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
3453         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
3454         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3455         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
3456         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
3457         GL_LINK_WARNING.
3458         * lib/ctype.in.h: Likewise.
3459         * lib/dirent.in.h: Likewise.
3460         * lib/fcntl.in.h: Likewise.
3461         * lib/inttypes.in.h: Likewise.
3462         * lib/langinfo.in.h: Likewise.
3463         * lib/locale.in.h: Likewise.
3464         * lib/math.in.h: Likewise.
3465         * lib/search.in.h: Likewise.
3466         * lib/signal.in.h: Likewise.
3467         * lib/spawn.in.h: Likewise.
3468         * lib/stdio.in.h: Likewise.
3469         * lib/stdlib.in.h: Likewise.
3470         * lib/string.in.h: Likewise.
3471         * lib/strings.in.h: Likewise.
3472         * lib/sys_file.in.h: Likewise.
3473         * lib/sys_ioctl.in.h: Likewise.
3474         * lib/sys_select.in.h: Likewise.
3475         * lib/sys_socket.in.h: Likewise.
3476         * lib/sys_stat.in.h: Likewise.
3477         * lib/sys_times.in.h: Likewise.
3478         * lib/sys_utsname.in.h: Likewise.
3479         * lib/unistd.in.h: Likewise.
3480         * lib/wchar.in.h: Likewise.
3481
3482 2010-01-20  Bruno Haible  <bruno@clisp.org>
3483
3484         Avoid duplicate -lm.
3485         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
3486         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
3487         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
3488         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
3489         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
3490         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
3491         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
3492         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
3493         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
3494         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
3495         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
3496         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
3497         Reported by Paolo Bonzini.
3498
3499 2010-01-19  Bruno Haible  <bruno@clisp.org>
3500
3501         langinfo, nl_langinfo: Relicense under LGPLv2+.
3502         * modules/langinfo (License): Change to LGPLv2+.
3503         * modules/nl_langinfo (License): Likewise.
3504         Patch by David Lutterkort <lutter@redhat.com>.
3505
3506 2010-01-19  Bruno Haible  <bruno@clisp.org>
3507
3508         Avoid compilation error with cc on OSF/1 5.1.
3509         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
3510         statement, not before.
3511         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3512
3513 2010-01-18  Bruno Haible  <bruno@clisp.org>
3514
3515         Avoid a link error due to the __printf__ symbol.
3516         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
3517         and 2.6.x.
3518         (__format__, __printf__): Remove definitions.
3519         * lib/argp-fmtstream.h: Likewise.
3520         * lib/argp.h: Likewise.
3521         * lib/error.h: Likewise.
3522         * lib/vasnprintf.h: Likewise.
3523         * lib/xprintf.h: Likewise.
3524         * lib/xvasprintf.h: Likewise.
3525         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3526
3527 2010-01-18  Bruno Haible  <bruno@clisp.org>
3528
3529         Tests for module 'tanl'.
3530         * modules/tanl-tests: New file.
3531         * tests/test-tanl.c: New file.
3532
3533         Tests for module 'sqrtl'.
3534         * modules/sqrtl-tests: New file.
3535         * tests/test-sqrtl.c: New file.
3536
3537         Tests for module 'sinl'.
3538         * modules/sinl-tests: New file.
3539         * tests/test-sinl.c: New file.
3540
3541         Tests for module 'logl'.
3542         * modules/logl-tests: New file.
3543         * tests/test-logl.c: New file.
3544
3545         Tests for module 'expl'.
3546         * modules/expl-tests: New file.
3547         * tests/test-expl.c: New file.
3548
3549         Tests for module 'cosl'.
3550         * modules/cosl-tests: New file.
3551         * tests/test-cosl.c: New file.
3552
3553         Tests for module 'atanl'.
3554         * modules/atanl-tests: New file.
3555         * tests/test-atanl.c: New file.
3556
3557         Tests for module 'asinl'.
3558         * modules/asinl-tests: New file.
3559         * tests/test-asinl.c: New file.
3560
3561         Tests for module 'acosl'.
3562         * modules/acosl-tests: New file.
3563         * tests/test-acosl.c: New file.
3564
3565         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
3566         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
3567         tanl): Use the standard gnulib idiom.
3568         * lib/cosl.c: Don't include trigl.c and sincosl.c.
3569         * lib/sinl.c: Likewise.
3570         * lib/tanl.c: Don't include trigl.c.
3571         (kernel_tanl): Make static.
3572         * lib/sincosl.c: Include trigl.h first.
3573         * lib/trigl.c: Likewise.
3574         * m4/acosl.m4: New file.
3575         * m4/asinl.m4: New file.
3576         * m4/atanl.m4: New file.
3577         * m4/cosl.m4: New file.
3578         * m4/expl.m4: New file.
3579         * m4/logl.m4: New file.
3580         * m4/sinl.m4: New file.
3581         * m4/sqrtl.m4: New file.
3582         * m4/tanl.m4: New file.
3583         * m4/mathl.m4: Remove file.
3584         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
3585         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
3586         Don't initialize GNULIB_MATHL.
3587         * modules/acosl: New file.
3588         * modules/asinl: New file.
3589         * modules/atanl: New file.
3590         * modules/cosl: New file.
3591         * modules/expl: New file.
3592         * modules/logl: New file.
3593         * modules/sinl: New file.
3594         * modules/sqrtl: New file.
3595         * modules/tanl: New file.
3596         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
3597         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
3598         substitute GNULIB_MATHL.
3599         * modules/mathl: Rewritten.
3600         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
3601         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
3602         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
3603         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
3604         * doc/posix-functions/expl.texi: Mention the 'expl' module.
3605         * doc/posix-functions/logl.texi: Mention the 'logl' module.
3606         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
3607         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
3608         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
3609
3610 2010-01-18  Bruno Haible  <bruno@clisp.org>
3611
3612         sqrt: Make gl_FUNC_SQRT requirable.
3613         * m4/sqrt.m4: New file.
3614         * modules/sqrt (Files): Add it.
3615         (configure.ac): Invoke gl_FUNC_SQRT.
3616
3617 2010-01-18  Bruno Haible  <bruno@clisp.org>
3618
3619         New modules for common <math.h> functions.
3620         * m4/mathfunc.m4: New file.
3621         * modules/acos: New file.
3622         * modules/asin: New file.
3623         * modules/atan: New file.
3624         * modules/atan2: New file.
3625         * modules/cbrt: New file.
3626         * modules/copysign: New file.
3627         * modules/cos: New file.
3628         * modules/cosh: New file.
3629         * modules/erf: New file.
3630         * modules/erfc: New file.
3631         * modules/exp: New file.
3632         * modules/fabs: New file.
3633         * modules/fmod: New file.
3634         * modules/hypot: New file.
3635         * modules/j0: New file.
3636         * modules/j1: New file.
3637         * modules/jn: New file.
3638         * modules/ldexp: New file.
3639         * modules/lgamma: New file.
3640         * modules/log: New file.
3641         * modules/log10: New file.
3642         * modules/log1p: New file.
3643         * modules/logb: New file.
3644         * modules/modf: New file.
3645         * modules/nextafter: New file.
3646         * modules/pow: New file.
3647         * modules/remainder: New file.
3648         * modules/rint: New file.
3649         * modules/sin: New file.
3650         * modules/sinh: New file.
3651         * modules/sqrt: New file.
3652         * modules/tan: New file.
3653         * modules/tanh: New file.
3654         * modules/y0: New file.
3655         * modules/y1: New file.
3656         * modules/yn: New file.
3657         * doc/posix-functions/acos.texi: Mention the 'acos' module.
3658         * doc/posix-functions/asin.texi: Mention the 'asin' module.
3659         * doc/posix-functions/atan.texi: Mention the 'atan' module.
3660         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
3661         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
3662         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
3663         * doc/posix-functions/cos.texi: Mention the 'cos' module.
3664         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
3665         * doc/posix-functions/erf.texi: Mention the 'erf' module.
3666         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
3667         * doc/posix-functions/exp.texi: Mention the 'exp' module.
3668         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
3669         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
3670         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
3671         * doc/posix-functions/j0.texi: Mention the 'j0' module.
3672         * doc/posix-functions/j1.texi: Mention the 'j1' module.
3673         * doc/posix-functions/jn.texi: Mention the 'jn' module.
3674         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
3675         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
3676         * doc/posix-functions/log.texi: Mention the 'log' module.
3677         * doc/posix-functions/log10.texi: Mention the 'log10' module.
3678         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
3679         * doc/posix-functions/logb.texi: Mention the 'logb' module.
3680         * doc/posix-functions/modf.texi: Mention the 'modf' module.
3681         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
3682         * doc/posix-functions/pow.texi: Mention the 'pow' module.
3683         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
3684         * doc/posix-functions/rint.texi: Mention the 'rint' module.
3685         * doc/posix-functions/sin.texi: Mention the 'sin' module.
3686         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
3687         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
3688         * doc/posix-functions/tan.texi: Mention the 'tan' module.
3689         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
3690         * doc/posix-functions/y0.texi: Mention the 'y0' module.
3691         * doc/posix-functions/y1.texi: Mention the 'y1' module.
3692         * doc/posix-functions/yn.texi: Mention the 'yn' module.
3693
3694 2010-01-18  Jim Meyering  <meyering@redhat.com>
3695
3696         ignore-value: relax license to LGPLv2+
3697         * modules/ignore-value (License): Relax to LGPLv2+.
3698
3699         getdate: don't leak when TZ contains two or more '"'s
3700         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
3701         double quote in TZ after the first one.
3702
3703         readtokens: do not leak internal token_lengths buffer
3704         * lib/readtokens.c (readtokens): Free the local, lengths,
3705         when the supplied "token_lengths" parameter is NULL.
3706
3707 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3708
3709         Fix a couple of missing LIBTHREAD link failures on AIX.
3710         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
3711         $(LIBTHREAD).
3712         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
3713
3714         Link test-poll against INET_PTON_LIB.
3715         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
3716         for inet_pton on Solaris 10.
3717
3718 2010-01-17  Bruno Haible  <bruno@clisp.org>
3719
3720         unistdio/*-sprintf: Fix typo in module description.
3721         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
3722         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
3723         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
3724         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
3725         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
3726         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
3727         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
3728         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3729
3730 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3731
3732         gnulib-tool: fix filelist for AIX, HP-UX ksh.
3733         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
3734         variables in shell case patterns, for AIX and HP-UX ksh.
3735
3736         Split large sed scripts, for HP-UX sed.
3737         * modules/stdio: Split sed scripts around 50 sed commands,
3738         to avoid HP-UX limit of 99 commands, in the near future.
3739         * modules/string: Likewise.
3740         * modules/unistd: Likewise.
3741
3742         gnulib-tool: avoid writing in the current directory.
3743         * gnulib-tool (func_emit_lib_Makefile_am)
3744         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
3745         not in the current directory, so concurrent gnulib-tool
3746         instances do not interfere.
3747
3748 2010-01-16  Jim Meyering  <meyering@redhat.com>
3749
3750         doc: update users.txt
3751         * users.txt: Add grep.
3752         (diffutils, gzip): Update URLs.
3753
3754 2010-01-12  Bruno Haible  <bruno@clisp.org>
3755
3756         posix_spawn: Avoid test failure on Cygwin.
3757         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
3758         characters.
3759         Reported by Simon Josefsson.
3760
3761 2010-01-12  Bruno Haible  <bruno@clisp.org>
3762
3763         * tests/test-cond.c (main): When skipping the test, show the reason.
3764
3765 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3766
3767         * lib/striconv.c (str_cd_iconv): Avoid if before free.
3768
3769 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3770
3771         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
3772         VC_LIST_ALWAYS_EXCLUDE_REGEX.
3773
3774 2010-01-12  Eric Blake  <ebb9@byu.net>
3775
3776         build: guarantee AS_VAR_IF
3777         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
3778         (gl_AS_VAR_IF): Move...
3779         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
3780         Reported by Simon Josefsson.
3781
3782 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3783
3784         * lib/stdio.in.h: Fix typo.
3785
3786 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3787
3788         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
3789         libgpg-error.
3790
3791 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3792
3793         * tests/test-xalloc-die.sh: Use $EXEEXT.
3794
3795 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3796             Bruno Haible  <bruno@clisp.org>
3797
3798         getlogin, getlogin_r: Avoid test failure.
3799         * tests/test-getlogin.c: Include <stdio.h>.
3800         (main): Skip the test when the function fails because stdin is not a
3801         tty.
3802         * tests/test-getlogin_r.c: Include <stdio.h>.
3803         (main): Skip the test when the function fails because stdin is not a
3804         tty.
3805
3806 2010-01-11  Eric Blake  <ebb9@byu.net>
3807
3808         tests: avoid more large file warnings
3809         * tests/test-fflush.c: Avoid warning about ftell use.
3810         * tests/test-fseek.c: Avoid warning about fseek use.
3811
3812 2010-01-10  Bruno Haible  <bruno@clisp.org>
3813
3814         nproc: Work better on Linux when /proc and /sys are not mounted.
3815         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
3816         as lower bound when, on glibc/Linux systems,
3817         sysconf (_SC_NPROCESSORS_CONF) returns 1.
3818         Suggested by Pádraig Brady <P@draigbrady.com>.
3819         Reported by Dmitry V. Levin <ldv@altlinux.org>.
3820
3821         nproc: Refactor.
3822         * lib/nproc.c (num_processors_via_affinity_mask): New function,
3823         extracted from num_processors.
3824         (num_processors): Call it.
3825
3826 2010-01-11  Jim Meyering  <meyering@redhat.com>
3827
3828         utimecmp: avoid new warning from upcoming gcc-4.5.0
3829         * lib/utimecmp.c (BILLION): Define using #define rather than an
3830         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
3831
3832 2010-01-11  Eric Blake  <ebb9@byu.net>
3833
3834         math: add portability warnings for classification macros
3835         * modules/math (Depends-on): Add warn-on-use.
3836         (Makefile.am): Provide new substitutions.
3837         * m4/math_h.m4 (gl_MATH_H): Require inline.
3838         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
3839         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
3840         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
3841         implement warnings.
3842
3843         unistd: warn on use of environ without module
3844         * modules/unistd (Depends-on): Add warn-on-use.
3845         (Makefile.am): Provide new substitutions.
3846         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
3847         * lib/unistd.in.h (environ): Wrap with a warning helper function.
3848
3849         stdio: warn on suspicious uses
3850         * modules/stdio (Depends-on): Add warn-on-use.
3851         (Makefile.am): Provide new substitutions.
3852         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
3853         fseeko.
3854         * lib/stdio.in.h (gets): Always warn on use.
3855         (fseek, ftell): Adjust when warnings are issued, and honor
3856         _GL_NO_LARGE_FILES as a way to silence the warning.
3857         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
3858         any warning about large file offsets.
3859         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
3860         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
3861         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
3862         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
3863         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
3864         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
3865         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
3866         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
3867
3868         warn-on-use: new module
3869         * modules/warn-on-use: New file.
3870         * build-aux/warn-on-use.h: Likewise.
3871         * m4/warn-on-use.m4: Likewise.
3872         * MODULES.html.sh (Support for building): Mention it.
3873
3874 2010-01-10  Bruno Haible  <bruno@clisp.org>
3875
3876         Tests for module 'unistr/u32-strdup'.
3877         * modules/unistr/u32-strdup-tests: New file.
3878         * tests/unistr/test-u32-strdup.c: New file.
3879
3880         Tests for module 'unistr/u16-strdup'.
3881         * modules/unistr/u16-strdup-tests: New file.
3882         * tests/unistr/test-u16-strdup.c: New file.
3883
3884         Tests for module 'unistr/u8-strdup'.
3885         * modules/unistr/u8-strdup-tests: New file.
3886         * tests/unistr/test-u8-strdup.c: New file.
3887         * tests/unistr/test-strdup.h: New file.
3888
3889         Tests for module 'unistr/u32-strncmp'.
3890         * modules/unistr/u32-strncmp-tests: New file.
3891         * tests/unistr/test-u32-strncmp.c: New file.
3892
3893         Tests for module 'unistr/u16-strncmp'.
3894         * modules/unistr/u16-strncmp-tests: New file.
3895         * tests/unistr/test-u16-strncmp.c: New file.
3896
3897         Tests for module 'unistr/u8-strncmp'.
3898         * modules/unistr/u8-strncmp-tests: New file.
3899         * tests/unistr/test-u8-strncmp.c: New file.
3900         * tests/unistr/test-strncmp.h: New file.
3901
3902         Tests for module 'unistr/u32-strcoll'.
3903         * modules/unistr/u32-strcoll-tests: New file.
3904         * tests/unistr/test-u32-strcoll.c: New file.
3905
3906         Tests for module 'unistr/u16-strcoll'.
3907         * modules/unistr/u16-strcoll-tests: New file.
3908         * tests/unistr/test-u16-strcoll.c: New file.
3909
3910         Tests for module 'unistr/u8-strcoll'.
3911         * modules/unistr/u8-strcoll-tests: New file.
3912         * tests/unistr/test-u8-strcoll.c: New file.
3913
3914         Tests for module 'unistr/u32-strcmp'.
3915         * modules/unistr/u32-strcmp-tests: New file.
3916         * tests/unistr/test-u32-strcmp.c: New file.
3917         * tests/unistr/test-u32-strcmp.h: New file.
3918
3919         Tests for module 'unistr/u16-strcmp'.
3920         * modules/unistr/u16-strcmp-tests: New file.
3921         * tests/unistr/test-u16-strcmp.c: New file.
3922         * tests/unistr/test-u16-strcmp.h: New file.
3923
3924         Tests for module 'unistr/u8-strcmp'.
3925         * modules/unistr/u8-strcmp-tests: New file.
3926         * tests/unistr/test-u8-strcmp.c: New file.
3927         * tests/unistr/test-u8-strcmp.h: New file.
3928         * tests/unistr/test-strcmp.h: New file.
3929
3930         Tests for module 'unistr/u32-strncat'.
3931         * modules/unistr/u32-strncat-tests: New file.
3932         * tests/unistr/test-u32-strncat.c: New file.
3933
3934         Tests for module 'unistr/u16-strncat'.
3935         * modules/unistr/u16-strncat-tests: New file.
3936         * tests/unistr/test-u16-strncat.c: New file.
3937
3938         Tests for module 'unistr/u8-strncat'.
3939         * modules/unistr/u8-strncat-tests: New file.
3940         * tests/unistr/test-u8-strncat.c: New file.
3941         * tests/unistr/test-strncat.h: New file.
3942
3943         Tests for module 'unistr/u32-strcat'.
3944         * modules/unistr/u32-strcat-tests: New file.
3945         * tests/unistr/test-u32-strcat.c: New file.
3946
3947         Tests for module 'unistr/u16-strcat'.
3948         * modules/unistr/u16-strcat-tests: New file.
3949         * tests/unistr/test-u16-strcat.c: New file.
3950
3951         Tests for module 'unistr/u8-strcat'.
3952         * modules/unistr/u8-strcat-tests: New file.
3953         * tests/unistr/test-u8-strcat.c: New file.
3954         * tests/unistr/test-strcat.h: New file.
3955
3956         Tests for module 'unistr/u32-stpncpy'.
3957         * modules/unistr/u32-stpncpy-tests: New file.
3958         * tests/unistr/test-u32-stpncpy.c: New file.
3959
3960         Tests for module 'unistr/u16-stpncpy'.
3961         * modules/unistr/u16-stpncpy-tests: New file.
3962         * tests/unistr/test-u16-stpncpy.c: New file.
3963
3964         Tests for module 'unistr/u8-stpncpy'.
3965         * modules/unistr/u8-stpncpy-tests: New file.
3966         * tests/unistr/test-u8-stpncpy.c: New file.
3967         * tests/unistr/test-stpncpy.h: New file.
3968
3969         Tests for module 'unistr/u32-strncpy'.
3970         * modules/unistr/u32-strncpy-tests: New file.
3971         * tests/unistr/test-u32-strncpy.c: New file.
3972
3973         Tests for module 'unistr/u16-strncpy'.
3974         * modules/unistr/u16-strncpy-tests: New file.
3975         * tests/unistr/test-u16-strncpy.c: New file.
3976
3977         Tests for module 'unistr/u8-strncpy'.
3978         * modules/unistr/u8-strncpy-tests: New file.
3979         * tests/unistr/test-u8-strncpy.c: New file.
3980         * tests/unistr/test-strncpy.h: New file.
3981
3982         Tests for module 'unistr/u32-stpcpy'.
3983         * modules/unistr/u32-stpcpy-tests: New file.
3984         * tests/unistr/test-u32-stpcpy.c: New file.
3985
3986         Tests for module 'unistr/u16-stpcpy'.
3987         * modules/unistr/u16-stpcpy-tests: New file.
3988         * tests/unistr/test-u16-stpcpy.c: New file.
3989
3990         Tests for module 'unistr/u8-stpcpy'.
3991         * modules/unistr/u8-stpcpy-tests: New file.
3992         * tests/unistr/test-u8-stpcpy.c: New file.
3993         * tests/unistr/test-stpcpy.h: New file.
3994
3995         Tests for module 'unistr/u32-strcpy'.
3996         * modules/unistr/u32-strcpy-tests: New file.
3997         * tests/unistr/test-u32-strcpy.c: New file.
3998
3999         Tests for module 'unistr/u16-strcpy'.
4000         * modules/unistr/u16-strcpy-tests: New file.
4001         * tests/unistr/test-u16-strcpy.c: New file.
4002
4003         Tests for module 'unistr/u8-strcpy'.
4004         * modules/unistr/u8-strcpy-tests: New file.
4005         * tests/unistr/test-u8-strcpy.c: New file.
4006         * tests/unistr/test-strcpy.h: New file.
4007
4008         Tests for module 'unistr/u32-strnlen'.
4009         * modules/unistr/u32-strnlen-tests: New file.
4010         * tests/unistr/test-u32-strnlen.c: New file.
4011
4012         Tests for module 'unistr/u16-strnlen'.
4013         * modules/unistr/u16-strnlen-tests: New file.
4014         * tests/unistr/test-u16-strnlen.c: New file.
4015
4016         Tests for module 'unistr/u8-strnlen'.
4017         * modules/unistr/u8-strnlen-tests: New file.
4018         * tests/unistr/test-u8-strnlen.c: New file.
4019         * tests/unistr/test-strnlen.h: New file.
4020
4021         Tests for module 'unistr/u32-strlen'.
4022         * modules/unistr/u32-strlen-tests: New file.
4023         * tests/unistr/test-u32-strlen.c: New file.
4024
4025         Tests for module 'unistr/u16-strlen'.
4026         * modules/unistr/u16-strlen-tests: New file.
4027         * tests/unistr/test-u16-strlen.c: New file.
4028
4029         Tests for module 'unistr/u8-strlen'.
4030         * modules/unistr/u8-strlen-tests: New file.
4031         * tests/unistr/test-u8-strlen.c: New file.
4032
4033         Tests for module 'unistr/u32-prev'.
4034         * modules/unistr/u32-prev-tests: New file.
4035         * tests/unistr/test-u32-prev.c: New file.
4036
4037         Tests for module 'unistr/u16-prev'.
4038         * modules/unistr/u16-prev-tests: New file.
4039         * tests/unistr/test-u16-prev.c: New file.
4040
4041         Tests for module 'unistr/u8-prev'.
4042         * modules/unistr/u8-prev-tests: New file.
4043         * tests/unistr/test-u8-prev.c: New file.
4044
4045         Tests for module 'unistr/u32-next'.
4046         * modules/unistr/u32-next-tests: New file.
4047         * tests/unistr/test-u32-next.c: New file.
4048
4049         Tests for module 'unistr/u16-next'.
4050         * modules/unistr/u16-next-tests: New file.
4051         * tests/unistr/test-u16-next.c: New file.
4052
4053         Tests for module 'unistr/u8-next'.
4054         * modules/unistr/u8-next-tests: New file.
4055         * tests/unistr/test-u8-next.c: New file.
4056
4057         Tests for module 'unistr/u32-strmbtouc'.
4058         * modules/unistr/u32-strmbtouc-tests: New file.
4059         * tests/unistr/test-u32-strmbtouc.c: New file.
4060
4061         Tests for module 'unistr/u16-strmbtouc'.
4062         * modules/unistr/u16-strmbtouc-tests: New file.
4063         * tests/unistr/test-u16-strmbtouc.c: New file.
4064
4065         Tests for module 'unistr/u8-strmbtouc'.
4066         * modules/unistr/u8-strmbtouc-tests: New file.
4067         * tests/unistr/test-u8-strmbtouc.c: New file.
4068
4069         Tests for module 'unistr/u32-strmblen'.
4070         * modules/unistr/u32-strmblen-tests: New file.
4071         * tests/unistr/test-u32-strmblen.c: New file.
4072
4073         Tests for module 'unistr/u16-strmblen'.
4074         * modules/unistr/u16-strmblen-tests: New file.
4075         * tests/unistr/test-u16-strmblen.c: New file.
4076
4077         Tests for module 'unistr/u8-strmblen'.
4078         * modules/unistr/u8-strmblen-tests: New file.
4079         * tests/unistr/test-u8-strmblen.c: New file.
4080
4081         Tests for module 'unistr/u32-cpy-alloc'.
4082         * modules/unistr/u32-cpy-alloc-tests: New file.
4083         * tests/unistr/test-u32-cpy-alloc.c: New file.
4084
4085         Tests for module 'unistr/u16-cpy-alloc'.
4086         * modules/unistr/u16-cpy-alloc-tests: New file.
4087         * tests/unistr/test-u16-cpy-alloc.c: New file.
4088
4089         Tests for module 'unistr/u8-cpy-alloc'.
4090         * modules/unistr/u8-cpy-alloc-tests: New file.
4091         * tests/unistr/test-u8-cpy-alloc.c: New file.
4092         * tests/unistr/test-cpy-alloc.h: New file.
4093
4094         Tests for module 'unistr/u32-mbsnlen'.
4095         * modules/unistr/u32-mbsnlen-tests: New file.
4096         * tests/unistr/test-u32-mbsnlen.c: New file.
4097
4098         Tests for module 'unistr/u16-mbsnlen'.
4099         * modules/unistr/u16-mbsnlen-tests: New file.
4100         * tests/unistr/test-u16-mbsnlen.c: New file.
4101
4102         Tests for module 'unistr/u8-mbsnlen'.
4103         * modules/unistr/u8-mbsnlen-tests: New file.
4104         * tests/unistr/test-u8-mbsnlen.c: New file.
4105
4106         Tests for module 'unistr/u32-chr'.
4107         * modules/unistr/u32-chr-tests: New file.
4108         * tests/unistr/test-u32-chr.c: New file.
4109
4110         Tests for module 'unistr/u16-chr'.
4111         * modules/unistr/u16-chr-tests: New file.
4112         * tests/unistr/test-u16-chr.c: New file.
4113
4114         Tests for module 'unistr/u8-chr'.
4115         * modules/unistr/u8-chr-tests: New file.
4116         * tests/unistr/test-u8-chr.c: New file.
4117         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
4118
4119         Tests for module 'unistr/u32-cmp2'.
4120         * modules/unistr/u32-cmp2-tests: New file.
4121         * tests/unistr/test-u32-cmp2.c: New file.
4122
4123         Tests for module 'unistr/u16-cmp2'.
4124         * modules/unistr/u16-cmp2-tests: New file.
4125         * tests/unistr/test-u16-cmp2.c: New file.
4126
4127         Tests for module 'unistr/u8-cmp2'.
4128         * modules/unistr/u8-cmp2-tests: New file.
4129         * tests/unistr/test-u8-cmp2.c: New file.
4130         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
4131
4132         Tests for module 'unistr/u32-cmp'.
4133         * modules/unistr/u32-cmp-tests: New file.
4134         * tests/unistr/test-u32-cmp.c: New file.
4135
4136         Tests for module 'unistr/u16-cmp'.
4137         * modules/unistr/u16-cmp-tests: New file.
4138         * tests/unistr/test-u16-cmp.c: New file.
4139
4140         Tests for module 'unistr/u8-cmp'.
4141         * modules/unistr/u8-cmp-tests: New file.
4142         * tests/unistr/test-u8-cmp.c: New file.
4143         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
4144
4145         Tests for module 'unistr/u32-set'.
4146         * modules/unistr/u32-set-tests: New file.
4147         * tests/unistr/test-u32-set.c: New file.
4148
4149         Tests for module 'unistr/u16-set'.
4150         * modules/unistr/u16-set-tests: New file.
4151         * tests/unistr/test-u16-set.c: New file.
4152
4153         Tests for module 'unistr/u8-set'.
4154         * modules/unistr/u8-set-tests: New file.
4155         * tests/unistr/test-u8-set.c: New file.
4156         * tests/unistr/test-set.h: New file.
4157
4158         Tests for module 'unistr/u32-move'.
4159         * modules/unistr/u32-move-tests: New file.
4160         * tests/unistr/test-u32-move.c: New file.
4161
4162         Tests for module 'unistr/u16-move'.
4163         * modules/unistr/u16-move-tests: New file.
4164         * tests/unistr/test-u16-move.c: New file.
4165
4166         Tests for module 'unistr/u8-move'.
4167         * modules/unistr/u8-move-tests: New file.
4168         * tests/unistr/test-u8-move.c: New file.
4169         * tests/unistr/test-move.h: New file.
4170
4171         Tests for module 'unistr/u32-cpy'.
4172         * modules/unistr/u32-cpy-tests: New file.
4173         * tests/unistr/test-u32-cpy.c: New file.
4174
4175         Tests for module 'unistr/u16-cpy'.
4176         * modules/unistr/u16-cpy-tests: New file.
4177         * tests/unistr/test-u16-cpy.c: New file.
4178
4179         Tests for module 'unistr/u8-cpy'.
4180         * modules/unistr/u8-cpy-tests: New file.
4181         * tests/unistr/test-u8-cpy.c: New file.
4182         * tests/unistr/test-cpy.h: New file.
4183
4184 2010-01-09  Bruno Haible  <bruno@clisp.org>
4185
4186         Tests for module 'unistr/u32-uctomb'.
4187         * modules/unistr/u32-uctomb-tests: New file.
4188         * tests/unistr/test-u32-uctomb.c: New file.
4189
4190         Tests for module 'unistr/u16-uctomb'.
4191         * modules/unistr/u16-uctomb-tests: New file.
4192         * tests/unistr/test-u16-uctomb.c: New file.
4193
4194         Tests for module 'unistr/u8-uctomb'.
4195         * modules/unistr/u8-uctomb-tests: New file.
4196         * tests/unistr/test-u8-uctomb.c: New file.
4197
4198         Tests for module 'unistr/u32-mbtoucr'.
4199         * modules/unistr/u32-mbtoucr-tests: New file.
4200         * tests/unistr/test-u32-mbtoucr.c: New file.
4201
4202         Tests for module 'unistr/u16-mbtoucr'.
4203         * modules/unistr/u16-mbtoucr-tests: New file.
4204         * tests/unistr/test-u16-mbtoucr.c: New file.
4205
4206         Tests for module 'unistr/u8-mbtoucr'.
4207         * modules/unistr/u8-mbtoucr-tests: New file.
4208         * tests/unistr/test-u8-mbtoucr.c: New file.
4209
4210         Tests for module 'unistr/u32-mbtouc'.
4211         * modules/unistr/u32-mbtouc-tests: New file.
4212         * tests/unistr/test-u32-mbtouc.c: New file.
4213
4214         Tests for module 'unistr/u16-mbtouc'.
4215         * modules/unistr/u16-mbtouc-tests: New file.
4216         * tests/unistr/test-u16-mbtouc.c: New file.
4217
4218         Tests for module 'unistr/u8-mbtouc'.
4219         * modules/unistr/u8-mbtouc-tests: New file.
4220         * tests/unistr/test-u8-mbtouc.c: New file.
4221
4222         Tests for module 'unistr/u32-mbtouc-unsafe'.
4223         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
4224         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
4225         * tests/unistr/test-u32-mbtouc.h: New file.
4226
4227         Tests for module 'unistr/u16-mbtouc-unsafe'.
4228         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
4229         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
4230         * tests/unistr/test-u16-mbtouc.h: New file.
4231
4232         Tests for module 'unistr/u8-mbtouc-unsafe'.
4233         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
4234         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
4235         * tests/unistr/test-u8-mbtouc.h: New file.
4236
4237         Tests for module 'unistr/u32-mblen'.
4238         * modules/unistr/u32-mblen-tests: New file.
4239         * tests/unistr/test-u32-mblen.c: New file.
4240
4241         Tests for module 'unistr/u16-mblen'.
4242         * modules/unistr/u16-mblen-tests: New file.
4243         * tests/unistr/test-u16-mblen.c: New file.
4244
4245         Tests for module 'unistr/u8-mblen'.
4246         * modules/unistr/u8-mblen-tests: New file.
4247         * tests/unistr/test-u8-mblen.c: New file.
4248
4249         Tests for module 'unistr/u32-to-u16'.
4250         * modules/unistr/u32-to-u16-tests: New file.
4251         * tests/unistr/test-u32-to-u16.c: New file.
4252
4253         Tests for module 'unistr/u32-to-u8'.
4254         * modules/unistr/u32-to-u8-tests: New file.
4255         * tests/unistr/test-u32-to-u8.c: New file.
4256
4257         Tests for module 'unistr/u16-to-u32'.
4258         * modules/unistr/u16-to-u32-tests: New file.
4259         * tests/unistr/test-u16-to-u32.c: New file.
4260
4261         Tests for module 'unistr/u16-to-u8'.
4262         * modules/unistr/u16-to-u8-tests: New file.
4263         * tests/unistr/test-u16-to-u8.c: New file.
4264
4265         Tests for module 'unistr/u8-to-u32'.
4266         * modules/unistr/u8-to-u32-tests: New file.
4267         * tests/unistr/test-u8-to-u32.c: New file.
4268
4269         Tests for module 'unistr/u8-to-u16'.
4270         * modules/unistr/u8-to-u16-tests: New file.
4271         * tests/unistr/test-u8-to-u16.c: New file.
4272
4273         Tests for module 'unistr/u32-check'.
4274         * modules/unistr/u32-check-tests: New file.
4275         * tests/unistr/test-u32-check.c: New file.
4276
4277         Tests for module 'unistr/u16-check'.
4278         * modules/unistr/u16-check-tests: New file.
4279         * tests/unistr/test-u16-check.c: New file.
4280
4281         Tests for module 'unistr/u8-check'.
4282         * modules/unistr/u8-check-tests: New file.
4283         * tests/unistr/test-u8-check.c: New file.
4284
4285         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
4286         (category_equals): New function.
4287         (main): Add more tests.
4288         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
4289
4290         * tests/unictype/test-bidi_byname.c (main): Add more tests.
4291
4292 2010-01-10  Bruno Haible  <bruno@clisp.org>
4293
4294         unistr/u*-strcoll: Try harder to distinguish different strings.
4295         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
4296         compare s1 and s2 to see if they are different.
4297
4298 2010-01-10  Bruno Haible  <bruno@clisp.org>
4299
4300         unistr/u*-stpncpy: Fix the return value.
4301         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
4302         description of the return value consistent with stpncpy in glibc.
4303         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
4304         written non-NUL unit.
4305
4306 2010-01-10  Bruno Haible  <bruno@clisp.org>
4307
4308         unistr/u*-next: Add missing dependencies.
4309         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
4310         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
4311         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
4312
4313 2010-01-10  Bruno Haible  <bruno@clisp.org>
4314
4315         unistr/u8-mbsnlen: Fix return value for incomplete character.
4316         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
4317         u8_mblen.
4318         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
4319         Remove unistr/u8-mblen.
4320         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
4321         u16_mblen.
4322         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
4323         Remove unistr/u16-mblen.
4324
4325 2010-01-10  Bruno Haible  <bruno@clisp.org>
4326
4327         wchar: Fix compilation error when <wchar.h> is used from coreutils.
4328         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
4329         Reported by Brian Gough <bjg@gnu.org> and
4330         Chris Clayton <chris2553@googlemail.com> via
4331         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
4332
4333 2010-01-09  Bruno Haible  <bruno@clisp.org>
4334
4335         unistr/u16-to-u32: Reject invalid input.
4336         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
4337         u16_mbtouc.
4338         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
4339         Remove unistr/u16-mbtouc.
4340
4341         unistr/u16-to-u8: Reject invalid input.
4342         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
4343         u16_mbtouc.
4344         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
4345         Remove unistr/u16-mbtouc.
4346
4347         unistr/u8-to-u32: Reject invalid input.
4348         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
4349         u8_mbtouc.
4350         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
4351         Remove unistr/u8-mbtouc.
4352
4353         unistr/u8-to-u16: Reject invalid input.
4354         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
4355         u8_mbtouc.
4356         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
4357         Remove unistr/u8-mbtouc.
4358
4359 2010-01-09  Bruno Haible  <bruno@clisp.org>
4360
4361         Tests for module 'getlogin'.
4362         * modules/getlogin-tests: New file.
4363         * tests/test-getlogin.c: New file.
4364
4365         New module 'getlogin'.
4366         * lib/unistd.in.h (getlogin): New declaration.
4367         * lib/getlogin.c: New file.
4368         * m4/getlogin.m4: New file.
4369         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
4370         HAVE_GETLOGIN.
4371         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
4372         HAVE_GETLOGIN.
4373         * modules/getlogin: New file.
4374         * doc/posix-functions/getlogin.texi: Mention the new module.
4375         Reported by John W. Eaton <jwe@gnu.org>.
4376
4377 2010-01-09  Bruno Haible  <bruno@clisp.org>
4378
4379         getlogin_r: Support for native Windows.
4380         * lib/getlogin_r.c: Include <windows.h>
4381         (getlogin_r): Implement for native Windows.
4382         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
4383         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
4384         via John W. Eaton <jwe@gnu.org>.
4385
4386 2010-01-09  Bruno Haible  <bruno@clisp.org>
4387
4388         getlogin_r: Small fixes.
4389         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
4390         succeeds.
4391         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
4392         before testing whether getlogin_r is declared. No need to set
4393         HAVE_DECL_GETLOGIN_R to 1.
4394         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
4395
4396 2010-01-09  Bruno Haible  <bruno@clisp.org>
4397
4398         * lib/unistd.in.h (getlogin_r): Add comment.
4399
4400 2010-01-09  Bruno Haible  <bruno@clisp.org>
4401
4402         Tests for module 'getlogin_r'.
4403         * modules/getlogin_r-tests: New file.
4404         * tests/test-getlogin_r.c: New file.
4405
4406 2010-01-09  Jim Meyering  <meyering@redhat.com>
4407
4408         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
4409         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
4410         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
4411
4412 2010-01-08  Simon Josefsson  <simon@josefsson.org>
4413
4414         * lib/dup2.c (rpl_dup2): Improve comment.
4415
4416 2010-01-08  Eric Blake  <ebb9@byu.net>
4417
4418         maint.mk: allow packages to add makefile @@ exceptions
4419         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
4420         (sc_makefile_check): Rename...
4421         (sc_makefile_at_at_check): ...to this, and use hook.
4422
4423         dup2: work around mingw bug
4424         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
4425         Reported by Simon Josefsson.
4426
4427 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
4428
4429         glob: Fix C++ compilation.
4430         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
4431         C++.
4432
4433 2010-01-07  Bruno Haible  <bruno@clisp.org>
4434
4435         Fix indentation of wctype.in.h, broken since 2007-01-06.
4436         * lib/wctype.in.h: Fix indentation of preprocessor directives.
4437
4438 2010-01-07  Bruno Haible  <bruno@clisp.org>
4439
4440         mbslen: Avoid collision with system function.
4441         * lib/string.in.h [MirBSD]: Include <wchar.h>.
4442         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
4443         * m4/mbslen.m4: New file.
4444         * modules/mbslen (Files): Add it.
4445         (configure.ac): Invoke gl_MBSLEN.
4446         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
4447         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
4448         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
4449         via Ian Beckwith <ianb@erislabs.net>.
4450
4451 2010-01-07  Bruno Haible  <bruno@clisp.org>
4452
4453         dirent: Document the last fix.
4454         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
4455
4456 2010-01-07  Bruno Haible  <bruno@clisp.org>
4457
4458         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
4459         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
4460         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
4461         va_list are defined.
4462         * doc/posix-headers/stdio.texi: Document the bug of missing types.
4463         Reported by Eric Blake.
4464
4465 2010-01-07  Bruno Haible  <bruno@clisp.org>
4466
4467         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
4468         * modules/xlist (Depends-on): Add 'list',
4469         * modules/xoset (Depends-on): Add 'oset'.
4470         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4471
4472 2010-01-07  Bruno Haible  <bruno@clisp.org>
4473
4474         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
4475         * doc/posix-functions/strncasecmp.texi: Likewise.
4476
4477 2010-01-07  Bruno Haible  <bruno@clisp.org>
4478
4479         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
4480
4481 2010-01-07  John W. Eaton  <jwe@octave.org>
4482
4483         wctype: allow C++ use
4484         * lib/wctype.in.h: Add extern "C" block for C++.
4485
4486 2010-01-06  Eric Blake  <ebb9@byu.net>
4487
4488         maint.mk: detect incorrect GFDL usage
4489         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
4490
4491 2010-01-06  Jim Meyering  <meyering@redhat.com>
4492         and Eric Blake  <ebb9@byu.net>
4493
4494         maint.mk: ignore multi-line copyright in NEWS
4495         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
4496
4497 2010-01-06  Eric Blake  <ebb9@byu.net>
4498
4499         select: add missing dependency
4500         * modules/select-tests (Depends-on): Move sockets dependency...
4501         * modules/select (Depends-on): ...here.
4502         Reported by Ian Beckwith.
4503
4504         doc: regenerate INSTALL
4505         * doc/INSTALL: Reflect recent autoconf update.
4506         * doc/INSTALL.ISO: Likewise.
4507         * doc/INSTALL.UTF-8: Likewise.
4508
4509         pread: fix compilation on glibc
4510         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
4511         Reported by Ralf Wildenhues.
4512
4513         dirent: fix test failure
4514         * lib/dirent.in.h (includes): Guarantee ino_t.
4515         Reported by Ralf Wildenhues.
4516
4517 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
4518
4519         linkat, renameat: avoid bad free
4520         * lib/at-func2.c (at_func2): Fix typo.
4521         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
4522
4523 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4524
4525         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
4526         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
4527         to avoid failure of symlink test later.
4528
4529 2010-01-06  Eric Blake  <ebb9@byu.net>
4530
4531         stdio, unistd: guarantee ssize_t
4532         * lib/unistd.in.h (includes): Ensure that types required by POSIX
4533         2008 are exposed when needed.
4534         * lib/stdio.in.h (includes): Likewise.
4535         Reported by Ralf Wildenhues.
4536
4537 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
4538
4539         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
4540         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
4541         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
4542
4543 2010-01-06  Jim Meyering  <meyering@redhat.com>
4544
4545         readtokens: this module *does* require xalloc.h
4546         It uses only functions that were omitted by the old syntax-check rule.
4547         * lib/readtokens.c: Include "xalloc.h" once again.
4548         * modules/readtokens (Depends-on): Add xalloc.
4549         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
4550
4551 2010-01-05  Eric Blake  <ebb9@byu.net>
4552
4553         maint: support 'make announcement' from a VPATH build
4554         * top/maint.mk (announcement): Look for correct NEWS file.
4555
4556 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
4557
4558         utimens (fdutimens): ignore a negative FD, per contract
4559         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
4560         when we have a valid file descriptor.  Otherwise, using a brand
4561         new glibc (with just-patched futimens that now fails with EBADF)
4562         would cause this function to fail with ENOSYS.
4563         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
4564         See also http://bugzilla.redhat.com/552320.
4565
4566 2010-01-05  Eric Blake  <ebb9@byu.net>
4567
4568         strcase: document what it provides
4569         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
4570         gnulib module.
4571         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
4572         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
4573
4574 2010-01-05  Jim Meyering  <meyering@redhat.com>
4575
4576         maint: remove useless inclusions of "xalloc.h"
4577         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
4578         * lib/readtokens.c: Likewise.
4579         * lib/same.c: Likewise.
4580         * modules/getloadavg (Depends-on): Remove xalloc.
4581         * modules/readtokens: Likewise.
4582         * modules/same: Likewise.
4583
4584         maint.mk: include 4 more function names in alloca.h-checking regexp
4585         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
4586         regexp.  Before, we would give a false-positive (saying alloca.h
4587         is included unnecessarily) when the only uses involved omitted symbols.
4588
4589         xalloc.h: use consistent formatting
4590         * lib/xalloc.h: Move declarations to start in the first column.
4591
4592 2010-01-05  Eric Blake  <ebb9@byu.net>
4593
4594         mkdir: avoid xalloc
4595         * lib/mkdir.c (includes): Drop unused header.
4596         Reported by John W. Eaton.
4597
4598 2010-01-04  Jim Meyering  <meyering@redhat.com>
4599
4600         nl_langinfo: avoid configure-time syntax error
4601         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
4602         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
4603         the empty string.  Don't let that provoke a shell syntax error.
4604
4605         regcomp, regexec, fnmatch: avoid array bounds read error
4606         * lib/regcomp.c (build_equiv_class): From glibc:
4607         Use only the low 24 bits of a findidx return value as an index
4608         into the weights array.  Patch by Ulrich Drepper:
4609         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
4610         * lib/regexec.c (check_node_accept_bytes): Likewise.
4611         * lib/fnmatch_loop.c (FCT): Likewise.
4612
4613         regcomp: skip collseq lookup when there are no rules
4614         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
4615         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
4616
4617         regcomp: recognize ill-formed { } expressions
4618         * lib/regcomp.c (parse_dup_op): From glibc:
4619         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
4620
4621         regcomp: fix typo in comment
4622         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
4623         s/satisfy/satisfies/.
4624
4625         regcomp: sync from glibc: remove dead store
4626         * lib/regcomp.c (duplicate_node_closure): Remove useless
4627         search_duplicated_node call and dead store.
4628
4629         regcomp: sync from glibc; always use nl_langinfo
4630         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
4631         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
4632         * modules/regex (Depends-on): Add nl_langinfo.
4633
4634 2010-01-04  Eric Blake  <ebb9@byu.net>
4635
4636         fdopendir: fix configure test
4637         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
4638
4639 2010-01-01  Bruno Haible  <bruno@clisp.org>
4640
4641         wchar: Remove unused configure check.
4642         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
4643
4644 2010-01-01  Eric Blake  <ebb9@byu.net>
4645
4646         headers: make check of system header explicit
4647         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
4648         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
4649         ourselves.
4650         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
4651         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4652         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
4653         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
4654         internals.
4655         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
4656         missing.
4657         Suggested by Bruno Haible.
4658
4659 2010-01-01  Jim Meyering  <meyering@redhat.com>
4660
4661         ChangeLog: tweak to eliminate unnecessary copyright line
4662         * ChangeLog: Remove a copyright line that was mistakenly updated
4663         by today's update-copyright run.  Reported by Eric Blake.
4664
4665         test-update-copyright: don't let envvar setting cause test failure
4666         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
4667
4668 2010-01-01  Bruno Haible  <bruno@clisp.org>
4669
4670         localename: Avoid gcc warning.
4671         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
4672         function if it is not used.
4673
4674 2010-01-01  Jim Meyering  <meyering@redhat.com>
4675
4676         update nearly all FSF copyright year lists to include 2010
4677         Use the same procedure as for 2009, outlined in
4678         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
4679
4680         version-etc: set COPYRIGHT_YEAR to 2010
4681         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
4682
4683 2009-12-31  Eric Blake  <ebb9@byu.net>
4684
4685         doc: correct availability of cygwin 1.5.x getopt
4686         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
4687         variables.
4688         * doc/posix-functions/opterr.texi (opterr): Likewise.
4689         * doc/posix-functions/optind.texi (optind): Likewise.
4690         * doc/posix-functions/optopt.texi (optopt): Likewise.
4691         * doc/posix-functions/tzname.texi (tzname): Likewise.
4692
4693         openat: update maintainer
4694         * modules/openat (Maintainer): Add myself.
4695
4696         utimens: avoid shadowing warning
4697         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
4698         buffers into one, to avoid shadowing, as well as avoiding a
4699         redundant stat.
4700         Reported by Jim Meyering.
4701
4702         test-dup2: avoid compiler warning
4703         * tests/test-dup2.c (is_inheritable): Only define if used.
4704
4705 2010-01-01  Bruno Haible  <bruno@clisp.org>
4706
4707         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
4708         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
4709         defined, use wctomb instead of wcrtomb.
4710
4711 2010-01-01  Bruno Haible  <bruno@clisp.org>
4712
4713         iconv: Reject native Solaris iconv.
4714         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
4715         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
4716
4717 2009-12-31  Bruno Haible  <bruno@clisp.org>
4718
4719         * tests/test-signal.c (main): Remove test of 'SIG'.
4720
4721 2009-12-31  Bruno Haible  <bruno@clisp.org>
4722
4723         spawn: Fix incomplete fix.
4724         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
4725         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
4726         warnings for GNULIB_POSIXCHECK again.
4727         Reported by Eric Blake.
4728
4729 2009-12-31  Bruno Haible  <bruno@clisp.org>
4730
4731         Avoid namespace pollution on glibc systems.
4732         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
4733         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
4734         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
4735         glibc systems.
4736
4737 2009-12-31  Bruno Haible  <bruno@clisp.org>
4738
4739         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
4740         (gl_REPLACE_WCHAR_H): Turn into a no-op.
4741         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
4742         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
4743         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
4744         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
4745         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
4746
4747 2009-12-31  Bruno Haible  <bruno@clisp.org>
4748
4749         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
4750         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
4751         afterwards.
4752
4753 2009-12-31  Bruno Haible  <bruno@clisp.org>
4754
4755         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
4756         SYS_UTSNAME_H.
4757
4758 2009-12-31  Bruno Haible  <bruno@clisp.org>
4759
4760         spawn: Fix misapplied patch.
4761         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
4762         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
4763         warnings for GNULIB_POSIXCHECK.
4764
4765 2009-12-31  Bruno Haible  <bruno@clisp.org>
4766
4767         times: Update after sys_times changed.
4768         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
4769         * modules/times (Files): Add it.
4770         (configure.ac): Invoke gl_FUNC_TIMES.
4771
4772 2009-12-31  Bruno Haible  <bruno@clisp.org>
4773
4774         Use AC_C_INLINE where necessary.
4775         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
4776         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
4777         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
4778         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
4779         * m4/mbfile.m4 (gl_MBFILE): Likewise.
4780         * m4/mbiter.m4 (gl_MBITER): Likewise.
4781         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
4782         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
4783         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
4784         * modules/u64 (configure.ac): Likewise.
4785
4786 2009-12-31  Bruno Haible  <bruno@clisp.org>
4787
4788         Use AC_C_INLINE instead of module 'inline' where possible.
4789         * modules/inline (Description): Clarify purpose.
4790         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
4791         * modules/count-one-bits (Depends-on): Remove inline.
4792         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
4793         * modules/openat (Depends-on): Remove inline.
4794         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
4795         instead of depending on module 'inline'.
4796         * modules/filevercmp (Depends-on, configure.ac): Likewise.
4797         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
4798         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
4799         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
4800         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
4801         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
4802         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
4803         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
4804         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
4805         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
4806         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
4807         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
4808         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
4809         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
4810         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
4811         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
4812         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
4813         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
4814         Likewise.
4815         * modules/unictype/property-ascii-hex-digit (Depends-on,
4816         configure.ac): Likewise.
4817         * modules/unictype/property-bidi-arabic-digit (Depends-on,
4818         configure.ac): Likewise.
4819         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
4820         configure.ac): Likewise.
4821         * modules/unictype/property-bidi-block-separator (Depends-on,
4822         configure.ac): Likewise.
4823         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
4824         configure.ac): Likewise.
4825         * modules/unictype/property-bidi-common-separator (Depends-on,
4826         configure.ac): Likewise.
4827         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
4828         Likewise.
4829         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
4830         configure.ac): Likewise.
4831         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
4832         configure.ac): Likewise.
4833         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
4834         configure.ac): Likewise.
4835         * modules/unictype/property-bidi-european-digit (Depends-on,
4836         configure.ac): Likewise.
4837         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
4838         configure.ac): Likewise.
4839         * modules/unictype/property-bidi-left-to-right (Depends-on,
4840         configure.ac): Likewise.
4841         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
4842         configure.ac): Likewise.
4843         * modules/unictype/property-bidi-other-neutral (Depends-on,
4844         configure.ac): Likewise.
4845         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
4846         Likewise.
4847         * modules/unictype/property-bidi-segment-separator (Depends-on,
4848         configure.ac): Likewise.
4849         * modules/unictype/property-bidi-whitespace (Depends-on,
4850         configure.ac): Likewise.
4851         * modules/unictype/property-combining (Depends-on, configure.ac):
4852         Likewise.
4853         * modules/unictype/property-composite (Depends-on, configure.ac):
4854         Likewise.
4855         * modules/unictype/property-currency-symbol (Depends-on,
4856         configure.ac): Likewise.
4857         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
4858         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
4859         Likewise.
4860         * modules/unictype/property-default-ignorable-code-point (Depends-on,
4861         configure.ac): Likewise.
4862         * modules/unictype/property-deprecated (Depends-on, configure.ac):
4863         Likewise.
4864         * modules/unictype/property-diacritic (Depends-on, configure.ac):
4865         Likewise.
4866         * modules/unictype/property-extender (Depends-on, configure.ac):
4867         Likewise.
4868         * modules/unictype/property-format-control (Depends-on, configure.ac):
4869         Likewise.
4870         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
4871         Likewise.
4872         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
4873         Likewise.
4874         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
4875         Likewise.
4876         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
4877         Likewise.
4878         * modules/unictype/property-hyphen (Depends-on, configure.ac):
4879         Likewise.
4880         * modules/unictype/property-id-continue (Depends-on, configure.ac):
4881         Likewise.
4882         * modules/unictype/property-id-start (Depends-on, configure.ac):
4883         Likewise.
4884         * modules/unictype/property-ideographic (Depends-on, configure.ac):
4885         Likewise.
4886         * modules/unictype/property-ids-binary-operator (Depends-on,
4887         configure.ac): Likewise.
4888         * modules/unictype/property-ids-trinary-operator (Depends-on,
4889         configure.ac): Likewise.
4890         * modules/unictype/property-ignorable-control (Depends-on,
4891         configure.ac): Likewise.
4892         * modules/unictype/property-iso-control (Depends-on, configure.ac):
4893         Likewise.
4894         * modules/unictype/property-join-control (Depends-on, configure.ac):
4895         Likewise.
4896         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
4897         Likewise.
4898         * modules/unictype/property-line-separator (Depends-on, configure.ac):
4899         Likewise.
4900         * modules/unictype/property-logical-order-exception (Depends-on,
4901         configure.ac): Likewise.
4902         * modules/unictype/property-lowercase (Depends-on, configure.ac):
4903         Likewise.
4904         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
4905         * modules/unictype/property-non-break (Depends-on, configure.ac):
4906         Likewise.
4907         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
4908         Likewise.
4909         * modules/unictype/property-numeric (Depends-on, configure.ac):
4910         Likewise.
4911         * modules/unictype/property-other-alphabetic (Depends-on,
4912         configure.ac): Likewise.
4913         * modules/unictype/property-other-default-ignorable-code-point
4914         (Depends-on, configure.ac): Likewise.
4915         * modules/unictype/property-other-grapheme-extend (Depends-on,
4916         configure.ac): Likewise.
4917         * modules/unictype/property-other-id-continue (Depends-on,
4918         configure.ac): Likewise.
4919         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
4920         Likewise.
4921         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
4922         Likewise.
4923         * modules/unictype/property-other-math (Depends-on, configure.ac):
4924         Likewise.
4925         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
4926         Likewise.
4927         * modules/unictype/property-paired-punctuation (Depends-on,
4928         configure.ac): Likewise.
4929         * modules/unictype/property-paragraph-separator (Depends-on,
4930         configure.ac): Likewise.
4931         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
4932         Likewise.
4933         * modules/unictype/property-pattern-white-space (Depends-on,
4934         configure.ac): Likewise.
4935         * modules/unictype/property-private-use (Depends-on, configure.ac):
4936         Likewise.
4937         * modules/unictype/property-punctuation (Depends-on, configure.ac):
4938         Likewise.
4939         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
4940         Likewise.
4941         * modules/unictype/property-radical (Depends-on, configure.ac):
4942         Likewise.
4943         * modules/unictype/property-sentence-terminal (Depends-on,
4944         configure.ac): Likewise.
4945         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
4946         Likewise.
4947         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
4948         * modules/unictype/property-terminal-punctuation (Depends-on,
4949         configure.ac): Likewise.
4950         * modules/unictype/property-titlecase (Depends-on, configure.ac):
4951         Likewise.
4952         * modules/unictype/property-unassigned-code-value (Depends-on,
4953         configure.ac): Likewise.
4954         * modules/unictype/property-unified-ideograph (Depends-on,
4955         configure.ac): Likewise.
4956         * modules/unictype/property-uppercase (Depends-on, configure.ac):
4957         Likewise.
4958         * modules/unictype/property-variation-selector (Depends-on,
4959         configure.ac): Likewise.
4960         * modules/unictype/property-white-space (Depends-on, configure.ac):
4961         Likewise.
4962         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
4963         Likewise.
4964         * modules/unictype/property-xid-start (Depends-on, configure.ac):
4965         Likewise.
4966         * modules/unictype/property-zero-width (Depends-on, configure.ac):
4967         Likewise.
4968         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
4969         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
4970         Likewise.
4971
4972 2009-12-31  Bruno Haible  <bruno@clisp.org>
4973
4974         Remove unnecessary AC_C_INLINE invocation.
4975         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
4976         since 2009-08-21.
4977
4978 2009-12-31  Jim Meyering  <meyering@redhat.com>
4979
4980         maint.mk: don't require explicit gpg_key_ID in cfg.mk
4981         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
4982         With this change, we can all remove the gpg_key_ID = ... definition
4983         from our respective cfg.mk files.
4984
4985         maint.mk: create announcement template in ~/, not in /tmp
4986         * top/maint.mk (emit_upload_commands): Adjust.
4987         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
4988         Remove temporary file, .ci-msg.
4989
4990 2009-12-31  Eric Blake  <ebb9@byu.net>
4991
4992         link-warning: always build headers with link warnings
4993         * modules/arpa_inet (Makefile.am): Always build replacement
4994         header.
4995         * modules/ctype (Makefile.am): Likewise.
4996         * modules/dirent (Makefile.am): Likewise.
4997         * modules/inttypes (Makefile.am): Likewise.
4998         * modules/langinfo (Makefile.am): Likewise.
4999         * modules/locale (Makefile.am): Likewise.
5000         * modules/spawn (Makefile.am): Likewise.
5001         * modules/sys_file (Makefile.am): Likewise.
5002         * modules/sys_ioctl (Makefile.am): Likewise.
5003         * modules/sys_select (Makefile.am): Likewise.
5004         * modules/sys_socket (Makefile.am): Likewise.
5005         * modules/sys_times (Makefile.am): Likewise.
5006         * modules/sys_utsname (Makefile.am): Likewise.
5007         * modules/sys_wait (Makefile.am): Likewise.
5008         * modules/wchar (Makefile.am): Likewise.
5009         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
5010         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
5011         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
5012         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
5013         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
5014         Likewise.
5015         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
5016         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
5017         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
5018         Likewise.
5019         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
5020         Likewise.
5021         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
5022         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
5023         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
5024         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
5025         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
5026         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
5027         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
5028         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
5029         (gl_WCHAR_H_DEFAULTS): Likewise.
5030
5031 2009-12-31  Eric Blake  <ebb9@byu.net>
5032
5033         signal, spawn: use link warnings
5034         * lib/signal.in.h (sigset_t): Make unconditional.
5035         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
5036         (sigpending, sigprocmask, sigaction): Add link warnings.
5037         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
5038         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
5039         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
5040         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
5041         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
5042         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
5043         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
5044         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
5045         (posix_spawn_file_actions_destroy)
5046         (posix_spawn_file_actions_addopen)
5047         (posix_spawn_file_actions_addclose)
5048         (posix_spawn_file_actions_adddup2): Likewise.
5049         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
5050         * tests/test-signal.c (main): Enhance test.
5051
5052         spawn: improve wrapper support
5053         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
5054         (gl_SPAWN_H_DEFAULTS): New defaults.
5055         * modules/spawn (Makefile.am): Substitute them.
5056         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
5057         Only declare if missing or broken.
5058
5059         sys_times, sys_utsname: use include_next
5060         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
5061         header.
5062         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
5063         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
5064         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
5065         * modules/sys_times (Depends-on): Add include_next.
5066         (Makefile.am): Substitute additional values.
5067         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
5068         * lib/sys_times.in.h (includes): Include native header, if
5069         available.
5070         * lib/sys_utsname.in.h (includes): Likewise.
5071         * tests/test-sys_times.c (main): Enhance test.
5072
5073         fdutimensat: revert prior patch
5074         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
5075         utimens.h.
5076         Reported by Bruno Haible.
5077
5078 2009-12-30  Eric Blake  <ebb9@byu.net>
5079
5080         sys_wait: drop link-warning dependency
5081         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
5082         link-warning efforts.
5083         * lib/sys_wait.in.h: Likewise.
5084
5085         fdutimensat: remove bogus dependency
5086         * modules/fdutimensat (Depends-on): Drop inline.
5087
5088         unistd: fix typo
5089         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
5090
5091 2009-12-30  Bruno Haible  <bruno@clisp.org>
5092
5093         Fix compilation error with Solaris cc.
5094         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
5095         * lib/unicase/u16-is-invariant.c: Likewise.
5096         * lib/unicase/u32-is-invariant.c: Likewise.
5097         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
5098
5099 2009-12-30  Bruno Haible  <bruno@clisp.org>
5100
5101         Fix test crash.
5102         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
5103         locales.
5104         Reported by Simon Josefsson <simon@josefsson.org>.
5105
5106 2009-12-30  Bruno Haible  <bruno@clisp.org>
5107
5108         Fix compilation error on most platforms.
5109         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
5110         Reported by Simon Josefsson <simon@josefsson.org>
5111         and Nelson H. F. Beebe <beebe@math.utah.edu>.
5112
5113 2009-12-30  Eric Blake  <ebb9@byu.net>
5114
5115         futimens, utimensat: work around ntfs-3g bug
5116         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
5117         a ctime bug is present, and expand workaround to cover ntfs-3g.
5118         * lib/utimens.c (fdutimens, lutimens): Likewise.
5119         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
5120         (validate_timespec): Adjust return value.
5121         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
5122         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
5123         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
5124
5125 2009-12-29  Eric Blake  <ebb9@byu.net>
5126
5127         link-warning: make usage consistent
5128         * modules/ctype (Depends-on): Add link-warning.
5129         (Makefile.am): Update rules accordingly.
5130         * modules/langinfo (Depends-on, Makefile.am): Likewise.
5131         * modules/locale (Depends-on, Makefile.am): Likewise.
5132         * modules/sys_file (Makefile.am): Likewise.
5133         * modules/getopt-posix (Makefile.am): Delete unused link warning
5134         efforts.
5135         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
5136         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
5137         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
5138         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
5139
5140         stdio: remove unused variables
5141         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
5142         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
5143         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
5144
5145         tests: test more substitute headers
5146         * modules/ctype-tests: New file.
5147         * modules/dirent-tests: Likewise.
5148         * modules/spawn-tests: Likewise.
5149         * modules/sys_file-tests: Likewise.
5150         * modules/sys_ioctl-tests: Likewise.
5151         * modules/sys_wait-tests: Likewise.
5152         * tests/test-ctype.c: Likewise.
5153         * tests/test-dirent.c: Likewise.
5154         * tests/test-spawn.c: Likewise.
5155         * tests/test-sys_file.c: Likewise.
5156         * tests/test-sys_ioctl.c: Likewise.
5157         * tests/test-sys_wait.c: Likewise.
5158         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
5159         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
5160         whether or not flock is in use.
5161
5162         tests: remove License section from module
5163         * modules/arpa_inet-tests: Remove unneeded section.
5164         * modules/byteswap-tests: Likewise.
5165         * modules/ceilf-tests: Likewise.
5166         * modules/ceill-tests: Likewise.
5167         * modules/crypto/des-tests: Likewise.
5168         * modules/crypto/gc-arcfour-tests: Likewise.
5169         * modules/crypto/gc-arctwo-tests: Likewise.
5170         * modules/crypto/gc-des-tests: Likewise.
5171         * modules/crypto/gc-hmac-md5-tests: Likewise.
5172         * modules/crypto/gc-hmac-sha1-tests: Likewise.
5173         * modules/crypto/gc-md2-tests: Likewise.
5174         * modules/crypto/gc-md4-tests: Likewise.
5175         * modules/crypto/gc-md5-tests: Likewise.
5176         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
5177         * modules/crypto/gc-rijndael-tests: Likewise.
5178         * modules/crypto/gc-sha1-tests: Likewise.
5179         * modules/crypto/gc-tests: Likewise.
5180         * modules/crypto/md2-tests: Likewise.
5181         * modules/crypto/md4-tests: Likewise.
5182         * modules/fcntl-h-tests: Likewise.
5183         * modules/floorf-tests: Likewise.
5184         * modules/floorl-tests: Likewise.
5185         * modules/frexp-nolibm-tests: Likewise.
5186         * modules/frexp-tests: Likewise.
5187         * modules/frexpl-nolibm-tests: Likewise.
5188         * modules/frexpl-tests: Likewise.
5189         * modules/getaddrinfo-tests: Likewise.
5190         * modules/inttypes-tests: Likewise.
5191         * modules/isfinite-tests: Likewise.
5192         * modules/isinf-tests: Likewise.
5193         * modules/ldexpl-tests: Likewise.
5194         * modules/locale-tests: Likewise.
5195         * modules/math-tests: Likewise.
5196         * modules/netdb-tests: Likewise.
5197         * modules/netinet_in-tests: Likewise.
5198         * modules/printf-frexp-tests: Likewise.
5199         * modules/printf-frexpl-tests: Likewise.
5200         * modules/priv-set-tests: Likewise.
5201         * modules/random_r-tests: Likewise.
5202         * modules/round-tests: Likewise.
5203         * modules/roundf-tests: Likewise.
5204         * modules/roundl-tests: Likewise.
5205         * modules/search-tests: Likewise.
5206         * modules/select-tests: Likewise.
5207         * modules/signal-tests: Likewise.
5208         * modules/stdbool-tests: Likewise.
5209         * modules/stddef-tests: Likewise.
5210         * modules/stdint-tests: Likewise.
5211         * modules/stdio-tests: Likewise.
5212         * modules/stdlib-tests: Likewise.
5213         * modules/string-tests: Likewise.
5214         * modules/strings-tests: Likewise.
5215         * modules/sys_select-tests: Likewise.
5216         * modules/sys_socket-tests: Likewise.
5217         * modules/sys_stat-tests: Likewise.
5218         * modules/sys_time-tests: Likewise.
5219         * modules/sys_utsname-tests: Likewise.
5220         * modules/sysexits-tests: Likewise.
5221         * modules/time-tests: Likewise.
5222         * modules/trunc-tests: Likewise.
5223         * modules/truncf-tests: Likewise.
5224         * modules/truncl-tests: Likewise.
5225         * modules/tsearch-tests: Likewise.
5226         * modules/unistd-tests: Likewise.
5227         * modules/wchar-tests: Likewise.
5228         * modules/wctype-tests: Likewise.
5229
5230         tests: fix license on several tests
5231         * tests/test-des.c: Update to GPLv3+.
5232         * tests/test-flock.c: Likewise.
5233         * tests/test-fsync.c: Likewise.
5234         * tests/test-futimens.h: Likewise.
5235         * tests/test-gc-arcfour.c: Likewise.
5236         * tests/test-gc-arctwo.c: Likewise.
5237         * tests/test-gc-des.c: Likewise.
5238         * tests/test-gc-hmac-md5.c: Likewise.
5239         * tests/test-gc-hmac-sha1.c: Likewise.
5240         * tests/test-gc-md2.c: Likewise.
5241         * tests/test-gc-md4.c: Likewise.
5242         * tests/test-gc-md5.c: Likewise.
5243         * tests/test-gc-pbkdf2-sha1.c: Likewise.
5244         * tests/test-gc-rijndael.c: Likewise.
5245         * tests/test-gc-sha1.c: Likewise.
5246         * tests/test-gc.c: Likewise.
5247         * tests/test-getcwd.c: Likewise.
5248         * tests/test-link.c: Likewise.
5249         * tests/test-link.h: Likewise.
5250         * tests/test-lutimens.h: Likewise.
5251         * tests/test-md2.c: Likewise.
5252         * tests/test-md4.c: Likewise.
5253         * tests/test-mkdir.h: Likewise.
5254         * tests/test-rename.c: Likewise.
5255         * tests/test-rename.h: Likewise.
5256         * tests/test-safe-alloc.c: Likewise.
5257         * tests/test-utimens-common.h: Likewise.
5258         * tests/test-utimens.h: Likewise.
5259
5260         maint: sync license texts
5261         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
5262         * doc/gpl-3.0.texi: Revert copyright year update.
5263         * doc/lgpl-3.0.texi: Likewise.
5264
5265 2009-12-29  Jim Meyering  <meyering@redhat.com>
5266
5267         update nearly all FSF copyright year lists to include 2009
5268         The files named by the following are exempted:
5269             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
5270               test -f "$dst" && { echo "$dst"; continue; }
5271               test -d "$dst" || continue
5272               echo "$dst"/$(basename "$src")
5273             done > exempt
5274             git ls-files tests/unictype >> exempt
5275         In the remaining files, convert to all-interval notation if
5276         - there is already at least one year interval like 2000-2003
5277         - the file is maintained by me
5278         - the file is in lib/uni*/, where that style already prevails
5279         Otherwise, use update-copyright's default.
5280
5281 2009-12-29  Simon Josefsson  <simon@josefsson.org>
5282         and Eric Blake  <ebb9@byu.net>
5283
5284         tests: don't require debug system() to pass
5285         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
5286         * tests/test-rmdir.h (test_rmdir_func): Likewise.
5287         * tests/test-unlink.h (test_unlink_func): Likewise.
5288         * tests/test-fstatat.c (main): ...into callers.
5289         * tests/test-lstat.c (main): Likewise.
5290         * tests/test-rmdir.c (main): Likewise.
5291         * tests/test-unlink.c (main): Likewise.
5292         * tests/test-unlinkat.c (main): Likewise.
5293         * tests/test-areadlink-with-size.c (main): Don't require a
5294         debug-only system call to pass, aiding cross-testing to mingw.
5295         * tests/test-areadlink.c (main): Likewise.
5296         * tests/test-areadlinkat-with-size.c (main): Likewise.
5297         * tests/test-areadlinkat.c (main): Likewise.
5298         * tests/test-canonicalize-lgpl.c (main): Likewise.
5299         * tests/test-canonicalize.c (main): Likewise.
5300         * tests/test-chown.c (main): Likewise.
5301         * tests/test-fchownat.c (main): Likewise.
5302         * tests/test-lchown.c (main): Likewise.
5303         * tests/test-fdutimensat.c (main): Likewise.
5304         * tests/test-futimens.c (main): Likewise.
5305         * tests/test-link.c (main): Likewise.
5306         * tests/test-linkat.c (main): Likewise.
5307         * tests/test-mkdir.c (main): Likewise.
5308         * tests/test-mkdirat.c (main): Likewise.
5309         * tests/test-mkfifo.c (main): Likewise.
5310         * tests/test-mkfifoat.c (main): Likewise.
5311         * tests/test-mknod.c (main): Likewise.
5312         * tests/test-readlink.c (main): Likewise.
5313         * tests/test-remove.c (main): Likewise.
5314         * tests/test-rename.c (main): Likewise.
5315         * tests/test-renameat.c (main): Likewise.
5316         * tests/test-symlink.c (main): Likewise.
5317         * tests/test-symlinkat.c (main): Likewise.
5318         * tests/test-utimens.c (main): Likewise.
5319         * tests/test-utimensat.c (main): Likewise.
5320
5321 2009-12-29  Simon Josefsson  <simon@josefsson.org>
5322
5323         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
5324         on $(UNUSED_PARAMETER_H) to avoid build failure.
5325
5326 2009-12-28  Jim Meyering  <meyering@redhat.com>
5327
5328         update-copyright: you may specify a max. line length other than 72
5329         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
5330
5331         maint: use consistent FSF copyright line syntax
5332         * lib/posixtm.c: Add missing comma in FSF copyright line.
5333         * lib/posixtm.h: Likewise.
5334         * lib/getugroups.c: Add missing ", Inc.".
5335
5336         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
5337         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
5338         FSF copyright line.  Remove trailing blanks.
5339
5340 2009-12-28  Eric Blake  <ebb9@byu.net>
5341
5342         test-dup2: reduce dependencies
5343         * modules/cloexec (Configure.ac): Set witness.
5344         * modules/dup2-tests (Depends-on): Drop cloexec.
5345         * tests/test-dup2.c (main): Skip portion of test if cloexec module
5346         not present.
5347         Suggested by Bruno Haible.
5348
5349 2009-12-26  Bruno Haible  <bruno@clisp.org>
5350
5351         Remove an unneeded dependency.
5352         * modules/fseterr (Depends-on): Remove dup2.
5353
5354 2009-12-26  Eric Blake  <ebb9@byu.net>
5355
5356         tests: use macros.h in more places
5357         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
5358         (ASSERT_STREAM): Provide default of stderr.
5359         * tests/test-dirent-safer.c: Include macros.h, using alternate
5360         stream for assertions.
5361         * tests/test-dup-safer.c: Likewise.
5362         * tests/test-freopen-safer.c: Likewise.
5363         * tests/test-getopt.c: Likewise.
5364         * tests/test-openat-safer.c: Likewise.
5365         * tests/test-pipe.c: Likewise.
5366         * tests/test-popen-safer.c: Likewise.
5367         * modules/dirent-safer-tests (Files): Include macros.h.
5368         * modules/unistd-safer-tests (Files): Likewise.
5369         * modules/freopen-safer-tests (Files): Likewise.
5370         * modules/getopt-posix-tests (Files): Likewise.
5371         * modules/openat-safer-tests (Files): Likewise.
5372         * modules/pipe-tests (Files): Likewise.
5373
5374 2009-12-26  Bruno Haible  <bruno@clisp.org>
5375
5376         javacomp: Portability fix.
5377         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
5378         that it also works on Solaris.
5379
5380 2009-12-26  Bruno Haible  <bruno@clisp.org>
5381
5382         localename: Fix storage allocation of gl_locale_name_thread's result.
5383         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
5384         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
5385         all platforms that have 'uselocale'.
5386         (gl_locale_name_thread_unsafe): New function, extracted from
5387         gl_locale_name_thread.
5388         (gl_locale_name_thread): Call struniq on all platforms that have
5389         'uselocale'.
5390         * tests/test-localename.c (test_locale_name_thread): Check that the
5391         resulting strings are permanently allocated.
5392         * modules/localename-tests (Depends-on): Add strdup.
5393
5394 2009-12-26  Bruno Haible  <bruno@clisp.org>
5395
5396         * tests/test-localename.c (categories): Fill in the strings.
5397
5398 2009-12-26  Jim Meyering  <meyering@redhat.com>
5399
5400         isdir: complete the removal of m4/isdir.m4
5401         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
5402
5403         isdir: clean up, since at least grep still uses it
5404         * lib/isdir.c: Include "isdir.h".
5405         (S_ISDIR): Remove now-unneeded definition.
5406         * modules/isdir (Files): Add lib/isdir.h.
5407         * lib/isdir.h: New file, with declaration.
5408         * m4/isdir.m4: Remove file -- unneeded.
5409
5410 2009-12-25  Bruno Haible  <bruno@clisp.org>
5411
5412         selinux-h: Make generated .h files standalone.
5413         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
5414         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
5415         * lib/se-selinux.in.h: Likewise.
5416         * modules/selinux-h (Depends-on): Add unused-parameter.
5417         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
5418         selinux/selinux.h and selinux/context.h.
5419         Suggested by Eric Blake.
5420
5421 2009-12-25  Bruno Haible  <bruno@clisp.org>
5422
5423         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
5424         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
5425         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
5426         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
5427         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
5428
5429 2009-12-24  Bruno Haible  <bruno@clisp.org>
5430
5431         openat: Fix warning.
5432         * lib/openat-proc.c: Include <unistd.h>.
5433
5434 2009-12-24  Bruno Haible  <bruno@clisp.org>
5435
5436         New module 'unused-parameter'.
5437         * build-aux/unused-parameter.h: New file, extracted from earlier
5438         gnulib-common.m4.
5439         * modules/unused-parameter: New file.
5440         * lib/unistr.h: Include unused-parameter.h.
5441         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
5442         _GL_UNUSED.
5443         * modules/unistr/base (Depends-on): Add unused-parameter.
5444
5445 2009-12-24  Bruno Haible  <bruno@clisp.org>
5446
5447         Add missing dependencies to 'extensions' module.
5448         * m4/extensions.m4: Add comment.
5449         * modules/accept4 (Depends-on): Add extensions.
5450         * modules/dup3 (Depends-on): Likewise.
5451         * modules/fcntl (Depends-on): Likewise.
5452         * modules/futimens (Depends-on): Likewise.
5453         * modules/mknod (Depends-on): Likewise.
5454         * modules/pipe2 (Depends-on): Likewise.
5455         * modules/stat-time (Depends-on): Likewise.
5456         * modules/strcasestr-simple (Depends-on): Likewise.
5457         * modules/strsignal (Depends-on): Likewise.
5458         * modules/utimensat (Depends-on): Likewise.
5459         * modules/localcharset (Depends-on): Likewise. Needed because of
5460         gl_FCNTL_O_FLAGS.
5461         * modules/wcrtomb (Depends-on): Likewise. Needed because of
5462         AC_TYPE_MBSTATE_T.
5463         * modules/wcsnrtombs (Depends-on): Likewise.
5464         * modules/wcsrtombs (Depends-on): Likewise.
5465
5466 2009-12-24  Bruno Haible  <bruno@clisp.org>
5467
5468         binary-io: Avoid gcc warning due to SET_BINARY.
5469         * lib/binary-io.h (SET_BINARY): Cast the result to void.
5470         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
5471
5472 2009-12-24  Bruno Haible  <bruno@clisp.org>
5473
5474         Avoid future namespace pollution on glibc systems.
5475         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
5476         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
5477         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
5478         glibc systems.
5479
5480 2009-12-24  Bruno Haible  <bruno@clisp.org>
5481
5482         Refactor common macros used in tests.
5483         * tests/macros.h: New file.
5484         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
5485         and/or <stdlib.h>, if appropriate.
5486         (ASSERT, SIZEOF): Remove macros.
5487         * tests/test-areadlink-with-size.c: Likewise.
5488         * tests/test-areadlinkat.c: Likewise.
5489         * tests/test-areadlinkat-with-size.c: Likewise.
5490         * tests/test-argmatch.c: Likewise.
5491         * tests/test-argv-iter.c: Likewise.
5492         * tests/test-array-mergesort.c: Likewise.
5493         * tests/test-array_list.c: Likewise.
5494         * tests/test-array_oset.c: Likewise.
5495         * tests/test-avltree_list.c: Likewise.
5496         * tests/test-avltree_oset.c: Likewise.
5497         * tests/test-avltreehash_list.c: Likewise.
5498         * tests/test-base64.c: Likewise.
5499         * tests/test-binary-io.c: Likewise.
5500         * tests/test-bitrotate.c: Likewise.
5501         * tests/test-btowc.c: Likewise.
5502         * tests/test-byteswap.c: Likewise.
5503         * tests/test-c-ctype.c: Likewise.
5504         * tests/test-c-stack.c: Likewise.
5505         * tests/test-c-strcasecmp.c: Likewise.
5506         * tests/test-c-strcasestr.c: Likewise.
5507         * tests/test-c-strncasecmp.c: Likewise.
5508         * tests/test-c-strstr.c: Likewise.
5509         * tests/test-canonicalize-lgpl.c: Likewise.
5510         * tests/test-canonicalize.c: Likewise.
5511         * tests/test-carray_list.c: Likewise.
5512         * tests/test-ceilf1.c: Likewise.
5513         * tests/test-ceilf2.c: Likewise.
5514         * tests/test-ceill.c: Likewise.
5515         * tests/test-chown.c: Likewise.
5516         * tests/test-cloexec.c: Likewise.
5517         * tests/test-copy-acl.c: Likewise.
5518         * tests/test-copy-file.c: Likewise.
5519         * tests/test-count-one-bits.c: Likewise.
5520         * tests/test-dprintf-posix.c: Likewise.
5521         * tests/test-dup2.c: Likewise.
5522         * tests/test-dup3.c: Likewise.
5523         * tests/test-duplocale.c: Likewise.
5524         * tests/test-fbufmode.c: Likewise.
5525         * tests/test-fchdir.c: Likewise.
5526         * tests/test-fchownat.c: Likewise.
5527         * tests/test-fcntl-safer.c: Likewise.
5528         * tests/test-fcntl.c: Likewise.
5529         * tests/test-fdopendir.c: Likewise.
5530         * tests/test-fdutimensat.c: Likewise.
5531         * tests/test-fflush2.c: Likewise.
5532         * tests/test-file-has-acl.c: Likewise.
5533         * tests/test-filevercmp.c: Likewise.
5534         * tests/test-flock.c: Likewise.
5535         * tests/test-floorf1.c: Likewise.
5536         * tests/test-floorf2.c: Likewise.
5537         * tests/test-floorl.c: Likewise.
5538         * tests/test-fnmatch.c: Likewise.
5539         * tests/test-fopen.h: Likewise.
5540         * tests/test-fpending.c: Likewise.
5541         * tests/test-fprintf-posix.c: Likewise.
5542         * tests/test-fpurge.c: Likewise.
5543         * tests/test-freadable.c: Likewise.
5544         * tests/test-freadahead.c: Likewise.
5545         * tests/test-freading.c: Likewise.
5546         * tests/test-freadptr.c: Likewise.
5547         * tests/test-freadptr2.c: Likewise.
5548         * tests/test-freadseek.c: Likewise.
5549         * tests/test-freopen.c: Likewise.
5550         * tests/test-frexp.c: Likewise.
5551         * tests/test-frexpl.c: Likewise.
5552         * tests/test-fseek.c: Likewise.
5553         * tests/test-fseeko.c: Likewise.
5554         * tests/test-fstatat.c: Likewise.
5555         * tests/test-fstrcmp.c: Likewise.
5556         * tests/test-fsync.c: Likewise.
5557         * tests/test-ftell.c: Likewise.
5558         * tests/test-ftello.c: Likewise.
5559         * tests/test-func.c: Likewise.
5560         * tests/test-futimens.c: Likewise.
5561         * tests/test-fwritable.c: Likewise.
5562         * tests/test-fwriting.c: Likewise.
5563         * tests/test-getcwd.c: Likewise.
5564         * tests/test-getdate.c: Likewise.
5565         * tests/test-getdelim.c: Likewise.
5566         * tests/test-getdtablesize.c: Likewise.
5567         * tests/test-getgroups.c: Likewise.
5568         * tests/test-getline.c: Likewise.
5569         * tests/test-getndelim2.c: Likewise.
5570         * tests/test-glob.c: Likewise.
5571         * tests/test-hash.c: Likewise.
5572         * tests/test-i-ring.c: Likewise.
5573         * tests/test-iconv-utf.c: Likewise.
5574         * tests/test-iconv.c: Likewise.
5575         * tests/test-idpriv-drop.c: Likewise.
5576         * tests/test-idpriv-droptemp.c: Likewise.
5577         * tests/test-inet_ntop.c: Likewise.
5578         * tests/test-inet_pton.c: Likewise.
5579         * tests/test-isblank.c: Likewise.
5580         * tests/test-isfinite.c: Likewise.
5581         * tests/test-isinf.c: Likewise.
5582         * tests/test-isnan.c: Likewise.
5583         * tests/test-isnand.h: Likewise.
5584         * tests/test-isnanf.h: Likewise.
5585         * tests/test-isnanl.h: Likewise.
5586         * tests/test-lchown.c: Likewise.
5587         * tests/test-ldexpl.c: Likewise.
5588         * tests/test-link.c: Likewise.
5589         * tests/test-linkat.c: Likewise.
5590         * tests/test-linked_list.c: Likewise.
5591         * tests/test-linkedhash_list.c: Likewise.
5592         * tests/test-localename.c: Likewise.
5593         * tests/test-lseek.c: Likewise.
5594         * tests/test-lstat.c: Likewise.
5595         * tests/test-mbmemcasecmp.c: Likewise.
5596         * tests/test-mbmemcasecoll.c: Likewise.
5597         * tests/test-mbrtowc.c: Likewise.
5598         * tests/test-mbscasecmp.c: Likewise.
5599         * tests/test-mbscasestr1.c: Likewise.
5600         * tests/test-mbscasestr2.c: Likewise.
5601         * tests/test-mbscasestr3.c: Likewise.
5602         * tests/test-mbscasestr4.c: Likewise.
5603         * tests/test-mbschr.c: Likewise.
5604         * tests/test-mbscspn.c: Likewise.
5605         * tests/test-mbsinit.c: Likewise.
5606         * tests/test-mbsncasecmp.c: Likewise.
5607         * tests/test-mbsnrtowcs.c: Likewise.
5608         * tests/test-mbspbrk.c: Likewise.
5609         * tests/test-mbspcasecmp.c: Likewise.
5610         * tests/test-mbsrchr.c: Likewise.
5611         * tests/test-mbsrtowcs.c: Likewise.
5612         * tests/test-mbsspn.c: Likewise.
5613         * tests/test-mbsstr1.c: Likewise.
5614         * tests/test-mbsstr2.c: Likewise.
5615         * tests/test-mbsstr3.c: Likewise.
5616         * tests/test-memchr.c: Likewise.
5617         * tests/test-memchr2.c: Likewise.
5618         * tests/test-memcmp.c: Likewise.
5619         * tests/test-memmem.c: Likewise.
5620         * tests/test-memrchr.c: Likewise.
5621         * tests/test-mkdir.c: Likewise.
5622         * tests/test-mkdirat.c: Likewise.
5623         * tests/test-mkfifo.c: Likewise.
5624         * tests/test-mkfifoat.c: Likewise.
5625         * tests/test-mknod.c: Likewise.
5626         * tests/test-nanosleep.c: Likewise.
5627         * tests/test-nl_langinfo.c: Likewise.
5628         * tests/test-obstack-printf.c: Likewise.
5629         * tests/test-open.c: Likewise.
5630         * tests/test-openat.c: Likewise.
5631         * tests/test-pipe-filter-gi1.c: Likewise.
5632         * tests/test-pipe-filter-gi2-main.c: Likewise.
5633         * tests/test-pipe-filter-ii1.c: Likewise.
5634         * tests/test-pipe-filter-ii2-main.c: Likewise.
5635         * tests/test-pipe2.c: Likewise.
5636         * tests/test-popen.h: Likewise.
5637         * tests/test-posixtm.c: Likewise.
5638         * tests/test-pread.c: Likewise.
5639         * tests/test-printf-frexp.c: Likewise.
5640         * tests/test-printf-frexpl.c: Likewise.
5641         * tests/test-printf-posix.c: Likewise.
5642         * tests/test-priv-set.c: Likewise.
5643         * tests/test-quotearg.c: Likewise.
5644         * tests/test-random_r.c: Likewise.
5645         * tests/test-rawmemchr.c: Likewise.
5646         * tests/test-rbtree_list.c: Likewise.
5647         * tests/test-rbtree_oset.c: Likewise.
5648         * tests/test-rbtreehash_list.c: Likewise.
5649         * tests/test-readlink.c: Likewise.
5650         * tests/test-remove.c: Likewise.
5651         * tests/test-rename.c: Likewise.
5652         * tests/test-renameat.c: Likewise.
5653         * tests/test-rmdir.c: Likewise.
5654         * tests/test-round1.c: Likewise.
5655         * tests/test-roundf1.c: Likewise.
5656         * tests/test-roundl.c: Likewise.
5657         * tests/test-safe-alloc.c: Likewise.
5658         * tests/test-sameacls.c: Likewise.
5659         * tests/test-set-mode-acl.c: Likewise.
5660         * tests/test-setenv.c: Likewise.
5661         * tests/test-sigaction.c: Likewise.
5662         * tests/test-signbit.c: Likewise.
5663         * tests/test-sleep.c: Likewise.
5664         * tests/test-snprintf-posix.c: Likewise.
5665         * tests/test-snprintf.c: Likewise.
5666         * tests/test-sprintf-posix.c: Likewise.
5667         * tests/test-stat-time.c: Likewise.
5668         * tests/test-stat.c: Likewise.
5669         * tests/test-strcasestr.c: Likewise.
5670         * tests/test-strchrnul.c: Likewise.
5671         * tests/test-strerror.c: Likewise.
5672         * tests/test-striconv.c: Likewise.
5673         * tests/test-striconveh.c: Likewise.
5674         * tests/test-striconveha.c: Likewise.
5675         * tests/test-strsignal.c: Likewise.
5676         * tests/test-strstr.c: Likewise.
5677         * tests/test-strtod.c: Likewise.
5678         * tests/test-strverscmp.c: Likewise.
5679         * tests/test-symlink.c: Likewise.
5680         * tests/test-symlinkat.c: Likewise.
5681         * tests/test-trunc1.c: Likewise.
5682         * tests/test-trunc2.c: Likewise.
5683         * tests/test-truncf1.c: Likewise.
5684         * tests/test-truncf2.c: Likewise.
5685         * tests/test-truncl.c: Likewise.
5686         * tests/test-uname.c: Likewise.
5687         * tests/test-unlink.c: Likewise.
5688         * tests/test-unlinkat.c: Likewise.
5689         * tests/test-unsetenv.c: Likewise.
5690         * tests/test-usleep.c: Likewise.
5691         * tests/test-utimens.c: Likewise.
5692         * tests/test-utimensat.c: Likewise.
5693         * tests/test-vasnprintf-posix.c: Likewise.
5694         * tests/test-vasnprintf-posix2.c: Likewise.
5695         * tests/test-vasnprintf.c: Likewise.
5696         * tests/test-vasprintf-posix.c: Likewise.
5697         * tests/test-vasprintf.c: Likewise.
5698         * tests/test-vdprintf-posix.c: Likewise.
5699         * tests/test-vfprintf-posix.c: Likewise.
5700         * tests/test-vprintf-posix.c: Likewise.
5701         * tests/test-vsnprintf-posix.c: Likewise.
5702         * tests/test-vsnprintf.c: Likewise.
5703         * tests/test-vsprintf-posix.c: Likewise.
5704         * tests/test-wcrtomb.c: Likewise.
5705         * tests/test-wcsnrtombs.c: Likewise.
5706         * tests/test-wcsrtombs.c: Likewise.
5707         * tests/test-wctype.c: Likewise.
5708         * tests/test-wcwidth.c: Likewise.
5709         * tests/test-xfprintf-posix.c: Likewise.
5710         * tests/test-xmemdup0.c: Likewise.
5711         * tests/test-xprintf-posix.c: Likewise.
5712         * tests/test-xvasprintf.c: Likewise.
5713         * tests/unicase/test-locale-language.c: Likewise.
5714         * tests/unicase/test-mapping-part1.h: Likewise.
5715         * tests/unicase/test-predicate-part1.h: Likewise.
5716         * tests/unicase/test-u8-casecmp.c: Likewise.
5717         * tests/unicase/test-u8-casecoll.c: Likewise.
5718         * tests/unicase/test-u8-casefold.c: Likewise.
5719         * tests/unicase/test-u8-is-cased.c: Likewise.
5720         * tests/unicase/test-u8-is-casefolded.c: Likewise.
5721         * tests/unicase/test-u8-is-lowercase.c: Likewise.
5722         * tests/unicase/test-u8-is-titlecase.c: Likewise.
5723         * tests/unicase/test-u8-is-uppercase.c: Likewise.
5724         * tests/unicase/test-u8-tolower.c: Likewise.
5725         * tests/unicase/test-u8-totitle.c: Likewise.
5726         * tests/unicase/test-u8-toupper.c: Likewise.
5727         * tests/unicase/test-u16-casecmp.c: Likewise.
5728         * tests/unicase/test-u16-casecoll.c: Likewise.
5729         * tests/unicase/test-u16-casefold.c: Likewise.
5730         * tests/unicase/test-u16-is-cased.c: Likewise.
5731         * tests/unicase/test-u16-is-casefolded.c: Likewise.
5732         * tests/unicase/test-u16-is-lowercase.c: Likewise.
5733         * tests/unicase/test-u16-is-titlecase.c: Likewise.
5734         * tests/unicase/test-u16-is-uppercase.c: Likewise.
5735         * tests/unicase/test-u16-tolower.c: Likewise.
5736         * tests/unicase/test-u16-totitle.c: Likewise.
5737         * tests/unicase/test-u16-toupper.c: Likewise.
5738         * tests/unicase/test-u32-casecmp.c: Likewise.
5739         * tests/unicase/test-u32-casecoll.c: Likewise.
5740         * tests/unicase/test-u32-casefold.c: Likewise.
5741         * tests/unicase/test-u32-is-cased.c: Likewise.
5742         * tests/unicase/test-u32-is-casefolded.c: Likewise.
5743         * tests/unicase/test-u32-is-lowercase.c: Likewise.
5744         * tests/unicase/test-u32-is-titlecase.c: Likewise.
5745         * tests/unicase/test-u32-is-uppercase.c: Likewise.
5746         * tests/unicase/test-u32-tolower.c: Likewise.
5747         * tests/unicase/test-u32-totitle.c: Likewise.
5748         * tests/unicase/test-u32-toupper.c: Likewise.
5749         * tests/unicase/test-ulc-casecmp.c: Likewise.
5750         * tests/unicase/test-ulc-casecoll.c: Likewise.
5751         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
5752         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
5753         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
5754         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
5755         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
5756         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
5757         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
5758         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
5759         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
5760         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
5761         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
5762         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
5763         * tests/unictype/test-bidi_byname.c: Likewise.
5764         * tests/unictype/test-bidi_name.c: Likewise.
5765         * tests/unictype/test-bidi_of.c: Likewise.
5766         * tests/unictype/test-bidi_test.c: Likewise.
5767         * tests/unictype/test-block_list.c: Likewise.
5768         * tests/unictype/test-block_of.c: Likewise.
5769         * tests/unictype/test-block_test.c: Likewise.
5770         * tests/unictype/test-categ_and.c: Likewise.
5771         * tests/unictype/test-categ_and_not.c: Likewise.
5772         * tests/unictype/test-categ_byname.c: Likewise.
5773         * tests/unictype/test-categ_name.c: Likewise.
5774         * tests/unictype/test-categ_none.c: Likewise.
5775         * tests/unictype/test-categ_of.c: Likewise.
5776         * tests/unictype/test-categ_or.c: Likewise.
5777         * tests/unictype/test-categ_test_withtable.c: Likewise.
5778         * tests/unictype/test-combining.c: Likewise.
5779         * tests/unictype/test-decdigit.c: Likewise.
5780         * tests/unictype/test-digit.c: Likewise.
5781         * tests/unictype/test-mirror.c: Likewise.
5782         * tests/unictype/test-numeric.c: Likewise.
5783         * tests/unictype/test-pr_byname.c: Likewise.
5784         * tests/unictype/test-pr_test.c: Likewise.
5785         * tests/unictype/test-predicate-part1.h: Likewise.
5786         * tests/unictype/test-scripts.c: Likewise.
5787         * tests/unictype/test-sy_c_ident.c: Likewise.
5788         * tests/unictype/test-sy_java_ident.c: Likewise.
5789         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
5790         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
5791         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
5792         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
5793         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
5794         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
5795         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
5796         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
5797         * tests/uninorm/test-canonical-decomposition.c: Likewise.
5798         * tests/uninorm/test-compat-decomposition.c: Likewise.
5799         * tests/uninorm/test-composition.c: Likewise.
5800         * tests/uninorm/test-decomposing-form.c: Likewise.
5801         * tests/uninorm/test-decomposition.c: Likewise.
5802         * tests/uninorm/test-u8-nfc.c: Likewise.
5803         * tests/uninorm/test-u8-nfd.c: Likewise.
5804         * tests/uninorm/test-u8-nfkc.c: Likewise.
5805         * tests/uninorm/test-u8-nfkd.c: Likewise.
5806         * tests/uninorm/test-u8-normcmp.c: Likewise.
5807         * tests/uninorm/test-u8-normcoll.c: Likewise.
5808         * tests/uninorm/test-u16-nfc.c: Likewise.
5809         * tests/uninorm/test-u16-nfd.c: Likewise.
5810         * tests/uninorm/test-u16-nfkc.c: Likewise.
5811         * tests/uninorm/test-u16-nfkd.c: Likewise.
5812         * tests/uninorm/test-u16-normcmp.c: Likewise.
5813         * tests/uninorm/test-u16-normcoll.c: Likewise.
5814         * tests/uninorm/test-u32-nfc.c: Likewise.
5815         * tests/uninorm/test-u32-nfd.c: Likewise.
5816         * tests/uninorm/test-u32-nfkc.c: Likewise.
5817         * tests/uninorm/test-u32-nfkd.c: Likewise.
5818         * tests/uninorm/test-u32-normalize-big.c: Likewise.
5819         * tests/uninorm/test-u32-normcmp.c: Likewise.
5820         * tests/uninorm/test-u32-normcoll.c: Likewise.
5821         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
5822         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
5823         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
5824         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
5825         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
5826         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
5827         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
5828         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
5829         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
5830         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
5831         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
5832         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
5833         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
5834         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
5835         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
5836         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
5837         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
5838         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
5839         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
5840         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
5841         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
5842         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
5843         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
5844         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
5845         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
5846         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
5847         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
5848         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
5849         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
5850         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
5851         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
5852         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
5853         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
5854         * tests/uniwidth/test-u8-strwidth.c: Likewise.
5855         * tests/uniwidth/test-u8-width.c: Likewise.
5856         * tests/uniwidth/test-u16-strwidth.c: Likewise.
5857         * tests/uniwidth/test-u16-width.c: Likewise.
5858         * tests/uniwidth/test-u32-strwidth.c: Likewise.
5859         * tests/uniwidth/test-u32-width.c: Likewise.
5860         * tests/uniwidth/test-uc_width.c: Likewise.
5861         * tests/uniwidth/test-uc_width2.c: Likewise.
5862         * modules/acl-tests (Files): Add tests/macros.h.
5863         * modules/areadlink-tests (Files): Likewise.
5864         * modules/areadlink-with-size-tests (Files): Likewise.
5865         * modules/areadlinkat-tests (Files): Likewise.
5866         * modules/areadlinkat-with-size-tests (Files): Likewise.
5867         * modules/argmatch-tests (Files): Likewise.
5868         * modules/argv-iter-tests (Files): Likewise.
5869         * modules/array-list-tests (Files): Likewise.
5870         * modules/array-mergesort-tests (Files): Likewise.
5871         * modules/array-oset-tests (Files): Likewise.
5872         * modules/avltree-list-tests (Files): Likewise.
5873         * modules/avltree-oset-tests (Files): Likewise.
5874         * modules/avltreehash-list-tests (Files): Likewise.
5875         * modules/base64-tests (Files): Likewise.
5876         * modules/binary-io-tests (Files): Likewise.
5877         * modules/bitrotate-tests (Files): Likewise.
5878         * modules/btowc-tests (Files): Likewise.
5879         * modules/byteswap-tests (Files): Likewise.
5880         * modules/c-ctype-tests (Files): Likewise.
5881         * modules/c-stack-tests (Files): Likewise.
5882         * modules/c-strcase-tests (Files): Likewise.
5883         * modules/c-strcasestr-tests (Files): Likewise.
5884         * modules/c-strstr-tests (Files): Likewise.
5885         * modules/canonicalize-lgpl-tests (Files): Likewise.
5886         * modules/canonicalize-tests (Files): Likewise.
5887         * modules/carray-list-tests (Files): Likewise.
5888         * modules/ceilf-tests (Files): Likewise.
5889         * modules/ceill-tests (Files): Likewise.
5890         * modules/chown-tests (Files): Likewise.
5891         * modules/cloexec-tests (Files): Likewise.
5892         * modules/copy-file-tests (Files): Likewise.
5893         * modules/count-one-bits-tests (Files): Likewise.
5894         * modules/dprintf-posix-tests (Files): Likewise.
5895         * modules/dup2-tests (Files): Likewise.
5896         * modules/dup3-tests (Files): Likewise.
5897         * modules/duplocale-tests (Files): Likewise.
5898         * modules/fbufmode-tests (Files): Likewise.
5899         * modules/fchdir-tests (Files): Likewise.
5900         * modules/fcntl-safer-tests (Files): Likewise.
5901         * modules/fcntl-tests (Files): Likewise.
5902         * modules/fdopendir-tests (Files): Likewise.
5903         * modules/fdutimensat-tests (Files): Likewise.
5904         * modules/fflush-tests (Files): Likewise.
5905         * modules/filevercmp-tests (Files): Likewise.
5906         * modules/flock-tests (Files): Likewise.
5907         * modules/floorf-tests (Files): Likewise.
5908         * modules/floorl-tests (Files): Likewise.
5909         * modules/fnmatch-tests (Files): Likewise.
5910         * modules/fopen-safer-tests (Files): Likewise.
5911         * modules/fopen-tests (Files): Likewise.
5912         * modules/fpending-tests (Files): Likewise.
5913         * modules/fprintf-posix-tests (Files): Likewise.
5914         * modules/fpurge-tests (Files): Likewise.
5915         * modules/freadable-tests (Files): Likewise.
5916         * modules/freadahead-tests (Files): Likewise.
5917         * modules/freading-tests (Files): Likewise.
5918         * modules/freadptr-tests (Files): Likewise.
5919         * modules/freadseek-tests (Files): Likewise.
5920         * modules/freopen-tests (Files): Likewise.
5921         * modules/frexp-nolibm-tests (Files): Likewise.
5922         * modules/frexp-tests (Files): Likewise.
5923         * modules/frexpl-nolibm-tests (Files): Likewise.
5924         * modules/frexpl-tests (Files): Likewise.
5925         * modules/fseek-tests (Files): Likewise.
5926         * modules/fseeko-tests (Files): Likewise.
5927         * modules/fstrcmp-tests (Files): Likewise.
5928         * modules/fsync-tests (Files): Likewise.
5929         * modules/ftell-tests (Files): Likewise.
5930         * modules/ftello-tests (Files): Likewise.
5931         * modules/func-tests (Files): Likewise.
5932         * modules/futimens-tests (Files): Likewise.
5933         * modules/fwritable-tests (Files): Likewise.
5934         * modules/fwriting-tests (Files): Likewise.
5935         * modules/getcwd-tests (Files): Likewise.
5936         * modules/getdate-tests (Files): Likewise.
5937         * modules/getdelim-tests (Files): Likewise.
5938         * modules/getdtablesize-tests (Files): Likewise.
5939         * modules/getgroups-tests (Files): Likewise.
5940         * modules/getline-tests (Files): Likewise.
5941         * modules/getndelim2-tests (Files): Likewise.
5942         * modules/glob-tests (Files): Likewise.
5943         * modules/hash-tests (Files): Likewise.
5944         * modules/i-ring-tests (Files): Likewise.
5945         * modules/iconv-tests (Files): Likewise.
5946         * modules/iconv_open-utf-tests (Files): Likewise.
5947         * modules/idpriv-drop-tests (Files): Likewise.
5948         * modules/idpriv-droptemp-tests (Files): Likewise.
5949         * modules/inet_ntop-tests (Files): Likewise.
5950         * modules/inet_pton-tests (Files): Likewise.
5951         * modules/isblank-tests (Files): Likewise.
5952         * modules/isfinite-tests (Files): Likewise.
5953         * modules/isinf-tests (Files): Likewise.
5954         * modules/isnan-tests (Files): Likewise.
5955         * modules/isnand-nolibm-tests (Files): Likewise.
5956         * modules/isnand-tests (Files): Likewise.
5957         * modules/isnanf-nolibm-tests (Files): Likewise.
5958         * modules/isnanf-tests (Files): Likewise.
5959         * modules/isnanl-nolibm-tests (Files): Likewise.
5960         * modules/isnanl-tests (Files): Likewise.
5961         * modules/lchown-tests (Files): Likewise.
5962         * modules/ldexpl-tests (Files): Likewise.
5963         * modules/link-tests (Files): Likewise.
5964         * modules/linkat-tests (Files): Likewise.
5965         * modules/linked-list-tests (Files): Likewise.
5966         * modules/linkedhash-list-tests (Files): Likewise.
5967         * modules/localename-tests (Files): Likewise.
5968         * modules/lseek-tests (Files): Likewise.
5969         * modules/lstat-tests (Files): Likewise.
5970         * modules/mbmemcasecmp-tests (Files): Likewise.
5971         * modules/mbmemcasecoll-tests (Files): Likewise.
5972         * modules/mbrtowc-tests (Files): Likewise.
5973         * modules/mbscasecmp-tests (Files): Likewise.
5974         * modules/mbscasestr-tests (Files): Likewise.
5975         * modules/mbschr-tests (Files): Likewise.
5976         * modules/mbscspn-tests (Files): Likewise.
5977         * modules/mbsinit-tests (Files): Likewise.
5978         * modules/mbsncasecmp-tests (Files): Likewise.
5979         * modules/mbsnrtowcs-tests (Files): Likewise.
5980         * modules/mbspbrk-tests (Files): Likewise.
5981         * modules/mbspcasecmp-tests (Files): Likewise.
5982         * modules/mbsrchr-tests (Files): Likewise.
5983         * modules/mbsrtowcs-tests (Files): Likewise.
5984         * modules/mbsspn-tests (Files): Likewise.
5985         * modules/mbsstr-tests (Files): Likewise.
5986         * modules/memchr-tests (Files): Likewise.
5987         * modules/memchr2-tests (Files): Likewise.
5988         * modules/memcmp-tests (Files): Likewise.
5989         * modules/memmem-tests (Files): Likewise.
5990         * modules/memrchr-tests (Files): Likewise.
5991         * modules/mkdir-tests (Files): Likewise.
5992         * modules/mkfifo-tests (Files): Likewise.
5993         * modules/mkfifoat-tests (Files): Likewise.
5994         * modules/mknod-tests (Files): Likewise.
5995         * modules/nanosleep-tests (Files): Likewise.
5996         * modules/nl_langinfo-tests (Files): Likewise.
5997         * modules/obstack-printf-tests (Files): Likewise.
5998         * modules/open-tests (Files): Likewise.
5999         * modules/openat-tests (Files): Likewise.
6000         * modules/pipe-filter-gi-tests (Files): Likewise.
6001         * modules/pipe-filter-ii-tests (Files): Likewise.
6002         * modules/pipe2-tests (Files): Likewise.
6003         * modules/popen-safer-tests (Files): Likewise.
6004         * modules/popen-tests (Files): Likewise.
6005         * modules/posixtm-tests (Files): Likewise.
6006         * modules/pread-tests (Files): Likewise.
6007         * modules/printf-frexp-tests (Files): Likewise.
6008         * modules/printf-frexpl-tests (Files): Likewise.
6009         * modules/printf-posix-tests (Files): Likewise.
6010         * modules/priv-set-tests (Files): Likewise.
6011         * modules/quotearg-tests (Files): Likewise.
6012         * modules/random_r-tests (Files): Likewise.
6013         * modules/rawmemchr-tests (Files): Likewise.
6014         * modules/rbtree-list-tests (Files): Likewise.
6015         * modules/rbtree-oset-tests (Files): Likewise.
6016         * modules/rbtreehash-list-tests (Files): Likewise.
6017         * modules/readlink-tests (Files): Likewise.
6018         * modules/remove-tests (Files): Likewise.
6019         * modules/rename-tests (Files): Likewise.
6020         * modules/renameat-tests (Files): Likewise.
6021         * modules/rmdir-tests (Files): Likewise.
6022         * modules/round-tests (Files): Likewise.
6023         * modules/roundf-tests (Files): Likewise.
6024         * modules/roundl-tests (Files): Likewise.
6025         * modules/safe-alloc-tests (Files): Likewise.
6026         * modules/setenv-tests (Files): Likewise.
6027         * modules/sigaction-tests (Files): Likewise.
6028         * modules/signbit-tests (Files): Likewise.
6029         * modules/sleep-tests (Files): Likewise.
6030         * modules/snprintf-posix-tests (Files): Likewise.
6031         * modules/snprintf-tests (Files): Likewise.
6032         * modules/sprintf-posix-tests (Files): Likewise.
6033         * modules/stat-tests (Files): Likewise.
6034         * modules/stat-time-tests (Files): Likewise.
6035         * modules/strcasestr-tests (Files): Likewise.
6036         * modules/strchrnul-tests (Files): Likewise.
6037         * modules/strerror-tests (Files): Likewise.
6038         * modules/striconv-tests (Files): Likewise.
6039         * modules/striconveh-tests (Files): Likewise.
6040         * modules/striconveha-tests (Files): Likewise.
6041         * modules/strsignal-tests (Files): Likewise.
6042         * modules/strstr-tests (Files): Likewise.
6043         * modules/strtod-tests (Files): Likewise.
6044         * modules/strverscmp-tests (Files): Likewise.
6045         * modules/symlink-tests (Files): Likewise.
6046         * modules/symlinkat-tests (Files): Likewise.
6047         * modules/trunc-tests (Files): Likewise.
6048         * modules/truncf-tests (Files): Likewise.
6049         * modules/truncl-tests (Files): Likewise.
6050         * modules/uname-tests (Files): Likewise.
6051         * modules/unicase/cased-tests (Files): Likewise.
6052         * modules/unicase/ignorable-tests (Files): Likewise.
6053         * modules/unicase/locale-language-tests (Files): Likewise.
6054         * modules/unicase/tolower-tests (Files): Likewise.
6055         * modules/unicase/totitle-tests (Files): Likewise.
6056         * modules/unicase/toupper-tests (Files): Likewise.
6057         * modules/unicase/u8-casecmp-tests (Files): Likewise.
6058         * modules/unicase/u8-casecoll-tests (Files): Likewise.
6059         * modules/unicase/u8-casefold-tests (Files): Likewise.
6060         * modules/unicase/u8-is-cased-tests (Files): Likewise.
6061         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
6062         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
6063         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
6064         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
6065         * modules/unicase/u8-tolower-tests (Files): Likewise.
6066         * modules/unicase/u8-totitle-tests (Files): Likewise.
6067         * modules/unicase/u8-toupper-tests (Files): Likewise.
6068         * modules/unicase/u16-casecmp-tests (Files): Likewise.
6069         * modules/unicase/u16-casecoll-tests (Files): Likewise.
6070         * modules/unicase/u16-casefold-tests (Files): Likewise.
6071         * modules/unicase/u16-is-cased-tests (Files): Likewise.
6072         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
6073         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
6074         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
6075         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
6076         * modules/unicase/u16-tolower-tests (Files): Likewise.
6077         * modules/unicase/u16-totitle-tests (Files): Likewise.
6078         * modules/unicase/u16-toupper-tests (Files): Likewise.
6079         * modules/unicase/u32-casecmp-tests (Files): Likewise.
6080         * modules/unicase/u32-casecoll-tests (Files): Likewise.
6081         * modules/unicase/u32-casefold-tests (Files): Likewise.
6082         * modules/unicase/u32-is-cased-tests (Files): Likewise.
6083         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
6084         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
6085         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
6086         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
6087         * modules/unicase/u32-tolower-tests (Files): Likewise.
6088         * modules/unicase/u32-totitle-tests (Files): Likewise.
6089         * modules/unicase/u32-toupper-tests (Files): Likewise.
6090         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
6091         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
6092         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
6093         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
6094         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
6095         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
6096         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
6097         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
6098         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
6099         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
6100         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
6101         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
6102         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
6103         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
6104         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
6105         * modules/unictype/bidicategory-name-tests (Files): Likewise.
6106         * modules/unictype/bidicategory-of-tests (Files): Likewise.
6107         * modules/unictype/bidicategory-test-tests (Files): Likewise.
6108         * modules/unictype/block-list-tests (Files): Likewise.
6109         * modules/unictype/block-of-tests (Files): Likewise.
6110         * modules/unictype/block-test-tests (Files): Likewise.
6111         * modules/unictype/category-C-tests (Files): Likewise.
6112         * modules/unictype/category-Cc-tests (Files): Likewise.
6113         * modules/unictype/category-Cf-tests (Files): Likewise.
6114         * modules/unictype/category-Cn-tests (Files): Likewise.
6115         * modules/unictype/category-Co-tests (Files): Likewise.
6116         * modules/unictype/category-Cs-tests (Files): Likewise.
6117         * modules/unictype/category-L-tests (Files): Likewise.
6118         * modules/unictype/category-Ll-tests (Files): Likewise.
6119         * modules/unictype/category-Lm-tests (Files): Likewise.
6120         * modules/unictype/category-Lo-tests (Files): Likewise.
6121         * modules/unictype/category-Lt-tests (Files): Likewise.
6122         * modules/unictype/category-Lu-tests (Files): Likewise.
6123         * modules/unictype/category-M-tests (Files): Likewise.
6124         * modules/unictype/category-Mc-tests (Files): Likewise.
6125         * modules/unictype/category-Me-tests (Files): Likewise.
6126         * modules/unictype/category-Mn-tests (Files): Likewise.
6127         * modules/unictype/category-N-tests (Files): Likewise.
6128         * modules/unictype/category-Nd-tests (Files): Likewise.
6129         * modules/unictype/category-Nl-tests (Files): Likewise.
6130         * modules/unictype/category-No-tests (Files): Likewise.
6131         * modules/unictype/category-P-tests (Files): Likewise.
6132         * modules/unictype/category-Pc-tests (Files): Likewise.
6133         * modules/unictype/category-Pd-tests (Files): Likewise.
6134         * modules/unictype/category-Pe-tests (Files): Likewise.
6135         * modules/unictype/category-Pf-tests (Files): Likewise.
6136         * modules/unictype/category-Pi-tests (Files): Likewise.
6137         * modules/unictype/category-Po-tests (Files): Likewise.
6138         * modules/unictype/category-Ps-tests (Files): Likewise.
6139         * modules/unictype/category-S-tests (Files): Likewise.
6140         * modules/unictype/category-Sc-tests (Files): Likewise.
6141         * modules/unictype/category-Sk-tests (Files): Likewise.
6142         * modules/unictype/category-Sm-tests (Files): Likewise.
6143         * modules/unictype/category-So-tests (Files): Likewise.
6144         * modules/unictype/category-Z-tests (Files): Likewise.
6145         * modules/unictype/category-Zl-tests (Files): Likewise.
6146         * modules/unictype/category-Zp-tests (Files): Likewise.
6147         * modules/unictype/category-Zs-tests (Files): Likewise.
6148         * modules/unictype/category-and-not-tests (Files): Likewise.
6149         * modules/unictype/category-and-tests (Files): Likewise.
6150         * modules/unictype/category-byname-tests (Files): Likewise.
6151         * modules/unictype/category-name-tests (Files): Likewise.
6152         * modules/unictype/category-none-tests (Files): Likewise.
6153         * modules/unictype/category-of-tests (Files): Likewise.
6154         * modules/unictype/category-or-tests (Files): Likewise.
6155         * modules/unictype/category-test-withtable-tests (Files): Likewise.
6156         * modules/unictype/combining-class-tests (Files): Likewise.
6157         * modules/unictype/ctype-alnum-tests (Files): Likewise.
6158         * modules/unictype/ctype-alpha-tests (Files): Likewise.
6159         * modules/unictype/ctype-blank-tests (Files): Likewise.
6160         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
6161         * modules/unictype/ctype-digit-tests (Files): Likewise.
6162         * modules/unictype/ctype-graph-tests (Files): Likewise.
6163         * modules/unictype/ctype-lower-tests (Files): Likewise.
6164         * modules/unictype/ctype-print-tests (Files): Likewise.
6165         * modules/unictype/ctype-punct-tests (Files): Likewise.
6166         * modules/unictype/ctype-space-tests (Files): Likewise.
6167         * modules/unictype/ctype-upper-tests (Files): Likewise.
6168         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
6169         * modules/unictype/decimal-digit-tests (Files): Likewise.
6170         * modules/unictype/digit-tests (Files): Likewise.
6171         * modules/unictype/mirror-tests (Files): Likewise.
6172         * modules/unictype/numeric-tests (Files): Likewise.
6173         * modules/unictype/property-alphabetic-tests (Files): Likewise.
6174         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
6175         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
6176         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
6177         Likewise.
6178         * modules/unictype/property-bidi-block-separator-tests (Files):
6179         Likewise.
6180         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
6181         Likewise.
6182         * modules/unictype/property-bidi-common-separator-tests (Files):
6183         Likewise.
6184         * modules/unictype/property-bidi-control-tests (Files): Likewise.
6185         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
6186         Likewise.
6187         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
6188         Likewise.
6189         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
6190         Likewise.
6191         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
6192         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
6193         Likewise.
6194         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
6195         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
6196         Likewise.
6197         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
6198         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
6199         * modules/unictype/property-bidi-segment-separator-tests (Files):
6200         Likewise.
6201         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
6202         * modules/unictype/property-byname-tests (Files): Likewise.
6203         * modules/unictype/property-combining-tests (Files): Likewise.
6204         * modules/unictype/property-composite-tests (Files): Likewise.
6205         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
6206         * modules/unictype/property-dash-tests (Files): Likewise.
6207         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
6208         * modules/unictype/property-default-ignorable-code-point-tests (Files):
6209         Likewise.
6210         * modules/unictype/property-deprecated-tests (Files): Likewise.
6211         * modules/unictype/property-diacritic-tests (Files): Likewise.
6212         * modules/unictype/property-extender-tests (Files): Likewise.
6213         * modules/unictype/property-format-control-tests (Files): Likewise.
6214         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
6215         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
6216         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
6217         * modules/unictype/property-hex-digit-tests (Files): Likewise.
6218         * modules/unictype/property-hyphen-tests (Files): Likewise.
6219         * modules/unictype/property-id-continue-tests (Files): Likewise.
6220         * modules/unictype/property-id-start-tests (Files): Likewise.
6221         * modules/unictype/property-ideographic-tests (Files): Likewise.
6222         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
6223         * modules/unictype/property-ids-trinary-operator-tests (Files):
6224         Likewise.
6225         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
6226         * modules/unictype/property-iso-control-tests (Files): Likewise.
6227         * modules/unictype/property-join-control-tests (Files): Likewise.
6228         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
6229         * modules/unictype/property-line-separator-tests (Files): Likewise.
6230         * modules/unictype/property-logical-order-exception-tests (Files):
6231         Likewise.
6232         * modules/unictype/property-lowercase-tests (Files): Likewise.
6233         * modules/unictype/property-math-tests (Files): Likewise.
6234         * modules/unictype/property-non-break-tests (Files): Likewise.
6235         * modules/unictype/property-not-a-character-tests (Files): Likewise.
6236         * modules/unictype/property-numeric-tests (Files): Likewise.
6237         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
6238         * modules/unictype/property-other-default-ignorable-code-point-tests
6239         (Files): Likewise.
6240         * modules/unictype/property-other-grapheme-extend-tests (Files):
6241         Likewise.
6242         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
6243         * modules/unictype/property-other-id-start-tests (Files): Likewise.
6244         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
6245         * modules/unictype/property-other-math-tests (Files): Likewise.
6246         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
6247         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
6248         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
6249         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
6250         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
6251         * modules/unictype/property-private-use-tests (Files): Likewise.
6252         * modules/unictype/property-punctuation-tests (Files): Likewise.
6253         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
6254         * modules/unictype/property-radical-tests (Files): Likewise.
6255         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
6256         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
6257         * modules/unictype/property-space-tests (Files): Likewise.
6258         * modules/unictype/property-terminal-punctuation-tests (Files):
6259         Likewise.
6260         * modules/unictype/property-test-tests (Files): Likewise.
6261         * modules/unictype/property-titlecase-tests (Files): Likewise.
6262         * modules/unictype/property-unassigned-code-value-tests (Files):
6263         Likewise.
6264         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
6265         * modules/unictype/property-uppercase-tests (Files): Likewise.
6266         * modules/unictype/property-variation-selector-tests (Files): Likewise.
6267         * modules/unictype/property-white-space-tests (Files): Likewise.
6268         * modules/unictype/property-xid-continue-tests (Files): Likewise.
6269         * modules/unictype/property-xid-start-tests (Files): Likewise.
6270         * modules/unictype/property-zero-width-tests (Files): Likewise.
6271         * modules/unictype/scripts-tests (Files): Likewise.
6272         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
6273         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
6274         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
6275         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
6276         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
6277         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
6278         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
6279         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
6280         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
6281         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
6282         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
6283         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
6284         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
6285         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
6286         * modules/uninorm/composition-tests (Files): Likewise.
6287         * modules/uninorm/decomposing-form-tests (Files): Likewise.
6288         * modules/uninorm/decomposition-tests (Files): Likewise.
6289         * modules/uninorm/filter-tests (Files): Likewise.
6290         * modules/uninorm/nfc-tests (Files): Likewise.
6291         * modules/uninorm/nfd-tests (Files): Likewise.
6292         * modules/uninorm/nfkc-tests (Files): Likewise.
6293         * modules/uninorm/nfkd-tests (Files): Likewise.
6294         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
6295         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
6296         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
6297         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
6298         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
6299         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
6300         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
6301         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
6302         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
6303         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
6304         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
6305         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
6306         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
6307         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
6308         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
6309         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
6310         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
6311         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
6312         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
6313         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
6314         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
6315         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
6316         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
6317         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
6318         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
6319         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
6320         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
6321         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
6322         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
6323         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
6324         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
6325         * modules/uniwidth/u8-width-tests (Files): Likewise.
6326         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
6327         * modules/uniwidth/u16-width-tests (Files): Likewise.
6328         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
6329         * modules/uniwidth/u32-width-tests (Files): Likewise.
6330         * modules/uniwidth/width-tests (Files): Likewise.
6331         * modules/unlink-tests (Files): Likewise.
6332         * modules/unsetenv-tests (Files): Likewise.
6333         * modules/usleep-tests (Files): Likewise.
6334         * modules/utimens-tests (Files): Likewise.
6335         * modules/utimensat-tests (Files): Likewise.
6336         * modules/vasnprintf-posix-tests (Files): Likewise.
6337         * modules/vasnprintf-tests (Files): Likewise.
6338         * modules/vasprintf-posix-tests (Files): Likewise.
6339         * modules/vasprintf-tests (Files): Likewise.
6340         * modules/vdprintf-posix-tests (Files): Likewise.
6341         * modules/vfprintf-posix-tests (Files): Likewise.
6342         * modules/vprintf-posix-tests (Files): Likewise.
6343         * modules/vsnprintf-posix-tests (Files): Likewise.
6344         * modules/vsnprintf-tests (Files): Likewise.
6345         * modules/vsprintf-posix-tests (Files): Likewise.
6346         * modules/wcrtomb-tests (Files): Likewise.
6347         * modules/wcsnrtombs-tests (Files): Likewise.
6348         * modules/wcsrtombs-tests (Files): Likewise.
6349         * modules/wctype-tests (Files): Likewise.
6350         * modules/wcwidth-tests (Files): Likewise.
6351         * modules/xmemdup0-tests (Files): Likewise.
6352         * modules/xprintf-posix-tests (Files): Likewise.
6353         * modules/xvasprintf-tests (Files): Likewise.
6354
6355 2009-12-24  Eric Blake  <ebb9@byu.net>
6356
6357         test-nanosleep: fix typo
6358         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
6359         patch.
6360         Reported by Bruno Haible.
6361
6362 2009-12-24  Bruno Haible  <bruno@clisp.org>
6363
6364         Reduce namespace pollution on glibc systems.
6365         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
6366         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
6367         systems.
6368         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
6369         <getopt.h> on glibc systems.
6370         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
6371         systems.
6372         * lib/fcntl.c: Include <unistd.h> here instead.
6373
6374 2009-12-24  Bruno Haible  <bruno@clisp.org>
6375
6376         * lib/stdlib.in.h (includes): Fix typo in today's commit.
6377
6378 2009-12-24  Eric Blake  <ebb9@byu.net>
6379
6380         tests: add signature checks
6381         * tests/signature.h (SIGNATURE_CHECK): New file.
6382         * modules/atexit-tests (Files): Use it.
6383         * modules/btowc-tests (Files): Likewise.
6384         * modules/canonicalize-lgpl-tests (Files): Likewise.
6385         * modules/ceilf-tests (Files): Likewise.
6386         * modules/ceill-tests (Files): Likewise.
6387         * modules/chown-tests (Files): Likewise.
6388         * modules/dprintf-posix-tests (Files): Likewise.
6389         * modules/dup2-tests (Files): Likewise.
6390         * modules/dup3-tests (Files): Likewise.
6391         * modules/duplocale-tests (Files): Likewise.
6392         * modules/fchdir-tests (Files): Likewise.
6393         * modules/fcntl-tests (Files): Likewise.
6394         * modules/fdopendir-tests (Files): Likewise.
6395         * modules/fflush-tests (Files): Likewise.
6396         * modules/flock-tests (Files): Likewise.
6397         * modules/floorf-tests (Files): Likewise.
6398         * modules/floorl-tests (Files): Likewise.
6399         * modules/fnmatch-tests (Files): Likewise.
6400         * modules/fopen-tests (Files): Likewise.
6401         * modules/fprintf-posix-tests (Files): Likewise.
6402         * modules/freopen-tests (Files): Likewise.
6403         * modules/frexp-nolibm-tests (Files): Likewise.
6404         * modules/frexp-tests (Files): Likewise.
6405         * modules/frexpl-nolibm-tests (Files): Likewise.
6406         * modules/frexpl-tests (Files): Likewise.
6407         * modules/fseek-tests (Files): Likewise.
6408         * modules/fseeko-tests (Files): Likewise.
6409         * modules/fsync-tests (Files): Likewise.
6410         * modules/ftell-tests (Files): Likewise.
6411         * modules/ftello-tests (Files): Likewise.
6412         * modules/futimens-tests (Files): Likewise.
6413         * modules/getaddrinfo-tests (Files): Likewise.
6414         * modules/getcwd-tests (Files): Likewise.
6415         * modules/getdelim-tests (Files): Likewise.
6416         * modules/getdtablesize-tests (Files): Likewise.
6417         * modules/getgroups-tests (Files): Likewise.
6418         * modules/gethostname-tests (Files): Likewise.
6419         * modules/getline-tests (Files): Likewise.
6420         * modules/getopt-posix-tests (Files): Likewise.
6421         * modules/gettimeofday-tests (Files): Likewise.
6422         * modules/glob-tests (Files): Likewise.
6423         * modules/iconv-tests (Files): Likewise.
6424         * modules/inet_ntop-tests (Files): Likewise.
6425         * modules/inet_pton-tests (Files): Likewise.
6426         * modules/isblank-tests (Files): Likewise.
6427         * modules/lchown-tests (Files): Likewise.
6428         * modules/ldexpl-tests (Files): Likewise.
6429         * modules/link-tests (Files): Likewise.
6430         * modules/linkat-tests (Files): Likewise.
6431         * modules/lseek-tests (Files): Likewise.
6432         * modules/lstat-tests (Files): Likewise.
6433         * modules/mbrtowc-tests (Files): Likewise.
6434         * modules/mbsinit-tests (Files): Likewise.
6435         * modules/mbsnrtowcs-tests (Files): Likewise.
6436         * modules/mbsrtowcs-tests (Files): Likewise.
6437         * modules/memchr-tests (Files): Likewise.
6438         * modules/memcmp-tests (Files): Likewise.
6439         * modules/memmem-tests (Files): Likewise.
6440         * modules/memrchr-tests (Files): Likewise.
6441         * modules/mkdir-tests (Files): Likewise.
6442         * modules/mkfifo-tests (Files): Likewise.
6443         * modules/mkfifoat-tests (Files): Likewise.
6444         * modules/mknod-tests (Files): Likewise.
6445         * modules/nanosleep-tests (Files): Likewise.
6446         * modules/nl_langinfo-tests (Files): Likewise.
6447         * modules/obstack-printf-tests (Files): Likewise.
6448         * modules/open-tests (Files): Likewise.
6449         * modules/openat-tests (Files): Likewise.
6450         * modules/perror-tests (Files): Likewise.
6451         * modules/pipe2-tests (Files): Likewise.
6452         * modules/poll-tests (Files): Likewise.
6453         * modules/popen-tests (Files): Likewise.
6454         * modules/posix_spawn-tests (Files): Likewise.
6455         * modules/posix_spawnp-tests (Files): Likewise.
6456         * modules/pread-tests (Files): Likewise.
6457         * modules/printf-posix-tests (Files): Likewise.
6458         * modules/pty-tests (Files): Likewise.
6459         * modules/random_r-tests (Files): Likewise.
6460         * modules/rawmemchr-tests (Files): Likewise.
6461         * modules/readlink-tests (Files): Likewise.
6462         * modules/remove-tests (Files): Likewise.
6463         * modules/rename-tests (Files): Likewise.
6464         * modules/renameat-tests (Files): Likewise.
6465         * modules/rmdir-tests (Files): Likewise.
6466         * modules/round-tests (Files): Likewise.
6467         * modules/roundf-tests (Files): Likewise.
6468         * modules/roundl-tests (Files): Likewise.
6469         * modules/select-tests (Files): Likewise.
6470         * modules/setenv-tests (Files): Likewise.
6471         * modules/sigaction-tests (Files): Likewise.
6472         * modules/sleep-tests (Files): Likewise.
6473         * modules/snprintf-posix-tests (Files): Likewise.
6474         * modules/snprintf-tests (Files): Likewise.
6475         * modules/sprintf-posix-tests (Files): Likewise.
6476         * modules/stat-tests (Files): Likewise.
6477         * modules/strcasestr-tests (Files): Likewise.
6478         * modules/strchrnul-tests (Files): Likewise.
6479         * modules/strerror-tests (Files): Likewise.
6480         * modules/strsignal-tests (Files): Likewise.
6481         * modules/strstr-tests (Files): Likewise.
6482         * modules/strtod-tests (Files): Likewise.
6483         * modules/strverscmp-tests (Files): Likewise.
6484         * modules/symlink-tests (Files): Likewise.
6485         * modules/symlinkat-tests (Files): Likewise.
6486         * modules/times-tests (Files): Likewise.
6487         * modules/trunc-tests (Files): Likewise.
6488         * modules/truncf-tests (Files): Likewise.
6489         * modules/truncl-tests (Files): Likewise.
6490         * modules/tsearch-tests (Files): Likewise.
6491         * modules/uname-tests (Files): Likewise.
6492         * modules/unlink-tests (Files): Likewise.
6493         * modules/unsetenv-tests (Files): Likewise.
6494         * modules/usleep-tests (Files): Likewise.
6495         * modules/utimensat-tests (Files): Likewise.
6496         * modules/vasprintf-tests (Files): Likewise.
6497         * modules/vdprintf-posix-tests (Files): Likewise.
6498         * modules/vfprintf-posix-tests (Files): Likewise.
6499         * modules/vprintf-posix-tests (Files): Likewise.
6500         * modules/vsnprintf-posix-tests (Files): Likewise.
6501         * modules/vsnprintf-tests (Files): Likewise.
6502         * modules/vsprintf-posix-tests (Files): Likewise.
6503         * modules/wcrtomb-tests (Files): Likewise.
6504         * modules/wcsnrtombs-tests (Files): Likewise.
6505         * modules/wcsrtombs-tests (Files): Likewise.
6506         * modules/wcwidth-tests (Files): Likewise.
6507         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
6508         * tests/test-isinf.c (isinf): Likewise.
6509         * tests/test-isnan.c (isnan): Likewise.
6510         * tests/test-signbit.c (signbit): Likewise.
6511         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
6512         declaration, either as macro or with correct signature.
6513         (select): Ensure function under test is declared with correct
6514         signature in correct header.
6515         * tests/test-atexit.c (atexit): Likewise.
6516         * tests/test-btowc.c (btowc): Likewise.
6517         * tests/test-canonicalize-lgpl.c (realpath)
6518         (canonicalize_file_name): Likewise.
6519         * tests/test-ceilf1.c (ceilf): Likewise.
6520         * tests/test-ceill.c (ceill): Likewise.
6521         * tests/test-chown.c (chown): Likewise.
6522         * tests/test-dprintf-posix.c (dprintf): Likewise.
6523         * tests/test-dup2.c (dup2): Likewise.
6524         * tests/test-dup3.c (dup3): Likewise.
6525         * tests/test-duplocale.c (duplocale): Likewise.
6526         * tests/test-fchdir.c (fchdir): Likewise.
6527         * tests/test-fchownat.c (fchownat): Likewise.
6528         * tests/test-fcntl.c (fcntl): Likewise.
6529         * tests/test-fdopendir.c (fdopendir): Likewise.
6530         * tests/test-fflush.c (fflush): Likewise.
6531         * tests/test-flock.c (flock): Likewise.
6532         * tests/test-floorf1.c (floorf): Likewise.
6533         * tests/test-floorl.c (floorl): Likewise.
6534         * tests/test-fnmatch.c (fnmatch): Likewise.
6535         * tests/test-fopen.c (fopen): Likewise.
6536         * tests/test-fprintf-posix.c (fprintf): Likewise.
6537         * tests/test-freopen.c (freopen): Likewise.
6538         * tests/test-frexp.c (frexp): Likewise.
6539         * tests/test-frexpl.c (frexpl): Likewise.
6540         * tests/test-fseek.c (fseek): Likewise.
6541         * tests/test-fseeko.c (fseeko): Likewise.
6542         * tests/test-fstatat.c (fstatat): Likewise.
6543         * tests/test-fsync.c (fsync): Likewise.
6544         * tests/test-ftell.c (ftell): Likewise.
6545         * tests/test-ftello.c (ftello): Likewise.
6546         * tests/test-futimens.c (futimens): Likewise.
6547         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
6548         (gai_strerror): Likewise.
6549         * tests/test-getcwd.c (getcwd): Likewise.
6550         * tests/test-getdelim.c (getdelim): Likewise.
6551         * tests/test-getdtablesize.c (getdtablesize): Likewise.
6552         * tests/test-getgroups.c (getgroups): Likewise.
6553         * tests/test-gethostname.c (gethostname): Likewise.
6554         * tests/test-getline.c (getline): Likewise.
6555         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
6556         Likewise.
6557         * tests/test-gettimeofday.c (gettimeofday): Likewise.
6558         * tests/test-glob.c (glob, globfree): Likewise.
6559         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
6560         * tests/test-inet_ntop.c (inet_ntop): Likewise.
6561         * tests/test-inet_pton.c (inet_pton): Likewise.
6562         * tests/test-isblank.c (isblank): Likewise.
6563         * tests/test-lchown.c (lchown): Likewise.
6564         * tests/test-ldexpl.c (ldexpl): Likewise.
6565         * tests/test-link.c (link): Likewise.
6566         * tests/test-linkat.c (linkat): Likewise.
6567         * tests/test-lseek.c (lseek): Likewise.
6568         * tests/test-lstat.c (lstat): Likewise.
6569         * tests/test-mbrtowc.c (mbrtowc): Likewise.
6570         * tests/test-mbsinit.c (mbsinit): Likewise.
6571         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
6572         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
6573         * tests/test-memchr.c (memchr): Likewise.
6574         * tests/test-memcmp.c (memcmp): Likewise.
6575         * tests/test-memmem.c (memmem): Likewise.
6576         * tests/test-memrchr.c (memrchr): Likewise.
6577         * tests/test-mkdir.c (mkdir): Likewise.
6578         * tests/test-mkdirat.c (mkdirat): Likewise.
6579         * tests/test-mkfifo.c (mkfifo): Likewise.
6580         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
6581         * tests/test-mknod.c (mknod): Likewise.
6582         * tests/test-nanosleep.c (nanosleep): Likewise.
6583         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
6584         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
6585         Likewise.
6586         * tests/test-open.c (open): Likewise.
6587         * tests/test-openat.c (openat): Likewise.
6588         * tests/test-perror.c (perror): Likewise.
6589         * tests/test-pipe2.c (pipe2): Likewise.
6590         * tests/test-poll.c (poll): Likewise.
6591         * tests/test-popen.c (popen, pclose): Likewise.
6592         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
6593         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
6594         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
6595         (posix_spawn_file_actions_destroy)
6596         (posix_spawn_file_actions_addclose)
6597         (posix_spawn_file_actions_addopen)
6598         (posix_spawn_file_actions_adddup2): Likewise.
6599         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
6600         * tests/test-pread.c (pread): Likewise.
6601         * tests/test-printf-posix.c (printf): Likewise.
6602         * tests/test-pty.c (openpty, forkpty): Likewise.
6603         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
6604         (random_r): Likewise.
6605         * tests/test-rawmemchr.c (rawmemchr): Likewise.
6606         * tests/test-readlink.c (readlink): Likewise.
6607         * tests/test-remove.c (remove): Likewise.
6608         * tests/test-rename.c (rename): Likewise.
6609         * tests/test-renameat.c (renameat): Likewise.
6610         * tests/test-rmdir.c (rmdir): Likewise.
6611         * tests/test-round1.c (round): Likewise.
6612         * tests/test-roundf1.c (roundf): Likewise.
6613         * tests/test-roundl.c (roundl): Likewise.
6614         * tests/test-setenv.c (setenv): Likewise.
6615         * tests/test-sigaction.c (sigaction): Likewise.
6616         * tests/test-sleep.c (sleep): Likewise.
6617         * tests/test-snprintf.c (snprintf): Likewise.
6618         * tests/test-sprintf-posix.c (sprintf): Likewise.
6619         * tests/test-stat.c (stat): Likewise.
6620         * tests/test-stpncpy.c (stpncpy): Likewise.
6621         * tests/test-strcasestr.c (strcasestr): Likewise.
6622         * tests/test-strchrnul.c (strchrnul): Likewise.
6623         * tests/test-strerror.c (strerror): Likewise.
6624         * tests/test-strsignal.c (strsignal): Likewise.
6625         * tests/test-strstr.c (strstr): Likewise.
6626         * tests/test-strtod.c (strtod): Likewise.
6627         * tests/test-strverscmp.c (strverscmp): Likewise.
6628         * tests/test-symlink.c (symlink): Likewise.
6629         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
6630         * tests/test-times.c (times): Likewise.
6631         * tests/test-trunc1.c (trunc): Likewise.
6632         * tests/test-truncf1.c (truncf): Likewise.
6633         * tests/test-truncl.c (truncl): Likewise.
6634         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
6635         Likewise.
6636         * tests/test-uname.c (uname): Likewise.
6637         * tests/test-unlink.c (unlink): Likewise.
6638         * tests/test-unlinkat.c (unlinkat): Likewise.
6639         * tests/test-unsetenv.c (unsetenv): Likewise.
6640         * tests/test-usleep.c (usleep): Likewise.
6641         * tests/test-utimensat.c (utimensat): Likewise.
6642         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
6643         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
6644         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
6645         * tests/test-vprintf-posix.c (vprintf): Likewise.
6646         * tests/test-vsnprintf.c (vsnprintf): Likewise.
6647         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
6648         * tests/test-wcrtomb.c (wcrtomb): Likewise.
6649         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
6650         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
6651         * tests/test-wcwidth.c (wcwidth): Likewise.
6652
6653         build: pull in conditional headers during GNULIB_POSIXCHECK
6654         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
6655         definitions from any conditionally-included headers.
6656         * lib/stdlib.in.h (includes): Likewise.
6657         * lib/unistd.in.h (includes): Likewise.
6658
6659 2009-12-24  Bruno Haible  <bruno@clisp.org>
6660
6661         * tests/test-argv-iter.c: Include header file being tested immediately
6662         after config.h.
6663         * tests/test-base64.c: Likewise.
6664         * tests/test-flock.c: Likewise.
6665         * tests/test-fsync.c: Likewise.
6666         * tests/test-getdate.c: Likewise.
6667         * tests/test-getndelim2.c: Likewise.
6668         * tests/test-isfinite.c: Likewise.
6669         * tests/test-isinf.c: Likewise.
6670         * tests/test-strerror.c: Likewise.
6671         * tests/test-strsignal.c: Likewise.
6672
6673 2009-12-23  Eric Blake  <ebb9@byu.net>
6674
6675         unistd: work around cygwin bug
6676         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
6677         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
6678         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
6679
6680 2009-12-23  Bruno Haible  <bruno@clisp.org>
6681
6682         localename: More tests.
6683         * tests/test-localename.c (SIZEOF): New macro.
6684         (categories): New variable.
6685         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
6686         test_locale_name_default): Add test w.r.t. thread locale.
6687         (test_locale_name_thread): New function.
6688         (main): Invoke it.
6689
6690         localename: Make aware of thread locale.
6691         * lib/localename.h (gl_locale_name_thread): New declaration.
6692         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
6693         behaviour with respect to thread locale.
6694         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
6695         <langinfo.h>, glthread/lock.h.
6696         (SIZE_BITS): New macro.
6697         (string_hash): New function.
6698         (struct hash_node): New type.
6699         (HASH_TABLE_SIZE): New macro.
6700         (struniq_hash_table, struniq_lock): New variables.
6701         (struniq): New function.
6702         (gl_locale_name_thread): New function.
6703         (gl_locale_name): Invoke it.
6704         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
6705         * modules/localename (Depends-on): Add lock.
6706         Reported by Mike Gran <spk121@yahoo.com>.
6707
6708 2009-12-23  Eric Blake  <ebb9@byu.net>
6709
6710         va-args: new module
6711         * modules/va-args: New file.
6712         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
6713         * MODULES.html.sh (Core language properties): Mention it.
6714
6715         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
6716         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
6717         named alias for __attribute__((__unused__)).
6718         * lib/chown.c: Update client.
6719         * lib/fchmodat.c: Likewise.
6720         * lib/fts.c: Likewise.
6721         * lib/getdate.y: Likewise.
6722         * lib/getgroups.c: Likewise.
6723         * lib/getopt.c: Likewise.
6724         * lib/getugroups.c: Likewise.
6725         * lib/mkdir.c: Likewise.
6726         * lib/mkfifo.c: Likewise.
6727         * lib/mkfifoat.c: Likewise.
6728         * lib/mknod.c: Likewise.
6729         * lib/mknodat.c: Likewise.
6730         * lib/readlink.c: Likewise.
6731         * lib/se-context.in.h: Likewise.
6732         * lib/se-selinux.in.h: Likewise.
6733         * lib/sockets.c: Likewise.
6734         * lib/symlink.c: Likewise.
6735         * lib/symlinkat.c: Likewise.
6736         * lib/unicodeio.c: Likewise.
6737         * lib/unistr.h: Likewise.
6738         * tests/test-areadlink.c: Likewise.
6739         * tests/test-areadlinkat.c: Likewise.
6740         * tests/test-filenamecat.c: Likewise.
6741         * tests/test-fseeko.c: Likewise.
6742         * tests/test-ftello.c: Likewise.
6743         * tests/test-getdate.c: Likewise.
6744         * tests/test-getgroups.c: Likewise.
6745         * tests/test-gethostname.c: Likewise.
6746         * tests/test-quotearg.c: Likewise.
6747         * tests/test-version-etc.c: Likewise.
6748         * tests/test-xalloc-die.c: Likewise.
6749         * tests/test-xfprintf-posix.c: Likewise.
6750         * tests/test-xprintf-posix.c: Likewise.
6751         * tests/test-xvasprintf.c: Likewise.
6752
6753         tests: avoid compiler warnings
6754         * tests/test-fcntl.c (main): Delete unused parameters.
6755         * tests/test-freopen-safer.c (main): Likewise.
6756         * tests/test-xalloc-die.c (main): Mark unused parameters.
6757         * tests/test-fseeko.c (main): Likewise.
6758         * tests/test-ftello.c (main): Likewise.
6759         * tests/test-nanosleep.c (main): Avoid declaration warning.
6760         * tests/test-sleep.c (main): Likewise.
6761         * tests/test-unsetenv.c (main): Silence warning about string
6762         literal.
6763         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
6764
6765 2009-12-23  Bruno Haible  <bruno@clisp.org>
6766
6767         * tests/test-localename.c (test_locale_name): New function, extracted
6768         from main. Also test mixed situations.
6769         (test_locale_name_posix, test_locale_name_environ,
6770         test_locale_name_default): New functions.
6771         (main): Invoke them all.
6772         * modules/localename-tests (configure.ac): Test for newlocale.
6773
6774 2009-12-23  Bruno Haible  <bruno@clisp.org>
6775
6776         unistd: Ensure getcwd gets declared before being overridden.
6777         * lib/unistd.in.h: Conditionally include <io.h>.
6778
6779 2009-12-22  Bruno Haible  <bruno@clisp.org>
6780
6781         wchar: Diagnose broken combination of glibc and gcc versions and flags.
6782         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
6783         (gl_WCHAR_H): Invoke it.
6784         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
6785         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
6786         Reported by Karl Berry <karl@freefriends.org>.
6787
6788 2009-12-22  Eric Blake  <ebb9@byu.net>
6789
6790         math, unistd: avoid redundant includes
6791         * lib/math.in.h (isnan): No need to re-include <math.h>.
6792         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
6793
6794         getsubopt: work around cygwin bug
6795         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
6796         avoid conflicting with system getsubopt.
6797         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
6798         bug.
6799
6800         getopt: synchronize from glibc
6801         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
6802         parameter order.  Adjust all callers.
6803         (_getopt_internal_r, main): Adjust quoting in error messages.
6804         Drop considerations for outdated POSIX 1003.2 error message.
6805         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
6806         callers.
6807         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
6808
6809         test-getopt: test stderr behavior
6810         * modules/getopt-posix-tests (Depends-on): Add dup2.
6811         * tests/test-getopt.c (ASSERT): Avoid stderr.
6812         (main): Move stderr to a temporary file.
6813         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
6814         Instead, add parameter to inform caller if output occurred.
6815         (test_getopt): Adjust all existing tests to expect silence, and
6816         add new tests of leading ":".
6817         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
6818         glibc shortcomings with leading "-:" or "+:" in optstring.
6819         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6820         Likewise.
6821         * doc/posix-functions/getopt.texi (getopt): Likewise.
6822
6823         test-getopt: enhance test
6824         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
6825         supports optind=0.
6826         * tests/test-getopt.c (OPTIND_MIN): Move...
6827         * tests/test-getopt.h (OPTIND_MIN): ...here.
6828         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
6829         Require that optind=0 works, since modern BSD supports it in
6830         addition to optreset, and since coreutils expects it.
6831         (test_getopt_long_only): New test.
6832         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
6833         glibc shortcomings with 'W;', and enforcement of optind=0.
6834         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6835         Likewise.
6836
6837 2009-12-21  Bruno Haible  <bruno@clisp.org>
6838
6839         localename: Improvements for MacOS X and Cygwin.
6840         * lib/localename.h (gl_locale_name_environ): New declaration.
6841         * lib/localename.c (gl_locale_name_environ): New function, extracted from
6842         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
6843         (gl_locale_name_posix): Invoke it.
6844         (gl_locale_name_default): Add comments. Use Windows native API also on
6845         Cygwin.
6846
6847 2009-12-21  Bruno Haible  <bruno@clisp.org>
6848
6849         Update list of Win32 locale ids.
6850         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
6851         (LANG_SAMI): Renamed from LANG_SAAMI.
6852         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
6853         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
6854         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
6855         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
6856         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
6857         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
6858         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
6859         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
6860         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
6861         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
6862         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
6863         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
6864         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
6865         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
6866         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
6867         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
6868         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
6869         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
6870         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
6871         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
6872         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
6873         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
6874         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
6875         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
6876         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
6877         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
6878         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
6879         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
6880         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
6881         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
6882         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
6883         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
6884         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
6885         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
6886         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
6887         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
6888         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
6889         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
6890         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
6891         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
6892         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
6893         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
6894         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
6895         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
6896         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
6897         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
6898         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
6899         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
6900         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
6901         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
6902         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
6903         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
6904         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
6905         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
6906         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
6907         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
6908         Add more languages and countries for Sami, Sorbian. Add more countries
6909         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
6910         for Pashto. Change country for Syriac, Tswana.
6911
6912 2009-12-21  Eric Blake  <ebb9@byu.net>
6913
6914         test-utimens: avoid spurious failure
6915         * tests/test-chown.h (nap): Factor...
6916         * tests/nap.h: ...into new file.
6917         * tests/test-lchown.h (nap): Avoid duplication.
6918         * tests/test-utimens-common.h (nap): Use shared implementation,
6919         necessary on file systems with 1-second resolution.
6920         * modules/chown-tests (Files): Include new file.
6921         * modules/fdutimensat-tests (Files): Likewise.
6922         * modules/futimens-tests (Files): Likewise.
6923         * modules/lchown-tests (Files): Likewise.
6924         * modules/openat-tests (Files): Likewise.
6925         * modules/utimens-tests (Files): Likewise.
6926         * modules/utimensat-tests (Files): Likewise.
6927
6928 2009-12-19  Eric Blake  <ebb9@byu.net>
6929
6930         futimens, utimensat: work around Linux bug
6931         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
6932         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
6933         * lib/utimensat.c (rpl_utimensat): Work around it.
6934         * lib/futimens.c (rpl_futimens): Adjust comment.
6935
6936         utimens: work around Linux ctime bug
6937         * lib/utimens.c (detect_ctime_bug): New helper function.
6938         (update_timespec): Differentiate between workaround needed for
6939         this bug vs. what is needed for systems that lack utimensat.
6940         (fdutimens, lutimens): Work around bug.
6941
6942         utimens: check for ctime update
6943         * tests/test-utimens-common.h (check_ctime): Define.
6944         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
6945         * tests/test-futimens.h (test_futimens): Likewise.
6946         * tests/test-lutimens.h (test_lutimens): Likewise.
6947         * doc/posix-functions/futimens.texi (futimens): Document the bug.
6948         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
6949
6950 2009-12-19  Bruno Haible  <bruno@clisp.org>
6951
6952         dprintf-posix: Check against memory leak fixed on 2009-12-15.
6953         * tests/test-dprintf-posix2.sh: New file.
6954         * tests/test-dprintf-posix2.c: New file.
6955         * modules/dprintf-posix-tests (Files): Add them.
6956         (configure.ac): Check for getrlimit and setrlimit.
6957         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
6958
6959 2009-12-19  Bruno Haible  <bruno@clisp.org>
6960
6961         fprintf-posix: Check against memory leak fixed on 2009-12-15.
6962         * tests/test-fprintf-posix3.sh: New file.
6963         * tests/test-fprintf-posix3.c: New file.
6964         * modules/fprintf-posix-tests (Files): Add them.
6965         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
6966
6967 2009-12-19  Eric Blake  <ebb9@byu.net>
6968
6969         dirfd: fix prototype
6970         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
6971         * lib/dirfd.c (dirfd): Likewise.
6972
6973         canonicalize: reduce memory usage
6974         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
6975         allocation to size.
6976         Reported by Solar Designer <solar@openwall.com>.
6977
6978 2009-12-19  Bruno Haible  <bruno@clisp.org>
6979
6980         New module attribute 'Applicability'.
6981         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
6982         * gnulib-tool: New option --extract-applicability.
6983         (func_usage): Document it.
6984         (sed_extract_prog): Recognize it.
6985         (func_get_applicability): New function.
6986         (func_import): Generalize handling of 'link-warning' module.
6987         * modules/link-warning (Applicability): New section.
6988         * modules/arg-nonnull (Applicability): New section.
6989         Repoted by Simon Josefsson <simon@josefsson.org>.
6990
6991 2009-12-19  Bruno Haible  <bruno@clisp.org>
6992
6993         fflush: tweak
6994         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
6995         * lib/fseeko.c (rpl_fseeko): Likewise.
6996
6997 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
6998
6999         * lib/gl_list.h: Fix typo in comment.
7000
7001 2009-12-16  Eric Blake  <ebb9@byu.net>
7002
7003         fcntl: use to simplify other modules
7004         * modules/cloexec (Depends-on): Add fcntl.
7005         * modules/fchdir (Depends-on): Likewise.
7006         * modules/fd-safer-flag (Depends-on): Likewise.
7007         * modules/unistd-safer (Depends-on): Likewise.
7008         * modules/dup3 (configure.ac): Set module indicator.
7009         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
7010         missing.
7011         * lib/fchdir.c (_gl_register_dup): Fix comment.
7012         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
7013         * lib/dup-safer.c (dup_safer): Likewise.
7014         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
7015         * lib/dup3.c (dup3): Likewise.
7016         * tests/test-fchdir.c (main): Enhance test.
7017         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
7018
7019         fcntl: port portions of fcntl to mingw
7020         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
7021         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
7022         replacement for mingw.
7023         * modules/fcntl (Description): Update.
7024         (Depends-on): Add dup2.
7025         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
7026         * modules/fcntl-h (Makefile.am): Substitute it.
7027         * lib/fcntl.in.h (fcntl): Update declaration.
7028         (F_DUPFD, F_GETFD): New macros, when needed.
7029         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
7030         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
7031         * tests/test-fcntl.c (check_flags, main): Enhance test for items
7032         we now guarantee.
7033
7034         fcntl: work around cygwin bug in F_DUPFD
7035         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
7036         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
7037         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
7038         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
7039         * doc/posix-functions/fcntl.texi (fcntl): Document it.
7040
7041         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
7042         * modules/fcntl (Files): List new files.
7043         (configure.ac): Run a test.
7044         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
7045         * lib/fcntl.c (rpl_fcntl): Likewise.
7046         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
7047         (gl_FCNTL_H): Always replace fcntl.h.
7048         * modules/fcntl-h (Makefile.am): Substitute witnesses.
7049         * lib/fcntl.in.h (fcntl): Declare replacement.
7050         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
7051         needed, plus a witness.
7052         * doc/posix-functions/fcntl.texi (fcntl): Document this.
7053         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
7054         * tests/test-fcntl.c: New file.
7055         * modules/fcntl-tests: Likewise.
7056
7057         binary-io: avoid potential compilation warning
7058         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
7059         directives.
7060
7061         fflush: avoid compilation error on NetBSD
7062         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
7063         between off_t and fpos_t, since the latter is sometimes a struct.
7064         * lib/fseeko.c (rpl_fseeko): Likewise.
7065         Reported by Alexander Nasonov <alnsn@yandex.ru>.
7066
7067 2009-12-15  Eric Blake  <ebb9@byu.net>
7068
7069         fcntl-h, stdio, sys_ioctl: fix declarations
7070         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
7071         function must not take arguments.
7072         * lib/sys_ioctl.in.h (ioctl): Likewise.
7073         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
7074         (open): Add a link warning.
7075
7076 2009-12-15  Jim Meyering  <meyering@redhat.com>
7077
7078         areadlink, areadlink-with-size: relax license to LGPLv2+
7079         * modules/areadlink (License): Relax to LGPLv2+.
7080         * modules/areadlink-with-size (License): Likewise.
7081
7082 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
7083             Bruno Haible  <bruno@clisp.org>
7084
7085         *printf: Fix memory leak.
7086         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
7087         * lib/vfprintf.c (vfprintf): Likewise.
7088         * lib/dprintf.c (dprintf): Likewise.
7089         * lib/vdprintf.c (vdprintf): Likewise.
7090
7091 2009-12-14  Eric Blake  <ebb9@byu.net>
7092
7093         accept4: adjust module dependencies
7094         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
7095
7096         utimens: one more try at avoiding compiler warning
7097         * lib/utimens.c (lutimens): Lower scope of result.
7098
7099 2009-12-13  Bruno Haible  <bruno@clisp.org>
7100
7101         Move the malloc checking from module 'list' to new module 'xlist'.
7102         * modules/xlist: New file.
7103         * lib/gl_xlist.h: New file.
7104         * lib/gl_xlist.c: New file.
7105         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
7106         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
7107         gl_list_add_last, gl_list_add_before, gl_list_add_after,
7108         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
7109         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
7110         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
7111         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
7112         gl_sortedlist_nx_add): New declarations.
7113         (struct gl_list_implementation): Rename and change methods accordingly.
7114         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
7115         (gl_list_nx_create): Renamed from gl_list_create.
7116         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
7117         (gl_list_nx_set_at): Renamed from gl_list_set_at.
7118         (gl_list_nx_add_first): Renamed from gl_list_add_first.
7119         (gl_list_nx_add_last): Renamed from gl_list_add_last.
7120         (gl_list_nx_add_before): Renamed from gl_list_add_before.
7121         (gl_list_nx_add_after): Renamed from gl_list_add_after.
7122         (gl_list_nx_add_at): Renamed from gl_list_add_at.
7123         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
7124         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
7125         gl_list_create_empty.
7126         (gl_list_nx_create): Renamed from gl_list_create.
7127         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
7128         (gl_list_nx_set_at): Renamed from gl_list_set_at.
7129         (gl_list_nx_add_first): Renamed from gl_list_add_first.
7130         (gl_list_nx_add_last): Renamed from gl_list_add_last.
7131         (gl_list_nx_add_before): Renamed from gl_list_add_before.
7132         (gl_list_nx_add_after): Renamed from gl_list_add_after.
7133         (gl_list_nx_add_at): Renamed from gl_list_add_at.
7134         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
7135         * lib/gl_array_list.c: Don't include xalloc.h.
7136         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
7137         NULL upon out-of-memory.
7138         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
7139         out-of-memory.
7140         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
7141         Change return type to 'int'.
7142         (gl_array_nx_set_at): Renamed from gl_array_set_at.
7143         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
7144         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
7145         upon out-of-memory.
7146         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
7147         upon out-of-memory.
7148         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
7149         upon out-of-memory.
7150         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
7151         upon out-of-memory.
7152         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
7153         out-of-memory.
7154         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
7155         Update.
7156         (gl_array_list_implementation): Update.
7157         * lib/gl_carray_list.c: Don't include xalloc.h.
7158         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
7159         Return NULL upon out-of-memory.
7160         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
7161         out-of-memory.
7162         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
7163         Change return type to 'int'.
7164         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
7165         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
7166         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
7167         upon out-of-memory.
7168         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
7169         upon out-of-memory.
7170         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
7171         out-of-memory.
7172         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
7173         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
7174         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
7175         Update.
7176         (gl_carray_list_implementation): Update.
7177         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
7178         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
7179         gl_linked_create_empty. Return NULL upon out-of-memory.
7180         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
7181         out-of-memory.
7182         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
7183         Change return type to 'int'. Return -1 upon out-of-memory.
7184         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
7185         out-of-memory.
7186         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
7187         upon out-of-memory.
7188         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
7189         upon out-of-memory.
7190         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
7191         NULL upon out-of-memory.
7192         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
7193         upon out-of-memory.
7194         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
7195         out-of-memory.
7196         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
7197         Update.
7198         * lib/gl_linked_list.c: Don't include xalloc.h.
7199         (gl_linked_list_implementation): Update.
7200         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
7201         (add_to_bucket): Change return type to 'int'.
7202         (gl_linkedhash_list_implementation): Update.
7203         * lib/gl_anytree_list1.h (free_subtree): New function.
7204         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
7205         gl_tree_create_empty. Return NULL upon out-of-memory.
7206         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
7207         Change return type to 'int'. Return -1 upon out-of-memory.
7208         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
7209         out-of-memory.
7210         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
7211         (gl_tree_remove_node): New function, moved here from
7212         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
7213         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
7214         Update.
7215         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
7216         malloc, not xmalloc. Return NULL upon out-of-memory.
7217         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
7218         out-of-memory.
7219         (gl_tree_remove_node_from_tree): New function, extracted from
7220         gl_tree_remove_node.
7221         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
7222         upon out-of-memory.
7223         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
7224         out-of-memory.
7225         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
7226         upon out-of-memory.
7227         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
7228         upon out-of-memory.
7229         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
7230         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
7231         not xmalloc. Return NULL upon out-of-memory.
7232         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
7233         out-of-memory.
7234         (gl_tree_remove_node_from_tree): New function, extracted from
7235         gl_tree_remove_node.
7236         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
7237         upon out-of-memory.
7238         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
7239         out-of-memory.
7240         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
7241         upon out-of-memory.
7242         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
7243         upon out-of-memory.
7244         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
7245         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
7246         gl_anytree_list1.h before gl_anyavltree_list2.h.
7247         (gl_avltree_list_implementation): Update.
7248         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
7249         gl_anytree_list1.h before gl_anyavltree_list2.h.
7250         (gl_rbtree_list_implementation): Update.
7251         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
7252         Change return type to 'int'. Return -1 upon out-of-memory. Use
7253         __builtin_expect.
7254         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
7255         (gl_avltreehash_list_implementation): Update.
7256         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
7257         (gl_rbtreehash_list_implementation): Update.
7258         * modules/array-list (Depends-on): Remove xalloc.
7259         * modules/carray-list (Depends-on): Likewise.
7260         * modules/linked-list (Depends-on): Likewise.
7261         * modules/linkedhash-list (Depends-on): Likewise.
7262         * modules/avltree-list (Depends-on): Likewise.
7263         * modules/rbtree-list (Depends-on): Likewise.
7264         * modules/avltreehash-list (Depends-on): Likewise.
7265         * modules/rbtreehash-list (Depends-on): Likewise.
7266
7267         * modules/xsublist: New file.
7268         * lib/gl_xsublist.h: New file.
7269         * lib/gl_xsublist.c: New file.
7270         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
7271         (gl_sublist_nx_create): New declaration.
7272         * lib/gl_sublist.c: Don't include xalloc.h.
7273         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
7274         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
7275         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
7276         Change return type to 'int'. Return -1 upon out-of-memory.
7277         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
7278         upon out-of-memory.
7279         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
7280         NULL upon out-of-memory.
7281         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
7282         upon out-of-memory.
7283         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
7284         NULL upon out-of-memory.
7285         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
7286         NULL upon out-of-memory.
7287         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
7288         upon out-of-memory.
7289         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
7290         (gl_sublist_list_implementation): Update.
7291         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
7292         upon out-of-memory.
7293         * modules/sublist (Depends-on): Remove xalloc.
7294
7295         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
7296         * tests/test-carray_list.c: Likewise.
7297         * tests/test-linked_list.c: Likewise.
7298         * tests/test-linkedhash_list.c: Likewise.
7299         * tests/test-avltree_list.c: Likewise.
7300         * tests/test-rbtree_list.c: Likewise.
7301         * tests/test-avltreehash_list.c: Likewise.
7302         * tests/test-rbtreehash_list.c: Likewise.
7303         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
7304         * modules/carray-list-tests (Makefile.am): Likewise.
7305         * modules/linked-list-tests (Makefile.am): Likewise.
7306         * modules/linkedhash-list-tests (Makefile.am): Likewise.
7307         * modules/avltree-list-tests (Makefile.am): Likewise.
7308         * modules/rbtree-list-tests (Makefile.am): Likewise.
7309         * modules/avltreehash-list-tests (Makefile.am): Likewise.
7310         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
7311
7312         * NEWS: Mention the changes.
7313
7314         * lib/clean-temp.c: Include gl_xlist.h.
7315         * modules/clean-temp (Depends-on): Add xlist.
7316
7317         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
7318         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
7319
7320         * tests/test-array_oset.c: Include gl_xlist.h.
7321         * modules/array-oset-tests (Depends-on): Add xlist.
7322
7323         Reported by José E. Marchesi <jemarch@gnu.org>.
7324
7325 2009-12-13  Bruno Haible  <bruno@clisp.org>
7326
7327         Move the malloc checking from module 'oset' to new module 'xoset'.
7328         * modules/xoset: New file.
7329         * lib/gl_xoset.h: New file.
7330         * lib/gl_xoset.c: New file.
7331         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
7332         declarations.
7333         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
7334         (struct gl_oset_implementation): Rename and change methods accordingly.
7335         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
7336         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
7337         'int'. Mark as __warn_unused_result__.
7338         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
7339         gl_oset_create_empty.
7340         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
7341         'int'.
7342         * lib/gl_array_oset.c: Don't include xalloc.h.
7343         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
7344         malloc, not xmalloc.
7345         (grow): Change return type to 'int'. Don't call xalloc_die.
7346         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
7347         to 'int'.
7348         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
7349         'int'.
7350         (gl_array_oset_implementation): Update.
7351         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
7352         gl_tree_create_empty.
7353         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
7354         'int'.
7355         * lib/gl_avltree_oset.c: Don't include xalloc.h.
7356         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
7357         xmalloc.
7358         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
7359         not xmalloc.
7360         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
7361         xmalloc.
7362         (gl_avltree_oset_implementation): Update.
7363         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
7364         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
7365         xmalloc.
7366         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
7367         not xmalloc.
7368         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
7369         xmalloc.
7370         (gl_rbtree_oset_implementation): Update.
7371         * modules/array-oset (Depends-on): Remove xalloc.
7372         * modules/avltree-oset (Depends-on): Likewise.
7373         * modules/rbtree-oset (Depends-on): Likewise.
7374         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
7375         * tests/test-avltree_oset.c: Likewise.
7376         * tests/test-rbtree_oset.c: Likewise.
7377         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
7378         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
7379         * modules/rbtree-oset-tests (Makefile.am): Likewise.
7380         * NEWS: Mention the change.
7381
7382 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
7383
7384         maint.mk: allow a project to override release-prep commands
7385         * top/maint.mk (alpha, beta, stable): Move release-preparatory
7386         commands into a new rule.
7387         (release-prep): New rule.
7388         (release-prep-hook): New overridable variable.
7389
7390 2009-12-13  Bruno Haible  <bruno@clisp.org>
7391
7392         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
7393
7394 2009-12-13  Jim Meyering  <meyering@redhat.com>
7395
7396         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
7397         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
7398
7399 2009-12-12  Bruno Haible  <bruno@clisp.org>
7400
7401         duplocale: Tweak.
7402         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
7403
7404 2009-12-12  Karl Berry  <karl@gnu.org>
7405
7406         * config/srclist.txt (strtoll.c): tab changes, no more sync.
7407
7408 2009-12-12  Bruno Haible  <bruno@clisp.org>
7409
7410         * m4/po.m4: Undo incorrect untabification.
7411
7412 2009-12-12  Bruno Haible  <bruno@clisp.org>
7413
7414         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
7415         * modules/c-strtod (Depends-on): Add locale.
7416         * modules/c-strtold (Depends-on): Likewise.
7417
7418 2009-12-12  Bruno Haible  <bruno@clisp.org>
7419
7420         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
7421
7422 2009-12-11  Eric Blake  <ebb9@byu.net>
7423
7424         setenv: relax requirement in light of POSIX ruling
7425         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
7426         not NULL.
7427         * tests/test-setenv.c (main): Relax test.
7428         * tests/test-unsetenv.c (main): Likewise.
7429         * doc/posix-functions/setenv.texi (setenv): Document this.
7430         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
7431
7432 2009-12-11  Bruno Haible  <bruno@clisp.org>
7433
7434         New module 'fd-safer-flag'.
7435         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
7436         * lib/dup-safer.c (dup_safer_flag): Remove function.
7437         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
7438         * lib/fd-safer.c (fd_safer_flag): Remove function.
7439         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
7440         * modules/cloexec (configure.ac): Drop indicator macro.
7441         * modules/fd-safer-flag: New file.
7442         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
7443         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
7444         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
7445
7446 2009-12-11  Bruno Haible  <bruno@clisp.org>
7447
7448         Tests for module 'nl_langinfo'.
7449         * modules/nl_langinfo-tests: New file.
7450         * tests/test-nl_langinfo.sh: New file.
7451         * tests/test-nl_langinfo.c: New file.
7452
7453         New module 'nl_langinfo'.
7454         * lib/nl_langinfo.c: New file.
7455         * m4/nl_langinfo.m4: New file.
7456         * modules/nl_langinfo: New file.
7457         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
7458
7459 2009-12-11  Bruno Haible  <bruno@clisp.org>
7460
7461         Tests for module 'langinfo'.
7462         * modules/langinfo-tests: New file.
7463         * tests/test-langinfo.c: New file.
7464
7465         New module 'langinfo'.
7466         * lib/langinfo.in.h: New file.
7467         * m4/langinfo_h.m4: New file.
7468         * modules/langinfo: New file.
7469         * doc/posix-headers/langinfo.texi: Mention the new module.
7470
7471 2009-12-11  Bruno Haible  <bruno@clisp.org>
7472
7473         * lib/config.charset: Untabify.
7474
7475 2009-12-11  Bruno Haible  <bruno@clisp.org>
7476
7477         * modules/unistd-safer (configure.ac): Drop indicator macro.
7478
7479 2009-12-11  Bruno Haible  <bruno@clisp.org>
7480
7481         Move pipe2-safer code to its own file.
7482         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
7483         * lib/pipe-safer.c (pipe2_safer): Remove function.
7484         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
7485         (Makefile.am): Add it to lib_SOURCES.
7486
7487 2009-12-10  Bruno Haible  <bruno@clisp.org>
7488
7489         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
7490
7491 2009-12-10  Bruno Haible  <bruno@clisp.org>
7492
7493         Declare which arguments expect non-NULL values, for GCC and clang.
7494         * build-aux/arg-nonnull.h: New file.
7495         * modules/arg-nonnull: New file.
7496         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
7497         (inet_ntop, inet_pton): Use it.
7498         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
7499         (closedir, dirfd, opendir, scandir, alphasort): Use it.
7500         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
7501         (open, openat): Use it.
7502         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
7503         (fnmatch): Use it.
7504         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
7505         (getopt, getopt_long, getopt_long_only): Use it.
7506         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
7507         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
7508         Use it.
7509         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
7510         (iconv_open): Use it.
7511         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
7512         (strtoimax, strtoumax): Use it.
7513         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
7514         (duplocale): Use it.
7515         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
7516         (frexp, frexpl): Use it.
7517         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
7518         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
7519         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
7520         (tsearch, tfind, tdelete, twalk): Use it.
7521         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
7522         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
7523         sigpending): Use it.
7524         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
7525         (posix_spawn, posix_spawnp, posix_spawnattr_init,
7526         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
7527         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
7528         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
7529         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
7530         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
7531         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
7532         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
7533         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
7534         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
7535         Use it.
7536         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
7537         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
7538         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
7539         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
7540         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
7541         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
7542         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
7543         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
7544         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
7545         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
7546         strtoull, unsetenv): Use it.
7547         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
7548         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
7549         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
7550         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
7551         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
7552         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
7553         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
7554         (strcasecmp, strncasecmp): Use it.
7555         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
7556         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
7557         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
7558         rpl_setsockopt): Use it.
7559         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
7560         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
7561         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
7562         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
7563         (gettimeofday): Use it.
7564         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
7565         (times): Use it.
7566         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
7567         (uname): Use it.
7568         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
7569         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
7570         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
7571         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
7572         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
7573         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
7574         unlinkat, write): Use it.
7575         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
7576         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
7577         * lib/argv-iter.h: Include arg-nonnull.h.
7578         (_ATTRIBUTE_NONNULL_): Remove macro.
7579         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
7580         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
7581         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
7582         optimization.
7583         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
7584         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
7585         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
7586         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
7587         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
7588         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
7589         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
7590         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
7591         * modules/arpa_inet (Depends-on): Add arg-nonnull.
7592         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
7593         * modules/dirent (Depends-on): Add arg-nonnull.
7594         (Makefile.am): Insert arg-nonnull.h into dirent.h.
7595         * modules/fcntl-h (Depends-on): Add arg-nonnull.
7596         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
7597         * modules/fnmatch (Depends-on): Add arg-nonnull.
7598         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
7599         * modules/getopt-posix (Depends-on): Add arg-nonnull.
7600         (Makefile.am): Insert arg-nonnull.h into getopt.h.
7601         * modules/glob (Depends-on): Add arg-nonnull.
7602         (Makefile.am): Insert arg-nonnull.h into glob.h.
7603         * modules/iconv_open (Depends-on): Add arg-nonnull.
7604         (Makefile.am): Insert arg-nonnull.h into iconv.h.
7605         * modules/inttypes (Depends-on): Add arg-nonnull.
7606         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
7607         * modules/locale (Depends-on): Add arg-nonnull.
7608         (Makefile.am): Insert arg-nonnull.h into locale.h.
7609         * modules/math (Depends-on): Add arg-nonnull.
7610         (Makefile.am): Insert arg-nonnull.h into math.h.
7611         * modules/netdb (Depends-on): Add arg-nonnull.
7612         (Makefile.am): Insert arg-nonnull.h into netdb.h.
7613         * modules/search (Depends-on): Add arg-nonnull.
7614         (Makefile.am): Insert arg-nonnull.h into search.h.
7615         * modules/signal (Depends-on): Add arg-nonnull.
7616         (Makefile.am): Insert arg-nonnull.h into signal.h.
7617         * modules/spawn (Depends-on): Add arg-nonnull.
7618         (Makefile.am): Insert arg-nonnull.h into spawn.h.
7619         * modules/stdio (Depends-on): Add arg-nonnull.
7620         (Makefile.am): Insert arg-nonnull.h into stdio.h.
7621         * modules/stdlib (Depends-on): Add arg-nonnull.
7622         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
7623         * modules/string (Depends-on): Add arg-nonnull.
7624         (Makefile.am): Insert arg-nonnull.h into string.h.
7625         * modules/strings (Depends-on): Add arg-nonnull.
7626         (Makefile.am): Insert arg-nonnull.h into strings.h.
7627         * modules/sys_socket (Depends-on): Add arg-nonnull.
7628         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
7629         * modules/sys_stat (Depends-on): Add arg-nonnull.
7630         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
7631         * modules/sys_time (Depends-on): Add arg-nonnull.
7632         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
7633         * modules/sys_times (Depends-on): Add arg-nonnull.
7634         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
7635         * modules/sys_utsname (Depends-on): Add arg-nonnull.
7636         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
7637         * modules/time (Depends-on): Add arg-nonnull.
7638         (Makefile.am): Insert arg-nonnull.h into time.h.
7639         * modules/unistd (Depends-on): Add arg-nonnull.
7640         (Makefile.am): Insert arg-nonnull.h into unistd.h.
7641         * modules/wchar (Depends-on): Add arg-nonnull.
7642         (Makefile.am): Insert arg-nonnull.h into wchar.h.
7643         * modules/argv-iter (Depends-on): Add arg-nonnull.
7644         * tests/test-canonicalize.c (null_ptr): New function.
7645         (main): Use it.
7646         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
7647         (main): Use it.
7648         * tests/test-memmem.c (null_ptr): New function.
7649         (main): Use it.
7650         Reported by Jim Meyering.
7651
7652 2009-12-10  Bruno Haible  <bruno@clisp.org>
7653
7654         Use spaces for indentation, not tabs.
7655         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
7656         * m4/*.m4: Untabify.
7657         * build-aux/*.h: Untabify.
7658         * tests/**/*.[hc]: Untabify.
7659         * README: New section "Indent with spaces, not TABs", based on
7660         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
7661         * NEWS: Mention the change.
7662
7663 2009-12-10  Bruno Haible  <bruno@clisp.org>
7664
7665         pty test: Fix link error.
7666         * modules/pty-tests (Makefile.am): Add the default LDADD value to
7667         test_pty_LDADD.
7668
7669 2009-12-07  Simon Josefsson  <simon@josefsson.org>
7670
7671         * modules/pty: New file.
7672         * modules/pty-tests: New file.
7673         * m4/pty.m4: New file.
7674         * tests/test-pty.c: New file.
7675         * doc/glibc-headers/pty.texi: Modified.
7676         * doc/glibc-functions/forkpty.texi: Modified.
7677         * doc/glibc-functions/openpty.texi: Modified.
7678
7679 2009-12-10  Bruno Haible  <bruno@clisp.org>
7680
7681         Avoid syntax error in C++ mode.
7682         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
7683
7684 2009-12-10  Bruno Haible  <bruno@clisp.org>
7685
7686         Use sed with option -e.
7687         * gnulib-tool (func_version, func_emit_copyright_notice,
7688         func_emit_initmacro_end, func_import, func_create_testdir): Pass
7689         option -e to sed.
7690         * modules/link-warning (Makefile.am): Likewise.
7691
7692 2009-12-10  Jim Meyering  <meyering@redhat.com>
7693
7694         mgetgroups: do not write bytes beyond end of malloc'd buffer
7695         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
7696         username, we call getgroups with a one-element-shorter buffer,
7697         but still told it the length was original, max_n_groups.
7698
7699 2009-12-09  Eric Blake  <ebb9@byu.net>
7700
7701         cloexec: relax license
7702         * modules/cloexec (Maintainer): Add myself.
7703         (License): Use LGPL, not GPL.
7704
7705         link-warning: optimize generation
7706         * modules/link-warning (Makefile.am): Reduce process usage.
7707
7708 2009-12-09  Bruno Haible  <bruno@clisp.org>
7709
7710         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
7711         workaround was added on 2009-11-17.
7712
7713 2009-12-09  Jim Meyering  <meyering@redhat.com>
7714             Bruno Haible  <bruno@clisp.org>
7715
7716         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
7717         * modules/link-warning (Makefile.am): Make the comment-removing sed
7718         command more robust in the face of bootstrap-prepended comment lines.
7719
7720 2009-12-09  Bruno Haible  <bruno@clisp.org>
7721
7722         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
7723         most one group.
7724
7725 2009-12-09  Simon Josefsson <simon@josefsson.org>
7726             Bruno Haible  <bruno@clisp.org>
7727
7728         * build-aux/link-warning.h: Add copyright notice.
7729         * modules/link-warning (Makefile.am): Generate link-warning.h from
7730         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
7731         * NEWS: Mention change in link-warning module.
7732         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
7733         * modules/dirent (Makefile.am): Add dependency to dirent.h.
7734         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
7735         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
7736         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
7737         * modules/math (Makefile.am): Add dependency to math.h.
7738         * modules/search (Makefile.am): Add dependency to search.h.
7739         * modules/signal (Makefile.am): Add dependency to signal.h.
7740         * modules/spawn (Makefile.am): Add dependency to spawn.h.
7741         * modules/stdio (Makefile.am): Add dependency to stdio.h.
7742         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
7743         * modules/string (Makefile.am): Add dependency to string.h.
7744         * modules/strings (Makefile.am): Add dependency to strings.h.
7745         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
7746         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
7747         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
7748         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
7749         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
7750         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
7751         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
7752         * modules/unistd (Makefile.am): Add dependency to unistd.h.
7753         * modules/wchar (Makefile.am): Add dependency to wchar.h.
7754
7755 2009-12-09  Bruno Haible  <bruno@clisp.org>
7756
7757         fchdir: Optimize away rpl_fstat when possible.
7758         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
7759         REPLACE_OPEN_DIRECTORY.
7760         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
7761
7762 2009-12-09  Bruno Haible  <bruno@clisp.org>
7763
7764         * lib/fchdir.c: Update comment.
7765
7766 2009-12-09  Bruno Haible  <bruno@clisp.org>
7767
7768         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
7769
7770 2009-12-08  Eric Blake  <ebb9@byu.net>
7771
7772         fchdir: avoid memory leak on re-registration.
7773         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
7774
7775 2009-12-08  Jim Meyering  <meyering@redhat.com>
7776
7777         init.sh: avoid Solaris 10 /bin/sh portability problem
7778         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
7779         sourced script:
7780           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
7781           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
7782           bar
7783         tests/init.sh relied on that, accepting a --set-path=DIR argument,
7784         and two tests used that idiom.
7785         * tests/init.sh: Update suggested usage comments.
7786         (path_prepend_): New function, to be used in place
7787         of the --src-path=DIR option.
7788         (setup_): Move PATH-prepending code into path_prepend_.
7789         * tests/test-pread.sh: Adapt to new usage.
7790         * tests/test-xalloc-die.sh: Likewise.
7791
7792 2009-12-08  Simon Josefsson  <simon@josefsson.org>
7793
7794         * doc/gnulib.texi (Glibc pty.h): Add.
7795         * doc/glibc-functions/forkpty.texi: Add.
7796         * doc/glibc-functions/openpty.texi: Add.
7797         Suggested by Bruno Haible.
7798
7799 2009-12-08  Eric Blake  <ebb9@byu.net>
7800
7801         fchdir: fix logic bugs
7802         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
7803         * tests/test-fchdir.c (main): Enhance test.
7804         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
7805         is in use.
7806
7807         dup2: fix logic bugs
7808         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
7809         REPLACE_DUP2 to decide when rpl_dup2 is needed.
7810         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
7811         exists.
7812         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
7813
7814 2009-12-07  Eric Blake  <ebb9@byu.net>
7815
7816         unlink: fix m4 detection
7817         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
7818
7819         unistd-safer: add unit test
7820         * modules/unistd-safer-tests: New file.
7821         * tests/test-dup-safer.c: Likewise.
7822         * tests/test-cloexec.c (setmode): Avoid compiler warning.
7823         * tests/test-dup2.c (setmode): Likewise.
7824         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
7825
7826         cloexec: preserve text vs. binary across dup_cloexec
7827         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
7828         mode.
7829         * modules/dup2-tests (Depends-on): Add binary-io.
7830         * modules/cloexec-tests (Depends-on): Likewise.
7831         * tests/test-dup2.c (setmode, is_mode): New helpers.
7832         (main): Add tests that translation mode is preserved.
7833         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
7834         Reported by Bruno Haible.
7835
7836         mgetgroups: reduce duplicate listings
7837         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
7838         resulting array.
7839         * tests/test-chown.h (test_chown): Simplify client.
7840         * tests/test-lchown.h (test_lchown): Likewise.
7841
7842 2009-12-06  Bruno Haible  <bruno@clisp.org>
7843
7844         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
7845         value.
7846
7847 2009-12-06  Bruno Haible  <bruno@clisp.org>
7848
7849         * lib/progname.c: Include stdio.h, stdlib.h.
7850         (set_program_name): Reject a NULL argument.
7851
7852 2009-12-05  Eric Blake  <ebb9@byu.net>
7853
7854         pipe2-safer: new module
7855         * modules/pipe2-safer: New file.
7856         * lib/unistd-safer.h (pipe2_safer): New prototype.
7857         * lib/unistd--.h (pipe2): New wrapper.
7858         * lib/pipe-safer.c (pipe2_safer): New function.
7859         * modules/pipe (Depends-on): Add pipe2-safer.
7860         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
7861
7862         stdlib-safer: preserve cloexec flag for mkostemp[s]
7863         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
7864         fd_safer_flag.
7865
7866         unistd-safer: allow preservation of cloexec status via flag
7867         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
7868         prototypes.
7869         * lib/dup-safer.c (dup_safer_flag): New function.
7870         * lib/fd-safer.c (fd_safer_flag): Likewise.
7871         * modules/cloexec (configure.ac): Set witness.
7872
7873         test-dup2: enhance test
7874         * modules/dup2-tests (Depends-on): Add cloexec.
7875         * tests/test-dup2.c (main): Enhance test.
7876
7877         cloexec: add dup_cloexec
7878         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
7879         header and comments.
7880         * lib/cloexec.c (set_cloexec_flag): Add comments.
7881         (dup_cloexec): New function, with mingw implementation borrowed
7882         from...
7883         * lib/w32spawn.h (dup_noinherit): ...here.
7884         * modules/execute (Depends-on): Add cloexec.
7885         * modules/pipe (Depends-on): Likewise.
7886         * modules/cloexec (Depends-on): Add dup2.
7887         * modules/cloexec-tests (Files): New file.
7888         * tests/test-cloexec.c: Likewise.
7889
7890         test-xalloc-die: fix test for mingw
7891         * modules/xalloc-die-tests (Files): Add tests/init.sh.
7892         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
7893         directory and .exe suffix off argv[0] output.
7894
7895         test-fseeko: fix test for mingw
7896         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
7897         than undefining fseek, so test will pass on mingw.
7898
7899 2009-12-05  Bruno Haible  <bruno@clisp.org>
7900
7901         * lib/progname.h (set_program_name): Clarify specification.
7902         * lib/progname.c (set_program_name): Likewise.
7903         Reported by Jim Meyering.
7904
7905 2009-12-05  Jim Meyering  <meyering@redhat.com>
7906
7907         maint.mk: backslash-escape parens in default regexp
7908         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
7909         backslash-escape the literal parentheses.
7910
7911         maint.mk: news-date-check: use grep -E
7912         * top/maint.mk (today): Define a Make variable, not a...
7913         (news-date-check): ...shell variable.
7914         (news-date-regexp): Use the Make variable.
7915         Use grep's -E option.  Change the failing diagnostic to mention
7916         the variable, $(news-date-regexp).
7917
7918 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
7919
7920         maintainer-makefile: allow customization of NEWS entry format
7921         * top/maint.mk (news-date-regexp): New overridable variable.
7922         (news-date-check): Use it.
7923
7924 2009-12-04  Eric Blake  <ebb9@byu.net>
7925
7926         mgetgroups: add xgetgroups, and avoid ENOSYS failures
7927         * lib/mgetgroups.h (xgetgroups): New prototype.
7928         * lib/mgetgroups.c (xgetgroups): New wrapper.
7929         (mgetgroups): Handle ENOSYS.
7930         * modules/mgetgroups (Depends-on): Add realloc.
7931         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
7932
7933         mgetgroups: avoid argument promotion issues with -1
7934         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
7935         for invalid gid_t.
7936         * tests/test-chown.h (getegid, test_chown): Likewise.
7937         * tests/test-lchown.h (getegid, test_lchown): Likewise.
7938
7939 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
7940
7941         exclude: Fix header file problems.
7942         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
7943
7944 2009-12-01  Jim Meyering  <meyering@redhat.com>
7945
7946         fts: fts_open: do not let an empty string cause immediate failure
7947         This is required in support of GNU rm, for which the command
7948         "rm A '' B" must process and remove both A and B, in spite of
7949         the empty string argument.
7950         * lib/fts.c (fts_open): Do not let the presence of an empty string
7951         cause fts_open to fail immediately.  Most fts-using tools must be
7952         able to process all arguments, in order, and can be expected to
7953         diagnose such arguments themselves.
7954
7955 2009-11-30  Eric Blake  <ebb9@byu.net>
7956
7957         utimens: fix compilation error
7958         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
7959         Declare variable at right scope.
7960
7961 2009-11-29  Jim Meyering  <meyering@redhat.com>
7962
7963         bootstrap: handle perl-5.11's changed --version output
7964         * build-aux/bootstrap (get_version): Handle perl separately,
7965         since perl-5.11's --version output is different.
7966
7967 2009-11-28  Jim Meyering  <meyering@redhat.com>
7968
7969         userspec: depend on the inttostr module, too
7970         * modules/userspec (Depends-on): Add inttostr.
7971
7972         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
7973         * lib/userspec.c (parse_with_separator): Do not accept a user ID
7974         number of MAXUID when it evaluates to (uid_t) -1.
7975         Likewise for group ID.  Reported by Matt McCutchen in
7976         <http://savannah.gnu.org/bugs/?28113>
7977
7978         userspec: reformat to use spaces, not TABs
7979         * lib/userspec.c: Expand TABs to spaces.
7980         Add Emacs' "indent-tabs-mode: nil" hint.
7981
7982 2009-11-27  Eric Blake  <ebb9@byu.net>
7983
7984         getopt-gnu: flush out another BSD bug
7985         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
7986         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
7987         flush out BSD bug.
7988         * tests/test-getopt.h (test_getopt): End lists with NULL.
7989         * tests/test-getopt_long.h (test_getopt_long): Likewise.
7990         (test_getopt_long_posix): Enhance test.
7991         * modules/getopt-posix-tests (Depends-on): Add stdbool.
7992         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
7993         getopt-gnu.
7994         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7995         Likewise.
7996
7997 2009-11-27  Simon Josefsson  <simon@josefsson.org>
7998
7999         * modules/idpriv-droptemp-tests (Notice): Fix text.
8000
8001 2009-11-27  Jim Meyering  <meyering@redhat.com>
8002
8003         test-xalloc-die: avoid spurious failure due to libtool argv difference
8004         In a libtool-enabled project, this test would fail due to a difference
8005         in the emitted program name, e.g.,
8006         -test-xalloc-die: memory exhausted
8007         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
8008         Use program to avoid that.
8009         * modules/xalloc-die-tests (Depends-on): Add progname.
8010         * tests/test-xalloc-die.c: Include progname.h".
8011         (program_name): Remove decl.
8012         (main): Call set_program_name.
8013         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
8014
8015 2009-11-26  Richard Jones  <rjones@redhat.com>
8016
8017         w32sock: leave win32 error in place.
8018         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
8019
8020 2009-11-26  Eric Blake  <ebb9@byu.net>
8021
8022         init.sh: suggest to use skip_ and fail_ functions in comments
8023         * tests/init.sh: Add a sentence.
8024
8025 2009-11-25  Bruno Haible  <bruno@clisp.org>
8026
8027         init.sh: add documentation in comments
8028         * tests/init.sh: Add some developer and user documentation.
8029
8030 2009-11-26  Jim Meyering  <meyering@redhat.com>
8031
8032         init.sh: accommodate even those who specify bogus srcdir manually
8033         * tests/init.sh: Normally, srcdir is guaranteed by automake and
8034         configure-time tests to be sanitized, so that there is no need to
8035         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
8036         (with no double quotes) suffices.  However, since tests may be
8037         invoked manually, and since you may explicitly set srcdir to the
8038         name of a directory containing spaces, do quote its uses here.
8039         * tests/test-pread.sh: Likewise.
8040         Suggested by Bruno Haible.
8041
8042         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
8043         * tests/test-pread.sh: Write no data into the pipe, because
8044         test-pread actually reads none.  This avoids a diagnostic,
8045         "bash: echo: write error: Broken pipe", that arises in the unusual
8046         event something is ignoring SIGPIPE, and might be interpreted
8047         as some sort of failure.  Reported by Bruno Haible.
8048
8049 2009-11-25  Jim Meyering  <meyering@redhat.com>
8050
8051         test-pread: cover failure with ESPIPE and EINVAL
8052         * tests/test-pread.c (main): Test for failure, too.
8053         * tests/test-pread.sh: Invoke with stdin on a pipe.
8054         Suggested by Eric Blake.
8055
8056         pread: improvement and fix
8057         * modules/pread (Depends-on): Depend on lseek, for portability to
8058         e.g., mingw.  Suggested by Eric Blake.
8059         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
8060
8061         unistd.in.h: correct declaration of pread
8062         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
8063         Reported by Richard W.M. Jones.
8064
8065         test-pread.sh: distribute the test script
8066         * modules/pread-tests (Files): Include test-pread.sh.
8067
8068         test-pread.sh: clean up
8069         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
8070         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
8071         That is unnecessary, since it's always ".".
8072         Suggestion from Eric Blake.
8073
8074         test-pread.sh: make executable
8075         * tests/test-pread.sh: Set executable bit.
8076         Reported by Eric Blake.
8077
8078         correct typo in test-pread.sh
8079         * tests/test-pread.sh: Add #! line.
8080
8081         test pread
8082         * tests/test-pread.c: New file.
8083         * tests/test-pread.sh: Likewise.
8084         * modules/pread-tests: Likewise.
8085
8086         pread: new module
8087         * modules/pread: New file.
8088         * lib/unistd.in.h (pread): Define/declare.
8089         * lib/pread.c (pread): New file.
8090         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
8091         * modules/unistd (Makefile.am): Substitute witnesses.
8092         * doc/posix-functions/pread.texi (pread): Update.
8093         * MODULES.html.sh: Add pread.
8094
8095 2009-11-25  Jim Meyering  <meyering@redhat.com>
8096
8097         tests/init.sh: new file to be used via most *.sh tests
8098         * tests/init.sh: New file.
8099
8100 2009-11-25  Eric Blake  <ebb9@byu.net>
8101
8102         utimens: work around older Linux failure with symlinks
8103         * lib/utimens.c (lutimensat_works_really): New variable.
8104         (fdutimens, lutimens): Use it to manage kernels that support
8105         nanosecond times on files, but not on symlinks.
8106         Reported by OndÅ™ej Vašík.
8107
8108         utimes: fix configure grammar
8109         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
8110
8111 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
8112
8113         regex: Fix fastmap for multibyte character ranges.
8114         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
8115         characters when a multibyte character range is included.
8116
8117 2009-11-22  Andy Wingo  <wingo@pobox.com>
8118
8119         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
8120         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
8121
8122 2009-11-24  Bruno Haible  <bruno@clisp.org>
8123
8124         doc: Most *_l functions exist in MacOS X 10.5.
8125         * doc/posix-functions/duplocale.texi: Update platforms list.
8126         * doc/posix-functions/freelocale.texi: Likewise.
8127         * doc/posix-functions/newlocale.texi: Likewise.
8128         * doc/posix-functions/uselocale.texi: Likewise.
8129         * doc/posix-functions/isalnum_l.texi: Likewise.
8130         * doc/posix-functions/isalpha_l.texi: Likewise.
8131         * doc/posix-functions/isblank_l.texi: Likewise.
8132         * doc/posix-functions/iscntrl_l.texi: Likewise.
8133         * doc/posix-functions/isdigit_l.texi: Likewise.
8134         * doc/posix-functions/isgraph_l.texi: Likewise.
8135         * doc/posix-functions/islower_l.texi: Likewise.
8136         * doc/posix-functions/isprint_l.texi: Likewise.
8137         * doc/posix-functions/ispunct_l.texi: Likewise.
8138         * doc/posix-functions/isspace_l.texi: Likewise.
8139         * doc/posix-functions/isupper_l.texi: Likewise.
8140         * doc/posix-functions/iswalnum_l.texi: Likewise.
8141         * doc/posix-functions/iswalpha_l.texi: Likewise.
8142         * doc/posix-functions/iswblank_l.texi: Likewise.
8143         * doc/posix-functions/iswcntrl_l.texi: Likewise.
8144         * doc/posix-functions/iswctype_l.texi: Likewise.
8145         * doc/posix-functions/iswdigit_l.texi: Likewise.
8146         * doc/posix-functions/iswgraph_l.texi: Likewise.
8147         * doc/posix-functions/iswlower_l.texi: Likewise.
8148         * doc/posix-functions/iswprint_l.texi: Likewise.
8149         * doc/posix-functions/iswpunct_l.texi: Likewise.
8150         * doc/posix-functions/iswspace_l.texi: Likewise.
8151         * doc/posix-functions/iswupper_l.texi: Likewise.
8152         * doc/posix-functions/iswxdigit_l.texi: Likewise.
8153         * doc/posix-functions/isxdigit_l.texi: Likewise.
8154         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
8155         * doc/posix-functions/strcasecmp_l.texi: Likewise.
8156         * doc/posix-functions/strcoll_l.texi: Likewise.
8157         * doc/posix-functions/strfmon_l.texi: Likewise.
8158         * doc/posix-functions/strftime_l.texi: Likewise.
8159         * doc/posix-functions/strncasecmp_l.texi: Likewise.
8160         * doc/posix-functions/strxfrm_l.texi: Likewise.
8161         * doc/posix-functions/tolower_l.texi: Likewise.
8162         * doc/posix-functions/toupper_l.texi: Likewise.
8163         * doc/posix-functions/towctrans_l.texi: Likewise.
8164         * doc/posix-functions/towlower_l.texi: Likewise.
8165         * doc/posix-functions/towupper_l.texi: Likewise.
8166         * doc/posix-functions/wcscoll_l.texi: Likewise.
8167         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
8168         * doc/posix-functions/wctrans_l.texi: Likewise.
8169         * doc/posix-functions/wctype_l.texi: Likewise.
8170         * doc/glibc-functions/strptime_l.texi: Likewise.
8171         * doc/glibc-functions/strtod_l.texi: Likewise.
8172         * doc/glibc-functions/strtof_l.texi: Likewise.
8173         * doc/glibc-functions/strtol_l.texi: Likewise.
8174         * doc/glibc-functions/strtold_l.texi: Likewise.
8175         * doc/glibc-functions/strtoll_l.texi: Likewise.
8176         * doc/glibc-functions/strtoul_l.texi: Likewise.
8177         * doc/glibc-functions/strtoull_l.texi: Likewise.
8178         * doc/glibc-functions/wcsftime_l.texi: Likewise.
8179         * doc/glibc-functions/wcstod_l.texi: Likewise.
8180         * doc/glibc-functions/wcstof_l.texi: Likewise.
8181         * doc/glibc-functions/wcstol_l.texi: Likewise.
8182         * doc/glibc-functions/wcstold_l.texi: Likewise.
8183         * doc/glibc-functions/wcstoll_l.texi: Likewise.
8184         * doc/glibc-functions/wcstoul_l.texi: Likewise.
8185         * doc/glibc-functions/wcstoull_l.texi: Likewise.
8186
8187 2009-11-24  Bruno Haible  <bruno@clisp.org>
8188
8189         duplocale: Fix logic bug.
8190         * lib/duplocale.c: Don't include <langinfo.h>.
8191         (_NL_LOCALE_NAME): Remove macro.
8192         (rpl_duplocale): Use setlocale instead of nl_langinfo.
8193         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
8194
8195 2009-11-23  Jim Meyering  <meyering@redhat.com>
8196
8197         test-update-copyright: don't hard-code /usr/bin/perl
8198         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
8199         perl to print the current year.  Gilles Espinasse reported that
8200         the replaced use of perl was hard-coded as /usr/bin/perl.
8201
8202 2009-11-23  Bruno Haible  <bruno@clisp.org>
8203
8204         duplocale: Add support for glibc 2.3.x.
8205         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
8206
8207 2009-11-22  Bruno Haible  <bruno@clisp.org>
8208
8209         vasnprintf: Tiny optimization.
8210         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
8211         MacOS X.
8212
8213 2009-11-22  Bruno Haible  <bruno@clisp.org>
8214
8215         Tests for module 'duplocale'.
8216         * modules/duplocale-tests: New file.
8217         * tests/test-duplocale.c: New file.
8218
8219         New module 'duplocale'.
8220         * m4/duplocale.m4: New file.
8221         * lib/locale.in.h (duplocale): New declaration.
8222         * lib/duplocale.c: New file.
8223         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
8224         gl_LOCALE_H_DEFAULTS): New macros.
8225         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
8226         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
8227         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
8228         REPLACE_DUPLOCALE.
8229         * modules/duplocale: New file.
8230         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
8231
8232 2009-11-22  Bruno Haible  <bruno@clisp.org>
8233
8234         * modules/locale-tests (configure.ac): Test for newlocale function.
8235         * tests/test-locale.c: When the system has extended locale functions,
8236         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
8237
8238         locale: Make locale_t available when possible.
8239         * lib/locale.in.h: Include <xlocale.h> when it exists.
8240         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
8241         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
8242         * modules/locale (Depends-on): Add extensions.
8243         (Makefile.am): Also substitute HAVE_XLOCALE_H.
8244         * doc/posix-headers/locale.texi: Document the problem with locale_t.
8245
8246 2009-11-22  Bruno Haible  <bruno@clisp.org>
8247
8248         Add comments.
8249         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
8250         invocation.
8251         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
8252         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
8253         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
8254
8255 2009-11-22  Bruno Haible  <bruno@clisp.org>
8256
8257         error: account for the possibility of freopen (stdout).
8258         * lib/error.c: Include <unistd.h>.
8259         (flush_stdout): New function, extracted from error and error_at_line.
8260         Determine stdout's fd dynamically.
8261         (error, error_at_line): Invoke flush_stdout.
8262         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
8263         * modules/error (Depends-on): Add unistd.
8264
8265 2009-11-22  Bruno Haible  <bruno@clisp.org>
8266
8267         diffseq: Add comment.
8268         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
8269
8270 2009-11-22  Jim Meyering  <meyering@redhat.com>
8271
8272         c-stack: avoid defining an unused static function
8273         * lib/c-stack.c (find_stack_direction): Do not define this function
8274         when it will not be used.
8275
8276         diffseq: avoid spurious gcc warnings
8277         * lib/diffseq.h (IF_LINT2): Define.
8278         (compareseq): Use it to initialize two members of "part".
8279         This avoids two used-uninitialized warnings.
8280
8281 2009-11-21  Jim Meyering  <meyering@redhat.com>
8282
8283         c-stack: avoid "ignoring return value of `write'" warning
8284         * lib/c-stack.c: Include "ignore-value.h".
8285         (die): Explicitly ignore each write return value.
8286         * modules/c-stack (Depends-on): Add ignore-value.
8287
8288 2009-11-21  Bruno Haible  <bruno@clisp.org>
8289
8290         diffseq: reduce scope of variable 'best'.
8291         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
8292         variable, earlier used for two different purposes.
8293
8294 2009-11-21  Jim Meyering  <meyering@redhat.com>
8295
8296         diffseq: remove useless assignment to "best"
8297         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
8298         assignment.  At that point "best" is already guaranteed to be zero.
8299
8300 2009-11-20  Eric Blake  <ebb9@byu.net>
8301
8302         build: mention ftp redirector in release announcements
8303         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
8304         values that used to come from cfg.mk; mention FTP redirect URL.
8305         * build-aux/announce-gen: Mention the mirror list.
8306         Suggested by Karl Berry.
8307
8308         nanosleep: improve port to mingw
8309         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
8310         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
8311         LIB_NANOSLEEP, but only when needed.
8312         * modules/select (Link): Document LIBSOCKET.
8313         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
8314         enough.
8315
8316         nanosleep: work around cygwin bug
8317         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
8318         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
8319         bug.
8320         (getnow): Delete, not needed.
8321         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
8322         LIB_CLOCK_GETTIME.
8323         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
8324         clock-time, gettime.
8325         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
8326         bug.
8327         * modules/nanosleep-tests: New test.
8328         * tests/test-nanosleep.c: New file.
8329
8330         sleep: work around cygwin bug
8331         * lib/sleep.c (rpl_sleep): Work around the bug.
8332         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
8333         (gl_PREREQ_SLEEP): Delete unused macro.
8334         * modules/sleep (Depends-on): Add verify.
8335         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
8336         * modules/unistd (Makefile.am): Substitute witness.
8337         * lib/unistd.in.h (sleep): Update prototype.
8338         * doc/posix-functions/sleep.texi (sleep): Document the bug.
8339         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
8340         * modules/sleep-tests (Depends-on): Check for alarm.
8341
8342 2009-11-20  Jim Meyering  <meyering@redhat.com>
8343
8344         maint.mk: improve sc_prohibit_magic_number_exit
8345         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
8346         so it does not match uses like System.exit(1).
8347         Add comments showing how to correct all offenders.
8348
8349 2009-11-19  Eric Blake  <ebb9@byu.net>
8350
8351         xalloc-die-tests: add missing library
8352         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
8353
8354         test-xvasprintf: silence compiler warnings
8355         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
8356         empty string from gcc.
8357
8358 2009-11-19  Jim Meyering  <meyering@redhat.com>
8359
8360         xfreopen: new module, from coreutils
8361         * modules/xfreopen: New module.
8362         * lib/xfreopen.c: New file.
8363         * lib/xfreopen.h: New file.
8364         * MODULES.html.sh (File stream based Input/Output"): Add it.
8365
8366 2009-11-19  Eric Blake  <ebb9@byu.net>
8367
8368         manywarnings: depend on warnings
8369         * modules/manywarnings (Depends-on): Add warnings.
8370
8371         build: avoid compiler warnings
8372         * lib/select.c (rpl_select): Delete unused variable.
8373         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
8374
8375 2009-11-18  Eric Blake  <ebb9@byu.net>
8376
8377         tests: avoid false negative with --with-packager
8378         * tests/test-version-etc.sh: Discard packager information.
8379         * tests/test-argp-version-etc-1.sh: Likewise.
8380         Reported by Mike Frysinger.
8381
8382         utimens: fix regression on Solaris
8383         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
8384         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
8385         can only change fd timestamps via futimesat.  Instead, use an
8386         additional witness macro to avoid BSD bug.
8387         Reported by Jim Meyering.
8388
8389 2009-11-17  Eric Blake  <ebb9@byu.net>
8390
8391         usleep: use it to simplify tests
8392         * modules/stat-time-tests (Depends-on): Add usleep.
8393         (configure.ac): Drop usleep check.
8394         * modules/chown-tests (Depends-on, configure.ac): Likewise.
8395         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
8396         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
8397         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
8398         * modules/openat-tests (Depends-on, configure.ac): Likewise.
8399         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
8400         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
8401         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
8402         Likewise.
8403         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
8404         * tests/test-lchown.h (nap): Likewise.
8405         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
8406         * tests/test-stat-time.c (nap): Likewise.
8407         * tests/test-utimens-common.h (nap): Update comments.
8408
8409         usleep: new module
8410         * modules/usleep: New file.
8411         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
8412         * lib/usleep.c (usleep): Likewise.
8413         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
8414         * modules/unistd (Makefile.am): Substitute witnesses.
8415         * lib/unistd.in.h (usleep): Add declaration.
8416         * doc/pastposix-functions/usleep.texi (usleep): Document this.
8417         * MODULES.html.sh (Date and time): Likewise.
8418         * modules/usleep-tests (Depends-on): New test.
8419         * tests/test-usleep.c: New file.
8420
8421         chown: work around OpenBSD bug
8422         * lib/chown.c (rpl_chown): Work around the bug.
8423         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
8424         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
8425         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
8426         * modules/chown (Depends-on): Add stdbool.
8427         * modules/lchown (Depends-on): Likewise.
8428         * doc/posix-functions/chown.texi (chown): Document the bug.
8429         * doc/posix-functions/lchown.texi (lchown): Likewise.
8430         * tests/test-lchown.h (test_chown): Relax test.
8431
8432         mkstemp: avoid conflict with C++ keyword template
8433         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
8434         * lib/mkostemp.c (mkostemp): Likewise.
8435         * lib/mkostemps.c (mkostemps): Likewise.
8436         * lib/mkstemp.c (mkstemp): Likewise.
8437         * lib/mkstemps.c (mkstemps): Likewise.
8438
8439         xalloc-die-tests: optimize
8440         * tests/test-xalloc-die.sh: Reduce number of processes.
8441
8442 2009-11-17  Simon Josefsson  <simon@josefsson.org>
8443
8444         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
8445         patch from ludo@gnu.org (Ludovic Courtès).
8446
8447 2009-11-17  Jim Meyering  <meyering@redhat.com>
8448
8449         version-etc: use proper license string
8450         * modules/version-etc (License): Use LGPL, not LGPLv3+.
8451         * modules/version-etc-fsf: Likewise.
8452
8453 2009-11-17  Simon Josefsson  <simon@josefsson.org>
8454
8455         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
8456         printed to stdout.  Deal with EOL differences.
8457
8458 2009-11-17  Eric Blake  <ebb9@byu.net>
8459
8460         unsetenv: work around Solaris bug
8461         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
8462         * lib/unsetenv.c (rpl_unsetenv): Work around it.
8463         Reported by Jim Meyering.
8464
8465         vasnprintf: avoid compiler warnings
8466         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
8467         variables.
8468         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
8469
8470 2009-11-17  Simon Josefsson  <simon@josefsson.org>
8471
8472         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
8473         settings since xalloc-die is no longer the self test,
8474         xalloc-die.sh is.
8475
8476 2009-11-17  Jim Meyering  <meyering@redhat.com>
8477
8478         test-xalloc-die.sh: make the code agree with the commit log
8479         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
8480         at the end, just in case you happen to have a test-xalloc-die
8481         program in some other PATH directory.
8482
8483         test-xalloc-die.sh: fix a portability bug
8484         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
8485         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
8486         Otherwise, argv[0] (as often seen in diagnostics) would be too
8487         system-dependent, sometimes with, and sometimes without the leading "./".
8488
8489         version-etc-fsf: relax license to LGPLv3+
8490         * modules/version-etc-fsf (License): Relax license.
8491
8492 2009-11-16  Eric Blake  <ebb9@byu.net>
8493
8494         xalloc-die-tests: avoid printing null pointer
8495         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
8496         shell script.
8497         * tests/test-xalloc-die.c (program_name): Declare.
8498         * tests/test-xalloc-die.sh (tmpfiles): New file.
8499
8500         setenv, unsetenv: work around various bugs
8501         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
8502         (setenv) [HAVE_SETENV]: Work around bugs.
8503         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
8504         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
8505         for bugs.
8506         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
8507         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
8508         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
8509         * modules/stdlib (Makefile.am): Update substitutions.
8510         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
8511         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
8512         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
8513         * modules/setenv-tests: New test.
8514         * modules/unsetenv-tests: Likewise.
8515         * tests/test-setenv.c: New file.
8516         * tests/test-unsetenv.c: Likewise.
8517
8518 2009-11-16  Jim Meyering  <meyering@redhat.com>
8519
8520         version-etc: relax license to LGPLv3+
8521         * modules/version-etc (License): Relax license.
8522
8523         better AC_REQUIRE expanded-before-required-warning avoidance
8524         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
8525         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
8526         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
8527         which is no longer needed.
8528
8529 2009-11-16  Eric Blake  <ebb9@byu.net>
8530
8531         test-freading: clean up temporary file
8532         * tests/test-freading.c (main): Remove file on success, and use
8533         ASSERT more liberally.
8534         Reported by Jim Meyering.
8535
8536 2009-11-16  Jim Meyering  <meyering@redhat.com>
8537
8538         avoid new AC_REQUIRE expanded-before-required warnings
8539         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
8540         merely using it.
8541         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
8542         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
8543
8544 2009-11-15  Simon Josefsson  <simon@josefsson.org>
8545
8546         * tests/test-xalloc-die.c: New file.
8547         * modules/xalloc-die-tests: New file.
8548         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
8549         XFAIL_TESTS so it can be appended by modules.
8550
8551 2009-11-15  Simon Josefsson  <simon@josefsson.org>
8552
8553         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
8554         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
8555
8556 2009-11-14  Eric Blake  <ebb9@byu.net>
8557
8558         fnmatch: avoid compiler warning
8559         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
8560         to silence compiler warning about mismatch signedness in ?:.
8561         Reported by Robert Millan.
8562
8563         intprops: add double-inclusion guard
8564         * lib/intprops.h: Allow idempotent includes.
8565         Suggested by Bruce Korb.
8566
8567         openat: detect Solaris fchownat bug
8568         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
8569         penalizing glibc chownat when only lchownat is broken.
8570         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
8571         trailing slash bugs.
8572         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
8573         * modules/openat-tests (Files): Include more files.
8574         (Depends-on): Add mgetgroups, sleep, stat-time.
8575         (configure.ac): Add additional checks.
8576         (Makefile.am): Build new test.
8577         * tests/test-fchownat.c: New file.
8578
8579         lchown: detect Solaris and FreeBSD bug
8580         * lib/lchown.c (rpl_lchown): Work around bug.
8581         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
8582         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8583         * modules/unistd (Makefile.am): Populate it.
8584         * lib/unistd.in.h (lchown): Update declaration.
8585         * doc/posix-functions/lchown.texi (lchown): Document the bug.
8586         * modules/lchown-tests: New file.
8587         * tests/test-lchown.h (test_lchown): Likewise.
8588         * tests/test-lchown.c (main): Likewise.
8589
8590         chown: detect Solaris and FreeBSD bug
8591         * lib/chown.c (rpl_chown): Work around bug.
8592         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
8593         (gl_PREREQ_CHOWN): Delete.
8594         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8595         * modules/unistd (Makefile.am): Populate it.
8596         * lib/unistd.in.h (chown): Update declaration.
8597         * lib/lchown.c (chown): Update client.
8598         * modules/lchown (Depends-on): Add lstat.
8599         * doc/posix-functions/chown.texi (chown): Document the bug.
8600         * doc/posix-functions/getgroups.texi (getgroups): Document
8601         getgroups pitfall.
8602         * modules/chown-tests: New file.
8603         * tests/test-chown.h (test_chown): Likewise.
8604         * tests/test-chown.c (main): Likewise.
8605
8606 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
8607
8608         gnulib-tool: correctly detect absence of m4 directories
8609         * gnulib-tool: Avoid extra newline on data passed to wc -l.
8610
8611 2009-11-14  Jim Meyering  <meyering@redhat.com>
8612
8613         maint.mk: Prohibit inclusion of "xalloc.h" without use.
8614         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
8615
8616 2009-11-14  John W. Eaton  <jwe@gnu.org>
8617
8618         strftime.h: wrap funtion declaration in extern "C" block
8619         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
8620
8621 2009-11-13  Eric Blake  <ebb9@byu.net>
8622
8623         getgroups: avoid compiler warning
8624         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
8625
8626         getgroups: work around FreeBSD bug
8627         * lib/getgroups.c (rpl_getgroups): Work around the bug.
8628         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
8629         * doc/posix-functions/getgroups.texi (getgroups): Document it.
8630         * tests/test-getgroups.c (main): Fix buffer overrun.
8631
8632         getgroups: avoid compilation failure
8633         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
8634         * modules/getgroups (Depends-on): Add stdint.
8635
8636 2009-11-13  Jim Meyering  <meyering@redhat.com>
8637
8638         test-getgroups: avoid compilation failure
8639         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
8640
8641 2009-11-13  Eric Blake  <ebb9@byu.net>
8642
8643         mgetgroups: new module, taken from coreutils
8644         * modules/mgetgroups: New file.
8645         * lib/mgetgroups.h: Likewise.
8646         * lib/mgetgroups.c (mgetgroups): Likewise.
8647         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
8648         * MODULES.html.sh (Users and groups): Mention it.
8649
8650         getgroups: don't expose GETGROUPS_T to user
8651         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
8652         an element at a time if GETGROUPS_T is wrong size.
8653         * lib/getugroups.h (getugroups): Change signature.
8654         * lib/unistd.in.h (getgroups): Likewise.
8655         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
8656         signature needs fixing.
8657         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
8658         AC_TYPE_GETGROUPS.
8659         * modules/group-member (Depends-on): Add getgroups.
8660         * lib/group-member.c (group_info, get_group_info): Use gid_t.
8661         (group_member): Rely on getgroups replacement.
8662         * lib/getugroups.c (getugroups): Use gid_t.
8663         * tests/test-getgroups.c (main): Likewise.
8664         * NEWS: Mention the signature change.
8665         * doc/posix-functions/getgroups.texi (getgroups): Mention the
8666         problem with signature.
8667         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
8668         GETGROUPS_T is still useful for setgroups.
8669
8670         getgroups, getugroups: provide stubs for mingw
8671         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
8672         * lib/getugroups.c (getugroups): Likewise.
8673         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
8674         function.  Modernize replacement scheme.
8675         (gl_PREREQ_GETGROUPS): Delete.
8676         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
8677         * modules/getgroups (configure.ac): Declare witness.
8678         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
8679         * modules/unistd (Depends-on): Substitute witness.
8680         * lib/unistd.in.h (getgroups): Declare replacement.
8681
8682         getgroups: avoid calling exit
8683         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
8684         drop xalloc.
8685         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
8686         dependencies.
8687         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
8688         exiting, in the rare case of malloc failure.
8689
8690         getgroups: fix logic error
8691         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
8692         has more than 20 groups.
8693         * modules/getgroups-tests: New test.
8694         * tests/test-getgroups.c: New file.
8695
8696 2009-11-13  Simon Josefsson  <simon@josefsson.org>
8697
8698         * tests/test-base64.c: Improve.
8699
8700 2009-11-13  Simon Josefsson  <simon@josefsson.org>
8701
8702         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
8703         Blake <ebb9@byu.net>.
8704
8705 2009-11-13  Simon Josefsson  <simon@josefsson.org>
8706
8707         * tests/test-xvasprintf.c: Add %s%s related checks.
8708
8709 2009-11-12  Eric Blake  <ebb9@byu.net>
8710
8711         version-etc: match standards.texi style
8712         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
8713         and use <> only for URLs.
8714
8715 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
8716
8717         fts: do not fail on a submount during traversal
8718         * lib/fts.c (fts_build): Read the stat info again after opening
8719         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
8720         Original report at http://bugzilla.redhat.com/501848.
8721
8722 2009-11-12  Jim Meyering  <meyering@redhat.com>
8723
8724         bootstrap: sync from coreutils
8725         * build-aux/bootstrap (bootstrap_epilogue): New function.
8726         Use git_modules_config in one more place.  This make bootstrap's
8727         --gnulib-srcdir option more useful for testing.
8728
8729         bootstrap: generalize autoheader check
8730         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
8731         AC_CONFIG_HEADERS.
8732
8733 2009-11-11  Eric Blake  <ebb9@byu.net>
8734
8735         mkfifoat: use new modules for Solaris and BSD bugs
8736         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
8737         * lib/mkfifoat.c (mknodat): Split...
8738         * lib/mknodat.c (mknodat): ...into new file.
8739         * modules/mkfifoat (Files): Ship new file.
8740         (Depends-on): Add mkfifo, mknod.
8741         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
8742         (Depends-on): Add symlink.
8743         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
8744         redundant with test_mkfifo.h.
8745         (do_mkfifoat, do_mknodat): New helpers.
8746
8747         mknod: new module
8748         * modules/mknod: New file.
8749         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
8750         * lib/mknod.c (mknod): Likewise.
8751         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
8752         defaults.
8753         * modules/sys_stat (Makefile.am): Substitute them.
8754         * lib/sys_stat.in.h (mknod): Declare replacement.
8755         * MODULES.html.sh (Support for systems lacking POSIX:2008):
8756         Document it.
8757         * doc/posix-functions/mknod.texi (mknod): Likewise.
8758         * modules/mknod-tests: New test.
8759         * tests/test-mknod.c: Likewise.
8760
8761         mkfifo: new module
8762         * modules/mkfifo: New file.
8763         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
8764         * lib/mkfifo.c (mkfifo): Likewise.
8765         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
8766         defaults.
8767         * modules/sys_stat (Makefile.am): Substitute them.
8768         * lib/sys_stat.in.h (mkfifo): Declare replacement.
8769         * MODULES.html.sh (Support for systems lacking POSIX:2008):
8770         Document it.
8771         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
8772         * modules/mkfifo-tests: New test.
8773         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
8774         from test-mkfifoat.c.
8775         * tests/test-mkfifo.c: New file.
8776
8777         readlink: detect FreeBSD bug
8778         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
8779         slash on symlink.
8780         * doc/posix-functions/readlink.texi (readlink): Document the bug.
8781         * tests/test-readlink.h (test_readlink): Enhance test.
8782
8783         symlink: detect FreeBSD bug
8784         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
8785         slash on symlink.
8786         * doc/posix-functions/symlink.texi (symlink): Document the bug.
8787         * tests/test-symlink.h (test_symlink): Enhance test.
8788
8789 2009-11-10  Eric Blake  <ebb9@byu.net>
8790
8791         link: detect FreeBSD bug
8792         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
8793         symlink.
8794         * doc/posix-functions/link.texi (link): Document the bug.
8795         * tests/test-link.h (test_link): Enhance test.
8796         * tests/test-linkat.c (main): Update caller.
8797
8798         unlink, remove: detect FreeBSD bug
8799         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
8800         slash on symlink.
8801         * doc/posix-functions/unlink.texi (unlink): Document the bug.
8802         * doc/posix-functions/remove.texi (remove): Likewise.
8803         * tests/test-unlink.h (test_unlink): Enhance test.
8804         * tests/test-remove.c (main): Likewise.
8805
8806 2009-11-09  Eric Blake  <ebb9@byu.net>
8807
8808         rename: detect FreeBSD bug
8809         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
8810         slash on symlink.
8811         * modules/renameat-tests (Depends-on): Add filenamecat.
8812         * tests/test-rename.h (test_rename): Allow one more errno.
8813         * tests/test-renameat.c (main): Likewise.
8814         * doc/posix-functions/rename.texi (rename): Document the bug.
8815
8816         open: detect FreeBSD bug
8817         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
8818         symlink.
8819         * doc/posix-functions/open.texi (open): Document the bug.
8820         * doc/posix-functions/utimes.texi (utimes): Likewise.
8821         * tests/test-open.h (test_open): Add parameters, and test symlink
8822         handling.
8823         * tests/test-open.c (main): Adjust caller.
8824         * tests/test-fcntl-safer.c (main): Likewise.
8825         * modules/open-tests (Depends-on): Add stdbool, symlink.
8826         * modules/fcntl-safer-tests (Depends-on): Likewise.
8827         * tests/test-openat.c (main): Add test-open tests.
8828
8829         stat: detect FreeBSD bug
8830         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
8831         symlink.
8832         * doc/posix-functions/stat.texi (stat): Document the bug.
8833         * tests/test-stat.h (test_stat_func): Add argument.
8834         * tests/test-stat.c (main): Adjust caller.
8835         * tests/test-fstatat.c (main): Likewise.
8836         * modules/stat-tests (Depends-on): Add stdbool, symlink.
8837         Reported by Jim Meyering.
8838
8839 2009-11-09  James Youngman  <jay@gnu.org>
8840
8841         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
8842         * lib/strftime.c: Correct placement of #include "ignore-value.h".
8843
8844 2009-11-08  Jim Meyering  <meyering@redhat.com>
8845
8846         utimens: remove invalid futimesat call
8847         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
8848         It used the file descriptor of the target file as the DIR_FD
8849         parameter and NULL as the file name.  That caused failure with
8850         errno == EFAULT on FreeBSD-8.0-rc2
8851
8852 2009-11-07  Eric Blake  <ebb9@byu.net>
8853
8854         fflush, freadseek: use fseeko, not fseek
8855         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
8856         (clear_ungetc_buffer): Avoid potential problems on large files.
8857         * lib/freadseek.c (freadseek): Likewise.
8858         * modules/freadseek (Depends-on): Add fseeko.
8859         * modules/fseek (configure.ac): Set a witness.
8860         * tests/test-fflush.c (main): Use fseeko.
8861         * tests/test-fpurge.c (fseek): Disable link warning.
8862         * tests/test-freadable.c (fseek): Likewise.
8863         * tests/test-freading.c (fseek): Likewise.
8864         * tests/test-fseeko.c (fseek): Likewise.
8865         * tests/test-ftell.c (fseek): Likewise.
8866         * tests/test-ftello.c (fseek): Likewise.
8867         * tests/test-fwritable.c (fseek): Likewise.
8868         * tests/test-fwriting.c (fseek): Likewise.
8869
8870 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8871
8872         * modules/memchr (Depends-on): Drop getpagesize dependency.
8873
8874 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8875
8876         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
8877         Reported by Ludovic Courtès.
8878         * build-aux/pmccabe2html: Improve example usage.
8879         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
8880
8881 2009-11-06  Jim Meyering  <meyering@redhat.com>
8882
8883         do-release-commit-and-tag: New module.
8884         Automate the release-commit and tag process.
8885         * build-aux/do-release-commit-and-tag: New script, from coreutils.
8886         * modules/do-release-commit-and-tag: New file.
8887         * MODULES.html.sh (Support for maintaining and releasing): Add it.
8888
8889 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8890
8891         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
8892         because test-select.c uses inet_pton.
8893
8894 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8895
8896         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
8897         GETADDRINFO_LIB.  Bump serial number.
8898         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
8899         Suggested by Eric Blake <ebb9@byu.net>.
8900
8901 2009-11-05  Eric Blake  <ebb9@byu.net>
8902
8903         strtod: detect darwin bug
8904         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
8905         Reported by Leo Davis.
8906
8907         freopen-safer: new module
8908         * modules/freopen-safer: New module.
8909         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
8910         * lib/freopen-safer.c (freopen_safer): New file.
8911         * lib/stdio-safer.h (freopen_safer): New declaration.
8912         * lib/stdio--.h (freopen): New override.
8913         * MODULES.html.sh (File stream based Input/Output): Mention it.
8914         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
8915         freopen-safer module.
8916         * doc/posix-functions/stderr.texi (stderr): Likewise.
8917         * doc/posix-functions/stdin.texi (stdin): Likewise.
8918         * doc/posix-functions/stdout.texi (stdout): Likewise.
8919         * modules/freopen-safer-tests: New test.
8920         * tests/test-reopen-safer.c: New file.
8921
8922 2009-11-05  Jim Meyering  <meyering@redhat.com>
8923
8924         maint.mk: Prohibit inclusion of "close-stream.h" without use.
8925         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
8926
8927 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8928
8929         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
8930
8931 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8932
8933         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
8934
8935 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8936
8937         Fix link error.
8938         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
8939         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
8940
8941 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8942
8943         * tests/test-func.c: Also test value of __func__.
8944
8945 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8946
8947         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
8948         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
8949
8950 2009-11-05  Bruno Haible  <bruno@clisp.org>
8951
8952         Fix link error.
8953         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
8954         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
8955         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
8956
8957 2009-11-05  Bruno Haible  <bruno@clisp.org>
8958
8959         Tests for module 'inet_pton'.
8960         * modules/inet_pton-tests: New file.
8961         * tests/test-inet_pton.c: New file.
8962
8963 2009-11-05  Bruno Haible  <bruno@clisp.org>
8964
8965         Tests for module 'inet_ntop'.
8966         * modules/inet_ntop-tests: New file.
8967         * tests/test-inet_ntop.c: New file.
8968
8969 2009-11-04  Eric Blake  <ebb9@byu.net>
8970
8971         stdlib-safer: wrap all mkstemp variants
8972         * modules/mkostemp (configure.ac): Set witness.
8973         * modules/mkostemps (configure.ac): Likewise.
8974         * modules/mkstemps (configure.ac): Likewise.
8975         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
8976         (mkstemps_safer): Wrap more functions.
8977         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
8978         wrapping.
8979         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
8980         (mkstemps_safer): Implement the wrappers.
8981
8982         mkstemps, mkostemps: new modules
8983         * modules/mkostemps: New module.
8984         * modules/mkstemps: Likewise.
8985         * lib/mkostemps.c (mkostemps): New file.
8986         * lib/mkstemps.c (mkstemps): Likewise.
8987         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
8988         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
8989         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
8990         * modules/stdlib (Makefile.am): Substitute them.
8991         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
8992         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
8993         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
8994         * doc/gnulib.texi (Glibc stdlib.h): Include them.
8995         * MODULES.html.sh (File system functions): Mention them.
8996
8997         tempname: resync from glibc
8998         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
8999         same values for __GT_FILE as glibc.  Abort even when assertions
9000         are disabled.
9001         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
9002         match its value otherwise.  Allow idempotent inclusion.
9003         * lib/mkdtemp.c (mkdtemp): Adjust caller.
9004         * lib/mkostemp.c (mkostemp): Likewise.
9005         * lib/mkstemp.c (mkstemp): Likewise.
9006         * lib/tmpfile.c (tmpfile): Likewise.
9007         * NEWS: Document this.
9008
9009         utimens: fix use of futimens on older Linux
9010         * lib/utimens.c (fdutimens): Use updated, rather than original,
9011         timespec to avoid bug in older Linux kernel.
9012         Reported by Simon Josefsson.
9013
9014 2009-11-04  Bruno Haible  <bruno@clisp.org>
9015
9016         Make num_processors more flexible and consistent.
9017         * lib/nproc.h (enum nproc_query): New type.
9018         (num_processors): Add a 'query' argument.
9019         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
9020         (num_processors): Add a 'query' argument. Test the value of the
9021         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
9022         mingw, count the number of CPUs available for the current process.
9023         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
9024         Check for sched_getaffinity and sched_getaffinity_np.
9025         * modules/nproc (Depends-on): Add c-ctype, extensions.
9026         * NEWS: Mention the change.
9027
9028 2009-11-03  Bruno Haible  <bruno@clisp.org>
9029
9030         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
9031
9032 2009-11-03  Jim Meyering  <meyering@redhat.com>
9033
9034         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
9035         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
9036         if it is defined.
9037
9038 2009-11-02  Eric Blake  <ebb9@byu.net>
9039
9040         mktime, timegm: share common declaration
9041         * lib/mktime-internal.h: New file.
9042         * lib/mktime.c: Use it rather than open-coding a declaration.
9043         * lib/timegm.c: Likewise.
9044         * modules/mktime (Files): Ship it.
9045         * modules/timegm (Files): Likewise.
9046         Suggested by Bruno Haible.
9047
9048         test-update-copyright: update test to match script changes
9049         * tests/test-update-copyright.sh: Avoid hard-coding perl
9050         location.  Don't update *.bak created by earlier runs.
9051
9052 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
9053             Simon Josefsson  <simon@josefsson.org>
9054             Bruno Haible  <bruno@clisp.org>
9055
9056         Fix link error on Solaris 8.
9057         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
9058         also in libnsl. Define also INET_PTON_LIB.
9059         * modules/inet_pton (Link): New section.
9060
9061 2009-11-02  Simon Josefsson  <simon@josefsson.org>
9062             Bruno Haible  <bruno@clisp.org>
9063
9064         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
9065         * modules/inet_ntop (Link): New section.
9066         Reported by Boyan Kasarov <bkasarov@gmail.com>.
9067
9068 2009-11-02  Eric Blake  <ebb9@byu.net>
9069
9070         maint: avoid compiler warnings in m4 macros
9071         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
9072         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
9073
9074 2009-11-02  Simon Josefsson  <simon@josefsson.org>
9075
9076         * m4/pmccabe2html.m4: Remove file.
9077         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
9078         function.  Change maintainer.
9079         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
9080         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
9081         Courtès).
9082
9083 2009-10-31  Eric Blake  <ebb9@byu.net>
9084
9085         fseeko: fix m4 regression
9086         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
9087         regression from 2009-10-27.
9088         Reported by Ralf Wildenhues.
9089
9090 2009-10-31  Jim Meyering  <meyering@redhat.com>
9091
9092         inttostr: aesthetics and improved (compile-time) safety
9093         Define inttype_is_signed rather than inttype_is_unsigned,
9094         since the sole use is via "#if inttype_is_signed".
9095         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
9096         inttype_is_unsigned.
9097         * lib/offtostr.c (inttype_is_signed): Likewise.
9098         * lib/uinttostr.c (inttype_is_signed): Likewise.
9099         * lib/umaxtostr.c (inttype_is_signed): Likewise.
9100         * lib/inttostr.c (inttostr): Use verify to cross-check the
9101         inttype_is_signed value and the signedness of the actual type.
9102         * modules/inttostr (Depends-on): Add verify.
9103
9104 2009-10-30  Eric Blake  <ebb9@byu.net>
9105
9106         build: avoid compiler warnings
9107         * lib/fchmodat.c (lchmod): Mark unused variables.
9108         * lib/getopt.c (_getopt_initialize): Likewise.
9109         * lib/mktime.c (__mktime_internal): Provide prototype.
9110         * lib/inttostr.c (inttostr): Avoid compiler warning even with
9111         older gcc that do not understand #pragma GCC diagnostic.
9112         * lib/uinttostr.c (inttype_is_unsigned): Define.
9113         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
9114
9115 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
9116
9117         stat: fix compilation on AIX
9118         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
9119         only see struct stat64.
9120
9121 2009-10-30  Eric Blake  <ebb9@byu.net>
9122
9123         exclude: make more robust
9124         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
9125         rather than masking a coding bug.
9126         Suggested by Bruno Haible.
9127
9128 2009-10-30  Jim Meyering  <meyering@redhat.com>
9129
9130         perl scripts: remove #!/usr/bin/perl in favor of more portable...
9131         Rather than putting #!/usr/bin/perl on the first line,
9132         start with a variant of what's recommended by "man perlrun" that
9133         invokes the first "perl" program from your shell's search path.
9134         * build-aux/gitlog-to-changelog: Replace #!... as above.
9135         Add a "Local Variables" perl mode setting.
9136         Prompted by a patch from Ludovic Courtès.
9137         Improved by Eric Blake.
9138         * build-aux/useless-if-before-free: Likewise.
9139         * build-aux/announce-gen: Likewise.
9140         * build-aux/update-copyright: Likewise.
9141
9142 2009-10-29  Eric Blake  <ebb9@byu.net>
9143
9144         filenamecat-lgpl: adjust clients
9145         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
9146         filenamecat.
9147         * modules/renameat (Depends-on): Likewise.
9148
9149         filenamecat: split into filenamecat-lgpl
9150         * modules/filenamecat-lgpl: New module.
9151         * modules/filenamecat (Files): Move library-safe files into
9152         filenamecat-lgpl.
9153         (Depends-on): Add filenamecat-lgpl.
9154         (configure.ac): Declare witness.
9155         * lib/filenamecat.h (file_name_concat): Only declare when using
9156         GPL module.
9157         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
9158         Move...
9159         * lib/filenamecat-lgpl.c: ...into new file.
9160         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
9161         (gl_FILE_NAME_CONCAT): Use it.
9162         * MODULES.html.sh (File system functions): Mention new module.
9163
9164         argp: avoid memory leak
9165         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
9166         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
9167         base_name, since the latter malloc()s and can call exit().
9168         Leak introduced 2006-07-03.
9169
9170         dirname-lgpl: adjust clients that don't need full dirname
9171         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
9172         * modules/filenamecat (Depends-on): Likewise.
9173         * modules/linkat (Depends-on): Likewise.
9174         * modules/mkancesdirs (Depends-on): Likewise.
9175         * modules/mkdir (Depends-on): Likewise.
9176         * modules/openat (Depends-on): Likewise.
9177         * modules/savewd (Depends-on): Likewise.
9178         * modules/rename (Depends-on): Likewise.
9179         (License): Relax license.
9180         * modules/mkdir-tests (Depends-on): Drop progname.
9181         (Makefile.am): Delete unneeded LDADD.
9182         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
9183
9184         dirname: split into dirname-lgpl
9185         * modules/dirname-lgpl: New module.
9186         * modules/dirname (Files): Move library-safe files into
9187         dirname-lgpl.
9188         (Depends-on): Add dirname-lgpl.
9189         (configure.ac): Declare witness.
9190         * modules/double-slash-root (License): Relax license.
9191         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
9192         module.
9193         * lib/dirname.c (dir_len, mdir_name): Move...
9194         * lib/dirname-lgpl.c: ...into new file.
9195         * lib/basename.c (last_component, base_len): Move...
9196         * lib/basename-lgpl.c: ...into new file.
9197         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
9198         (gl_DIRNAME): Use it.
9199         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
9200         Mention new module.
9201         * modules/dirname-tests (Depends-on): Add progname.
9202         * tests/test-dirname.c (program_name): Delete.
9203
9204         mkdir: make safe for libraries
9205         * modules/mkdir (Depends-on): Drop xalloc.
9206         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
9207         exit.
9208
9209         tests: avoid some compiler warnings
9210         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
9211         literals.
9212         * tests/test-memchr.c (main): Avoid type mismatch.
9213         * tests/test-arpa_inet.c (main): Avoid unused parameters.
9214         * tests/test-base64.c (main): Likewise.
9215         * tests/test-getdelim.c (main): Likewise.
9216         * tests/test-gethostname.c (main): Likewise.
9217         * tests/test-getline.c (main): Likewise.
9218         * tests/test-netinet_in.c (main): Likewise.
9219         * tests/test-select.c (open_server_socket, main): Likewise.
9220         * tests/test-select-stdin.c (main): Likewise.
9221         * tests/test-sockets.c (main): Likewise.
9222         * tests/test-strsignal.c (main): Likewise.
9223         * tests/test-sys_select.c (main): Likewise.
9224         * tests/test-sys_socket.c (main): Likewise.
9225         * tests/test-u64.c (main): Likewise.
9226         * tests/test-xfprintf-posix.c (main): Likewise.
9227         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
9228
9229         sockets: avoid compiler warning
9230         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
9231
9232         maint: detect usage(1) and other suspicious exits
9233         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
9234
9235 2009-10-29  Jim Meyering  <meyering@redhat.com>
9236
9237         timespec: long-to-int truncation could make timespec_cmp malfunction
9238         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
9239         a multiple of 2^32 nanoseconds as no difference.
9240
9241 2009-10-28  Jim Meyering  <meyering@redhat.com>
9242
9243         fprintftime: wrap macro code argument in "do {...} while(0)"
9244         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
9245         cpy macro must be a statement that can be followed by a semicolon.
9246         Now that the else clause contains a comment and is hence longer
9247         than one line, I require curly braces.  That in turn requires
9248         that we wrap this code block in the standard do...while(0).
9249
9250         fprintftime: remove stray semicolon from previous change
9251         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
9252
9253         fprintftime: avoid a warning about ignored fwrite return value
9254         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
9255         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
9256         that is unsafe.
9257         * modules/fprintftime (Depends-on): Add ignore-value.
9258
9259         exclude: avoid an unwarranted warning
9260         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
9261
9262 2009-10-27  Eric Blake  <ebb9@byu.net>
9263
9264         fseek: avoid compilation failure when fflush is replaced
9265         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
9266         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
9267         module is in use.
9268         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
9269         module is not in use; since REPLACE_FSEEK worked otherwise.
9270         (GNULIB_FTELLO): Likewise for ftell.
9271         Reported by Ian Beckwith and others.
9272
9273 2009-10-27  Bruno Haible  <bruno@clisp.org>
9274
9275         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
9276         Reported by Jim Meyering.
9277
9278 2009-10-27  Jim Meyering  <jim@meyering.net>
9279             Bruno Haible  <bruno@clisp.org>
9280
9281         Avoid warning despite dropping the return value of fwrite.
9282         * lib/unicodeio.c: Include ignore-value.h.
9283         (fwrite_success_callback): Explicitly ignore fwrite's return value.
9284         * modules/unicodeio (Depends-on): Add ignore-value.
9285
9286 2009-10-26  Eric Blake  <ebb9@byu.net>
9287
9288         areadlinkat: fix fallback path
9289         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
9290         pointer and zero.
9291
9292 2009-10-22  Pádraig Brady  <P@draigBrady.com>
9293
9294         Use a better IO block size for modern systems
9295         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
9296         * lib/md2.c: Likewise.
9297         * lib/md4.c: Likewise.
9298         * lib/md5.c: Likewise.
9299         * lib/sha1.c: Likewise.
9300         * lib/sha256.c: Likewise.
9301         * lib/sha512.c: Likewise.
9302
9303 2009-10-22  Eric Blake  <ebb9@byu.net>
9304
9305         tests: avoid several compiler warnings
9306         * tests/test-getcwd.c (main): Avoid buffer underflow.
9307         * tests/test-getdate.c (main): String literals are not safe with
9308         putenv, so use setenv.  Declare unused argument.
9309         * modules/getdate-tests (Depends-on): Add setenv.
9310         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
9311         problems with string literals in char *.
9312         * tests/test-hash.c (main): Avoid shadowing declaration.
9313         (insert_new): Treat string literals as char const *.
9314         * tests/test-getopt.h (test_getopt): Likewise.
9315         (getopt_loop): Alter types to minimize casting elsewhere.
9316         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
9317         (test_getopt_long_posix): Likewise.
9318         (do_getopt_long): Add wrapper to minimize casting.
9319         * tests/test-atexit.c (clear_temp_file): Use void.
9320         * tests/test-areadlink-with-size.c (main): Declare unused
9321         arguments.
9322         * tests/test-areadlink.c (main): Likewise.
9323         * tests/test-areadlinkat-with-size.c (main): Likewise.
9324         * tests/test-areadlinkat.c (main): Likewise.
9325         * tests/test-canonicalize-lgpl.c (main): Likewise.
9326         * tests/test-canonicalize.c (main): Likewise.
9327         * tests/test-dirent-safer.c (main): Likewise.
9328         * tests/test-dirname.c (main): Likewise.
9329         * tests/test-dup2.c (main): Likewise.
9330         * tests/test-fchdir.c (main): Likewise.
9331         * tests/test-fcntl-h.c (main): Likewise.
9332         * tests/test-fcntl-safer.c (main): Likewise.
9333         * tests/test-fdopendir.c (main): Likewise.
9334         * tests/test-fdutimensat.c (main): Likewise.
9335         * tests/test-fflush.c (main): Likewise.
9336         * tests/test-filenamecat.c (main): Likewise.
9337         * tests/test-filevercmp.c (main): Likewise.
9338         * tests/test-fopen-safer.c (main): Likewise.
9339         * tests/test-fopen.c (main): Likewise.
9340         * tests/test-fpending.c (main): Likewise.
9341         * tests/test-fpurge.c (main): Likewise.
9342         * tests/test-freading.c (main): Likewise.
9343         * tests/test-fstatat.c (main): Likewise.
9344         * tests/test-fsync.c (main): Likewise.
9345         * tests/test-futimens.c (main): Likewise.
9346         * tests/test-getndelim2.c (main): Likewise.
9347         * tests/test-gettimeofday.c (main): Likewise.
9348         * tests/test-getopt.c (main): Likewise.
9349         * tests/test-i-ring.c (main): Likewise.
9350         * tests/test-inttypes.c (main): Likewise.
9351         * tests/test-link.c (main): Likewise.
9352         * tests/test-lstat.c (main): Likewise.
9353         * tests/test-math.c (main): Likewise.
9354         * tests/test-md5.c (main): Likewise.
9355         * tests/test-memchr2.c (main): Likewise.
9356         * tests/test-memrchr.c (main): Likewise.
9357         * tests/test-mkdir.c (main): Likewise.
9358         * tests/test-mkdirat.c (main): Likewise.
9359         * tests/test-mkfifoat.c (main): Likewise.
9360         * tests/test-open.c (main): Likewise.
9361         * tests/test-openat-safer.c (main): Likewise.
9362         * tests/test-openat.c (main): Likewise.
9363         * tests/test-quotearg.c (main): Likewise.
9364         * tests/test-rawmemchr.c (main): Likewise.
9365         * tests/test-readlink.c (main): Likewise.
9366         * tests/test-remove.c (main): Likewise.
9367         * tests/test-rename.c (main): Likewise.
9368         * tests/test-renameat.c (main): Likewise.
9369         * tests/test-rmdir.c (main): Likewise.
9370         * tests/test-sha1.c (main): Likewise.
9371         * tests/test-signal.c (main): Likewise.
9372         * tests/test-sigaction.c (main): Likewise.
9373         * tests/test-stat.c (main): Likewise.
9374         * tests/test-stat-time.c (main): Likewise.
9375         * tests/test-stddef.c (main): Likewise.
9376         * tests/test-stdint.c (main): Likewise.
9377         * tests/test-stdio.c (main): Likewise.
9378         * tests/test-stdlib.c (main): Likewise.
9379         * tests/test-strchrnul.c (main): Likewise.
9380         * tests/test-strerror.c (main): Likewise.
9381         * tests/test-string.c (main): Likewise.
9382         * tests/test-strtod.c (main): Likewise.
9383         * tests/test-strverscmp.c (main): Likewise.
9384         * tests/test-symlink.c (main): Likewise.
9385         * tests/test-symlinkat.c (main): Likewise.
9386         * tests/test-sys_stat.c (main): Likewise.
9387         * tests/test-sys_time.c (main): Likewise.
9388         * tests/test-time.c (main): Likewise.
9389         * tests/test-unistd.c (main): Likewise.
9390         * tests/test-unlink.c (main): Likewise.
9391         * tests/test-unlinkat.c (main): Likewise.
9392         * tests/test-utimens.c (main): Likewise.
9393         * tests/test-utimensat.c (main): Likewise.
9394         * tests/test-version-etc.c (main): Likewise.
9395         * tests/test-wchar.c (main): Likewise.
9396         * tests/test-wctype.c (main): Likewise.
9397         * tests/test-xprintf-posix.c (main): Likewise.
9398         * tests/test-posixtm.c (main): Likewise.
9399         (STREQ): Delete unused macro.
9400         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
9401         shadowed variables.
9402         * tests/test-memchr.c (main): Likewise.
9403
9404 2009-10-21  Eric Blake  <ebb9@byu.net>
9405
9406         areadlinkat: avoid failure on older glibc
9407         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
9408         rather than mis-comparing 0 against FUNC_RESULT of char*.
9409
9410 2009-10-21  Bruno Haible  <bruno@clisp.org>
9411
9412         * modules/stpncpy (License): Relicense under LGPLv2+.
9413         Reported by David Lutterkort <lutter@redhat.com>.
9414
9415 2009-10-20  Eric Blake  <ebb9@byu.net>
9416
9417         utimensat: work around Solaris 9 bug
9418         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
9419         has trailing slash bugs.
9420         * tests/test-lutimens.h (test_lutimens): Enhance test.
9421         * tests/test-utimens.h (test_utimens): Likewise.
9422         * doc/posix-functions/utime.texi (utime): Enhance documentation.
9423         * doc/posix-functions/utimes.texi (utimes): Likewise.
9424         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9425         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
9426         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
9427         * doc/posix-functions/futimens.texi (futimens): Likewise.
9428
9429         fdutimensat: new module
9430         * modules/fdutimensat: New file.
9431         * lib/fdutimensat.c (fdutimensat): Likewise.
9432         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
9433         * MODULES.html.sh (File system functions): Mention module.
9434         * modules/fdutimensat-tests: New test.
9435         * tests/test-fdutimensat.c: Likewise.
9436
9437         doc: regenerate INSTALL
9438         * doc/INSTALL: Reflect recent autoconf update.
9439         * doc/INSTALL.ISO: Likewise.
9440         * doc/INSTALL.UTF-8: Likewise.
9441
9442 2009-10-20  Pádraig Brady  <P@draigBrady.com>
9443
9444         acl: warn if ACL support is not detected
9445         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
9446
9447 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
9448
9449         * lib/nproc.h: Add extern "C" block for C++.
9450
9451 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
9452             Bruno Haible  <bruno@clisp.org>
9453
9454         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
9455         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
9456         * doc/posix-functions/isalpha.texi: Likewise.
9457         * doc/posix-functions/isblank.texi: Likewise.
9458         * doc/posix-functions/iscntrl.texi: Likewise.
9459         * doc/posix-functions/isdigit.texi: Likewise.
9460         * doc/posix-functions/isgraph.texi: Likewise.
9461         * doc/posix-functions/islower.texi: Likewise.
9462         * doc/posix-functions/isprint.texi: Likewise.
9463         * doc/posix-functions/ispunct.texi: Likewise.
9464         * doc/posix-functions/isspace.texi: Likewise.
9465         * doc/posix-functions/isupper.texi: Likewise.
9466         * doc/posix-functions/isxdigit.texi: Likewise.
9467
9468 2009-10-18  Bruno Haible  <bruno@clisp.org>
9469
9470         Tests for module 'isblank'.
9471         * modules/isblank-tests: New file.
9472         * tests/test-isblank.c: New file.
9473
9474         New module 'isblank'.
9475         * lib/isblank.c: New file.
9476         * m4/isblank.m4: New file.
9477         * modules/isblank: New file.
9478         * doc/posix-functions/isblank.texi: Mention the new module.
9479
9480 2009-10-18  Bruno Haible  <bruno@clisp.org>
9481
9482         New module 'ctype'.
9483         * lib/ctype.in.h: New file.
9484         * m4/ctype.m4: New file.
9485         * modules/ctype: New file.
9486         * doc/posix-headers/ctype.texi: Mention the new module.
9487
9488 2009-10-18  Jim Meyering  <meyering@redhat.com>
9489
9490         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
9491         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
9492         right after its initialization, rather than farther down.
9493         Keeping these in close proximity makes it easier to ensure
9494         that each such variable is initialized.  E.g.,
9495
9496             LIB_CLOCK_GETTIME=
9497             AC_SUBST([LIB_CLOCK_GETTIME])
9498
9499         This change also increments these serial numbers.
9500         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
9501         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
9502         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9503
9504 2009-10-18  Bruno Haible  <bruno@clisp.org>
9505
9506         Don't let environment variables perturb build.
9507         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
9508         (gl_PREREQ_GETHRXTIME): ... not here.
9509
9510 2009-10-18  Bruno Haible  <bruno@clisp.org>
9511
9512         Avoid symlink attack in localcharset module.
9513         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
9514         (O_NOFOLLOW): Define fallback.
9515         (get_charset_aliases): Don't open the file if it is a symbolic link.
9516         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
9517         gl_FCNTL_H.
9518         (gl_FCNTL_H): Require it.
9519         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
9520         * modules/localcharset (Files): Add m4/fcntl_h.m4.
9521         Reported by Fergal Glynn <fglynn@veracode.com>.
9522
9523 2009-10-18  Bruno Haible  <bruno@clisp.org>
9524
9525         Implement nproc for mingw.
9526         * lib/nproc.c: Include <windows.h>
9527         (num_processors): On native Windows platforms, try GetSystemInfo.
9528
9529 2009-10-18  Bruno Haible  <bruno@clisp.org>
9530
9531         Implement nproc for IRIX.
9532         * lib/nproc.c: Include <sys/sysmp.h>.
9533         (num_processors): On IRIX systems, try sysmp.
9534         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
9535
9536 2009-10-18  Bruno Haible  <bruno@clisp.org>
9537
9538         Implement nproc for HP-UX.
9539         * lib/nproc.c: Include <sys/pstat.h>
9540         (num_processors): On HP-UX systems, try pstat_getdynamic.
9541         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
9542         pstat_getdynamic.
9543
9544 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
9545             Bruno Haible  <bruno@clisp.org>
9546
9547         Implement nproc for NetBSD, OpenBSD.
9548         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
9549         (ARRAY_SIZE): New macro.
9550         (num_processors): On BSD systems, try sysctl of HW_NCPU.
9551         * m4/nproc.m4: New file.
9552         * modules/nproc (Files): Add m4/nproc.m4.
9553         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
9554         (Makefile.am): Instead, augment lib_SOURCES.
9555
9556 2009-10-18  Bruno Haible  <bruno@clisp.org>
9557
9558         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
9559         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
9560         sys/param.h.
9561
9562 2009-10-16  Eric Blake  <ebb9@byu.net>
9563
9564         utimensat: new module
9565         * modules/utimensat: New file.
9566         * lib/utimensat.c (utimensat): Likewise.
9567         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
9568         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
9569         so we can work around Linux bugs.
9570         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9571         * modules/sys_stat (Makefile.am): Substitute them.
9572         * lib/sys_stat.in.h (utimensat): Declare it.
9573         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9574         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9575         * modules/utimensat-tests: New test.
9576         * tests/test-utimensat.c: Likewise.
9577
9578         utimens: let lutimens work on non-symlinks
9579         * lib/utimens.c (lutimens): Fall back to utimens rather than
9580         failing with ENOSYS, when file is not a symlink.
9581         (utimens): Reduce redirection.
9582         * tests/test-lutimens.h (test_lutimens): Update test to cover
9583         non-symlinks.
9584         * tests/test-utimens.h (test_utimens): Update test to cover
9585         symlinks.
9586         * tests/test-utimens.c (main): Update caller.
9587
9588         utimens: cache whether utimensat syscall works
9589         * lib/utimens.c (utimensat_works_really): New cache variable.
9590         (fdutimens, lutimens): Use it to avoid failing syscall.
9591
9592         test-stat-time, test-utimens: improve portability
9593         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
9594         ext4 on alpha, and for cygwin.
9595         * tests/test-utimens-common.h: New file.
9596         (nap): Factor delays into single function.
9597         * tests/test-lutimens.h (test_lutimens): Use new header.
9598         * tests/test-futimens.h (test_futimens): Likewise.
9599         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
9600         timestamps to occur from same machine, as was done previously for
9601         test_utimens.
9602         * modules/utimens-tests (Files): Ship new file.
9603         * modules/futimens-tests (Files): Likewise.
9604         Reported in part by Jim Meyering.
9605
9606         sys_stat: sort replacement declarations
9607         * lib/sys_stat.in.h: Sort declarations.
9608         * lib/futimens.c (futimens): Fix typo.
9609
9610 2009-10-15  Jim Meyering  <meyering@redhat.com>
9611
9612         don't let environment settings perturb build
9613         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
9614         could cause a configure-time and/or build-time malfunction.
9615         Typically, a configure-time function-in-library test is performed
9616         via code like this:
9617
9618           LIB_VAR=
9619           AC_SUBST([LIB_VAR])
9620           prefix_saved_LIBS=$LIBS
9621             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
9622                        [test "$ac_cv_search_FUNC" = "none required" ||
9623                         LIB_VAR=$ac_cv_search_FUNC])
9624           LIBS=$prefix_saved_LIBS
9625
9626         However, in each of the files affected by this change, the LIB_VAR=
9627         initialization was omitted.  Thus, when set in the environment, its
9628         value would propagate into generated Makefiles when FUNC is not found
9629         in LIB_NAME.
9630         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
9631         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
9632         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9633
9634 2009-10-14  Eric Blake  <ebb9@byu.net>
9635
9636         fchdir: avoid infinite recursion in mingw
9637         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
9638         recursing.
9639
9640         test-stat-time: port to mingw
9641         * tests/test-stat-time.c (force_unlink): Return a value.
9642         (test_ctime) [W32]: Fix compilation error.
9643         (nap): Don't call usleep with too large an argument.  Use
9644         force_unlink.
9645         * doc/pastposix-functions/usleep.texi (usleep): Document the
9646         portability issue.
9647
9648 2009-10-13  Jim Meyering  <meyering@redhat.com>
9649
9650         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
9651         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
9652         * modules/pipe-filter-ii: Likewise.
9653         * modules/sys_socket-tests: Likewise.
9654         * modules/tsearch-tests: Likewise.
9655         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
9656         (check): Depend on it.
9657
9658 2009-10-12  Eric Blake  <ebb9@byu.net>
9659
9660         utimens-tests: port to NFS file systems
9661         * tests/test-utimens.h (test_utimens): Refactor utimecmp
9662         comparisons to avoid spurious failures from timestamp drift
9663         between NFS machines.
9664
9665 2009-10-12  Eric Blake  <ebb9@byu.net>
9666
9667         stat-time-tests: minor cleanups
9668         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
9669         * tests/test-stat-time.c (nap): Separate assignment from call.
9670         Suggested by Paolo Bonzini and Bruno Haible.
9671
9672         sys_stat: guarantee struct timespec
9673         * lib/sys_stat.in.h (includes): Always include <time.h>
9674         * modules/sys_stat (Depends-on): Add time.
9675         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
9676         mode_t permission values.
9677         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
9678         get at subsecond timestamps.
9679
9680 2009-10-10  Eric Blake  <ebb9@byu.net>
9681
9682         futimens: new module
9683         * modules/futimens: New file.
9684         * lib/futimens.c (futimens): Likewise.
9685         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
9686         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
9687         we can work around Linux bugs.
9688         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9689         * modules/sys_stat (Makefile.am): Substitute them.
9690         * lib/sys_stat.in.h (futimens): Declare it.
9691         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9692         * doc/posix-functions/futimens.texi (futimens): Likewise.
9693         * modules/futimens-tests: New test.
9694         * tests/test-futimens.c: Likewise.
9695
9696         utimens: introduce fdutimens
9697         * lib/utimens.h (fdutimens): New prototype.
9698         * lib/utimens.c (gl_futimens): Move guts...
9699         (fdutimens): ...to new interface.
9700         * tests/test-utimens.c (do_fdutimens): Use it.
9701
9702         utimens: add UTIME_NOW and UTIME_OMIT support
9703         * lib/utimens.c (validate_timespec, update_timespec): New helper
9704         functions.
9705         (gl_futimens, lutimens): Use them.
9706         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
9707         stdbool, sys_stat.
9708         (Link): Mention resulting library dependency.
9709         * modules/utimecmp (Link): Likewise.
9710         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
9711         (Makefile.am): Pick up library dependency.
9712         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
9713         definition.
9714         * tests/test-sys_stat.c: Test the definitions.
9715         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
9716         * NEWS: Document library dependency.
9717
9718         utimecmp: support symlink timestamps
9719         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
9720         hashing when possible.  Use pathconf when available.
9721         (SYSCALL_RESOLUTION): Recognize tighter resolution.
9722         * modules/utimecmp (Depends-on): Add lstat.
9723
9724         utimens: add lutimens interface
9725         * lib/utimens.c (lutimens): New function.
9726         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
9727         * lib/utimens.h (lutimens): Declare new interface.
9728         * tests/test-utimens.c (main): Enhance test.
9729         * tests/test-lutimens.h (test_lutimens): New file.
9730         * modules/utimens-tests (Files): Distribute it.
9731         (Depends-on): Add symlink.
9732         (configure.ac): Check for usleep.
9733
9734         utimens: validate futimens usage
9735         * lib/utimens.c (gl_futimens): Require valid fd up front, using
9736         fewer syscalls on failure later on.  Avoid compiler warning on
9737         mingw.
9738         * modules/utimens (Depends-on): Add dup2.
9739
9740         utimens: add test
9741         * modules/utimens-tests: New test.
9742         * tests/test-utimens.h: New file.
9743         * tests/test-futimens.h: Likewise.
9744         * tests/test-utimens.c: Likewise.
9745
9746         doc: mention timestamp portability issues
9747         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
9748         instead.
9749         * doc/posix-functions/utime.texi (utime): Likewise.
9750         * doc/posix-functions/utimes.texi (utimes): Likewise.
9751         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
9752         instead.
9753         * doc/posix-functions/futimens.texi (futimens): Mention utimens
9754         module.
9755         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9756         Mention weakness with symlink timestamps.
9757         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
9758         to utimensat/futimens instead.
9759         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
9760
9761         test-dup2: enhance test
9762         * tests/test-dup2.c (main): Also check AT_FDCWD.
9763
9764         test-stat-time: avoid more spurious failures
9765         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
9766         xfs; and avoid race if the two timestamps cross quantization edge.
9767
9768         relocatable: prefer 'file system' over 'filesystem'
9769         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
9770         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
9771         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
9772         * doc/relocatable.texi (Enabling Relocatability): Likewise.
9773         * lib/relocatable.c (compute_curr_prefix): Likewise.
9774
9775 2009-10-10  Jim Meyering  <meyering@redhat.com>
9776
9777         stat-time-tests: check for the usleep function
9778         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
9779
9780 2009-10-10  Bruno Haible  <bruno@clisp.org>
9781
9782         * modules/xnanosleep: Put the Link section after the Include section.
9783
9784 2009-10-09  Eric Blake  <ebb9@byu.net>
9785
9786         dup2: work around FreeBSD 6.1 bug
9787         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
9788         * doc/posix-functions/dup2.texi (dup2): Document it.
9789         Reported by Nelson H. F. Beebe and Jim Meyering.
9790
9791         test-stat-time: port to buggy NFS clients
9792         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
9793         (test_ctime): Also skip test if mtime and ctime are skewed.
9794
9795         maint: prefer 'file system' over 'filesystem'
9796         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
9797         * doc/posix-functions/lstat.texi (lstat): Likewise.
9798         * lib/file-has-acl.c (file_has_acl): Likewise.
9799         * lib/fwriteerror.c [TEST]: Likewise.
9800         * tests/test-areadlink.h (test_areadlink): Likewise.
9801         * tests/test-areadlinkat-with-size.c (main): Likewise.
9802         * tests/test-areadlinkat.c (main): Likewise.
9803         * tests/test-canonicalize-lgpl.c (main): Likewise.
9804         * tests/test-canonicalize.c (main): Likewise.
9805         * tests/test-fstatat.c (main): Likewise.
9806         * tests/test-linkat.c (main): Likewise.
9807         * tests/test-lstat.h (test_lstat_func): Likewise.
9808         * tests/test-mkdir.h (test_mkdir): Likewise.
9809         * tests/test-readlink.h (test_readlink): Likewise.
9810         * tests/test-remove.c (main): Likewise.
9811         * tests/test-rename.h (test_rename): Likewise.
9812         * tests/test-renameat.c (main): Likewise.
9813         * tests/test-rmdir.h (test_rmdir_func): Likewise.
9814         * tests/test-symlink.h (test_symlink): Likewise.
9815         * tests/test-symlinkat.c (main): Likewise.
9816         * tests/test-unlink.h (test_unlink_func): Likewise.
9817         * tests/test-unlinkat.c (main): Likewise.
9818
9819         maint: make realtime library usage explicit
9820         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
9821         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
9822         * modules/settime (Link): Likewise.
9823         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
9824
9825         test-stat-time: speed up execution
9826         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
9827         warning on mingw.
9828         (nap): New helper function.
9829         (prepare_test): Use it to reduce sleep time.
9830         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
9831         execution.
9832         * modules/stat-time-tests (configure.ac): Check for usleep.
9833
9834 2009-10-09  Jim Meyering  <meyering@redhat.com>
9835
9836         selinux-h: always use getfilecon wrappers
9837         * lib/getfilecon.c: New file.
9838         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
9839         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
9840         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
9841         (fgetfilecon): Provide a stub.
9842         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
9843         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
9844         file unconditionally.
9845         When <selinux/selinux.h> is found, arrange to use wrappers.
9846         * modules/selinux-h (Files): Add getfilecon.c.
9847         (Makefile.am): Substitute include-next-related bits
9848         into the now-always-generated selinux/selinux.h file.
9849         * doc/glibc-functions/lgetfilecon.texi: New file.
9850         * doc/glibc-functions/fgetfilecon.texi: New file.
9851         * doc/glibc-functions/getfilecon.texi: New file.
9852         * doc/glibc-functions/getfilecon-desc.texi: New file.
9853         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
9854         which to pull in the new files.
9855         * MODULES.html.sh (Misc): Add selinux-h.
9856
9857 2009-10-08  Jim Meyering  <meyering@redhat.com>
9858
9859         unistd: fix comment typo
9860         * lib/unistd.in.h (euidaccess): Fix a comment typo.
9861
9862 2009-10-08  Eric Blake  <ebb9@byu.net>
9863
9864         areadlink: use SIZE_MAX consistently
9865         * modules/areadlink (Depends-on): Add stdint.
9866         * modules/areadlink-with-size (Depends-on): Likewise.
9867         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
9868         gives NULL; drop sys/types, since unistd gives size_t; and add
9869         stdint for SIZE_MAX.
9870         (SIZE_MAX): Rely on headers.
9871         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
9872         and add stdint.
9873         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
9874         (SIZE_MAX): Likewise.
9875         (INITIAL_BUF_SIZE): Turn into enum.
9876         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
9877
9878 2009-10-08  Jim Meyering  <meyering@redhat.com>
9879
9880         areadlinkat: avoid compilation failure
9881         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
9882         Fix typo in comment.
9883
9884 2009-10-07  Eric Blake  <ebb9@byu.net>
9885
9886         areadlinkat-with-size: new module
9887         * modules/areadlinkat-with-size: New module.
9888         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
9889         * lib/areadlink.h (areadlinkat): Declare it.
9890         * MODULES.html.sh (File system functions): Mention it.
9891         * modules/areadlinkat-with-size-tests: New test.
9892         * tests/test-areadlinkat-with-size.c: New file.
9893
9894         xreadlinkat: new module
9895         * modules/xreadlinkat: New module.
9896         * lib/xreadlinkat.c (xreadlinkat): New file.
9897         * lib/xreadlink.h (xreadlinkat): Declare it.
9898         * MODULES.html.sh (File system functions): Mention it.
9899
9900         areadlinkat: new module
9901         * lib/at-func.c (FUNC_FAIL): New define.
9902         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
9903         * modules/areadlinkat: New module.
9904         * lib/linkat.c (areadlinkat): Move...
9905         * lib/areadlinkat.c (areadlinkat): ...to new file.
9906         * lib/areadlink.h (areadlinkat): Declare it.
9907         * modules/linkat (Depends-on): Add areadlinkat.
9908         * MODULES.html.sh (File system functions): Mention it.
9909         * modules/areadlinkat-tests: New test.
9910         * tests/test-areadlinkat.c: New file.
9911
9912         areadlink, areadlink-with-size: add tests
9913         * modules/areadlink-tests: New test.
9914         * modules/areadlink-with-size-tests: Likewise.
9915         * tests/test-areadlink.h: New file.
9916         * tests/test-areadlink.c: Likewise.
9917         * tests/test-areadlink-with-size.c: Likewise.
9918
9919         maint: minor cleanups
9920         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
9921         _UNUSED_PARAMETER_ instead.
9922         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
9923         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
9924         * modules/linkat-tests (Files): Distribute test-link.h.
9925
9926         openat, utimens: whitespace cleanup
9927         * lib/openat.c: Prefer space throughout, rather than mix of 8
9928         spaces vs. tabs.
9929         * lib/at-func.c: Likewise.
9930         * lib/utimens.c: Likewise.
9931
9932         openat: avoid using wrong fd
9933         * lib/openat.c (openat_permissive): Reject user's fd if saving the
9934         working directory chooses same fd.
9935         * lib/at-func.c (AT_FUNC_NAME): Likewise.
9936
9937         mkdir, mkdirat: fix cygwin 1.5.x bug
9938         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
9939         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
9940         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
9941         bug.
9942         (gl_PREREQ_MKDIR): Delete unused macro.
9943         * modules/mkdir (Files): Track file rename.
9944         (configure.ac): Update macro name.
9945         * modules/openat (Depends-on): Add mkdir.
9946         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
9947
9948         mkdir, mkdirat: add tests
9949         * modules/mkdir-tests: New test.
9950         * tests/test-mkdir.h: New file.
9951         * tests/test-mkdir.c: Likewise.
9952         * tests/test-mkdirat.c: Likewise.
9953         * modules/openat-tests (Files): Add new files.
9954         (Makefile.am): Run new test.
9955
9956 2009-10-06  Eric Blake  <ebb9@byu.net>
9957
9958         doc: tweak *at function documentation
9959         * doc/posix-functions/faccessat.texi (faccessat): Mention
9960         known issue with replacement.
9961         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
9962         * doc/posix-functions/linkat.texi (linkat): Likewise.
9963         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
9964         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
9965         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9966         * doc/posix-functions/renameat.texi (renameat): Likewise.
9967         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
9968
9969         openat: fix GNU/Hurd bug in unlinkat
9970         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
9971         broken.
9972         * doc/posix-functions/unlink.texi (unlink): Document this.
9973         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
9974
9975         fdopendir: fix GNU/Hurd bug
9976         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
9977         allowing non-directory fds.
9978         * lib/fdopendir.c (rpl_fdopendir): Work around it.
9979         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
9980         * modules/dirent (Makefile.am): Substitute it.
9981         * lib/dirent.in.h (fdopendir): Declare replacement.
9982         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
9983         * tests/test-fdopendir.c (main): Test something other than
9984         /dev/null, since on Hurd that behaves like a directory.
9985
9986         test-symlink: port to GNU/Hurd
9987         * tests/test-symlink.h (test_symlink): Relax expected errno.
9988
9989         doc: tweak more cygwin information
9990         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
9991         now compatible with glibc.
9992         * doc/posix-functions/getopt.texi (getopt): Likewise.
9993
9994         getopt-gnu: add another test
9995         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
9996         guarantee behavior relied on by m4.
9997         * tests/test-getopt.c (main): Use it.
9998         * modules/getopt-posix-tests (Depends-on): Add setenv.
9999         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
10000
10001         getopt: fix compilation on darwin
10002         * lib/getopt.in.h (includes): Leave breadcrumbs during system
10003         include.
10004         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
10005         Reported by Ludovic Courtès.
10006
10007 2009-10-06  Bruno Haible  <bruno@clisp.org>
10008
10009         * modules/size_max (Description): Discourage its use.
10010         Reported by Simon Josefsson.
10011
10012 2009-10-06  Jim Meyering  <meyering@redhat.com>
10013
10014         linkat: avoid compilation failure
10015         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
10016
10017 2009-10-05  Eric Blake  <ebb9@byu.net>
10018
10019         linkat: support Linux 2.6.17
10020         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
10021         linkat on Linux, but allow cache variable override.
10022         * lib/linkat.c (rpl_linkat): Define override.
10023         * modules/linkat (Depends-on): Add symlinkat.
10024         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
10025         * modules/unistd (Makefile.am): Substitute it.
10026         * lib/unistd.in.h (linkat): Declare replacement.
10027         Reported by Pádraig Brady.
10028
10029         quotearg: port test to systems with C.UTF-8 locale
10030         * tests/test-quotearg.c (struct result_strings): Add another
10031         member, differentiating between C.ASCII and C.UTF-8 handling.
10032         (compare_strings): Add parameter.
10033         (main): Adjust all callers.
10034
10035         getopt: avoid clash with FreeBSD _getopt_internal
10036         * lib/getopt.in.h (_getopt_internal): Override the name.
10037         * lib/getopt_int.h (includes): Pick up any overrides.
10038         Reported by Reuben Thomas.
10039
10040         hash: allow C89 compilation
10041         * lib/hash.c (check_tuning): Move declaration before statement.
10042         Reported by Reuben Thomas.
10043
10044 2009-10-05  Karl Berry  <karl@gnu.org>
10045
10046         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
10047
10048 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
10049             Bruno Haible  <bruno@clisp.org>
10050
10051         * lib/uname.c (uname): Use a table-driven algorithm to compute
10052         Windows NT versions.
10053
10054 2009-10-04  Bruno Haible  <bruno@clisp.org>
10055
10056         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
10057         program_invocation_short_name.
10058         * modules/progname (configure.ac): Test for presence of
10059         program_invocation_short_name.
10060         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
10061
10062 2009-10-04  Bruno Haible  <bruno@clisp.org>
10063
10064         * lib/progname.c (set_program_name): Fix comment.
10065         Reported by Jim Meyering.
10066
10067 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
10068             Bruno Haible  <bruno@clisp.org>
10069
10070         * lib/uname.c: Include <string.h>.
10071         (uname): Do only one call to GetVersionEx in the common case.
10072
10073 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
10074             Bruno Haible  <bruno@clisp.org>
10075
10076         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
10077         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
10078         (uname): Add support for Windows CE and various non-x86 CPU types.
10079
10080 2009-10-03  Bruno Haible  <bruno@clisp.org>
10081
10082         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
10083         invocation to tests/configure.ac.
10084         Reported by Ian Beckwith <ianb@erislabs.net>.
10085
10086 2009-10-02  Eric Blake  <ebb9@byu.net>
10087
10088         fchdir: avoid compiler warning
10089         * lib/fchdir.c (canonicalize_file_name)
10090         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
10091
10092         test-open: support mingw errno values
10093         * tests/test-open.h (test_open): Relax test.
10094         * tests/test-fopen.h (test_fopen): Likewise.
10095         * tests/test-openat-safer.c (main): Likewise.
10096
10097         open: fix opening directory on mingw
10098         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
10099
10100         test-open: on GNU/Hurd, /dev/null is a directory
10101         * tests/test-fopen.h (main): Rename...
10102         (test_fopen): ...to this.  Use a guaranteed non-directory when
10103         confirming open behavior on trailing slash.
10104         * tests/test-openat-safer.c (main): Likewise.
10105         * tests/test-open.h (main): Likewise....
10106         (test_open): ...to this.
10107         * tests/test-fopen.c (main): Adjust caller.
10108         * tests/test-fopen-safer.c (main): Likewise.
10109         * tests/test-open.c (main): Likewise.
10110         * tests/test-fcntl-safer.c (main): Likewise.
10111         Reported by Samuel Thibault.
10112
10113         rename, fchdir: don't ignore chdir failure
10114         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
10115         * lib/rename.c (rpl_rename) [W32]: Likewise.
10116         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
10117         an empty destination directory if source cannot be renamed,
10118         although there is still possibility for failure.
10119         * doc/posix-functions/rename.texi (rename): Document the race.
10120         Reported by Jim Meyering.
10121
10122         maint: cleanup whitespace in recent commits
10123         * lib/rename.c (rpl_rename): Remove tabs.
10124         * tests/test-link.h (test_link): Likewise.
10125         * lib/fchdir.c (get_name): Likewise.
10126         Reported by Jim Meyering.
10127
10128 2009-10-02  Ben Pfaff  <blp@gnu.org>
10129
10130         relocatable-prog-wrapper: Add missing dependency on
10131         double-slash-root.
10132         * modules/relocatable-prog-wrapper: Add dependency.
10133         Reported by Ian Beckwith <ianb@erislabs.net>.
10134
10135 2009-10-02  Eric Blake  <ebb9@byu.net>
10136
10137         renameat: fix Solaris bugs
10138         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
10139         needed fixing.
10140         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
10141         * modules/stdio (Makefile.am): Substitute it.
10142         * lib/stdio.in.h (renameat): Declare replacement.
10143         * lib/renameat.c (rpl_renameat): Implement fix.
10144
10145         renameat: new module
10146         * modules/renameat: New file.
10147         * lib/renameat.c (renameat): Likewise.
10148         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
10149         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
10150         * modules/stdio (Makefile.am): Substitute them.
10151         * lib/stdio.in.h (renameat): Declare it.
10152         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10153         * doc/posix-functions/renameat.texi (renameat): Likewise.
10154         * modules/renameat-tests: New test.
10155         * tests/test-renameat.c: Likewise.
10156
10157         rename: fix mingw bugs
10158         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
10159         directory overwrite bugs.
10160
10161         rename: fix another cygwin 1.5 bug
10162         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
10163         checks.
10164         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
10165         unnecessary cygwin workarounds.  Also work around bug with moving
10166         full directory onto an empty one.
10167         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
10168
10169         rename-dest-slash: merge into rename module
10170         * modules/rename-dest-slash (Status): Mark obsolete.
10171         (Depends-on): Add rename.
10172         (Files): Let rename do it all.
10173         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
10174         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
10175         * m4/rename-dest-slash.m4: ...so this file can be deleted.
10176         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
10177         * lib/rename.c (rpl_rename): Update comments.
10178
10179         rename: fix cygwin 1.5.x bugs
10180         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
10181         * lib/rename.c (rpl_rename): Work around them.
10182         * modules/rename (Depends-on): Add same-inode.
10183
10184         rename: fix Solaris 10 bug
10185         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
10186         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
10187         was the only bug.
10188
10189         rename: fix Solaris 9 bug
10190         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
10191         on non-directory.  Avoid calling exit.
10192         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
10193         strdup.
10194         * modules/rename-tests (Depends-on): Drop lstat.
10195         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
10196         (gl_PREREQ_RENAME): Delete unused macro.
10197
10198         rename-dest-slash: fix NetBSD bug
10199         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
10200         links.
10201         * modules/rename-dest-slash (Depends-on): Add same-inode.
10202
10203         rename-tests: new test, exposes several platform bugs
10204         * modules/rename-tests: New file.
10205         * tests/test-rename.h: Likewise.
10206         * tests/test-rename.c: Likewise.
10207         * doc/posix-functions/rename.texi (rename): Improve documentation,
10208         including bugs that will eventually be fixed in gnulib.
10209
10210 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
10211
10212         * lib/uname.c: Include <stdlib.h>
10213         (uname): Assume version info is available.
10214
10215 2009-10-02  Jim Meyering  <meyering@redhat.com>
10216
10217         gnu-web-doc-update: correct --help output
10218         * build-aux/gnu-web-doc-update: Make --help output relevant.
10219
10220         gnu-web-doc-update: add standard options
10221         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
10222
10223         gnu-web-doc-update: New module.
10224         Use this script to automatically update the on-line web documentation
10225         for your GNU project at http://www.gnu.org/software/$pkg/manual/
10226         * modules/gnu-web-doc-update: New file, from coreutils.
10227         * build-aux/gnu-web-doc-update: New script.
10228
10229 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
10230
10231         link: LoadLibrary is not needed.
10232         * lib/link.c: Use GetModuleHandle.
10233
10234 2009-10-01  Eric Blake  <ebb9@byu.net>
10235
10236         getopt: bump serial number
10237         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
10238         change.
10239
10240         tests: tighten link, rmdir, and remove tests
10241         * tests/test-link.h (includes): No need to use <config.h> here.
10242         Clean up if directory hard link was created, otherwise test for
10243         trailing '.'.
10244         * tests/test-linkat.c (main): Simplify.
10245         * tests/test-remove.c (main): Enhance test for trailing '.'.
10246         * tests/test-rmdir.h (test_rmdir_func): Likewise.
10247
10248 2009-10-01  Jim Meyering  <meyering@redhat.com>
10249
10250         maint.mk: requiring "make major" was annoying, for a "minor" release.
10251         What is intended is "stable", to contrast with alpha and beta,
10252         so require "make stable", not "make major".
10253         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
10254         (get_tool_versions): Likewise.
10255         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
10256
10257 2009-09-30  Ben Pfaff  <blp@gnu.org>
10258
10259         Fix broken build of replacement for Windows tmpfile().
10260         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
10261         flags argument added along with the 'mkostemp' module.
10262
10263 2009-09-28  Bruno Haible  <bruno@clisp.org>
10264
10265         Avoid identifier clash with POSIX function 'remove' defined as a macro.
10266         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
10267         to 'remove_elt'.
10268         (gl_list_remove): Update.
10269         * lib/gl_list.c (gl_list_remove): Update.
10270         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
10271         to 'remove_elt'.
10272         (gl_oset_remove): Update.
10273         * lib/gl_list.c (gl_oset_remove): Update.
10274         Reported by Eric Blake.
10275
10276 2009-09-28  Eric Blake  <ebb9@byu.net>
10277
10278         doc: mention yet more cygwin 1.7 status
10279         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
10280         cygwin.
10281         * doc/glibc-functions/execvpe.texi (execvpe): New file.
10282         * doc/gnulib.texi (Glibc unistd.h): Mention it.
10283
10284         argp: fix test failure
10285         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
10286         that are not upper-case.  Pass correct range to tolower.
10287
10288 2009-09-27  Jim Meyering  <meyering@redhat.com>
10289
10290         test-yesno: work around sparc-dash here-document infelicity
10291         Without this change, the literal \177 byte in a here document
10292         would make dash 0.5.5.1-3 access uninitialized memory.
10293         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
10294         Instead, use a marker, "@", and filter through tr to create the desired
10295         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
10296
10297 2009-09-27  Bruno Haible  <bruno@clisp.org>
10298
10299         Disable untested support for new flavours of ACLs on AIX.
10300         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
10301         progress.
10302         * lib/set-mode-acl.c (qset_acl): Likewise.
10303
10304 2008-12-07  Bruno Haible  <bruno@clisp.org>
10305
10306         Add support for new flavours of ACLs on AIX. (Untested.)
10307         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
10308         (file_has_acl): Add support for newer AIX.
10309         * lib/set-mode-acl.c (qset_acl): Likewise.
10310         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
10311         Rainer Tammer <tammer@tammer.net>.
10312
10313 2009-09-26  Eric Blake  <ebb9@byu.net>
10314
10315         argp: fix compilation of getopt
10316         * lib/getopt.in.h (includes): Use different guard than glibc.
10317         Reported by Sergey Poznyakoff.
10318
10319         doc: mention more cygwin 1.7 status
10320         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
10321         bug.
10322         * doc/posix-functions/execl.texi (execl): Likewise.
10323         * doc/posix-functions/execle.texi (execle): Likewise.
10324         * doc/posix-functions/execlp.texi (execlp): Likewise.
10325         * doc/posix-functions/execv.texi (execv): Likewise.
10326         * doc/posix-functions/execve.texi (execve): Likewise.
10327         * doc/posix-functions/execvp.texi (execvp): Likewise.
10328         * doc/glibc-functions/canonicalize_file_name.texi
10329         (canonicalize_file_name): Cygwin 1.7 now provides this.
10330         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
10331         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
10332         on AT_SYMLINK_NOFOLLOW.
10333
10334 2009-09-24  Eric Blake  <ebb9@byu.net>
10335
10336         test-linkat: make test more robust
10337         * tests/test-linkat.c (main): Avoid collision with EEXIST.
10338
10339         getopt: fix inclusion guards for cygwin
10340         * modules/getopt-posix (Depends-on): Add include-next.
10341         (Makefile.am): Substitute more items in replacement header.
10342         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
10343         <getopt.h>.
10344         * lib/getopt.in.h (includes): Use split inclusion guard, and
10345         prefer <getopt.h> over include <unistd.h> when one is present.
10346         (option): Also override name of 'struct option'.
10347
10348         same-inode: revert prior change; it is not yet ready
10349         * NEWS: Undo mention of this change.
10350         * lib/same-inode.h (same-inode.h): Undo tri-state change.
10351         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
10352         * lib/cycle-check.c (cycle_check): Likewise.
10353         * lib/same.c (same_name): Likewise.
10354         * lib/at-func2.c (at_func2): Likewise.
10355
10356 2009-09-23  Eric Blake  <ebb9@byu.net>
10357
10358         linkat: new module
10359         * modules/linkat: New file.
10360         * lib/at-func2.c (at_func2): Likewise.
10361         * lib/linkat.c (linkat): Likewise.
10362         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
10363         * lib/openat-priv.h (at_func2): Add declaration.
10364         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
10365         * modules/unistd (Makefile.am): Substitute them.
10366         * lib/unistd.in.h (linkat): Declare it.
10367         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10368         * doc/posix-functions/linkat.texi (linkat): Likewise.
10369         * doc/posix-functions/link.texi (link): Tweak wording.
10370         * tests/test-link.c (main): Move guts...
10371         * tests/test-link.h (test_link): ...into new file.
10372         * modules/linkat-tests: New test.
10373         * tests/test-linkat.c: Likewise.
10374         * modules/link-tests (Files): Ship new file.
10375         (Depends-on): Add stdbool.
10376
10377         dirname: add library-safe mdir_name
10378         * lib/dirname.h (mdir_name): New prototype.
10379         * lib/dirname.c (dir_name): Move guts...
10380         (mdir_name): ...to new function that avoids xalloc_die.
10381
10382         fchdir: another mingw fix
10383         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
10384         * lib/fchdir.c (get_name): New helper method; skips canonicalize
10385         on mingw (where it has not yet been ported), and make it optional
10386         elsewhere.
10387         (_gl_register_fd): Use it.
10388
10389         same-inode: make SAME_INODE tri-state, to port to mingw
10390         * NEWS: Mention this change.
10391         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
10392         st_ino always being 0.
10393         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
10394         * lib/cycle-check.c (cycle_check): Likewise.
10395         * lib/same.c (same_name): Likewise.
10396
10397         lstat: avoid mingw compilation error
10398         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
10399         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
10400         lstat ourselves.
10401         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
10402         was adequate.
10403         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
10404         the checks for lstat.
10405         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
10406
10407         link: fix test failure on Solaris 9
10408         * lib/link.c (rpl_link): Don't assume link will catch bogus
10409         trailing slash on source.
10410
10411         test-symlinkat: enhance test
10412         * tests/test-readlink.c (main): Move guts...
10413         * tests/test-readlink.h (test_readlink): ...into new file.
10414         * tests/test-symlink.c (main): Move guts...
10415         * tests/test-symlink.h (test_symlink): ...into new file.
10416         * tests/test-symlinkat.c (main): Use new files for further
10417         coverage.
10418         (do_symlink, do_readlink): New helper functions.
10419         * modules/symlink-tests (Files): Ship new file.
10420         (Depends-on): Add stdbool.
10421         * modules/readlink-tests (Files): Ship new file.
10422         (Depends-on): Add stdbool.
10423         * modules/symlinkat-tests (Files): Use new files.
10424
10425 2009-09-23  Eric Blake  <ebb9@byu.net>
10426
10427         readlink: document portability issue with symlink length
10428         * doc/posix-functions/lstat.texi (lstat): Mention that some file
10429         systems have bogus st_size on symlinks, and mention the
10430         areadlink-with-size module.
10431         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
10432         * doc/posix-functions/readlink.texi (readlink): Mention the
10433         areadlink module, and ERANGE failure.
10434         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10435         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
10436
10437         readlink: fix Solaris 9 bug with trailing slash
10438         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
10439         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
10440         * doc/posix-functions/readlink.texi (readlink): Document this.
10441         * modules/readlink-tests: New test.
10442         * tests/test-readlink.c: Likewise.
10443
10444         readlink: fix cygwin 1.5.x bug with return type
10445         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
10446         * lib/unistd.in.h (readlink): Use ssize_t.
10447         * lib/readlink.c (readlink): Likewise.
10448         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10449         * modules/unistd (Makefile.am): Substitute it.
10450         * lib/unistd.in.h (readlink): Declare replacement.
10451         * doc/posix-functions/readlink.texi (readlink): Document this.
10452
10453         symlink: use throughout gnulib
10454         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
10455         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
10456         symlink is not used.
10457         * modules/symlinkat (Depends-on): Add symlink.
10458         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
10459         * modules/canonicalize-tests (Depends-on): Likewise.
10460         * modules/lstat-tests (Depends-on): Likewise.
10461         * modules/openat-tests (Depends-on): Likewise.
10462         * modules/remove-tests (Depends-on): Likewise.
10463         * modules/rmdir-tests (Depends-on): Likewise.
10464         * modules/unlink-tests (Depends-on): Likewise.
10465         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
10466         * tests/test-canonicalize.c (symlink): Likewise.
10467         * tests/test-fstatat.c (symlink): Likewise.
10468         * tests/test-lstat.c (symlink): Likewise.
10469         * tests/test-remove.c (symlink): Likewise.
10470         * tests/test-rmdir.c (symlink): Likewise.
10471         * tests/test-unlink.c (symlink): Likewise.
10472         * tests/test-unlinkat.c (symlink): Likewise.
10473
10474         symlink: new module, for Solaris 9 bug
10475         * modules/symlink: New file.
10476         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
10477         * lib/symlink.c: Likewise.
10478         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
10479         * modules/unistd (Makefile.am): Substitute them.
10480         * lib/unistd.in.h (symlink): Declare replacement.
10481         * MODULES.html.sh (File system functions): Mention it.
10482         * doc/posix-functions/symlink.texi (symlink): Likewise.
10483         * modules/symlink-tests: New test.
10484         * tests/test-symlink.c: Likewise.
10485
10486 2009-09-23  Bruno Haible  <bruno@clisp.org>
10487
10488         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
10489         when needed.
10490         Test case: gnulib-tool --import --with-tests atexit inttypes.
10491         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
10492
10493 2009-09-23  Bruno Haible  <bruno@clisp.org>
10494
10495         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
10496         subcommand, not in a subshell.
10497
10498 2009-09-22  Eric Blake  <ebb9@byu.net>
10499
10500         unistd: sort replacement declarations
10501         * lib/unistd.in.h: Sort declarations.
10502
10503         open, openat: minor optimization
10504         * lib/open.c (open): If open succeeded, len is non-zero.
10505         * lib/openat.c (rpl_openat): Likewise.
10506
10507         link-follow: ensure correct result
10508         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
10509         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
10510         distinguish between possible failures.
10511
10512 2009-09-21  Eric Blake  <ebb9@byu.net>
10513
10514         fts: avoid compiler warning
10515         * lib/fts.c (dirent_inode_sort_may_be_useful)
10516         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
10517
10518 2009-09-19  Bruno Haible  <bruno@clisp.org>
10519
10520         * lib/progreloc.c (canonicalize_file_name): New declaration.
10521
10522 2009-09-19  Eric Blake  <ebb9@byu.net>
10523
10524         link: fix quoting
10525         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
10526
10527         openat: fix openat bugs on Solaris 9
10528         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
10529         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
10530         * modules/openat (Depends-on): Add open.
10531         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
10532         * modules/fcntl-h (Makefile.am): Substitute it.
10533         * lib/fcntl.in.h (openat): Declare replacement.
10534         * doc/posix-functions/openat.texi (openat): Document this.
10535
10536         openat: move fstatat and unlinkat into correct files
10537         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
10538         compiled.
10539         * lib/openat.c (fstatat, unlinkat): Move...
10540         * lib/fstatat.c (fstatat): ...into correct files.
10541         * lib/unlinkat.c (unlinkat): Likewise.
10542
10543         openat: fix unlinkat bugs on Solaris 9
10544         * lib/unlinkat.c (unlinkat): New file.
10545         * modules/openat (Depends-on): Add unlink.
10546         (Files): Distribute it.
10547         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
10548         trailing slash behavior is broken.
10549         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10550         * modules/unistd (Makefile.am): Substitute it.
10551         * lib/unistd.in.h (unlinkat): Declare replacement.
10552         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
10553
10554         openat: fix fstatat bugs on Solaris 9
10555         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
10556         stat.
10557         * doc/posix-functions/fstatat.texi (fstatat): Document this.
10558
10559         test-unlinkat: enhance test, to expose Solaris 9 bug
10560         * tests/test-unlink.c (main): Factor guts...
10561         * tests/test-unlink.h (test_rmdir_func): ...into new file.
10562         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
10563         * tests/test-rmdir.c (main): Adjust caller.
10564         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
10565         (unlinker): New helper function.
10566         (rmdirat): Enhance check.
10567         * modules/rmdir-tests (Depends-on): Add stdbool.
10568         * modules/unlink-tests (Depends-on): Likewise.
10569         (Files): Add test-unlink.h.
10570         * modules/openat-tests (Files): Likewise.
10571         (Depends-on): Add unlinkdir.
10572
10573         test-fstatat: new test, to expose Solaris 9 bugs
10574         * tests/test-stat.c (main): Factor guts...
10575         * tests/test-stat.h (test_stat_func): ...into new file.
10576         * tests/test-lstat.c (main): Factor guts...
10577         * tests/test-lstat.h (test_lstat_func): ...into new file.
10578         * tests/test-fstatat.c: New file.
10579         * modules/stat-tests (Files): Add test-stat.h.
10580         * modules/lstat-tests (Files): Add test-lstat.h.
10581         (Depends-on): Add stdbool.
10582         * modules/openat-tests (Depends-on): Add pathmax.
10583         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
10584         (Makefile.am): Run new test.
10585
10586         remove: new module, for mingw and Solaris 9 bugs
10587         * modules/remove: New file.
10588         * lib/remove.c: Likewise.
10589         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
10590         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
10591         * modules/stdio (Makefile.am): Use them.
10592         * lib/stdio.in.h (remove): Declare replacement.
10593         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10594         * doc/posix-functions/remove.texi (remove): Likewise.
10595         * modules/remove-tests: New test.
10596         * tests/test-remove.c: Likewise.
10597
10598         unlink: new module, for Solaris 9 bug
10599         * modules/unlink: New file.
10600         * lib/unlink.c: Likewise.
10601         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
10602         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
10603         * modules/unistd (Makefile.am): Use them.
10604         * lib/unistd.in.h (stat): Declare replacement.
10605         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10606         * doc/posix-functions/unlink.texi (unlink): Likewise.
10607         * modules/unlink-tests: New test.
10608         * tests/test-unlink.c: Likewise.
10609
10610         lstat: fix Solaris 9 bug
10611         * lib/lstat.c (lstat): Also check for trailing slash on
10612         non-symlink, non-directories.  Use stat module to simplify logic.
10613         * doc/posix-functions/lstat.texi (lstat): Document it.
10614         * modules/lstat-tests (Depends-on): Add errno, same-inode.
10615         (configure.ac): Check for symlink.
10616         * tests/test-lstat.c (main): Add more tests.
10617
10618         stat: add as dependency to other modules
10619         * modules/chown (Depends-on): Add stat.
10620         * modules/euidaccess (Depends-on): Likewise.
10621         * modules/fchdir (Depends-on): Likewise.
10622         * modules/isdir (Depends-on): Likewise.
10623         * modules/link (Depends-on): Likewise.
10624         * modules/lstat (Depends-on): Likewise.
10625         * modules/mkdir-p (Depends-on): Likewise.
10626         * modules/modechange (Depends-on): Likewise.
10627         * modules/open (Depends-on): Likewise.
10628         * modules/readlink (Depends-on): Likewise.
10629         * modules/same (Depends-on): Likewise.
10630
10631         stat: fix Solaris 9 bug
10632         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
10633         slash.
10634         * lib/stat.c (rpl_stat): Work around it.
10635         * doc/posix-functions/stat.texi (stat): Update documentation.
10636
10637         stat: new module, for mingw bug
10638         * modules/stat: New file.
10639         * lib/stat.c: Likewise.
10640         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
10641         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
10642         * modules/sys_stat (Makefile.am): Use them.
10643         * lib/sys_stat.in.h (stat): Declare replacement.
10644         * lib/openat.c (fstatat): Deal with lstat and stat being function
10645         macros.
10646         * modules/openat (Depends-on): Add inline.
10647         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10648         * doc/posix-functions/stat.texi (stat): Likewise.
10649         * modules/stat-tests: New test.
10650         * tests/test-stat.c: Likewise.
10651
10652 2009-09-19  Jim Meyering  <meyering@redhat.com>
10653
10654         syntax-check: detect unnecessary inclusion of canonicalize.h
10655         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
10656
10657 2009-09-19  Eric Blake  <ebb9@byu.net>
10658
10659         canonicalize-lgpl: adjust clients to use correct header
10660         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
10661         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
10662         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
10663         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
10664         * lib/progreloc.c (includes): Likewise.
10665
10666 2009-09-19  Jim Meyering  <meyering@redhat.com>
10667
10668         test-posixtm.c: correct a comment
10669         * tests/test-posixtm.c: Correct first-line comment.
10670         Spotted by Eric Blake.
10671
10672 2009-09-16  Jim Meyering  <meyering@redhat.com>
10673
10674         posixtm-tests: make T const-correct; add a test case
10675         * tests/test-posixtm.c (T): Declare const.
10676         Add a test for -(2^31+1).
10677         Remove useless can-succeed-only-in-2002 test.
10678
10679         posixtm-tests: adjust the sole failing test
10680         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
10681         expected output matches what mktime now produces.  Cross-checked via
10682         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
10683
10684         posixtm: move #ifdef'd tests into a new module
10685         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
10686         * tests/test-posixtm.c: ... this new file.
10687         * modules/posixtm-tests: New module.
10688
10689 2009-09-19  Eric Blake  <ebb9@byu.net>
10690
10691         openat: simplify use of at-func.c
10692         * lib/at-func.c (includes): Include prerequisites here, to
10693         simplify requirements on client files.
10694         * lib/openat-priv.h: Add double-inclusion guard.
10695         * lib/faccessat.c (includes): Simplify.
10696         * lib/fchmodat.c (includes): Likewise.
10697         * lib/fchownat.c (includes): Likewise.
10698         * lib/mkdirat.c (includes): Likewise.
10699         * lib/mkfifoat.c (includes): Likewise.
10700         * lib/symlinkat.c (includes): Likewise.
10701
10702         openat: allow return of fd 0
10703         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
10704         * modules/save-cwd (Depends-on): Replace fcntl-safer with
10705         unistd-safer.
10706         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
10707         <fcntl.h>; this module does not leak fds.
10708         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
10709         must be allowed to return 0, leaving openat_safer to add the
10710         safety.
10711         (openat_permissive): Avoid writing to just-opened fd 2 if
10712         restoring the current directory fails.
10713         * lib/openat-die.c (openat_restore_fail): Add comment.
10714         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
10715         (save_cwd): Guarantee safe fd, but without use of open_safer.
10716         * tests/test-openat.c: New test.
10717         * modules/openat-tests (Files, Makefile.am): Distribute and build
10718         new file.
10719
10720         relocatable-prog-wrapper: fix build
10721         * modules/relocatable-prog-wrapper (Files): Update name of
10722         canonicalize m4 file, broken on 2009-09-17.
10723         Reported by emad hajjar <aleppos@hotmail.com>.
10724
10725 2009-09-19  Bruno Haible  <bruno@clisp.org>
10726
10727         * lib/safe-alloc.h: Use the standard header with GPL copyright.
10728         * lib/safe-alloc.c: Likewise.
10729         Reported by Ian Beckwith <ianb@erislabs.net>.
10730
10731 2009-09-18  Bruno Haible  <bruno@clisp.org>
10732
10733         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
10734         Reported by <erobles@sensacd.com.mx>.
10735
10736 2009-09-17  Eric Blake  <ebb9@byu.net>
10737
10738         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
10739         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
10740         slashes when checking if last component is missing.
10741         * tests/test-canonicalize.c (main): Test this.
10742
10743         canonicalize, canonicalize-lgpl: honor // if distinct from /
10744         * modules/canonicalize (Files): Add double-slash-root.m4.
10745         * modules/canonicalize-lgpl (Files): Likewise.
10746         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
10747         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
10748         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
10749         fallback definition.
10750         (canonicalize_filename_mode): Use it to protect //.
10751         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
10752         (__realpath): Likewise.
10753         * tests/test-canonicalize.c (main): Test this.
10754         * tests/test-canonicalize-lgpl.c (main): Likewise.
10755         * modules/canonicalize-tests (Depends-on): Add same-inode.
10756         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
10757
10758         canonicalize-lgpl: fix glibc bug with trailing slash
10759         * m4/canonicalize-lgpl.m4: Move contents...
10760         * m4/canonicalize.m4: ...here.
10761         (gl_CANONICALIZE_LGPL): Factor realpath check...
10762         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
10763         glibc 2.3.5 bug, fixed 2005-04-27.
10764         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
10765         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
10766         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
10767         * modules/canonicalize-lgpl (Files): Manage file rename.
10768         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
10769         * modules/stdlib (Makefile.am): Substitute witness.
10770         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
10771         is needed.
10772         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
10773         replacement is required.
10774         * lib/canonicalize.c (canonicalize_file_name): Likewise.
10775         * doc/glibc-functions/canonicalize_file_name.texi
10776         (canonicalize_file_name): Document this.
10777         * doc/posix-functions/realpath.texi (realpath): Likewise.
10778
10779         canonicalize-lgpl: reject non-directory with trailing slash
10780         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
10781         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
10782         catches failures in glibc 2.3.5.
10783         * tests/test-canonicalize.c (main): Likewise.
10784
10785         canonicalize-lgpl: use native realpath if it works
10786         * lib/canonicalize-lgpl.c (realpath): Guard with
10787         FUNC_REALPATH_WORKS.
10788         * lib/stdlib.in.h (realpath): Make declaration optional based on
10789         HAVE_REALPATH.
10790         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
10791         native realpath works.
10792         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
10793         * modules/stdlib (Makefile.am): Substitute witness.
10794
10795         canonicalize, canonicalize-lgpl: use <stdlib.h>
10796         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
10797         (Include): Mention <stdlib.h>.
10798         (configure.ac): Mention functions we provide.
10799         * modules/canonicalize (configure.ac): Likewise.
10800         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
10801         realpath if canonicalize_file_name is missing.
10802         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
10803         * modules/stdlib (Makefile.am): Substitute witnesses.
10804         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
10805         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
10806         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
10807         * NEWS: Document this.
10808         * doc/glibc-functions/canonicalize_file_name.texi
10809         (canonicalize_file_name): Likewise.
10810         * doc/posix-functions/realpath.texi (realpath): Likewise.
10811         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
10812
10813         test-canonicalize: consolidate into single C program
10814         * tests/test-canonicalize.sh: Delete; move setup into...
10815         * tests/test-canonicalize.c (main): ...the program, making it
10816         easier to run in debugger.  Add some tests.
10817         * modules/canonicalize-tests (Files): Remove unused file.
10818         (Depends-on): Add progname.
10819         (configure.ac, Makefile.am): Simplify.
10820
10821         test-canonicalize-lgpl: consolidate into single C program
10822         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
10823         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
10824         easier to run in debugger.  Add some tests.
10825         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
10826         (configure.ac, Makefile.am): Simplify.
10827
10828         canonicalize: avoid resolvepath
10829         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
10830         unnecessary checks.
10831         * lib/canonicalize.c (includes): Simplify.
10832         (canonicalize_file_name): Drop resolvepath implementation.
10833         * modules/canonicalize (Depends-on): Drop filenamecat.
10834
10835         canonicalize: don't lose errno
10836         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
10837         over calls to free.
10838
10839         canonicalize: simplify errno handling
10840         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
10841         assignment.
10842
10843         canonicalize, canonicalize-lgpl: update module dependencies
10844         * modules/canonicalize (Depends-on): Add extensions, lstat,
10845         pathmax, stdlib.
10846         (Files): Drop pathmax.h.
10847         (configure.ac): Adjust macro name.
10848         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
10849         lstat, stdlib, sys_stat.
10850         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
10851         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
10852         extensions.
10853         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
10854         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
10855         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
10856         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
10857         declaration, if available.
10858         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
10859         we can rely on the readlink module.
10860         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
10861         (includes): Use <unistd.h> unconditionally.
10862
10863 2009-09-17  Eric Blake  <ebb9@byu.net>
10864
10865         maint: make Include sections of modules consistent
10866         * modules/alloca: Use only header name; no need to list #include.
10867         * modules/alloca-opt: Likewise.
10868         * modules/arpa_inet: Likewise.
10869         * modules/canon-host: Likewise.
10870         * modules/configmake: Likewise.
10871         * modules/dirent: Likewise.
10872         * modules/eealloc: Likewise.
10873         * modules/environ: Likewise.
10874         * modules/fchdir: Likewise.
10875         * modules/fcntl: Likewise.
10876         * modules/fcntl-h: Likewise.
10877         * modules/gethrxtime: Likewise.
10878         * modules/gettime: Likewise.
10879         * modules/ignore-value: Likewise.
10880         * modules/inet_ntop: Likewise.
10881         * modules/inet_pton: Likewise.
10882         * modules/inttypes: Likewise.
10883         * modules/isnand-nolibm: Likewise.
10884         * modules/isnanf-nolibm: Likewise.
10885         * modules/mbchar: Likewise.
10886         * modules/mbfile: Likewise.
10887         * modules/mbiter: Likewise.
10888         * modules/mbuiter: Likewise.
10889         * modules/netdb: Likewise.
10890         * modules/netinet_in: Likewise.
10891         * modules/nproc: Likewise.
10892         * modules/pagealign_alloc: Likewise.
10893         * modules/poll: Likewise.
10894         * modules/printf-frexp: Likewise.
10895         * modules/pthread: Likewise.
10896         * modules/putenv: Likewise.
10897         * modules/random_r: Likewise.
10898         * modules/relocatable-prog: Likewise.
10899         * modules/search: Likewise.
10900         * modules/select: Likewise.
10901         * modules/selinux-h: Likewise.
10902         * modules/settime: Likewise.
10903         * modules/signal: Likewise.
10904         * modules/size_max: Likewise.
10905         * modules/socklen: Likewise.
10906         * modules/ssize_t: Likewise.
10907         * modules/stdarg: Likewise.
10908         * modules/stdbool: Likewise.
10909         * modules/stddef: Likewise.
10910         * modules/stdint: Likewise.
10911         * modules/stdio: Likewise.
10912         * modules/stdlib: Likewise.
10913         * modules/string: Likewise.
10914         * modules/strings: Likewise.
10915         * modules/sys_file: Likewise.
10916         * modules/sys_ioctl: Likewise.
10917         * modules/sys_select: Likewise.
10918         * modules/sys_socket: Likewise.
10919         * modules/sys_stat: Likewise.
10920         * modules/sys_time: Likewise.
10921         * modules/sys_times: Likewise.
10922         * modules/sys_utsname: Likewise.
10923         * modules/sys_wait: Likewise.
10924         * modules/sysexits: Likewise.
10925         * modules/time: Likewise.
10926         * modules/times: Likewise.
10927         * modules/tmpfile: Likewise.
10928         * modules/trim: Likewise.
10929         * modules/unistd: Likewise.
10930         * modules/wchar: Likewise.
10931         * modules/wctype: Likewise.
10932
10933 2009-09-17  Bruno Haible  <bruno@clisp.org>
10934
10935         Make getdate.y compile on QNX and NetBSD 5 / i386.
10936         * m4/getdate.m4 (gl_GETDATE): Conditionally define
10937         TIME_T_FITS_IN_LONG_INT.
10938         * lib/getdate.y (long_time_t): New type.
10939         (relative_time): Change type of 'seconds' field to long_time_t.
10940         (get_date): Update types of local variables. Check against overflow
10941         during conversion from long_time_t to time_t.
10942         Reported by Matt Kraai <kraai@ftbfs.org>
10943         and Hasso Tepper <hasso@netbsd.org>.
10944
10945 2009-09-17  Bruno Haible  <bruno@clisp.org>
10946
10947         * modules/COPYING: Update copyright years.
10948         * modules/README: Likeiwse.
10949         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
10950         Reported by Ian Beckwith <ianb@erislabs.net>.
10951
10952 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
10953
10954         * users.txt: Update references for gnuit package.
10955
10956 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
10957
10958         * m4/getdelim.m4: Fix typo in copyright line.
10959
10960 2009-09-17  Bruno Haible  <bruno@clisp.org>
10961
10962         * lib/atoll.c: Use the standard header with GPL copyright.
10963         * lib/argz.in.h: Likewise.
10964         * lib/glob.c: Likewise.
10965         * lib/glob-libc.h: Likewise.
10966         * lib/random_r.c: Likewise.
10967         * lib/siglist.h: Likewise.
10968         * lib/strsignal.c: Likewise.
10969         Reported by Ian Beckwith <ianb@erislabs.net>.
10970
10971 2009-09-17  Eric Blake  <ebb9@byu.net>
10972
10973         rmdir: ensure correct dependency order
10974         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
10975
10976 2009-09-17  Bruno Haible  <bruno@clisp.org>
10977
10978         Disable assertion that fails on NetBSD 5 / i386.
10979         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
10980         Reported by Sam Steingold <sds@gnu.org>
10981         and Hasso Tepper <hasso@netbsd.org>.
10982
10983 2009-09-16  Eric Blake  <ebb9@byu.net>
10984
10985         unlinkdir: port to mingw
10986         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
10987         on which no one can unlink a directory.
10988
10989         stdlib: sort witness names
10990         * modules/stdlib (Makefile.am): Sort replacements.
10991         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
10992         * lib/stdlib.in.h: Likewise.
10993
10994         parse-duration-tests: avoid link failure
10995         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
10996         LIBINTL.
10997         Reported by Tom G. Christensen.
10998
10999         openat-tests: ensure unlinkat behaves like rmdir
11000         * tests/test-rmdir.c (main): Factor guts...
11001         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
11002         * modules/rmdir-tests (Files): Ship new file.
11003         * modules/openat-tests: New test.
11004         * tests/test-unlinkat.c: Likewise.
11005
11006         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
11007         * modules/rmdir-errno (Status, Notice): Now obsolete.
11008
11009         rmdir: work around cygwin 1.5.x and mingw bugs
11010         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
11011         * lib/rmdir.c (rmdir): Work around it.
11012         * modules/rmdir (Status, Notice): No longer obsolete.
11013         (Files): Add dos.m4.
11014         (Depends-on): Add unistd.
11015         (configure.ac): Set witnesses.
11016         (License): Relax to LGPLv2+.
11017         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
11018         * modules/unistd (Makefile.am): Substitute witnesses.
11019         * lib/unistd.in.h (rmdir): Declare replacement.
11020         * doc/posix-functions/rmdir.texi (rmdir): Document this.
11021         * modules/rmdir-tests: New tests.
11022         * tests/test-rmdir.c: Likewise.
11023
11024 2009-09-15  Eric Blake  <ebb9@byu.net>
11025
11026         fchdir: improve use of replacement functions
11027         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
11028         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
11029         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
11030         REPLACE_CLOSEDIR.
11031         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
11032         * modules/sys_stat (Makefile.am): Substitute correct witness.
11033         * modules/dirent (Makefile.am): Likewise.
11034         * modules/unistd (Makefile.am): Likewise.
11035         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
11036         * lib/unistd.in.h (dup): Likewise.
11037         * lib/sys_stat.in.h (fstat): Likewise.
11038
11039         maint: ignore gnulib-tool temp files
11040         * .gitignore: Ignore files created during gnulib-tool --test.
11041
11042 2009-09-13  Jim Meyering  <meyering@redhat.com>
11043
11044         posixtm: don't reject a time that specify "60" as the number of seconds
11045         * lib/posixtm.c (posixtime): The code to reject invalid dates
11046         would also reject a time specified with the .60 suffix.
11047         But POSIX allows that, in order to accommodate leap seconds.
11048         So don't reject it.
11049         (main): Adjust tests accordingly.
11050         * modules/posixtm (Depends-on): Add stpcpy.
11051
11052 2009-09-11  Jim Meyering  <meyering@redhat.com>
11053
11054         announce-gen: include [$release_type] in emitted Subject:
11055         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
11056         e.g., [stable] in the emitted Subject: line.
11057
11058 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11059
11060         Remove obsolete macros from several modules.
11061         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
11062         obsolete Autoconf macros with their modern counterparts.
11063         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
11064         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
11065         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
11066         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
11067         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
11068         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
11069         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
11070         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
11071         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
11072         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
11073         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
11074         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11075         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
11076         * m4/sockets.m4 (gl_SOCKETS): Likewise.
11077         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
11078         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
11079         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
11080         * m4/time_r.m4 (gl_TIME_R): Likewise.
11081         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
11082         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
11083         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
11084
11085         Fix copyright header in build-aux scripts.
11086         * build-aux/git-version-gen: Fix copyright header to match GPLv3
11087         recommendation.
11088         * build-aux/ncftpput-ftp: Likewise.
11089         * build-aux/update-copyright: Likewise.
11090
11091 2009-09-09  Eric Blake  <ebb9@byu.net>
11092
11093         test-link: allow Linux choice of errno
11094         * tests/test-link.c (main): Relax test for alternate error.
11095
11096         strndup: fix improper m4 caching
11097         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
11098         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
11099         (gl_PREREQ_STRNDUP): Delete.
11100         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
11101         * modules/string (Makefile.am): Substitute it.
11102         * lib/string.in.h (strndup): Modernize prototype.
11103
11104         getcwd: port to mingw
11105         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
11106         different from the POSIX assumptions made throughout the getcwd
11107         module; fortunately, the mingw getcwd does not need replacement.
11108         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
11109         * modules/getcwd-tests: New test.
11110         * tests/test-getcwd.c: Likewise.
11111
11112         link: fix platform bugs
11113         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
11114         * lib/link.c (link): Work around them.  Fix related mingw bug.
11115         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
11116         * modules/unistd (Makefile.am): Substitute it.
11117         * lib/unistd.in.h (link): Declare replacement.
11118         * doc/posix-functions/link.texi (link): Document this.
11119         * modules/link (Depends-on): Add strdup-posix, sys_stat.
11120
11121         test-link: consolidate into single C program, test more cases
11122         * tests/test-link.sh: Delete.
11123         * tests/test-link.c: Test more error conditions.  Exposes bugs on
11124         at least Cygwin and Solaris.
11125         * modules/link-tests (Files): Remove unused file.
11126         (Depends-on): Add errno, sys_stat.
11127         (Makefile.am): Simplify.
11128
11129 2009-09-08  Bruno Haible  <bruno@clisp.org>
11130
11131         Work around towlower, towupper bug on mingw.
11132         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
11133         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
11134         * doc/posix-functions/towlower.texi: Mention the mingw bug.
11135         * doc/posix-functions/towupper.texi: Likewise.
11136         Reported by Eric Blake.
11137
11138 2009-09-08  Jim Meyering  <meyering@redhat.com>
11139
11140         build: don't try to run autoheader if we don't use it
11141         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
11142         is not used in configure.ac.
11143
11144 2009-09-08  Eric Blake  <ebb9@byu.net>
11145
11146         euidaccess: fix compilation error
11147         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
11148
11149         rawmemchr: relax license
11150         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
11151         okay.
11152         Reported by Jim Meyering.
11153
11154         mkfifoat: new module
11155         * modules/mkfifoat: New file.
11156         * lib/mkfifoat.c: Likewise.
11157         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
11158         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
11159         * modules/sys_stat (Makefile.am): Use them.
11160         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
11161         * MODULES.html.sh (File system functions): Mention module.
11162         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
11163         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
11164         * modules/mkfifoat-tests: New test.
11165         * tests/test-mkfifoat.c: Likewise.
11166
11167         strchrnul: relax license
11168         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
11169         okay.
11170         Reported by Jim Meyering.
11171
11172 2009-09-08  Eric Blake  <ebb9@byu.net>
11173
11174         fstatat: fix compilation on Solaris
11175         * lib/fstatat.c (includes): Add fcntl.h.
11176         Reported by Pádraig Brady.
11177
11178 2009-09-07  Eric Blake  <ebb9@byu.net>
11179
11180         rename: modernize replacement
11181         * modules/rename (Depends-on): Add stdio.
11182         (configure.ac): Declare witness.
11183         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
11184         stdio take care of replacement.
11185         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
11186         * modules/stdio (Makefile.am): Substitute them.
11187         * lib/stdio.in.h (rename): Declare replacement.
11188         * lib/rename.c (includes): Allow cross-compilation to non-windows
11189         machines.
11190         * doc/posix-functions/rename.texi (rename): Improve
11191         documentation.
11192
11193         stdio: sort witness names
11194         * modules/stdio (Makefile.am): Sort replacements.
11195         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
11196         * lib/stdio.in.h: Likewise.
11197
11198         getcwd: minor cleanups
11199         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
11200         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
11201
11202         openat: provide more convenience names
11203         * modules/faccessat (configure.ac): Add C witness.
11204         * lib/unistd.in.h (readlinkat): Fix typo.
11205         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
11206         convenience wrappers.
11207         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
11208         wrappers in syntax checks.
11209
11210 2009-09-06  Eric Blake  <ebb9@byu.net>
11211
11212         doc: fix comments in recent patches
11213         * lib/faccessat.c: Mention correct function.
11214         * lib/fchmodat.c: Likewise.
11215         * lib/fchownat.c: Likewise.
11216         * lib/symlinkat.c: Likewise.
11217         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
11218         constants.
11219
11220         faccessat, symlinkat: continue cleanup of previous patch
11221         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
11222         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
11223         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
11224         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
11225         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
11226         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
11227         set.
11228
11229 2009-09-06  Bruno Haible  <bruno@clisp.org>
11230
11231         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
11232         (fstatat): Declare if GNULIB_FSTATAT is set.
11233         (mkdirat): Declare if GNULIB_MKDIRAT is set.
11234         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
11235         (unlinkat): Declare if GNULIB_UNLINKAT is set.
11236         * modules/fcntl-h (Files): Remove m4/openat.m4.
11237         * modules/sys_stat (Files): Remove m4/openat.m4.
11238         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
11239         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
11240         * modules/unistd (Files): Remove m4/openat.m4.
11241         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
11242         GNULIB_OPENAT.
11243         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
11244         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
11245         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
11246         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
11247         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
11248         gl_OPENAT_DEFAULTS.
11249         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
11250         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
11251         Don't require gl_OPENAT_DEFAULTS.
11252         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
11253         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
11254         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
11255         (gl_OPENAT_DEFAULTS): Remove macro.
11256
11257 2009-09-06  Bruno Haible  <bruno@clisp.org>
11258
11259         * modules/openat (configure.ac): Remove unneeded witness.
11260
11261 2009-09-06  Bruno Haible  <bruno@clisp.org>
11262
11263         Set errno to ENOSYS when a function is entirely unsupported.
11264         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
11265         EOPNOTSUPP.
11266         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
11267         * modules/chown (Depends-on): Remove errno.
11268
11269 2009-09-06  Bruno Haible  <bruno@clisp.org>
11270
11271         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
11272
11273 2009-09-06  Bruno Haible  <bruno@clisp.org>
11274
11275         * lib/sys_stat.in.h: Fix preprocessor command indentation.
11276
11277 2009-09-06  Ben Pfaff  <blp@gnu.org>
11278             Bruno Haible  <bruno@clisp.org>
11279
11280         Work around a glibc bug in strtok_r.
11281         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
11282         Undefine if UNDEFINE_STRTOK_R is set.
11283         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
11284         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
11285         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
11286         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
11287         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
11288         UNDEFINE_STRTOK_R.
11289         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
11290
11291 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
11292
11293         exclude: minor fix
11294         * lib/exclude.c: Include wctype.h
11295
11296 2009-09-06  Akim Demaille  <demaille@gostai.com>
11297
11298         bootstrap: improve error message
11299         * build-aux/bootstrap (find_tool): Upon failure, report the list
11300         of candidates.
11301         Honor the initial value of the envvar.
11302
11303 2009-09-05  Eric Blake  <ebb9@byu.net>
11304
11305         symlinkat: new module
11306         * modules/symlinkat: New file.
11307         * lib/symlinkat.c: Likewise.
11308         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
11309         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
11310         * modules/unistd (Makefile.am): Use them.
11311         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
11312         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
11313         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
11314         * MODULES.html.sh (File system functions): Mention module.
11315         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
11316         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
11317         * modules/symlinkat-tests: New test.
11318         * tests/test-symlinkat.c: Likewise.
11319
11320         test-openat-safer: add more checks
11321         * tests/test-openat-safer.c (main): Check more code paths.
11322
11323 2009-09-05  Jim Meyering  <meyering@redhat.com>
11324
11325         syntax-check: detect unnecessary inclusion of openat.h
11326         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
11327
11328 2009-09-05  Bruno Haible  <bruno@clisp.org>
11329
11330         Support towlower, towupper.
11331         * doc/posix-functions/towlower.texi: Mention module wctype.
11332         * doc/posix-functions/towupper.texi: Likewise.
11333         * lib/wctype.in.h (towlower, towupper): New functions.
11334         * tests/test-wctype.c: Include stdio.h, stdlib.h.
11335         (ASSERT): New macro.
11336         (e): New variable.
11337         (main): Test also towlower, towupper. Test WEOF argument.
11338         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
11339
11340 2009-09-05  Bruno Haible  <bruno@clisp.org>
11341
11342         Fix conversion behaviour when the input is invalid.
11343         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
11344         mark occurring in first pass of indirect conversion.
11345         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
11346         input.
11347         Found by clang's static analyzer.
11348
11349 2009-09-05  Bruno Haible  <bruno@clisp.org>
11350
11351         * tests/test-striconveh.c (main): Test indirect conversion on platforms
11352         where direct conversion is possible.
11353
11354 2009-09-04  Eric Blake  <ebb9@byu.net>
11355
11356         openat: fail with ENOENT on empty name
11357         * lib/openat-proc.c (openat_proc_name): Special-case the empty
11358         buffer.
11359
11360         link-follow: fix logic bug in prior patch
11361         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
11362         reversed sense of yes and no in prior patch.  Avoid confusing
11363         compilation failure with desired semantics.
11364
11365         link-follow: accomodate mingw and cross-compilation
11366         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
11367         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
11368         cross-compilation results to -1, to make linkat easier to
11369         implement when cross-compiling.  Trivially support mingw.
11370         * modules/link-follow (configure.ac): Call new name.
11371         * NEWS: Mention this.
11372
11373 2009-09-03  Eric Blake  <ebb9@byu.net>
11374
11375         faccessat: compile replacement
11376         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
11377         needed.
11378
11379         fts: fix compilation error
11380         * lib/fts.c (includes): Re-add "openat.h", for
11381         openat_needs_fchdir.
11382
11383         faccessat: new module
11384         * modules/faccessat: New file.
11385         * lib/faccessat.c: Likewise.
11386         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
11387         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
11388         * modules/unistd (Makefile.am): Use it.
11389         * lib/unistd.in.h (faccessat): Declare it.
11390         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
11391         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
11392         * MODULES.html.sh (File system functions): Mention it.
11393         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
11394         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
11395
11396         euidaccess: prefer POSIX over non-standard implementation
11397         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
11398         * lib/euidaccess.c (euidaccess): Use it if available.
11399
11400         openat: make template easier to use
11401         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
11402         AT_FUNC_F2 to be undefined.
11403         (VALIDATE_FLAG): New macro; use it to reject bad flags.
11404         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
11405         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
11406         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
11407         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
11408         Likewise.
11409         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
11410         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
11411         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
11412         Likewise.
11413
11414         openat: declare in POSIX headers
11415         * NEWS: Mention this.
11416         * modules/openat (configure.ac): Declare witnesses.
11417         (Depends-on): Add fcntl-h, sys_stat, unistd.
11418         (Include): Mention correct headers.
11419         * modules/fcntl-h (Depends-on): Add link-warning.
11420         (Files): Add openat.m4.
11421         (Makefile.am): Substitute witnesses.
11422         * modules/sys_stat (Files, Makefile.am): Likewise.
11423         * modules/unistd (Files, Makefile.am): Likewise.
11424         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
11425         (gl_OPENAT_DEFAULTS): New macro.
11426         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
11427         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
11428         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
11429         (SYS_STAT_H): Remove unused variable.
11430         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
11431         * lib/fcntl--.h (includes): Remove unneeded header.
11432         * lib/openat-safer.c (includes): Likewise.
11433         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
11434         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
11435         appropriate headers.
11436         (__OPENAT_PREFIX): Delete.
11437         * lib/fcntl.in.h (openat): Provide declaration.
11438         (AT_FDCWD): Fix Solaris bug.
11439         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
11440         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
11441         * lib/fchmodat.c (includes):  Adjust to find declaration.
11442         * lib/fchownat.c (includes): Likewise.
11443         * lib/mkdirat.c (includes): Likewise.
11444         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
11445         still visible.
11446
11447 2009-09-02  Eric Blake  <ebb9@byu.net>
11448
11449         errno: use consistently
11450         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
11451         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
11452         * lib/canonicalize.c (ELOOP): Likewise.
11453         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
11454         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
11455         * lib/lchown.c (EOPNOTSUPP): Likewise.
11456         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
11457         * lib/savewd.c (ESTALE): Likewise.
11458         * lib/settime.c (ENOSYS): Likewise.
11459         * lib/utimens.c (ENOSYS): Likewise.
11460         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
11461         * lib/chdir-safer.c (ELOOP): Likewise.
11462         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
11463         * modules/c-stack (Depends-on): Add errno.
11464         * modules/canonicalize (Depends-on): Likewise.
11465         * modules/chdir-safer (Depends-on): Likewise.
11466         * modules/fdopendir (Depends-on): Likewise.
11467         * modules/inet_ntop (Depends-on): Likewise.
11468         * modules/inet_pton (Depends-on): Likewise.
11469         * modules/lchown (Depends-on): Likewise.
11470         * modules/openat (Depends-on): Likewise.
11471         * modules/savewd (Depends-on): Likewise.
11472         * modules/settime (Depends-on): Likewise.
11473         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
11474
11475         fts: avoid leaking fds
11476         * modules/fts (Depends-on): Add cloexec.
11477         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
11478         flag.
11479
11480         fts: make directory fds more robust
11481         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
11482         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
11483
11484         backupfile, chdir-long, fts, savedir: make safer
11485         * lib/backupfile.c (includes): Use "dirent--.h", since
11486         numbered_backup can write to stderr during readdir.
11487         * lib/savedir.c (includes): Likewise.
11488         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
11489         emulation can write to stderr on failure.
11490         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
11491         * lib/getcwd.c: Document why opendir_safer is unused.
11492         * lib/glob.c: Likewise.
11493         * lib/scandir.c: Likewise.
11494         * lib/openat-proc.c: Likewise, for open_safer.
11495         * modules/backupfile (Depends-on): Add dirent-safer.
11496         * modules/savedir (Depends-on): Likewise.
11497         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
11498         * modules/chdir-long (Depends-on): Add openat-safer.
11499
11500         openat-safer: new module
11501         * modules/openat-safer: New file.
11502         * lib/openat-safer.c: Likewise.
11503         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
11504         * lib/fcntl-safer.h (openat_safer): Declare.
11505         * lib/fcntl--.h (openat): Override.
11506         * MODULES.html.sh (File descriptor based I/O): Mention it.
11507         * lib/openat.h: Add double-inclusion guards.
11508         * lib/openat.c (includes): Only include "fcntl-safer.h", not
11509         "fcntl--.h", so we can implement openat.
11510         * modules/openat-safer-tests: New test.
11511         * tests/test-openat-safer.c: New file.
11512
11513         dirent-safer: new module
11514         * modules/dirent-safer: New file.
11515         * lib/dirent--.h: Likewise.
11516         * lib/dirent-safer.h: Likewise.
11517         * lib/opendir-safer.c: Likewise.
11518         * m4/dirent-safer.m4: Likewise.
11519         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
11520         * modules/dirent-safer-tests: New test.
11521         * tests/test-dirent-safer.c: New file.
11522         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
11523
11524         fdopendir: optimize on mingw
11525         * lib/unistd.in.h (_gl_directory_name): New prototype.
11526         * lib/fchdir.c (_gl_directory_name): Implement it.
11527         (fchdir): Use it to simplify implementation.
11528         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
11529         fchdir, when available, to avoid calling [f]chdir().
11530
11531         fdopendir: split into its own module
11532         * lib/openat.c (fdopendir): Move...
11533         * lib/fdopendir.c: ...into new file.
11534         * modules/fdopendir: New module.
11535         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
11536         * modules/openat (Depends-on): Add fdopendir.
11537         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
11538         fdopendir here.
11539         * modules/savedir (Depends-on): Only need fdopendir, not full
11540         openat.
11541         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
11542         * lib/openat.h (fdopendir): Drop prototype.
11543         * lib/dirent.in.h (fdopendir): Provide prototype.
11544         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
11545         * modules/dirent (Makefile.am): Substitute them.
11546         * MODULES.html.sh (File system functions): Mention it.
11547         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
11548         * modules/fdopendir-tests: New file.
11549         * tests/test-fdopendir.c: Likewise.
11550
11551         fchdir: use more consistent macro convention
11552         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
11553         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
11554         REPLACE_FCHDIR, rather than relying on config.h macros.
11555         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
11556         inside a single make-time REPLACE_FCHDIR block, rather than using
11557         the config.h FCHDIR_REPLACEMENT.
11558         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
11559         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
11560         Manage fstat replacement.
11561         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
11562         REPLACE_FCHDIR.
11563         * modules/sys_stat (Files): Add m4/unistd_h.m4.
11564         (Makefile.am): Substitute REPLACE_FCHDIR.
11565         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
11566         FCHDIR_REPLACEMENT.
11567         * lib/dup-safer.c (dup_safer): Likewise.
11568         * lib/dup2.c (rpl_dup2): Likewise.
11569         * lib/dup3.c (rpl_dup3): Likewise.
11570         * lib/open.c (rpl_open): Likewise.
11571
11572         fchdir: simplify error handling, and support dup3
11573         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
11574         stdbool, malloc-posix, realloc-posix.
11575         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
11576         (ensure_dirs_slot): Return false on allocation failure.
11577         (rpl_dup2): Delete.
11578         (_gl_register_dup): New function.
11579         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
11580         (_gl_register_fd): Close fd on allocation failure.
11581         * lib/fcntl.in.h (_gl_register_fd): Update signature.
11582         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
11583         prototype.
11584         (rpl_dup2_fchdir): Delete prototype.
11585         * lib/open.c (open): Update caller.
11586         * lib/dup2.c (dup2): Track fchdir metadata.
11587         * lib/dup3.c (dup3): Likewise.
11588         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
11589         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
11590
11591 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11592
11593         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
11594         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
11595         don't pass arguments to AC_OUTPUT.
11596
11597 2009-09-02  Bruno Haible  <bruno@clisp.org>
11598
11599         * modules/mkdtemp (License): Relicense under LGPLv2+.
11600         Reported by Paolo Bonzini.
11601
11602 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11603
11604         Replace uses of obsolete autoconf macros in Jim's modules.
11605         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
11606         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
11607         can evoke a warning from autoconf when run with -Wobsolete
11608         enabled.  They were declared obsolete for good reasons (see
11609         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
11610         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
11611         should not continue using the deprecated macros.
11612         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
11613         obsolete Autoconf macros with modern counterparts.
11614         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
11615         * m4/dos.m4 (gl_AC_DOS): Likewise.
11616         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
11617         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
11618         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
11619         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
11620         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
11621         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
11622         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
11623         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
11624         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
11625         Likewise.
11626         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
11627         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
11628         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
11629         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
11630         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
11631         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
11632
11633 2009-09-01  Eric Blake  <ebb9@byu.net>
11634
11635         fchdir: fix off-by-one bug in previous patch
11636         * lib/fchdir.c (rpl_fstat): Use correct bounds.
11637         (_gl_unregister_fd): Delete useless if.
11638
11639 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
11640
11641         maint.mk: sort the list of syntax-check rules
11642         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
11643         easier to get a sense of progress when the rules are run sequentially
11644         and take a long time.
11645
11646 2009-09-01  Simon Josefsson  <simon@josefsson.org>
11647
11648         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
11649         * modules/netinet_in: Likewise.
11650         * modules/sys_file: Likewise.
11651         * modules/sys_ioctl: Likewise.
11652         * modules/sys_select: Likewise.
11653         * modules/sys_socket: Likewise.
11654         * modules/sys_stat: Likewise.
11655         * modules/sys_time: Likewise.
11656         * modules/sys_times: Likewise.
11657         * modules/sys_utsname: Likewise.
11658         * modules/sys_wait: Likewise.
11659
11660 2009-09-01  Jim Meyering  <meyering@redhat.com>
11661
11662         fts: help ensure that return values are not ignored
11663         * lib/fts_.h (__GNUC_PREREQ): Define.
11664         (__attribute_warn_unused_result__): Define.
11665         (fts_children, fts_close, fts_open, fts_read): Declare with
11666         __attribute_warn_unused_result__.
11667
11668         fts: fts_close now fails also when closing a dir file descriptor fails
11669         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
11670         and propagate to caller, along with errno.
11671
11672         announce-gen: correct formatting in --help output
11673         * build-aux/announce-gen (usage): Move the one-line description in
11674         --help output "up", to where it belongs, just after Usage:.
11675
11676 2009-08-31  Eric Blake  <ebb9@byu.net>
11677
11678         fchdir: port to mingw
11679         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
11680         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
11681         opened, then use a substitute.
11682         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
11683         replacement.
11684         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
11685         (_gl_register_fd): No need to check stat if open already filters
11686         all directories.
11687         (fchdir): Fix error condition to match POSIX.
11688         * modules/fchdir (Depends-on): Add sys_stat.
11689         * doc/posix-functions/open.texi (open): Document the limitation.
11690         * modules/fchdir-tests: New file.
11691         * tests/test-fchdir.c: Likewise.
11692
11693         canonicalize: allow cross-testing from cygwin to mingw
11694         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
11695         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
11696         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
11697         Likewise.
11698         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
11699         target does not support symlinks.
11700         * tests/test-canonicalize-lgpl.sh: Likewise.
11701
11702         chown: avoid compilation warning on mingw
11703         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
11704         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
11705         mingw.
11706         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
11707         * modules/chown (Depends-on): Add errno.
11708
11709 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
11710
11711         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
11712         command.
11713
11714 2009-08-31  Jim Meyering  <meyering@redhat.com>
11715
11716         canonicalize: remove useless initialization
11717         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
11718         initialization of local, "end".
11719
11720 2009-08-30  Bruno Haible  <bruno@clisp.org>
11721
11722         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
11723         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
11724         ENOSYS.
11725
11726 2009-08-30  Bruno Haible  <bruno@clisp.org>
11727
11728         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
11729         /usr/xpg4/bin/tr when it exists.
11730         * tests/test-pipe-filter-gi1.sh: Likewise.
11731
11732 2009-08-30  Bruno Haible  <bruno@clisp.org>
11733
11734         Work around deficient /usr/bin/id program on Solaris.
11735         * tests/test-file-has-acl.sh (ID): New variable.
11736         * tests/test-set-mode-acl.sh (ID): Likewise.
11737         * tests/test-copy-acl.sh (ID): Likewise.
11738         * tests/test-copy-file.sh (ID): Likewise.
11739
11740 2009-08-30  Bruno Haible  <bruno@clisp.org>
11741
11742         New module 'xstriconveh'.
11743         * lib/xstriconveh.h: New file.
11744         * lib/xstriconveh.c: New file.
11745         * modules/xstriconveh: New file.
11746
11747 2009-08-30  Bruno Haible  <bruno@clisp.org>
11748
11749         Make it easier to use mem_cd_iconveh.
11750         * lib/striconveh.h (iconveh_t): New type.
11751         (iconveh_open, iconveh_close): New declarations.
11752         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
11753         with a single 'const iconveh_t *' argument.
11754         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
11755         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
11756         with a single 'const iconveh_t *' argument.
11757         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
11758         * tests/test-striconveh.c (main): Update.
11759         * NEWS: Mention the change.
11760
11761 2009-08-30  Bruno Haible  <bruno@clisp.org>
11762
11763         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
11764         problem.
11765
11766 2009-08-30  Bruno Haible  <bruno@clisp.org>
11767
11768         Work around iconv_open problem on Solaris.
11769         * lib/iconv_open-solaris.gperf: New file.
11770         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
11771         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
11772         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
11773         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
11774         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
11775         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
11776
11777 2009-08-29  Jim Meyering  <meyering@redhat.com>
11778
11779         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
11780         * top/maint.mk (cvs-check): Remove target; it was just an alias
11781         to the better-named vc-diff-check.
11782         (maintainer-distcheck): Remove rule.  It was used only from
11783         the (alpha/beta/major) target, and all of its commands but one
11784         were coreutils-specific.
11785         (vc-dist): Remove rule.
11786         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
11787         Run vc-diff-check, not vc-dist.
11788         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
11789
11790 2009-08-27  Bruno Haible  <bruno@clisp.org>
11791
11792         * tests/test-bitrotate.c (main): Remove test that uses a shift count
11793         of 0.
11794
11795 2009-08-27  Bruno Haible  <bruno@clisp.org>
11796
11797         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
11798         compilers.
11799         * doc/func.texi: Document the SunPRO C bug.
11800
11801 2009-08-27  Bruno Haible  <bruno@clisp.org>
11802
11803         Fix link error on Solaris.
11804         * tests/test-parse-duration.c (xstrdup): Remove function.
11805
11806 2009-08-26  Pádraig Brady  <P@draigbrady.com>
11807
11808         ignore-value: handle pointer types, too
11809         * lib/ignore-value.h (__attribute__): Remove definition.
11810         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
11811         of a more concise and more-often effective "(void) i" statement.
11812         (ignore_ptr): New function to suppress warnings from functions that
11813         return pointers, and to make it explicit that one function doesn't
11814         handle all cases.
11815
11816 2009-08-25  Bruno Haible  <bruno@clisp.org>
11817
11818         dup2: work around a Linux bug.
11819         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
11820         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
11821         * doc/posix-functions/dup2.texi: Mention the Linux bug.
11822         Reported by Simon Josefsson.
11823
11824 2009-08-25  Jim Meyering  <meyering@redhat.com>
11825
11826         libguestfs uses gnulib
11827         * users.txt: Add libguestfs.
11828
11829 2009-08-24  Eric Blake  <ebb9@byu.net>
11830
11831         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
11832         * lib/pipe2.c (includes): Add binary-io.h.
11833         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
11834
11835 2009-08-24  Bruno Haible  <bruno@clisp.org>
11836
11837         Tolerate declared but missing accept4 syscall.
11838         * lib/accept4.c (accept4): Invoke original accept4 function first, if
11839         available.
11840         * lib/sys_socket.in.h (accept4): If the function is already present,
11841         override it.
11842         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
11843         * modules/accept4 (Makefile.am): Compile accept4.c always.
11844         Reported by Paolo Bonzini and Eric Blake.
11845
11846 2009-08-23  Bruno Haible  <bruno@clisp.org>
11847
11848         New module 'accept4'.
11849         * lib/sys_socket.in.h (accept4): New declaration.
11850         * lib/accept4.c: New file.
11851         * m4/accept4.m4: New file.
11852         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
11853         GNULIB_ACCEPT4, HAVE_ACCEPT4.
11854         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
11855         HAVE_ACCEPT4.
11856         * modules/accept4: New file.
11857         * doc/glibc-functions/accept4.texi: Mention the new module.
11858
11859 2009-08-24  Jim Meyering  <meyering@redhat.com>
11860
11861         progname: also set global program_invocation_name, when possible
11862         Before this change, a libtool-enabled program that calls glibc's
11863         error function would report the program name as
11864         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
11865         * modules/progname (configure.ac): Check for a declaration of
11866         program_invocation_name.
11867         * lib/progname.c:  Include <errno.h>.
11868         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
11869         Set program_invocation_name.
11870
11871 2009-08-23  Bruno Haible  <bruno@clisp.org>
11872
11873         * lib/dup3.c: Include <string.h>.
11874
11875 2009-08-23  Bruno Haible  <bruno@clisp.org>
11876
11877         * lib/dup3.c (dup3): Test only once whether the system actually exists.
11878         * lib/pipe2.c (pipe2): Likewise.
11879         Suggested by Eric Blake.
11880
11881 2009-08-23  Bruno Haible  <bruno@clisp.org>
11882
11883         Tolerate declared but missing dup3 syscall.
11884         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
11885         * lib/unistd.in.h (dup3): If the function is already present,
11886         override it.
11887         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
11888         * modules/dup3 (Makefile.am): Compile dup3.c always.
11889         Reported by Paolo Bonzini.
11890
11891 2009-08-23  Bruno Haible  <bruno@clisp.org>
11892
11893         Tolerate declared but missing pipe2 syscall.
11894         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
11895         available.
11896         * lib/unistd.in.h (pipe2): If the function is already present,
11897         override it.
11898         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
11899         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
11900         Reported by Paolo Bonzini.
11901
11902 2009-08-23  Bruno Haible  <bruno@clisp.org>
11903
11904         * lib/pipe2.c (pipe2): Move #ifs inside function.
11905
11906 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
11907
11908         quotearg: document limitations of quote_these_too
11909         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
11910         those limitations are created.
11911         * lib/quotearg.h (set_char_quoting): Document that digits and
11912         letters that are special after backslash are not permitted.
11913         (quotearg_char): Cross-reference set_char_quoting documentation.
11914
11915 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
11916
11917         quotearg: implement custom_quoting_style
11918         * lib/quotearg.c: (struct quoting_options): Add left_quote and
11919         right_quote fields.
11920         (set_custom_quoting): New public function.
11921         (quotearg_buffer_restyled): Add left_quote and right_quote
11922         arguments, handle them very much like locale quoting, and update
11923         all uses.
11924         (quotearg_n_custom): New public function.
11925         (quotearg_n_custom_mem): New public function.
11926         (quotearg_custom): New public function.
11927         (quotearg_custom_mem): New public function.
11928         * lib/quotearg.h: Prototype and document new public functions.
11929         (enum quoting_style): For escape_quoting_style and
11930         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
11931         ignored even though they're otherwise like c_quoting_style.
11932         Add custom_quoting_style member and document with comparison to
11933         clocale_quoting_style.
11934         * tests/test-quotearg.c (custom_quotes): New array.
11935         (custom_results): New array.
11936         (main): Extend to test custom quoting.
11937
11938 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
11939
11940         quotearg: fix right quote escaping when it's in quote_these_too
11941         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
11942         quote, be sure to prepend only one backslash.
11943         * tests/test-quotearg.c (use_quote_double_quotes): New function.
11944         (main): Test it.
11945
11946 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
11947
11948         quotearg-tests: test escaping of embedded locale quotes
11949         * tests/test-quotearg.c (struct result_strings): Add member for
11950         new input.
11951         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
11952         (inputs): Add new input.
11953         (results_g): Add expected results.
11954         (flag_results): Likewise.
11955         (locale_results): Likewise.
11956         (compare_strings): Check those.
11957
11958 2009-08-23  Bruno Haible  <bruno@clisp.org>
11959
11960         Tests for module 'dup3'.
11961         * modules/dup3-tests: New file.
11962         * tests/test-dup3.c: New file.
11963
11964         New module 'dup3'.
11965         * lib/unistd.in.h (dup3): New declaration.
11966         * lib/dup3.c: New file.
11967         * m4/dup3.m4: New file.
11968         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
11969         HAVE_DUP3.
11970         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
11971         * modules/dup3: New file.
11972         * doc/glibc-functions/dup3.texi: Mention the new module.
11973
11974 2009-08-23  Bruno Haible  <bruno@clisp.org>
11975
11976         Tweak the dup2 test.
11977         * tests/test-dup2.c (main): Create the test file empty. Verify that an
11978         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
11979         the test file is still empty. Fix argument order of lseek.
11980
11981 2009-08-23  Bruno Haible  <bruno@clisp.org>
11982
11983         Avoid test link errors when the modules getopt-gnu, gettext are used.
11984         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
11985         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11986
11987 2009-08-23  Bruno Haible  <bruno@clisp.org>
11988
11989         Fix getdtablesize() on mingw.
11990         * lib/getdtablesize.c (getdtablesize): Implement differently.
11991         * lib/unistd.in.h (getdtablesize): Improve comment.
11992
11993 2009-08-23  Bruno Haible  <bruno@clisp.org>
11994
11995         New module 'mkostemp'.
11996         Based on Ulrich Drepper's 2007-08-10 change in glibc.
11997         * lib/stdlib.in.h (mksotemp): New declaration.
11998         * lib/mkostemp.c: New file, from glibc with modifications.
11999         * lib/tempname.h (GT_FILE): Remove outdated comment.
12000         (gen_tempname): Add flags argument.
12001         * lib/tempname.c (__GT_BIGFILE): Remove macro.
12002         (__GT_FILE): Map to 1.
12003         (small_open, large_open): Remove macros.
12004         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
12005         * lib/mkstemp.c (mkstemp): Update.
12006         * lib/mkdtemp.c (mkdtemp): Likewise.
12007         * m4/mkostemp.m4: New file.
12008         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
12009         HAVE_MKOSTEMP.
12010         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
12011         HAVE_MKOSTEMP.
12012         * modules/mkostemp: New file, based on modules/mkstemp.
12013         * doc/glibc-functions/mkostemp.texi: Mention the new module.
12014         * NEWS: Mention the change.
12015
12016 2009-08-23  Bruno Haible  <bruno@clisp.org>
12017
12018         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
12019         Reported by Eric Blake.
12020
12021 2009-08-23  Bruno Haible  <bruno@clisp.org>
12022
12023         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
12024         Reported by Eric Blake.
12025
12026 2009-08-23  Bruno Haible  <bruno@clisp.org>
12027
12028         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
12029         * modules/pipe2 (Depends-on): Likewise.
12030
12031 2009-08-23  Eric Blake  <ebb9@byu.net>
12032
12033         fcntl-h: add O_TTY_INIT support
12034         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
12035         * tests/test-fcntl-h.c (o): Test it.
12036         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
12037
12038         fcntl-h: rename from fcntl, in preparation for fcntl(2)
12039         * modules/fcntl: Move <fcntl.h> header replacement...
12040         * modules/fcntl-h: ...to new name, so as not to collide with
12041         like-named function.
12042         * tests/test-fcntl.c: Rename...
12043         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
12044         * modules/fcntl-tests: Rename...
12045         * modules/fcntl-h-tests: ...to this.  Update test file name.
12046         * modules/chdir-long (Depends-on): Update clients.
12047         * modules/chdir-safer (Depends-on): Likewise.
12048         * modules/fcntl-safer (Depends-on): Likewise.
12049         * modules/fts (Depends-on): Likewise.
12050         * modules/mkancesdirs (Depends-on): Likewise.
12051         * modules/mkdir-p (Depends-on): Likewise.
12052         * modules/open (Depends-on): Likewise.
12053         * modules/savewd (Depends-on): Likewise.
12054         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
12055         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
12056
12057 2009-08-22  Bruno Haible  <bruno@clisp.org>
12058
12059         * modules/binary-io (License): Relicense under LGPL.
12060         * modules/pipe2 (License): Likewise.
12061
12062 2009-08-22  Bruno Haible  <bruno@clisp.org>
12063
12064         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
12065         return value.
12066         * lib/pipe-filter-gi.c (filter_init): Likewise.
12067         Reported by Eric Blake.
12068
12069 2009-08-22  Bruno Haible  <bruno@clisp.org>
12070
12071         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
12072         * modules/pipe (Depends-on): Add pipe2.
12073
12074 2009-08-22  Bruno Haible  <bruno@clisp.org>
12075
12076         Tests for module 'pipe2'.
12077         * modules/pipe2-tests: New file.
12078         * tests/test-pipe2.c: New file.
12079
12080         New module 'pipe2'.
12081         * lib/unistd.in.h (pipe2): New declaration.
12082         * lib/pipe2.c: New file.
12083         * m4/pipe2.m4: New file.
12084         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
12085         HAVE_PIPE2.
12086         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
12087         * modules/pipe2: New file.
12088         * doc/glibc-functions/pipe2.texi: Mention the new module.
12089
12090 2009-08-22  Bruno Haible  <bruno@clisp.org>
12091
12092         Reference some new glibc functions.
12093         * doc/glibc-functions/accept4.texi: New file.
12094         * doc/glibc-functions/dup3.texi: New file.
12095         * doc/glibc-functions/mkostemp.texi: New file.
12096         * doc/glibc-functions/pipe2.texi: New file.
12097         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
12098         (Glibc sys/socket.h): Refer to accept4.
12099         (Glibc unistd.h): Refer to dup3, pipe2.
12100         Reported by Eric Blake.
12101
12102 2009-08-22  Jim Meyering  <meyering@redhat.com>
12103             Bruno Haible  <bruno@clisp.org>
12104
12105         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
12106         This makes it so packages using automake-1.11's silent-rules option
12107         can print e.g., a single "GEN    configmake.h" line, rather than
12108         the 30+ statements that perform the job.  If you want to see the
12109         actual commands, you can still run "make V=1".
12110         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
12111         so that make output is abbreviated when those variables are defined
12112         appropriately.
12113         * modules/argz: Likewise.
12114         * modules/arpa_inet: Likewise.
12115         * modules/byteswap: Likewise.
12116         * modules/configmake: Likewise.
12117         * modules/dirent: Likewise.
12118         * modules/errno: Likewise.
12119         * modules/fcntl: Likewise.
12120         * modules/float: Likewise.
12121         * modules/fnmatch: Likewise.
12122         * modules/getopt-posix: Likewise.
12123         * modules/glob: Likewise.
12124         * modules/iconv_open: Likewise.
12125         * modules/inttypes: Likewise.
12126         * modules/localcharset: Likewise.
12127         * modules/locale: Likewise.
12128         * modules/math: Likewise.
12129         * modules/netdb: Likewise.
12130         * modules/netinet_in: Likewise.
12131         * modules/poll: Likewise.
12132         * modules/posix_spawnp-tests: Likewise.
12133         * modules/sched: Likewise.
12134         * modules/search: Likewise.
12135         * modules/selinux-h: Likewise.
12136         * modules/signal: Likewise.
12137         * modules/spawn: Likewise.
12138         * modules/stdarg: Likewise.
12139         * modules/stdbool: Likewise.
12140         * modules/stddef: Likewise.
12141         * modules/stdint: Likewise.
12142         * modules/stdio: Likewise.
12143         * modules/stdlib: Likewise.
12144         * modules/string: Likewise.
12145         * modules/strings: Likewise.
12146         * modules/sys_file: Likewise.
12147         * modules/sys_ioctl: Likewise.
12148         * modules/sys_select: Likewise.
12149         * modules/sys_socket: Likewise.
12150         * modules/sys_stat: Likewise.
12151         * modules/sys_time: Likewise.
12152         * modules/sys_times: Likewise.
12153         * modules/sys_utsname: Likewise.
12154         * modules/sys_wait: Likewise.
12155         * modules/sysexits: Likewise.
12156         * modules/time: Likewise.
12157         * modules/unistd: Likewise.
12158         * modules/wchar: Likewise.
12159         * modules/wctype: Likewise.
12160
12161 2009-08-22  Jim Meyering  <meyering@redhat.com>
12162
12163         announce-gen: detect write failure
12164         * build-aux/announce-gen: Add Coda at end.
12165         Remove equivalent-but-more-verbose block at top.
12166
12167 2009-08-19  Akim Demaille  <demaille@gostai.com>
12168
12169         bootstrap: --help to stdout.
12170         * bootstrap (usage): Don't send --help to stderr.
12171         Use a here doc instead of a long string.
12172
12173 2009-08-21  Eric Blake  <ebb9@byu.net>
12174
12175         test-popen-safer: split from test-popen
12176         * tests/test-popen.c (main): Move...
12177         * tests/test-popen.h: ...into new file.
12178         * tests/test-popen-safer2.c: New file.
12179         * modules/popen-tests (Files): Add test-popen.h.
12180         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
12181         Suggested by Bruno Haible.
12182
12183         test-fcntl-safer: split from test-open
12184         * tests/test-open.c (main): Move...
12185         * tests/test-open.h: ...into new file.
12186         * tests/test-fcntl-safer.c: New file.
12187         * modules/open-tests (Files): Add test-open.h.
12188         * modules/fcntl-safer-tests: New file.
12189         Suggested by Bruno Haible.
12190
12191         test-fopen-safer: split from test-fopen
12192         * tests/test-fopen.c (main): Move...
12193         * tests/test-fopen.h: ...into new file.
12194         * tests/test-fopen-safer.c: New file.
12195         * modules/fopen-tests (Files): Add test-fopen.h.
12196         * modules/fopen-safer-tests: New file.
12197         Suggested by Bruno Haible.
12198
12199 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
12200
12201         popen-safer: test O_CLOEXEC at run-time.
12202         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
12203
12204 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
12205
12206         fcntl: move more flags to the header
12207         * lib/cloexec.c: Do not define FD_CLOEXEC here.
12208         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
12209         * lib/fcntl.in.h: Do both things here.
12210
12211 2009-08-21  Jim Meyering  <meyering@redhat.com>
12212
12213         consistently remove $@-t before redirecting to it
12214         * modules/argz: Remove $@-t and $@ before redirecting to the former.
12215         * modules/alloca-opt: Likewise.
12216         * modules/byteswap: Likewise.
12217         * modules/fnmatch: Likewise.
12218         * modules/getopt-posix: Likewise.
12219         * modules/glob: Likewise.
12220         * modules/poll: Likewise.
12221         * modules/posix_spawnp-tests: Likewise.
12222         * modules/sys_socket: Likewise.
12223         * modules/sysexits: Likewise.
12224
12225 2009-08-21  Eric Blake  <ebb9@byu.net>
12226
12227         popen: simplify access to original popen
12228         * lib/popen.c (rpl_popen): No need to worry about popen being a
12229         macro.
12230         Reported by Bruno Haible.
12231
12232 2009-08-20  Eric Blake  <ebb9@byu.net>
12233
12234         build: avoid some compiler warnings
12235         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
12236         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
12237         type.
12238         (new_exclude_segment, excluded_file_pattern_p)
12239         (excluded_file_name_p): Reduce scope.
12240         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
12241         old-style declaration.
12242
12243 2009-08-20  Simon Josefsson  <simon@josefsson.org>
12244
12245         * tests/test-exclude1.sh: Handle Windows EOL.
12246         * tests/test-exclude2.sh: Likewise.
12247         * tests/test-exclude3.sh: Likewise.
12248         * tests/test-exclude4.sh: Likewise.
12249         * tests/test-exclude5.sh: Likewise.
12250         * tests/test-exclude6.sh: Likewise.
12251         * tests/test-exclude7.sh: Likewise.
12252
12253 2009-08-19  Akim Demaille  <demaille@gostai.com>
12254
12255         bootstrap: find sha1sum when named gsha1sum.
12256         * bootstrap (find_tool): New.
12257         ($SHA1SUM): New.
12258         Use it.
12259
12260 2009-08-20  Jim Meyering  <meyering@redhat.com>
12261
12262         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
12263         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
12264         expression that converts "." in a file name to "\." in the resulting
12265         regexp.  Start with a dummy statement, so that prior shell variable
12266         definitions are expanded portably.  Reported by Simon Josefsson.
12267
12268 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
12269
12270         Fix polling for writeability of a screen buffer.
12271         * lib/poll.c: Distinguish input and screen buffers for the
12272         Win32 implementation.
12273         * lib/select.c: Likewise.
12274
12275 2009-08-19  Eric Blake  <ebb9@byu.net>
12276
12277         popen-safer: prevent popen from clobbering std descriptors
12278         * modules/popen-safer: New file.
12279         * lib/popen-safer.c: Likewise.
12280         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
12281         * lib/stdio--.h (popen): Provide override.
12282         * lib/stdio-safer.h (popen_safer): Provide declaration.
12283         * tests/test-popen.c (includes): Partially test this.
12284         * modules/popen-safer-tests: New file, for more tests.
12285         * tests/test-popen-safer.c: Likewise.
12286         * MODULES.html.sh (file stream based Input/Output): Mention it.
12287
12288         tests: test some of the *-safer modules
12289         * modules/fopen-safer (Depends-on): Add fopen.
12290         * modules/fcntl-safer (Depends-on): Add fcntl.
12291         * modules/stdlib-safer (Depends-on): Add stdlib.
12292         (configure.ac): Set indicator.
12293         * modules/unistd-safer (configure.ac): Likewise.
12294         * modules/tmpfile-safer (configure.ac): Likewise.
12295         (Depends-on): Add tmpfile.
12296         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
12297         active.
12298         * tests/test-fopen.c (includes): Test safer versions when they are
12299         in use.
12300         * tests/test-open.c (includes): Likewise.
12301
12302         popen: fix cygwin 1.5 bug when stdin closed
12303         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
12304         * modules/popen: New file.
12305         * modules/popen-tests: Likewise.
12306         * tests/test-popen.c: Likewise.
12307         * m4/popen.m4: Likewise.
12308         * lib/popen.c: Likewise.
12309         * lib/stdio.in.h (popen): New declaration.
12310         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
12311         * modules/stdio (Makefile.am): Likewise.
12312         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
12313
12314 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
12315
12316         maint.mk: give full control over update-copyright exclusions
12317         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
12318         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
12319         (update-copyright): Don't force inclusion of top-level
12320         ChangeLog.  Don't force exclusion of all COPYING files, but make
12321         them the default exclusion instead.
12322
12323 2009-08-16  Bruno Haible  <bruno@clisp.org>
12324
12325         Fix test failures on Solaris 10.
12326         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
12327         tests when Solaris iconv() is used.
12328         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
12329         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
12330         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
12331         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
12332         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
12333
12334 2009-08-16  Bruno Haible  <bruno@clisp.org>
12335
12336         Fix test failures on Solaris 10.
12337         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
12338         'tr' program and pass it as first argument.
12339         * tests/test-pipe-filter-gi1.sh: Likewise.
12340         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
12341         program as first argument.
12342         * tests/test-pipe-filter-gi1.c (main): Likewise.
12343
12344 2009-08-16  Eric Blake  <ebb9@byu.net>
12345
12346         fpurge: fix previous commits
12347         * modules/fpurge (Makefile.am): Make replacement conditional,
12348         partially reverting 2007-04-29 change; missed in previous
12349         attempt.
12350         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
12351         is missing.
12352
12353 2009-08-16  Bruno Haible  <bruno@clisp.org>
12354
12355         Clarify fpurge's effect on the file position.
12356         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
12357         * tests/test-fpurge.c (main): Make a second pass for checking the file
12358         position.
12359
12360 2009-08-16  Bruno Haible  <bruno@clisp.org>
12361
12362         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
12363         declaration of fpurge is missing.
12364         * tests/test-fpurge.c (main): Check that the file has not more contents
12365         than expected. Close the file before removing it.
12366
12367 2009-08-15  Eric Blake  <ebb9@byu.net>
12368
12369         fpurge: don't wrap working cygwin implementation
12370         * lib/fpurge.c (fpurge): Fix comment typo.
12371         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
12372         1.7 to avoid replacement.
12373         * tests/test-fpurge.c (main): Enhance test.
12374
12375 2009-08-15  Eric Blake  <ebb9@byu.net>
12376         and Jim Meyering  <meyering@redhat.com>
12377
12378         test-update-copyright: skip if perl is insufficient
12379         * tests/test-update-copyright.sh: Failure to run maintainer tool
12380         should not cause testsuite failure on cygwin 1.5.
12381
12382 2009-08-14  Eric Blake  <ebb9@byu.net>
12383
12384         doc: mention more functions added in cygwin 1.7.0
12385         * doc/posix-headers/limits.texi (limits.h): Update for recent
12386         cygwin additions.
12387         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
12388         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
12389         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
12390         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
12391         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
12392
12393 2009-08-14  Eric Blake  <ebb9@byu.net>
12394
12395         maint.mk: simplify update-copyright rule
12396         * top/maint.mk (update-copyright-local): Delete, and document how
12397         to do it in cfg.mk instead.
12398         (update-copyright-exclude-regexp): Delete, and document how to do
12399         it in .x-update-copyright instead.
12400         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
12401         exclude ChangeLog.
12402
12403 2009-08-14  Bruno Haible  <bruno@clisp.org>
12404
12405         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
12406
12407 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
12408
12409         maint.mk: support update-copyright-env
12410         * top/maint.mk (update-copyright-env): Define place-holder.
12411         (update-copyright): Expand $(update-copyright-env) before
12412         invoking update-copyright.
12413
12414 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
12415
12416         update-copyright: implement forced reformatting
12417         * build-aux/update-copyright: Implement and document
12418         UPDATE_COPYRIGHT_FORCE.
12419         * tests/test-update-copyright.sh: Test it.
12420
12421 2009-08-14  Eric Blake  <ebb9@byu.net>
12422         and Bruno Haible  <bruno@clisp.org>
12423
12424         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
12425         * tests/test-locale.c: Revert previous patch related to NULL.
12426         * tests/test-stdio.c: Likewise.
12427         * tests/test-stdlib.c: Likewise.
12428         * tests/test-string.c: Likewise.
12429         * tests/test-unistd.c: Likewise.
12430         * modules/time-tests (Depends-on): Add verify.
12431         * modules/wchar-tests (Depends-on): Likewise.
12432         * tests/test-time.c: Test for NULL compliance.
12433         * tests/test-wchar.c: Likewise.
12434         * modules/locale (Depends-on): Add stddef.
12435         * modules/stdio (Depends-on): Likewise.
12436         * modules/stdlib (Depends-on): Likewise.
12437         * modules/string (Depends-on): Likewise.
12438         * modules/time (Depends-on): Likewise.
12439         * modules/unistd (Depends-on): Likewise.
12440         * modules/wchar (Depends-on): Likewise.
12441         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
12442         * lib/stdlib.in.h (includes): Likewise.
12443         * lib/string.in.h (includes): Likewise.
12444         * lib/time.in.h (includes): Likewise.
12445         * lib/unistd.in.h (includes): Likewise.
12446         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
12447         replaced.
12448         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
12449         * m4/stddef_h.m4: New file.
12450         * modules/stddef: Likewise.
12451         * lib/stddef.in.h: Likewise.
12452         * modules/stddef-tests: Likewise.
12453         * tests/test-stddef.c: Likewise.
12454         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
12455         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
12456         * doc/posix-headers/locale.texi (locale.h): Likewise.
12457         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
12458         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
12459         * doc/posix-headers/string.texi (string.h): Likewise.
12460         * doc/posix-headers/time.texi (time.h): Likewise.
12461         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
12462         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
12463
12464 2009-08-14  Eric Blake  <ebb9@byu.net>
12465
12466         doc: improve git diff of texinfo files
12467         * .gitattributes: Add rule for *.texi files, with hint on how to
12468         use it.
12469         Copied from m4, and based on a report by Bruno Haible.
12470
12471 2009-08-14  Bruno Haible  <bruno@clisp.org>
12472
12473         Disable multithread support by default on Cygwin 1.5.x for real.
12474         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
12475
12476 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
12477
12478         update-copyright: much ado about intervals
12479         * build-aux/update-copyright: Implement and document
12480         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
12481         of copyright year intervals.
12482         Also, document UPDATE_COPYRIGHT_YEAR.
12483         * tests/test-update-copyright.sh: Test it.
12484
12485         update-copyright: convert 2-digit to 4-digit years
12486         * build-aux/update-copyright: Implement and document.
12487         * tests/test-update-copyright.sh: Update.
12488
12489 2009-08-14  Jim Meyering  <meyering@redhat.com>
12490
12491         test-exclude: avoid coreutils "make check" failure
12492         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
12493         just as in test-argmatch.c.
12494
12495 2009-08-13  Eric Blake  <ebb9@byu.net>
12496
12497         test-dup2: fix bad assumption
12498         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
12499         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
12500
12501         test-version-etc: fix CRLF portability issue
12502         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
12503         recognize \r.
12504         * tests/test-argp-version-etc-1.sh: Likewise.
12505
12506         getopt: update client modules
12507         * modules/argp (Depends-on): Use getopt-gnu.
12508         * modules/git-merge-changelog (Depends-on): Likewise.
12509         * modules/long-options (Depends-on): Likewise.
12510         * modules/xstrtol (Depends-on): Likewise.
12511
12512 2009-08-13  Simon Josefsson  <simon@josefsson.org>
12513
12514         * tests/test-version-etc.sh: Don't fail on different
12515         project/version.  Don't fail on CRLF differences.  Rewrite to use
12516         multiple -e instead of multiple sed forks, suggested by Eric Blake
12517         <ebb9@byu.net>.
12518         * tests/test-argp-version-etc-1.sh: Likewise.
12519
12520 2009-08-13  Simon Josefsson  <simon@josefsson.org>
12521
12522         * tests/test-version-etc.sh: Don't fail on different
12523         project/version.
12524
12525 2009-08-12  Bruno Haible  <bruno@clisp.org>
12526
12527         Tests for modules 'getopt-posix', 'getopt-gnu'.
12528         * modules/getopt-posix-tests: New file.
12529         * tests/test-getopt.c: New file.
12530         * tests/test-getopt.h: New file.
12531         * tests/test-getopt_long.h: New file.
12532
12533         New modules 'getopt-posix', 'getopt-gnu'.
12534         * modules/getopt-gnu: New file, renamed from modules/getopt.
12535         * modules/getopt-posix: New file.
12536         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
12537         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
12538         (gl_GETOPT): Remove macro.
12539         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
12540         Disable the test against BSD systems that declare optreset. Test
12541         against mingw bug. Test against lack of support of optional arguments
12542         on many platforms.
12543         * doc/glibc-headers/getopt.texi: Update module name and list of
12544         relevant platforms.
12545         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
12546         'getopt-gnu' and more portability problems.
12547         * NEWS: Mention the changes.
12548
12549 2009-08-12  Bruno Haible  <bruno@clisp.org>
12550
12551         Ensure that optarg etc. get declared by <unistd.h>.
12552         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
12553         AC_USE_SYSTEM_EXTENSIONS.
12554         * modules/getopt (Depends-on): Add 'extensions'.
12555
12556 2009-08-12  Bruno Haible  <bruno@clisp.org>
12557
12558         Avoid test link errors.
12559         * modules/pipe-filter-ii-tests (Makefile.am): Define
12560         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
12561         * modules/pipe-filter-gi-tests (Makefile.am): Define
12562         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
12563         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12564
12565 2009-08-12  Bruno Haible  <bruno@clisp.org>
12566
12567         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
12568         gl_GETOPT_SUBSTITUTE before.
12569         (gl_GETOPT): Use it.
12570         * m4/argp.m4 (gl_ARGP): Update.
12571         Reported by Sergey Poznyakoff.
12572
12573         * m4/getopt.m4: Reorder macros.
12574         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
12575         (gl_GETOPT_SUBSTITUTE): Remove macro.
12576
12577 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
12578
12579         Minor improvement in gitlog-to-changelog
12580
12581         * build-aux/gitlog-to-changelog: New option `--format' makes
12582         output format string configurable.
12583
12584 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
12585
12586         Optimize exclude: use hash tables for non-wildcard patterns.
12587
12588         * lib/exclude.c: Include hash.h and mbuiter.h
12589         (struct exclude_pattern, exclude_segment): New data types.
12590         (struct exclude): Rewrite.
12591         (fnmatch_pattern_has_wildcards): New function.
12592         (new_exclude_segment, free_exclude_segment): New functions.
12593         (excluded_file_pattern_p, excluded_file_name_p): New functions.
12594         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
12595         * lib/exclude.h (is_fnmatch_pattern): New prototype.
12596         * modules/exclude: Depend on hash and mbuiter.
12597
12598         * modules/exclude-tests: New file.
12599         * tests/test-exclude.c: New file.
12600         * tests/test-exclude1.sh: New file.
12601         * tests/test-exclude2.sh: New file.
12602         * tests/test-exclude3.sh: New file.
12603         * tests/test-exclude4.sh: New file.
12604         * tests/test-exclude5.sh: New file.
12605         * tests/test-exclude6.sh: New file.
12606         * tests/test-exclude7.sh: New file.
12607
12608 2009-08-12  Bruno Haible  <bruno@clisp.org>
12609
12610         Ensure that getopt() gets declared by <unistd.h>.
12611         * lib/unistd.in.h: Conditionally include getopt.h.
12612         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
12613         Set GNULIB_UNISTD_H_GETOPT.
12614         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12615         GNULIB_UNISTD_H_GETOPT.
12616         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
12617
12618 2009-08-12  Bruno Haible  <bruno@clisp.org>
12619
12620         Clarify logic.
12621         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
12622         gl_replace_getopt instead of GETOPT_H.
12623
12624 2009-08-12  Bruno Haible  <bruno@clisp.org>
12625
12626         * m4/getopt.m4: Add comments.
12627
12628 2009-08-12  Bruno Haible  <bruno@clisp.org>
12629
12630         Disable multithread support by default on Cygwin 1.5.x.
12631         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
12632         set gl_use_threads=no if not specified otherwise.
12633
12634 2009-08-11  Bruno Haible  <bruno@clisp.org>
12635
12636         Avoid compilation error on NetBSD 5.0.
12637         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
12638         * tests/test-stdio.c: Likewise.
12639         * tests/test-stdlib.c: Likewise.
12640         * tests/test-string.c: Likewise.
12641         * tests/test-unistd.c: Likewise.
12642         Reported by Greg Troxel <gdt@ir.bbn.com>
12643         at <https://savannah.gnu.org/support/?106973>.
12644
12645 2009-08-11  Bruno Haible  <bruno@clisp.org>
12646
12647         * modules/dup2-tests (Depends-on): Remove close.
12648
12649         Undo 2009-07-19 commit.
12650         * modules/acl-tests (Depends-on): Remove close.
12651         * modules/binary-io-tests (Depends-on): Likewise.
12652         * modules/closein-tests (Depends-on): Likewise.
12653         * modules/flock-tests (Depends-on): Likewise.
12654         * modules/fsync-tests (Depends-on): Likewise.
12655         * modules/lseek-tests (Depends-on): Likewise.
12656         * modules/pipe-tests (Depends-on): Likewise.
12657         * modules/posix_spawn-tests (Depends-on): Likewise.
12658         * modules/posix_spawnp-tests (Depends-on): Likewise.
12659         * modules/stat-time-tests (Depends-on): Likewise.
12660         * modules/yesno-tests (Depends-on): Likewise.
12661
12662 2009-08-10  Bruno Haible  <bruno@clisp.org>
12663
12664         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
12665
12666 2009-08-10  Bruno Haible  <bruno@clisp.org>
12667
12668         Fix a gcc warning.
12669         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
12670
12671 2009-08-10  Bruno Haible  <bruno@clisp.org>
12672
12673         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
12674         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
12675         not only the first time.
12676         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
12677         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
12678         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
12679         is 1, not only the the first time.
12680
12681 2009-08-10  Bruno Haible  <bruno@clisp.org>
12682
12683         Make it possible to use module 'gethostname' without module 'close'.
12684         * lib/unistd.in.h (close): Evoke a link error only if
12685         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
12686         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12687         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12688         * modules/unistd (Makefile.am): Substitute
12689         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12690         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
12691         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
12692         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
12693         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12694         * modules/sys_ioctl (Makefile.am): Substitute
12695         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12696         * modules/socket (configure.ac): On native Windows, set
12697         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
12698         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12699         Reported by Sam Steingold <sds@gnu.org>.
12700
12701 2009-08-10  Bruno Haible  <bruno@clisp.org>
12702
12703         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
12704         * modules/ioctl (configure.ac): Likewise.
12705
12706 2009-08-10  Bruno Haible  <bruno@clisp.org>
12707
12708         Avoid collision between gnulib wrapper and libintl wrapper.
12709         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
12710         already defined in intl/printf.c.
12711         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
12712         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
12713
12714 2009-08-09  Bruno Haible  <bruno@clisp.org>
12715
12716         Make <sys/select.h> really self-contained, also on Solaris 10.
12717         * lib/sys_select.in.h: Include <string.h>.
12718         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
12719         Solaris 10 problem.
12720         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
12721         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
12722         Reported by Jim Meyering.
12723
12724 2009-08-09  Bruno Haible  <bruno@clisp.org>
12725
12726         Avoid warnings from 'aclocal' that are due to a use of macro name
12727         AM_XGETTEXT_OPTION that is not defined in automake.
12728         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
12729         automake.
12730         * modules/error (configure.ac): Likewise.
12731         * modules/propername (configure.ac): Likewise.
12732         * modules/vasprintf (configure.ac): Likewise.
12733         * modules/verror (configure.ac): Likewise.
12734         * modules/xprintf (configure.ac): Likewise.
12735         * modules/xvasprintf (configure.ac): Likewise.
12736
12737 2009-08-08  Bruno Haible  <bruno@clisp.org>
12738
12739         Avoid compilation error in C++ mode.
12740         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
12741         Reported by Sam Steingold <sds@gnu.org>.
12742
12743 2009-08-08  Bruno Haible  <bruno@clisp.org>
12744
12745         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
12746         for the various Unix platforms.
12747         * doc/posix-headers/limits.texi: Update platforms list regarding
12748         HOST_NAME_MAX.
12749         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12750
12751 2009-08-07  Jim Meyering  <meyering@redhat.com>
12752
12753         selinux-at: fix typo in a comment
12754         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
12755         Spotted by Paolo Bonzini.
12756
12757         selinux-at: remove redundant m4 code, add documentation
12758         * modules/selinux-at (configure.ac): Remove redundant code.
12759         LIB_SELINUX is already set via the dependent module, selinux-h.
12760         (Include): Add quotes around selinux-at.h.
12761         * lib/selinux-at.h: Add documentation.
12762         Reported by Bruno Haible in
12763         http://marc.info/?l=gnulib-bug&m=124958988300749
12764
12765 2009-08-07  Bruno Haible  <bruno@clisp.org>
12766
12767         Avoid link error on MacOS X 10.3 and 10.4.
12768         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
12769         on non-ELF systems.
12770         * lib/argp-pv.c (argp_program_version): Likewise.
12771         Reported by Simon Josefsson.
12772
12773 2009-08-07  Simon Josefsson  <simon@josefsson.org>
12774
12775         * tests/test-version-etc.sh: Use $EXEEXT.
12776
12777 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
12778
12779         update-copyright: update documentation to point to maint.mk
12780         * build-aux/update-copyright: Here.
12781
12782 2009-08-06  Jim Meyering  <meyering@redhat.com>
12783
12784         maint.mk: support update-copyright-local
12785         * top/maint.mk (update-copyright-local): Define place-holder.
12786         (update-copyright): Depend on $(update-copyright-local).
12787
12788 2009-08-06  Jim Meyering  <meyering@redhat.com>
12789
12790         selinux-at: new module
12791         Initially written for coreutils, this module will soon be
12792         used by findutils, too.
12793         * MODULES.html.sh [Misc]: Add selinux-at.
12794         * lib/selinux-at.h: New file, from coreutils.
12795         * lib/selinux-at.c: Likewise.
12796         * modules/selinux-at: Likewise.
12797         (License): Change from LGPL to GPL, since it depends
12798         on the GPL'd openat module.
12799
12800         doc: update README
12801         * README: Remove references to cogito.
12802         Remove cvs-repo-updating instructions from 2007.
12803         Don't imply that CVS is better if you have limited disk space.
12804
12805 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12806
12807         update-copyright: support C-style comments
12808         * build-aux/update-copyright: Implement and document.
12809         * tests/test-update-copyright.sh: Test.
12810
12811 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12812
12813         update-copyright: support omitted "(C)"
12814         * build-aux/update-copyright: Implement and document.  Also,
12815         allow variable whitespace before "(C)".
12816         * tests/test-update-copyright.sh: Test.
12817
12818 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12819
12820         update-copyright: don't trip on non-FSF copyright statements
12821         * build-aux/update-copyright: Fix so that the first correctly
12822         formatted FSF copyright statement is recognized no matter what
12823         appears before it.  Update documentation.
12824         * tests/test-update-copyright.sh: Test that.
12825
12826 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12827
12828         update-copyright: clean up code a little
12829         * build-aux/update-copyright: Append "_re" to the name of any
12830         variable holding a regular expression.
12831         Replace "old" and "new" with "stmt" in variable names.
12832         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
12833         handled correctly.
12834         Format code more consistently.
12835
12836 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12837
12838         update-copyright-tests: improve portability
12839         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
12840         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
12841
12842 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
12843
12844         update-copyright: support @copyright{} and &copy;
12845         * build-aux/update-copyright: Implement and document.
12846         * tests/test-update-copyright.sh: Test.
12847
12848 2009-08-04  Jim Meyering  <meyering@redhat.com>
12849
12850         update-copyright-tests: correctly test EOL=\r\n handling
12851         * tests/test-update-copyright.sh: Put \r at the end of some lines
12852         for the dos-eol tests.  Based on a patch by Joel E. Denny.
12853
12854         maint.mk: make update-copyright exclusion list more configurable
12855         * top/maint.mk (update-copyright): Default to excluding COPYING,
12856         but allow an override, in case someone does want to update that file.
12857
12858         maint.mk: don't update copyright date in COPYING
12859         * top/maint.mk (update-copyright): Exclude COPYING.
12860
12861         maint.mk: add a copyright-updating rule
12862         * top/maint.mk (update-copyright): New rule.
12863         Derived from coreutils/Makefile.am.
12864
12865         update-copyright: rename some variables
12866         * build-aux/update-copyright: Rename a few variables for clarity.
12867         Tweak syntax.  List Joel E. Denny as coauthor.
12868
12869 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
12870
12871         update-copyright: fix bug for 2-digit last year and add tests
12872         * build-aux/update-copyright: Fix bug.
12873         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
12874         specified.
12875         * modules/update-copyright-tests: New
12876         * tests/test-update-copyright.sh: New.
12877
12878 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
12879
12880         update-copyright: handle leading tabs in line prefix
12881         * build-aux/update-copyright: Count leading tabs as 8 spaces
12882         when computing margin.  This helps with the formatting of
12883         ChangeLogs, for example.
12884         Fix documentation a little.
12885
12886 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
12887
12888         update-copyright: support EOL=\r\n
12889         * build-aux/update-copyright: Implement that.
12890
12891 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
12892
12893         update-copyright: automatically format copyright statements
12894         * build-aux/update-copyright: Implement that.
12895         Also, be a little more predictable and safer by always failing
12896         when the full copyright format is not perfectly recognized as an
12897         unbroken whole.  Discussed at
12898         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
12899         Rewrite documentation.
12900
12901 2009-08-03  Bruno Haible  <bruno@clisp.org>
12902
12903         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
12904
12905 2009-08-02  Bruno Haible  <bruno@clisp.org>
12906
12907         Tests for module 'uname'.
12908         * modules/uname-tests: New file.
12909         * tests/test-uname.c: New file.
12910
12911         New module 'uname'.
12912         * lib/uname.c: New file.
12913         * m4/uname.m4: New file.
12914         * modules/uname: New file.
12915         * doc/posix-functions/uname.texi: Mention the new module.
12916
12917 2009-08-02  Bruno Haible  <bruno@clisp.org>
12918
12919         Tests for module 'sys_utsname'.
12920         * modules/sys_utsname-tests: New file.
12921         * tests/test-sys_utsname.c: New file.
12922
12923         New module 'sys_utsname'.
12924         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
12925         * m4/sys_utsname_h.m4: New file.
12926         * modules/sys_utsname: New file.
12927         * doc/posix-headers/sys_utsname.texi: Mention the new module.
12928
12929 2009-08-02  Bruno Haible  <bruno@clisp.org>
12930
12931         Implicitly initialize the sockets library.
12932         * lib/gethostname.c: Include sockets.h.
12933         (rpl_gethostname): Invoke gl_sockets_startup.
12934         * lib/socket.c: Include sockets.h.
12935         (rpl_socket): Invoke gl_sockets_startup.
12936         * modules/gethostname (Depends-on): Add sockets.
12937         * modules/socket (Depends-on): Likewise.
12938         * tests/test-poll.c: Don't include sockets.h.
12939         (main): Don't invoke gl_sockets_startup.
12940         * tests/test-select.c: Don't include sockets.h.
12941         (main): Don't invoke gl_sockets_startup.
12942
12943 2009-08-02  Bruno Haible  <bruno@clisp.org>
12944
12945         Allow multiple calls to gl_sockets_startup.
12946         * lib/sockets.c (initialized_sockets_version): New variable.
12947         (gl_sockets_startup): Do nothing if already called for this or a higher
12948         version.
12949         (gl_sockets_cleanup): Reset initialized_sockets_version.
12950
12951 2009-08-03  Simon Josefsson  <simon@josefsson.org>
12952
12953         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
12954         different project/version.
12955
12956 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
12957             Bruno Haible  <bruno@clisp.org>
12958
12959         Tests for module 'pipe-filter-gi'.
12960         * modules/pipe-filter-gi-tests: New file.
12961         * tests/test-pipe-filter-gi1.sh: New file.
12962         * tests/test-pipe-filter-gi1.c: New file.
12963         * tests/test-pipe-filter-gi2.sh: New file.
12964         * tests/test-pipe-filter-gi2-main.c: New file.
12965         * tests/test-pipe-filter-gi2-child.c: New file.
12966
12967         New module 'pipe-filter-gi'.
12968         * lib/pipe-filter-gi.c: New file.
12969         * modules/pipe-filter-gi: New file.
12970
12971 2009-08-02  Bruno Haible  <bruno@clisp.org>
12972             Paolo Bonzini  <bonzini@gnu.org>
12973
12974         Tests for module 'pipe-filter-ii'.
12975         * modules/pipe-filter-ii-tests: New file.
12976         * tests/test-pipe-filter-ii1.sh: New file.
12977         * tests/test-pipe-filter-ii1.c: New file.
12978         * tests/test-pipe-filter-ii2.sh: New file.
12979         * tests/test-pipe-filter-ii2-main.c: New file.
12980         * tests/test-pipe-filter-ii2-child.c: New file.
12981
12982         New module 'pipe-filter-ii'.
12983         * lib/pipe-filter.h: New file.
12984         * lib/pipe-filter-ii.c: New file.
12985         * lib/pipe-filter-aux.h: New file.
12986         * modules/pipe-filter-ii: New file.
12987
12988 2009-08-02  Simon Josefsson  <simon@josefsson.org>
12989
12990         * lib/gc-libgcrypt.c: Change copyright to FSF.
12991         * lib/gc-gnulib.c: Likewise.
12992
12993 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
12994
12995         * lib/gethostname.c: Include limits.h.
12996
12997 2009-08-02  Simon Josefsson  <simon@josefsson.org>
12998             Bruno Haible  <bruno@clisp.org>
12999
13000         Ensure HOST_NAME_MAX as part of the gethostname module.
13001         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
13002         define also HOST_NAME_MAX.
13003         * tests/test-gethostname.c: Include <limits.h>.
13004         (main): Check also HOST_NAME_MAX.
13005         * doc/posix-headers/limits.texi: Document the mingw problem.
13006
13007 2009-08-02  Bruno Haible  <bruno@clisp.org>
13008
13009         * lib/gethostname.c (gethostname): Fix handling of large len argument.
13010         Add comments.
13011
13012 2009-03-31  Simon Josefsson  <simon@josefsson.org>
13013
13014         * lib/gethostname.c: Add Windows wrapper.
13015         * m4/gethostname.m4: Look for gethostname in -lws2_32.
13016         * modules/gethostname: Depend on sys_socket & errno, for also
13017         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
13018         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
13019
13020 2009-07-31  Jim Meyering  <meyering@redhat.com>
13021
13022         getloadavg: fix symbol name in comment
13023         * lib/getloadavg.c: Correct a typo I introduced when adding
13024         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
13025         Matt Kraai spotted the problem.
13026
13027 2009-07-29  Matt Kraai  <mkraai@beckman.com>
13028
13029         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
13030         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
13031         code also if ! defined N_NAME_POINTER.
13032         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
13033         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
13034         but the n_name member is a 12-byte array.
13035
13036 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
13037
13038         update-copyright: generalize comment handling
13039         * build-aux/update-copyright: Handle copyright statements
13040         within more comment styles.
13041         Document usage.
13042         Report any file with an external copyright holder or parse failure.
13043
13044 2009-07-29  Jim Meyering  <meyering@redhat.com>
13045
13046         mktime: correct setting of REPLACE_MKTIME
13047         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
13048
13049         update-copyright: new module
13050         * modules/update-copyright: New file.
13051         * build-aux/update-copyright: New file.
13052         * MODULES.html.sh (maint+release support): Add update-copyright.
13053
13054 2009-07-27  Bruno Haible  <bruno@clisp.org>
13055
13056         Fix compilation error when <ctime> is used and mktime is replaced.
13057         * lib/time.in.h (mktime): New declaration.
13058         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
13059         REPLACE_MKTIME instead of defining mktime in config.h.
13060         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
13061         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
13062         Reported by Ross McFarland <rwmcfa1@neces.com>.
13063
13064 2009-07-27  Bruno Haible  <bruno@clisp.org>
13065
13066         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
13067         Reported by Matt Kraai <mkraai@beckman.com>.
13068
13069 2009-07-25  Jim Meyering  <meyering@redhat.com>
13070
13071         maint.mk: avoid warnings about missing files
13072         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
13073         diagnostic when .prev-version does not exist.
13074         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
13075         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
13076         nonexistent cfg.mk.
13077         Suggestions from Simon Josefsson.
13078
13079 2009-07-25  Bruno Haible  <bruno@clisp.org>
13080
13081         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
13082         defined as macros. Needed on QNX 6.4.1.
13083         Reported by Matt Kraai <mkraai@beckman.com>.
13084
13085 2009-07-23  Jim Meyering  <meyering@redhat.com>
13086
13087         maint.mk: invoke "make dist" with a working value of XZ_OPT
13088         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
13089
13090 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
13091
13092         Make fseeko.c compile on QNX.
13093         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
13094
13095 2009-07-22  Peter Simons  <simons@cryp.to>
13096
13097         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
13098         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
13099         * lib/md4.h: Likewise.
13100         * lib/md5.h: Likewise.
13101         * lib/sha1.h: Likewise.
13102         * lib/sha256.h: Likewise.
13103         * lib/sha512.h: Likewise.
13104
13105         tests-sha1: don't assign literal string to 'char *' variable
13106         * tests/test-sha1.c (main): Declare locals with "const" to match
13107         attributes of the right hand side.
13108
13109 2009-07-21  Eric Blake  <ebb9@byu.net>
13110
13111         dup2: fix more mingw problems
13112         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
13113         fd to itself.
13114         * doc/posix-functions/dup2.texi (dup2): Document the bug.
13115         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
13116         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
13117         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
13118         care of mingw bugs.
13119
13120 2009-07-21  Jim Meyering  <meyering@redhat.com>
13121
13122         vc-list-files: avoid failure when /bin/sh is dash
13123         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
13124         On some Debian based systems, /bin/sh is a symlink to dash, and running
13125         this command would omit the "/" following each 'tests' prefix:
13126           dash -x build-aux/vc-list-files -C . tests
13127         That is because bash and dash work differently:
13128           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
13129           bash ok
13130           dash odd
13131
13132 2009-07-21  Eric Blake  <ebb9@byu.net>
13133
13134         dup2-tests: test previous patch
13135         * modules/dup2-tests: New file.
13136         * tests/test-dup2.c: Likewise.
13137         * tests/test-open.c (main): Avoid unspecified behavior.
13138         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
13139         test.
13140
13141         dup2: work around mingw and cygwin 1.5 bug
13142         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
13143         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13144         * modules/unistd (Makefile.am): Substitute it.
13145         * lib/unistd.in.h (dup2): Declare the replacement.
13146         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
13147         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
13148         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
13149         * modules/execute (Depends-on): Add dup2.
13150         * modules/fseterr (Depends-on): Likewise.
13151         * modules/pipe (Depends-on): Likewise.
13152         * modules/posix_spawn-internal (Depends-on): Likewise.
13153
13154 2009-07-21  Bruno Haible  <bruno@clisp.org>
13155
13156         * modules/.gitattributes: New file.
13157
13158 2009-07-20  Bruno Haible  <bruno@clisp.org>
13159
13160         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
13161         (main): Use it.
13162
13163 2009-07-20  Eric Blake  <ebb9@byu.net>
13164
13165         test-pipe: make a bit more robust.
13166         * tests/test-pipe.c (myerr): Allow error messages regardless of
13167         what we do to stderr.
13168         (test_pipe): Rearrange to avoid deadlock.
13169         (child_main): Try a larger read, to ensure we avoided deadlock.
13170         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
13171         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
13172         if misused.
13173
13174 2009-07-19  Jim Meyering  <meyering@redhat.com>
13175
13176         fts: avoid false-positive cycle-detection
13177         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
13178         for each new command line argument.
13179
13180 2009-07-19  Bruno Haible  <bruno@clisp.org>
13181
13182         Fix build error on mingw with the modules sys_select and unistd.
13183         * modules/acl-tests (Depends-on): Add close.
13184         * modules/binary-io-tests (Depends-on): Likewise.
13185         * modules/closein-tests (Depends-on): Likewise.
13186         * modules/flock-tests (Depends-on): Likewise.
13187         * modules/fsync-tests (Depends-on): Likewise.
13188         * modules/lseek-tests (Depends-on): Likewise.
13189         * modules/pipe-tests (Depends-on): Likewise.
13190         * modules/posix_spawn-tests (Depends-on): Likewise.
13191         * modules/posix_spawnp-tests (Depends-on): Likewise.
13192         * modules/stat-time-tests (Depends-on): Likewise.
13193         * modules/yesno-tests (Depends-on): Likewise.
13194
13195 2009-07-19  Bruno Haible  <bruno@clisp.org>
13196
13197         Unify conditionals.
13198         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
13199         macros, not at the compiler macros.
13200         * lib/pipe.c: Likewise.
13201         * lib/execute.c: Likewise.
13202         * lib/spawni.c: Likewise.
13203
13204 2009-07-19  Bruno Haible  <bruno@clisp.org>
13205
13206         Fix handling of closed stdin/stdout/stderr on mingw.
13207         * lib/w32spawn.h: Include unistd.h.
13208         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
13209         file descriptor with O_NOINHERIT flag.
13210         (fd_safer_noinherit): New function, based on fd-safer.c.
13211         (dup_safer_noinherit): New function, based on dup-safer.c.
13212         (undup_safer_noinherit): New function.
13213         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
13214         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
13215         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
13216         instead of fd_safer.
13217         * tests/test-pipe.c: Include <windows.h>.
13218         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
13219
13220         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
13221         from main.
13222         (test_pipe): Pass an extra argument for disambiguation.
13223         (main): Invoke parent_main or child_main.
13224
13225         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
13226         consistently.
13227
13228 2009-07-18  Eric Blake  <ebb9@byu.net>
13229
13230         test-pipe: fix mingw build
13231         * tests/test-pipe.c (main): Avoid fcntl on mingw.
13232
13233 2009-07-18  Bruno Haible  <bruno@clisp.org>
13234
13235         * modules/pipe-tests (Makefile.am): Fix typo.
13236
13237 2009-07-18  Eric Blake  <ebb9@byu.net>
13238
13239         error: fix mingw build
13240         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
13241         Reported by Bruno Haible.
13242
13243         error: avoid undefined use of stdout
13244         * lib/error.c (error, error_at_line): Check that fd 1 is open
13245         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
13246         is handling faults and the close_stdout module wants to report the
13247         detection of closed stdout as an error.
13248
13249 2009-07-17  Eric Blake  <ebb9@byu.net>
13250
13251         pipe: be robust in face of closed fds
13252         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
13253         should cause child to misbehave.
13254         * modules/pipe-tests: New module.
13255         * tests/test-pipe.c: New file.
13256         * tests/test-pipe.sh: New file.
13257         Reported by Akim Demaille.
13258
13259 2009-07-14  Bruno Haible  <bruno@clisp.org>
13260
13261         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
13262         Reported by anonymous kc.
13263
13264 2009-07-07  Jim Meyering  <meyering@redhat.com>
13265
13266         maint.mk: don't look for translatable strings in *.m4 or *.mk
13267         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
13268         when searching for translatable strings.
13269
13270 2009-07-05  Jim Meyering  <meyering@redhat.com>
13271
13272         remove superfluous parentheses in STREQ definition
13273         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
13274         * lib/getugroups.c (STREQ): Likewise.
13275         * lib/fnmatch.c (STREQ): Likewise.
13276         Spotted by Bruno Haible.
13277
13278 2009-07-04  Jim Meyering  <meyering@redhat.com>
13279
13280         argv-iter: new module
13281         * MODULES.html.sh: Add argv-iter.
13282         * lib/argv-iter.c, lib/argv-iter.h: New files.
13283         * modules/argv-iter: New file.
13284         * modules/argv-iter-tests: New file.
13285         * tests/test-argv-iter.c: Test it.
13286
13287 2009-07-04  Bruno Haible  <bruno@clisp.org>
13288
13289         Fix assertion.
13290         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
13291         contains more exact copies of a given entry than file2, leave the extra
13292         copies unpaired rather than aborting.
13293         Reported by Eric Blake.
13294
13295 2009-07-02  Bruno Haible  <bruno@clisp.org>
13296
13297         Speedup git-merge-changelog for git cherry-pick.
13298         * lib/git-merge-changelog.c (struct entries_mapping): New type.
13299         (entries_mapping_get): New function, extracted from compute_mapping.
13300         (entries_mapping_reverse_get): New function.
13301         (compute_mapping): Add a 'full' argument. Return the result in a
13302         'struct entries_mapping'.
13303         (main): Update. Access the mappings through entries_mapping_get.
13304         Reported by Eric Blake.
13305
13306 2009-07-02  Bruno Haible  <bruno@clisp.org>
13307
13308         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
13309         best_i.
13310
13311 2009-07-02  Bruno Haible  <bruno@clisp.org>
13312
13313         Speed up approximate search for matching ChangeLog entries.
13314         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
13315         argument. Call fstrcmp_bounded instead of fstrcmp.
13316         (compute_mapping, try_split_merged_entry, main): Update callers.
13317
13318 2009-07-02  Bruno Haible  <bruno@clisp.org>
13319
13320         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
13321
13322 2009-06-30  Bruno Haible  <bruno@clisp.org>
13323
13324         Reduce the number of uc_is_cased calls.
13325         * lib/unicase.h (casing_suffix_context_t): Add
13326         'first_char_except_ignorable' field.
13327         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
13328         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
13329         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
13330         Update initializer.
13331         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
13332         case-ignorable characters.
13333         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
13334         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
13335         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
13336         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
13337         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
13338
13339 2009-06-30  Bruno Haible  <bruno@clisp.org>
13340
13341         Tests for module 'unicase/ignorable'.
13342         * modules/unicase/ignorable-tests: New file.
13343         * tests/unicase/test-ignorable.c: New file, generated by
13344         gen-uni-tables.
13345
13346         Tests for module 'unicase/cased'.
13347         * modules/unicase/cased-tests: New file.
13348         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
13349         * tests/unicase/test-predicate-part1.h: New file, derived from
13350         tests/unictype/test-predicate-part1.h.
13351         * tests/unicase/test-predicate-part2.h: New file, same as
13352         tests/unictype/test-predicate-part2.h.
13353
13354         Fix evaluation of "Before C" condition of FINAL_SIGMA.
13355         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
13356         (output_casing_properties): New function.
13357         (main): Call it.
13358         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
13359         * lib/unicase/cased.c: Include unictype/bitmap.h.
13360         (uc_is_cased): Define through a bitmap lookup.
13361         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
13362         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
13363         (uc_is_case_ignorable): Define through a bitmap lookup.
13364         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
13365         lib/unictype/bitmap.h.
13366         (Depends-on): Add inline. Clean up.
13367         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
13368         lib/unictype/bitmap.h.
13369         (Depends-on): Add inline. Clean up.
13370         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
13371         recognition.
13372         * tests/unicase/test-u16-tolower.c (main): Likewise.
13373         * tests/unicase/test-u32-tolower.c (main): Likewise.
13374
13375 2009-06-30  Bruno Haible  <bruno@clisp.org>
13376
13377         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
13378         * lib/unicase/u16-casemap.c: Likewise.
13379         * lib/unicase/u32-casemap.c: Likewise.
13380
13381 2009-06-29  Bruno Haible  <bruno@clisp.org>
13382
13383         Define u32_casefold as a wrapper around u32_ct_casefold.
13384         * lib/unicase/u32-casefold.c: Update.
13385         * modules/unicase/u32-casefold (Depends-on): Add
13386         unicase/u32-ct-casefold, unicase/empty-prefix-context,
13387         unicase/empty-suffix-context. Clean up.
13388
13389         Define u16_casefold as a wrapper around u16_ct_casefold.
13390         * lib/unicase/u16-casefold.c: Update.
13391         * modules/unicase/u16-casefold (Depends-on): Add
13392         unicase/u16-ct-casefold, unicase/empty-prefix-context,
13393         unicase/empty-suffix-context. Clean up.
13394
13395         Define u8_casefold as a wrapper around u8_ct_casefold.
13396         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
13397         * lib/unicase/u8-casefold.c: Update.
13398         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
13399         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13400
13401         Define u32_totitle as a wrapper around u32_ct_totitle.
13402         * lib/unicase/u32-totitle.c: Update.
13403         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
13404         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13405
13406         Define u16_totitle as a wrapper around u16_ct_totitle.
13407         * lib/unicase/u16-totitle.c: Update.
13408         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
13409         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13410
13411         Define u8_totitle as a wrapper around u8_ct_totitle.
13412         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
13413         functions.
13414         (FUNC): Delegate to U_CT_TOTITLE.
13415         * lib/unicase/u8-totitle.c: Update.
13416         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
13417         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13418
13419         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
13420         invocation.
13421         * modules/unicase/u32-tolower (Depends-on): Add
13422         unicase/empty-prefix-context, unicase/empty-suffix-context.
13423
13424         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
13425         invocation.
13426         * modules/unicase/u16-tolower (Depends-on): Add
13427         unicase/empty-prefix-context, unicase/empty-suffix-context.
13428
13429         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
13430         * modules/unicase/u8-tolower (Depends-on): Add
13431         unicase/empty-prefix-context, unicase/empty-suffix-context.
13432
13433         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
13434         invocation.
13435         * modules/unicase/u32-toupper (Depends-on): Add
13436         unicase/empty-prefix-context, unicase/empty-suffix-context.
13437
13438         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
13439         invocation.
13440         * modules/unicase/u16-toupper (Depends-on): Add
13441         unicase/empty-prefix-context, unicase/empty-suffix-context.
13442
13443         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
13444         * modules/unicase/u8-toupper (Depends-on): Add
13445         unicase/empty-prefix-context, unicase/empty-suffix-context.
13446
13447         New module 'unicase/u32-ct-casefold'.
13448         * lib/unicase/u32-ct-casefold.c: New file.
13449         * modules/unicase/u32-ct-casefold: New file.
13450
13451         New module 'unicase/u16-ct-casefold'.
13452         * lib/unicase/u16-ct-casefold.c: New file.
13453         * modules/unicase/u16-ct-casefold: New file.
13454
13455         New module 'unicase/u8-ct-casefold'.
13456         * lib/unicase/u8-ct-casefold.c: New file.
13457         * lib/unicase/u-ct-casefold.h: New file, derived from
13458         lib/unicase/u-casefold.h.
13459         * modules/unicase/u8-ct-casefold: New file.
13460
13461         New module 'unicase/u32-ct-totitle'.
13462         * lib/unicase/u32-ct-totitle.c: New file.
13463         * modules/unicase/u32-ct-totitle: New file.
13464
13465         New module 'unicase/u16-ct-totitle'.
13466         * lib/unicase/u16-ct-totitle.c: New file.
13467         * modules/unicase/u16-ct-totitle: New file.
13468
13469         New module 'unicase/u8-ct-totitle'.
13470         * lib/unicase/u8-ct-totitle.c: New file.
13471         * lib/unicase/u-ct-totitle.h: New file, derived from
13472         lib/unicase/u-totitle.h.
13473         * modules/unicase/u8-ct-totitle: New file.
13474
13475         New module 'unicase/u32-ct-tolower'.
13476         * lib/unicase/u32-ct-tolower.c: New file.
13477         * modules/unicase/u32-ct-tolower: New file.
13478
13479         New module 'unicase/u16-ct-tolower'.
13480         * lib/unicase/u16-ct-tolower.c: New file.
13481         * modules/unicase/u16-ct-tolower: New file.
13482
13483         New module 'unicase/u8-ct-tolower'.
13484         * lib/unicase/u8-ct-tolower.c: New file.
13485         * modules/unicase/u8-ct-tolower: New file.
13486
13487         New module 'unicase/u32-ct-toupper'.
13488         * lib/unicase/u32-ct-toupper.c: New file.
13489         * modules/unicase/u32-ct-toupper: New file.
13490
13491         New module 'unicase/u16-ct-toupper'.
13492         * lib/unicase/u16-ct-toupper.c: New file.
13493         * modules/unicase/u16-ct-toupper: New file.
13494
13495         New module 'unicase/u8-ct-toupper'.
13496         * lib/unicase/u8-ct-toupper.c: New file.
13497         * modules/unicase/u8-ct-toupper: New file.
13498
13499         Add context arguments to u*_casemap functions.
13500         * lib/unicase/unicasemap.h: Include unicase.h.
13501         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
13502         suffix_context arguments.
13503         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
13504         functions.
13505         (FUNC): Add prefix_context and suffix_context arguments. Use
13506         uc_is_cased and uc_is_case_ignorable.
13507         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
13508         * lib/unicase/u16-casemap.c: Likewise.
13509         * lib/unicase/u32-casemap.c: Likewise.
13510         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
13511         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13512         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
13513         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13514         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
13515         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13516
13517         New module 'unicase/u32-suffix-context'.
13518         * lib/unicase/u32-suffix-context.c: New file.
13519         * modules/unicase/u32-suffix-context: New file.
13520
13521         New module 'unicase/u16-suffix-context'.
13522         * lib/unicase/u16-suffix-context.c: New file.
13523         * modules/unicase/u16-suffix-context: New file.
13524
13525         New module 'unicase/u8-suffix-context'.
13526         * lib/unicase/u8-suffix-context.c: New file.
13527         * lib/unicase/u-suffix-context.h: New file.
13528         * modules/unicase/u8-suffix-context: New file.
13529
13530         New module 'unicase/empty-suffix-context'.
13531         * lib/unicase/empty-suffix-context.c: New file.
13532         * modules/unicase/empty-suffix-context: New file.
13533
13534         New module 'unicase/u32-prefix-context'.
13535         * lib/unicase/u32-prefix-context.c: New file.
13536         * modules/unicase/u32-prefix-context: New file.
13537
13538         New module 'unicase/u16-prefix-context'.
13539         * lib/unicase/u16-prefix-context.c: New file.
13540         * modules/unicase/u16-prefix-context: New file.
13541
13542         New module 'unicase/u8-prefix-context'.
13543         * lib/unicase/u8-prefix-context.c: New file.
13544         * lib/unicase/u-prefix-context.h: New file.
13545         * lib/unicase/context.h: New file.
13546         * modules/unicase/u8-prefix-context: New file.
13547
13548         New module 'unicase/empty-prefix-context'.
13549         * lib/unicase/empty-prefix-context.c: New file.
13550         * modules/unicase/empty-prefix-context: New file.
13551
13552         New module 'unicase/ignorable'.
13553         * lib/unicase/ignorable.c: New file.
13554         * modules/unicase/ignorable: New file.
13555
13556         New module 'unicase/cased'.
13557         * lib/unicase/caseprop.h: New file.
13558         * lib/unicase/cased.c: New file.
13559         * modules/unicase/cased: New file.
13560
13561         New functions for case mapping of substrings.
13562         * lib/unicase.h (casing_prefix_context_t): New type.
13563         (unicase_empty_prefix_context): New variable.
13564         (u8_casing_prefix_context, u16_casing_prefix_context,
13565         u32_casing_prefix_context, u8_casing_prefixes_context,
13566         u16_casing_prefixes_context, u32_casing_prefixes_context): New
13567         declarations.
13568         (casing_suffix_context_t): New type.
13569         (unicase_empty_suffix_context): New variable.
13570         (u8_casing_suffix_context, u16_casing_suffix_context,
13571         u32_casing_suffix_context, u8_casing_suffixes_context,
13572         u16_casing_suffixes_context, u32_casing_suffixes_context,
13573         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
13574         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
13575         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
13576         declarations.
13577
13578 2009-06-28  Jim Meyering  <meyering@redhat.com>
13579
13580         boostrap: indent only with spaces
13581         * build-aux/bootstrap: Indent only with spaces, never TABs.
13582
13583         bootstrap: split long lines
13584         * build-aux/bootstrap: Keep line length < 80.
13585
13586         bootstrap: sync from coreutils
13587         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
13588         just as autoreconf does.  Verify a list of prerequisite
13589         package-name,version-number pairs if defined in bootstrap.conf.
13590         Refer to README-prereq, if prerequisites are not satisfied.
13591
13592 2009-06-27  Eric Blake  <ebb9@byu.net>
13593
13594         tests: add test for bogus NULL definition
13595         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
13596         * tests/test-stdlib.c: Likewise.
13597         * tests/test-string.c: Likewise.
13598         * tests/test-locale.c: Likewise.
13599         * tests/test-unistd.c: Likewise.
13600         * modules/stdio-tests (Depends-on): Add verify.
13601         * modules/stdlib-tests (Depends-on): Likewise.
13602         * modules/string-tests (Depends-on): Likewise.
13603         * modules/locale-tests (Depends-on): Likewise.
13604         * modules/unistd-tests (Depends-on): Likewise.
13605
13606 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
13607
13608         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
13609         self-explaining comment.
13610         * m4/selinux-selinux-h: Update serial.
13611         (gl_LIBSELINUX): New macro, adding a warning for missing development
13612         packages to code extracted from...
13613         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
13614         Add warning for missing development packages here, too.
13615
13616 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
13617
13618         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
13619
13620 2009-06-25  Eric Blake  <ebb9@byu.net>
13621
13622         version-etc: fix regression
13623         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
13624         gcc.
13625         (version_etc): Use it, to catch bugs with trailing NULL.
13626         * lib/version-etc.c (version_etc_arn): Delete unused argument.
13627         (version_etc_va): Fix logic bug.
13628         * modules/version-etc-tests: Add test.
13629         * tests/test-version-etc.c: New file.
13630         * tests/test-version-etc.sh: Likewise.
13631
13632 2009-06-25  Sam Steingold  <sds@gnu.org>
13633
13634         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
13635         mbtowc declaration.
13636
13637 2009-06-25  Eric Blake  <ebb9@byu.net>
13638
13639         fpurge: migrate into <stdio.h>
13640         * lib/fpurge.h: Delete...
13641         * lib/stdio.in.h (fpurge): ...and declare here, instead.
13642         * lib/fpurge.c (fpurge): Change declaring header.
13643         * modules/fpurge (Files): Drop deleted file.
13644         (Depends-on): Add stdio.
13645         (configure.ac): Set witness.
13646         * modules/stdio (Makefile.am): Support fpurge macros.
13647         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
13648         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
13649         * lib/fflush.c: Update client.
13650         * tests/test-fpurge.c: Likewise.
13651         * NEWS: Mention the change.
13652
13653 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
13654
13655         * lib/argp-version-etc.c (program_authors): Add const
13656         qualifier.
13657         * lib/version-etc.c: Fix typos in the comments.
13658         * modules/argp-version-etc: Depends on version-etc.
13659
13660 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
13661
13662         argp-version-etc: new module.
13663
13664         * lib/argp-version-etc.c: New file.
13665         * lib/argp-version-etc.h: New file.
13666         * modules/argp-version-etc: New file.
13667         * modules/argp-version-etc-tests: New file.
13668         * tests/test-argp-version-etc.c: New test.
13669         * tests/test-argp-version-etc-1.sh: New test.
13670
13671 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
13672
13673         Provide additional interfaces and documentation for version-etc
13674         module.
13675
13676         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
13677         interfaces.
13678         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
13679         prototypes.
13680
13681 2009-06-24  Bruno Haible  <bruno@clisp.org>
13682
13683         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
13684         HAVE_LIB${NAME} macro.
13685         Reported by Sam Steingold <sds@gnu.org>.
13686
13687 2009-06-23  Simon Josefsson  <simon@josefsson.org>
13688
13689         * modules/hash-tests (test_hash_LDADD): Link to libintl when
13690         needed.
13691
13692 2009-06-21  Bruno Haible  <bruno@clisp.org>
13693
13694         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
13695         work.
13696         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
13697         together with LIB${NAME}, LTLIB${NAME}.
13698         Reported by Sam Steingold <sds@gnu.org>.
13699
13700 2009-06-20  Jim Meyering  <meyering@redhat.com>
13701
13702         tests: make sc_require_test_exit_idiom more generic
13703         * top/maint.mk (Exit_witness_file): New overridable variable.
13704         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
13705         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
13706
13707 2009-06-19  Jim Meyering  <meyering@redhat.com>
13708
13709         hash: reverse order of src/dst parameters in an internal interface
13710         * lib/hash.c (transfer_entries): Reverse order of parameters to
13711         put DST before SRC.  Adjust callers.
13712
13713         tests: test-hash: avoid wholesale duplication
13714         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
13715         Instead, use a loop and add a single conditional.
13716
13717         tests: test-hash: allow seed selection via a command line argument
13718         * tests/test-hash.c (get_seed): New function.
13719         (main): Use it.
13720
13721 2009-06-19  Eric Blake  <ebb9@byu.net>
13722
13723         hash: avoid memory leak on allocation failure
13724         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
13725         failure.  Factor repeated algorithm...
13726         (transfer_entries): ...into new helper routine.
13727         (hash_delete): React to hash_rehash return value.
13728
13729         hash: reduce memory pressure in hash_rehash no-op case
13730         * lib/hash.c (next_prime): Avoid overflow.
13731         (hash_initialize): Factor bucket size computation...
13732         (compute_bucket_size): ...into new helper function.
13733         (hash_rehash): Use new function and open coding to reduce memory
13734         pressure, and avoid a memory leak in USE_OBSTACK code.
13735         Reported by Jim Meyering.
13736
13737 2009-06-18  Eric Blake  <ebb9@byu.net>
13738
13739         hash: make rotation more obvious
13740         * modules/hash (Depends-on): Add bitrotate and stdint.
13741         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
13742         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
13743         (SIZE_MAX): Rely on headers for definition.
13744         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
13745         (raw_hasher): Use rotr_sz.
13746         Suggested by Jim Meyering.
13747
13748         hash: fix memory leak in last patch
13749         * lib/hash.c (hash_rehash): Avoid memory leak.
13750
13751         hash: avoid no-op rehashing
13752         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
13753
13754         hash: provide default callback functions
13755         * lib/hash.c (raw_hasher, raw_comparator): New functions.
13756         (hash_initialize): Use them as defaults.
13757         * tests/test-hash.c (main): Test this.
13758
13759         hash: minor optimization
13760         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
13761         when possible.
13762         (hash_initialize): Document this promise.
13763         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
13764         * tests/test-hash.c (hash_compare_strings): Test this.
13765
13766 2009-06-18  Bruno Haible  <bruno@clisp.org>
13767
13768         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
13769         going to be replaced anyway.
13770
13771 2009-06-18  Bruno Haible  <bruno@clisp.org>
13772
13773         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
13774         in one place.
13775         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
13776         be replaced anyway.
13777
13778 2009-06-18  Eric Blake  <ebb9@byu.net>
13779
13780         hash: check for resize before insertion
13781         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
13782         threshold before insertion, so that a pathological hash_rehash
13783         that fills every bucket can still trigger another rehash.
13784
13785 2009-06-18  Jim Meyering  <meyering@redhat.com>
13786
13787         hash-tests: add a loop around the small tests
13788         * tests/test-hash.c (main): Repeat small tests with selected
13789         small initial table sizes.
13790
13791 2009-06-17  Eric Blake  <ebb9@byu.net>
13792
13793         hash: minor cleanups
13794         * lib/hash.h (hash_entry): Make opaque, by moving...
13795         * lib/hash.c (hash_entry): ...here.
13796         (hash_insert): Clarify restrictions on what can be inserted.
13797         (hash_get_next): Clarify when it is safe to remove an element
13798         during traversal.
13799         (check_tuning): Skip verification when tuning is known safe.
13800         (hash_initialize): Clarify restrictions on tuning.
13801
13802 2009-06-17  Jim Meyering  <jim@meyering.net>
13803         and Eric Blake  <ebb9@byu.net>
13804
13805         hash-tests: new module
13806         * modules/hash-tests: New file.
13807         * tests/test-hash.c: New file.
13808
13809 2009-06-17  Eric Blake  <ebb9@byu.net>
13810
13811         strstr-simple: document new module
13812         * MODULES.html.sh: Document new module.
13813
13814         strstr, strcasestr: replace on platforms with broken memchr
13815         * modules/strstr: Split into...
13816         * modules/strstr-simple: ...new module that does not care about
13817         performance, but does care about glibc bug.
13818         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
13819         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
13820         if platform memchr is broken, per Debian bug 521737.
13821         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
13822         memchr.
13823         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
13824         * doc/posix-functions/strstr.texi (strstr): Document the fix.
13825         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
13826         * modules/mountlist (Depends-on): Add strstr-simple.
13827         * modules/gen-uni-tables (Depends-on): Likewise.
13828         * modules/argz (Depends-on): Add strstr.
13829
13830 2009-06-17  Bruno Haible  <bruno@clisp.org>
13831
13832         * modules/posix_spawn-internal (Depends-on): Add errno.
13833
13834 2009-06-17  Bruno Haible  <bruno@clisp.org>
13835
13836         Define missing ESTALE on Interix 3.5.
13837         * lib/errno.in.h (ESTALE): Assign a value if missing.
13838         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
13839         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
13840         missing.
13841         * doc/posix-headers/errno.texi: Mention the Interix bug.
13842         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
13843
13844 2009-06-15  Eric Blake  <ebb9@byu.net>
13845
13846         memchr, memchr2: add valgrind exception
13847         * lib/memchr.valgrind: New file.
13848         * lib/memchr2.valgrind: New file.
13849         * modules/memchr (Files): Distribute valgrind file.
13850         * modules/memchr2 (Files): Likewise.
13851
13852         docs: memchr is no longer obsolete
13853         * MODULES.html.sh: Move memchr from obsolete to string.h section.
13854         * lib/string.in.h (memchr): Simplify logic.
13855
13856 2009-06-14  Jim Meyering  <meyering@redhat.com>
13857
13858         link-follow: fix the "checking..." message to not mention trailing slash
13859         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
13860         never considered trailing slashes.
13861
13862 2009-06-14  Bruno Haible  <bruno@clisp.org>
13863
13864         * m4/memchr.m4: Mention also the bug on IA-64.
13865         * doc/posix-functions/memchr.texi: Likewise.
13866
13867 2009-06-12  Eric Blake  <ebb9@byu.net>
13868
13869         memchr: detect broken x86_64 and alpha implementations
13870         * modules/memchr-tests (Depends-on): Move mmap detection...
13871         * modules/memchr (Depends-on): ...here.
13872         (configure.ac): Set indicator.
13873         * lib/string.in.h (memchr): Declare replacement.
13874         * modules/string (Makefile.am): Trigger replacement.
13875         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
13876         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
13877         bugs.
13878         * doc/posix-functions/memchr.texi (memchr): Document the bug.
13879         * modules/getpagesize (License): Relax license.
13880
13881 2009-06-11  Bruno Haible  <bruno@clisp.org>
13882
13883         * lib/idpriv.h: Add more references.
13884
13885 2009-06-08  Bruno Haible  <bruno@clisp.org>
13886
13887         Tests for module 'idpriv-droptemp'.
13888         * modules/idpriv-droptemp-tests: New file.
13889         * tests/test-idpriv-droptemp.sh: New file.
13890         * tests/test-idpriv-droptemp.su.sh: New file.
13891         * tests/test-idpriv-droptemp.c: New file.
13892
13893         New module 'idpriv-droptemp'.
13894         * lib/idpriv-droptemp.c: New file.
13895         * modules/idpriv-droptemp: New file.
13896
13897 2009-06-08  Bruno Haible  <bruno@clisp.org>
13898
13899         Tests for module 'idpriv-drop'.
13900         * modules/idpriv-drop-tests: New file.
13901         * tests/test-idpriv-drop.sh: New file.
13902         * tests/test-idpriv-drop.su.sh: New file.
13903         * tests/test-idpriv-drop.c: New file.
13904
13905         New module 'idpriv-drop'.
13906         * lib/idpriv.h: New file.
13907         * lib-idpriv-drop.c: New file.
13908         * m4/idpriv.m4: New file.
13909         * modules/idpriv-drop: New file.
13910
13911 2009-06-08  Bruno Haible  <bruno@clisp.org>
13912
13913         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
13914         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
13915         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
13916         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
13917         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
13918         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
13919         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
13920
13921 2009-06-08  Eric Blake  <ebb9@byu.net>
13922
13923         test-strstr: use memory fence, when possible
13924         * tests/test-strstr.c (main): Use memory fence, in order to be
13925         more likely to trigger Debian bug 521737.
13926         * modules/strstr-tests (Files): Pull in additional files.
13927
13928         memchr: no longer obsolete, for wider field testing
13929         * modules/memchr (Status, Notice): Delete, this module is no
13930         longer obsolete.
13931         * modules/vasnprintf (Depends-on): Add memchr.
13932
13933 2009-06-07  Jim Meyering  <meyering@redhat.com>
13934
13935         hash: declare some functions with the warn_unused_result attribute
13936         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
13937
13938 2009-06-07  Bruno Haible  <bruno@clisp.org>
13939
13940         * tests/test-alignof.c: Don't test int64_t if it does not exist.
13941         Reported by Eric Blake.
13942
13943 2009-06-06  Eric Blake  <ebb9@byu.net>
13944
13945         test-alignof: fix typo with long double
13946         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
13947         compiler error.
13948
13949 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
13950
13951         Escape non-texinfo { and }s.
13952         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
13953         markup error.
13954
13955 2009-06-04  Jim Meyering  <meyering@redhat.com>
13956
13957         gitlog-to-changelog: don't infloop on an empty commit log
13958         * build-aux/gitlog-to-changelog: Warn about an empty log message.
13959         Reported by Boris Petersen <transacid@centerim.org>.
13960
13961 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
13962
13963         version-etc: extend for packagers
13964         Add three new configure options, intended for packagers:
13965           --with-packager="packager name"
13966           --with-packager-version="packager-specific version"
13967           --with-packager-bug-reports="packager bug reporting"
13968         An example with coreutils:
13969           $ ./configure \
13970             --with-packager=Gentoo \
13971             --with-packager-bug-report=http://bugs.gentoo.org/ \
13972             --with-packager-version="patchset 1.6"
13973           $ ./src/ls --version | head -n2
13974           ls (GNU coreutils) 7.1-dirty
13975           Packaged by Gentoo (patchset 1.6)
13976         Note that the bug reporting info via --help doesn't show up because
13977         coreutils uses its own custom emit_bug_reporting_address() implementation
13978         in src/system.h.  If it didn't, it'd look like:
13979           $ ./src/ls --help | tail -n4
13980           Report bugs to <bug-coreutils@gnu.org>.
13981           Report Gentoo bugs to <http://bugs.gentoo.org/>.
13982           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
13983           General help using GNU software: <http://www.gnu.org/gethelp/>.
13984         * lib/version-etc.c: Print new information, if provided.
13985         * m4/version-etc.m4: New file.
13986         * modules/version-etc (Files): Add m4/version-etc.m4.
13987         (configure.ac): Add gl_VERSION_ETC.
13988
13989 2009-05-31  Bruno Haible  <bruno@clisp.org>
13990
13991         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
13992         and 'int64_t'.
13993         * modules/alignof-tests (Dependencies): Add stdint.
13994         Reported by Eric Blake.
13995
13996 2009-05-31  Bruno Haible  <bruno@clisp.org>
13997
13998         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
13999         restriction due to compiler bugs.
14000         Reported by Eric Blake.
14001
14002 2009-05-31  Simon Josefsson  <simon@josefsson.org>
14003             Bruno Haible  <bruno@clisp.org>
14004
14005         Fix test-alignof failure.
14006         * lib/alignof.h (alignof_slot): New macro.
14007         (alignof_type): New macro, with the same semantics as the previous
14008         'alignof'.
14009         (alignof): Alias to alignof_slot.
14010         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
14011         check that the results are usable as constant expressions.
14012
14013 2009-05-31  Bruno Haible  <bruno@clisp.org>
14014
14015         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
14016         * tests/test-memchr.c (main): Check that memchr does not read past the
14017         first occurrence of the byte.
14018         * tests/test-strstr.c (main): Update comment.
14019         Suggested by Eric Blake.
14020
14021 2009-05-30  Bruno Haible  <bruno@clisp.org>
14022
14023         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
14024         detail how to use dumpbin.
14025         Reported by David Byron <dbyron@dbyron.com>.
14026
14027 2009-06-02  Simon Josefsson  <simon@josefsson.org>
14028
14029         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
14030
14031 2009-06-02  Simon Josefsson  <simon@josefsson.org>
14032
14033         * m4/manywarnings.m4: Add GCC 4.4 warnings.
14034
14035 2009-05-28  Bruno Haible  <bruno@clisp.org>
14036
14037         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
14038         build-aux/ files.
14039
14040 2009-05-28  Simon Josefsson  <simon@josefsson.org>
14041
14042         * gnulib-tool (func_import): Transform license on build-aux/ files too.
14043
14044 2009-05-27  Simon Josefsson  <simon@josefsson.org>
14045
14046         * gnulib-tool (sed_transform_main_lib_file)
14047         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
14048         regexps.
14049
14050 2009-05-26  Simon Josefsson  <simon@josefsson.org>
14051
14052         * tests/test-strstr.c: Add another self-test.
14053         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
14054         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
14055
14056 2009-05-23  Bruno Haible  <bruno@clisp.org>
14057
14058         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
14059         change.
14060
14061 2009-05-21  Bruno Haible  <bruno@clisp.org>
14062
14063         Simplify use of mode_t varargs.
14064         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
14065         uses 'mode_t' or 'int'.
14066         * lib/openat.c (openat): Likewise.
14067         * lib/open-safer.c (open_safer): Likewise.
14068         * m4/mode_t.m4: New file.
14069         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
14070         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
14071         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
14072         * modules/open (Files): Add m4/mode_t.m4.
14073         * modules/openat (Files): Likewise.
14074         * modules/fcntl-safer (Files): Likewise.
14075         Suggested by Eric Blake.
14076
14077 2009-05-21  Pádraig Brady  <P@draigbrady.com>
14078
14079         * doc/glibc-functions/fallocate.texi: New file.
14080         * doc/gnulib.texi: Include it.
14081
14082 2009-05-21  Eric Blake  <ebb9@byu.net>
14083             Bruno Haible  <bruno@clisp.org>
14084
14085         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
14086         invocations.
14087         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
14088
14089 2009-05-21  Eric Blake  <ebb9@byu.net>
14090             Bruno Haible  <bruno@clisp.org>
14091
14092         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
14093         include_next. Fix of 2008-11-20 commit.
14094         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
14095         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
14096         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
14097         NEXT_MATH_H.
14098         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
14099         instead of NEXT_MATH_H.
14100
14101 2009-05-21  Bruno Haible  <bruno@clisp.org>
14102
14103         Avoid redefinition warnings for SIZE_MAX.
14104         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
14105         Reported by Simon Josefsson.
14106
14107 2009-05-21  Bruno Haible  <bruno@clisp.org>
14108
14109         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
14110         AC_CACHE_VAL.
14111
14112 2009-05-20  Bruno Haible  <bruno@clisp.org>
14113
14114         Make zeroptr.h work on mingw.
14115         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
14116         mprotect.
14117         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
14118         * modules/memchr2-tests (configure.ac): Likewise.
14119         * modules/memcmp-tests (configure.ac): Likewise.
14120         * modules/memmem-tests (configure.ac): Likewise.
14121         * modules/memrchr-tests (configure.ac): Likewise.
14122         Reported by Simon Josefsson.
14123
14124 2009-05-20  Simon Josefsson  <simon@josefsson.org>
14125
14126         * tests/test-glob.c: Include string.h for strcmp prototype.
14127
14128 2009-05-20  Simon Josefsson  <simon@josefsson.org>
14129
14130         * modules/getdelim (Depends-on): Add explicit stdint, although it
14131         was implicitly already pulled in via realloc-posix.
14132         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
14133
14134 2009-05-20  Simon Josefsson  <simon@josefsson.org>
14135
14136         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
14137         G. Christensen" <tgc@jupiterrise.com>.
14138         * m4/sys_socket_h.m4: Check for sa_family_t.
14139         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
14140         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
14141         * tests/test-sys_socket.c: Check that sa_family_t works.
14142
14143 2009-05-18  Eric Blake  <ebb9@byu.net>
14144
14145         maint.mk: allow gnulib_dir in VPATH build
14146         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
14147
14148 2009-05-15  Jim Meyering  <meyering@redhat.com>
14149
14150         maint.mk: Give gnulib_dir a default definition.
14151         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
14152         Thus, most packages no longer need to specify this variable in cfg.mk
14153
14154 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
14155
14156         rename.m4: fix typos that would make non-mingw cross-configure fail
14157         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
14158
14159 2009-05-13  Eric Blake  <ebb9@byu.net>
14160
14161         mmap-anon: avoid out-of-order autoconf expansion
14162         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
14163         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
14164         * modules/memchr-tests (Depends-on): Add extensions.
14165         * modules/memchr2-tests (Depends-on): Add extensions.
14166         * modules/memcmp-tests (Depends-on): Add extensions.
14167         * modules/memmem-tests (Depends-on): Add extensions.
14168         * modules/memrchr-tests (Depends-on): Add extensions.
14169
14170 2009-05-13  Bruno Haible  <bruno@clisp.org>
14171
14172         Make some tests ISO C 99 compliant.
14173         * tests/zerosize-ptr.h: New file.
14174         * tests/test-memchr.c: Include zerosize-ptr.h.
14175         (main): Use a zero-size object pointer instead of NULL.
14176         * tests/test-memchr2.c: Include zerosize-ptr.h.
14177         (main): Use a zero-size object pointer instead of NULL.
14178         * tests/test-memcmp.c: Include zerosize-ptr.h.
14179         (main): Use a zero-size object pointer instead of NULL.
14180         * tests/test-memmem.c: Include zerosize-ptr.h.
14181         (main): Use a zero-size object pointer instead of NULL.
14182         * tests/test-memrchr.c: Include zerosize-ptr.h.
14183         (main): Use a zero-size object pointer instead of NULL.
14184         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
14185         m4/mmap-anon.m4.
14186         (Depends-on): Add getpagesize.
14187         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14188         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
14189         m4/mmap-anon.m4.
14190         (Depends-on): Add getpagesize.
14191         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14192         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
14193         m4/mmap-anon.m4.
14194         (Depends-on): Add getpagesize.
14195         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14196         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
14197         m4/mmap-anon.m4.
14198         (Depends-on): Add getpagesize.
14199         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14200         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
14201         m4/mmap-anon.m4.
14202         (Depends-on): Add getpagesize.
14203         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14204
14205 2009-05-12  Bruno Haible  <bruno@clisp.org>
14206
14207         Tests for module 'alignof'.
14208         * modules/alignof-tests: New file.
14209         * tests/test-alignof.c: New file.
14210
14211 2009-05-12  Bruno Haible  <bruno@clisp.org>
14212
14213         Fix alignof macro.
14214         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
14215         vendor compilers that are always correct.
14216
14217 2009-05-12  Bruno Haible  <bruno@clisp.org>
14218
14219         Make the MAP_ANONYMOUS detection work on HP-UX 11.
14220         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
14221         not whether its fully works.
14222
14223 2009-05-12  Bruno Haible  <bruno@clisp.org>
14224
14225         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
14226
14227 2009-05-12  Jim Meyering  <meyering@redhat.com>
14228
14229         * top/maint.mk: Adjust backslash alignment.
14230
14231 2009-05-11  Simon Josefsson  <simon@josefsson.org>
14232
14233         * top/maint.mk: Make $(srcdir)/build-aux configurable.
14234
14235 2009-05-11  Eric Blake  <ebb9@byu.net>
14236
14237         argp: avoid undefined behavior
14238         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
14239         macros.
14240
14241 2009-05-08  Simon Josefsson  <simon@josefsson.org>
14242
14243         * tests/test-vc-list-files-git.sh: Do git config of user.email and
14244         user.name to prevent git commit from complaining.
14245
14246 2009-05-10  Bruno Haible  <bruno@clisp.org>
14247
14248         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
14249         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
14250         it rewrites every file name only once.
14251         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
14252
14253 2009-05-08  Bruno Haible  <bruno@clisp.org>
14254
14255         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
14256         instead of 'max'.
14257
14258 2009-05-08  Simon Josefsson  <simon@josefsson.org>
14259
14260         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
14261         sockaddr_storage test.
14262
14263 2009-05-07  Simon Josefsson  <simon@josefsson.org>
14264
14265         * modules/sys_socket (Makefile.am): Substitute
14266         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
14267         * m4/sys_socket_h.m4: Check for sockaddr_storage.
14268         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
14269         * tests/test-sys_socket.c: Check sockaddr_storage.
14270
14271 2009-05-08  Bruno Haible  <bruno@clisp.org>
14272
14273         New module 'alignof'.
14274         * lib/alignof.h: New file.
14275         * modules/alignof: New file.
14276
14277 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14278             Bruno Haible  <bruno@clisp.org>
14279
14280         Fix test-file-has-acl on FreeBSD.
14281         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
14282         mask is implicitly added.
14283         * tests/test-file-has-acl.c: Include <signal.h>.
14284         (main): Terminate the test after 5 seconds.
14285         * modules/acl-tests (configure.ac): Check for alarm function.
14286
14287 2009-05-04  Bruno Haible  <bruno@clisp.org>
14288
14289         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
14290         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
14291         * modules/errno (configure.ac): Drop AC_REQUIRE.
14292         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
14293         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
14294
14295 2009-05-04  Simon Josefsson  <simon@josefsson.org>
14296
14297         * modules/glob-tests: New module.
14298         * tests/test-glob.c: Add.
14299
14300 2009-05-04  Simon Josefsson  <simon@josefsson.org>
14301
14302         * modules/fnmatch-tests: New module.
14303         * tests/test-fnmatch.c: Add.
14304
14305 2009-05-04  Eric Blake  <ebb9@byu.net>
14306
14307         maint: make the new no-submodule-changes rule VPATH-safe
14308         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
14309
14310 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14311             Bruno Haible  <bruno@clisp.org>
14312
14313         acl: Fix infinite loop on FreeBSD.
14314         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
14315         of return value from acl_get_entry.
14316         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
14317         Likewise.
14318
14319 2009-05-03  Bruno Haible  <bruno@clisp.org>
14320
14321         * lib/acl-internal.h (acl_entries): Clarify return value.
14322         * lib/acl_entries.c (acl_entries): Likewise.
14323
14324 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14325
14326         Bug fix in acl module.
14327         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
14328
14329 2009-05-03  Bruno Haible  <bruno@clisp.org>
14330
14331         Create gperf-generated file in the source dir, not in the build dir.
14332         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
14333         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
14334         * modules/unicase/locale-language (unicase/locale-languages.h):
14335         Likewise.
14336         * modules/unicase/special-casing (unicase/special-casing-table.h):
14337         Likewise.
14338         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
14339         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
14340         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
14341         Reported by Ralf Wildenhues.
14342
14343 2009-05-03  Bruno Haible  <bruno@clisp.org>
14344
14345         * modules/fnmatch (Description, configure.ac): Taken from
14346         fnmatch-posix.
14347         * modules/fnmatch-posix: Turn into a symbolic reference to the
14348         'fnmatch' module, and deprecate.
14349         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
14350
14351 2009-05-03  Bruno Haible  <bruno@clisp.org>
14352
14353         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
14354         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
14355         Reported by Ralf Wildenhues.
14356
14357 2009-05-04  Simon Josefsson  <simon@josefsson.org>
14358
14359         * m4/fnmatch.m4: Fix fnmatch re-define.
14360
14361 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14362
14363         priv-set: new module and tests; adapt write-any-file
14364         * lib/priv-set.c: New file.
14365         * lib/priv-set.h: New file.
14366         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
14367         * lib/write-any-file.c: Simplify by using priv-set module.
14368         * m4/priv-set.m4: New file.
14369         * modules/priv-set: New file.
14370         * modules/unlinkdir: Add dependency on priv-set module.
14371         * modules/write-any-file: Likewise.
14372
14373         Tests for module 'priv-set'.
14374         * modules/priv-set-tests: New file.
14375         * tests/test-priv-set.c: New file.
14376
14377 2009-05-03  Jim Meyering  <meyering@redhat.com>
14378             Bruno Haible  <bruno@clisp.org>
14379
14380         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
14381         use the converted UTF-8 variant of the name instead.
14382
14383 2009-05-03  Jim Meyering  <meyering@redhat.com>
14384
14385         tests: tighten some getdate tests
14386         * tests/test-getdate.c (main): Tighten tests: require equality,
14387         not just greater than.  Set TZ envvar to UTC0.
14388
14389 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
14390
14391         getdate: correctly interpret "next monday" when run on a Monday
14392         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
14393         that e.g., "next tues" (when run on a tuesday) results in a date
14394         that is one week in the future, and not today's date.
14395         I.e., add a week when the wday is the same as the current one.
14396         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
14397         and earlier by Martin Bernreuther and Jan Minář.
14398         * tests/test-getdate.c (main): Check that "next DAY" is always in
14399         the future and that "last DAY" is always in the past.
14400
14401 2009-05-02  Jim Meyering  <meyering@redhat.com>
14402
14403         build: ensure that a release build fails when a submodule is unclean
14404         * top/maint.mk (no-submodule-changes): New rule.
14405         (alpha beta major): Depend on it.
14406
14407 2009-05-02  Bruno Haible  <bruno@clisp.org>
14408
14409         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
14410         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
14411         shell variable gl_fnmatch_required to detect which variant is
14412         requested.
14413         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
14414         gl_FUNC_FNMATCH_POSIX.
14415         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
14416         exclude fnmatch-posix.
14417
14418 2009-05-02  Bruno Haible  <bruno@clisp.org>
14419
14420         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
14421         * modules/mbsrtowcs (License): Change to LGPLv2+.
14422         * modules/strnlen1 (License): Likewise.
14423         Reported by Simon Josefsson.
14424
14425 2009-05-02  Bruno Haible  <bruno@clisp.org>
14426
14427         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
14428         "cross".
14429         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
14430         gnulib-tool was called with option --source-base=lib.
14431
14432 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14433
14434         Use automake *-local hooks without commands, for extensibility.
14435         * modules/localcharset (Makefile.am): Rename install-exec-local
14436         rule to install-exec-localcharset, and make it a prerequisite of
14437         install-exec-local.  Likewise, rename the uninstall-local rule to
14438         uninstall-localcharset, and make it a prerequisite of the former.
14439
14440 2009-05-01  Bruno Haible  <bruno@clisp.org>
14441
14442         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
14443         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
14444         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
14445         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
14446         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
14447         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
14448         m4/locale-zh.m4, m4/codeset.m4.
14449
14450         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
14451         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
14452         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
14453         m4/locale-zh.m4.
14454
14455         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
14456         REPLACE_WCRTOMB if mbstate_t must be replaced.
14457         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
14458         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
14459
14460 2009-05-01  Bruno Haible  <bruno@clisp.org>
14461
14462         Avoid compiler warnings when redefining macros defined by <libintl.h>.
14463         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
14464         dngettext, dcngettext, textdomain, bindtextdomain,
14465         bind_textdomain_codeset): Undefine before redefining.
14466
14467 2009-04-30  Bruno Haible  <bruno@clisp.org>
14468
14469         Fix bug introduced on 2009-04-25.
14470         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
14471         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
14472         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
14473         is defined.
14474         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
14475         is defined.
14476         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
14477         is defined.
14478         Reported by Elbert_Pol <elbert.pol@gmail.com>.
14479
14480 2009-04-28  Bruno Haible  <bruno@clisp.org>
14481
14482         Comment tweaks.
14483         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
14484         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
14485         * lib/unicase.h (u*_casexfrm): Likewise.
14486         Reported by Paolo Bonzini.
14487
14488 2009-04-28  Bruno Haible  <bruno@clisp.org>
14489
14490         Fix a compilation error.
14491         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
14492         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
14493         Reported by Jim Meyering.
14494
14495 2009-04-27  Bruno Haible  <bruno@clisp.org>
14496
14497         New module 'libunistring'.
14498         * modules/libunistring: New file.
14499         * m4/libunistring.m4: New file.
14500         * MODULES.html.sh (Unicode string functions): Add it.
14501
14502 2009-04-27  Eric Blake  <ebb9@byu.net>
14503
14504         maint.mk: allow package-specific header to provide <config.h>
14505         * top/maint.mk (sc_require_config_h): New variable.
14506         (sc_require_config_h, sc_require_config_h_first): Use it.
14507
14508 2009-04-27  Simon Josefsson  <simon@josefsson.org>
14509
14510         * top/maint.mk (sc_avoid_if_before_free): Except
14511         useless-if-before-free script.
14512
14513 2009-04-27  Eric Blake  <ebb9@byu.net>
14514
14515         maintainer-makefile: depend on all required helper scripts
14516         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
14517         useless-if-before-free.
14518         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
14519         version, rather than assuming gnulib checkout is available.
14520         Reported by Simen Josefsson.
14521
14522 2009-04-26  Bruno Haible  <bruno@clisp.org>
14523
14524         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
14525         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
14526         "../" or "..".
14527
14528 2009-04-26  Bruno Haible  <bruno@clisp.org>
14529
14530         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
14531         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
14532         AC_LIB_HAVE_LINKFLAGS.
14533
14534 2009-04-26  Bruno Haible  <bruno@clisp.org>
14535
14536         Simplify calling convention of u*_conv_from_encoding.
14537         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
14538         u32_conv_from_encoding): Expect a resultbuf argument and return the
14539         result directly as a pointer.
14540         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
14541         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
14542         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
14543         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
14544         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
14545         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
14546         Update.
14547         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
14548         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
14549         * lib/vasnprintf.c (VASNPRINTF): Update.
14550         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
14551         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
14552         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
14553         * NEWS: Mention the change.
14554
14555 2009-04-26  Bruno Haible  <bruno@clisp.org>
14556
14557         Simplify calling convention of u*_conv_to_encoding.
14558         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
14559         u32_conv_to_encoding): Expect a resultbuf argument and return the
14560         result directly as a pointer.
14561         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
14562         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
14563         freeing scaled_offsets if mem_iconveha failed.
14564         * lib/unicase/u-casexfrm.h (FUNC): Update.
14565         * lib/uninorm/u-normxfrm.h (FUNC): Update.
14566         * lib/vasnprintf.c (VASNPRINTF): Update.
14567         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
14568         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
14569         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
14570         * NEWS: Mention the change.
14571
14572 2009-04-26  Bruno Haible  <bruno@clisp.org>
14573
14574         Avoid test failures on AIX and OSF/1.
14575         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
14576         malloc(0).
14577         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
14578         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
14579         Likewise.
14580         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
14581         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
14582         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
14583         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
14584         * doc/posix-functions/malloc.texi: Document the portability problem
14585         related to malloc(0).
14586
14587 2009-04-26  Bruno Haible  <bruno@clisp.org>
14588
14589         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
14590         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
14591         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
14592
14593 2009-04-25  Bruno Haible  <bruno@clisp.org>
14594
14595         Avoid link error when creating a namespace clean library.
14596         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
14597         as macro with arguments if already defined as an alias.
14598         * lib/signbitf.c (gl_signbitf): Don't undefine.
14599         * lib/signbitd.c (gl_signbitd): Don't undefine.
14600         * lib/signbitl.c (gl_signbitl): Don't undefine.
14601
14602 2009-04-25  Jim Meyering  <meyering@redhat.com>
14603
14604         vc-list-files: fix another quoting bug
14605         * build-aux/vc-list-files: Avoid sed backslash expansion
14606         of pathological directory names.
14607
14608 2009-04-25  Eric Blake  <ebb9@byu.net>
14609
14610         vc-list-files: fix shell quoting error
14611         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
14612         timestamp.
14613
14614 2009-04-25  Jim Meyering  <meyering@redhat.com>
14615
14616         vc-list-files: restore lost functionality with subdir argument
14617         * build-aux/vc-list-files: When given a non-"." sub-directory
14618         argument, substitute the $dir/ prefix back onto each resulting name.
14619         Otherwise, coreutils' root_tests check would fail.
14620
14621 2009-04-24  Eric Blake  <ebb9@byu.net>
14622
14623         vc-list-files: ignore git symlinks
14624         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
14625         than ls-files, to ignore git symlinks.
14626
14627         maint.mk: import improvements from m4
14628         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
14629         (move_if_change): Delete unused macro.
14630         (news-date-check, vc-diff-check): Support VPATH builds.
14631         (announcement): Likewise.  Split --bootstrap-tools list...
14632         (boostrap-tools): ...into separate list, which can be overridden
14633         in cfg.mk.
14634         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
14635         requiring dependency on useless-if-before-free module.
14636         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
14637         Support VPATH builds.
14638
14639 2009-04-24  Jim Meyering  <meyering@redhat.com>
14640
14641         maint.mk: remove coreutils-specific rules and variables
14642         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
14643         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
14644         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
14645
14646         maint.mk: remove obsolete rule
14647         * top/maint.mk (rel-check): Remove rule.
14648         (WGET, WGETFLAGS): Remove now-unused variables.
14649
14650 2009-04-24  Simon Josefsson  <simon@josefsson.org>
14651
14652         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
14653         consistency.
14654
14655         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
14656         '$(PATH_SEPARATOR)' instead of ':'.
14657
14658 2009-04-24  Simon Josefsson  <simon@josefsson.org>
14659
14660         * lib/getopt1.c (main): Use 'const' for static array.
14661
14662 2009-04-24  Simon Josefsson  <simon@josefsson.org>
14663
14664         * top/maint.mk: Sync with coreutils.
14665         * NEWS: Explain incompatibilities.
14666
14667 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
14668             Bruno Haible  <bruno@clisp.org>
14669
14670         Fix cross-compilation results.
14671         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
14672         statement, as third argument of AC_TRY_RUN.
14673         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
14674         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
14675         Likewise.
14676         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
14677         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
14678         Likewise.
14679         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
14680         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
14681         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
14682
14683 2009-04-20  Bruno Haible  <bruno@clisp.org>
14684
14685         Avoid test failure on mingw.
14686         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
14687
14688 2009-04-20  Bruno Haible  <bruno@clisp.org>
14689
14690         Avoid compilation error on mingw.
14691         * modules/localename-tests (Depends-on): Add locale.
14692
14693 2009-04-19  Bruno Haible  <bruno@clisp.org>
14694
14695         Support for building a shared library on Windows platforms.
14696         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
14697         (main): Test the presence of UNINORM_NFC here.
14698         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
14699         (main): Test the presence of UNINORM_NFD here.
14700         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
14701         (main): Test the presence of UNINORM_NFKC here.
14702         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
14703         (main): Test the presence of UNINORM_NFKD here.
14704
14705 2009-04-19  Bruno Haible  <bruno@clisp.org>
14706
14707         Avoid a compiler warning.
14708         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
14709         Change type of variable 'sequence'.
14710
14711 2009-04-19  Bruno Haible  <bruno@clisp.org>
14712
14713         * modules/configmake (Makefile.am): When the contents of configmake.h
14714         does not change, arrange to preserve its modification time.
14715
14716 2009-04-17  Simon Josefsson  <simon@josefsson.org>
14717
14718         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
14719         gettext domain.
14720
14721 2009-04-16  Jim Meyering  <meyering@redhat.com>
14722
14723         useless-if-before-free: improve conversion code
14724         * build-aux/useless-if-before-free: Adjust code-in-comment to match
14725         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
14726
14727 2009-04-14  Bruno Haible  <bruno@clisp.org>
14728
14729         * modules/fcntl (Depends-on): Add extensions.
14730         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
14731
14732 2009-04-12  Ben Pfaff  <blp@gnu.org>
14733
14734         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
14735         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
14736
14737 2009-03-20  Ben Pfaff  <blp@gnu.org>
14738
14739         Make rename replace existing destinations on Windows.
14740         * m4/rename.m4: Add test for Mingw.
14741         * lib/rename.c: Add rename replacement that uses MoveFileEx with
14742         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
14743         * doc/posix-functions/rename.texi: Document.
14744
14745 2009-04-10  Bruno Haible  <bruno@clisp.org>
14746
14747         New include file "iconveh.h".
14748         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
14749         * lib/striconveh.h: Include it.
14750         (enum iconv_ilseq_handler): Remove definition.
14751         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
14752         striconveh.h.
14753         * lib/striconveha.c: Include striconveh.h.
14754         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
14755         * modules/striconveh (Files): Add lib/iconveh.h.
14756         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
14757         lib/striconveh.h.
14758
14759 2009-04-10  Bruno Haible  <bruno@clisp.org>
14760
14761         * lib/uniconv.h: Update comment.
14762
14763 2009-04-10  Bruno Haible  <bruno@clisp.org>
14764
14765         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
14766         always.
14767         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
14768         * lib/unistr/u16-mbtouc-aux.c: Likewise.
14769         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
14770         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
14771         "unistring-notinline.h", so that the function gets defined always.
14772         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
14773         * lib/unistr/u8-uctomb.c: Likewise.
14774         * lib/unistr/u16-mbtouc.c: Likewise.
14775         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
14776         * lib/unistr/u16-uctomb.c: Likewise.
14777         * lib/unistr/u32-mbtouc.c: Likewise.
14778         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
14779         * lib/unistr/u32-uctomb.c: Likewise.
14780
14781 2009-04-10  Bruno Haible  <bruno@clisp.org>
14782
14783         Mark 'utime' obsolete.
14784         * modules/utime (Status, Notice): New sections.
14785         Suggested by Jim Meyering.
14786
14787         Fix cross-compile guess for utime test.
14788         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
14789         autoconf.
14790         * doc/posix-functions/utime.texi: Give more precisions.
14791         Reported by Jan <ipif@ymail.com>.
14792
14793 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
14794
14795         filevercmp: correct today's change
14796         * lib/filevercmp.c: Also handle coreutils' test inputs.
14797         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
14798
14799         Fix regression in 'filevercmp' module. Thanks Sven Joachim
14800         for reporting it.
14801         * lib/filevercmp.c: Special handle for "", "." and "..".
14802         * tests/test-filevercmp.c: Enlarge the set suite.
14803
14804 2009-04-07  Jim Meyering  <meyering@redhat.com>
14805
14806         useless-if-before-free: show how to remove braced useless free, too
14807         * build-aux/useless-if-before-free: still only in a comment, though.
14808
14809 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
14810
14811         maint.mk: import changes to syntax-check macros from coreutils
14812         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
14813         Use them in the relevant macros.
14814
14815 2009-04-06  Bruno Haible  <bruno@clisp.org>
14816
14817         Fix unportable use of bit-fields.
14818         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
14819         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
14820         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
14821
14822 2009-04-06  Bruno Haible  <bruno@clisp.org>
14823
14824         Avoid test failures on AIX and OSF/1.
14825         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
14826         that malloc(0) = NULL.
14827         * tests/unicase/test-u8-tolower.c (check): Likewise.
14828         * tests/unicase/test-u8-totitle.c (check): Likewise.
14829         * tests/unicase/test-u8-toupper.c (check): Likewise.
14830         * tests/unicase/test-u16-casefold.c (check): Likewise.
14831         * tests/unicase/test-u16-tolower.c (check): Likewise.
14832         * tests/unicase/test-u16-totitle.c (check): Likewise.
14833         * tests/unicase/test-u16-toupper.c (check): Likewise.
14834         * tests/unicase/test-u32-casefold.c (check): Likewise.
14835         * tests/unicase/test-u32-tolower.c (check): Likewise.
14836         * tests/unicase/test-u32-totitle.c (check): Likewise.
14837         * tests/unicase/test-u32-toupper.c (check): Likewise.
14838         * tests/uninorm/test-u8-nfc.c (check): Likewise.
14839         * tests/uninorm/test-u8-nfd.c (check): Likewise.
14840         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
14841         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
14842         * tests/uninorm/test-u16-nfc.c (check): Likewise.
14843         * tests/uninorm/test-u16-nfd.c (check): Likewise.
14844         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
14845         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
14846         * tests/uninorm/test-u32-nfc.c (check): Likewise.
14847         * tests/uninorm/test-u32-nfd.c (check): Likewise.
14848         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
14849         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
14850
14851 2009-04-05  Bruno Haible  <bruno@clisp.org>
14852
14853         Work around an autoconf limitation.
14854         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
14855         comment line if it would be longer than 3 KB.
14856
14857 2009-04-05  Bruno Haible  <bruno@clisp.org>
14858
14859         Avoid test failure with libiconv-1.13.
14860         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
14861         of the expected test results.
14862
14863 2009-04-05  Bruno Haible  <bruno@clisp.org>
14864
14865         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
14866         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
14867         that it should be installed.
14868
14869 2009-04-05  Bruno Haible  <bruno@clisp.org>
14870
14871         * gnulib-tool: New option --copy-file.
14872         (func_usage): Document it.
14873         (func_dest_tmpfilename): Moved out of func_import.
14874         (func_add_file, func_update_file): New functions, extracted from
14875         func_import.
14876         (func_import): Update.
14877
14878 2009-04-05  Karl Berry  <karl@gnu.org>
14879
14880         * README: prominently mention gnulib-tool.
14881         Rearrange sections so getting the code is near the top.
14882
14883 2009-04-05  Bruno Haible  <bruno@clisp.org>
14884
14885         * lib/unicase.h: Mention u*_cmp2.
14886         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
14887         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
14888         * lib/unicase/ulc-casecmp.c: Likewise.
14889         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
14890         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
14891         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
14892         unistr/u8-cmp.
14893         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
14894         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
14895         unistr/u16-cmp.
14896         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
14897         unistr/u32-cmp.
14898
14899         * lib/uninorm.h: Mention u*_cmp2.
14900         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
14901         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
14902         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
14903         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
14904         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
14905         unistr/u8-cmp.
14906         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
14907         unistr/u16-cmp.
14908         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
14909         unistr/u32-cmp.
14910
14911         New module 'unistr/u32-cmp2'.
14912         * lib/unistr/u32-cmp2.c: New file.
14913         * modules/unistr/u32-cmp2: New file.
14914
14915         New module 'unistr/u16-cmp2'.
14916         * lib/unistr/u16-cmp2.c: New file.
14917         * modules/unistr/u16-cmp2: New file.
14918
14919         New module 'unistr/u8-cmp2'.
14920         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
14921         * lib/unistr/u8-cmp2.c: New file.
14922         * lib/unistr/u-cmp2.h: New file.
14923         * modules/unistr/u8-cmp2: New file.
14924
14925 2009-04-05  Bruno Haible  <bruno@clisp.org>
14926
14927         * lib/unictype.h (uc_property_is_valid): New macro.
14928         * tests/unictype/test-pr_byname.c (main): Use it.
14929
14930         * lib/unistr.h: Doc fixes.
14931         * lib/uniconv.h: Doc fixes.
14932         * lib/unictype.h: Doc fixes.
14933
14934 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
14935
14936         Port coreutils 7.2 to Solaris 8.
14937
14938         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
14939         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
14940         for Solaris 8.  This is a bit of a hack, as it means it's the
14941         caller's responsibility to add -lnsl if needed, but most likely it
14942         won't be needed since only getaddrinfo uses this and getaddrinfo
14943         isn't needed on Solaris 8.
14944
14945         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
14946         problem to Solaris 8 encountered with coreutils 7.2, which
14947         resulted in a message "fnmatch.c:292: warning: passing argument 4
14948         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
14949         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
14950
14951 2009-04-03  Simon Josefsson  <simon@josefsson.org>
14952
14953         * m4/ld-version-script.m4: Add FIXME comment.
14954
14955 2009-04-02  Simon Josefsson  <simon@josefsson.org>
14956
14957         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
14958         SOVERSION variable.
14959
14960 2009-04-02  Bruno Haible  <bruno@clisp.org>
14961
14962         * Makefile (info, html, dvi, pdf): Combine the rules.
14963         Suggested by Jim Meyering.
14964
14965 2009-04-01  Bruno Haible  <bruno@clisp.org>
14966
14967         * Makefile (info, html, dvi, pdf): New targets.
14968         Reported by Reuben Thomas <rrt@sc3d.org>.
14969
14970 2009-04-01  Bruno Haible  <bruno@clisp.org>
14971
14972         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
14973         can be put into PATH.
14974         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
14975
14976 2009-04-01  Bruno Haible  <bruno@clisp.org>
14977
14978         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
14979
14980 2009-04-01  Bruno Haible  <bruno@clisp.org>
14981
14982         Rename module 'visibility'.
14983         * modules/lib-symbol-visibility: Renamed from modules/visibility.
14984         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
14985         * doc/gnulib.texi: Update.
14986         * MODULES.html.sh (Misc): Update.
14987         * NEWS: Mention the change.
14988
14989 2009-04-01  Simon Josefsson  <simon@josefsson.org>
14990
14991         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
14992         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
14993         Eric Blake <ebb9@byu.net> for review.
14994         * MODULES.html.sh: Add lib-msvc-compat.
14995         * doc/gnulib.texi: Link to new section.
14996         * m4/ld-output-def.m4: New file.
14997         * doc/ld-output-def.texi: New file.
14998
14999 2009-04-01  Simon Josefsson  <simon@josefsson.org>
15000
15001         Rename ld-version-script to lib-symbol-versions.  Suggested by
15002         Bruno Haible <bruno@clisp.org>.
15003         * modules/ld-version-script: Renamed to lib-symbol-versions.
15004         * doc/ld-version-script.texi: Fix module name.
15005         * MODULES.html.sh: Add lib-symbol-versions.
15006
15007 2009-03-31  Simon Josefsson  <simon@josefsson.org>
15008
15009         * modules/u64-tests: New file.
15010         * tests/test-u64.c: New file.
15011
15012 2009-03-04  Simon Josefsson  <simon@josefsson.org>
15013
15014         * MODULES.html.sh: Mention u64.
15015         * modules/u64: New module.
15016         * modules/crypto/sha512: Depend on u64 module instead of providing
15017         u64.h.
15018
15019 2009-03-27  Eric Blake  <ebb9@byu.net>
15020
15021         test-strerror: make debugging EAI_SYSTEM easier
15022         * modules/getaddrinfo-tests (Depends-on): Add strerror.
15023         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
15024         failure was EAI_SYSTEM.
15025
15026 2009-03-25  Bruno Haible  <bruno@clisp.org>
15027
15028         Fix a problem with --enable-relocatable on Solaris 7.
15029         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
15030         since 2008-02-24.
15031
15032 2009-03-25  Eric Blake  <ebb9@byu.net>
15033
15034         test-sockets: avoid gcc warning
15035         * tests/test-sockets.c (main): Silence compiler warning.
15036
15037 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
15038
15039         New modules nproc, pthread, contributed by Glen Lenker.
15040
15041         * MODULES.html.sh: Add pthread, nproc.
15042         * lib/nproc.c: New file.
15043         * lib/nproc.h: New file.
15044         * lib/pthread.in.h: New file.
15045         * m4/pthread.m4: New file.
15046         * modules/nproc: New file.
15047         * modules/pthread: New file.
15048
15049 2009-03-24  Simon Josefsson  <simon@josefsson.org>
15050
15051         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
15052         New variable.
15053
15054 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
15055
15056         filevercmp: handle simple~ and numbered.~3~ backup suffixes
15057         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
15058         * tests/test-filevercmp.c: Add tests for backup suffixes.
15059
15060 2009-03-24  Simon Josefsson  <simon@josefsson.org>
15061
15062         * modules/stdlib (Depends-on): Add stdint, needed when defining
15063         struct random_data on, for example, HP-UX 10.20.  Reported by
15064         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15065
15066 2009-03-24  Simon Josefsson  <simon@josefsson.org>
15067
15068         * lib/readline.c (readline): Call fflush on stdout after printing
15069         prompt.
15070
15071 2009-03-20  Bruno Haible  <bruno@clisp.org>
15072
15073         Remove dependency from 'close' module to -lws2_32 on native Windows.
15074         * lib/close-hook.h: New file.
15075         * lib/close-hook.c: New file.
15076         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
15077         w32sock.h.
15078         (_gl_close_fd_maybe_socket): Remove function.
15079         (rpl_close): Invoke execute_all_close_hooks instead of
15080         _gl_close_fd_maybe_socket.
15081         * lib/sockets.c: Include close-hook.h, w32sock.h.
15082         (close_fd_maybe_socket): New function, essentially from lib/close.c.
15083         (close_sockets_hook): New variable.
15084         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
15085         (gl_sockets_cleanup): Unregister it.
15086         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
15087         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
15088         * modules/close-hook: New file.
15089         * modules/close (Files): Remove lib/w32sock.h.
15090         (Depends-on): Add close-hook.
15091         (Link): Remove section.
15092         * modules/sockets (Files): Add lib/w32sock.h.
15093         (Depends-on): Add close-hook.
15094         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
15095         invocation.
15096         * NEWS: Mention that LIB_CLOSE is gone.
15097
15098 2009-03-23  Eric Blake  <ebb9@byu.net>
15099
15100         signal-tests: test previous patch
15101         * tests/test-signal.c: New file.
15102         * modules/signal-tests: Likewise.
15103
15104         signal.h: always support 'volatile sig_atomic_t'
15105         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
15106         (gl_SIGNAL_H_DEFAULTS): Add a default.
15107         * modules/signal (Makefile.am): Substitute if needed.
15108         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
15109         users can blindly add volatile.
15110         * doc/posix-headers/signal.texi (signal.h): Document it.
15111         Reported by Matthew Woehlke.
15112
15113 2009-03-23  Jim Meyering  <meyering@redhat.com>
15114
15115         pathmax: PATH_MAX: use pathconf only when available
15116         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
15117         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
15118         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
15119         This avoids a link failure in a PSP cross-compilation environment
15120         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
15121
15122         * lib/vasnprintf.c (divide): Fix typo in comment.
15123
15124 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15125
15126         * gnulib-tool (func_filter_filelist): Fix comment.
15127
15128 2009-03-20  Bruno Haible  <bruno@clisp.org>
15129
15130         Make sockets.h self-contained.
15131         * lib/sockets.c: Include sockets.h first.
15132         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
15133
15134 2009-03-19  Eric Blake  <ebb9@byu.net>
15135
15136         doc: mention more functions added in cygwin 1.7.0
15137         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
15138         addition.
15139         * doc/posix-functions/log2f.texi: Likewise.
15140
15141 2009-03-19  Jim Meyering  <meyering@redhat.com>
15142
15143         fsusage: avoid syntax error due to statement-before-declaration
15144         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
15145         after all declarations.  Reported by Matthew Woehlke in
15146         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
15147
15148 2009-03-18  Eric Blake  <ebb9@byu.net>
15149
15150         build-aux/compile: sync from automake
15151         * build-aux/compile: New file, from automake.
15152         * config/srclist.txt: Mention build-aux/compile.
15153
15154 2009-03-17  Bruno Haible  <bruno@clisp.org>
15155
15156         * lib/git-merge-changelog.c: Fix typo in comment.
15157         Reported by Reuben Thomas <rrt@sc3d.org>.
15158
15159 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
15160
15161         * m4/regex.m4: update and improve help for
15162         --without-included-regex.
15163
15164 2009-03-17  Simon Josefsson  <simon@josefsson.org>
15165
15166         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
15167         failure on missing include files.
15168
15169 2009-03-17  Eric Blake  <ebb9@byu.net>
15170
15171         doc: mention more functions added in cygwin 1.7.0
15172         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
15173         addition.
15174         * doc/posix-functions/fwscanf.texi: Likewise.
15175         * doc/posix-functions/swprintf.texi: Likewise.
15176         * doc/posix-functions/swscanf.texi: Likewise.
15177         * doc/posix-functions/vfwprintf.texi: Likewise.
15178         * doc/posix-functions/vfwscanf.texi: Likewise.
15179         * doc/posix-functions/vswprintf.texi: Likewise.
15180         * doc/posix-functions/vswscanf.texi: Likewise.
15181         * doc/posix-functions/vwprintf.texi: Likewise.
15182         * doc/posix-functions/vwscanf.texi: Likewise.
15183         * doc/posix-functions/wcscasecmp.texi: Likewise.
15184         * doc/posix-functions/wcsdup.texi: Likewise.
15185         * doc/posix-functions/wcsftime.texi: Likewise.
15186         * doc/posix-functions/wcsncasecmp.texi: Likewise.
15187         * doc/posix-functions/wprintf.texi: Likewise.
15188         * doc/posix-functions/wscanf.texi: Likewise.
15189         * doc/glibc-functions/gethostbyname2.texi: Likewise.
15190
15191 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15192
15193         maint.mk: really add $(AM_MAKEFLAGS)
15194         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
15195         was inadvertently omitted in the last commit.
15196         Spotted by Bruno Haible.
15197
15198         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
15199         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
15200         $(AM_MAKEFLAGS)' rather than plain `make'.
15201
15202         gnulib-tool: execute $MAKE not make
15203         * gnulib-tool: Default $MAKE to 'make'.
15204         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
15205         than make.  Initialize $MAKE in the do-autobuild script.
15206
15207         gnulib-tool: use $MAKE not make in generated files
15208         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
15209         make, in generated files.  Initialize $MAKE in the do-autobuild
15210         script.
15211
15212         * top/GNUmakefile (_have-git-version-gen): Fix typo.
15213
15214         GNUmakefile: disable parallelism only for multiple, recursive targets
15215         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
15216         additions in the Makefile.
15217         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
15218         by Automake.
15219         (.NOTPARALLEL): Only disable parallel builds if multiple targets
15220         are listed on the command line and at least one of them is
15221         listed in $(ALL_RECURSIVE_TARGETS).
15222
15223 2009-03-14  Bruno Haible  <bruno@clisp.org>
15224
15225         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
15226         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
15227         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
15228         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
15229         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
15230         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
15231         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
15232         unistr/u8-uctomb.
15233         * modules/unistr/u8-strchr (Depends-on): Likewise.
15234         * modules/unistr/u8-strrchr (Depends-on): Likewise.
15235         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
15236         unistr/u16-uctomb.
15237         * modules/unistr/u16-strchr (Depends-on): Likewise.
15238         * modules/unistr/u16-strrchr (Depends-on): Likewise.
15239
15240 2009-03-12  Bruno Haible  <bruno@clisp.org>
15241
15242         Work around select() bug on Interix 3.5.
15243         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
15244         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
15245         * m4/select.m4: New file.
15246         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
15247         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
15248         * modules/select (Files): Add m4/select.m4.
15249         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
15250         * modules/nanosleep (Depends-on): Add select.
15251         * modules/poll (Depends-on): Likewise.
15252         * doc/posix-functions/select.texi: Mention the Interix bug.
15253         Reported by Markus Duft <mduft@gentoo.org>.
15254
15255         * lib/select.c: Renamed from lib/winsock-select.c.
15256         * modules/select (Files): Add lib/select.c, remove
15257         lib/winsock-select.c.
15258         (configure.ac): Update.
15259
15260 2009-03-12  Jim Meyering  <meyering@redhat.com>
15261
15262         avoid gcc warnings about unused macro definitions
15263         * lib/readtokens.c (STREQ): Remove unused definition.
15264         * lib/xmalloc.c (SIZE_MAX): Likewise.
15265         * lib/openat-die.c (N_): Likewise.
15266         * lib/mountlist.c (SIZE_MAX): Remove definition.
15267         Instead, include <stdint.h>.
15268         * lib/readutmp.c: Likewise.
15269         * modules/readutmp (Depends-on): Add stdint.
15270         * modules/mountlist (Depends-on): Add stdint.
15271         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
15272
15273 2009-03-10  Bruno Haible  <bruno@clisp.org>
15274
15275         Tests for module 'mbmemcasecoll'.
15276         * modules/mbmemcasecoll-tests: New file.
15277         * tests/test-mbmemcasecoll1.sh: New file.
15278         * tests/test-mbmemcasecoll2.sh: New file.
15279         * tests/test-mbmemcasecoll3.sh: New file.
15280         * tests/test-mbmemcasecoll.c: New file.
15281
15282         New module 'mbmemcasecoll'.
15283         * lib/mbmemcasecoll.h: New file.
15284         * lib/mbmemcasecoll.c: New file.
15285         * modules/mbmemcasecoll: New file.
15286
15287         * tests/test-mbmemcasecmp.h: New file, extracted from
15288         tests/test-mbmemcasecmp.c.
15289         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
15290         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
15291         (main): Update.
15292         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
15293
15294 2009-03-09  Bruno Haible  <bruno@clisp.org>
15295
15296         Tests for module 'mbmemcasecmp'.
15297         * modules/mbmemcasecmp-tests: New file.
15298         * tests/test-mbmemcasecmp1.sh: New file.
15299         * tests/test-mbmemcasecmp2.sh: New file.
15300         * tests/test-mbmemcasecmp3.sh: New file.
15301         * tests/test-mbmemcasecmp.c: New file.
15302
15303         New module 'mbmemcasecmp'.
15304         * lib/mbmemcasecmp.h: New file.
15305         * lib/mbmemcasecmp.c: New file.
15306         * modules/mbmemcasecmp: New file.
15307
15308 2009-03-09  Bruno Haible  <bruno@clisp.org>
15309
15310         Tests for module 'unicase/ulc-casecoll'.
15311         * modules/unicase/ulc-casecoll-tests: New file.
15312         * tests/unicase/test-ulc-casecoll1.sh: New file.
15313         * tests/unicase/test-ulc-casecoll2.sh: New file.
15314         * tests/unicase/test-ulc-casecoll.c: New file.
15315
15316         New module 'unicase/ulc-casecoll'.
15317         * lib/unicase.h (ulc_casecoll): New declaration.
15318         * lib/unicase/ulc-casecoll.c: New file.
15319         * modules/unicase/ulc-casecoll: New file.
15320
15321         New module 'unicase/ulc-casexfrm'.
15322         * lib/unicase.h (ulc_casexfrm): New declaration.
15323         * lib/unicase/ulc-casexfrm.c: New file.
15324         * modules/unicase/ulc-casexfrm: New file.
15325
15326 2009-03-09  Bruno Haible  <bruno@clisp.org>
15327
15328         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
15329         invocations.
15330
15331         * m4/mbscasecmp.m4: Remove file.
15332         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
15333         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
15334
15335         * m4/mbscasestr.m4: Remove file.
15336         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
15337         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
15338
15339         * m4/mbschr.m4: Remove file.
15340         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
15341         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
15342
15343         * m4/mbscspn.m4: Remove file.
15344         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
15345         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
15346
15347         * m4/mbslen.m4: Remove file.
15348         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
15349         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
15350
15351         * m4/mbsncasecmp.m4: Remove file.
15352         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
15353         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
15354
15355         * m4/mbsnlen.m4: Remove file.
15356         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
15357         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
15358
15359         * m4/mbspbrk.m4: Remove file.
15360         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
15361         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
15362
15363         * m4/mbspcasecmp.m4: Remove file.
15364         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
15365         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
15366
15367         * m4/mbsrchr.m4: Remove file.
15368         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
15369         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
15370
15371         * m4/mbssep.m4: Remove file.
15372         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
15373         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
15374
15375         * m4/mbsspn.m4: Remove file.
15376         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
15377         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
15378
15379         * m4/mbsstr.m4: Remove file.
15380         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
15381         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
15382
15383         * m4/mbstok_r.m4: Remove file.
15384         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
15385         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
15386
15387         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
15388
15389         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
15390         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
15391
15392         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
15393
15394 2009-03-08  Bruno Haible  <bruno@clisp.org>
15395
15396         Tests for module 'unicase/ulc-casecmp'.
15397         * modules/unicase/ulc-casecmp-tests: New file.
15398         * tests/unicase/test-ulc-casecmp1.sh: New file.
15399         * tests/unicase/test-ulc-casecmp2.sh: New file.
15400         * tests/unicase/test-ulc-casecmp.c: New file.
15401
15402         New module 'unicase/ulc-casecmp'.
15403         * lib/unicase.h (ulc_casecmp): New declaration.
15404         * lib/unicase/ulc-casecmp.c: New file.
15405         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
15406         'const SRC_UNIT *'.
15407         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
15408         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
15409         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
15410         * modules/unicase/ulc-casecmp: New file.
15411
15412         Tests for module 'unicase/u32-is-cased'.
15413         * modules/unicase/u32-is-cased-tests: New file.
15414         * tests/unicase/test-u32-is-cased.c: New file.
15415
15416         Tests for module 'unicase/u16-is-cased'.
15417         * modules/unicase/u16-is-cased-tests: New file.
15418         * tests/unicase/test-u16-is-cased.c: New file.
15419
15420         Tests for module 'unicase/u8-is-cased'.
15421         * modules/unicase/u8-is-cased-tests: New file.
15422         * tests/unicase/test-u8-is-cased.c: New file.
15423         * tests/unicase/test-is-cased.h: New file.
15424
15425         New module 'unicase/u32-is-cased'.
15426         * lib/unicase/u32-is-cased.c: New file.
15427         * modules/unicase/u32-is-cased: New file.
15428
15429         New module 'unicase/u16-is-cased'.
15430         * lib/unicase/u16-is-cased.c: New file.
15431         * modules/unicase/u16-is-cased: New file.
15432
15433         New module 'unicase/u8-is-cased'.
15434         * lib/unicase/u8-is-cased.c: New file.
15435         * lib/unicase/u-is-cased.h: New file.
15436         * modules/unicase/u8-is-cased: New file.
15437
15438         Tests for module 'unicase/u32-is-casefolded'.
15439         * modules/unicase/u32-is-casefolded-tests: New file.
15440         * tests/unicase/test-u32-is-casefolded.c: New file.
15441
15442         Tests for module 'unicase/u16-is-casefolded'.
15443         * modules/unicase/u16-is-casefolded-tests: New file.
15444         * tests/unicase/test-u16-is-casefolded.c: New file.
15445
15446         Tests for module 'unicase/u8-is-casefolded'.
15447         * modules/unicase/u8-is-casefolded-tests: New file.
15448         * tests/unicase/test-u8-is-casefolded.c: New file.
15449         * tests/unicase/test-is-casefolded.h: New file.
15450
15451         New module 'unicase/u32-is-casefolded'.
15452         * lib/unicase/u32-is-casefolded.c: New file.
15453         * modules/unicase/u32-is-casefolded: New file.
15454
15455         New module 'unicase/u16-is-casefolded'.
15456         * lib/unicase/u16-is-casefolded.c: New file.
15457         * modules/unicase/u16-is-casefolded: New file.
15458
15459         New module 'unicase/u8-is-casefolded'.
15460         * lib/unicase/u8-is-casefolded.c: New file.
15461         * modules/unicase/u8-is-casefolded: New file.
15462
15463         Tests for module 'unicase/u32-is-titlecase'.
15464         * modules/unicase/u32-is-titlecase-tests: New file.
15465         * tests/unicase/test-u32-is-titlecase.c: New file.
15466
15467         Tests for module 'unicase/u16-is-titlecase'.
15468         * modules/unicase/u16-is-titlecase-tests: New file.
15469         * tests/unicase/test-u16-is-titlecase.c: New file.
15470
15471         Tests for module 'unicase/u8-is-titlecase'.
15472         * modules/unicase/u8-is-titlecase-tests: New file.
15473         * tests/unicase/test-u8-is-titlecase.c: New file.
15474         * tests/unicase/test-is-titlecase.h: New file.
15475
15476         New module 'unicase/u32-is-titlecase'.
15477         * lib/unicase/u32-is-titlecase.c: New file.
15478         * modules/unicase/u32-is-titlecase: New file.
15479
15480         New module 'unicase/u16-is-titlecase'.
15481         * lib/unicase/u16-is-titlecase.c: New file.
15482         * modules/unicase/u16-is-titlecase: New file.
15483
15484         New module 'unicase/u8-is-titlecase'.
15485         * lib/unicase/u8-is-titlecase.c: New file.
15486         * modules/unicase/u8-is-titlecase: New file.
15487
15488         Tests for module 'unicase/u32-is-lowercase'.
15489         * modules/unicase/u32-is-lowercase-tests: New file.
15490         * tests/unicase/test-u32-is-lowercase.c: New file.
15491
15492         Tests for module 'unicase/u16-is-lowercase'.
15493         * modules/unicase/u16-is-lowercase-tests: New file.
15494         * tests/unicase/test-u16-is-lowercase.c: New file.
15495
15496         Tests for module 'unicase/u8-is-lowercase'.
15497         * modules/unicase/u8-is-lowercase-tests: New file.
15498         * tests/unicase/test-u8-is-lowercase.c: New file.
15499         * tests/unicase/test-is-lowercase.h: New file.
15500
15501         New module 'unicase/u32-is-lowercase'.
15502         * lib/unicase/u32-is-lowercase.c: New file.
15503         * modules/unicase/u32-is-lowercase: New file.
15504
15505         New module 'unicase/u16-is-lowercase'.
15506         * lib/unicase/u16-is-lowercase.c: New file.
15507         * modules/unicase/u16-is-lowercase: New file.
15508
15509         New module 'unicase/u8-is-lowercase'.
15510         * lib/unicase/u8-is-lowercase.c: New file.
15511         * modules/unicase/u8-is-lowercase: New file.
15512
15513         Tests for module 'unicase/u32-is-uppercase'.
15514         * modules/unicase/u32-is-uppercase-tests: New file.
15515         * tests/unicase/test-u32-is-uppercase.c: New file.
15516
15517         Tests for module 'unicase/u16-is-uppercase'.
15518         * modules/unicase/u16-is-uppercase-tests: New file.
15519         * tests/unicase/test-u16-is-uppercase.c: New file.
15520
15521         Tests for module 'unicase/u8-is-uppercase'.
15522         * modules/unicase/u8-is-uppercase-tests: New file.
15523         * tests/unicase/test-u8-is-uppercase.c: New file.
15524         * tests/unicase/test-is-uppercase.h: New file.
15525
15526         New module 'unicase/u32-is-uppercase'.
15527         * lib/unicase/u32-is-uppercase.c: New file.
15528         * modules/unicase/u32-is-uppercase: New file.
15529
15530         New module 'unicase/u16-is-uppercase'.
15531         * lib/unicase/u16-is-uppercase.c: New file.
15532         * modules/unicase/u16-is-uppercase: New file.
15533
15534         New module 'unicase/u8-is-uppercase'.
15535         * lib/unicase/u8-is-uppercase.c: New file.
15536         * modules/unicase/u8-is-uppercase: New file.
15537
15538         New module 'unicase/u32-is-invariant'.
15539         * lib/unicase/u32-is-invariant.c: New file.
15540         * modules/unicase/u32-is-invariant: New file.
15541
15542         New module 'unicase/u16-is-invariant'.
15543         * lib/unicase/u16-is-invariant.c: New file.
15544         * modules/unicase/u16-is-invariant: New file.
15545
15546         New module 'unicase/u8-is-invariant'.
15547         * lib/unicase/u8-is-invariant.c: New file.
15548         * lib/unicase/invariant.h: New file.
15549         * lib/unicase/u-is-invariant.h: New file.
15550         * modules/unicase/u8-is-invariant: New file.
15551
15552         Tests for module 'unicase/u32-casecoll'.
15553         * modules/unicase/u32-casecoll-tests: New file.
15554         * tests/unicase/test-u32-casecoll.c: New file.
15555
15556         Tests for module 'unicase/u16-casecoll'.
15557         * modules/unicase/u16-casecoll-tests: New file.
15558         * tests/unicase/test-u16-casecoll.c: New file.
15559
15560         Tests for module 'unicase/u8-casecoll'.
15561         * modules/unicase/u8-casecoll-tests: New file.
15562         * tests/unicase/test-u8-casecoll.c: New file.
15563
15564         New module 'unicase/u32-casecoll'.
15565         * lib/unicase/u32-casecoll.c: New file.
15566         * modules/unicase/u32-casecoll: New file.
15567
15568         New module 'unicase/u16-casecoll'.
15569         * lib/unicase/u16-casecoll.c: New file.
15570         * modules/unicase/u16-casecoll: New file.
15571
15572         New module 'unicase/u8-casecoll'.
15573         * lib/unicase/u8-casecoll.c: New file.
15574         * lib/unicase/u-casecoll.h: New file.
15575         * modules/unicase/u8-casecoll: New file.
15576
15577         New module 'unicase/u32-casexfrm'.
15578         * lib/unicase/u32-casexfrm.c: New file.
15579         * modules/unicase/u32-casexfrm: New file.
15580
15581         New module 'unicase/u16-casexfrm'.
15582         * lib/unicase/u16-casexfrm.c: New file.
15583         * modules/unicase/u16-casexfrm: New file.
15584
15585         New module 'unicase/u8-casexfrm'.
15586         * lib/unicase/u8-casexfrm.c: New file.
15587         * lib/unicase/u-casexfrm.h: New file.
15588         * modules/unicase/u8-casexfrm: New file.
15589
15590         Tests for module 'unicase/u32-casecmp'.
15591         * modules/unicase/u32-casecmp-tests: New file.
15592         * tests/unicase/test-u32-casecmp.c: New file.
15593
15594         Tests for module 'unicase/u16-casecmp'.
15595         * modules/unicase/u16-casecmp-tests: New file.
15596         * tests/unicase/test-u16-casecmp.c: New file.
15597
15598         Tests for module 'unicase/u8-casecmp'.
15599         * modules/unicase/u8-casecmp-tests: New file.
15600         * tests/unicase/test-u8-casecmp.c: New file.
15601         * tests/unicase/test-casecmp.h: New file.
15602
15603         New module 'unicase/u32-casecmp'.
15604         * lib/unicase/u32-casecmp.c: New file.
15605         * modules/unicase/u32-casecmp: New file.
15606
15607         New module 'unicase/u16-casecmp'.
15608         * lib/unicase/u16-casecmp.c: New file.
15609         * modules/unicase/u16-casecmp: New file.
15610
15611         New module 'unicase/u8-casecmp'.
15612         * lib/unicase/u8-casecmp.c: New file.
15613         * lib/unicase/u-casecmp.h: New file.
15614         * modules/unicase/u8-casecmp: New file.
15615
15616         Tests for module 'unicase/u32-casefold'.
15617         * modules/unicase/u32-casefold-tests: New file.
15618         * tests/unicase/test-u32-casefold.c: New file.
15619
15620         Tests for module 'unicase/u16-casefold'.
15621         * modules/unicase/u16-casefold-tests: New file.
15622         * tests/unicase/test-u16-casefold.c: New file.
15623
15624         Tests for module 'unicase/u8-casefold'.
15625         * modules/unicase/u8-casefold-tests: New file.
15626         * tests/unicase/test-u8-casefold.c: New file.
15627
15628         New module 'unicase/u32-casefold'.
15629         * lib/unicase/u32-casefold.c: New file.
15630         * modules/unicase/u32-casefold: New file.
15631
15632         New module 'unicase/u16-casefold'.
15633         * lib/unicase/u16-casefold.c: New file.
15634         * modules/unicase/u16-casefold: New file.
15635
15636         New module 'unicase/u8-casefold'.
15637         * lib/unicase/u8-casefold.c: New file.
15638         * lib/unicase/u-casefold.h: New file.
15639         * modules/unicase/u8-casefold: New file.
15640
15641         New module 'unicase/tocasefold'.
15642         * lib/unicase/casefold.h: New file.
15643         * lib/unicase/tocasefold.c: New file.
15644         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
15645         * modules/unicase/tocasefold: New file.
15646
15647         Tests for module 'unicase/u32-totitle'.
15648         * modules/unicase/u32-totitle-tests: New file.
15649         * tests/unicase/test-u32-totitle.c: New file.
15650
15651         Tests for module 'unicase/u16-totitle'.
15652         * modules/unicase/u16-totitle-tests: New file.
15653         * tests/unicase/test-u16-totitle.c: New file.
15654
15655         Tests for module 'unicase/u8-totitle'.
15656         * modules/unicase/u8-totitle-tests: New file.
15657         * tests/unicase/test-u8-totitle.c: New file.
15658
15659         New module 'unicase/u32-totitle'.
15660         * lib/unicase/u32-totitle.c: New file.
15661         * modules/unicase/u32-totitle: New file.
15662
15663         New module 'unicase/u16-totitle'.
15664         * lib/unicase/u16-totitle.c: New file.
15665         * modules/unicase/u16-totitle: New file.
15666
15667         New module 'unicase/u8-totitle'.
15668         * lib/unicase/u8-totitle.c: New file.
15669         * lib/unicase/u-totitle.h: New file.
15670         * modules/unicase/u8-totitle: New file.
15671
15672         Tests for module 'unicase/u32-tolower'.
15673         * modules/unicase/u32-tolower-tests: New file.
15674         * tests/unicase/test-u32-tolower.c: New file.
15675
15676         Tests for module 'unicase/u16-tolower'.
15677         * modules/unicase/u16-tolower-tests: New file.
15678         * tests/unicase/test-u16-tolower.c: New file.
15679
15680         Tests for module 'unicase/u8-tolower'.
15681         * modules/unicase/u8-tolower-tests: New file.
15682         * tests/unicase/test-u8-tolower.c: New file.
15683
15684         New module 'unicase/u32-tolower'.
15685         * lib/unicase/u32-tolower.c: New file.
15686         * modules/unicase/u32-tolower: New file.
15687
15688         New module 'unicase/u16-tolower'.
15689         * lib/unicase/u16-tolower.c: New file.
15690         * modules/unicase/u16-tolower: New file.
15691
15692         New module 'unicase/u8-tolower'.
15693         * lib/unicase/u8-tolower.c: New file.
15694         * modules/unicase/u8-tolower: New file.
15695
15696         Tests for module 'unicase/u32-toupper'.
15697         * modules/unicase/u32-toupper-tests: New file.
15698         * tests/unicase/test-u32-toupper.c: New file.
15699
15700         Tests for module 'unicase/u16-toupper'.
15701         * modules/unicase/u16-toupper-tests: New file.
15702         * tests/unicase/test-u16-toupper.c: New file.
15703
15704         Tests for module 'unicase/u8-toupper'.
15705         * modules/unicase/u8-toupper-tests: New file.
15706         * tests/unicase/test-u8-toupper.c: New file.
15707
15708         New module 'unicase/u32-toupper'.
15709         * lib/unicase/u32-toupper.c: New file.
15710         * modules/unicase/u32-toupper: New file.
15711
15712         New module 'unicase/u16-toupper'.
15713         * lib/unicase/u16-toupper.c: New file.
15714         * modules/unicase/u16-toupper: New file.
15715
15716         New module 'unicase/u8-toupper'.
15717         * lib/unicase/u8-toupper.c: New file.
15718         * modules/unicase/u8-toupper: New file.
15719
15720         New module 'unicase/u32-casemap'.
15721         * lib/unicase/u32-casemap.c: New file.
15722         * modules/unicase/u32-casemap: New file.
15723
15724         New module 'unicase/u16-casemap'.
15725         * lib/unicase/u16-casemap.c: New file.
15726         * modules/unicase/u16-casemap: New file.
15727
15728         New module 'unicase/u8-casemap'.
15729         * lib/unicase/unicasemap.h: New file.
15730         * lib/unicase/u8-casemap.c: New file.
15731         * lib/unicase/u-casemap.h: New file.
15732         * modules/unicase/u8-casemap: New file.
15733
15734         New module 'unicase/special-casing'.
15735         * lib/unicase/special-casing.h: New file.
15736         * lib/unicase/special-casing.c: New file.
15737         * lib/unicase/special-casing-table.gperf: New file, generated by
15738         gen-uni-tables.c.
15739         * modules/unicase/special-casing: New file.
15740
15741         Tests for module 'unicase/locale-language'.
15742         * modules/unicase/locale-language-tests: New file.
15743         * tests/unicase/test-locale-language.sh: New file.
15744         * tests/unicase/test-locale-language.c: New file.
15745
15746         New module 'unicase/locale-language'.
15747         * lib/unicase/locale-language.c: New file.
15748         * lib/unicase/locale-languages.gperf: New file.
15749         * modules/unicase/locale-language: New file.
15750
15751         Generate more tables for case conversion and case folding.
15752         * lib/gen-uni-tables.c (SCC_*): New enum items.
15753         (struct special_casing_rule): New type.
15754         (casing_rules, num_casing_rules, allocated_casing_rules): New
15755         variables.
15756         (add_casing_rule, fill_casing_rules): New functions.
15757         (struct casefold_rule): New type.
15758         (casefolding_rules, num_casefolding_rules,
15759         allocated_casefolding_rules): New variables.
15760         (fill_casefolding_rules): New function.
15761         (unicode_casefold): New variable.
15762         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
15763         sort_casing_rules, output_casing_rules): New functions.
15764         (main): Accept to more arguments: SpecialCasing.txt and
15765         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
15766         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
15767         Output mapping for casefolding.
15768
15769         * lib/unicase.h: Include stdbool.h, uninorm.h.
15770         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
15771         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
15772         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
15773         arguments.
15774         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
15775         resultp arguments.
15776         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
15777         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
15778         resultp arguments.
15779         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
15780         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
15781         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
15782         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
15783         declarations.
15784         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
15785
15786 2009-03-08  Bruno Haible  <bruno@clisp.org>
15787
15788         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
15789         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
15790         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
15791         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
15792
15793 2009-03-07  Bruno Haible  <bruno@clisp.org>
15794
15795         Adjust u*_normcmp, u*_normcoll API.
15796         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
15797         u16_normcoll, u32_normcoll): Change failure conventions.
15798         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
15799         errno and return -1.
15800         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
15801
15802 2009-03-07  Bruno Haible  <bruno@clisp.org>
15803
15804         Tests for module 'uninorm/u32-normcoll'.
15805         * modules/uninorm/u32-normcoll-tests: New file.
15806         * tests/uninorm/test-u32-normcoll.c: New file.
15807
15808         Tests for module 'uninorm/u16-normcoll'.
15809         * modules/uninorm/u16-normcoll-tests: New file.
15810         * tests/uninorm/test-u16-normcoll.c: New file.
15811
15812         Tests for module 'uninorm/u8-normcoll'.
15813         * modules/uninorm/u8-normcoll-tests: New file.
15814         * tests/uninorm/test-u8-normcoll.c: New file.
15815
15816 2009-03-07  Bruno Haible  <bruno@clisp.org>
15817
15818         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
15819         tests/uninorm/test-u32-normcmp.c.
15820         * tests/uninorm/test-u32-normcmp.c: Include it.
15821         (test_nonascii): New function, extracted from main. Add some more
15822         tests.
15823         (main): Invoke test_ascii and test_nonascii.
15824         * modules/uninorm/u32-normcmp-tests (Files): Add
15825         tests/uninorm/test-u32-normcmp.h.
15826         (Depends-on): Remove uninorm/u32-normcmp.
15827
15828         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
15829         tests/uninorm/test-u16-normcmp.c.
15830         * tests/uninorm/test-u16-normcmp.c: Include it.
15831         (test_nonascii): New function, extracted from main. Add some more
15832         tests.
15833         (main): Invoke test_ascii and test_nonascii.
15834         * modules/uninorm/u16-normcmp-tests (Files): Add
15835         tests/uninorm/test-u16-normcmp.h.
15836         (Depends-on): Remove uninorm/u16-normcmp.
15837
15838         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
15839         tests/uninorm/test-u8-normcmp.c.
15840         * tests/uninorm/test-u8-normcmp.c: Include it.
15841         (test_nonascii): New function, extracted from main. Add some more
15842         tests.
15843         (main): Invoke test_ascii and test_nonascii.
15844         * modules/uninorm/u8-normcmp-tests (Files): Add
15845         tests/uninorm/test-u8-normcmp.h.
15846         (Depends-on): Remove uninorm/u8-normcmp.
15847
15848 2009-03-07  Bruno Haible  <bruno@clisp.org>
15849
15850         New module 'uninorm/u32-normcoll'.
15851         * lib/uninorm/u32-normcoll.c: New file.
15852         * modules/uninorm/u32-normcoll: New file.
15853
15854         New module 'uninorm/u16-normcoll'.
15855         * lib/uninorm/u16-normcoll.c: New file.
15856         * modules/uninorm/u16-normcoll: New file.
15857
15858         New module 'uninorm/u8-normcoll'.
15859         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
15860         declarations.
15861         * lib/uninorm/u8-normcoll.c: New file.
15862         * lib/uninorm/u-normcoll.h: New file.
15863         * modules/uninorm/u8-normcoll: New file.
15864
15865         New module 'uninorm/u32-normxfrm'.
15866         * lib/uninorm/u32-normxfrm.c: New file.
15867         * modules/uninorm/u32-normxfrm: New file.
15868
15869         New module 'uninorm/u16-normxfrm'.
15870         * lib/uninorm/u16-normxfrm.c: New file.
15871         * modules/uninorm/u16-normxfrm: New file.
15872
15873         New module 'uninorm/u8-normxfrm'.
15874         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
15875         declarations.
15876         * lib/uninorm/u8-normxfrm.c: New file.
15877         * lib/uninorm/u-normxfrm.h: New file.
15878         * modules/uninorm/u8-normxfrm: New file.
15879
15880 2009-03-07  Bruno Haible  <bruno@clisp.org>
15881
15882         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
15883         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
15884         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
15885
15886 2009-03-07  Bruno Haible  <bruno@clisp.org>
15887
15888         New module 'memxfrm'.
15889         * lib/memxfrm.h: New file.
15890         * lib/memxfrm.c: New file.
15891         * modules/memxfrm: New file.
15892
15893 2009-03-07  Bruno Haible  <bruno@clisp.org>
15894
15895         New module 'memcmp2'.
15896         * lib/memcmp2.h: New file.
15897         * lib/memcmp2.c: New file.
15898         * modules/memcmp2: New file.
15899
15900 2009-03-07  Bruno Haible  <bruno@clisp.org>
15901
15902         Tests for module 'uninorm/decomposing-form'.
15903         * modules/uninorm/decomposing-form-tests: New file.
15904         * tests/uninorm/test-decomposing-form.c: New file.
15905
15906         New module 'uninorm/decomposing-form'.
15907         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
15908         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
15909         Add 'decomposing_variant' field.
15910         * lib/uninorm/decomposing-form.c: New file.
15911         * lib/uninorm/nfc.c (uninorm_nfc): Update.
15912         * lib/uninorm/nfd.c (uninorm_nfd): Update.
15913         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
15914         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
15915         * modules/uninorm/decomposing-form: New file.
15916         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
15917         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
15918
15919 2009-03-07  Bruno Haible  <bruno@clisp.org>
15920
15921         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
15922         strings.
15923
15924 2009-03-06  Bruno Haible  <bruno@clisp.org>
15925
15926         Tests for module 'uninorm/u32-normcmp'.
15927         * tests/uninorm/test-u32-normcmp.c: New file.
15928         * modules/uninorm/u32-normcmp-tests: New file.
15929
15930         Tests for module 'uninorm/u16-normcmp'.
15931         * tests/uninorm/test-u16-normcmp.c: New file.
15932         * modules/uninorm/u16-normcmp-tests: New file.
15933
15934         Tests for module 'uninorm/u8-normcmp'.
15935         * tests/uninorm/test-u8-normcmp.c: New file.
15936         * modules/uninorm/u8-normcmp-tests: New file.
15937
15938         New module 'uninorm/u32-normcmp'.
15939         * lib/uninorm/u32-normcmp.c: New file.
15940         * modules/uninorm/u32-normcmp: New file.
15941
15942         New module 'uninorm/u16-normcmp'.
15943         * lib/uninorm/u16-normcmp.c: New file.
15944         * modules/uninorm/u16-normcmp: New file.
15945
15946         New module 'uninorm/u8-normcmp'.
15947         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
15948         declarations.
15949         * lib/uninorm/u8-normcmp.c: New file.
15950         * lib/uninorm/u-normcmp.h: New file.
15951         * modules/uninorm/u8-normcmp: New file.
15952
15953 2009-03-06  Bruno Haible  <bruno@clisp.org>
15954
15955         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
15956         Reported by Eric Blake.
15957
15958 2009-03-06  Eric Blake  <ebb9@byu.net>
15959             Bruno Haible  <bruno@clisp.org>
15960
15961         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
15962         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
15963         condition.
15964         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
15965         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
15966         condition.
15967         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
15968
15969 2009-03-06  Eric Blake  <ebb9@byu.net>
15970
15971         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
15972         to avoid compiler warnings.
15973         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
15974
15975 2009-03-05  Bruno Haible  <bruno@clisp.org>
15976
15977         * tests/test-ftell.c (main): Disable test beyond end of file on
15978         FreeMiNT.
15979         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
15980
15981 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
15982
15983         * lib/filevercmp.c: Move hidden files up in ordering.
15984         * tests/test-filevercmp.c: Add tests for hidden files.
15985
15986 2009-03-04  Bruno Haible  <bruno@clisp.org>
15987
15988         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
15989         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
15990         AM_CFLAGS.
15991         Reported by Simon Josefsson.
15992
15993 2009-03-03  Bruno Haible  <bruno@clisp.org>
15994
15995         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
15996         Reported by Simon Josefsson.
15997
15998         * doc/ld-version-script.texi: Update node reference.
15999
16000 2009-03-03  Bruno Haible  <bruno@clisp.org>
16001
16002         * modules/visibility (License): Change to 'unlimited'.
16003         Suggested by Simon Josefsson.
16004
16005 2009-03-03  Jim Meyering  <meyering@redhat.com>
16006
16007         unlinkdir: cannot_unlink_dir may modify process state
16008         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
16009         it's neither thread-safe nor appropriate for use in a library.
16010
16011 2009-03-03  Eric Blake  <ebb9@byu.net>
16012
16013         test-closein: silence test under Darwin
16014         * tests/test-closein.sh: Ignore stderr from cat, since we don't
16015         care if it dies from EPIPE or EBADF.
16016
16017 2009-03-03  Bruno Haible  <bruno@clisp.org>
16018
16019         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
16020         earlier.
16021         * doc/visibility.texi: Fix @node and @section.
16022
16023 2009-03-03  Simon Josefsson  <simon@josefsson.org>
16024
16025         * doc/gnulib.texi: Link to sections for ld version script and
16026         visibility.
16027         * doc/visibility.texi: Add @node and @section.
16028         * modules/ld-version-script: New module.
16029         * m4/ld-version-script.m4: New file.
16030         * doc/ld-version-script.texi: New file.
16031
16032 2009-03-02  David Lutterkort  <lutter@redhat.com>
16033
16034         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
16035         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16036
16037 2009-03-02  Bruno Haible  <bruno@clisp.org>
16038
16039         * doc/visibility.texi: Mention libtool's -export-symbols option.
16040
16041 2009-03-02  Jim Meyering  <meyering@redhat.com>
16042
16043         announce-gen: new option: --no-print-checksums
16044         * build-aux/announce-gen (usage): Describe it.
16045         (print_checksums): Print a newline here, not in the [*] footnote.
16046         (main): Honor it.
16047
16048 2009-03-01  Bruno Haible  <bruno@clisp.org>
16049
16050         Use socklen_t in the native Windows replacements prototypes.
16051         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
16052         instead of 'int'.
16053         * lib/getsockopt.c (rpl_getsockopt): Likewise.
16054         * lib/setsockopt.c (rpl_setsockopt): Likewise.
16055         * modules/getsockopt (Depends-on): Add socklen.
16056         * modules/setsockopt (Depends-on): Add socklen.
16057
16058 2009-03-01  Bruno Haible  <bruno@clisp.org>
16059
16060         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
16061         least 4.2.
16062
16063 2009-03-01  Eric Blake  <ebb9@byu.net>
16064             Bruno Haible  <bruno@clisp.org>
16065
16066         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
16067         error messages.
16068         * lib/wait-process.c (wait_subprocess): Omit error message about
16069         deadly signal sent to the child of termsigp != NULL.
16070
16071 2009-03-01  Eric Blake  <ebb9@byu.net>
16072
16073         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
16074
16075 2009-03-01  Bruno Haible  <bruno@clisp.org>
16076
16077         Avoid a gcc warning.
16078         * tests/test-sched.c (b): Make global.
16079         Reported by Eric Blake.
16080
16081 2009-01-19  Martin Lambers  <marlam@marlam.de>
16082
16083         Provide POSIX semantics for socket timeout options on W32.
16084         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
16085         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
16086         * modules/setsockopt: Depend on sys_time module for struct timeval.
16087         * modules/getsockopt: Depend on sys_time module for struct timeval.
16088
16089 2009-03-01  Simon Josefsson  <simon@josefsson.org>
16090
16091         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
16092         __USE_GNU, for consistency with netdb.in.h.
16093         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
16094
16095 2009-03-01  Bruno Haible  <bruno@clisp.org>
16096
16097         More support for FreeMiNT.
16098         * lib/fseeko.c (rpl_fseeko): Complete last commit.
16099         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
16100
16101 2009-03-01  Bruno Haible  <bruno@clisp.org>
16102
16103         More support for FreeMiNT.
16104         * lib/fpurge.c (fpurge): Correct last commit.
16105         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
16106
16107 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16108
16109         Fix unportable awk script in vc-list-files.
16110         * build-aux/vc-list-files: In the replacement awk script, use
16111         substr with a second argument of 1, not zero.
16112         Report by Simon Josefsson.
16113
16114 2009-02-28  Bruno Haible  <bruno@clisp.org>
16115
16116         More support for FreeMiNT.
16117         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
16118         to FreeMiNT today.
16119         * lib/fwriting.c (fwriting): Likewise.
16120         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
16121
16122 2009-02-28  Bruno Haible  <bruno@clisp.org>
16123
16124         * tests/test-freadseek.c (main): Disable test beyond end of file on
16125         FreeMiNT.
16126         * tests/test-ftello.c (main): Likewise.
16127         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
16128
16129 2009-02-28  Bruno Haible  <bruno@clisp.org>
16130
16131         Add tentative support for FreeMiNT.
16132         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
16133         * lib/fpurge.c (fpurge): Likewise.
16134         * lib/freadable.c (freadable): Likewise.
16135         * lib/freading.c (freading): Likewise.
16136         * lib/freadptr.c (freadptr): Likewise.
16137         * lib/freadseek.c (freadptrinc): Likewise.
16138         * lib/fseeko.c (rpl_fseeko): Likewise.
16139         * lib/fseterr.c (fseterr): Likewise.
16140         * lib/fwritable.c (fwritable): Likewise.
16141         * lib/fwriting.c (fwriting): Likewise.
16142         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
16143         Hourihane.
16144         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
16145
16146 2009-02-28  Bruno Haible  <bruno@clisp.org>
16147
16148         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
16149         SIGCHLD.
16150         Reported by Jim Meyering.
16151
16152 2009-02-28  Bruno Haible  <bruno@clisp.org>
16153
16154         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
16155         Mention the results of these tests on various platforms.
16156         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
16157         order.
16158         * doc/posix-functions/printf.texi: Likewise.
16159         * doc/posix-functions/snprintf.texi: Likewise.
16160         * doc/posix-functions/sprintf.texi: Likewise.
16161         * doc/posix-functions/vfprintf.texi: Likewise.
16162         * doc/posix-functions/vprintf.texi: Likewise.
16163         * doc/posix-functions/vsnprintf.texi: Likewise.
16164         * doc/posix-functions/vsprintf.texi: Likewise.
16165         * doc/glibc-functions/obstack_printf.texi: Likewise.
16166         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
16167
16168 2009-02-28  Bruno Haible  <bruno@clisp.org>
16169
16170         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
16171         Reported by Loïc Minier <lool@dooz.org>.
16172
16173 2009-02-27  Bruno Haible  <bruno@clisp.org>
16174
16175         * gnulib-tool (func_import): Make the sed expression used to create the
16176         sed script for updating the .gitignore file POSIX compliant.
16177         Reported by Eric Blake.
16178
16179 2009-02-27  Bruno Haible  <bruno@clisp.org>
16180
16181         * gnulib-tool (sed): Don't alias as "sed --posix".
16182         Reported by Eric Blake.
16183
16184 2009-02-27  Bruno Haible  <bruno@clisp.org>
16185
16186         Avoid test link errors.
16187         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
16188         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
16189         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
16190         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
16191         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16192
16193 2009-02-27  Bruno Haible  <bruno@clisp.org>
16194
16195         Avoid spurious "(cached)" in configure output.
16196         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
16197         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
16198         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
16199         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
16200         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
16201         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
16202         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
16203         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
16204         Reported by Eric Blake.
16205
16206 2009-02-27  Eric Blake  <ebb9@byu.net>
16207
16208         printf: fix regression in previous patch
16209         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
16210
16211 2009-02-27  Bruno Haible  <bruno@clisp.org>
16212
16213         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
16214         value.
16215         * lib/stdint.in.h: Likewise.
16216         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
16217
16218 2009-02-27  Eric Blake  <ebb9@byu.net>
16219
16220         doc: mention more functions added in cygwin 1.7.0
16221         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
16222         addition.
16223         * doc/posix-functions/open_wmemstream.texi: Likewise.
16224         * doc/posix-functions/wcsnlen.texi: Likewise.
16225         * doc/posix-functions/wcsnrtombs.texi: Likewise.
16226         * doc/posix-functions/wcstod.texi: Likewise.
16227         * doc/posix-functions/wcstof.texi: Likewise.
16228         * doc/posix-functions/wcstoimax.texi: Likewise.
16229         * doc/posix-functions/wcstok.texi: Likewise.
16230         * doc/posix-functions/wcstoumax.texi: Likewise.
16231
16232         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
16233         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
16234         * doc/posix-functions/fprintf.texi: Update.
16235         * doc/posix-functions/printf.texi: Update.
16236         * doc/posix-functions/snprintf.texi: Update.
16237         * doc/posix-functions/sprintf.texi: Update.
16238         * doc/posix-functions/vfprintf.texi: Update.
16239         * doc/posix-functions/vprintf.texi: Update.
16240         * doc/posix-functions/vsnprintf.texi: Update.
16241         * doc/posix-functions/vsprintf.texi: Update.
16242         * doc/glibc-functions/obstack_printf.texi: Update.
16243         * doc/glibc-functions/obstack_vprintf.texi: Update.
16244
16245 2009-02-26  Eric Blake  <ebb9@byu.net>
16246
16247         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
16248         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
16249         compilation bug by using runtime conversion.
16250         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
16251         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
16252         * modules/ceill-tests (Files): Use nan.h.
16253         * modules/floorl-tests (Files): Likewise.
16254         * modules/frexpl-tests (Files): Likewise.
16255         * modules/isnanl-tests (Files): Likewise.
16256         * modules/ldexpl-tests (Files): Likewise.
16257         * modules/roundl-tests (Files): Likewise.
16258         * modules/truncl-tests (Files): Likewise.
16259         * tests/test-ceill.c (main): Use a working NaN.
16260         * tests/test-floorl.c (main): Likewise.
16261         * tests/test-frexpl.c (main): Likewise.
16262         * tests/test-isnan.c (test_long_double): Likewise.
16263         * tests/test-isnanl.h (main): Likewise.
16264         * tests/test-ldexpl.h (main): Likewise.
16265         * tests/test-roundl.h (main): Likewise.
16266         * tests/test-truncl.h (main): Likewise.
16267         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
16268
16269 2009-02-26  Eric Blake  <ebb9@byu.net>
16270             Bruno Haible  <bruno@clisp.org>
16271
16272         Work around a *printf bug with %ls on Solaris.
16273         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
16274         precision is specified, sprintf stops converting the wide string
16275         argument when the number of bytes that have been produced by this
16276         conversion equals or exceeds the precision.
16277         * doc/posix-functions/fprintf.texi: Update.
16278         * doc/posix-functions/printf.texi: Update.
16279         * doc/posix-functions/snprintf.texi: Update.
16280         * doc/posix-functions/sprintf.texi: Update.
16281         * doc/posix-functions/vfprintf.texi: Update.
16282         * doc/posix-functions/vprintf.texi: Update.
16283         * doc/posix-functions/vsnprintf.texi: Update.
16284         * doc/posix-functions/vsprintf.texi: Update.
16285         * doc/glibc-functions/obstack_printf.texi: Update.
16286         * doc/glibc-functions/obstack_vprintf.texi: Update.
16287
16288 2009-02-26  Eric Blake  <ebb9@byu.net>
16289
16290         stdlib: favor compiler check of random.h
16291         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
16292         to avoid an ObjC random.h installed by Swarm.
16293
16294 2009-02-26  Bruno Haible  <bruno@clisp.org>
16295
16296         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
16297         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
16298         Reported by Gary V. Vaughan <gary@gnu.org>.
16299
16300 2009-02-26  Bruno Haible  <bruno@clisp.org>
16301
16302         Fix *printf behaviour regarding the %ls directive.
16303         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
16304         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
16305         NEED_PRINTF_DIRECTIVE_LS.
16306         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
16307         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
16308         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
16309         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
16310         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
16311         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
16312         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
16313         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
16314         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
16315         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
16316         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
16317         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
16318         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
16319         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
16320         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
16321         * doc/posix-functions/fprintf.texi: Update.
16322         * doc/posix-functions/printf.texi: Update.
16323         * doc/posix-functions/snprintf.texi: Update.
16324         * doc/posix-functions/sprintf.texi: Update.
16325         * doc/posix-functions/vfprintf.texi: Update.
16326         * doc/posix-functions/vprintf.texi: Update.
16327         * doc/posix-functions/vsnprintf.texi: Update.
16328         * doc/posix-functions/vsprintf.texi: Update.
16329         * doc/glibc-functions/obstack_printf.texi: Update.
16330         * doc/glibc-functions/obstack_vprintf.texi: Update.
16331         Reported by Eric Blake.
16332
16333 2009-02-25  Bruno Haible  <bruno@clisp.org>
16334
16335         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
16336         with known value.
16337         Reported by Gary V. Vaughan <gary@gnu.org>.
16338
16339 2009-02-25  Bruno Haible  <bruno@clisp.org>
16340
16341         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
16342         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
16343         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
16344         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
16345         Reported by Gary V. Vaughan <gary@gnu.org>.
16346
16347 2009-02-25  Bruno Haible  <bruno@clisp.org>
16348
16349         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
16350         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
16351         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
16352         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
16353         Reported by Gary V. Vaughan <gary@gnu.org>.
16354
16355 2009-02-25  Eric Blake  <ebb9@byu.net>
16356
16357         tests: skip fseek/ftell tests if ungetc is broken
16358         * m4/ungetc.m4: New file.
16359         * modules/fseek-tests: Split test, so ungetc dependency is
16360         separate from rest of test.
16361         * modules/fseeko-tests: Likewise.
16362         * modules/ftell-tests: Likewise.
16363         * modules/ftello-tests: Likewise.
16364         * tests/test-fseek.c (main): Isolate ungetc dependency.
16365         * tests/test-fseeko.c (main): Likewise.
16366         * tests/test-ftell.c (main): Likewise.
16367         * tests/test-ftello.c (main): Likewise.
16368         * tests/test-fseek2.sh: New file.
16369         * tests/test-fseeko2.sh: Likewise.
16370         * tests/test-ftell2.sh: Likewise.
16371         * tests/test-ftello2.sh: Likewise.
16372
16373 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
16374
16375         test-getaddrinfo: fix usage of skip return code 77
16376         * tests/test-gettaddrinfo.c: Return skip code 77 only
16377         for first occurance of skip (4x77 is not 77)
16378
16379 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
16380
16381         strtod: avoid C99 decl-after-statement
16382         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
16383
16384 2009-02-24  Eric Blake  <ebb9@byu.net>
16385
16386         strtod: detect HP-UX 11.31 bug
16387         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
16388         Reported by Gary V. Vaughan.
16389
16390 2009-02-23  Bruno Haible  <bruno@clisp.org>
16391
16392         Fix invalid read past end of memory block.
16393         * lib/vasnprintf.c (DCHAR_SET): Define.
16394         (local_wcslen): Define only when needed.
16395         (local_strnlen, local_wcsnlen): New functions.
16396         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
16397         directives that involve a conversion ourselves.
16398         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
16399         wcsnlen, mbrtowc, wcrtomb.
16400         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
16401         * tests/test-vasprintf-posix.c (test_function): Likewise.
16402         * tests/test-snprintf-posix.h (test_function): Likewise.
16403         * tests/test-sprintf-posix.h (test_function): Likewise.
16404         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16405
16406 2009-02-22  Bruno Haible  <bruno@clisp.org>
16407
16408         Implement new clarified decomposition of Hangul syllables.
16409         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
16410         of type LTV, return only a pairwise decomposition.
16411         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
16412         Likewise.
16413         * tests/uninorm/test-decomposition.c (main): Updated expected result.
16414         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
16415         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
16416
16417 2009-02-22  Bruno Haible  <bruno@clisp.org>
16418
16419         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
16420         zero-length results and shrink excess allocated memory.
16421         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
16422         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
16423         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
16424         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
16425         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
16426         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
16427         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
16428         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
16429         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
16430         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
16431         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
16432         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
16433
16434 2009-02-21  Bruno Haible  <bruno@clisp.org>
16435
16436         * doc/gnulib.texi: Include safe-alloc.texi earlier.
16437         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
16438         spaces after a period. Put a space between a macro name and its
16439         argument list. Trivial rewordings.
16440         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
16441         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
16442         (main): Return 0 explicitly.
16443
16444 2009-02-21  Bruno Haible  <bruno@clisp.org>
16445
16446         Tests for module 'uninorm/filter'.
16447         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
16448         * modules/uninorm/filter-tests: New file.
16449
16450         New module 'uninorm/filter'.
16451         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
16452         uninorm_filter_flush, uninorm_filter_free): New declarations.
16453         * lib/uninorm/uninorm-filter.c: New file.
16454         * modules/uninorm/filter: New file.
16455
16456 2009-02-21  Bruno Haible  <bruno@clisp.org>
16457
16458         Tests for module 'uninorm/nfkc'.
16459         * tests/uninorm/test-nfkc.c: New file.
16460         * tests/uninorm/test-u8-nfkc.c: New file.
16461         * tests/uninorm/test-u16-nfkc.c: New file.
16462         * tests/uninorm/test-u32-nfkc.c: New file.
16463         * tests/uninorm/test-u32-nfkc-big.sh: New file.
16464         * tests/uninorm/test-u32-nfkc-big.c: New file.
16465         * modules/uninorm/nfkc-tests: New file.
16466
16467         New module 'uninorm/nfkc'.
16468         * lib/uninorm/nfkc.c: New file.
16469         * modules/uninorm/nfkc: New file.
16470
16471         Tests for module 'uninorm/nfkd'.
16472         * tests/uninorm/test-nfkd.c: New file.
16473         * tests/uninorm/test-u8-nfkd.c: New file.
16474         * tests/uninorm/test-u16-nfkd.c: New file.
16475         * tests/uninorm/test-u32-nfkd.c: New file.
16476         * tests/uninorm/test-u32-nfkd-big.sh: New file.
16477         * tests/uninorm/test-u32-nfkd-big.c: New file.
16478         * modules/uninorm/nfkd-tests: New file.
16479
16480         New module 'uninorm/nfkd'.
16481         * lib/uninorm/nfkd.c: New file.
16482         * modules/uninorm/nfkd: New file.
16483
16484         Tests for module 'uninorm/nfc'.
16485         * tests/uninorm/test-nfc.c: New file.
16486         * tests/uninorm/test-u8-nfc.c: New file.
16487         * tests/uninorm/test-u16-nfc.c: New file.
16488         * tests/uninorm/test-u32-nfc.c: New file.
16489         * tests/uninorm/test-u32-nfc-big.sh: New file.
16490         * tests/uninorm/test-u32-nfc-big.c: New file.
16491         * modules/uninorm/nfc-tests: New file.
16492
16493         New module 'uninorm/nfc'.
16494         * lib/uninorm/nfc.c: New file.
16495         * modules/uninorm/nfc: New file.
16496
16497         Tests for module 'uninorm/nfd'.
16498         * tests/uninorm/test-nfd.c: New file.
16499         * tests/uninorm/test-u8-nfd.c: New file.
16500         * tests/uninorm/test-u16-nfd.c: New file.
16501         * tests/uninorm/test-u32-nfd.c: New file.
16502         * tests/uninorm/test-u32-nfd-big.sh: New file.
16503         * tests/uninorm/test-u32-nfd-big.c: New file.
16504         * tests/uninorm/test-u32-normalize-big.h: New file.
16505         * tests/uninorm/test-u32-normalize-big.c: New file.
16506         * tests/uninorm/NormalizationTest.txt: New file, created from
16507         Unicode 5.1.0 NormalizationTest.txt.
16508         * modules/uninorm/nfd-tests: New file.
16509
16510         New module 'uninorm/nfd'.
16511         * lib/uninorm/nfd.c: New file.
16512         * modules/uninorm/nfd: New file.
16513
16514         New module 'uninorm/u32-normalize'.
16515         * lib/uninorm/u32-normalize.c: New file.
16516         * modules/uninorm/u32-normalize: New file.
16517
16518         New module 'uninorm/u16-normalize'.
16519         * lib/uninorm/u16-normalize.c: New file.
16520         * modules/uninorm/u16-normalize: New file.
16521
16522         New module 'uninorm/u8-normalize'.
16523         * lib/uninorm/u8-normalize.c: New file.
16524         * lib/uninorm/normalize-internal.h: New file.
16525         * lib/uninorm/u-normalize-internal.h: New file.
16526         * modules/uninorm/u8-normalize: New file.
16527
16528         New module 'uninorm/decompose-internal'.
16529         * lib/uninorm/decompose-internal.c: New file.
16530         * modules/uninorm/decompose-internal: New file.
16531
16532         Tests for module 'uninorm/composition'.
16533         * tests/uninorm/test-composition.c: New file.
16534         * modules/uninorm/composition-tests: New file.
16535
16536         New module 'uninorm/composition'.
16537         * lib/uninorm/composition.c: New file.
16538         * lib/uninorm/composition-table.gperf: New file, generated by
16539         gen-uni-tables.
16540         * modules/uninorm/composition: New file.
16541
16542         Tests for module 'uninorm/compat-decomposition'.
16543         * tests/uninorm/test-compat-decomposition.c: New file.
16544         * modules/uninorm/compat-decomposition-tests: New file.
16545
16546         New module 'uninorm/compat-decomposition'.
16547         * lib/uninorm/decompose-internal.h: New file.
16548         * lib/uninorm/compat-decomposition.c: New file.
16549         * modules/uninorm/compat-decomposition: New file.
16550
16551         Tests for module 'uninorm/canonical-decomposition'.
16552         * tests/uninorm/test-canonical-decomposition.c: New file.
16553         * modules/uninorm/canonical-decomposition-tests: New file.
16554
16555         New module 'uninorm/canonical-decomposition'.
16556         * lib/uninorm/canonical-decomposition.c: New file.
16557         * modules/uninorm/canonical-decomposition: New file.
16558
16559         Tests for module 'uninorm/decomposition'.
16560         * tests/uninorm/test-decomposition.c: New file.
16561         * modules/uninorm/decomposition-tests: New file.
16562
16563         New module 'uninorm/decomposition'.
16564         * lib/uninorm/decomposition.c: New file.
16565         * modules/uninorm/decomposition: New file.
16566
16567         New module 'uninorm/decomposition-table'.
16568         * lib/uninorm/decomposition-table.h: New file.
16569         * lib/uninorm/decomposition-table.c: New file.
16570         * lib/uninorm/decomposition-table1.h: New file, generated by
16571         gen-uni-tables.
16572         * lib/uninorm/decomposition-table2.h: New file, generated by
16573         gen-uni-tables.
16574         * modules/uninorm/decomposition-table: New file.
16575
16576         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
16577         (UC_DECOMP_*): New enumeration items.
16578         (get_decomposition): New function.
16579         (struct decomp_table): New type.
16580         (output_decomposition, output_decomposition_tables): New functions.
16581         (unicode_composition_exclusions): New variable.
16582         (fill_composition_exclusions, debug_output_composition_tables): New
16583         functions.
16584         (main): Accept one more argument. Invoke fill_composition_exclusions.
16585         Output decomposition and composition tables.
16586
16587         New module 'uninorm/base'.
16588         * lib/uninorm.h: New file.
16589         * lib/unictype.h: Update comment.
16590         * modules/uninorm/base: New file.
16591
16592 2009-02-21  David Lutterkort  <lutter@redhat.com>
16593
16594         Tests for module 'safe-alloc'.
16595         * tests/test-safe-alloc.c: New file.
16596         * modules/safe-alloc-tests: New file.
16597
16598         New module 'safe-alloc'.
16599         * lib/safe-alloc.h: New file.
16600         * lib/safe-alloc.c: New file.
16601         * m4/safe-alloc.m4: New file.
16602         * modules/safe-alloc: New file.
16603         * doc/safe-alloc.texi: New file.
16604         * doc/gnulib.texi: Include it.
16605         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
16606         safe-alloc.
16607
16608 2009-02-18  Bruno Haible  <bruno@clisp.org>
16609
16610         Fix link error on non-glibc systems.
16611         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
16612         variable.
16613         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16614
16615 2009-02-18  Jim Meyering  <meyering@redhat.com>
16616
16617         fts: avoid used-uninitialized error due to recent change
16618         * lib/fts.c (fts_read): Guard uses of the new member,
16619         parent->fts_n_dirs_remaining, since it's not relevant for
16620         the parent of a directory specified on the command-line.
16621
16622 2009-02-17  James Youngman  <jay@gnu.org>
16623             Bruno Haible  <bruno@clisp.org>
16624
16625         * m4/include_next.m4: Reformulate comment.
16626
16627 2009-02-16  Jim Meyering  <meyering@redhat.com>
16628
16629         fts: add #if guards so that the fts_lgpl module still builds
16630         * lib/fts.c: Guard just-added hash-table-using parts with
16631         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
16632         Reported by Simon Josefsson.
16633
16634 2009-02-15  Bruno Haible  <bruno@clisp.org>
16635
16636         * modules/array-mergesort-tests: New file.
16637         * tests/test-array-mergesort.c: New file.
16638
16639         New module 'array-mergesort'.
16640         * modules/array-mergesort: New file.
16641         * lib/array-mergesort.h: New file.
16642
16643 2009-02-15  Bruno Haible  <bruno@clisp.org>
16644
16645         Fix 2009-02-07 commit.
16646         * lib/gen-uni-tables.c (output_predicate, output_category,
16647         output_combclass, output_bidi_category, output_decimal_digit,
16648         output_digit, output_numeric, output_mirror, output_scripts,
16649         output_ident_category, output_simple_mapping): Fix format directives.
16650         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
16651
16652 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
16653
16654         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
16655         fixes are available from IBM.
16656
16657 2009-02-13  Jim Meyering  <meyering@redhat.com>
16658
16659         fts: arrange not to stat non-directories in more cases
16660         This makes GNU find (when it doesn't need to stat each file)
16661         *much* more efficient at traversing reiserfs file systems.
16662         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
16663         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
16664         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
16665         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
16666         (leaf_optimization_applies): New function.
16667         (LCO_hash, LCO_compare): New helper functions.
16668         (link_count_optimize_ok): New function.
16669         (fts_stat): Initialize new member (if dir).
16670         (fts_read): Decrement parent's fts_n_dirs_remaining count if
16671         we've just stat'ed a directory.  Skip the stat call when possible.
16672         ---
16673         Note this AFS-related exchange:
16674         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
16675         and note find's pioctl call in find/fstype.c.
16676         But that is necessary only if you want to enable the
16677         optimization for AFS, and for now, I don't.
16678
16679         fts: move a function definition "up" (no semantic change)
16680         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
16681         "up" to precede upcoming use of a related function.
16682
16683 2009-02-11  Jim Meyering  <meyering@redhat.com>
16684
16685         fts: correct internal computation of nlinks (optimization-related)
16686         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
16687         whether the current entry is a directory, so don't test it.
16688
16689 2009-02-10  Bruno Haible  <bruno@clisp.org>
16690
16691         Tests for module 'uniwbrk/ulc-wordbreaks'.
16692         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
16693         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
16694         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
16695
16696         Tests for module 'uniwbrk/u32-wordbreaks'.
16697         * modules/uniwbrk/u32-wordbreaks-tests: New file.
16698         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
16699
16700         Tests for module 'uniwbrk/u16-wordbreaks'.
16701         * modules/uniwbrk/u16-wordbreaks-tests: New file.
16702         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
16703
16704         Tests for module 'uniwbrk/u8-wordbreaks'.
16705         * modules/uniwbrk/u8-wordbreaks-tests: New file.
16706         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
16707
16708 2009-02-10  Bruno Haible  <bruno@clisp.org>
16709
16710         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
16711         property.
16712         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
16713         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
16714         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
16715
16716 2009-02-10  Simon Josefsson  <simon@josefsson.org>
16717
16718         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
16719         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
16720
16721 2009-02-10  Bruno Haible  <bruno@clisp.org>
16722
16723         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
16724         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
16725         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
16726         * lib/unilbrk/u8-possible-linebreaks.c: Update.
16727         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
16728         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
16729
16730 2009-02-09  Simon Josefsson  <simon@josefsson.org>
16731
16732         * lib/sockets.h (gl_fd_to_handle): New function.
16733
16734         * tests/test-sockets.c: Call gl_fd_to_handle.
16735
16736 2009-02-09  Bruno Haible  <bruno@clisp.org>
16737
16738         * doc/havelib.texi: Document the conventions on bi-arch systems.
16739
16740 2009-02-08  Bruno Haible  <bruno@clisp.org>
16741
16742         Document the AC_LIB_LINKFLAGS macro.
16743         * doc/havelib.texi: New file, mostly written on 2005-05-24.
16744         * doc/gnulib.texi: Include it.
16745
16746 2009-02-08  Bruno Haible  <bruno@clisp.org>
16747
16748         Fix wrong order of sections, compared to TOC.
16749         * doc/gnulib.texi: Include relocatable-maint.texi after the
16750         "Regular expressions" node, not before.
16751
16752 2009-02-08  Bruno Haible  <bruno@clisp.org>
16753
16754         Tests for module 'unicase/totitle'.
16755         * modules/unicase/totitle-tests: New file.
16756
16757         Tests for module 'unicase/tolower'.
16758         * modules/unicase/tolower-tests: New file.
16759
16760         Tests for module 'unicase/toupper'.
16761         * modules/unicase/toupper-tests: New file.
16762         * tests/unicase/test-mapping-part1.h: New file.
16763         * tests/unicase/test-mapping-part2.h: New file.
16764
16765         New module 'unicase/totitle'.
16766         * modules/unicase/totitle: New file.
16767         * lib/unicase/totitle.c: New file.
16768
16769         New module 'unicase/tolower'.
16770         * modules/unicase/tolower: New file.
16771         * lib/unicase/tolower.c: New file.
16772
16773         New module 'unicase/toupper'.
16774         * modules/unicase/toupper: New file.
16775         * lib/unicase/toupper.c: New file.
16776         * lib/unicase/simple-mapping.h: New file.
16777
16778         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
16779         (mapping_table): New structure.
16780         (output_simple_mapping): New function.
16781         (main): Invoke output_simple_mapping_test and output_simple_mapping.
16782         * modules/gen-uni-tables (Description): Update.
16783         * lib/unicase/toupper.h: New file, automatically generated by
16784         gen-uni-tables.
16785         * lib/unicase/tolower.h: New file, automatically generated by
16786         gen-uni-tables.
16787         * lib/unicase/totitle.h: New file, automatically generated by
16788         gen-uni-tables.
16789         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
16790         gen-uni-tables.
16791         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
16792         gen-uni-tables.
16793         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
16794         gen-uni-tables.
16795
16796         New module 'unicase/base'.
16797         * modules/unicase/base: New file.
16798         * lib/unicase.h: New file.
16799
16800 2009-02-08  Bruno Haible  <bruno@clisp.org>
16801
16802         New module 'uniwbrk/ulc-wordbreaks'.
16803         * modules/uniwbrk/ulc-wordbreaks: New file.
16804         * lib/uniwbrk/ulc-wordbreaks.c: New file.
16805
16806         New module 'uniwbrk/u32-wordbreaks'.
16807         * modules/uniwbrk/u32-wordbreaks: New file.
16808         * lib/uniwbrk/u32-wordbreaks.c: New file.
16809
16810         New module 'uniwbrk/u16-wordbreaks'.
16811         * modules/uniwbrk/u16-wordbreaks: New file.
16812         * lib/uniwbrk/u16-wordbreaks.c: New file.
16813
16814         New module 'uniwbrk/u8-wordbreaks'.
16815         * modules/uniwbrk/u8-wordbreaks: New file.
16816         * lib/uniwbrk/u8-wordbreaks.c: New file.
16817         * lib/uniwbrk/u-wordbreaks.h: New file.
16818
16819         New module 'uniwbrk/table'.
16820         * modules/uniwbrk/table: New file.
16821         * lib/uniwbrk/wbrktable.h: New file.
16822         * lib/uniwbrk/wbrktable.c: New file.
16823
16824         New module 'uniwbrk/wordbreak-property'.
16825         * modules/uniwbrk/wordbreak-property: New file.
16826         * lib/uniwbrk/wordbreak-property.c: New file.
16827
16828         * lib/gen-uni-tables.c (WBP_*): New enum items.
16829         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
16830         (unicode_org_wbp): New variable.
16831         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
16832         New functions.
16833         (wbp_table): New structure.
16834         (output_wbp, output_wbrk_tables): New functions.
16835         (main): Accept additional argument. Invoke fill_org_wbp,
16836         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
16837         output_wbrk_tables.
16838         * modules/gen-uni-tables (Description): Update.
16839         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
16840         gen-uni-tables.
16841
16842         New module 'uniwbrk/base'.
16843         * modules/uniwbrk/base: New file.
16844         * lib/uniwbrk.h: New file.
16845
16846 2009-02-08  Bruno Haible  <bruno@clisp.org>
16847
16848         Update to Unicode 5.1.0.
16849         * lib/gen-uni-tables.c (is_property_alphabetic): Include
16850         U+2185..U+2188.
16851         (is_property_default_ignorable_code_point): Don't include characters
16852         of category Cc or Cs and not-a-characters.
16853         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
16854         U+0D79, U+109E, U+109F, U+A60C.
16855         * lib/unictype/bidi_of.h: Regenerated.
16856         * lib/unictype/blocks.h: Regenerated.
16857         * lib/unictype/categ_C.h: Regenerated.
16858         * lib/unictype/categ_Cf.h: Regenerated.
16859         * lib/unictype/categ_Cn.h: Regenerated.
16860         * lib/unictype/categ_L.h: Regenerated.
16861         * lib/unictype/categ_Ll.h: Regenerated.
16862         * lib/unictype/categ_Lm.h: Regenerated.
16863         * lib/unictype/categ_Lo.h: Regenerated.
16864         * lib/unictype/categ_Lu.h: Regenerated.
16865         * lib/unictype/categ_M.h: Regenerated.
16866         * lib/unictype/categ_Mc.h: Regenerated.
16867         * lib/unictype/categ_Me.h: Regenerated.
16868         * lib/unictype/categ_Mn.h: Regenerated.
16869         * lib/unictype/categ_N.h: Regenerated.
16870         * lib/unictype/categ_Nd.h: Regenerated.
16871         * lib/unictype/categ_Nl.h: Regenerated.
16872         * lib/unictype/categ_No.h: Regenerated.
16873         * lib/unictype/categ_P.h: Regenerated.
16874         * lib/unictype/categ_Pd.h: Regenerated.
16875         * lib/unictype/categ_Pe.h: Regenerated.
16876         * lib/unictype/categ_Pf.h: Regenerated.
16877         * lib/unictype/categ_Pi.h: Regenerated.
16878         * lib/unictype/categ_Po.h: Regenerated.
16879         * lib/unictype/categ_Ps.h: Regenerated.
16880         * lib/unictype/categ_S.h: Regenerated.
16881         * lib/unictype/categ_Sk.h: Regenerated.
16882         * lib/unictype/categ_Sm.h: Regenerated.
16883         * lib/unictype/categ_So.h: Regenerated.
16884         * lib/unictype/categ_of.h: Regenerated.
16885         * lib/unictype/combining.h: Regenerated.
16886         * lib/unictype/ctype_alnum.h: Regenerated.
16887         * lib/unictype/ctype_alpha.h: Regenerated.
16888         * lib/unictype/ctype_graph.h: Regenerated.
16889         * lib/unictype/ctype_lower.h: Regenerated.
16890         * lib/unictype/ctype_print.h: Regenerated.
16891         * lib/unictype/ctype_punct.h: Regenerated.
16892         * lib/unictype/ctype_upper.h: Regenerated.
16893         * lib/unictype/decdigit.h: Regenerated.
16894         * lib/unictype/digit.h: Regenerated.
16895         * lib/unictype/mirror.h: Regenerated.
16896         * lib/unictype/numeric.h: Regenerated.
16897         * lib/unictype/pr_alphabetic.h: Regenerated.
16898         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
16899         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
16900         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
16901         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
16902         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
16903         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
16904         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
16905         * lib/unictype/pr_combining.h: Regenerated.
16906         * lib/unictype/pr_dash.h: Regenerated.
16907         * lib/unictype/pr_decimal_digit.h: Regenerated.
16908         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
16909         * lib/unictype/pr_deprecated.h: Regenerated.
16910         * lib/unictype/pr_diacritic.h: Regenerated.
16911         * lib/unictype/pr_extender.h: Regenerated.
16912         * lib/unictype/pr_format_control.h: Regenerated.
16913         * lib/unictype/pr_grapheme_base.h: Regenerated.
16914         * lib/unictype/pr_grapheme_extend.h: Regenerated.
16915         * lib/unictype/pr_grapheme_link.h: Regenerated.
16916         * lib/unictype/pr_id_continue.h: Regenerated.
16917         * lib/unictype/pr_id_start.h: Regenerated.
16918         * lib/unictype/pr_ideographic.h: Regenerated.
16919         * lib/unictype/pr_ignorable_control.h: Regenerated.
16920         * lib/unictype/pr_lowercase.h: Regenerated.
16921         * lib/unictype/pr_math.h: Regenerated.
16922         * lib/unictype/pr_numeric.h: Regenerated.
16923         * lib/unictype/pr_other_alphabetic.h: Regenerated.
16924         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
16925         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
16926         * lib/unictype/pr_other_id_continue.h: Regenerated.
16927         * lib/unictype/pr_other_lowercase.h: Regenerated.
16928         * lib/unictype/pr_other_math.h: Regenerated.
16929         * lib/unictype/pr_punctuation.h: Regenerated.
16930         * lib/unictype/pr_sentence_terminal.h: Regenerated.
16931         * lib/unictype/pr_soft_dotted.h: Regenerated.
16932         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
16933         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
16934         * lib/unictype/pr_unified_ideograph.h: Regenerated.
16935         * lib/unictype/pr_uppercase.h: Regenerated.
16936         * lib/unictype/pr_xid_continue.h: Regenerated.
16937         * lib/unictype/pr_xid_start.h: Regenerated.
16938         * lib/unictype/pr_zero_width.h: Regenerated.
16939         * lib/unictype/scripts.h: Regenerated.
16940         * lib/unictype/scripts_byname.gperf: Regenerated.
16941         * lib/unictype/sy_java_ident.h: Regenerated.
16942         * lib/unilbrk/lbrkprop1.h: Regenerated.
16943         * lib/unilbrk/lbrkprop2.h: Regenerated.
16944         * tests/unictype/test-categ_C.c: Regenerated.
16945         * tests/unictype/test-categ_Cf.c: Regenerated.
16946         * tests/unictype/test-categ_Cn.c: Regenerated.
16947         * tests/unictype/test-categ_L.c: Regenerated.
16948         * tests/unictype/test-categ_Ll.c: Regenerated.
16949         * tests/unictype/test-categ_Lm.c: Regenerated.
16950         * tests/unictype/test-categ_Lo.c: Regenerated.
16951         * tests/unictype/test-categ_Lu.c: Regenerated.
16952         * tests/unictype/test-categ_M.c: Regenerated.
16953         * tests/unictype/test-categ_Mc.c: Regenerated.
16954         * tests/unictype/test-categ_Me.c: Regenerated.
16955         * tests/unictype/test-categ_Mn.c: Regenerated.
16956         * tests/unictype/test-categ_N.c: Regenerated.
16957         * tests/unictype/test-categ_Nd.c: Regenerated.
16958         * tests/unictype/test-categ_Nl.c: Regenerated.
16959         * tests/unictype/test-categ_No.c: Regenerated.
16960         * tests/unictype/test-categ_P.c: Regenerated.
16961         * tests/unictype/test-categ_Pd.c: Regenerated.
16962         * tests/unictype/test-categ_Pe.c: Regenerated.
16963         * tests/unictype/test-categ_Pf.c: Regenerated.
16964         * tests/unictype/test-categ_Pi.c: Regenerated.
16965         * tests/unictype/test-categ_Po.c: Regenerated.
16966         * tests/unictype/test-categ_Ps.c: Regenerated.
16967         * tests/unictype/test-categ_S.c: Regenerated.
16968         * tests/unictype/test-categ_Sk.c: Regenerated.
16969         * tests/unictype/test-categ_Sm.c: Regenerated.
16970         * tests/unictype/test-categ_So.c: Regenerated.
16971         * tests/unictype/test-ctype_alnum.c: Regenerated.
16972         * tests/unictype/test-ctype_alpha.c: Regenerated.
16973         * tests/unictype/test-ctype_graph.c: Regenerated.
16974         * tests/unictype/test-ctype_lower.c: Regenerated.
16975         * tests/unictype/test-ctype_print.c: Regenerated.
16976         * tests/unictype/test-ctype_punct.c: Regenerated.
16977         * tests/unictype/test-ctype_upper.c: Regenerated.
16978         * tests/unictype/test-decdigit.h: Regenerated.
16979         * tests/unictype/test-digit.h: Regenerated.
16980         * tests/unictype/test-numeric.h: Regenerated.
16981         * tests/unictype/test-pr_alphabetic.c: Regenerated.
16982         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
16983         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
16984         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
16985         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
16986         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
16987         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
16988         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
16989         * tests/unictype/test-pr_combining.c: Regenerated.
16990         * tests/unictype/test-pr_dash.c: Regenerated.
16991         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
16992         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
16993         * tests/unictype/test-pr_deprecated.c: Regenerated.
16994         * tests/unictype/test-pr_diacritic.c: Regenerated.
16995         * tests/unictype/test-pr_extender.c: Regenerated.
16996         * tests/unictype/test-pr_format_control.c: Regenerated.
16997         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
16998         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
16999         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
17000         * tests/unictype/test-pr_id_continue.c: Regenerated.
17001         * tests/unictype/test-pr_id_start.c: Regenerated.
17002         * tests/unictype/test-pr_ideographic.c: Regenerated.
17003         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
17004         * tests/unictype/test-pr_lowercase.c: Regenerated.
17005         * tests/unictype/test-pr_math.c: Regenerated.
17006         * tests/unictype/test-pr_numeric.c: Regenerated.
17007         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
17008         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
17009         Regenerated.
17010         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
17011         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
17012         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
17013         * tests/unictype/test-pr_other_math.c: Regenerated.
17014         * tests/unictype/test-pr_punctuation.c: Regenerated.
17015         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
17016         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
17017         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
17018         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
17019         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
17020         * tests/unictype/test-pr_uppercase.c: Regenerated.
17021         * tests/unictype/test-pr_xid_continue.c: Regenerated.
17022         * tests/unictype/test-pr_xid_start.c: Regenerated.
17023         * tests/unictype/test-pr_zero_width.c: Regenerated.
17024
17025         Update to Unicode 5.1.0.
17026         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
17027         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
17028         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
17029         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
17030         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
17031         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
17032         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
17033         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
17034         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
17035         (nonspacing_table_ind): Update.
17036         * tests/uniwidth/test-uc_width2.sh: Update expected result.
17037
17038         Update to Unicode 5.1.0.
17039         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
17040         code transform.
17041         * lib/uniname/uniname.c (unicode_character_name,
17042         unicode_name_character): Add the range 0x1Fxxx to the code transform.
17043         * lib/uniname/uninames.h: Regenerated.
17044         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
17045
17046 2009-02-07  Bruno Haible  <bruno@clisp.org>
17047
17048         Merge gen-ctype and gen-lbrk into a single program.
17049         * lib/gen-uni-tables.c: New file, incorporating
17050         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
17051         Add directory prefixes to the names of the generated files.
17052         * lib/unictype/gen-ctype.c: Remove file.
17053         * lib/unilbrk/gen-lbrk.c: Remove file.
17054         * modules/gen-uni-tables: New file.
17055         * modules/unictype/gen-ctype: Remove file.
17056         * modules/unilbrk/gen-lbrk: Remove file.
17057
17058 2009-02-07  Bruno Haible  <bruno@clisp.org>
17059
17060         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
17061
17062         New module 'unistr/u32-strcoll'.
17063         * modules/unistr/u32-strcoll: New file.
17064         * lib/unistr/u32-strcoll.c: New file.
17065
17066         New module 'unistr/u16-strcoll'.
17067         * modules/unistr/u16-strcoll: New file.
17068         * lib/unistr/u16-strcoll.c: New file.
17069
17070         New module 'unistr/u8-strcoll'.
17071         * modules/unistr/u8-strcoll: New file.
17072         * lib/unistr/u8-strcoll.c: New file.
17073         * lib/unistr/u-strcoll.h: New file.
17074
17075 2009-02-07  Bruno Haible  <bruno@clisp.org>
17076
17077         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
17078         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
17079         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
17080         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
17081         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
17082         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
17083
17084 2009-02-07  Bruno Haible  <bruno@clisp.org>
17085
17086         Make 64-bit clean.
17087         * lib/unictype/gen-ctype.c (output_predicate, output_category,
17088         output_combclass, output_bidi_category, output_decimal_digit,
17089         output_digit, output_numeric, output_mirror, output_scripts,
17090         output_ident_category): Use proper width specifier in format strings.
17091
17092 2009-02-07  Bruno Haible  <bruno@clisp.org>
17093
17094         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
17095         failure behaviour.
17096
17097 2009-02-07  Jim Meyering  <meyering@redhat.com>
17098
17099         regex: avoid compilation failure with upcoming gcc-4.4
17100         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
17101         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
17102         "... error: integer overflow in preprocessor expression".
17103
17104 2009-02-05  Ben Pfaff  <blp@gnu.org>
17105
17106         Fix link errors on Windows when close module is used.
17107         * modules/close: Add $(LIB_CLOSE) to Link section.
17108         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
17109         $(LIB_CLOSE) on Windows.
17110
17111 2009-02-05  Jim Meyering  <meyering@redhat.com>
17112
17113         still avoid unused-parameter warnings, but do it cleanly
17114         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
17115         (get_fs_usage): Cast to void instead.
17116         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
17117         (dev_from_mount_options, read_file_system_list): Cast to void.
17118         Prompted by Bruno Haible.
17119
17120 2009-02-04  Jim Meyering  <meyering@redhat.com>
17121
17122         fsusage.c: correct copyright year
17123         * lib/fsusage.c: Reflect year in which the change is pushed into
17124
17125         avoid misc. warnings
17126         * lib/fsusage.c (UNUSED_PARAM): Define.
17127         (get_fs_usage): Mark parameter "disk" as unused.
17128         * lib/getugroups.c (getgrent): Use "void" in prototype.
17129         * lib/mountlist.c: Mark unused parameters.
17130         (read_file_system_list): Declare a local with "const".
17131         * lib/nanosleep.c (getnow): Declare static.
17132         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
17133
17134         dirfd: set errno upon failure
17135         * lib/dirfd.c: Include <errno.h>.
17136         Set errno to ENOTSUP when returning -1.
17137         * modules/dirfd (Depends-on): Add errno.
17138         Suggested by John Kodis <kodis@comcast.net>.
17139
17140 2009-02-01  Bruno Haible  <bruno@clisp.org>
17141
17142         Don't assume sizeof (long) >= sizeof (void *).
17143         * lib/memcmp.c: Include stdint.h.
17144         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
17145         srcp2 to 'const byte *'.
17146         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
17147         types to uintptr_t.
17148         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
17149         * modules/memcmp (Depends-on): Add stdint.
17150         Reported by Ozkan Sezer <sezeroz@gmail.com>.
17151
17152 2009-01-30  Eric Blake  <ebb9@byu.net>
17153
17154         fix more require-before-expand issues
17155         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
17156         expand, AC_PROG_AWK.
17157         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
17158
17159 2009-01-28  Eric Blake  <ebb9@byu.net>
17160
17161         version-etc: use consistent URL formatting
17162         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
17163         Improve formatting.  Use fputs for string without %.
17164
17165 2009-01-28  Jim Meyering  <meyering@redhat.com>
17166
17167         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
17168         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
17169         "underquoted definition of NAME" from autoconf-2.59.
17170
17171 2009-01-28  Bruno Haible  <bruno@clisp.org>
17172
17173         * doc/gnulib.texi: Add "Obsolete modules" to index.
17174
17175 2009-01-28  Jim Meyering  <meyering@redhat.com>
17176
17177         useless-if-before-free: recognize more variants
17178         * build-aux/useless-if-before-free: Also recognize e.g.,
17179         if (NULL != p) free (p);
17180
17181 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
17182
17183         test-getaddrinfo: skip (don't fail) this test when there's no network
17184         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
17185         on the presumption that it means you lack network access.
17186
17187 2009-01-26  Jim Meyering  <meyering@redhat.com>
17188
17189         fflush: avoid warnings on modern systems
17190         * lib/fflush.c (rpl_fflush): Move declarations of locals,
17191         pos and result, into scopes where they're used.
17192
17193 2009-01-26  Eric Blake  <ebb9@byu.net>
17194
17195         Silence warning reintroduced by recent extensions patch.
17196         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
17197         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
17198         autoconf.
17199
17200         Backport improved autoconf semantics of AC_DEFUN_ONCE.
17201         * m4/00gnulib.m4: New file.
17202         * gnulib-tool (func_get_filelist): Always use it.
17203         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
17204         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
17205
17206 2009-01-25  Bruno Haible  <bruno@clisp.org>
17207
17208         Make test-quotearg work on MacOS X and AIX.
17209         * tests/test-quotearg.sh: New file.
17210         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
17211         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
17212         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
17213         include <libintl.h>.
17214         (fake_locale): Remove variable.
17215         (gettext, dgettext, dcgettext): Remove functions.
17216         (main): Instead of setting a fake locale, set a real locale. Call
17217         textdomain and bindtextdomain.
17218         * modules/quotearg-tests (Files): Add the new files.
17219         (Depends-on): Add gettext, setenv, unsetenv.
17220         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
17221         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
17222         Augment TESTS_ENVIRONMENT.
17223
17224 2009-01-25  Bruno Haible  <bruno@clisp.org>
17225
17226         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
17227         fr_FR.ISO8859-1 locale on MacOS X.
17228         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
17229         ja_JP.eucJP locale on MacOS X.
17230         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
17231         zh_CN.GB18030 locale on MacOS X.
17232
17233 2009-01-25  Bruno Haible  <bruno@clisp.org>
17234
17235         Avoid link errors on MacOS X 10.3.
17236         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
17237         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
17238
17239 2009-01-25  Bruno Haible  <bruno@clisp.org>
17240
17241         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
17242         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
17243         * modules/pipe (Files): Remove m4/posix_spawn.m4.
17244         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
17245         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
17246         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
17247         posix_spawnattr_init, posix_spawnattr_setsigmask,
17248         posix_spawnattr_setflags, posix_spawnattr_destroy.
17249
17250         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
17251         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
17252         * modules/execute (Files): Remove m4/posix_spawn.m4.
17253         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
17254         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
17255         posix_spawnattr_init, posix_spawnattr_setsigmask,
17256         posix_spawnattr_setflags, posix_spawnattr_destroy.
17257
17258 2009-01-25  Bruno Haible  <bruno@clisp.org>
17259
17260         * lib/glthread/threadlib.c: Include <stdlib.h>.
17261
17262 2009-01-25  Bruno Haible  <bruno@clisp.org>
17263
17264         * lib/glthread/threadlib.c (dummy): New declaration.
17265
17266 2009-01-25  Bruno Haible  <bruno@clisp.org>
17267
17268         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
17269         multibyte characters also for the GB18030 encoding. Don't crash when
17270         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
17271
17272 2009-01-25  Bruno Haible  <bruno@clisp.org>
17273
17274         Avoid redefining 'struct random_data' on OSF/1 5.1.
17275         * lib/stdlib.in.h: Include <random.h> if it exists.
17276         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
17277         HAVE_RANDOM_H. Include <random.h> when testing whether
17278         'struct random_data' exists.
17279         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
17280
17281 2009-01-25  Bruno Haible  <bruno@clisp.org>
17282
17283         Don't install charset.alias on MacOS X >= 10.3.
17284         * lib/localcharset.c (DARWIN7): New macro.
17285         (get_charset_aliases): Hardcode the result for Darwin7.
17286         * modules/localcharset (install-exec-local): Don't install
17287         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
17288
17289 2009-01-25  Bruno Haible  <bruno@clisp.org>
17290
17291         Don't install charset.alias on mingw and Cygwin.
17292         * modules/localcharset (install-exec-local): Don't install
17293         charset.alias on mingw and Cygwin, if the file does not yet exist.
17294         The result for these platforms is hardcoded in localcharset.c.
17295
17296 2009-01-25  Bruno Haible  <bruno@clisp.org>
17297
17298         Make it possible again to use AC_GNU_SOURCE together with gnulib.
17299         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
17300         before requiring AC_USE_SYSTEM_EXTENSIONS.
17301
17302 2009-01-25  Jim Meyering  <meyering@redhat.com>
17303
17304         c-strtod: avoid warnings
17305         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
17306         "assignment discards qualifiers from pointer target type" warnings.
17307
17308 2009-01-24  Bruno Haible  <bruno@clisp.org>
17309
17310         Add support for non-UTF-8 locales on MacOS X.
17311         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
17312         canonical encodings. For Darwin 7 and newer, don't map traditional
17313         encodings to UTF-8.
17314         Reported by Vincent Lefevre <vincent@vinc17.org>
17315         at <http://savannah.gnu.org/bugs/?25235>.
17316
17317 2009-01-24  Bruno Haible  <bruno@clisp.org>
17318
17319         * doc/gnulib.texi (Obsolete modules): New section.
17320         Reported by Mike Frysinger <vapier@gentoo.org>.
17321
17322 2009-01-24  Bruno Haible  <bruno@clisp.org>
17323
17324         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
17325         (%.dvi): New rule.
17326
17327 2009-01-24  Bruno Haible  <bruno@clisp.org>
17328
17329         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
17330         Reported by Eric Blake.
17331
17332 2009-01-24  Bruno Haible  <bruno@clisp.org>
17333
17334         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
17335         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
17336         Reported by Gary V. Vaughan <gary@gnu.org>.
17337
17338 2009-01-24  Bruno Haible  <bruno@clisp.org>
17339
17340         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
17341
17342 2009-01-23  Bruno Haible  <bruno@clisp.org>
17343
17344         Make c-strtod, c-strtold usable in libraries.
17345         * lib/c-strtod.c: Include string.h instead of xalloc.h.
17346         (C_STRTOD): Call strdup instead of xstrdup.
17347         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
17348         * modules/c-strtold (Depends-on): Likewise.
17349         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
17350         * NEWS: Mention the change.
17351         Reported by Michael Gold <mgold@ncf.ca>.
17352
17353 2009-01-23  Jim Meyering  <meyering@redhat.com>
17354
17355         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
17356         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
17357         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
17358
17359 2009-01-23  Simon Josefsson  <simon@josefsson.org>
17360
17361         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
17362         GNU CoreUtils.
17363         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
17364         * modules/version-etc (Description): Update.
17365
17366 2009-01-22  Bruno Haible  <bruno@clisp.org>
17367
17368         Cache the C locale object.
17369         * lib/c-strtod.c (c_locale_cache): New variable.
17370         (c_locale): New function.
17371         (C_STRTOD): Use it, and don't call freelocale.
17372         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
17373         Suggested by Paolo Bonzini.
17374
17375 2009-01-21  Bruno Haible  <bruno@clisp.org>
17376
17377         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
17378         conditions other than overflow.
17379
17380 2009-01-21  Bruno Haible  <bruno@clisp.org>
17381
17382         * lib/c-strtod.c: Include errno.h.
17383         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
17384         value from STRTOD_L and STRTOD.
17385
17386 2009-01-21  Bruno Haible  <bruno@clisp.org>
17387         and Jim Meyering  <meyering@redhat.com>
17388
17389         nanosleep: skip configure test (fail it) for apple universal builds
17390         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
17391         universal builds, assume that nanosleep does not work.
17392         * modules/nanosleep (Depends-on): Add multiarch.
17393
17394         mktime: skip configure test (fail it) for apple universal builds
17395         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
17396         universal builds, assume that mktime does not work.
17397         * modules/mktime (Depends-on): Add multiarch.
17398
17399 2009-01-21  Eric Blake  <ebb9@byu.net>
17400
17401         multiarch: avoid expand-before-require warning
17402         * modules/multiarch (configure.ac): Require, rather than expand,
17403         gl_MULTIARCH.
17404         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
17405         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
17406         enforce that all clients require it.  Partial reversion of
17407         2008-12-29 patch.
17408
17409         error: avoid expand-before-require warning
17410         * modules/errno (configure.ac): Require, rather than expand,
17411         gl_HEADER_ERRNO_H.
17412         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
17413         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
17414         enforce that all clients require it.
17415
17416         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
17417         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
17418         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
17419         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
17420
17421 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
17422
17423         Revert:
17424         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
17425
17426         regex: do not depend on obsolete modules.
17427         * modules/regex: Remove memcmp and memmove.
17428
17429 2009-01-20  Bruno Haible  <bruno@clisp.org>
17430
17431         Make the 'link' module link on Windows NT 4.
17432         * lib/link.c (_WIN32_WINNT): Don't define.
17433         (CreateHardLinkFuncType): New type.
17434         (CreateHardLinkFunc, initialized): New variables.
17435         (initialize): New function.
17436         (link): Invoke CreateHardLink indirectly through the function pointer.
17437
17438 2009-01-20  Bruno Haible  <bruno@clisp.org>
17439
17440         Fix compilation failure on mingw.
17441         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
17442
17443 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
17444
17445         * doc/c-strtod.texi: Mention a couple of restrictions.
17446
17447 2009-01-20  Jim Meyering  <meyering@redhat.com>
17448
17449         gettimeofday: move more declarations out of functions
17450         * lib/gettimeofday.c: Move extern declarations of tzset and
17451         gmtime out of containing functions.  Prompted by Bruno Haible.
17452
17453 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
17454
17455         regex: do not depend on obsolete modules.
17456         * modules/regex: Remove memcmp and memmove.
17457
17458 2009-01-19  Bruno Haible  <bruno@clisp.org>
17459
17460         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
17461         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
17462         gl_BIGENDIAN, not AC_C_BIGENDIAN.
17463         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
17464         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
17465
17466 2009-01-19  Bruno Haible  <bruno@clisp.org>
17467
17468         * tests/test-link.c: Include <errno.h>.
17469         (main): Exit with code 77 when a hard link cannot be created due to
17470         the file system.
17471         * tests/test-link.sh: Skip test when a hard link cannot be created due
17472         to the file system.
17473         Suggested by Eric Blake.
17474
17475 2009-01-19  Martin Lambers  <marlam@marlam.de>
17476
17477         * modules/link-tests: New file.
17478         * tests/test-link.sh: New file.
17479         * tests/test-link.c: New file.
17480
17481 2009-01-19  Eric Blake  <ebb9@byu.net>
17482
17483         doc: mention another function added in cygwin 1.7.0
17484         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
17485         Another new function in cygwin 1.7.
17486
17487 2009-01-19  Bruno Haible  <bruno@clisp.org>
17488
17489         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
17490         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
17491         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
17492         gl_BIGENDIAN, not AC_C_BIGENDIAN.
17493         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
17494         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
17495         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
17496         * m4/md4.m4 (gl_MD4): Likewise.
17497         * m4/md5.m4 (gl_MD5): Likewise.
17498         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
17499         * m4/sha1.m4 (gl_SHA1): Likewise.
17500         * m4/sha256.m4 (gl_SHA256): Likewise.
17501         * m4/sha512.m4 (gl_SHA512): Likewise.
17502
17503 2009-01-19  Bruno Haible  <bruno@clisp.org>
17504
17505         * modules/uniname/uniname-tests (Depends-on): Add progname.
17506         * tests/uniname/test-uninames.c: Include progname.h.
17507         (main): Call set_program_name.
17508
17509         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
17510         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
17511         (main): Call set_program_name.
17512
17513         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
17514         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
17515         (main): Call set_program_name.
17516
17517         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
17518         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
17519         (main): Call set_program_name.
17520
17521         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
17522         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
17523         (main): Call set_program_name.
17524
17525         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
17526         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
17527         (main): Call set_program_name.
17528
17529         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
17530         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
17531         (main): Call set_program_name.
17532
17533         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
17534         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
17535         (main): Call set_program_name.
17536
17537         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
17538         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
17539         (main): Call set_program_name.
17540
17541 2009-01-19  Eric Blake  <ebb9@byu.net>
17542
17543         test-unistd: test previous patch
17544         * tests/test-unistd.c: Test *_FILENO macros.
17545
17546         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
17547         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17548         Guarantee a definition.
17549         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
17550         * modules/unistd-safer (Depends-on): Add dependency on unistd.
17551         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
17552         * lib/dup-safer.c (STDERR_FILENO): Likewise.
17553         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17554         Likewise.
17555         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
17556         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
17557         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17558         Likewise.
17559         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
17560         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
17561         (STDERR_FILENO): Likewise.
17562         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
17563         (STDERR_FILENO): Likewise.
17564         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
17565         (STDERR_FILENO): Likewise.
17566         Reported by Elbert Pol.
17567
17568 2009-01-19  Eric Blake  <ebb9@byu.net>
17569
17570         doc: mention more functions added in cygwin 1.7.0
17571         * doc/posix-functions/abort.texi (abort): Update wording related
17572         to cygwin.
17573         * doc/posix-functions/daylight.texi (daylight): Likewise.
17574         * doc/posix-functions/optarg.texi (optarg): Likewise.
17575         * doc/posix-functions/optarg.texi (opterr): Likewise.
17576         * doc/posix-functions/optarg.texi (optind): Likewise.
17577         * doc/posix-functions/optarg.texi (optopt): Likewise.
17578         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
17579         worked in 1.5.x, and was withdrawn in 1.7.
17580         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
17581         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
17582         cygwin versions.
17583         * doc/posix-functions/perror.texi (perror): Likewise.
17584         * doc/posix-functions/printf.texi (printf): Likewise.
17585         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
17586         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
17587         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
17588         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
17589         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17590         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
17591         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
17592         Likewise.
17593         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
17594         Likewise.
17595         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
17596         this function.
17597         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
17598         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
17599         Likewise.
17600         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
17601         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
17602         * doc/posix-functions/confstr.texi (confstr): Likewise.
17603         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
17604         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
17605         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
17606         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
17607         * doc/posix-functions/fputws.texi (fputws): Likewise.
17608         * doc/posix-functions/fwide.texi (fwide): Likewise.
17609         * doc/posix-functions/getwc.texi (getwc): Likewise.
17610         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
17611         * doc/posix-functions/putwc.texi (putwc): Likewise.
17612         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
17613         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
17614         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
17615         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
17616         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
17617         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
17618         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
17619         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
17620         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
17621         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
17622         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
17623
17624 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
17625
17626         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
17627         * lib/ioctl.c: Include <sys/ioctl.h>.
17628
17629 2009-01-19  Simon Josefsson  <simon@josefsson.org>
17630
17631         * modules/getdate-tests (Depends-on): Add progname.
17632         * tests/test-getdate.c: Use progname module, to avoid link errors
17633         on non-glibc systems.
17634
17635 2009-01-18  Simon Josefsson  <simon@josefsson.org>
17636
17637         * modules/filenamecat-tests (Depends-on): Add progname.
17638         * modules/fstrcmp-tests (Depends-on): Likewise.
17639
17640         * tests/test-filenamecat.c: Use progname module, to avoid link
17641         errors on non-glibc systems.
17642         * tests/test-fstrcmp.c: Likewise.
17643
17644 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
17645
17646         gettimeofday: avoid warning: nested extern declaration of 'localtime'
17647         * lib/gettimeofday.c: Move extern declaration out of function.
17648
17649 2009-01-18  Bruno Haible  <bruno@clisp.org>
17650
17651         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
17652         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
17653         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
17654
17655 2009-01-18  Bruno Haible  <bruno@clisp.org>
17656
17657         * lib/strftime.c (MEMPCPY): Remove unused macro.
17658         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
17659
17660 2009-01-18  Martin Lambers  <marlam@marlam.de>
17661
17662         New module 'link'.
17663         * lib/unistd.in.h (link): New declaration.
17664         * lib/link.c: New file.
17665         * m4/link.m4: New file.
17666         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
17667         HAVE_LINK.
17668         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
17669         * modules/link: New file.
17670         * doc/posix-functions/link.texi: Mention the new module.
17671
17672 2009-01-18  Bruno Haible  <bruno@clisp.org>
17673
17674         * tests/test-avltree_list.c (main): Call set_program_name.
17675         * tests/test-avltree_oset.c (main): Likewise.
17676         * tests/test-obstack-printf.c: Include progname.h.
17677         (main): Call set_program_name.
17678         * tests/test-quotearg.c: Include progname.h.
17679         (main): Call set_program_name.
17680         * tests/test-xmemdup0.c: Include progname.h.
17681         (main): Call set_program_name.
17682
17683 2009-01-18  Bruno Haible  <bruno@clisp.org>
17684
17685         New module 'alphasort'.
17686         * lib/dirent.in.h (alphasort): New declaration.
17687         * lib/alphasort.c: New file, from glibc with modifications.
17688         * m4/alphasort.m4: New file.
17689         * modules/alphasort: New file.
17690         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
17691         HAVE_ALPHASORT.
17692         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
17693         HAVE_ALPHASORT.
17694         * doc/posix-functions/alphasort.texi: Mention the new module and the
17695         portability problems.
17696
17697 2009-01-18  Bruno Haible  <bruno@clisp.org>
17698
17699         New module 'scandir'.
17700         * lib/dirent.in.h (scandir): New declaration.
17701         * lib/scandir.c: New file, from glibc with modifications.
17702         * m4/scandir.m4: New file.
17703         * modules/scandir: New file.
17704         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
17705         HAVE_SCANDIR.
17706         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
17707         HAVE_SCANDIR.
17708         * doc/posix-functions/scandir.texi: Mention the new module and the
17709         portability problems.
17710
17711 2009-01-17  Bruno Haible  <bruno@clisp.org>
17712
17713         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
17714         Update documentation.
17715         (func_remove_suffix): Escape all dots in the suffix. Update
17716         documentation.
17717         (func_filter_filelist): Update documentation.
17718         Reported by Ralf Wildenhues.
17719
17720 2009-01-17  Bruno Haible  <bruno@clisp.org>
17721
17722         * modules/dprintf-posix-tests: New file.
17723         * tests/test-dprintf-posix.sh: New file.
17724         * tests/test-dprintf-posix.c: New file.
17725
17726         New modules 'dprintf', 'dprintf-posix'.
17727         * lib/stdio.in.h (dprintf): New declaration.
17728         * lib/dprintf.c: New file.
17729         * m4/dprintf.m4: New file.
17730         * m4/dprintf-posix.m4: New file.
17731         * modules/dprintf: New file.
17732         * modules/dprintf-posix: New file.
17733         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
17734         HAVE_DPRINTF, REPLACE_DPRINTF.
17735         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
17736         HAVE_DPRINTF, REPLACE_DPRINTF.
17737         * doc/posix-functions/dprintf.texi: Mention the new modules.
17738
17739 2009-01-17  Bruno Haible  <bruno@clisp.org>
17740
17741         * modules/vdprintf-posix-tests: New file.
17742         * tests/test-vdprintf-posix.sh: New file.
17743         * tests/test-vdprintf-posix.c: New file.
17744
17745         New modules 'vdprintf', 'vdprintf-posix'.
17746         * lib/stdio.in.h (vdprintf): New declaration.
17747         * lib/vdprintf.c: New file.
17748         * m4/vdprintf.m4: New file.
17749         * m4/vdprintf-posix.m4: New file.
17750         * modules/vdprintf: New file.
17751         * modules/vdprintf-posix: New file.
17752         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
17753         HAVE_VDPRINTF, REPLACE_VDPRINTF.
17754         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
17755         HAVE_VDPRINTF, REPLACE_VDPRINTF.
17756         * doc/posix-functions/vdprintf.texi: Mention the new modules.
17757
17758 2009-01-17  Bruno Haible  <bruno@clisp.org>
17759
17760         Fix replacement of fopen on mingw.
17761         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
17762         mingw.
17763
17764 2009-01-17  Bruno Haible  <bruno@clisp.org>
17765
17766         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
17767         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
17768
17769 2009-01-17  Bruno Haible  <bruno@clisp.org>
17770
17771         Avoid test-fflush2.sh failure on mingw.
17772         * tests/test-fflush2.c: Include binary-io.h.
17773         (main): Put standard input into binary mode.
17774         * modules/fflush-tests (Depends-on): Add binary-io.
17775
17776 2009-01-17  Bruno Haible  <bruno@clisp.org>
17777
17778         * lib/wchar.in.h: In another particular situation, include only the
17779         system's <wchar.h> file.
17780         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
17781         Reported by Albert Chin-A-Young <china@thewrittenword.com>
17782         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
17783
17784 2009-01-17  Bruno Haible  <bruno@clisp.org>
17785
17786         Support for stripping executables in --enable-relocatable.
17787         * build-aux/install-reloc: Expect one more argument, or an environment
17788         variable RELOC_STRIP_PROG. If set, strip the destination program and
17789         its wrapper.
17790         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
17791         RELOC_STRIP_PROG.
17792         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
17793         to set RELOCATABLE_STRIP.
17794         * NEWS: Mention the new Makefile requirement.
17795
17796 2009-01-17  Bruno Haible  <bruno@clisp.org>
17797
17798         * build-aux/install-reloc: Remove debugging information left over by
17799         C compiler on MacOS X.
17800
17801 2009-01-17  Bruno Haible  <bruno@clisp.org>
17802
17803         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
17804         * lib/progreloc.c (find_executable): Fix type of pointer passed to
17805         _NSGetExecutablePath.
17806
17807 2009-01-16  Jim Meyering  <meyering@redhat.com>
17808
17809         strerror: avoid warnings about discarding "const"
17810         * lib/strerror.c (rpl_strerror): Instead of returning a const
17811         string from each and every "case", use a variable, and add a single
17812         cast after the switch.
17813
17814 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
17815
17816         * lib/arpa_inet.in.h: Add extern "C" block for C++.
17817
17818 2009-01-16  Bruno Haible  <bruno@clisp.org>
17819
17820         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
17821         array initializer syntax that also works in C++ mode.
17822         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17823
17824 2009-01-16  Jim Meyering  <meyering@redhat.com>
17825
17826         poll: suppress a warning
17827         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
17828         to ignore "...unsigned expression < 0 is always false" warnings.
17829
17830 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
17831
17832         poll: remove declarations of unused variables
17833         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
17834         sockbuf and optlen.
17835
17836 2009-01-15  Bruno Haible  <bruno@clisp.org>
17837
17838         Make fflush-after-ungetc POSIX compliant on BSD systems.
17839         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
17840         (clear_ungetc_buffer): Implement also for other systems.
17841         (rpl_fflush): On glibc systems, invoke
17842         clear_ungetc_buffer_preserving_position. Otherwise, invoke
17843         clear_ungetc_buffer after fetching the stream's position, not before.
17844
17845 2009-01-15  Bruno Haible  <bruno@clisp.org>
17846
17847         Make fflush-after-ungetc POSIX compliant on glibc systems.
17848         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
17849         after ungetc.
17850         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
17851         (rpl_fflush): On glibc systems, simply call the system's fflush
17852         function after clearing the ungetc buffer.
17853         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
17854         Instead, lseek only to the end of file, then use the system's fseeko
17855         for the rest. On glibc systems, reset the EOF indicator bit.
17856
17857 2009-01-15  Jim Meyering  <meyering@redhat.com>
17858
17859         openmp.m4: revert quote-adding change, for portability to older autoconf
17860         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
17861         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
17862         Simon Josefsson noticed the problem when using autoconf-2.61.
17863
17864 2009-01-15  Bruno Haible  <bruno@clisp.org>
17865
17866         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
17867         * tests/test-fflush2.c (ASSERT): Always fail.
17868         (main): Add two tests for fflush() after ungetc(), taking into account
17869         the Austin Group's clarification.
17870         Suggested by Eric Blake.
17871
17872 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
17873
17874         mktime.m4: remove K&R-style function prototypes
17875         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
17876         for the Sun C++ compiler.
17877
17878 2009-01-14  Bruno Haible  <bruno@clisp.org>
17879
17880         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
17881         while including <wchar.h>.
17882         * lib/wchar.in.h: In two particular situations on HP-UX, include only
17883         the system's <wchar.h> file.
17884         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17885
17886 2009-01-14  Bruno Haible  <bruno@clisp.org>
17887
17888         * m4/csharp.m4: Don't mention gettext on the serial number line.
17889         * m4/csharpexec.m4: Likewise.
17890         * m4/eaccess.m4: Likewise.
17891         * m4/javaexec.m4: Likewise.
17892         * m4/sig_atomic_t.m4: Likewise.
17893         * m4/tmpdir.m4: Likewise.
17894         * m4/intldir.m4: Bump gettext version.
17895         * m4/lib-ld.m4: Likewise.
17896
17897 2009-01-14  Bruno Haible  <bruno@clisp.org>
17898
17899         * lib/progname.c (set_program_name): Add more comments.
17900         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
17901
17902 2009-01-14  Simon Josefsson  <simon@josefsson.org>
17903
17904         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
17905         were sys/stat.h does not define it.
17906
17907 2009-01-14  Jim Meyering  <meyering@redhat.com>
17908
17909         many *.m4 files: improve m4 quoting
17910         99% of this change was performed by running the following commands:
17911         git ls-files | grep '\.m4$' | xargs perl -pi \
17912           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
17913           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
17914           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
17915           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
17916         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
17917         The remainder were to add Copyright dates, increment serial numbers,
17918         undo some changes in comments, exclude m4/intl.m4, and add quotes
17919         around the "1" in ",1" where the unusual spacing prohibited the
17920         above regexps from doing the job.  For more details, see
17921         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
17922         * m4/acl.m4: Modified.
17923         * m4/afs.m4: Likewise.
17924         * m4/alloca.m4: Likewise.
17925         * m4/argp.m4: Likewise.
17926         * m4/argz.m4: Likewise.
17927         * m4/atexit.m4: Likewise.
17928         * m4/bison-i18n.m4: Likewise.
17929         * m4/bison.m4: Likewise.
17930         * m4/byteswap.m4: Likewise.
17931         * m4/c-stack.m4: Likewise.
17932         * m4/c-strtod.m4: Likewise.
17933         * m4/calloc.m4: Likewise.
17934         * m4/canonicalize-lgpl.m4: Likewise.
17935         * m4/chown.m4: Likewise.
17936         * m4/clock_time.m4: Likewise.
17937         * m4/codeset.m4: Likewise.
17938         * m4/copy-file.m4: Likewise.
17939         * m4/csharp.m4: Likewise.
17940         * m4/csharpcomp.m4: Likewise.
17941         * m4/csharpexec.m4: Likewise.
17942         * m4/d-ino.m4: Likewise.
17943         * m4/d-type.m4: Likewise.
17944         * m4/dirfd.m4: Likewise.
17945         * m4/double-slash-root.m4: Likewise.
17946         * m4/eaccess.m4: Likewise.
17947         * m4/eealloc.m4: Likewise.
17948         * m4/environ.m4: Likewise.
17949         * m4/errno_h.m4: Likewise.
17950         * m4/euidaccess.m4: Likewise.
17951         * m4/execute.m4: Likewise.
17952         * m4/fatal-signal.m4: Likewise.
17953         * m4/fchdir.m4: Likewise.
17954         * m4/fcntl_h.m4: Likewise.
17955         * m4/fileblocks.m4: Likewise.
17956         * m4/filenamecat.m4: Likewise.
17957         * m4/findprog.m4: Likewise.
17958         * m4/flexmember.m4: Likewise.
17959         * m4/fnmatch.m4: Likewise.
17960         * m4/fopen.m4: Likewise.
17961         * m4/fpending.m4: Likewise.
17962         * m4/fprintf-posix.m4: Likewise.
17963         * m4/free.m4: Likewise.
17964         * m4/frexp.m4: Likewise.
17965         * m4/frexpl.m4: Likewise.
17966         * m4/fsusage.m4: Likewise.
17967         * m4/ftruncate.m4: Likewise.
17968         * m4/gc-camellia.m4: Likewise.
17969         * m4/gc-random.m4: Likewise.
17970         * m4/gc.m4: Likewise.
17971         * m4/getaddrinfo.m4: Likewise.
17972         * m4/getcwd-abort-bug.m4: Likewise.
17973         * m4/getcwd-path-max.m4: Likewise.
17974         * m4/getdate.m4: Likewise.
17975         * m4/getdomainname.m4: Likewise.
17976         * m4/getgroups.m4: Likewise.
17977         * m4/gethostname.m4: Likewise.
17978         * m4/gethrxtime.m4: Likewise.
17979         * m4/getline.m4: Likewise.
17980         * m4/getloadavg.m4: Likewise.
17981         * m4/getndelim2.m4: Likewise.
17982         * m4/getpass.m4: Likewise.
17983         * m4/gettext.m4: Likewise.
17984         * m4/gettime.m4: Likewise.
17985         * m4/gettimeofday.m4: Likewise.
17986         * m4/gnulib-common.m4: Likewise.
17987         * m4/group-member.m4: Likewise.
17988         * m4/host-os.m4: Likewise.
17989         * m4/iconv.m4: Likewise.
17990         * m4/iconv_open.m4: Likewise.
17991         * m4/inet_ntop.m4: Likewise.
17992         * m4/inet_pton.m4: Likewise.
17993         * m4/inline.m4: Likewise.
17994         * m4/intldir.m4: Likewise.
17995         * m4/intlmacosx.m4: Likewise.
17996         * m4/intmax.m4: Likewise.
17997         * m4/intmax_t.m4: Likewise.
17998         * m4/inttypes.m4: Likewise.
17999         * m4/inttypes_h.m4: Likewise.
18000         * m4/inttypes-pri.m4: Likewise.
18001         * m4/isapipe.m4: Likewise.
18002         * m4/isnand.m4: Likewise.
18003         * m4/isnanf.m4: Likewise.
18004         * m4/isnanl.m4: Likewise.
18005         * m4/javacomp.m4: Likewise.
18006         * m4/javaexec.m4: Likewise.
18007         * m4/jm-winsz1.m4: Likewise.
18008         * m4/jm-winsz2.m4: Likewise.
18009         * m4/lchown.m4: Likewise.
18010         * m4/lcmessage.m4: Likewise.
18011         * m4/ldexpl.m4: Likewise.
18012         * m4/lib-ld.m4: Likewise.
18013         * m4/lib-link.m4: Likewise.
18014         * m4/libsigsegv.m4: Likewise.
18015         * m4/link-follow.m4: Likewise.
18016         * m4/localcharset.m4: Likewise.
18017         * m4/locale-fr.m4: Likewise.
18018         * m4/locale-ja.m4: Likewise.
18019         * m4/locale-tr.m4: Likewise.
18020         * m4/locale-zh.m4: Likewise.
18021         * m4/lock.m4: Likewise.
18022         * m4/longlong.m4: Likewise.
18023         * m4/ls-mntd-fs.m4: Likewise.
18024         * m4/lstat.m4: Likewise.
18025         * m4/malloc.m4: Likewise.
18026         * m4/mathl.m4: Likewise.
18027         * m4/mbrtowc.m4: Likewise.
18028         * m4/mbstate_t.m4: Likewise.
18029         * m4/mbswidth.m4: Likewise.
18030         * m4/memchr.m4: Likewise.
18031         * m4/memcmp.m4: Likewise.
18032         * m4/memcpy.m4: Likewise.
18033         * m4/memmem.m4: Likewise.
18034         * m4/memmove.m4: Likewise.
18035         * m4/mempcpy.m4: Likewise.
18036         * m4/memrchr.m4: Likewise.
18037         * m4/memset.m4: Likewise.
18038         * m4/minmax.m4: Likewise.
18039         * m4/mkdir-slash.m4: Likewise.
18040         * m4/mkdtemp.m4: Likewise.
18041         * m4/mktime.m4: Likewise.
18042         * m4/mmap-anon.m4: Likewise.
18043         * m4/mountlist.m4: Likewise.
18044         * m4/nanosleep.m4: Likewise.
18045         * m4/nls.m4: Likewise.
18046         * m4/nocrash.m4: Likewise.
18047         * m4/open.m4: Likewise.
18048         * m4/openat.m4: Likewise.
18049         * m4/openmp.m4: Likewise.
18050         * m4/pathmax.m4: Likewise.
18051         * m4/perl.m4: Likewise.
18052         * m4/physmem.m4: Likewise.
18053         * m4/pipe.m4: Likewise.
18054         * m4/po.m4: Likewise.
18055         * m4/poll.m4: Likewise.
18056         * m4/posixtm.m4: Likewise.
18057         * m4/posixver.m4: Likewise.
18058         * m4/printf-frexp.m4: Likewise.
18059         * m4/printf-frexpl.m4: Likewise.
18060         * m4/printf-posix.m4: Likewise.
18061         * m4/printf-posix-rpl.m4: Likewise.
18062         * m4/printf.m4: Likewise.
18063         * m4/progtest.m4: Likewise.
18064         * m4/putenv.m4: Likewise.
18065         * m4/readline.m4: Likewise.
18066         * m4/readlink.m4: Likewise.
18067         * m4/readutmp.m4: Likewise.
18068         * m4/realloc.m4: Likewise.
18069         * m4/regex.m4: Likewise.
18070         * m4/relocatable.m4: Likewise.
18071         * m4/relocatable-lib.m4: Likewise.
18072         * m4/rename-dest-slash.m4: Likewise.
18073         * m4/rename.m4: Likewise.
18074         * m4/rmdir-errno.m4: Likewise.
18075         * m4/rmdir.m4: Likewise.
18076         * m4/roundf.m4: Likewise.
18077         * m4/roundl.m4: Likewise.
18078         * m4/rpmatch.m4: Likewise.
18079         * m4/save-cwd.m4: Likewise.
18080         * m4/selinux-selinux-h.m4: Likewise.
18081         * m4/setenv.m4: Likewise.
18082         * m4/settime.m4: Likewise.
18083         * m4/sig2str.m4: Likewise.
18084         * m4/sig_atomic_t.m4: Likewise.
18085         * m4/signalblocking.m4: Likewise.
18086         * m4/signbit.m4: Likewise.
18087         * m4/sigpipe.m4: Likewise.
18088         * m4/sockets.m4: Likewise.
18089         * m4/sockpfaf.m4: Likewise.
18090         * m4/st_dm_mode.m4: Likewise.
18091         * m4/stat-time.m4: Likewise.
18092         * m4/stdbool.m4: Likewise.
18093         * m4/stdint.m4: Likewise.
18094         * m4/stdint_h.m4: Likewise.
18095         * m4/stpcpy.m4: Likewise.
18096         * m4/stpncpy.m4: Likewise.
18097         * m4/strcase.m4: Likewise.
18098         * m4/strchrnul.m4: Likewise.
18099         * m4/strcspn.m4: Likewise.
18100         * m4/strdup.m4: Likewise.
18101         * m4/strftime.m4: Likewise.
18102         * m4/strndup.m4: Likewise.
18103         * m4/strnlen.m4: Likewise.
18104         * m4/strpbrk.m4: Likewise.
18105         * m4/strptime.m4: Likewise.
18106         * m4/strsep.m4: Likewise.
18107         * m4/strtod.m4: Likewise.
18108         * m4/strtoimax.m4: Likewise.
18109         * m4/strtok_r.m4: Likewise.
18110         * m4/strtol.m4: Likewise.
18111         * m4/strtoll.m4: Likewise.
18112         * m4/strtoul.m4: Likewise.
18113         * m4/strtoull.m4: Likewise.
18114         * m4/strtoumax.m4: Likewise.
18115         * m4/strverscmp.m4: Likewise.
18116         * m4/threadlib.m4: Likewise.
18117         * m4/timegm.m4: Likewise.
18118         * m4/tm_gmtoff.m4: Likewise.
18119         * m4/tmpdir.m4: Likewise.
18120         * m4/tmpfile.m4: Likewise.
18121         * m4/tzset.m4: Likewise.
18122         * m4/uintmax_t.m4: Likewise.
18123         * m4/unlinkdir.m4: Likewise.
18124         * m4/unlocked-io.m4: Likewise.
18125         * m4/uptime.m4: Likewise.
18126         * m4/userspec.m4: Likewise.
18127         * m4/utimbuf.m4: Likewise.
18128         * m4/utime.m4: Likewise.
18129         * m4/utimes-null.m4: Likewise.
18130         * m4/utimes.m4: Likewise.
18131         * m4/vararrays.m4: Likewise.
18132         * m4/vasnprintf.m4: Likewise.
18133         * m4/vfprintf-posix.m4: Likewise.
18134         * m4/vprintf-posix.m4: Likewise.
18135         * m4/wait-process.m4: Likewise.
18136         * m4/wchar_t.m4: Likewise.
18137         * m4/wint_t.m4: Likewise.
18138         * m4/write-any-file.m4: Likewise.
18139         * m4/yield.m4: Likewise.
18140
18141 2009-01-13  Bruno Haible  <bruno@clisp.org>
18142
18143         Avoid test-copy-file.sh failures when ACL support insufficient.
18144         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
18145         TESTS_ENVIRONMENT.
18146         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
18147         Reported by Jim Meyering.
18148
18149 2009-01-13  Bruno Haible  <bruno@clisp.org>
18150
18151         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
18152         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
18153         * modules/unistdio/u8-printf-parse (Files): Likewise.
18154         * modules/unistdio/u32-printf-parse (Files): Likewise.
18155         * modules/unistdio/ulc-printf-parse (Files): Likewise.
18156
18157 2009-01-13  Simon Josefsson  <simon@josefsson.org>
18158
18159         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
18160         and m4/inttypes_h.m4 too.
18161
18162 2009-01-12  Eric Blake  <ebb9@byu.net>
18163
18164         tests: IRIX 6.2 cc can't compile -0.0 into .data
18165         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
18166         rather than at compile-time.
18167         * tests/test-floorl.c (minus_zero): Likewise.
18168         * tests/test-frexpl.c (minus_zero): Likewise.
18169         * tests/test-isnan.c (minus_zerol): Likewise.
18170         * tests/test-isnanl.h (minus_zero): Likewise.
18171         * tests/test-ldexpl.c (minus_zero): Likewise.
18172         * tests/test-roundl.c (minus_zero): Likewise.
18173         * tests/test-signbit.c (minus_zerol): Likewise.
18174         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
18175         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
18176         * tests/test-truncl.c (minus_zero): Likewise.
18177         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
18178         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
18179         Reported by Tom G. Christensen and Nelson H. F. Beebe.
18180
18181 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
18182
18183         regex: fix glibc bug 9697
18184         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
18185         handling.
18186
18187 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
18188
18189         regex: fix glibc bug 697
18190         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
18191         being NULL also if there are no backreferences.
18192
18193 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
18194
18195         regex: merge glibc changes
18196         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
18197         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
18198         re_string_skip_chars, re_string_reconstruct): Likewise.
18199         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
18200
18201 2009-01-07  Jim Meyering  <meyering@redhat.com>
18202
18203         poll: filter through cppi
18204         * lib/poll.c: Indent cpp directives to reflect nesting.
18205
18206 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
18207
18208         poll: don't return uninitialized
18209         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
18210
18211 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
18212
18213         avoid compile failure on AIX 6.1
18214         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
18215         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
18216
18217 2009-01-04  Jim Meyering  <meyering@redhat.com>
18218
18219         remove duplicate inclusion of <stdio.h>
18220         * tests/test-fprintf-posix.c: Likewise.
18221         * tests/test-printf-posix.c: Likewise.
18222         * tests/test-snprintf-posix.c: Likewise.
18223         * tests/test-sprintf-posix.c: Likewise.
18224         * tests/test-vasprintf-posix.c: Likewise.
18225         * tests/test-vfprintf-posix.c: Likewise.
18226         * tests/test-vprintf-posix.c: Likewise.
18227         * tests/test-vsnprintf-posix.c: Likewise.
18228         * tests/test-vsprintf-posix.c: Likewise.
18229
18230 2009-01-03  Jim Meyering  <meyering@redhat.com>
18231
18232         gnulib-tool: fix sed-based filtering
18233         * gnulib-tool (func_filter_filelist): Remove extra backslash
18234         in sed_fff_filter definition.
18235
18236 2009-01-02  Jim Meyering  <meyering@redhat.com>
18237
18238         strftime: avoid compilation failure on Solaris 2.6
18239         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
18240         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
18241         Don't #define mbrlen or mbsinit, since now they're guaranteed to
18242         be available.  Reported by Tom G. Christensen.  Details in
18243         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
18244
18245 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18246             Bruno Haible  <bruno@clisp.org>
18247
18248         Speed up gnulib-tool by doing more string processing through shell
18249         built-ins.
18250         * gnulib-tool (fast_func_append): New variable.
18251         (func_remove_prefix, func_remove_suffix): New functions.
18252         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
18253         (func_filter_filelist): New function.
18254         (func_get_dependencies): Use func_remove_suffix instead of sed.
18255         (func_get_automake_snippet): Use func_filter_filelist instead of a
18256         subshell and sed invocation.
18257
18258 2009-01-01  Bruno Haible  <bruno@clisp.org>
18259
18260         Fix a security bug.
18261         * gnulib-tool (func_import, import, update): Don't allow the characters
18262         '"', '$', '`', '\' in macro arguments that become part of commands that
18263         are evaluated.
18264
18265 2009-01-01  Bruno Haible  <bruno@clisp.org>
18266
18267         * gnulib-tool (func_reset_sigpipe): Add more comments.
18268
18269 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18270
18271         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
18272         func_emit_tests_Makefile_am, func_import): Abort loops early if we
18273         already know the answer.
18274
18275 2009-01-01  Jim Meyering  <meyering@redhat.com>
18276
18277         * lib/version-etc.c (version_etc_va): Update copyright year.
18278
18279 2008-12-30  Bruno Haible  <bruno@clisp.org>
18280
18281         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
18282         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
18283         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
18284
18285 2008-12-29  Eric Blake  <ebb9@byu.net>
18286
18287         multiarch: avoid autoconf AC_REQUIRE bug
18288         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
18289         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
18290         2.63 and older.
18291         Reported by Bruno Haible, and analyzed in
18292         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
18293
18294 2008-12-29  Bruno Haible  <bruno@clisp.org>
18295
18296         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
18297         files in subdirectories correctly.
18298         Reported by Ralf Wildenhues.
18299
18300 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18301
18302         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
18303         rather than 'join FILE -', for Solaris join.
18304
18305 2008-12-29  Bruno Haible  <bruno@clisp.org>
18306
18307         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
18308         quoting.
18309         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
18310         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
18311         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
18312         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
18313         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
18314         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
18315         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
18316         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
18317         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
18318         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
18319         * m4/nls.m4 (AM_NLS): Likewise.
18320         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
18321         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
18322         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
18323         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
18324         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
18325         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
18326         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
18327         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
18328         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
18329         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
18330         * m4/xsize.m4 (gl_XSIZE): Likewise.
18331         Suggested by Jim Meyering.
18332
18333 2008-11-17  Bruce Korb  <bkorb@gnu.org>
18334
18335         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
18336         * lib/parse-duration.c: use a switch instead of cascading if's.
18337
18338 2008-12-29  Eric Blake  <ebb9@byu.net>
18339
18340         wchar.h: supply WEOF on Irix 5.3
18341         * lib/wchar.in.h (wint_t): Also supply WEOF.
18342         * lib/wctype.in.h (wint_t): Likewise.
18343         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
18344         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
18345         Reported by Tom G. Christensen.
18346
18347 2008-12-26  Bruno Haible  <bruno@clisp.org>
18348
18349         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
18350         i486, i586, i686.
18351
18352 2008-12-26  Bruno Haible  <bruno@clisp.org>
18353
18354         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
18355
18356 2008-12-26  Bruno Haible  <bruno@clisp.org>
18357
18358         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
18359         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
18360         not __STDC_CONSTANT_MACROS.
18361         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
18362
18363 2008-12-25  Bruno Haible  <bruno@clisp.org>
18364
18365         Add support for universal builds to vasnprintf.
18366         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
18367         universal builds, guess no.
18368         * modules/vasnprintf-posix (Depends-on): Add multiarch.
18369         * modules/vasprintf-posix (Depends-on): Likewise.
18370         * modules/fprintf-posix (Depends-on): Likewise.
18371         * modules/vfprintf-posix (Depends-on): Likewise.
18372         * modules/snprintf-posix (Depends-on): Likewise.
18373         * modules/vsnprintf-posix (Depends-on): Likewise.
18374         * modules/sprintf-posix (Depends-on): Likewise.
18375         * modules/vsprintf-posix (Depends-on): Likewise.
18376         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
18377         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18378         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18379         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18380         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18381         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18382         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18383
18384         Add support for universal builds to <inttypes.h>.
18385         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
18386         _SCNu64_PREFIX): In Apple
18387         universal builds, define directly, using _LP64.
18388         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
18389         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
18390         * modules/inttypes (Depends-on): Add multiarch.
18391         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
18392
18393         Add support for universal builds to <stdint.h>.
18394         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
18395         universal builds, define directly, using _LP64.
18396         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
18397         Apple universal builds, don't test for the size and suffix of ptrdiff_t
18398         and size_t.
18399         * modules/stdint (Depends-on): Add multiarch.
18400         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
18401
18402         New module 'multiarch'.
18403         * modules/multiarch: New file.
18404         * m4/multiarch.m4: New file.
18405
18406 2008-12-25  Bruno Haible  <bruno@clisp.org>
18407
18408         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
18409
18410 2008-12-25  Bruno Haible  <bruno@clisp.org>
18411
18412         * modules/btowc (License): Relicense under LGPLv2+.
18413         * modules/mbsinit (License): Likewise.
18414         * modules/mbrtowc (License): Likewise.
18415         * modules/wcrtomb (License): Likewise.
18416         * modules/streq (License): Likewise.
18417         Reported by David Lutterkort <lutter@redhat.com>.
18418
18419 2008-12-23  Bruno Haible  <bruno@clisp.org>
18420
18421         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
18422
18423 2008-12-23  Bruno Haible  <bruno@clisp.org>
18424
18425         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
18426         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
18427         GETADDRINFO_LIB, not in LIBS.
18428         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
18429         * modules/canon-host (Link): Likewise.
18430         * NEWS: Mention the change.
18431         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
18432         GETADDRINFO_LIB.
18433
18434 2008-12-22  Bruno Haible  <bruno@clisp.org>
18435
18436         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
18437         * doc/posix-functions/iswalpha_l.texi: Likewise.
18438         * doc/posix-functions/iswblank_l.texi: Likewise.
18439         * doc/posix-functions/iswcntrl_l.texi: Likewise.
18440         * doc/posix-functions/iswctype_l.texi: Likewise.
18441         * doc/posix-functions/iswdigit_l.texi: Likewise.
18442         * doc/posix-functions/iswgraph_l.texi: Likewise.
18443         * doc/posix-functions/iswlower_l.texi: Likewise.
18444         * doc/posix-functions/iswprint_l.texi: Likewise.
18445         * doc/posix-functions/iswpunct_l.texi: Likewise.
18446         * doc/posix-functions/iswspace_l.texi: Likewise.
18447         * doc/posix-functions/iswupper_l.texi: Likewise.
18448         * doc/posix-functions/iswxdigit_l.texi: Likewise.
18449         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
18450         * doc/posix-functions/open_wmemstream.texi: Likewise.
18451         * doc/posix-functions/swscanf.texi: Likewise.
18452         * doc/posix-functions/towctrans_l.texi: Likewise.
18453         * doc/posix-functions/towlower.texi: Likewise.
18454         * doc/posix-functions/towlower_l.texi: Likewise.
18455         * doc/posix-functions/towupper.texi: Likewise.
18456         * doc/posix-functions/towupper_l.texi: Likewise.
18457         * doc/posix-functions/vfwprintf.texi: Likewise.
18458         * doc/posix-functions/vfwscanf.texi: Likewise.
18459         * doc/posix-functions/vswscanf.texi: Likewise.
18460         * doc/posix-functions/vwprintf.texi: Likewise.
18461         * doc/posix-functions/vwscanf.texi: Likewise.
18462         * doc/posix-functions/wcpcpy.texi: Likewise.
18463         * doc/posix-functions/wcpncpy.texi: Likewise.
18464         * doc/posix-functions/wcscasecmp.texi: Likewise.
18465         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
18466         * doc/posix-functions/wcscoll_l.texi: Likewise.
18467         * doc/posix-functions/wcsdup.texi: Likewise.
18468         * doc/posix-functions/wcsncasecmp.texi: Likewise.
18469         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
18470         * doc/posix-functions/wcsnlen.texi: Likewise.
18471         * doc/posix-functions/wcsnrtombs.texi: Likewise.
18472         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
18473         * doc/posix-functions/wctrans_l.texi: Likewise.
18474         * doc/posix-functions/wctype_l.texi: Likewise.
18475         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
18476         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
18477         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
18478         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
18479         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
18480         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
18481         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
18482         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
18483         * doc/glibc-functions/wcschrnul.texi: Likewise.
18484         * doc/glibc-functions/wcsftime_l.texi: Likewise.
18485         * doc/glibc-functions/wcstod_l.texi: Likewise.
18486         * doc/glibc-functions/wcstof_l.texi: Likewise.
18487         * doc/glibc-functions/wcstol_l.texi: Likewise.
18488         * doc/glibc-functions/wcstold_l.texi: Likewise.
18489         * doc/glibc-functions/wcstoll_l.texi: Likewise.
18490         * doc/glibc-functions/wcstoq.texi: Likewise.
18491         * doc/glibc-functions/wcstoul_l.texi: Likewise.
18492         * doc/glibc-functions/wcstoull_l.texi: Likewise.
18493         * doc/glibc-functions/wcstouq.texi: Likewise.
18494         * doc/glibc-functions/wmempcpy.texi: Likewise.
18495
18496 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
18497             Eric Blake  <ebb9@byu.net>
18498             Paolo Bonzini  <bonzini@gnu.org>
18499             Bruno Haible  <bruno@clisp.org>
18500
18501         Make c-stack work on Haiku.
18502         * lib/c-stack.c (SA_ONSTACK): Define fallback.
18503         (c_stack_action): Use SA_ONSTACK flag.
18504
18505 2008-12-22  Bruno Haible  <bruno@clisp.org>
18506
18507         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
18508
18509 2008-12-22  Bruno Haible  <bruno@clisp.org>
18510
18511         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
18512         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
18513         being overridden.
18514         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
18515         New macros.
18516         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
18517         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
18518         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
18519         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
18520
18521 2008-12-22  Bruno Haible  <bruno@clisp.org>
18522
18523         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
18524         from test code.
18525
18526 2008-12-22  Eric Blake  <ebb9@byu.net>
18527
18528         Avoid gcc warnings on cygwin.
18529         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
18530         Avoid unused variable.
18531         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
18532         Likewise.
18533
18534 2008-12-22  Bruno Haible  <bruno@clisp.org>
18535
18536         Remove HAVE_MBRTOWC conditionals.
18537         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
18538         (mbscasecmp): Assume mbrtowc function.
18539         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
18540         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
18541         * lib/mbschr.c: Include mbuiter.h unconditionally.
18542         (mbschr): Assume mbrtowc function.
18543         * lib/mbscspn.c: Include mbuiter.h unconditionally.
18544         (mbscspn): Assume mbrtowc function.
18545         * lib/mbslen.c: Include mbuiter.h unconditionally.
18546         (mbslen): Assume mbrtowc function.
18547         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
18548         (mbsncasecmp): Assume mbrtowc function.
18549         * lib/mbsnlen.c: Include mbiter.h unconditionally.
18550         (mbsnlen): Assume mbrtowc function.
18551         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
18552         (mbspbrk): Assume mbrtowc function.
18553         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
18554         (mbspcasecmp): Assume mbrtowc function.
18555         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
18556         (mbsrchr): Assume mbrtowc function.
18557         * lib/mbssep.c: Include mbuiter.h unconditionally.
18558         (mbssep): Assume mbrtowc function.
18559         * lib/mbsspn.c: Include mbuiter.h unconditionally.
18560         (mbsspn): Assume mbrtowc function.
18561         * lib/mbsstr.c: Include mbuiter.h unconditionally.
18562         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
18563         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
18564         (mbstok_r): Assume mbrtowc function.
18565         * lib/propername.c: Include mbuiter.h unconditionally.
18566         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
18567         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
18568         (trim2): Assume mbrtowc function.
18569         * lib/mbswidth.c (mbsinit): Remove fallback definition.
18570         (mbsnwidth): Assume mbrtowc function.
18571         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
18572         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
18573         fallback definitions.
18574         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
18575
18576 2008-12-22  Bruno Haible  <bruno@clisp.org>
18577
18578         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
18579
18580 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
18581
18582         * modules/regex: Request emulations for the mb*/wc* functions we need.
18583         * m4/regex.m4: Don't look for those functions here.
18584         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
18585
18586 2008-12-22  Bruno Haible  <bruno@clisp.org>
18587
18588         * modules/fnmatch (Depends-on): Remove duplicated dependency.
18589
18590 2008-12-21  Bruno Haible  <bruno@clisp.org>
18591
18592         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
18593         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
18594         (Include): Remove conditionalization.
18595         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
18596         (Include): Remove conditionalization.
18597         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
18598         (Include): Remove conditionalization.
18599         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
18600         * m4/mbfile.m4 (gl_MBFILE): Likewise.
18601         * NEWS: Mention the change.
18602         Reported by Alan Hourihane <alanh@fairlite.co.uk>
18603         via Sergey Poznyakoff <gray@gnu.org.ua>.
18604
18605 2008-12-21  Bruno Haible  <bruno@clisp.org>
18606
18607         * MODULES.html.sh (Extended multibyte and wide character utilities
18608         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
18609         wcrtomb, wcsrtombs.
18610         (Support for systems lacking POSIX:2008): Add accept, bind, close,
18611         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
18612         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
18613         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
18614
18615 2008-12-21  Bruno Haible  <bruno@clisp.org>
18616
18617         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
18618
18619 2008-12-21  Bruno Haible  <bruno@clisp.org>
18620
18621         * modules/wcsnrtombs-tests: New file.
18622         * tests/test-wcsnrtombs1.sh: New file.
18623         * tests/test-wcsnrtombs2.sh: New file.
18624         * tests/test-wcsnrtombs3.sh: New file.
18625         * tests/test-wcsnrtombs4.sh: New file.
18626         * tests/test-wcsnrtombs.c: New file.
18627
18628         New module 'wcsnrtombs'.
18629         * lib/wchar.in.h (wcsnrtombs): New declaration.
18630         * lib/wcsnrtombs.c: New file.
18631         * lib/wcsrtombs-state.c: New file.
18632         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
18633         (internal_state): Remove variable.
18634         * m4/wcsnrtombs.m4: New file.
18635         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
18636         compilation units.
18637         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
18638         HAVE_WCSNRTOMBS.
18639         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
18640         HAVE_WCSNRTOMBS.
18641         * modules/wcsnrtombs: New file.
18642         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
18643         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
18644
18645 2008-12-21  Bruno Haible  <bruno@clisp.org>
18646
18647         * modules/wcsrtombs-tests: New file.
18648         * tests/test-wcsrtombs1.sh: New file.
18649         * tests/test-wcsrtombs2.sh: New file.
18650         * tests/test-wcsrtombs3.sh: New file.
18651         * tests/test-wcsrtombs4.sh: New file.
18652         * tests/test-wcsrtombs.c: New file.
18653
18654         New module 'wcsrtombs'.
18655         * lib/wchar.in.h (wcsrtombs): New declaration.
18656         * lib/wcsrtombs.c: New file.
18657         * m4/wcsrtombs.m4: New file.
18658         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
18659         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
18660         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
18661         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
18662         * modules/wcsrtombs: New file.
18663         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
18664         bugs.
18665
18666 2008-12-21  Bruno Haible  <bruno@clisp.org>
18667
18668         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
18669         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
18670         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
18671         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
18672         if not correct.
18673         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
18674         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
18675         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
18676         m4/locale-zh.m4, m4/codeset.m4.
18677         * doc/posix-functions/wcrtomb.texi: Document the bug.
18678
18679 2008-12-21  Bruno Haible  <bruno@clisp.org>
18680
18681         Work around a btowc() bug on IRIX 6.5.
18682         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
18683         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
18684         REPLACE_WTOBC if not.
18685         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
18686         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
18687         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
18688
18689 2008-12-21  Bruno Haible  <bruno@clisp.org>
18690
18691         * modules/wcrtomb-tests: New file.
18692         * tests/test-wcrtomb.sh: New file.
18693         * tests/test-wcrtomb.c: New file.
18694
18695         New module 'wcrtomb'.
18696         * lib/wchar.in.h (wcrtomb): New declaration.
18697         * lib/wcrtomb.c: New file.
18698         * m4/wcrtomb.m4: New file.
18699         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
18700         HAVE_WCRTOMB.
18701         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
18702         HAVE_WCRTOMB.
18703         * modules/wcrtomb: New file.
18704         * doc/posix-functions/wcrtomb.texi: Mention the new module.
18705
18706 2008-12-21  Bruno Haible  <bruno@clisp.org>
18707
18708         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
18709         * modules/mbsrtowcs (Files): Likewise.
18710         * modules/wctob (Files): Likewise.
18711         * modules/c-strcase-tests (Files): Likewise.
18712         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
18713         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
18714         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
18715         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
18716         * modules/vasnprintf-posix-tests (Files): Likewise.
18717
18718 2008-12-21  William Pursell  <bill.pursell@gmail.com>
18719
18720         gitlog-to-changelog: pass all command-line arguments to git-log
18721         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
18722         it is sometimes convenient to filter the commits in various ways.
18723         gitlog-to-changelog only allows --since to specify a start date,
18724         but git-log itself supports many other filtering mechanisms.
18725         At the moment, I want to filter by branch name.  Rather than
18726         adding a --branch option to gitlog-to-changelog, it seems more
18727         flexible to simply pass all options directly to git-log and let
18728         git do the work.  Notice that this effectively makes --since a
18729         redundant option for gitlog-to-changelog, but removing it would
18730         require current usage to change since calls would then require
18731         an additional '--'.
18732
18733 2008-12-21  Bruno Haible  <bruno@clisp.org>
18734
18735         * modules/mbsnrtowcs-tests: New file.
18736         * tests/test-mbsnrtowcs1.sh: New file.
18737         * tests/test-mbsnrtowcs2.sh: New file.
18738         * tests/test-mbsnrtowcs3.sh: New file.
18739         * tests/test-mbsnrtowcs4.sh: New file.
18740         * tests/test-mbsnrtowcs.c: New file.
18741
18742         New module 'mbsnrtowcs'.
18743         * lib/wchar.in.h (mbsnrtowcs): New declaration.
18744         * lib/mbsnrtowcs.c: New file.
18745         * lib/mbsrtowcs-state.c: New file.
18746         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
18747         (internal_state): Remove variable.
18748         * m4/mbsnrtowcs.m4: New file.
18749         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
18750         compilation units.
18751         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
18752         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
18753         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
18754         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
18755         * modules/mbsnrtowcs: New file.
18756         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
18757         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
18758         portability problem.
18759
18760 2008-12-21  Bruno Haible  <bruno@clisp.org>
18761
18762         Work around mbsrtowcs bug.
18763         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
18764         (gl_FUNC_MBSRTOWCS): Invoke it.
18765         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
18766         m4/locale-zh.m4.
18767         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
18768
18769 2008-12-21  Bruno Haible  <bruno@clisp.org>
18770
18771         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
18772
18773 2008-12-21  Bruno Haible  <bruno@clisp.org>
18774
18775         Update doc for AIX.
18776         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
18777         16-bit wchar_t type.
18778         * doc/posix-functions/btowc.texi: Likewise.
18779         * doc/posix-functions/fgetwc.texi: Likewise.
18780         * doc/posix-functions/fgetws.texi: Likewise.
18781         * doc/posix-functions/fputwc.texi: Likewise.
18782         * doc/posix-functions/fputws.texi: Likewise.
18783         * doc/posix-functions/fwide.texi: Likewise.
18784         * doc/posix-functions/fwprintf.texi: Likewise.
18785         * doc/posix-functions/fwscanf.texi: Likewise.
18786         * doc/posix-functions/getwchar.texi: Likewise.
18787         * doc/posix-functions/getwc.texi: Likewise.
18788         * doc/posix-functions/iswalnum.texi: Likewise.
18789         * doc/posix-functions/iswalpha.texi: Likewise.
18790         * doc/posix-functions/iswblank.texi: Likewise.
18791         * doc/posix-functions/iswcntrl.texi: Likewise.
18792         * doc/posix-functions/iswctype.texi: Likewise.
18793         * doc/posix-functions/iswdigit.texi: Likewise.
18794         * doc/posix-functions/iswgraph.texi: Likewise.
18795         * doc/posix-functions/iswlower.texi: Likewise.
18796         * doc/posix-functions/iswprint.texi: Likewise.
18797         * doc/posix-functions/iswpunct.texi: Likewise.
18798         * doc/posix-functions/iswspace.texi: Likewise.
18799         * doc/posix-functions/iswupper.texi: Likewise.
18800         * doc/posix-functions/iswxdigit.texi: Likewise.
18801         * doc/posix-functions/mbrtowc.texi: Likewise.
18802         * doc/posix-functions/mbsrtowcs.texi: Likewise.
18803         * doc/posix-functions/mbstowcs.texi: Likewise.
18804         * doc/posix-functions/mbtowc.texi: Likewise.
18805         * doc/posix-functions/putwchar.texi: Likewise.
18806         * doc/posix-functions/putwc.texi: Likewise.
18807         * doc/posix-functions/swprintf.texi: Likewise.
18808         * doc/posix-functions/tolower.texi: Likewise.
18809         * doc/posix-functions/toupper.texi: Likewise.
18810         * doc/posix-functions/towctrans.texi: Likewise.
18811         * doc/posix-functions/ungetwc.texi: Likewise.
18812         * doc/posix-functions/vswprintf.texi: Likewise.
18813         * doc/posix-functions/wcrtomb.texi: Likewise.
18814         * doc/posix-functions/wcscat.texi: Likewise.
18815         * doc/posix-functions/wcschr.texi: Likewise.
18816         * doc/posix-functions/wcscmp.texi: Likewise.
18817         * doc/posix-functions/wcscoll.texi: Likewise.
18818         * doc/posix-functions/wcscpy.texi: Likewise.
18819         * doc/posix-functions/wcscspn.texi: Likewise.
18820         * doc/posix-functions/wcsftime.texi: Likewise.
18821         * doc/posix-functions/wcslen.texi: Likewise.
18822         * doc/posix-functions/wcsncat.texi: Likewise.
18823         * doc/posix-functions/wcsncmp.texi: Likewise.
18824         * doc/posix-functions/wcsncpy.texi: Likewise.
18825         * doc/posix-functions/wcspbrk.texi: Likewise.
18826         * doc/posix-functions/wcsrchr.texi: Likewise.
18827         * doc/posix-functions/wcsrtombs.texi: Likewise.
18828         * doc/posix-functions/wcsspn.texi: Likewise.
18829         * doc/posix-functions/wcsstr.texi: Likewise.
18830         * doc/posix-functions/wcstod.texi: Likewise.
18831         * doc/posix-functions/wcstof.texi: Likewise.
18832         * doc/posix-functions/wcstoimax.texi: Likewise.
18833         * doc/posix-functions/wcstok.texi: Likewise.
18834         * doc/posix-functions/wcstold.texi: Likewise.
18835         * doc/posix-functions/wcstoll.texi: Likewise.
18836         * doc/posix-functions/wcstol.texi: Likewise.
18837         * doc/posix-functions/wcstombs.texi: Likewise.
18838         * doc/posix-functions/wcstoull.texi: Likewise.
18839         * doc/posix-functions/wcstoul.texi: Likewise.
18840         * doc/posix-functions/wcstoumax.texi: Likewise.
18841         * doc/posix-functions/wcswidth.texi: Likewise.
18842         * doc/posix-functions/wcsxfrm.texi: Likewise.
18843         * doc/posix-functions/wctob.texi: Likewise.
18844         * doc/posix-functions/wctomb.texi: Likewise.
18845         * doc/posix-functions/wctrans.texi: Likewise.
18846         * doc/posix-functions/wctype.texi: Likewise.
18847         * doc/posix-functions/wcwidth.texi: Likewise.
18848         * doc/posix-functions/wmemchr.texi: Likewise.
18849         * doc/posix-functions/wmemcmp.texi: Likewise.
18850         * doc/posix-functions/wmemcpy.texi: Likewise.
18851         * doc/posix-functions/wmemmove.texi: Likewise.
18852         * doc/posix-functions/wmemset.texi: Likewise.
18853         * doc/posix-functions/wprintf.texi: Likewise.
18854         * doc/posix-functions/wscanf.texi: Likewise.
18855
18856 2008-12-21  Bruno Haible  <bruno@clisp.org>
18857
18858         Update doc for HP-UX 11.11.
18859         * doc/posix-functions/btowc.texi: Clarify that the function is missing
18860         in HP-UX version 11.00, not in all versions of HP-UX 11.
18861         * doc/posix-functions/fwide.texi: Likewise.
18862         * doc/posix-functions/fwprintf.texi: Likewise.
18863         * doc/posix-functions/fwscanf.texi: Likewise.
18864         * doc/posix-functions/inet_ntop.texi: Likewise.
18865         * doc/posix-functions/inet_pton.texi: Likewise.
18866         * doc/posix-functions/mbrlen.texi: Likewise.
18867         * doc/posix-functions/mbrtowc.texi: Likewise.
18868         * doc/posix-functions/mbsinit.texi: Likewise.
18869         * doc/posix-functions/mbsrtowcs.texi: Likewise.
18870         * doc/posix-functions/swprintf.texi: Likewise.
18871         * doc/posix-functions/swscanf.texi: Likewise.
18872         * doc/posix-functions/towctrans.texi: Likewise.
18873         * doc/posix-functions/vfwprintf.texi: Likewise.
18874         * doc/posix-functions/vswprintf.texi: Likewise.
18875         * doc/posix-functions/vwprintf.texi: Likewise.
18876         * doc/posix-functions/wcrtomb.texi: Likewise.
18877         * doc/posix-functions/wcsrtombs.texi: Likewise.
18878         * doc/posix-functions/wcsstr.texi: Likewise.
18879         * doc/posix-functions/wctob.texi: Likewise.
18880         * doc/posix-functions/wctrans.texi: Likewise.
18881         * doc/posix-functions/wmemchr.texi: Likewise.
18882         * doc/posix-functions/wmemcmp.texi: Likewise.
18883         * doc/posix-functions/wmemcpy.texi: Likewise.
18884         * doc/posix-functions/wmemmove.texi: Likewise.
18885         * doc/posix-functions/wmemset.texi: Likewise.
18886         * doc/posix-functions/wprintf.texi: Likewise.
18887         * doc/posix-functions/wscanf.texi: Likewise.
18888
18889 2008-12-21  Bruno Haible  <bruno@clisp.org>
18890
18891         Work around a portability problem.
18892         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
18893         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
18894
18895 2008-12-20  Bruno Haible  <bruno@clisp.org>
18896
18897         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
18898         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
18899         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
18900         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
18901         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
18902
18903         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
18904         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
18905         set.
18906         (GNULIB_defined_mbstate_t): New macro.
18907         (mbsinit): Redefine if REPLACE_MBSINIT is set.
18908         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
18909         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
18910         reuses the system's mbrtowc function but works around the bugs.
18911         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
18912         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
18913         macros.
18914         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
18915         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
18916         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
18917         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
18918         REPLACE_MBSINIT if mbsinit needs to be overridden.
18919         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
18920         REPLACE_MBSINIT, REPLACE_MBRTOWC.
18921         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
18922         REPLACE_MBSINIT, REPLACE_MBRTOWC.
18923         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
18924         m4/locale-zh.m4.
18925         (Depends): Add mbsinit.
18926         * modules/mbsinit (Depends): Add mbrtowc.
18927         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
18928
18929 2008-12-20  Bruno Haible  <bruno@clisp.org>
18930
18931         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
18932         so that there are no conversion errors on AIX.
18933         * tests/test-mbsrtowcs.c (main): LIkewise.
18934
18935 2008-12-20  Bruno Haible  <bruno@clisp.org>
18936
18937         Work around wctob bug on Solaris <= 9.
18938         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
18939         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
18940         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
18941         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
18942         * modules/wctob (Files): Add m4/locale-fr.m4.
18943         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
18944
18945 2008-12-20  Bruno Haible  <bruno@clisp.org>
18946
18947         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
18948         /dev/null.
18949         * tests/test-select-in.sh: Likewise.
18950         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18951
18952 2008-12-20  Bruno Haible  <bruno@clisp.org>
18953
18954         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
18955         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
18956         Cygwin 1.5.x.
18957
18958 2008-12-20  Bruno Haible  <bruno@clisp.org>
18959
18960         Ensure mbstate_t is defined on HP-UX 11.11.
18961         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
18962         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
18963         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
18964         AC_USE_SYSTEM_EXTENSIONS.
18965         * modules/fnmatch (Depends-on): Add extensions.
18966         * modules/mbrlen (Depends-on): Likewise.
18967         * modules/mbrtowc (Depends-on): Likewise.
18968         * modules/mbsinit (Depends-on): Likewise.
18969         * modules/mbsrtowcs (Depends-on): Likewise.
18970         * modules/mbswidth (Depends-on): Likewise.
18971         * modules/quotearg (Depends-on): Likewise.
18972         * modules/strftime (Depends-on): Likewise.
18973
18974 2008-12-20  Bruno Haible  <bruno@clisp.org>
18975
18976         Ensure wctob is declared on IRIX 6.5.
18977         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
18978         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
18979         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
18980         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
18981         of HAVE_WCTOB.
18982         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
18983         HAVE_WCTOB.
18984         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
18985
18986 2008-12-19  Bruno Haible  <bruno@clisp.org>
18987
18988         * modules/mbsrtowcs-tests: New file.
18989         * tests/test-mbsrtowcs1.sh: New file.
18990         * tests/test-mbsrtowcs2.sh: New file.
18991         * tests/test-mbsrtowcs3.sh: New file.
18992         * tests/test-mbsrtowcs4.sh: New file.
18993         * tests/test-mbsrtowcs.c: New file.
18994
18995         New module 'mbsrtowcs'.
18996         * lib/wchar.in.h (mbsrtowcs): New declaration.
18997         * lib/mbsrtowcs.c: New file.
18998         * m4/mbsrtowcs.m4: New file.
18999         * modules/mbsrtowcs: New file.
19000         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
19001         HAVE_MBSRTOWCS.
19002         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
19003         HAVE_MBSRTOWCS.
19004         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
19005
19006 2008-12-19  Bruno Haible  <bruno@clisp.org>
19007
19008         New module 'mbrlen'.
19009         * lib/wchar.in.h (mbrlen): New declaration.
19010         * lib/mbrlen.c: New file.
19011         * m4/mbrlen.m4: New file.
19012         * modules/mbrlen: New file.
19013         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
19014         HAVE_MBRLEN.
19015         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
19016         HAVE_MBRLEN.
19017         * doc/posix-functions/mbrlen.texi: Document the new module.
19018
19019 2008-12-19  Bruno Haible  <bruno@clisp.org>
19020
19021         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
19022         * modules/mbrtowc (Depends-on): Add verify.
19023         Suggested by Paul Eggert.
19024
19025 2008-12-18  Bruno Haible  <bruno@clisp.org>
19026
19027         * modules/mbsinit-tests: New file.
19028         * tests/test-mbsinit.sh: New file.
19029         * tests/test-mbsinit.c: New file.
19030
19031 2008-12-18  Bruno Haible  <bruno@clisp.org>
19032
19033         * modules/mbrtowc-tests: New file.
19034         * tests/test-mbrtowc1.sh: New file.
19035         * tests/test-mbrtowc2.sh: New file.
19036         * tests/test-mbrtowc3.sh: New file.
19037         * tests/test-mbrtowc4.sh: New file.
19038         * tests/test-mbrtowc.c: New file.
19039
19040         New module 'mbrtowc'.
19041         * lib/wchar.in.h (mbstate_t): Override when the system does not have
19042         mbsinit and mbrtowc.
19043         (mbrtowc): New declaration.
19044         * lib/mbrtowc.c: New file.
19045         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
19046         * modules/mbrtowc: New file.
19047         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
19048         HAVE_MBRTOWC.
19049         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
19050         HAVE_MBRTOWC.
19051         * doc/posix-functions/mbrtowc.texi: Document the new module.
19052
19053 2008-12-18  Bruno Haible  <bruno@clisp.org>
19054
19055         New module 'wctob'.
19056         * lib/wchar.in.h (wctob): New declaration.
19057         * lib/wctob.c: New file.
19058         * m4/wctob.m4: New file.
19059         * modules/wctob: New file.
19060         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
19061         HAVE_WCTOB.
19062         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
19063         * doc/posix-functions/wctob.texi: Document the new module.
19064
19065 2008-12-18  Bruno Haible  <bruno@clisp.org>
19066
19067         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
19068         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
19069
19070 2008-12-18  Simon Josefsson  <simon@josefsson.org>
19071
19072         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
19073         G. Christensen" <tgc@jupiterrise.com>.
19074
19075         * lib/flock.c: Need to include errno.h.  Reported by "Tom
19076         G. Christensen" <tgc@jupiterrise.com>.
19077
19078         * lib/flock.c: Need to include string.h.  Reported by "Tom
19079         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
19080         <ebb9@byu.net>.
19081
19082 2008-12-18  Bruno Haible  <bruno@clisp.org>
19083
19084         * m4/locale-ja.m4: New file, from GNU gettext.
19085
19086 2008-12-17  Bruno Haible  <bruno@clisp.org>
19087
19088         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
19089         Suggested by Eric Blake.
19090
19091 2008-12-17  Bruno Haible  <bruno@clisp.org>
19092
19093         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
19094
19095 2008-12-17  Bruno Haible  <bruno@clisp.org>
19096
19097         * lib/mbsinit.c: Include verify.h. Verify an assumption.
19098         * modules/mbsinit (Depends-on): Add verify.
19099         Suggested by Paul Eggert.
19100
19101 2008-12-17  Bruno Haible  <bruno@clisp.org>
19102
19103         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
19104         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
19105         gl_FUNC_MBRTOWC.
19106         * m4/mbiter.m4 (gl_MBITER): LIkewise.
19107         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
19108         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
19109         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
19110         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
19111         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
19112         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
19113         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
19114         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
19115         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
19116         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
19117         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
19118         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
19119         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
19120         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
19121         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
19122         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
19123         * modules/trim (configure.ac): Likewise.
19124
19125 2008-12-17  Bruno Haible  <bruno@clisp.org>
19126
19127         * modules/btowc-tests: New file.
19128         * tests/test-btowc1.sh: New file.
19129         * tests/test-btowc2.sh: New file.
19130         * tests/test-btowc.c: New file.
19131
19132         New module 'btowc'.
19133         * lib/wchar.in.h (btowc): New declaration.
19134         * lib/btowc.c: New file.
19135         * m4/btowc.m4: New file.
19136         * modules/btowc: New file.
19137         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
19138         HAVE_BTOWC.
19139         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
19140         * doc/posix-functions/btowc.texi: Document the new module.
19141
19142 2008-12-17  Bruno Haible  <bruno@clisp.org>
19143
19144         New module 'mbsinit'.
19145         * lib/wchar.in.h (mbsinit): New declaration.
19146         * lib/mbsinit.c: New file.
19147         * m4/mbsinit.m4: New file.
19148         * modules/mbsinit: New file.
19149         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
19150         HAVE_MBSINIT.
19151         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
19152         HAVE_MBSINIT.
19153         * doc/posix-functions/mbsinit.texi: Document the new module.
19154
19155 2008-12-16  Bruno Haible  <bruno@clisp.org>
19156
19157         * lib/unistd.in.h: Add comment.
19158         * tests/test-environ.c: Don't include <stdlib.h>.
19159
19160 2008-12-16  Bruno Haible  <bruno@clisp.org>
19161
19162         * lib/parse-duration.h (parse_duration): Document return value
19163         convention.
19164         * lib/parse-duration.c: Include specification header first. Add
19165         comments.
19166         (_): Remove macro.
19167         (parse_year_month_day, parse_hour_minute_second): Move side effects
19168         outside of strchr call.
19169         (parse_non_iso8601): Move side effects outside of isspace call.
19170         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
19171         call.
19172
19173 2008-12-16  Bruno Haible  <bruno@clisp.org>
19174
19175         * tests/test-parse-duration.sh: Produce no output when the test
19176         succeeds.
19177
19178 2008-12-16  Bruno Haible  <bruno@clisp.org>
19179
19180         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
19181         expressions.
19182
19183 2008-12-15  Bruno Haible  <bruno@clisp.org>
19184
19185         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
19186         * doc/glibc-functions/flistxattr.texi: Likewise.
19187         * doc/glibc-functions/fopencookie.texi: Likewise.
19188         * doc/glibc-functions/fremovexattr.texi: Likewise.
19189         * doc/glibc-functions/fsetxattr.texi: Likewise.
19190         * doc/glibc-functions/getxattr.texi: Likewise.
19191         * doc/glibc-functions/lgetxattr.texi: Likewise.
19192         * doc/glibc-functions/listxattr.texi: Likewise.
19193         * doc/glibc-functions/llistxattr.texi: Likewise.
19194         * doc/glibc-functions/lremovexattr.texi: Likewise.
19195         * doc/glibc-functions/lsetxattr.texi: Likewise.
19196         * doc/glibc-functions/removexattr.texi: Likewise.
19197         * doc/glibc-functions/setxattr.texi: Likewise.
19198         * doc/posix-functions/open_memstream.texi: Likewise.
19199
19200 2008-12-15  Eric Blake  <ebb9@byu.net>
19201
19202         Update doc for cygwin 1.7.
19203         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
19204         functions.
19205         * doc/posix-functions/fchmodat.texi: Likewise.
19206         * doc/posix-functions/fchownat.texi: Likewise.
19207         * doc/posix-functions/fdopendir.texi: Likewise.
19208         * doc/posix-functions/fmemopen.texi: Likewise.
19209         * doc/posix-functions/freeaddrinfo.texi: Likewise.
19210         * doc/posix-functions/fstatat.texi: Likewise.
19211         * doc/posix-functions/futimens.texi: Likewise.
19212         * doc/posix-functions/gai_strerror.texi: Likewise.
19213         * doc/posix-functions/getaddrinfo.texi: Likewise.
19214         * doc/posix-functions/getnameinfo.texi: Likewise.
19215         * doc/posix-functions/if_freenameindex.texi: Likewise.
19216         * doc/posix-functions/if_indextoname.texi: Likewise.
19217         * doc/posix-functions/if_nameindex.texi: Likewise.
19218         * doc/posix-functions/if_nametoindex.texi: Likewise.
19219         * doc/posix-functions/insque.texi: Likewise.
19220         * doc/posix-functions/linkat.texi: Likewise.
19221         * doc/posix-functions/llrint.texi: Likewise.
19222         * doc/posix-functions/llrintf.texi: Likewise.
19223         * doc/posix-functions/llrintl.texi: Likewise.
19224         * doc/posix-functions/lockf.texi: Likewise.
19225         * doc/posix-functions/lrintl.texi: Likewise.
19226         * doc/posix-functions/mkdirat.texi: Likewise.
19227         * doc/posix-functions/mkfifoat.texi: Likewise.
19228         * doc/posix-functions/mknodat.texi: Likewise.
19229         * doc/posix-functions/mq_close.texi: Likewise.
19230         * doc/posix-functions/mq_getattr.texi: Likewise.
19231         * doc/posix-functions/mq_notify.texi: Likewise.
19232         * doc/posix-functions/mq_open.texi: Likewise.
19233         * doc/posix-functions/mq_receive.texi: Likewise.
19234         * doc/posix-functions/mq_send.texi: Likewise.
19235         * doc/posix-functions/mq_setattr.texi: Likewise.
19236         * doc/posix-functions/mq_timedreceive.texi: Likewise.
19237         * doc/posix-functions/mq_timedsend.texi: Likewise.
19238         * doc/posix-functions/mq_unlink.texi: Likewise.
19239         * doc/posix-functions/open_memstream.texi: Likewise.
19240         * doc/posix-functions/openat.texi: Likewise.
19241         * doc/posix-functions/posix_fadvise.texi: Likewise.
19242         * doc/posix-functions/posix_fallocate.texi: Likewise.
19243         * doc/posix-functions/posix_madvise.texi: Likewise.
19244         * doc/posix-functions/posix_memalign.texi: Likewise.
19245         * doc/posix-functions/posix_openpt.texi: Likewise.
19246         * doc/posix-functions/readlinkat.texi: Likewise.
19247         * doc/posix-functions/remque.texi: Likewise.
19248         * doc/posix-functions/renameat.texi: Likewise.
19249         * doc/posix-functions/rintl.texi: Likewise.
19250         * doc/posix-functions/sem_unlink.texi: Likewise.
19251         * doc/posix-functions/shm_open.texi: Likewise.
19252         * doc/posix-functions/shm_unlink.texi: Likewise.
19253         * doc/posix-functions/signgam.texi: Likewise.
19254         * doc/posix-functions/sigset.texi: Likewise.
19255         * doc/posix-functions/stpcpy.texi: Likewise.
19256         * doc/posix-functions/stpncpy.texi: Likewise.
19257         * doc/posix-functions/strerror.texi: Likewise.
19258         * doc/posix-functions/strtod.texi: Likewise.
19259         * doc/posix-functions/symlinkat.texi: Likewise.
19260         * doc/posix-functions/unlinkat.texi: Likewise.
19261         * doc/posix-functions/utimensat.texi: Likewise.
19262         * doc/glibc-functions/bindresvport.texi: Likewise.
19263         * doc/glibc-functions/dn_expand.texi: Likewise.
19264         * doc/glibc-functions/exp10.texi: Likewise.
19265         * doc/glibc-functions/exp10f.texi: Likewise.
19266         * doc/glibc-functions/fgetxattr.texi: Likewise.
19267         * doc/glibc-functions/flistxattr.texi: Likewise.
19268         * doc/glibc-functions/fopencookie.texi: Likewise.
19269         * doc/glibc-functions/freeifaddrs.texi: Likewise.
19270         * doc/glibc-functions/fremovexattr.texi: Likewise.
19271         * doc/glibc-functions/fsetxattr.texi: Likewise.
19272         * doc/glibc-functions/getifaddrs.texi: Likewise.
19273         * doc/glibc-functions/getxattr.texi: Likewise.
19274         * doc/glibc-functions/lgetxattr.texi: Likewise.
19275         * doc/glibc-functions/listxattr.texi: Likewise.
19276         * doc/glibc-functions/llistxattr.texi: Likewise.
19277         * doc/glibc-functions/lremovexattr.texi: Likewise.
19278         * doc/glibc-functions/lsetxattr.texi: Likewise.
19279         * doc/glibc-functions/pow10.texi: Likewise.
19280         * doc/glibc-functions/pow10f.texi: Likewise.
19281         * doc/glibc-functions/rcmd_af.texi: Likewise.
19282         * doc/glibc-functions/removexattr.texi: Likewise.
19283         * doc/glibc-functions/res_init.texi: Likewise.
19284         * doc/glibc-functions/res_mkquery.texi: Likewise.
19285         * doc/glibc-functions/res_query.texi: Likewise.
19286         * doc/glibc-functions/res_querydomain.texi: Likewise.
19287         * doc/glibc-functions/res_send.texi: Likewise.
19288         * doc/glibc-functions/rresvport_af.texi: Likewise.
19289         * doc/glibc-functions/setxattr.texi: Likewise.
19290         * doc/glibc-functions/strcasestr.texi: Likewise.
19291
19292 2008-12-15  Bruno Haible  <bruno@clisp.org>
19293
19294         Fix compilation error on OSF/1 4.0.
19295         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
19296         <sys/time.h>, simply delegate to the system header.
19297         Reported by Daniel Richard G. <oss@teragram.com>.
19298
19299 2008-12-15  Bruno Haible  <bruno@clisp.org>
19300
19301         * doc/posix-functions/openat.texi: Mention the 'openat' module.
19302         * doc/posix-functions/fchmodat.texi: Likewise.
19303         * doc/posix-functions/fchownat.texi: Likewise.
19304         * doc/posix-functions/fdopendir.texi: Likewise.
19305         * doc/posix-functions/fstatat.texi: Likewise.
19306         * doc/posix-functions/mkdirat.texi: Likewise.
19307         * doc/posix-functions/unlinkat.texi: Likewise.
19308
19309 2008-12-14  Bruno Haible  <bruno@clisp.org>
19310
19311         Update doc for POSIX:2008.
19312         * doc/posix-functions/faccessat.texi: New file.
19313         * doc/posix-functions/fchmodat.texi: New file.
19314         * doc/posix-functions/fchownat.texi: New file.
19315         * doc/posix-functions/fdopendir.texi: New file.
19316         * doc/posix-functions/fstatat.texi: New file.
19317         * doc/posix-functions/futimens.texi: New file.
19318         * doc/posix-functions/linkat.texi: New file.
19319         * doc/posix-functions/mkdirat.texi: New file.
19320         * doc/posix-functions/mkfifoat.texi: New file.
19321         * doc/posix-functions/mknodat.texi: New file.
19322         * doc/posix-functions/open_wmemstream.texi: New file.
19323         * doc/posix-functions/openat.texi: New file.
19324         * doc/posix-functions/psiginfo.texi: New file.
19325         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
19326         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
19327         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
19328         * doc/posix-functions/readlinkat.texi: New file.
19329         * doc/posix-functions/renameat.texi: New file.
19330         * doc/posix-functions/strerror_l.texi: New file.
19331         * doc/posix-functions/symlinkat.texi: New file.
19332         * doc/posix-functions/unlinkat.texi: New file.
19333         * doc/posix-functions/utimensat.texi: New file.
19334         * doc/gnulib.texi (Function Substitutes): Add these subsections.
19335
19336 2008-12-14  Bruno Haible  <bruno@clisp.org>
19337
19338         Update doc for POSIX:2008.
19339         * doc/posix-functions/alphasort.texi: Renamed from
19340         doc/glibc-functions/alphasort.texi.
19341         * doc/posix-functions/dirfd.texi: Renamed from
19342         doc/glibc-functions/dirfd.texi.
19343         * doc/posix-functions/dprintf.texi: Renamed from
19344         doc/glibc-functions/dprintf.texi.
19345         * doc/posix-functions/duplocale.texi: Renamed from
19346         doc/glibc-functions/duplocale.texi.
19347         * doc/posix-functions/fexecve.texi: Renamed from
19348         doc/glibc-functions/fexecve.texi.
19349         * doc/posix-functions/fmemopen.texi: Renamed from
19350         doc/glibc-functions/fmemopen.texi.
19351         * doc/posix-functions/freelocale.texi: Renamed from
19352         doc/glibc-functions/freelocale.texi.
19353         * doc/posix-functions/getdate_err.texi: Renamed from
19354         doc/glibc-functions/getdate_err.texi.
19355         * doc/posix-functions/isalnum_l.texi: Renamed from
19356         doc/glibc-functions/isalnum_l.texi.
19357         * doc/posix-functions/isalpha_l.texi: Renamed from
19358         doc/glibc-functions/isalpha_l.texi.
19359         * doc/posix-functions/isblank_l.texi: Renamed from
19360         doc/glibc-functions/isblank_l.texi.
19361         * doc/posix-functions/iscntrl_l.texi: Renamed from
19362         doc/glibc-functions/iscntrl_l.texi.
19363         * doc/posix-functions/isdigit_l.texi: Renamed from
19364         doc/glibc-functions/isdigit_l.texi.
19365         * doc/posix-functions/isgraph_l.texi: Renamed from
19366         doc/glibc-functions/isgraph_l.texi.
19367         * doc/posix-functions/islower_l.texi: Renamed from
19368         doc/glibc-functions/islower_l.texi.
19369         * doc/posix-functions/isprint_l.texi: Renamed from
19370         doc/glibc-functions/isprint_l.texi.
19371         * doc/posix-functions/ispunct_l.texi: Renamed from
19372         doc/glibc-functions/ispunct_l.texi.
19373         * doc/posix-functions/isspace_l.texi: Renamed from
19374         doc/glibc-functions/isspace_l.texi.
19375         * doc/posix-functions/isupper_l.texi: Renamed from
19376         doc/glibc-functions/isupper_l.texi.
19377         * doc/posix-functions/iswalnum_l.texi: Renamed from
19378         doc/glibc-functions/iswalnum_l.texi.
19379         * doc/posix-functions/iswalpha_l.texi: Renamed from
19380         doc/glibc-functions/iswalpha_l.texi.
19381         * doc/posix-functions/iswblank_l.texi: Renamed from
19382         doc/glibc-functions/iswblank_l.texi.
19383         * doc/posix-functions/iswcntrl_l.texi: Renamed from
19384         doc/glibc-functions/iswcntrl_l.texi.
19385         * doc/posix-functions/iswctype_l.texi: Renamed from
19386         doc/glibc-functions/iswctype_l.texi.
19387         * doc/posix-functions/iswdigit_l.texi: Renamed from
19388         doc/glibc-functions/iswdigit_l.texi.
19389         * doc/posix-functions/iswgraph_l.texi: Renamed from
19390         doc/glibc-functions/iswgraph_l.texi.
19391         * doc/posix-functions/iswlower_l.texi: Renamed from
19392         doc/glibc-functions/iswlower_l.texi.
19393         * doc/posix-functions/iswprint_l.texi: Renamed from
19394         doc/glibc-functions/iswprint_l.texi.
19395         * doc/posix-functions/iswpunct_l.texi: Renamed from
19396         doc/glibc-functions/iswpunct_l.texi.
19397         * doc/posix-functions/iswspace_l.texi: Renamed from
19398         doc/glibc-functions/iswspace_l.texi.
19399         * doc/posix-functions/iswupper_l.texi: Renamed from
19400         doc/glibc-functions/iswupper_l.texi.
19401         * doc/posix-functions/iswxdigit_l.texi: Renamed from
19402         doc/glibc-functions/iswxdigit_l.texi.
19403         * doc/posix-functions/isxdigit_l.texi: Renamed from
19404         doc/glibc-functions/isxdigit_l.texi.
19405         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
19406         doc/glibc-functions/mbsnrtowcs.texi.
19407         * doc/posix-functions/mkdtemp.texi: Renamed from
19408         doc/glibc-functions/mkdtemp.texi.
19409         * doc/posix-functions/newlocale.texi: Renamed from
19410         doc/glibc-functions/newlocale.texi.
19411         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
19412         doc/glibc-functions/nl_langinfo_l.texi.
19413         * doc/posix-functions/open_memstream.texi: Renamed from
19414         doc/glibc-functions/open_memstream.texi.
19415         * doc/posix-functions/opterr.texi: Renamed from
19416         doc/glibc-functions/opterr.texi.
19417         * doc/posix-functions/optind.texi: Renamed from
19418         doc/glibc-functions/optind.texi.
19419         * doc/posix-functions/optopt.texi: Renamed from
19420         doc/glibc-functions/optopt.texi.
19421         * doc/posix-functions/psignal.texi: Renamed from
19422         doc/glibc-functions/psignal.texi.
19423         * doc/posix-functions/scandir.texi: Renamed from
19424         doc/glibc-functions/scandir.texi.
19425         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
19426         doc/glibc-functions/sched_get_priority_min.texi.
19427         * doc/posix-functions/signgam.texi: Renamed from
19428         doc/glibc-functions/signgam.texi.
19429         * doc/posix-functions/stpcpy.texi: Renamed from
19430         doc/glibc-functions/stpcpy.texi.
19431         * doc/posix-functions/stpncpy.texi: Renamed from
19432         doc/glibc-functions/stpncpy.texi.
19433         * doc/posix-functions/strcasecmp_l.texi: Renamed from
19434         doc/glibc-functions/strcasecmp_l.texi.
19435         * doc/posix-functions/strcoll_l.texi: Renamed from
19436         doc/glibc-functions/strcoll_l.texi.
19437         * doc/posix-functions/strfmon_l.texi: Renamed from
19438         doc/glibc-functions/strfmon_l.texi.
19439         * doc/posix-functions/strftime_l.texi: Renamed from
19440         doc/glibc-functions/strftime_l.texi.
19441         * doc/posix-functions/strncasecmp_l.texi: Renamed from
19442         doc/glibc-functions/strncasecmp_l.texi.
19443         * doc/posix-functions/strndup.texi: Renamed from
19444         doc/glibc-functions/strndup.texi.
19445         * doc/posix-functions/strnlen.texi: Renamed from
19446         doc/glibc-functions/strnlen.texi.
19447         * doc/posix-functions/strsignal.texi: Renamed from
19448         doc/glibc-functions/strsignal.texi.
19449         * doc/posix-functions/strxfrm_l.texi: Renamed from
19450         doc/glibc-functions/strxfrm_l.texi.
19451         * doc/posix-functions/timer_gettime.texi: Renamed from
19452         doc/glibc-functions/timer_gettime.texi.
19453         * doc/posix-functions/tolower_l.texi: Renamed from
19454         doc/glibc-functions/tolower_l.texi.
19455         * doc/posix-functions/toupper_l.texi: Renamed from
19456         doc/glibc-functions/toupper_l.texi.
19457         * doc/posix-functions/towctrans_l.texi: Renamed from
19458         doc/glibc-functions/towctrans_l.texi.
19459         * doc/posix-functions/towlower_l.texi: Renamed from
19460         doc/glibc-functions/towlower_l.texi.
19461         * doc/posix-functions/towupper_l.texi: Renamed from
19462         doc/glibc-functions/towupper_l.texi.
19463         * doc/posix-functions/uselocale.texi: Renamed from
19464         doc/glibc-functions/uselocale.texi.
19465         * doc/posix-functions/vdprintf.texi: Renamed from
19466         doc/glibc-functions/vdprintf.texi.
19467         * doc/posix-functions/wcpcpy.texi:
19468         Renamed from doc/glibc-functions/wcpcpy.texi.
19469         * doc/posix-functions/wcpncpy.texi: Renamed from
19470         doc/glibc-functions/wcpncpy.texi.
19471         * doc/posix-functions/wcscasecmp.texi: Renamed from
19472         doc/glibc-functions/wcscasecmp.texi.
19473         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
19474         doc/glibc-functions/wcscasecmp_l.texi.
19475         * doc/posix-functions/wcscoll_l.texi: Renamed from
19476         doc/glibc-functions/wcscoll_l.texi.
19477         * doc/posix-functions/wcsdup.texi: Renamed from
19478         doc/glibc-functions/wcsdup.texi.
19479         * doc/posix-functions/wcsncasecmp.texi: Renamed from
19480         doc/glibc-functions/wcsncasecmp.texi.
19481         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
19482         doc/glibc-functions/wcsncasecmp_l.texi.
19483         * doc/posix-functions/wcsnlen.texi: Renamed from
19484         doc/glibc-functions/wcsnlen.texi.
19485         * doc/posix-functions/wcsnrtombs.texi: Renamed from
19486         doc/glibc-functions/wcsnrtombs.texi.
19487         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
19488         doc/glibc-functions/wcsxfrm_l.texi.
19489         * doc/posix-functions/wctrans_l.texi: Renamed from
19490         doc/glibc-functions/wctrans_l.texi.
19491         * doc/posix-functions/wctype_l.texi: Renamed from
19492         doc/glibc-functions/wctype_l.texi.
19493         * doc/gnulib.texi (Function Substitutes): Add these subsections.
19494         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
19495         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
19496         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
19497         these subsections.
19498         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
19499         Remove sections.
19500
19501 2008-12-14  Bruno Haible  <bruno@clisp.org>
19502
19503         Update doc for POSIX:2008.
19504         * doc/posix-functions/*.texi: Update URL of POSIX specification.
19505
19506 2008-12-14  Bruno Haible  <bruno@clisp.org>
19507
19508         Update doc for POSIX:2008.
19509         * doc/pastposix-functions/bcmp.texi: Renamed from
19510         doc/posix-functions/bcmp.texi.
19511         * doc/pastposix-functions/bcopy.texi: Renamed from
19512         doc/posix-functions/bcopy.texi.
19513         * doc/pastposix-functions/bsd_signal.texi: Renamed from
19514         doc/posix-functions/bsd_signal.texi.
19515         * doc/pastposix-functions/bzero.texi: Renamed from
19516         doc/posix-functions/bzero.texi.
19517         * doc/pastposix-functions/ecvt.texi: Renamed from
19518         doc/posix-functions/ecvt.texi.
19519         * doc/pastposix-functions/fcvt.texi: Renamed from
19520         doc/posix-functions/fcvt.texi.
19521         * doc/pastposix-functions/ftime.texi: Renamed from
19522         doc/posix-functions/ftime.texi.
19523         * doc/pastposix-functions/gcvt.texi: Renamed from
19524         doc/posix-functions/gcvt.texi.
19525         * doc/pastposix-functions/getcontext.texi: Renamed from
19526         doc/posix-functions/getcontext.texi.
19527         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
19528         doc/posix-functions/gethostbyaddr.texi.
19529         * doc/pastposix-functions/gethostbyname.texi: Renamed from
19530         doc/posix-functions/gethostbyname.texi.
19531         * doc/pastposix-functions/getwd.texi: Renamed from
19532         doc/posix-functions/getwd.texi.
19533         * doc/pastposix-functions/h_errno.texi: Renamed from
19534         doc/posix-functions/h_errno.texi.
19535         * doc/pastposix-functions/index.texi: Renamed from
19536         doc/posix-functions/index.texi.
19537         * doc/pastposix-functions/makecontext.texi: Renamed from
19538         doc/posix-functions/makecontext.texi.
19539         * doc/pastposix-functions/mktemp.texi: Renamed from
19540         doc/posix-functions/mktemp.texi.
19541         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
19542         doc/posix-functions/pthread_attr_getstackaddr.texi.
19543         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
19544         doc/posix-functions/pthread_attr_setstackaddr.texi.
19545         * doc/pastposix-functions/rindex.texi: Renamed from
19546         doc/posix-functions/rindex.texi.
19547         * doc/pastposix-functions/scalb.texi: Renamed from
19548         doc/posix-functions/scalb.texi.
19549         * doc/pastposix-functions/setcontext.texi: Renamed from
19550         doc/posix-functions/setcontext.texi.
19551         * doc/pastposix-functions/swapcontext.texi: Renamed from
19552         doc/posix-functions/swapcontext.texi.
19553         * doc/pastposix-functions/ualarm.texi: Renamed from
19554         doc/posix-functions/ualarm.texi.
19555         * doc/pastposix-functions/usleep.texi: Renamed from
19556         doc/posix-functions/usleep.texi.
19557         * doc/pastposix-functions/vfork.texi: Renamed from
19558         doc/posix-functions/vfork.texi.
19559         * doc/pastposix-functions/wcswcs.texi: Renamed from
19560         doc/posix-functions/wcswcs.texi.
19561         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
19562         (Function Substitutes): Update.
19563
19564 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19565
19566         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
19567         m4/strerror.m4.
19568
19569 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19570             Bruno Haible  <bruno@clisp.org>
19571
19572         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
19573
19574 2008-12-13  Bruno Haible  <bruno@clisp.org>
19575
19576         * modules/strtoull (Depends-on): Remove unistd.
19577
19578 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19579
19580         * modules/strtoull (Depends-on): Add stdlib.
19581
19582 2008-12-11  Simon Josefsson  <simon@josefsson.org>
19583
19584         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
19585
19586 2008-12-10  Jim Meyering  <meyering@redhat.com>
19587
19588         gl_ASSERT: don't say assertions are disabled when they're not
19589         * m4/assert.m4 (gl_ASSERT): Do not make configure report
19590         "checking whether to enable assertions... no", when they are in
19591         fact enabled.  This is solely a bug in the output of configure.
19592         In spite of saying "no", NDEBUG was not defined in that case.
19593         Also, as noted by Eric Blake, leave assertions enabled upon
19594         --enable-assert=INVALID.
19595
19596 2008-12-10  Bruno Haible  <bruno@clisp.org>
19597
19598         Change MODULES.html to refer to POSIX:2008 where possible.
19599         * MODULES.html.sh (POSIX2008_URL): New variable.
19600         (posix_headers): Remove sys/timeb, ucontext.
19601         (posix2001_headers): New variable.
19602         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
19603         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
19604         index, makecontext, mktemp, pthread_attr_getstackaddr,
19605         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
19606         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
19607         (posix2001_functions): New variable.
19608         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
19609         otherwise.
19610
19611 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19612
19613         add missing include to parse-duration.c
19614         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
19615         * modules/parse-duration (Depends-on): Add xalloc.
19616
19617         fix sed script reading maint.mk
19618         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
19619         (syntax-check-rules): Use it.
19620
19621 2008-12-09  Bruno Haible  <bruno@clisp.org>
19622
19623         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
19624         MacOS X 10.4/PowerPC.
19625         Reported by Simon Josefsson.
19626
19627 2008-12-08  Jim Meyering  <meyering@redhat.com>
19628
19629         work around mingw's lack of some S_IF definitions
19630         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
19631         Reported by Simon Josefsson.
19632
19633 2008-12-08  Bruno Haible  <bruno@clisp.org>
19634
19635         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
19636         applied to variables. Needed on MacOS X 10.4/PowerPC.
19637         Reported by Simon Josefsson.
19638
19639 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
19640         and Eric Blake  <ebb9@byu.net>
19641
19642         assert: honor --enable-assert
19643         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
19644         order to honor --enable-assert, rather than treating it as a
19645         synonym for --disable-assert.
19646
19647 2008-12-08  Jim Meyering  <meyering@redhat.com>
19648
19649         * lib/posixtm.c: Remove now-useless declaration of mktime.
19650
19651         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
19652
19653 2008-12-07  Bruno Haible  <bruno@clisp.org>
19654
19655         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
19656         test_once): Mark functions as static.
19657         * tests/test-tls.c (test_tls): Likewise.
19658
19659 2008-12-07  Bruno Haible  <bruno@clisp.org>
19660
19661         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
19662         iconv_register_autodetect.
19663
19664 2008-12-07  Jim Meyering  <meyering@redhat.com>
19665
19666         posixtm.c: avoid a warning
19667         * lib/posixtm.c (posixtime): Don't initialize tm0.
19668         It's no longer needed to placate gcc4's -Wuninitialized,
19669         and the attempt to placate would elicit a new warning.
19670
19671         unicodeio.c: mark unused parameters
19672         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
19673         (fallback_failure_callback): Likewise.
19674
19675 2008-12-07  Bruno Haible  <bruno@clisp.org>
19676
19677         * gnulib-tool (func_create_testdir): When building the tests
19678         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
19679         Reported by Simon Josefsson.
19680
19681 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19682
19683         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
19684
19685 2008-12-06  Bruno Haible  <bruno@clisp.org>
19686
19687         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
19688         Suggested by Eric Blake.
19689
19690 2008-12-06  Bruno Haible  <bruno@clisp.org>
19691
19692         Fix a c-stack test failure on MacOS X.
19693         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
19694         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
19695         handler for SIGBUS as well.
19696         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
19697         install a signal handler for SIGBUS as well.
19698         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
19699
19700 2008-12-06  Bruno Haible  <bruno@clisp.org>
19701
19702         Advocacy documentation.
19703         * doc/gnulib-intro.texi (Benefits): New section.
19704         * doc/gnulib.texi: Update.
19705
19706 2008-12-06  Bruno Haible  <bruno@clisp.org>
19707
19708         Document the 'manywarnings' module.
19709         * doc/manywarnings.texi: New file.
19710         * doc/gnulib.texi: Include it.
19711
19712 2008-12-05  Eric Blake  <ebb9@byu.net>
19713
19714         tests: silence some gcc warnings
19715         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
19716         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
19717         type mismatches.
19718
19719 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19720             Bruno Haible  <bruno@clisp.org>
19721
19722         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
19723
19724 2008-11-29  Jim Meyering  <meyering@redhat.com>
19725
19726         unicodeio.c: mark unused parameters
19727         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
19728         (fallback_failure_callback): Likewise.
19729
19730         fts: fix a thinko
19731         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
19732         (set_stat_type): Return S_IF*-valued "type" directly.
19733         Prompted by James Youngman's spotting a related bug.
19734         Confirmed by further testing through find.
19735
19736         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
19737         * lib/fts.c (D_TYPE): Define.
19738         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
19739         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
19740         (s_ifmt_shift_bits): New function.
19741         (set_stat_type): New function.
19742         (fts_build): When not calling fts_stat, call set_stat_type
19743         to propagate dirent.d_type info to fts_read caller.
19744         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
19745         fts_statp->st_mode type information may be valid.
19746
19747 2008-11-28  Simon Josefsson  <simon@josefsson.org>
19748
19749         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
19750         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
19751         <sds@gnu.org>.
19752
19753 2008-11-20  Bruno Haible  <bruno@clisp.org>
19754
19755         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
19756         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
19757         INCLUDE_NEXT.
19758         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
19759         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
19760         * modules/math (Makefile.am): Substitute
19761         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
19762         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19763
19764 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
19765             Bruno Haible  <bruno@clisp.org>
19766
19767         * lib/stdint.in.h: Define all type macros so that their expansion is
19768         a single typedef'ed token. Fixes a compilation failure in Boost which
19769         does "using ::int8_t;".
19770
19771 2008-11-18  Simon Josefsson  <simon@josefsson.org>
19772
19773         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
19774         gl_MANYWARN_ALL_GCC.
19775         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
19776         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
19777         * modules/manywarnings: New file.
19778         * MODULES.html.sh: Mention manywarnings module.
19779
19780 2008-11-18  Bruno Haible  <bruno@clisp.org>
19781
19782         * doc/gnulib-tool.texi (Unit tests): New section.
19783
19784 2008-11-18  Simon Josefsson  <simon@josefsson.org>
19785
19786         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
19787         paths like 'lib/po/foo.po'.
19788
19789 2008-11-17  Simon Josefsson  <simon@josefsson.org>
19790
19791         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
19792         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
19793
19794 2008-11-17  Simon Josefsson  <simon@josefsson.org>
19795
19796         * m4/warnings.m4: Use CPPFLAGS to really check whether the
19797         parameter works.
19798
19799 2008-11-17  Simon Josefsson  <simon@josefsson.org>
19800
19801         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
19802
19803 2008-11-17  Bruce Korb  <bkorb@gnu.org>
19804
19805         * modules/parse-duration-tests: New file.
19806         * tests/test-parse-duration.sh: New file.
19807         * tests/test-parse-duration.c: New file.
19808
19809         New module 'parse-duration'.
19810         * lib/parse-duration.h: New file.
19811         * lib/parse-duration.c: New file.
19812         * modules/parse-duration: New file.
19813
19814 2008-11-17  Bruno Haible  <bruno@clisp.org>
19815
19816         * tests/test-select-out.sh: Comment out the first pipe test.
19817         Reported by Simon Josefsson.
19818
19819 2008-11-17  Bruno Haible  <bruno@clisp.org>
19820
19821         * modules/getaddrinfo (Depends-on): Add servent, hostent.
19822         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
19823         gl_HOSTENT.
19824
19825 2008-11-17  Bruno Haible  <bruno@clisp.org>
19826
19827         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
19828         -lnetwork and -lnet. Needed for Haiku and BeOS.
19829
19830 2008-11-16  Bruno Haible  <bruno@clisp.org>
19831
19832         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
19833
19834 2008-11-16  Bruno Haible  <bruno@clisp.org>
19835
19836         Avoid test failure on Haiku.
19837         * tests/test-fsync.c: Include <errno.h>.
19838         (main): Don't require that fsync (0) fails.
19839
19840 2008-11-15  Bruno Haible  <bruno@clisp.org>
19841
19842         New module 'hostent'.
19843         * modules/hostent: New file.
19844         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
19845
19846 2008-11-15  Bruno Haible  <bruno@clisp.org>
19847
19848         New module 'servent'.
19849         * modules/servent: New file.
19850         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
19851
19852 2008-11-15  Bruno Haible  <bruno@clisp.org>
19853
19854         Avoid generating same test program with two different rules.
19855         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
19856         test-frexp to test-frexp-nolibm.
19857         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
19858         test-frexpl to test-frexpl-nolibm.
19859
19860 2008-11-15  Bruno Haible  <bruno@clisp.org>
19861
19862         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
19863         $(FREXPL_LIBM).
19864
19865 2008-11-15  Bruno Haible  <bruno@clisp.org>
19866
19867         * lib/netdb.in.h: Activate the definitions also when the system's
19868         <netdb.h> has 'struct addrinfo'.
19869         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
19870         EAI_OVERFLOW or AI_NUMERICSERV.
19871         * doc/posix-headers/netdb.texi: Document the problem.
19872
19873 2008-11-15  Bruno Haible  <bruno@clisp.org>
19874
19875         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
19876
19877         Make the 'sched' module work on platforms where <sched.h> exists but
19878         is incomplete (such as Haiku).
19879         * lib/sched.in.h; Include the system's <sched.h> if it exists.
19880         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
19881         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
19882         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
19883         HAVE_STRUCT_SCHED_PARAM.
19884         * modules/sched (Depends-on): Add include_next.
19885         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
19886         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
19887         * doc/posix-headers/sched.texi: Document the issue.
19888
19889 2008-11-13  Jim Meyering  <meyering@redhat.com>
19890
19891         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
19892         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
19893         test would fail due to the difference in the Report bugs to ...
19894         line.  The expected address is empty, "<>", while the actual
19895         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
19896
19897 2008-11-12  Bruno Haible  <bruno@clisp.org>
19898
19899         lstat: don't compile lstat.c on systems lacking lstat
19900         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
19901         which don't have lstat; this is handled by lib/sys_stat.in.h already.
19902         Reported by Daniel P. Berrange via Jim Meyering.
19903
19904 2008-11-12  Jim Meyering  <meyering@redhat.com>
19905
19906         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
19907
19908 2008-11-12  Simon Josefsson  <simon@josefsson.org>
19909
19910         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
19911         instead.
19912
19913 2008-11-12  Bruno Haible  <bruno@clisp.org>
19914
19915         * lib/unicodeio.c: Include unistr.h.
19916         (utf8_wctomb): Remove function.
19917         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
19918
19919 2008-11-12  Simon Josefsson  <simon@josefsson.org>
19920
19921         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
19922         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
19923         <bruno@clisp.org>.
19924         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
19925
19926 2008-11-12  Simon Josefsson  <simon@josefsson.org>
19927
19928         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
19929         * doc/gnulib.texi: Add section for warnings.
19930
19931 2008-11-11  Bruno Haible  <bruno@clisp.org>
19932
19933         * lib/sockets.h: Add a comment.
19934
19935 2008-11-11  Karl Berry  <karl@gnu.org>
19936
19937         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
19938
19939 2008-11-11  Eric Blake  <ebb9@byu.net>
19940
19941         fdl.texi: avoid git symlinks
19942         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
19943
19944 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19945
19946         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
19947
19948 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19949
19950         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
19951         (gl_WARN_ADD): Substitute $2 if literal.
19952
19953 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19954
19955         * m4/warning.m4: Remove.
19956
19957 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19958
19959         * m4/warnings.m4: Almost complete rewrite. :-)
19960
19961 2008-11-10  Simon Josefsson  <simon@josefsson.org>
19962
19963         * modules/warnings: New module.
19964         * m4/warnings.m4: New file.
19965         * MODULES.html.sh: Mention warnings module.
19966         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
19967         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19968
19969 2008-11-10  Eric Blake  <ebb9@byu.net>
19970
19971         fdl.texi: make a symlink to the latest version
19972         * doc/standards.texi: Revert today's earlier change.
19973         * doc/fdl-1.2.texi: Rename from old fdl.texi...
19974         * doc/fdl.texi: ...and replace this with a symlink to the newer
19975         fdl-1.3.texi.
19976
19977 2008-11-10  Bruno Haible  <bruno@clisp.org>
19978
19979         * tests/test-select-fd.c (main): Accept the result file name as fourth
19980         argument.
19981         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
19982         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
19983
19984 2008-11-10  Bruno Haible  <bruno@clisp.org>
19985
19986         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
19987         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
19988         as autoconf-substituted macros.
19989         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
19990         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
19991         gl_NETDB_H_DEFAULTS. Set these variables.
19992         * modules/netdb (Makefile.am): Substitute these variables.
19993
19994 2008-11-10  Eric Blake  <ebb9@byu.net>
19995
19996         standards.texi: include correct file for FDL 1.3
19997         * doc/standards.texi (GNU Free Documentation License): Change
19998         include file to pull in FDL 1.3, not 1.2.
19999
20000         fdl.texi: revert accidental change to license
20001         * doc/fdl.texi: This is FDL 1.2, not 1.3.
20002
20003 2008-11-10  Bruno Haible  <bruno@clisp.org>
20004
20005         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
20006         cross-compiling guesses also when the native compile gives no result.
20007
20008 2008-11-10  Bruno Haible  <bruno@clisp.org>
20009
20010         * lib/spawni.c (__spawni): Force variable into the stack.
20011
20012 2008-11-10  Bruno Haible  <bruno@clisp.org>
20013
20014         Add support for Haiku.
20015         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
20016         glibc and BeOS, but also on Haiku.
20017         * lib/fpurge.c (fpurge): Likewise.
20018         * lib/freadable.c (freadable): Likewise.
20019         * lib/freadahead.c (freadahead): Likewise.
20020         * lib/freading.c (freading): Likewise.
20021         * lib/freadptr.c (freadptr): Likewise.
20022         * lib/freadseek.c (freadptrinc): Likewise.
20023         * lib/fseeko.c (rpl_fseeko): Likewise.
20024         * lib/fseterr.c (fseterr): Likewise.
20025         * lib/fwritable.c (fwritable): Likewise.
20026         * lib/fwriting.c (fwriting): Likewise.
20027         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
20028
20029 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
20030
20031         * lib/config.charset: Treat Haiku like BeOS.
20032
20033 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
20034
20035         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
20036         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
20037
20038 2008-11-08  Bruno Haible  <bruno@clisp.org>
20039
20040         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
20041         AC_CACHE_CHECK.
20042
20043 2008-11-08  Bruno Haible  <bruno@clisp.org>
20044
20045         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
20046
20047 2008-11-08  Bruno Haible  <bruno@clisp.org>
20048
20049         * tests/test-select-fd.c: New file.
20050         * tests/test-select-in.sh: New file.
20051         * tests/test-select-out.sh: New file.
20052         * tests/test-select-stdin.c: New file.
20053         * modules/select-tests (Files): Add the new files.
20054         (Depends-on): Add gettimeofday.
20055         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
20056         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
20057         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
20058
20059 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
20060             Bruno Haible  <bruno@clisp.org>
20061
20062         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
20063
20064 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
20065
20066         * build-aux/pmccabe2html: Added support for C++ source files.
20067
20068 2008-11-05  Ben Pfaff  <blp@gnu.org>
20069
20070         Fix lib/close.c build on Windows.
20071         * modules/close (Files): Add lib/w32sock.h.
20072
20073 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
20074
20075         Accept Bison's NEWS format.
20076         * build-aux/announce-gen (print_news_deltas): Tweak
20077         $re_prefix.
20078
20079 2008-11-04  Bruno Haible  <bruno@clisp.org>
20080
20081         * modules/random_r (Maintainer): Add glibc.
20082
20083 2008-11-04  Simon Josefsson  <simon@josefsson.org>
20084
20085         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
20086         by karl@freefriends.org (Karl Berry).
20087         * doc/alloca.texi: Likewise.
20088         * doc/c-ctype.texi: Likewise.
20089         * doc/c-strcase.texi: Likewise.
20090         * doc/c-strcaseeq.texi: Likewise.
20091         * doc/c-strcasestr.texi: Likewise.
20092         * doc/c-strstr.texi: Likewise.
20093         * doc/c-strtod.texi: Likewise.
20094         * doc/c-strtold.texi: Likewise.
20095         * doc/ctime.texi: Likewise.
20096         * doc/error.texi: Likewise.
20097         * doc/fdl.texi: Likewise.
20098         * doc/gcd.texi: Likewise.
20099         * doc/getdate.texi: Likewise.
20100         * doc/gnulib-intro.texi: Likewise.
20101         * doc/gnulib-tool.texi: Likewise.
20102         * doc/gnulib.texi: Likewise.
20103         * doc/inet_ntoa.texi: Likewise.
20104         * doc/maintain.texi: Likewise.
20105         * doc/make-stds.texi: Likewise.
20106         * doc/quote.texi: Likewise.
20107         * doc/regexprops-generic.texi: Likewise.
20108         * doc/standards.texi: Likewise.
20109         * doc/verify.texi: Likewise.
20110         * doc/visibility.texi: Likewise.
20111         * doc/gnulib.texi (GNU Free Documentation License): Include
20112         fdl-1.3.texi instead of fdl.texi.
20113
20114 2008-11-04  Simon Josefsson  <simon@josefsson.org>
20115
20116         * doc/fdl-1.3.texi: New file, from
20117         <http://www.gnu.org/licenses/fdl-1.3.texi>.
20118         * modules/fdl-1.3: Add.
20119         * MODULES.html.sh: Add fdl-1.3.
20120
20121 2008-11-03  Bruno Haible  <bruno@clisp.org>
20122
20123         Make determination of absolute name of header file work with AIX xlc.
20124         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
20125         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
20126         preprocessing.
20127         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
20128         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
20129
20130 2008-11-03  Simon Josefsson  <simon@josefsson.org>
20131
20132         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
20133         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
20134         <ludo@gnu.org>.
20135
20136 2008-11-02  Bruno Haible  <bruno@clisp.org>
20137
20138         Mark 'strpbrk' obsolete.
20139         * modules/strpbrk (Status, Notice): New sections.
20140         * modules/strtok_r (Depends-on): Add strpbrk.
20141
20142 2008-11-02  Bruno Haible  <bruno@clisp.org>
20143
20144         Mark 'strdup' obsolete.
20145         * modules/strdup (Status, Notice): New sections.
20146         * modules/findprog (Depends-on): Add strdup.
20147         * modules/getaddrinfo (Depends-on): Likewise.
20148         * modules/localename (Depends-on): Likewise.
20149         * modules/relocatable-lib (Depends-on): Likewise.
20150         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
20151         * modules/relocatable-prog (Depends-on): Likewise.
20152         * modules/trim (Depends-on): Likewise.
20153         * modules/unictype/gen-ctype (Depends-on): Likewise.
20154         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
20155
20156 2008-11-02  Bruno Haible  <bruno@clisp.org>
20157
20158         Mark 'strcspn' obsolete.
20159         * modules/strcspn (Status, Notice): New sections.
20160
20161 2008-11-02  Bruno Haible  <bruno@clisp.org>
20162
20163         Mark 'rmdir' obsolete.
20164         * modules/rmdir (Status, Notice): New sections.
20165         * modules/clean-temp (Depends-on): Add rmdir.
20166         * modules/openat (Depends-on): Likewise.
20167
20168 2008-11-02  Bruno Haible  <bruno@clisp.org>
20169
20170         Mark 'raise' obsolete.
20171         * modules/raise (Status, Notice): New sections.
20172         (Include): Specify <signal.h>.
20173         * modules/stdio (Depends-on): Add raise.
20174         * modules/write (Depends-on): Likewise.
20175
20176 2008-11-02  Bruno Haible  <bruno@clisp.org>
20177
20178         Mark 'memset' obsolete.
20179         * modules/memset (Status, Notice): New sections.
20180
20181 2008-11-02  Bruno Haible  <bruno@clisp.org>
20182
20183         Mark 'memmove' obsolete.
20184         * modules/memmove (Status, Notice): New sections.
20185         * modules/argp (Depends-on): Add memmove.
20186         * modules/argz (Depends-on): Likewise.
20187         * modules/canonicalize (Depends-on): Likewise.
20188         * modules/canonicalize-lgpl (Depends-on): Likewise.
20189         * modules/fts (Depends-on): Likewise.
20190         * modules/getcwd (Depends-on): Likewise.
20191         * modules/human (Depends-on): Likewise.
20192         * modules/regex (Depends-on): Likewise.
20193         * modules/striconveh (Depends-on): Likewise.
20194         * modules/trim (Depends-on): Likewise.
20195         * modules/unistr/u8-move (Depends-on): Likewise.
20196         * modules/unistr/u16-move (Depends-on): Likewise.
20197         * modules/unistr/u32-move (Depends-on): Likewise.
20198
20199 2008-11-02  Bruno Haible  <bruno@clisp.org>
20200
20201         Mark 'memcpy' obsolete.
20202         * modules/memcpy (Status, Notice): New sections.
20203
20204 2008-11-02  Bruno Haible  <bruno@clisp.org>
20205
20206         Mark 'memcmp' obsolete.
20207         * modules/memcmp (Status, Notice): New sections.
20208         * modules/argmatch (Depends-on): Add memchr.
20209         * modules/backupfile (Depends-on): Likewise.
20210         * modules/c-strcasestr (Depends-on): Likewise.
20211         * modules/crypto/des (Depends-on): Likewise.
20212         * modules/csharpcomp (Depends-on): Likewise.
20213         * modules/fnmatch (Depends-on): Likewise.
20214         * modules/git-merge-changelog (Depends-on): Likewise.
20215         * modules/isnand (Depends-on): Likewise.
20216         * modules/isnand-nolibm (Depends-on): Likewise.
20217         * modules/isnanf (Depends-on): Likewise.
20218         * modules/isnanf-nolibm (Depends-on): Likewise.
20219         * modules/isnanl (Depends-on): Likewise.
20220         * modules/isnanl-nolibm (Depends-on): Likewise.
20221         * modules/mbchar (Depends-on): Likewise.
20222         * modules/memcoll (Depends-on): Likewise.
20223         * modules/quotearg (Depends-on): Likewise.
20224         * modules/regex (Depends-on): Likewise.
20225         * modules/relocatable-prog (Depends-on): Likewise.
20226         * modules/same (Depends-on): Likewise.
20227         * modules/signbit (Depends-on): Likewise.
20228         * modules/strcasestr-simple (Depends-on): Likewise.
20229         * modules/unictype/gen-ctype (Depends-on): Likewise.
20230         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
20231         * modules/uniname/uniname (Depends-on): Likewise.
20232         * modules/unistr/u8-cmp (Depends-on): Likewise.
20233
20234 2008-11-02  Bruno Haible  <bruno@clisp.org>
20235
20236         Mark 'memchr' obsolete.
20237         * modules/memchr (Status, Notice): New sections.
20238         * modules/argp (Depends-on): Add memchr.
20239         * modules/base64 (Depends-on): Likewise.
20240         * modules/c-strcasestr (Depends-on): Likewise.
20241         * modules/chdir-long (Depends-on): Likewise.
20242         * modules/fnmatch (Depends-on): Likewise.
20243         * modules/getsubopt (Depends-on): Likewise.
20244         * modules/git-merge-changelog (Depends-on): Likewise.
20245         * modules/glob (Depends-on): Likewise.
20246         * modules/strcasestr-simple (Depends-on): Likewise.
20247         * modules/strnlen (Depends-on): Likewise.
20248
20249 2008-11-02  Bruno Haible  <bruno@clisp.org>
20250
20251         Mark 'atexit' obsolete.
20252         * modules/atexit (Status, Notice): New sections.
20253         * modules/chdir-long (Depends-on): Add atexit.
20254         * modules/wait-process (Depends-on): Likewise.
20255
20256 2008-11-02  Bruno Haible  <bruno@clisp.org>
20257
20258         * gnulib-tool: New option --with-obsolete.
20259         (func_usage): Document it.
20260         (func_modules_transitive_closure): Drop obsolete dependencies if
20261         incobsolete is not true.
20262         (func_import): Read and save the incobsolete variable to the cache.
20263
20264 2008-11-02  Bruno Haible  <bruno@clisp.org>
20265
20266         * modules/TEMPLATE-EXTENDED: New field 'Status'.
20267         * gnulib-tool: New option --extract-status.
20268         (func_usage): Document it.
20269         (sed_extract_prog): Recognize it.
20270         (func_get_status): New function.
20271
20272 2008-10-30  Simon Josefsson  <simon@josefsson.org>
20273
20274         * modules/sockets (License): Change from LGPL to LGPLv2+.
20275
20276 2008-10-28  Simon Josefsson  <simon@josefsson.org>
20277
20278         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
20279
20280 2008-10-28  Simon Josefsson  <simon@josefsson.org>
20281
20282         * MODULES.html.sh (Support for systems lacking POSIX:2001):
20283         Mention times and sys_times.
20284         * modules/sys_times, modules/sys_times-tests: New modules.
20285         * modules/times, modules/times-tests: Likewise
20286         * m4/sys_times_h.m4: New file.
20287         * lib/sys_times.in.h: Likewise
20288         * lib/times.c: Likewise.
20289         * tests/test-sys_times.c: Likewise.
20290         * tests/test-times.c: Likewise.
20291         * doc/posix-headers/sys_times.texi: Update.
20292         * doc/posix-functions/times.texi: Update.
20293
20294 2008-10-28  Jim Meyering  <meyering@redhat.com>
20295
20296         * modules/tempname (Depends-on): Add lstat.
20297
20298         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
20299
20300 2008-10-28  Simon Josefsson  <simon@josefsson.org>
20301
20302         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
20303         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
20304         using idiom used elsewhere in gnulib.
20305
20306 2008-10-27  Jim Meyering  <meyering@redhat.com>
20307
20308         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
20309
20310 2008-10-27  Simon Josefsson  <simon@josefsson.org>
20311
20312         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
20313         TESTS_ENVIRONMENT, for shell scripts that needs to call built
20314         programs.
20315         * tests/test-argp-2.sh: Use $EXEEXT when needed.
20316
20317 2008-10-27  Simon Josefsson  <simon@josefsson.org>
20318
20319         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
20320
20321 2008-10-27  Bruno Haible  <bruno@clisp.org>
20322
20323         * tests/test-lstat.c: Include <stdio.h>.
20324
20325 2008-10-27  Simon Josefsson  <simon@josefsson.org>
20326
20327         * modules/lstat-tests: New module.
20328         * tests/test-lstat.c: New file.
20329
20330 2008-10-26  Jim Meyering  <meyering@redhat.com>
20331
20332         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
20333
20334 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20335             Bruno Haible  <bruno@clisp.org>
20336
20337         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
20338         * modules/configmake (Include): Add a note that the include must come
20339         after all system headers.
20340         * lib/javaversion.c: Include configmake.h after all other includes.
20341
20342 2008-10-26  Bruno Haible  <bruno@clisp.org>
20343
20344         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
20345         HAVE_STRUCT_RANDOM_DATA to 1.
20346         (gl_STDLIB_H): Simplify.
20347
20348 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20349
20350         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
20351         substitute HAVE_STRUCT_RANDOM_DATA.
20352         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
20353         random_data.
20354         * modules/stdlib (Makefile.am): Substitute
20355         HAVE_STRUCT_RANDOM_DATA.
20356
20357 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20358
20359         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
20360         * doc/gnulib-intro.texi (Copyright): Likewise.
20361
20362 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20363
20364         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
20365         findings.
20366
20367 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
20368             Bruno Haible  <bruno@clisp.org>
20369
20370         * lib/unistd.in.h: Include <winsock2.h>.
20371         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
20372         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
20373         Provide dummy declarations.
20374         (gethostname): Override.
20375         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
20376         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
20377         gl_PREREQ_SYS_H_WINSOCK2.
20378         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
20379         * doc/posix-functions/gethostname.texi: More details.
20380
20381 2008-10-25  Bruno Haible  <bruno@clisp.org>
20382
20383         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
20384         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
20385         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
20386
20387         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
20388         here ...
20389         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
20390         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
20391         gl_UNISTD_H_DEFAULTS.
20392
20393 2008-10-25  Eric Blake  <ebb9@byu.net>
20394
20395         signbit: avoid spurious compiler failure
20396         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
20397         declarations inside function.
20398
20399 2008-10-24  Simon Josefsson  <simon@josefsson.org>
20400             Bruno Haible  <bruno@clisp.org>
20401
20402         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
20403         * modules/random_r (Depends-on): Add stdint.
20404
20405 2008-10-24  Bruno Haible  <bruno@clisp.org>
20406
20407         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
20408         Eggert.
20409         * modules/strerror (License): Likewise.
20410
20411 2008-10-24  Jim Meyering  <meyering@redhat.com>
20412
20413         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
20414         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
20415
20416 2008-10-24  Eric Blake  <ebb9@byu.net>
20417
20418         getgroups: fix compilation when getgroups is available
20419         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
20420         but with <config.h> override of getgroups disabled.
20421
20422 2008-10-24  Simon Josefsson  <simon@josefsson.org>
20423
20424         * doc/gnulib.texi (Header files): Add note about C++ problems.
20425         Explained by Bruno Haible <bruno@clisp.org>.
20426
20427 2008-10-23  Bruno Haible  <bruno@clisp.org>
20428
20429         Define a dummy SA_NODEFER macro on Interix.
20430         * lib/signal.in.h (SA_NODEFER): Define fallback.
20431         Reported by Aleksey Cheusov <cheusov@tut.by> via
20432         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
20433
20434 2008-10-23  Bruno Haible  <bruno@clisp.org>
20435
20436         * modules/freadahead (License): Change to LGPLv2+.
20437         Suggested by Simon Josefsson.
20438
20439 2008-10-23  Jim Meyering  <meyering@redhat.com>
20440
20441         random_r: new module
20442         * modules/random_r: New file.
20443         * m4/random_r.m4: New file.
20444         * lib/random_r.c: New file, from glibc.
20445         * modules/random_r-tests: New file.
20446         * tests/test-random_r.c: New file.
20447         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
20448          Declare.
20449         (RAND_MAX): Define.
20450         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
20451         * modules/stdlib: Substitute them, too.
20452         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
20453         * doc/glibc-functions/initstate_r.texi: Mention the new module.
20454         * doc/glibc-functions/random_r.texi: Likewise.
20455         * doc/glibc-functions/setstate_r.texi: Likewise.
20456         * doc/glibc-functions/srandom_r.texi: Likewise.
20457         * config/srclist.txt: Mention it.
20458
20459 2008-10-23  David Lutterkort  <lutter@redhat.com>
20460
20461         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
20462         link requirement
20463
20464 2008-10-23  Jim Meyering  <meyering@redhat.com>
20465
20466         selinux-h: mark parameters of stub functions as intentionally unused
20467         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
20468         * lib/se-context.in.h: Likewise.
20469
20470 2008-10-22  Simon Josefsson  <simon@josefsson.org>
20471
20472         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
20473
20474 2008-10-22  Simon Josefsson  <simon@josefsson.org>
20475
20476         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
20477
20478 2008-10-22  Eric Blake  <ebb9@byu.net>
20479
20480         glthread/thread: avoid compiler warning
20481         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
20482         Add unreachable abort to silence compiler.
20483
20484 2008-10-22  Eric Blake  <ebb9@byu.net>
20485
20486         netdb: also supply struct addrinfo for cygwin 1.5.x
20487         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
20488         older cygwin.
20489         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
20490         cygwin.
20491         * doc/posix-headers/netdb.texi (netdb.h): Document this.
20492
20493 2008-10-22  Bruno Haible  <bruno@clisp.org>
20494
20495         * users.txt: Update entry about pspp.
20496
20497 2008-10-21  Bruno Haible  <bruno@clisp.org>
20498
20499         Simplification.
20500         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
20501         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
20502
20503         Simplification.
20504         * lib/ioctl.c (ioctl): Don't undefine.
20505         * lib/socket.c (socket): Don't undefine.
20506
20507         Remove unused module indicator macros.
20508         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
20509         GNULIB_$1 as a C macro.
20510
20511         * doc/posix-functions/close.texi: Undo last change.
20512         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
20513         Windows platforms.
20514
20515 2008-10-21  Bruno Haible  <bruno@clisp.org>
20516
20517         Add gethostname() declaration to <unistd.h>.
20518         * lib/unistd.in.h (gethostname): New declaration.
20519         * lib/gethostname.c: Include <unistd.h>.
20520         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
20521         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
20522         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
20523         and HAVE_GETHOSTNAME.
20524         * modules/gethostname (Depends-on): Add unistd.
20525         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20526         (Include): Specify <unistd.h>.
20527         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
20528         HAVE_GETHOSTNAME.
20529         * tests/test-gethostname.c: Include <unistd.h> first.
20530
20531 2008-10-21  Bruno Haible  <bruno@clisp.org>
20532
20533         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
20534         * modules/select-tests (Depends-on): Likewise.
20535         Reported by Simon Josefsson.
20536
20537 2008-10-21  Simon Josefsson  <simon@josefsson.org>
20538
20539         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
20540         * lib/accept.c: New file, based on winsock.c.
20541         * lib/bind.c: New file, based on winsock.c.
20542         * lib/connect.c: New file, based on winsock.c.
20543         * lib/getpeername.c: New file, based on winsock.c.
20544         * lib/getsockname.c: New file, based on winsock.c.
20545         * lib/getsockopt.c: New file, based on winsock.c.
20546         * lib/ioctl.c: New file, based on winsock.c.
20547         * lib/listen.c: New file, based on winsock.c.
20548         * lib/recv.c: New file, based on winsock.c.
20549         * lib/recvfrom.c: New file, based on winsock.c.
20550         * lib/send.c: New file, based on winsock.c.
20551         * lib/sendto.c: New file, based on winsock.c.
20552         * lib/setsockopt.c: New file, based on winsock.c.
20553         * lib/shutdown.c: New file, based on winsock.c.
20554         * lib/socket.c: New file, based on winsock.c.
20555         * lib/w32sock.h: New file, based on winsock.c.
20556         * lib/winsock.c: Remove file.
20557         * modules/accept: Likewise.
20558         * modules/bind: Likewise.
20559         * modules/connect: Likewise.
20560         * modules/getpeername: Likewise.
20561         * modules/getsockname: Likewise.
20562         * modules/getsockopt: Likewise.
20563         * modules/ioctl: Likewise.
20564         * modules/listen: Likewise.
20565         * modules/recv: Likewise.
20566         * modules/recvfrom: Likewise.
20567         * modules/send: Likewise.
20568         * modules/sendto: Likewise.
20569         * modules/setsockopt: Likewise.
20570         * modules/shutdown: Likewise.
20571         * modules/socket: Use socket.c instead of winsock.c.
20572         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
20573         * doc/posix-functions/accept.texi: Doc fix.
20574         * doc/posix-functions/bind.texi: Doc fix.
20575         * doc/posix-functions/close.texi: Doc fix.
20576         * doc/posix-functions/connect.texi: Doc fix.
20577         * doc/posix-functions/getpeername.texi: Doc fix.
20578         * doc/posix-functions/getsockname.texi: Doc fix.
20579         * doc/posix-functions/getsockopt.texi: Doc fix.
20580         * doc/posix-functions/ioctl.texi: Doc fix.
20581         * doc/posix-functions/listen.texi: Doc fix.
20582         * doc/posix-functions/recv.texi: Doc fix.
20583         * doc/posix-functions/recvfrom.texi: Doc fix.
20584         * doc/posix-functions/send.texi: Doc fix.
20585         * doc/posix-functions/sendto.texi: Doc fix.
20586         * doc/posix-functions/setsockopt.texi: Doc fix.
20587         * doc/posix-functions/shutdown.texi: Doc fix.
20588         * doc/posix-functions/socket.texi: Doc fix.
20589
20590 2008-10-20  Bruno Haible  <bruno@clisp.org>
20591
20592         Take into account the role of SIGABRT_COMPAT on Windows 2008.
20593         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
20594         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
20595         as an alias for SIGABRT.
20596         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
20597         (sigaction): Map it to SIGABRT.
20598         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
20599
20600 2008-10-20  Bruno Haible  <bruno@clisp.org>
20601
20602         * lib/fts.c: Don't include lstat.h.
20603         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
20604
20605         Move the lstat() declaration to <sys/stat.h>.
20606         * lib/lstat.h: Remove file.
20607         * lib/sys_stat.in.h: Add special invocation convention.
20608         (lstat): New declaration.
20609         * lib/lstat.c (orig_lstat): New function.
20610         (rpl_lstat): Use orig_lstat instead of lstat.
20611         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
20612         AC_C_INLINE. Set REPLACE_LSTAT.
20613         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
20614         and REPLACE_LSTAT.
20615         * modules/lstat (Files): Remove lib/lstat.h.
20616         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
20617         (Include): Specify <sys/stat.h> instead of lstat.h.
20618         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
20619         REPLACE_LSTAT.
20620         * NEWS: Mention the change.
20621
20622 2008-10-20  Bruno Haible  <bruno@clisp.org>
20623
20624         * modules/posix_spawn-tests: New file.
20625         * tests/test-posix_spawn3.c: New file.
20626
20627 2008-10-20  Bruno Haible  <bruno@clisp.org>
20628
20629         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
20630         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
20631         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
20632         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
20633         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
20634
20635 2008-10-20  Bruno Haible  <bruno@clisp.org>
20636
20637         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
20638         of posix_spawn on AIX 5.3.
20639
20640 2008-10-20  Bruno Haible  <bruno@clisp.org>
20641
20642         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
20643
20644 2008-10-20  Bruno Haible  <bruno@clisp.org>
20645
20646         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
20647         of AC_LANG_PROGRAM.
20648
20649 2008-10-20  Simon Josefsson  <simon@josefsson.org>
20650
20651         * lib/netdb.in.h: Don't define GNU specific constants until they
20652         are supported or needed.  Reported by Bruno Haible
20653         <bruno@clisp.org>.
20654
20655 2008-10-20  Simon Josefsson  <simon@josefsson.org>
20656
20657         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
20658
20659 2008-10-20  Simon Josefsson  <simon@josefsson.org>
20660
20661         * lib/getaddrinfo.h: Remove file.
20662         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
20663         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
20664         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
20665         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
20666         * modules/netdb: Substitute GNULIB_GETADDRINFO.
20667         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
20668         * tests/test-getaddrinfo.c: Likewise.
20669         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
20670         * NEWS: Mention change.
20671
20672 2008-10-19  Bruno Haible  <bruno@clisp.org>
20673
20674         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
20675
20676 2008-10-19  Bruno Haible  <bruno@clisp.org>
20677
20678         * lib/wait-process.c: Include simply <sys/wait.h>.
20679         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
20680         WIFSTOPPED): Remove fallback definitions.
20681         * modules/wait-process (Depends-on): Add sys_wait.
20682
20683         New module 'sys_wait'.
20684         * modules/sys_wait: New file.
20685         * lib/sys_wait.in.h: New file, partially copied from
20686         lib/wait-process.c.
20687         * m4/sys_wait_h.m4: New file.
20688         * doc/posix-headers/sys_wait.texi: Mention the new module.
20689
20690 2008-10-19  Bruno Haible  <bruno@clisp.org>
20691
20692         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
20693
20694 2008-10-19  Bruno Haible  <bruno@clisp.org>
20695
20696         Assume that waitpid() fills an 'int' status, not a 'union wait'.
20697         * lib/wait-process.c (WAIT_T): Remove type.
20698         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
20699         (wait_subprocess): Update.
20700
20701 2008-10-19  Bruno Haible  <bruno@clisp.org>
20702
20703         New module 'atoll'.
20704         * modules/atoll: New file.
20705         * lib/stdlib.in.h (atoll): New declaration.
20706         * lib/atoll.c: New file, from glibc with modifications.
20707         * m4/atoll.m4: New file.
20708         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
20709         HAVE_ATOLL.
20710         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
20711         * doc/posix-functions/atoll.texi: Mention the new module.
20712
20713 2008-10-19  Bruno Haible  <bruno@clisp.org>
20714
20715         Add strtoull() declaration to <stdlib.h>.
20716         * lib/stdlib.in.h (strtoull): New declaration.
20717         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
20718         Set HAVE_STRTOULL.
20719         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
20720         HAVE_STRTOULL.
20721         * modules/strtoull (Depends-on): Add stdlib.
20722         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20723         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
20724         HAVE_STRTOULL.
20725
20726 2008-10-19  Bruno Haible  <bruno@clisp.org>
20727
20728         Add strtoll() declaration to <stdlib.h>.
20729         * lib/stdlib.in.h (strtoll): New declaration.
20730         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
20731         Set HAVE_STRTOLL.
20732         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
20733         HAVE_STRTOLL.
20734         * modules/strtoll (Depends-on): Add stdlib.
20735         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20736         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
20737
20738 2008-10-19  Bruno Haible  <bruno@clisp.org>
20739
20740         * modules/bcopy (Depends-on): Add strings.
20741         (Include): Specify <strings.h>.
20742
20743 2008-10-19  Bruno Haible  <bruno@clisp.org>
20744
20745         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
20746
20747 2008-10-19  Bruno Haible  <bruno@clisp.org>
20748
20749         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
20750         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
20751         mingw.
20752
20753 2008-10-19  Bruno Haible  <bruno@clisp.org>
20754
20755         * lib/atanl.c: Don't include isnanl.h.
20756         * lib/cosl.c: Likewise.
20757         * lib/ldexpl.c: Likewise.
20758         * lib/logl.c: Likewise.
20759         * lib/sinl.c: Likewise.
20760         * lib/sqrtl.c: Likewise.
20761         * lib/tanl.c: Likewise.
20762
20763         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
20764         * lib/isnanf.h: Remove file.
20765         * lib/isnand.h: Remove file.
20766         * lib/isnanl.h: Remove file.
20767         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
20768         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
20769         macros.
20770         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
20771         HAVE_ISNANF, don't define it as a C macro.
20772         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
20773         HAVE_ISNAND, don't define it as a C macro.
20774         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
20775         HAVE_ISNANL, don't define it as a C macro.
20776         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
20777         HAVE_ISNAN[FDL].
20778         * modules/isnanf (Files): Remove lib/isnanf.h.
20779         (Depends-on): Add math.
20780         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20781         (Include): Specify <math.h> instead of isnanf.h.
20782         * modules/isnand (Files): Remove lib/isnand.h.
20783         (Depends-on): Add math.
20784         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20785         (Include): Specify <math.h> instead of isnand.h.
20786         * modules/isnanl (Files): Remove lib/isnanl.h.
20787         (Depends-on): Add math.
20788         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20789         (Include): Specify <math.h> instead of isnanl.h.
20790         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
20791         HAVE_ISNAN[FDL].
20792         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
20793         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
20794         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
20795         * NEWS: Mention the change.
20796
20797 2008-10-18  Bruno Haible  <bruno@clisp.org>
20798
20799         Add getusershell(), setusershell(), endusershell() declarations to
20800         <unistd.h>.
20801         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
20802         declarations.
20803         * lib/getusershell.c: Include unistd.h.
20804         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
20805         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
20806         HAVE_GETUSERSHELL.
20807         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
20808         and HAVE_GETUSERSHELL.
20809         * modules/getusershell (Depends-on): Add unistd, extensions.
20810         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20811         (Include): Specify <unistd.h>.
20812         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
20813         HAVE_GETUSERSHELL.
20814
20815 2008-10-18  Bruno Haible  <bruno@clisp.org>
20816
20817         Add a getloadavg() declaration to <stdlib.h>.
20818         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
20819         getloadavg declaration.
20820         (getloadavg): New declaration.
20821         * lib/getloadavg.c: Include <stdlib.h> first.
20822         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
20823         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
20824         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
20825         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
20826         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
20827         * modules/getloadavg (Depends-on): Add stdlib, extensions.
20828         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20829         (Include): Specify <stdlib.h>.
20830         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
20831         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
20832
20833 2008-10-18  Bruno Haible  <bruno@clisp.org>
20834
20835         * lib/dirchownmod.c: Don't include lchmod.h.
20836
20837         Move the lchmod() declaration to <sys/stat.h>.
20838         * lib/lchmod.h: Remove file.
20839         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
20840         (lchmod): New declaration, moved here from lib/lchown.h.
20841         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
20842         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
20843         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
20844         and HAVE_LCHMOD.
20845         * modules/lchmod (Files): Remove lib/lchmod.h.
20846         (Depends-on): Add sys_stat, extensions.
20847         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
20848         (Include): Specify <sys/stat.h> instead of lchmod.h.
20849         * modules/sys_stat (Depends-on): Add link-warning.
20850         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
20851         definition of GL_LINK_WARNING.
20852         * NEWS: Mention the change.
20853
20854 2008-10-18  Bruno Haible  <bruno@clisp.org>
20855
20856         * lib/fchdir.c: Don't include dirfd.h.
20857         * lib/fts.c: Likewise.
20858         * lib/getcwd.c: Likewise.
20859         * lib/glob.c: Likewise.
20860
20861         Move the dirfd() declaration to <dirent.h>.
20862         * lib/dirfd.h: Remove file.
20863         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
20864         (dirfd): New declaration.
20865         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
20866         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
20867         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
20868         HAVE_DECL_DIRFD.
20869         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
20870         HAVE_DECL_DIRFD.
20871         * modules/dirfd (Files): Remove lib/dirfd.h.
20872         (Depends-on): Add dirent, extensions.
20873         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
20874         (Include): Specify <dirent.h> instead of dirfd.h.
20875         * modules/dirent (Depends-on): Add link-warning.
20876         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
20877         definition of GL_LINK_WARNING.
20878         * NEWS: Mention the change.
20879
20880 2008-10-18  Bruno Haible  <bruno@clisp.org>
20881
20882         Move the euidaccess() declaration to <unistd.h>.
20883         * lib/euidaccess.h: Remove file.
20884         * lib/unistd.in.h (euidaccess): New declaration.
20885         * lib/euidaccess.c: Don't include euidaccess.h.
20886         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
20887         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
20888         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
20889         and HAVE_EUIDACCESS.
20890         * modules/euidaccess (Files): Remove lib/euidaccess.h.
20891         (Depends-on): Add unistd.
20892         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20893         (Include): Specify <unistd.h> instead of euidaccess.h.
20894         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
20895         HAVE_EUIDACCESS.
20896         * NEWS: Mention the change.
20897
20898 2008-10-18  Bruno Haible  <bruno@clisp.org>
20899
20900         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
20901
20902         Move the getdomainname() declaration to <unistd.h>.
20903         * lib/getdomainname.h: Remove file.
20904         * lib/unistd.in.h (getdomainname): New declaration.
20905         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
20906         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
20907         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
20908         HAVE_GETDOMAINNAME.
20909         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20910         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
20911         * modules/getdomainname (Files): Remove lib/getdomainname.h.
20912         (Depends-on): Add unistd, extensions.
20913         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20914         (Includes): Specify <unistd.h> instead of getdomainname.h.
20915         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
20916         HAVE_GETDOMAINNAME.
20917         * NEWS: Mention the change.
20918
20919 2008-10-18  Bruno Haible  <bruno@clisp.org>
20920
20921         * modules/dirent: New file.
20922         * m4/dirent_h.m4: New file.
20923         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
20924         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
20925         * modules/fchdir (Files): Remove lib/dirent.in.h.
20926         (Depends-on): Add dirent.
20927         (Makefile.am): Move rules to modules/dirent.
20928         * doc/posix-headers/dirent.texi: Mention the new module.
20929
20930 2008-10-18  Bruno Haible  <bruno@clisp.org>
20931
20932         Avoid -Wunused-parameter warnings in public gnulib header files.
20933         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
20934         macro.
20935         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
20936
20937 2008-10-18  Bruno Haible  <bruno@clisp.org>
20938
20939         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
20940         * doc/glibc-functions/error.texi: Mention the module 'error'.
20941         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
20942         * doc/glibc-functions/getdomainname.texi: Mention the module
20943         'getdomainname'.
20944         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
20945         * doc/glibc-functions/getpagesize.texi: Mention the module
20946         'getpagesize'.
20947         * doc/glibc-functions/getusershell.texi: Mention the module
20948         'getusershell'.
20949         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
20950         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
20951         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
20952         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
20953         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
20954         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
20955         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
20956         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
20957         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
20958         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
20959         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
20960         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
20961         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
20962         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
20963
20964 2008-10-17  Bruno Haible  <bruno@clisp.org>
20965
20966         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
20967         HP-UX and IRIX, use -0.0L.
20968         * tests/test-ceill.c (minus_zero): Likewise.
20969         * tests/test-floorl.c (minus_zero): Likewise.
20970         * tests/test-frexpl.c (minus_zero): Likewise.
20971         * tests/test-isnan.c (minus_zerol): Likewise.
20972         * tests/test-isnanl.h (minus_zero): Likewise.
20973         * tests/test-ldexpl.c (minus_zero): Likewise.
20974         * tests/test-roundl.c (minus_zero): Likewise.
20975         * tests/test-signbit.c (minus_zerol): Likewise.
20976         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
20977         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
20978         * tests/test-truncl.c (minus_zero): Likewise.
20979         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
20980         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
20981         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
20982         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
20983
20984 2008-10-17  Bruno Haible  <bruno@clisp.org>
20985
20986         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
20987         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
20988         that it gets activated only for gcc >= 3.0.
20989         * lib/dirent.in.h: Likewise.
20990         * lib/errno.in.h: Likewise.
20991         * lib/fcntl.in.h: Likewise.
20992         * lib/float.in.h: Likewise.
20993         * lib/iconv.in.h: Likewise.
20994         * lib/inttypes.in.h: Likewise.
20995         * lib/locale.in.h: Likewise.
20996         * lib/math.in.h: Likewise.
20997         * lib/netdb.in.h: Likewise.
20998         * lib/netinet_in.in.h: Likewise.
20999         * lib/search.in.h: Likewise.
21000         * lib/signal.in.h: Likewise.
21001         * lib/spawn.in.h: Likewise.
21002         * lib/stdarg.in.h: Likewise.
21003         * lib/stdint.in.h: Likewise.
21004         * lib/stdio.in.h: Likewise.
21005         * lib/stdlib.in.h: Likewise.
21006         * lib/string.in.h: Likewise.
21007         * lib/strings.in.h: Likewise.
21008         * lib/sys_file.in.h: Likewise.
21009         * lib/sys_ioctl.in.h: Likewise.
21010         * lib/sys_select.in.h: Likewise.
21011         * lib/sys_socket.in.h: Likewise.
21012         * lib/sys_stat.in.h: Likewise.
21013         * lib/sys_time.in.h: Likewise.
21014         * lib/sysexits.in.h: Likewise.
21015         * lib/time.in.h: Likewise.
21016         * lib/unistd.in.h: Likewise.
21017         * lib/wchar.in.h: Likewise.
21018         * lib/wctype.in.h: Likewise.
21019         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21020
21021 2008-10-17  Jim Meyering  <meyering@redhat.com>
21022
21023         ignore-value: don't depend on inline module
21024         * modules/ignore-value (Depends-on): Remove 'inline'.
21025         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
21026         Suggestion from Bruno Haible.
21027
21028 2008-10-17  Bruno Haible  <bruno@clisp.org>
21029
21030         New implementation of condition variables for Win32.
21031         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
21032         (gl_linked_waitqueue_t): New type.
21033         (gl_cond_t): Use it.
21034         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
21035         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
21036         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
21037         (glthread_cond_init_func, glthread_cond_wait_func,
21038         glthread_cond_timedwait_func, glthread_cond_signal_func,
21039         glthread_cond_broadcast_func, glthread_cond_destroy_func):
21040         Reimplemented on the basis of gl_linked_waitqueue_t.
21041         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
21042         gl_waitqueue_t.
21043         (gl_rwlock_t): Update.
21044         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
21045
21046 2008-10-17  Simon Josefsson  <simon@josefsson.org>
21047
21048         * modules/recvfrom (Depends-on): Add dependency on getpeername.
21049         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
21050
21051 2008-10-17  Jim Meyering  <meyering@redhat.com>
21052
21053         ignore-value: new module
21054         * modules/ignore-value: New file.
21055         * lib/ignore-value.h: New file.
21056         * MODULES.html.sh (Compiler warning management): New section,
21057         just for this module.  More to come.
21058
21059 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
21060
21061         open-safer.c: avoid 'signed and unsigned in conditional...' warning
21062         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
21063         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
21064
21065 2008-10-16  Jim Meyering  <meyering@redhat.com>
21066
21067         openat-die.c: avoid 'no previous prototype' warning
21068         * lib/openat-die.c: Include "openat.h".
21069         Reported by Reuben Thomas <rrt@sc3d.org>.
21070
21071 2008-10-16  Simon Josefsson  <simon@josefsson.org>
21072
21073         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
21074         * lib/netdb.in.h: Fix typo.
21075         Reported by Bruno Haible  <bruno@clisp.org>
21076
21077         * lib/netdb.in.h: Include sys/socket.h for platforms without
21078         netdb.h, to get structures like hostent on MinGW.
21079         * modules/netdb (Depends-on): Add sys_socket.
21080
21081 2008-10-15  Simon Josefsson  <simon@josefsson.org>
21082
21083         * modules/netdb, modules/netdb-tests: New file.
21084         * m4/netdb_h.m4: New file.
21085         * lib/netdb.in.h: Add, currently just an empty file pending
21086         definitions.
21087         * tests/test-netdb.c: New file.
21088         * doc/posix-headers/netdb.texi: Mention that we replace it if
21089         needed.
21090         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21091         netdb.
21092
21093 2008-10-15  Simon Josefsson  <simon@josefsson.org>
21094
21095         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
21096         with code.
21097
21098 2008-10-13  Bruno Haible  <bruno@clisp.org>
21099
21100         * lib/glthread/cond.c (glthread_cond_wait_func,
21101         glthread_cond_timedwait_func): Add a comment.
21102
21103 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
21104
21105         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
21106         * tests/test-select.c: Likewise,
21107
21108 2008-10-13  Bruno Haible  <bruno@clisp.org>
21109
21110         * lib/glthread/cond.c (glthread_cond_wait_func,
21111         glthread_cond_timedwait_func): Fix variable name.
21112         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
21113
21114 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
21115
21116         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
21117         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
21118         struct sockaddr.sa_len.
21119         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
21120
21121 2008-10-13  Simon Josefsson  <simon@josefsson.org>
21122
21123         * build-aux/pmccabe2html: Add css and css_url parameters.
21124
21125 2008-10-12  Bruno Haible  <bruno@clisp.org>
21126
21127         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
21128         calling aclx_get.
21129         Reported by Rainer Tammer <tammer@tammer.net>.
21130
21131 2008-10-12  Bruno Haible  <bruno@clisp.org>
21132
21133         Use msvcrt aware primitives for creation/termination of Win32 threads.
21134         * lib/glthread/thread.c: Include <process.h>.
21135         (glthread_create_func): Use _beginthreadex instead of CreateThread.
21136         (wrapper_func): Update signature.
21137         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
21138
21139 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
21140             Bruno Haible  <bruno@clisp.org>
21141
21142         Provide a Win32 implementation of the 'cond' module.
21143         * lib/glthread/cond.h [USE_WIN32]: New implementation.
21144         * lib/glthread/cond.c (glthread_cond_init_func,
21145         glthread_cond_wait_func, glthread_cond_timedwait_func,
21146         glthread_cond_signal_func, glthread_cond_broadcast_func,
21147         glthread_cond_destroy_func) [USE_WIN32]: New functions.
21148         * modules/cond (Dependencies): Add gettimeofday.
21149
21150 2008-10-11  Bruno Haible  <bruno@clisp.org>
21151
21152         Make sleep work on older versions of mingw.
21153         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
21154         only whether it exists.
21155         * doc/posix-functions/sleep.texi: Mention the problem with older
21156         versions of mingw.
21157
21158 2008-10-11  Bruno Haible  <bruno@clisp.org>
21159
21160         New module 'shutdown'.
21161         * modules/shutdown: New file.
21162         * lib/sys_socket.in.h (shutdown): New declaration.
21163         * lib/winsock.c (shutdown): New function.
21164         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
21165         GNULIB_SHUTDOWN.
21166         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
21167         * doc/posix-functions/shutdown.texi: Document the new module.
21168
21169 2008-10-11  Jim Meyering  <meyering@redhat.com>
21170
21171         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
21172
21173 2008-10-11  Bruno Haible  <bruno@clisp.org>
21174
21175         New module 'fclose'.
21176         * modules/fclose: New file.
21177         * lib/stdio.in.h (fclose): New declaration.
21178         * lib/fclose.c: New file.
21179         * m4/fclose.m4: New file.
21180         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
21181         REPLACE_FCLOSE.
21182         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
21183         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
21184         REPLACE_FCLOSE.
21185         * modules/close (Depends-on): fclose.
21186         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
21187
21188 2008-10-11  Bruno Haible  <bruno@clisp.org>
21189
21190         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
21191         set errno and don't call _close.
21192
21193 2008-10-10  Bruno Haible  <bruno@clisp.org>
21194
21195         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
21196         ACL, not afterwards. Fixes test failure on Cygwin.
21197
21198 2008-10-09  Ben Pfaff  <blp@gnu.org>
21199
21200         * build-aux/announce-gen: Fix gnulib version related part of usage
21201         message.  Die with a useful error message if no tarballs are
21202         found.
21203
21204 2008-10-10  Jim Meyering  <meyering@redhat.com>
21205
21206         bootstrap: use git's --depth=N option only if it's supported
21207         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
21208         recognize the --depth option.  Reported by Pádraig Brady.
21209
21210 2008-10-09  Bruno Haible  <bruno@clisp.org>
21211
21212         New module 'ioctl'.
21213         * modules/ioctl: New file.
21214         * lib/sys_socket.in.h (ioctl): Remove declaration.
21215         * lib/winsock.c: Include <sys/ioctl.h>.
21216         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
21217         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
21218         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
21219         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
21220         * doc/posix-functions/ioctl.texi: Mention the new module.
21221
21222 2008-10-09  Bruno Haible  <bruno@clisp.org>
21223
21224         New module 'sys_ioctl'.
21225         * lib/sys_ioctl.in.h: New file.
21226         * m4/sys_ioctl_h.m4: New file.
21227         * modules/sys_ioctl: New file.
21228         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
21229
21230 2008-10-09  Bruno Haible  <bruno@clisp.org>
21231
21232         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
21233         * lib/winsock.c: Include <stdarg.h>.
21234         (rpl_ioctl): Change to second argument 'int' and then varargs.
21235
21236 2008-10-09  Bruno Haible  <bruno@clisp.org>
21237
21238         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
21239         when the sys_socket module is present and the system has <winsock2.h>.
21240
21241 2008-10-09  Bruno Haible  <bruno@clisp.org>
21242
21243         * doc/posix-functions/close.texi: Mention module 'close' instead of
21244         module 'sys_socket'.
21245
21246 2008-10-09  Bruno Haible  <bruno@clisp.org>
21247
21248         * doc/glibc-headers/sys_ioctl.texi: New file.
21249         * doc/gnulib.texi: Include it.
21250
21251 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21252             Bruno Haible  <bruno@clisp.org>
21253
21254         Combine the two replacements of 'close'.
21255         * lib/sys_socket.in.h (close): Define to a reminder to include
21256         <unistd.h>.
21257         (_gl_close_fd_maybe_socket): New declaration.
21258         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
21259         * lib/winsock.c (close): Remove undefinition.
21260         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
21261         needed for the gnulib module 'close'.
21262         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
21263         define to an error symbol or to a warning, if suitable.
21264         * lib/close.c: Include <sys/socket.h>.
21265         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
21266         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
21267         UNISTD_H_HAVE_WINSOCK2_H.
21268         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
21269         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21270         UNISTD_H_HAVE_WINSOCK2_H.
21271         * modules/sys_socket (Files): Add m4/unistd_h.m4.
21272         (configure.ac): Set a module indicator.
21273         (Makefile.am): Substitute GNULIB_CLOSE.
21274         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
21275         * modules/poll-tests (Depends-on): Add close.
21276         * modules/select-tests (Depends-on): Likewise.
21277
21278 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21279             Bruno Haible  <bruno@clisp.org>
21280
21281         New module 'close'.
21282         * modules/close: New file.
21283         * lib/unistd.in.h (close): Move declaration out of the
21284         FCHDIR_REPLACEMENT scope.
21285         (_gl_unregister_fd): New declaration.
21286         * lib/close.c: New file.
21287         * lib/fchdir.c (rpl_close): Remove function.
21288         * m4/close.m4: New file.
21289         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
21290         close.
21291         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
21292         REPLACE_CLOSE.
21293         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
21294         REPLACE_CLOSE.
21295         * modules/fchdir (Depends-on): Add close.
21296
21297 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21298             Bruno Haible  <bruno@clisp.org>
21299
21300         * lib/fcntl.in.h (open): Simplify conditionals.
21301         (_gl_register_fd): New declaration.
21302         * lib/fchdir.c (rpl_open): Remove function.
21303         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
21304         also.
21305         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
21306         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
21307         open.
21308
21309 2008-10-09  Jim Meyering  <meyering@redhat.com>
21310
21311         GNUmakefile: use the more name-space-friendly "_version"
21312         * top/GNUmakefile (_dummy): Update.
21313         (_version): Rename from "version".
21314
21315 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21316             Bruno Haible  <bruno@clisp.org>
21317
21318         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
21319         rpl_close.
21320         (_gl_register_fd): New function, extracted from rpl_open.
21321         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
21322         (rpl_open, rpl_opendir): Use _gl_register_fd.
21323
21324 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21325
21326         Fix organization of 'open' replacement.
21327         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
21328         (gl_FUNC_OPEN): Use it.
21329         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
21330
21331 2008-10-08  Bruno Haible  <bruno@clisp.org>
21332
21333         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
21334
21335 2008-10-08  Simon Josefsson  <simon@josefsson.org>
21336
21337         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
21338         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
21339         listen).
21340
21341 2008-10-08  Eric Blake  <ebb9@byu.net>
21342
21343         GNUmakefile: add 'make version' target
21344         * top/GNUmakefile (_curr-ver): Split version update rules...
21345         (version): ...into a target.
21346
21347 2008-10-07  Bruno Haible  <bruno@clisp.org>
21348
21349         Use a more portable replacement expression for -0.0L.
21350         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
21351         instead of -0.0L. Fix m4 quotation.
21352
21353         * tests/test-signbit.c: Include <float.h>.
21354         (minus_zero): New variable.
21355         (test_signbitl): Use minus_zero instead of -zero.
21356         * modules/signbit-tests (Depends-on): Add float.
21357
21358         * tests/test-ceill.c: Include <float.h>.
21359         (zero): Remove variable.
21360         (minus_zero): New variable.
21361         (main): Use minus_zero instead of -zero.
21362         * modules/ceill-tests (Depends-on): Add float.
21363
21364         * tests/test-floorl.c: Include <float.h>.
21365         (zero): Remove variable.
21366         (minus_zero): New variable.
21367         (main): Use minus_zero instead of -zero.
21368         * modules/floorl-tests (Depends-on): Add float.
21369
21370         * tests/test-roundl.c: Include <float.h>.
21371         (zero): Remove variable.
21372         (minus_zero): New variable.
21373         (main): Use minus_zero instead of -zero.
21374         * modules/roundl-tests (Depends-on): Add float.
21375
21376         * tests/test-truncl.c: Include <float.h>.
21377         (zero): Remove variable.
21378         (minus_zero): New variable.
21379         (main): Use minus_zero instead of -zero.
21380         * modules/truncl-tests (Depends-on): Add float.
21381
21382         * tests/test-frexpl.c (zero): Remove variable.
21383         (minus_zero): New variable.
21384         (main): Use minus_zero instead of -zero.
21385         * modules/frexpl-tests (Depends-on): Add float.
21386
21387         * tests/test-isnan.c (zerol): Remove variable.
21388         (minus_zerol): New variable.
21389         (test_long_double): Use minus_zerol instead of -zerol.
21390         * modules/isnan-tests (Depends-on): Add float.
21391
21392         * tests/test-isnanl.h (zero): Remove variable.
21393         (minus_zero): New variable.
21394         (main): Use minus_zero instead of -zero.
21395         * modules/isnanl-nolibm-tests (Depends-on): Add float.
21396         * modules/isnanl-tests (Depends-on): Add float.
21397
21398         * tests/test-ldexpl.c (zero): Remove variable.
21399         (minus_zero): New variable.
21400         (main): Use minus_zero instead of -zero.
21401         * modules/ldexpl-tests (Depends-on): Add float.
21402
21403         * tests/test-snprintf-posix.h (zerol): Remove variable.
21404         (minus_zerol): New variable.
21405         (test_function): Use minus_zerol instead of -zerol.
21406         * modules/snprintf-posix-tests (Depends-on): Add float.
21407         * modules/vsnprintf-posix-tests (Depends-on): Add float.
21408
21409         * tests/test-sprintf-posix.h (zerol): Remove variable.
21410         (minus_zerol): New variable.
21411         (test_function): Use minus_zerol instead of -zerol.
21412         * modules/sprintf-posix-tests (Depends-on): Add float.
21413         * modules/vsprintf-posix-tests (Depends-on): Add float.
21414
21415         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
21416         (minus_zerol): New variable.
21417         (test_function): Use minus_zerol instead of -zerol.
21418         * modules/vasnprintf-posix-tests (Depends-on): Add float.
21419
21420         * tests/test-vasprintf-posix.c (zerol): Remove variable.
21421         (minus_zerol): New variable.
21422         (test_function): Use minus_zerol instead of -zerol.
21423         * modules/vasprintf-posix-tests (Depends-on): Add float.
21424
21425 2008-10-07  Simon Josefsson  <simon@josefsson.org>
21426
21427         * MODULES.html.sh (Support for building documentation): Mention
21428         pmccabe2html.  Sort entries.
21429
21430         Add pmccabe2html module, from gnupdf.
21431         * build-aux/pmccabe.css: New file.
21432         * build-aux/pmccabe2html: New file.
21433         * m4/pmccabe2html.m4: New file.
21434         * modules/pmccabe2html: New file.
21435
21436 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
21437
21438         flock: new module
21439         * MODULES.html.sh: Add to list of modules.
21440         * lib/flock.c: flock implementation for Windows and Unix systems
21441         which have fcntl.
21442         * doc/glibc-functions/flock.texi: Update documentation.
21443         * lib/sys_file.in.h: <sys/file.h> header file.
21444         * m4/flock.m4: M4 macros.
21445         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
21446         * modules/flock: flock module.
21447         * modules/flock-tests: flock tests module.
21448         * modules/sys_file: sys/file.h module.
21449         * tests/test-flock.c: test suite for flock.
21450
21451 2008-10-06  Jim Meyering  <meyering@redhat.com>
21452
21453         bootstrap: check for LT_INIT more portably still ;-)
21454         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
21455         Spotted by Bruno Haible.
21456
21457 2008-10-06  Eric Blake  <ebb9@byu.net>
21458
21459         test-signbit: avoid tripping Irix cc bug on -0.0L
21460         * tests/test-signbit.c (minus_zerol): Delete, and replace with
21461         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
21462         entire testsuite consistent and avoids an Irix 6.2 bug.
21463
21464 2008-10-05  Bruno Haible  <bruno@clisp.org>
21465             Jim Meyering  <jim@meyering.net>
21466
21467         Add an option for ignoring EPIPE during close_stdout.
21468         * lib/closeout.h: Include <stdbool.h>.
21469         (close_stdout_set_ignore_EPIPE): New declaration.
21470         * lib/closeout.c: Include <stdbool.h>.
21471         (ignore_EPIPE): New variable.
21472         (close_stdout_set_ignore_EPIPE): New function.
21473         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
21474         * lib/close-stream.c (close_stream): Mention the possible EPIPE
21475         failure.
21476         * modules/closeout (Depends-on): Add stdbool.
21477
21478 2008-10-05  Bruno Haible  <bruno@clisp.org>
21479
21480         * modules/accept: New file.
21481         * modules/bind: New file.
21482         * modules/connect: New file.
21483         * modules/getpeername: New file.
21484         * modules/getsockname: New file.
21485         * modules/getsockopt: New file.
21486         * modules/listen: New file.
21487         * modules/recv: New file.
21488         * modules/recvfrom: New file.
21489         * modules/send: New file.
21490         * modules/sendto: New file.
21491         * modules/setsockopt: New file.
21492         * modules/socket: New file.
21493         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
21494         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
21495         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
21496         the particular module is requested. Add a link warning when the
21497         particular module is not requested.
21498         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
21499         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
21500         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
21501         the particular module is requested.
21502         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
21503         gl_SYS_SOCKET_H_DEFAULTS): New macros.
21504         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
21505         * modules/sys_socket (Depends-on): Add link-warning.
21506         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
21507         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
21508         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
21509         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
21510         GL_LINK_WARNING.
21511         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
21512         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
21513         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
21514         * doc/posix-functions/getpeername.texi: Mention the new module
21515         'getpeername'.
21516         * doc/posix-functions/getsockname.texi: Mention the new module
21517         'getsockname'.
21518         * doc/posix-functions/getsockopt.texi: Mention the new module
21519         'getsockopt'.
21520         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
21521         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
21522         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
21523         * doc/posix-functions/send.texi: Mention the new module 'send'.
21524         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
21525         * doc/posix-functions/setsockopt.texi: Mention the new module
21526         'setsockopt'.
21527         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
21528         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
21529         listen, connect, accept.
21530         * modules/select-tests (Depends-on): Likewise.
21531
21532 2008-10-05  Bruno Haible  <bruno@clisp.org>
21533
21534         * lib/winsock.c (strerror): Remove unused #undef.
21535         (rpl_close): Remove unused local variable.
21536
21537         * modules/sys_socket (Depends-on); Add errno.
21538
21539 2008-10-05  Bruno Haible  <bruno@clisp.org>
21540
21541         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
21542         (select): Add a link warning when the 'select' module is not used.
21543         * modules/sys_select (Depends-on): Add link-warning.
21544         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
21545         Suggested by Paolo Bonzini.
21546
21547 2008-10-05  Jim Meyering  <meyering@redhat.com>
21548
21549         bootstrap: check for LT_INIT more portably
21550         * build-aux/bootstrap: Avoid using grep -E, since it's not
21551         portable enough.  Suggestion from Bruno Haible.
21552
21553 2008-10-05  Bruno Haible  <bruno@clisp.org>
21554
21555         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
21556         as being fixed by gnulib.
21557
21558 2008-10-05  Bruno Haible  <bruno@clisp.org>
21559
21560         * modules/select-tests: New file, mostly copied from
21561         modules/sys_select-tests.
21562         * tests/test-select.c: New file, mostly copied from
21563         tests/test-sys_select.c.
21564         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
21565         * modules/sys_select-tests (Depends-on): Remove all dependencies.
21566         (Makefile.am): Remove test_sys_select_LDADD.
21567
21568         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
21569         to an undefined symbol, for an error message.
21570         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
21571         (gl_SYS_SELECT_H_DEFAULTS): New macro.
21572         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
21573         winsock-select.c here.
21574         * modules/sys_select (Files): Remove lib/winsock-select.c.
21575         (Depends-on): Remove alloca.
21576         (Makefile.am): Substitute GNULIB_SELECT.
21577         * modules/select: New file.
21578         * doc/posix-functions/select.texi: Update.
21579
21580 2008-10-05  Bruno Haible  <bruno@clisp.org>
21581
21582         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
21583         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
21584         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
21585         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
21586         getdtablesize.
21587         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
21588         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
21589
21590 2008-10-05  Bruno Haible  <bruno@clisp.org>
21591
21592         * modules/getdtablesize-tests: New file.
21593         * tests/test-getdtablesize.c: New file.
21594
21595         New module 'getdtablesize'.
21596         * lib/unistd.in.h (getdtablesize): New declaration.
21597         * lib/getdtablesize.c: New file.
21598         * m4/getdtablesize.m4: New file.
21599         * modules/getdtablesize: New file.
21600         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21601         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
21602         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
21603         HAVE_GETDTABLESIZE.
21604         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
21605
21606 2008-10-05  Bruno Haible  <bruno@clisp.org>
21607
21608         * modules/sched (Makefile.am): Fix typo.
21609         Reported by Simon Josefsson.
21610
21611 2008-10-05  Jim Meyering  <meyering@redhat.com>
21612
21613         bootstrap: check for LT_INIT, too
21614         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
21615         are deprecated.  Suggestion from Ralf Wildenhues.
21616
21617 2008-10-05  Bruno Haible  <bruno@clisp.org>
21618
21619         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
21620         overriding them by ours.
21621         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
21622
21623 2008-10-05  Jim Meyering  <meyering@redhat.com>
21624
21625         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
21626         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
21627         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
21628
21629 2008-10-04  Bruno Haible  <bruno@clisp.org>
21630
21631         * modules/dup2 (License): Change to LGPLv2+.
21632         * modules/sleep (License): Likewise.
21633         * modules/perror (License): Likewise.
21634         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
21635         Blake.
21636         * modules/signal (License): Likewise.
21637         * modules/sigprocmask (License): Likewise.
21638         * modules/raise (License): Change to LGPLv2+, with approval by Jim
21639         Meyering.
21640
21641 2008-10-04  Bruno Haible  <bruno@clisp.org>
21642
21643         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
21644         Reported by Rainer Tammer <tammer@tammer.net>.
21645
21646 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
21647             Bruno Haible  <bruno@clisp.org>
21648
21649         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
21650         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
21651         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
21652
21653 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
21654
21655         filevercmp: new module
21656         * lib/filevercmp.h: New function filevercmp comparing version strings.
21657         * lib/filevercmp.c: Implementation of filevercmp function.
21658         * modules/filevercmp: Module metadata.
21659         * tests/test-filevercmp.c: Unit test for new module.
21660         * modules/filevercmp-tests: Unit test metadata.
21661         * MODULES.html.sh: Add filevercmp module.
21662
21663 2008-10-03  Bruno Haible  <bruno@clisp.org>
21664
21665         * lib/c-ctype.h: Add comment.
21666         Reported by Jim Meyering.
21667
21668 2008-10-02  Bruno Haible  <bruno@clisp.org>
21669
21670         * modules/posix_spawn-internal (Depends-on): Add 'open'.
21671
21672 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
21673
21674         * build-aux/bootstrap: Allow renaming bootstrap, and change the
21675         name of bootstrap.conf accordingly.
21676
21677 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
21678
21679         * build-aux/bootstrap: Install git-merge-changelog configuration
21680         items into .gitconfig if needed.
21681
21682 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
21683
21684         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
21685         git repository, and initialize/update it accordingly.
21686
21687 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
21688
21689         * modules/fsync-tests: New file.
21690         * tests/test-fsync.c: New file.
21691
21692         New module 'fsync'.
21693         * lib/fsync.c: New file.
21694         * m4/fsync.m4: New file.
21695         * modules/fsync: New file.
21696         * lib/unistd.in.h (fsync): New declaration.
21697         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
21698         GNULIB_FSYNC and HAVE_FSYNC.
21699         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
21700         * MODULES.html.sh (posix_functions): Add fsync.
21701         * doc/posix-functions/fsync.texi: Mention the new module.
21702
21703 2008-10-02  Jim Meyering  <meyering@redhat.com>
21704
21705         fts.c: sync with similar code from coreutils' remove.c
21706         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
21707         Guard also with "#if defined __linux__", since for now at least,
21708         this code is Linux-kernel-specific.
21709
21710 2008-10-02  Jim Meyering  <meyering@redhat.com>
21711
21712         fts: bug fixes
21713         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
21714         Include <sys/vfs.h>, not <sys/statfs.h>.
21715
21716         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
21717         Include <sys/vfs.h>, not <sys/statfs.h>.
21718
21719 2008-10-01  Bruno Haible  <bruno@clisp.org>
21720
21721         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
21722         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
21723         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
21724         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
21725         * doc/posix-functions/posix_spawnp.texi: Likewise.
21726         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
21727         whether posix_spawn actually works.
21728         * m4/pipe.m4 (gl_PIPE): Likewise.
21729         * modules/execute (Files): Add m4/posix_spawn.m4.
21730         * modules/pipe (Files): Add m4/posix_spawn.m4.
21731         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
21732
21733 2008-10-01  Jim Meyering  <meyering@redhat.com>
21734
21735         remove trailing spaces
21736         * NEWS: Likewise.
21737         * lib/poll.c (poll): Likewise.
21738         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
21739         * lib/winsock.c (rpl_close): Likewise.
21740         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
21741         * modules/yield: Likewise.
21742         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
21743         * tests/test-sys_select.c (connect_to_socket): Likewise.
21744
21745         fts.c: adjust a new interface to be more generally useful
21746         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
21747         (fts_build): Adjust caller.
21748
21749 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21750
21751         * modules/cond-tests: New file.
21752         * tests/test-cond.c: New file.
21753
21754 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21755             Bruno Haible  <bruno@clisp.org>
21756
21757         * modules/cond (Dependencies): Add errno, time.
21758         * lib/glthread/cond.h: Include <time.h>.
21759         (gl_cond_define, gl_cond_define_initialized): Use the same definition
21760         across platforms.
21761
21762 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21763             Bruno Haible  <bruno@clisp.org>
21764
21765         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
21766
21767 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21768             Bruno Haible  <bruno@clisp.org>
21769
21770         * modules/tls-tests (Depends-on): Add thread, yield.
21771         (configure.ac): Remove all checks.
21772         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
21773         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
21774         gl_thread_self): Remove definitions. Include glthread/thread.h and
21775         glthread/yield.h instead.
21776         (test_tls): Pass an additional NULL argument to gl_thread_join.
21777
21778 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21779             Bruno Haible  <bruno@clisp.org>
21780
21781         * modules/lock-tests (Depends-on): Add thread, yield.
21782         (configure.ac): Remove all checks.
21783         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
21784         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
21785         gl_thread_self): Remove definitions. Include glthread/thread.h and
21786         glthread/yield.h instead.
21787         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
21788         additional NULL argument to gl_thread_join.
21789
21790 2008-09-30  Bruno Haible  <bruno@clisp.org>
21791
21792         Fix the Win32 implementation of the 'thread' module.
21793         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
21794         pointer type.
21795         (gl_thread_self): Invoke gl_thread_self_func.
21796         (gl_thread_self_func): New declaration.
21797         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
21798         (do_init_self_key, init_self_key): New functions.
21799         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
21800         Remove some fields.
21801         (running_threads, running_lock): Remove variables.
21802         (get_current_thread_handle): New function.
21803         (gl_thread_self_func, wrapper_func, glthread_create_func,
21804         glthread_join_func, gl_thread_exit_func): Largely rewritten and
21805         simplified.
21806
21807 2008-09-30  Bruno Haible  <bruno@clisp.org>
21808
21809         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
21810         files.
21811
21812 2008-09-30  Jim Meyering  <meyering@redhat.com>
21813
21814         fts.m4: correct the test for statfs.f_type
21815         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
21816         when checking for statfs.f_type.
21817
21818 2008-09-15  Simon Josefsson  <simon@josefsson.org>
21819
21820         tests: avoid some compiler warnings
21821         * tests/test-memchr.c (main): Pass NULL indirectly.
21822         * tests/test-getdate.c (main): Remove unused variable 'ret'.
21823
21824 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
21825
21826         getdate.y: disallow countable dayshifts like "4 yesterday ago"
21827         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
21828         exactly specified dayshifts.
21829         (dayshift): New rule.
21830         (rel): Add dayshift.
21831         (relative_time_table) [tomorrow, yesterday, today, now]:
21832         Use tDAY_SHIFT in place of tDAY_UNIT.
21833         * tests/test-getdate.c: Add tests for now-disallowed countable
21834         dayshifts, e.g., "4 yesterday ago".
21835
21836 2008-09-29  Bruno Haible  <bruno@clisp.org>
21837
21838         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
21839         * tests/test-posix_spawn1.in.sh: Renamed from
21840         tests/test-posix_spawn.in.sh.
21841         * tests/test-posix_spawn2.c: New file.
21842         * tests/test-posix_spawn2.in.sh: New file.
21843         * modules/posix_spawnp-tests (Files): Update.
21844         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
21845
21846 2008-09-29  Bruno Haible  <bruno@clisp.org>
21847
21848         Propagate effects of putenv/setenv/unsetenv to child processes.
21849         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
21850         * lib/pipe.c (create_pipe): Likewise.
21851
21852 2008-09-29  Bruno Haible  <bruno@clisp.org>
21853
21854         Enable use of shell scripts as executables in mingw.
21855         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
21856         run the program as a shell script.
21857         * lib/pipe.c (create_pipe): Likewise.
21858         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
21859         resulting array.
21860
21861 2008-09-29  Eric Blake  <ebb9@byu.net>
21862
21863         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
21864
21865 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
21866
21867         * doc/posix-functions/accept.texi: Update mingw problems.
21868         * doc/posix-functions/bind.texi: Update mingw problems.
21869         * doc/posix-functions/close.texi: Update mingw problems.
21870         * doc/posix-functions/connect.texi: Update mingw problems.
21871         * doc/posix-functions/getpeername.texi: Update mingw problems.
21872         * doc/posix-functions/getsockname.texi: Update mingw problems.
21873         * doc/posix-functions/getsockopt.texi: Update mingw problems.
21874         * doc/posix-functions/ioctl.texi: Update mingw problems.
21875         * doc/posix-functions/listen.texi: Update mingw problems.
21876         * doc/posix-functions/recv.texi: Update mingw problems.
21877         * doc/posix-functions/recvfrom.texi: Update mingw problems.
21878         * doc/posix-functions/select.texi: Update mingw problems.
21879         * doc/posix-functions/send.texi: Update mingw problems.
21880         * doc/posix-functions/sendto.texi: Update mingw problems.
21881         * doc/posix-functions/setsockopt.texi: Update mingw problems.
21882         * doc/posix-functions/socket.texi: Update mingw problems.
21883
21884 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
21885             Bruno Haible  <bruno@clisp.org>
21886
21887         * lib/sys_select.in.h: Include sys/time.h.
21888         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
21889         * modules/sys_select: Depend on sys_time.
21890         * tests/test-sys_select.c: Test that sys/select.h defines struct
21891         timeval fully.
21892
21893 2008-09-29  Bruno Haible  <bruno@clisp.org>
21894
21895         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
21896         * lib/sys_select.in.h: Likewise.
21897
21898 2008-09-29  Bruno Haible  <bruno@clisp.org>
21899
21900         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
21901
21902 2008-09-29  Bruno Haible  <bruno@clisp.org>
21903
21904         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
21905         Set LIBSOCKET instead of augmenting LIBS.
21906         * modules/sockets (Link): New section.
21907         * modules/sockets-tests (test_sockets_LDADD): New variable.
21908         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
21909         * modules/poll-tests (test_poll_LDADD): New variable.
21910         * NEWS: Document the change.
21911
21912 2008-09-29  Bruno Haible  <bruno@clisp.org>
21913
21914         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
21915         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
21916         ARPA_INET_H directly.
21917         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
21918
21919 2008-09-28  Bruno Haible  <bruno@clisp.org>
21920
21921         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
21922         from gl_HEADER_SYS_SOCKET.
21923         (gl_HEADER_SYS_SOCKET): Invoke it.
21924         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21925
21926 2008-09-28  Bruno Haible  <bruno@clisp.org>
21927
21928         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
21929         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
21930         Needed on OSF/1 4.0.
21931
21932 2008-09-28  Bruno Haible  <bruno@clisp.org>
21933
21934         Override open more carefully.
21935         * lib/open.c (orig_open): New function.
21936         (rpl_open): Use orig_open instead of open.
21937         * lib/fcntl.in.h: Add special invocation convention.
21938         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
21939         (gl_FUNC_OPEN): Invoke it.
21940
21941         Override freopen more carefully.
21942         * lib/freopen.c (orig_freopen): New function.
21943         (rpl_freopen): Use orig_freopen instead of freopen.
21944         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
21945         (gl_FUNC_FREOPEN): Invoke it.
21946
21947         Override fopen more carefully.
21948         * lib/fopen.c (orig_fopen): New function.
21949         (rpl_fopen): Use orig_fopen instead of fopen.
21950         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
21951         (gl_FUNC_FOPEN): Invoke it.
21952         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
21953
21954 2008-09-28  Bruno Haible  <bruno@clisp.org>
21955
21956         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
21957         SIGPIPE.
21958
21959 2008-09-28  Bruno Haible  <bruno@clisp.org>
21960
21961         * tests/test-sigaction.c (handler, main): Disable the check whether
21962         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
21963         glibc systems with LinuxThreads.
21964
21965 2008-09-28  Bruno Haible  <bruno@clisp.org>
21966
21967         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
21968
21969         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
21970         with AIX xlc.
21971         * lib/fcntl.in.h (open): Likewise.
21972         Reported by Rainer Tammer <tammer@tammer.net>.
21973
21974 2008-09-28  Bruno Haible  <bruno@clisp.org>
21975
21976         * modules/posix_spawnp-tests: New file.
21977         * tests/test-posix_spawn.c: New file.
21978         * tests/test-posix_spawn.in.sh: New file.
21979
21980         New module 'posix_spawnp'.
21981         * modules/posix_spawnp: New file.
21982         * lib/spawnp.c: New file, from GNU libc with modifications.
21983         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
21984
21985         New module 'posix_spawn'.
21986         * modules/posix_spawn: New file.
21987         * lib/spawn.c: New file, from GNU libc with modifications.
21988         * doc/posix-functions/posix_spawn.texi: Mention the new module.
21989
21990         New module 'posix_spawnattr_destroy'.
21991         * modules/posix_spawnattr_destroy: New file.
21992         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
21993         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
21994         module.
21995
21996         New module 'posix_spawnattr_setsigmask'.
21997         * modules/posix_spawnattr_setsigmask: New file.
21998         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
21999         modifications.
22000         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
22001         new module.
22002
22003         New module 'posix_spawnattr_getsigmask'.
22004         * modules/posix_spawnattr_getsigmask: New file.
22005         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
22006         modifications.
22007         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
22008         new module.
22009
22010         New module 'posix_spawnattr_setsigdefault'.
22011         * modules/posix_spawnattr_setsigdefault: New file.
22012         * lib/spawnattr_setdefault.c: New file, from GNU libc with
22013         modifications.
22014         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
22015         new module.
22016
22017         New module 'posix_spawnattr_getsigdefault'.
22018         * modules/posix_spawnattr_getsigdefault: New file.
22019         * lib/spawnattr_getdefault.c: New file, from GNU libc with
22020         modifications.
22021         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
22022         new module.
22023
22024         New module 'posix_spawnattr_setschedpolicy'.
22025         * modules/posix_spawnattr_setschedpolicy: New file.
22026         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
22027         modifications.
22028         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
22029         new module.
22030
22031         New module 'posix_spawnattr_getschedpolicy'.
22032         * modules/posix_spawnattr_getschedpolicy: New file.
22033         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
22034         modifications.
22035         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
22036         new module.
22037
22038         New module 'posix_spawnattr_setschedparam'.
22039         * modules/posix_spawnattr_setschedparam: New file.
22040         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
22041         modifications.
22042         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
22043         new module.
22044
22045         New module 'posix_spawnattr_getschedparam'.
22046         * modules/posix_spawnattr_getschedparam: New file.
22047         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
22048         modifications.
22049         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
22050         new module.
22051
22052         New module 'posix_spawnattr_setpgroup'.
22053         * modules/posix_spawnattr_setpgroup: New file.
22054         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
22055         modifications.
22056         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
22057         module.
22058
22059         New module 'posix_spawnattr_getpgroup'.
22060         * modules/posix_spawnattr_getpgroup: New file.
22061         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
22062         modifications.
22063         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
22064         module.
22065
22066         New module 'posix_spawnattr_setflags'.
22067         * modules/posix_spawnattr_setflags: New file.
22068         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
22069         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
22070         module.
22071
22072         New module 'posix_spawnattr_getflags'.
22073         * modules/posix_spawnattr_getflags: New file.
22074         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
22075         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
22076         module.
22077
22078         New module 'posix_spawnattr_init'.
22079         * modules/posix_spawnattr_init: New file.
22080         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
22081         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
22082         module.
22083
22084         New module 'posix_spawn_file_actions_destroy'.
22085         * modules/posix_spawn_file_actions_destroy: New file.
22086         * lib/spawn_faction_destroy.c: New file, from GNU libc with
22087         modifications.
22088         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
22089         the new module.
22090
22091         New module 'posix_spawn_file_actions_addopen'.
22092         * modules/posix_spawn_file_actions_addopen: New file.
22093         * lib/spawn_faction_addopen.c: New file, from GNU libc with
22094         modifications.
22095         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
22096         the new module.
22097
22098         New module 'posix_spawn_file_actions_adddup2'.
22099         * modules/posix_spawn_file_actions_adddup2: New file.
22100         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
22101         modifications.
22102         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
22103         the new module.
22104
22105         New module 'posix_spawn_file_actions_addclose'.
22106         * modules/posix_spawn_file_actions_addclose: New file.
22107         * lib/spawn_faction_addclose.c: New file, from GNU libc with
22108         modifications.
22109         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
22110         the new module.
22111
22112         New module 'posix_spawn_file_actions_init'.
22113         * modules/posix_spawn_file_actions_init: New file.
22114         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
22115         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
22116         new module.
22117
22118         New module 'posix_spawn-internal'.
22119         * modules/posix_spawn-internal: New file.
22120         * lib/spawn_int.h: New file, from GNU libc with modifications.
22121         * lib/spawni.c: New file, from GNU libc with modifications.
22122         * m4/posix_spawn.m4: New file.
22123
22124         New module 'spawn'.
22125         * modules/spawn: New file.
22126         * lib/spawn.in.h: New file, from GNU libc with modifications.
22127         * m4/spawn_h.m4: New file.
22128         * doc/posix-headers/spawn.texi: Mention the new module.
22129
22130 2008-09-28  Bruno Haible  <bruno@clisp.org>
22131
22132         * modules/sched-tests: New file.
22133         * tests/test-sched.c: New file.
22134
22135         New module 'sched'.
22136         * modules/sched: New file.
22137         * lib/sched.in.h: New file.
22138         * m4/sched_h.m4: New file.
22139         * doc/posix-headers/sched.texi: Mention the new module.
22140
22141 2008-09-27  Eric Blake  <ebb9@byu.net>
22142
22143         Fix previous patch, and tweak references to $0.
22144         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
22145         (func_version, func_gnulib_dir): Don't call this program
22146         gnulib-tool.
22147         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
22148         with using $0 in function.
22149         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
22150         (func_fatal_error): Reuse the name the user invoked us with.
22151
22152 2008-09-27  Bruno Haible  <bruno@clisp.org>
22153
22154         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
22155         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
22156         (gl_ICONV_H): Not here.
22157         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
22158         instead of assigning ICONV_H directly.
22159
22160         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
22161         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
22162         WCHAR_H directly.
22163
22164 2008-09-27  Bruno Haible  <bruno@clisp.org>
22165
22166         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
22167         * modules/arpa_inet (Depends-on): Add link-warning.
22168         (Makefile.am): Insert the definition of GL_LINK-WARNING.
22169         * modules/unistd (Makefile.am): Likewise.
22170
22171 2008-09-26  Bruno Haible  <bruno@clisp.org>
22172
22173         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
22174         variables.
22175         (func_version): Essentially copied from gnulib-tool.
22176         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
22177         func_readlink): Copied from gnulib-tool.
22178
22179 2008-09-26  Bruno Haible  <bruno@clisp.org>
22180
22181         * gnulib-tool (func_version): Change directory to $gnulib_dir before
22182         invoking git-version-gen.
22183
22184 2008-09-26  Bruno Haible  <bruno@clisp.org>
22185
22186         * posix-modules: Update to directory names changed on 2008-01-19.
22187         Remove commas in output before splitting into words. No more need to
22188         avoid 'ftruncate' since 2007-02-19.
22189
22190 2008-09-26  Bruno Haible  <bruno@clisp.org>
22191
22192         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
22193
22194 2008-09-26  Bruno Haible  <bruno@clisp.org>
22195
22196         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
22197         * modules/fwriteerror (Depends-on): Add errno.
22198
22199 2008-09-26  Bruno Haible  <bruno@clisp.org>
22200
22201         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
22202         * tests/test-vc-list-files-cvs.sh: Likewise.
22203
22204 2008-09-26  Bruno Haible  <bruno@clisp.org>
22205
22206         * doc/posix-headers/sys_resource.texi: Reorder items.
22207
22208 2008-09-26  Jim Meyering  <meyering@redhat.com>
22209
22210         fts: tweak inode comparison function
22211         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
22212         inode numbers, as documented.
22213
22214         fts: sort dirent entries on inode number before traversing
22215         This avoids a quadratic, seek-related performance penalty when
22216         operating on a directory containing many entries (measurable at 10k;
22217         3.5 hours at 2 million entries with a cold cache) on certain types
22218         of file systems, including ext3 and ext4, but not tmpfs.
22219         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
22220         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
22221         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
22222         (fs_handles_readdir_ordered_dirents_efficiently): New function.
22223         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
22224         (fts_build): Set the stat.st_ino member from D_INO.
22225         If it is likely to be useful, sort dirent entries on inode number.
22226
22227         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
22228         and the struct statfs.f_type member.
22229         * modules/fts (Depends-on): Add d-ino.
22230
22231 2008-09-26  Bruno Haible  <bruno@clisp.org>
22232
22233         * modules/sigpipe-die (Depends-on): Add sigpipe.
22234
22235         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
22236         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
22237         and GNULIB_STDIO_H_SIGPIPE are set.
22238         * lib/stdio-write.c: New file.
22239         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
22240         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
22241         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
22242         REPLACE_STDIO_WRITE_FUNCS.
22243         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
22244         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
22245         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
22246         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
22247         * modules/stdio (Files): Add lib/stdio-write.c.
22248         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
22249         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
22250         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
22251         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
22252         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
22253         REPLACE_FPRINTF_POSIX.
22254         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
22255         REPLACE_PRINTF_POSIX.
22256         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
22257         REPLACE_VFPRINTF_POSIX.
22258         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
22259         REPLACE_VPRINTF_POSIX.
22260         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
22261         SIGPIPE issue.
22262         * doc/posix-functions/fputc.texi: Likewise.
22263         * doc/posix-functions/fputs.texi: Likewise.
22264         * doc/posix-functions/fwrite.texi: Likewise.
22265         * doc/posix-functions/printf.texi: Likewise.
22266         * doc/posix-functions/putc.texi: Likewise.
22267         * doc/posix-functions/putchar.texi: Likewise.
22268         * doc/posix-functions/puts.texi: Likewise.
22269         * doc/posix-functions/vfprintf.texi: Likewise.
22270         * doc/posix-functions/vprintf.texi: Likewise.
22271
22272         * modules/safe-write (Depends-on): Add write.
22273
22274         * modules/sigpipe-tests: New file.
22275         * tests/test-sigpipe.c: New file.
22276         * tests/test-sigpipe.sh: New file.
22277
22278         * modules/write: New file.
22279         * lib/unistd.in.h: Include <sys/types.h>.
22280         (write): New declaration.
22281         * lib/write.c: New file.
22282         * m4/write.m4: New file.
22283         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22284         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
22285         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
22286         GNULIB_WRITE, REPLACE_WRITE.
22287         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
22288         and the SIGPIPE issue.
22289
22290         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
22291         (raise): New declaration.
22292         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
22293         (ext_signal): New function.
22294         (rpl_raise): New function.
22295         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
22296         GNULIB_SIGNAL_H_SIGPIPE.
22297         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
22298         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
22299
22300         * modules/sigpipe: New file.
22301         * m4/sigpipe.m4: New file.
22302
22303 2008-09-25  Derek Price  <derek@ximbiot.com>
22304             Bruno Haible  <bruno@clisp.org>
22305
22306         * gnulib-tool (func_import): Report all license incompatibilities, not
22307         just the first one.
22308
22309 2008-09-25  Bruno Haible  <bruno@clisp.org>
22310
22311         * gnulib-tool (func_import): When computing the edits, consider not
22312         only the Makefile.ams that exist but also those that will be generated.
22313
22314 2008-09-25  Simon Josefsson  <simon@josefsson.org>
22315
22316         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
22317         fixes gnulib-tool --test warning about duplicate dependency.
22318
22319 2008-09-25  Bruno Haible  <bruno@clisp.org>
22320
22321         * gnulib-tool: Don't ask the user to perform edits in the generated
22322         Makefile.ams.
22323         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
22324         apply to the Makefile.am being generated.
22325         (func_emit_tests_Makefile_am): Execute edits that apply to the
22326         Makefile.am being generated.
22327         (func_import): Setup list of Makefile.am edits before emitting the
22328         Makefile.ams, not at the end.
22329         (func_create_testdir): Update.
22330         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
22331
22332 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22333
22334         * gnulib-tool (func_import): Store the --tests-base option in the
22335         comment in gnulib-cache.m4.
22336
22337 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
22338
22339         * NEWS: Document increased portability that sys_select now provides.
22340
22341         * lib/sys_select.in.h: Install select wrapper.
22342         * lib/sys_socket.in.h: Use more descriptive name when there is no
22343         select wrapper.
22344         * lib/winsock-select.c: New.
22345         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
22346         Require gl_HEADER_SYS_SOCKET.
22347         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
22348         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
22349         * tests/test-sys_select.c: Add functional tests.
22350
22351 2008-09-24  Eric Blake  <ebb9@byu.net>
22352
22353         open, fopen: close fd leak in last patch
22354         * lib/open.c (rpl_open): Close fd before returning error.
22355         * lib/fopen.c (rpl_fopen): Close fd before returning error.
22356         * doc/posix-functions/open.texi (open): Document that Irix also
22357         has the bug.
22358         * doc/posix-functions/fopen.texi (fopen): Likewise.
22359         Reported by Paolo Bonzini.
22360
22361 2008-09-24  Bruno Haible  <bruno@clisp.org>
22362
22363         Ensure that a filename ending in a slash cannot be used to access a
22364         non-directory.
22365         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
22366         to check whether it's really a directory.
22367         * lib/fopen.c: Include fcntl.h, unistd.h.
22368         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
22369         and fdopen().
22370         * modules/fopen (Depends-on): Add unistd.
22371         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
22372         * tests/test-fopen.c (main): Likewise.
22373         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
22374         * doc/posix-functions/fopen.texi: Likewise.
22375         Reported by Eric Blake.
22376
22377 2008-09-23  Eric Blake  <ebb9@byu.net>
22378
22379         c-stack: avoid compiler optimizations when provoking overflow
22380         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
22381         recursion harder to optimize, to ensure a stack overflow occurs.
22382         * tests/test-c-stack.c (recurse): Likewise.
22383         Borrowed from libsigsegv.
22384
22385         c-stack: work around Irix sigaltstack bug
22386         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
22387         whether sigaltstack uses wrong end of stack_t (copied in part from
22388         libsigsegv).
22389         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
22390         Irix bug, without requiring an over-allocation.
22391         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
22392         bug.
22393
22394         fopen: document mingw bug on directories
22395         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
22396         not allowing a stream visiting a directory, even though reading
22397         from such a stream is not portable.
22398
22399 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
22400
22401         * lib/poll.c: Rewrite.
22402         * modules/poll: Depend on alloca.
22403
22404 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
22405
22406         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
22407         instead define prototypes for a full set of wrappers.  Ensure
22408         that Cygwin does not use the compatibility code, which is only
22409         for MinGW.
22410         * lib/winsock.c: New.
22411         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
22412         * modules/sys_socket: Add lib/winsock.c.
22413
22414         * modules/poll-tests: Add errno and perror.
22415         * tests/test-poll.c: Use ioctl, not ioctlsocket.
22416
22417 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
22418
22419         * tests/test-poll.c: Downgrade minimum needed Winsock version.
22420
22421 2008-09-23  Bruno Haible  <bruno@clisp.org>
22422
22423         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
22424         * doc/glibc-functions/*: Likewise.
22425
22426 2008-09-23  Simon Josefsson  <simon@josefsson.org>
22427
22428         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
22429         success.
22430
22431 2008-09-22  Eric Blake  <ebb9@byu.net>
22432             Bruno Haible  <bruno@clisp.org>
22433
22434         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
22435         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
22436         supply %A but mishandle pseudo-NaN.
22437         Reported by Simon Josefsson.
22438
22439 2008-09-21  Bruno Haible  <bruno@clisp.org>
22440
22441         * tests/test-lock.c (main): Tweak skip message.
22442         * tests/test-tls.c (main): Likewise.
22443
22444 2008-09-21  Bruno Haible  <bruno@clisp.org>
22445
22446         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
22447         whether 'struct sigaction' has sa_sigaction here...
22448         (gl_PREREQ_SIG_HANDLER_H): ... not here.
22449         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
22450
22451 2008-09-21  Bruno Haible  <bruno@clisp.org>
22452
22453         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
22454         section.
22455         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
22456         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
22457         the new section.
22458         (Support for obsolete systems lacking POSIX:2001): New section.
22459         (String handling <string.h>): Move strdup to the new section.
22460         Suggested by Simon Josefsson and Paolo Bonzini.
22461
22462 2008-09-21  Bruno Haible  <bruno@clisp.org>
22463
22464         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
22465         exponents in %e and %g results on 'long double'. Needed for mingw's
22466         improved *printf functions.
22467         * tests/test-vasprintf-posix.c (test_function): Likewise.
22468         * tests/test-snprintf-posix.h (test_function): Likewise.
22469         * tests/test-sprintf-posix.h (test_function): Likewise.
22470         Reported by Eric Blake.
22471
22472 2008-09-21  Bruno Haible  <bruno@clisp.org>
22473
22474         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
22475         * tests/test-sprintf-posix.h (test_function): Likewise.
22476
22477 2008-09-21  Bruno Haible  <bruno@clisp.org>
22478
22479         * modules/getpass (Depends-on): Add strdup-posix.
22480
22481         New module 'strdup-posix'.
22482         * modules/strdup-posix: New file.
22483         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
22484         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
22485         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
22486         REPLACE_STRDUP.
22487         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
22488         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
22489         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22490         strdup-posix.
22491
22492         * modules/strdup (Depends-on): Remove malloc-posix.
22493
22494 2008-09-20  Bruno Haible  <bruno@clisp.org>
22495
22496         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
22497         Wildenhues.
22498
22499 2008-09-20  Bruno Haible  <bruno@clisp.org>
22500
22501         Ensure that wint_t gets defined on IRIX 5.3.
22502         * lib/wchar.in.h (wint_t): Define if not defined by the system.
22503         * lib/wctype.in.h (wint_t): Likewise.
22504         (__wctype_wint_t): Remove type.
22505         (isw*): Use wint_t instead of __wctype_wint_t.
22506         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
22507         * modules/wchar (Files): Add m4/wint_t.m4.
22508         (Makefile.am): Substitute HAVE_WINT_T.
22509         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
22510         * tests/test-wctype.c: Check that wint_t is defined.
22511         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
22512         * doc/posix-headers/wctype.texi: Likewise.
22513         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22514
22515 2008-09-18  Bruno Haible  <bruno@clisp.org>
22516
22517         * gnulib-tool (func_exit): Update comment.
22518
22519 2008-09-18  Simon Josefsson  <simon@josefsson.org>
22520
22521         * modules/getaddrinfo (Depends-on): Remove strdup, this module
22522         assumes strdup exists and does not depend on strdup to return
22523         ENOMEM on out of memory conditions.
22524
22525 2008-09-18  Bruno Haible  <bruno@clisp.org>
22526
22527         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
22528         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
22529         digits for the exponent.
22530
22531 2008-09-18  Jim Meyering  <meyering@redhat.com>
22532             Bruno Haible  <bruno@clisp.org>
22533
22534         * lib/vasnprintf.c (decimal_point_char): Define also if
22535         NEED_PRINTF_INFINITE_LONG_DOUBLE.
22536
22537 2008-09-16  Bruno Haible  <bruno@clisp.org>
22538         and Eric Blake  <ebb9@byu.net>
22539
22540         vasnprintf: support Irix 5.3
22541         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
22542         that mishandle long double infinity.
22543         Reported by Tom G. Christensen.
22544
22545 2008-09-16  Bruno Haible  <bruno@clisp.org>
22546
22547         * doc/glibc-functions/scandir.texi: Mention the function is missing on
22548         Solaris 9.
22549         * doc/glibc-functions/alphasort.texi: Likewise.
22550         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
22551
22552 2008-09-16  Jim Meyering  <meyering@redhat.com>
22553
22554         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
22555         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
22556         a umask modification leak out of a subshell.  Otherwise, the
22557         opensolaris /bin/sh would be accepted and thus cause unwarranted
22558         failures in the coreutils test suite.
22559
22560 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
22561
22562         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
22563         to succeed.
22564
22565 2008-09-16  Jim Meyering  <meyering@redhat.com>
22566
22567         avoid spurious test failure when library is built without ACL support
22568         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
22569         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
22570         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
22571         * tests/test-copy-acl.sh: Likewise.
22572
22573 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22574
22575         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
22576         based on character occurrence counts.
22577
22578 2008-09-15  Eric Blake  <ebb9@byu.net>
22579
22580         tests: avoid some compiler warnings
22581         * tests/test-memchr.c (main): Pass NULL indirectly.
22582         * tests/test-closein.c (main): Avoid unused variable.
22583
22584 2008-09-15  Bruno Haible  <bruno@clisp.org>
22585
22586         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
22587         are missing on OpenBSD 4.0 individually.
22588         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
22589
22590 2008-09-15  Bruno Haible  <bruno@clisp.org>
22591
22592         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
22593         * doc/posix-functions/strerror.texi: Mention also Cygwin.
22594         * doc/posix-functions/perror.texi: Likewise.
22595         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
22596         is missing.
22597         Reported by Eric Blake.
22598
22599         * lib/errno.in.h: Use replacement values >= 2000.
22600         Reported by Eric Blake.
22601
22602 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22603
22604         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
22605         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
22606         limit.
22607         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
22608         compareseq was aborted.
22609
22610 2008-09-14  Bruno Haible  <bruno@clisp.org>
22611
22612         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
22613         yvec_edit_count.
22614         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
22615         (fstrcmp_bounded): Simplify result computation accordingly.
22616
22617 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22618
22619         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
22620         (fstrcmp): Define in terms of fstrcmp_bounded.
22621         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
22622         lower_bound argument.
22623         Return quickly if the result is certainly < lower_bound.
22624         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
22625
22626 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22627
22628         * lib/diffseq.h (EARLY_ABORT): New macro.
22629         (compareseq): Change return type to bool. Return true when EARLY_ABORT
22630         evaluates to true.
22631
22632 2008-09-14  Bruno Haible  <bruno@clisp.org>
22633
22634         * modules/perror-tests: New file.
22635         * tests/test-perror.sh: New file.
22636         * tests/test-perror.c: New file.
22637
22638         New module 'perror'.
22639         * lib/stdio.in.h (perror): New declaration.
22640         * lib/perror.c: New file.
22641         * m4/perror.m4: New file.
22642         * modules/perror: New file.
22643         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
22644         * doc/posix-functions/perror.texi: Mention the perror module.
22645         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
22646         REPLACE_PERROR.
22647         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
22648         REPLACE_PERROR.
22649
22650 2008-09-14  Bruno Haible  <bruno@clisp.org>
22651
22652         * modules/stdio (Makefile.am): Reorder to match the order in
22653         lib/stdio.in.h.
22654         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
22655
22656 2008-09-13  Bruno Haible  <bruno@clisp.org>
22657
22658         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
22659
22660 2008-09-13  Bruno Haible  <bruno@clisp.org>
22661
22662         Extend strerror to cover the added errno values.
22663         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
22664         (rpl_strerror): Provide error messages for the added errno values and
22665         for the WSA* values.
22666         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
22667         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
22668         strerror.
22669         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
22670         * modules/strerror (Depends-on): Add errno.
22671         * doc/posix-functions/strerror.texi: Document the change.
22672         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
22673         and EOVERFLOW.
22674
22675 2008-09-13  Bruno Haible  <bruno@clisp.org>
22676
22677         * modules/EOVERFLOW: Remove file.
22678         * m4/eoverflow.m4: Remove file.
22679         * modules/EOVERFLOW-tests: Remove file.
22680         * tests/test-EOVERFLOW.c: Remove file.
22681         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
22682         * modules/ftell (Depends-on): Likewise.
22683         * modules/getdelim (Depends-on): Likewise.
22684         * modules/getugroups (Depends-on): Likewise.
22685         * modules/poll (Depends-on): Likewise.
22686         * modules/snprintf (Depends-on): Likewise.
22687         * modules/sprintf-posix (Depends-on): Likewise.
22688         * modules/vasnprintf (Depends-on): Likewise.
22689         * modules/vasprintf (Depends-on): Likewise.
22690         * modules/vfprintf-posix (Depends-on): Likewise.
22691         * modules/vsnprintf (Depends-on): Likewise.
22692         * modules/vsprintf-posix (Depends-on): Likewise.
22693         * modules/xvasprintf (Depends-on): Likewise.
22694         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
22695         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
22696         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
22697         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
22698         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
22699         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
22700         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
22701         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
22702         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
22703         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
22704         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
22705         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
22706         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
22707         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
22708         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
22709         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
22710         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
22711         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
22712         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
22713         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
22714         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
22715         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
22716         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
22717         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
22718         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
22719         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
22720         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
22721         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
22722         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
22723         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
22724         * MODULES.html.sh: Remove EOVERFLOW.
22725         * NEWS: Mention the change.
22726
22727 2008-09-13  Bruno Haible  <bruno@clisp.org>
22728
22729         * modules/errno-tests: New file.
22730         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
22731
22732         * lib/errno.in.h: New file.
22733         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
22734         * modules/errno: New file.
22735         * doc/posix-headers/errno.texi: Update documentation.
22736         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
22737
22738 2008-09-13  Bruno Haible  <bruno@clisp.org>
22739
22740         * tests/test-poll.c: Use #if for native Windows, rather than testing
22741         __MSVCRT__.
22742
22743 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22744             Bruno Haible  <bruno@clisp.org>
22745
22746         * lib/glob.c: Don't include <pwd.h> on native Windows.
22747         (WINDOWS32): New macro.
22748         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
22749
22750 2008-09-13  Bruno Haible  <bruno@clisp.org>
22751
22752         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
22753         (ETIMEDOUT): Remove macro.
22754         (glthread_cond_timedwait_multithreaded): New declaration.
22755         (glthread_cond_timedwait): Use it.
22756         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
22757         (glthread_cond_timedwait_multithreaded): New function.
22758
22759 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
22760
22761         * modules/poll-tests: Do not check for io.h.
22762         * tests/test-poll.c: Check for __MSVCRT__ instead.
22763
22764 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
22765
22766         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
22767         * modules/poll-tests: Add inet_pton, stdbool, sockets.
22768         * tests/test-poll.c: Use them.  Use _pipe on Windows.
22769
22770 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
22771
22772         * modules/poll-tests: New.
22773         * tests/test-poll.c: New.
22774
22775 2008-09-12  Eric Blake  <ebb9@byu.net>
22776
22777         frexp: test for NetBSD failure on -0.0
22778         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
22779         not all, bugs from NetBSD 3.0 have been fixed.
22780         * doc/posix-functions/frexp.texi (frexp): Document bug.
22781         Reported by Thomas Klausner.
22782
22783         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
22784         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
22785         literal -0.0.
22786         Reported by Jonathan C. Patschke <jp@centtech.com>.
22787
22788 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22789
22790         * lib/glthread/cond.h: Use dummy implementation also if
22791         USE_WIN32_THREADS.
22792
22793 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22794
22795         * modules/fnmatch-posix (License): Change to LGPLv2+.
22796         * modules/fnmatch-gnu (License): Likewise.
22797
22798 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22799
22800         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
22801
22802 2008-09-11  Jim Meyering  <meyering@redhat.com>
22803
22804         * users.txt: Add gtk-vnc.
22805
22806 2008-09-08  Simon Josefsson  <simon@josefsson.org>
22807
22808         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
22809         rotate amounts.
22810
22811         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
22812         required for 16-bit and 8-bit rotates.
22813         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
22814         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
22815         UINT8_MAX instead of hard-coded constants.
22816         Suggested by Paul Eggert.
22817
22818 2008-09-07  Bruno Haible  <bruno@clisp.org>
22819
22820         * tests/test-striconveh.c (main): Check behaviour when converting from
22821         UTF-7.
22822
22823         Make striconveh work better with stateful encodings.
22824         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
22825         that iconv does not increment the inptr when returning -1/EINVAL.
22826
22827 2008-09-07  Bruno Haible  <bruno@clisp.org>
22828
22829         * build-aux/config.rpath: Update according to libtool-2.2.6.
22830         * build-aux/config.libpath: Likewise.
22831
22832 2008-09-06  Bruno Haible  <bruno@clisp.org>
22833
22834         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
22835         * lib/freadptr.c (freadptr): Likewise.
22836         * lib/freadseek.c (freadptrinc): Likewise.
22837         Reported by Simon Josefsson.
22838
22839 2008-09-06  Bruno Haible  <bruno@clisp.org>
22840
22841         * modules/freadptr (License): Change to LGPLv2+.
22842         * modules/freadseek (License): Likewise.
22843         Suggested by Eric Blake.
22844
22845         * modules/memchr2 (License): Change to LGPLv2+.
22846         Approved by Eric Blake.
22847
22848 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22849             Bruno Haible  <bruno@clisp.org>
22850
22851         Make gnulib-tool work with native 'sed' on AIX.
22852         * gnulib-tool (sed_noop): New variable.
22853         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
22854         func_add_or_update, func_create_testdir): Use it to initialize sed
22855         script variables.
22856         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22857
22858 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
22859             Bruno Haible  <bruno@clisp.org>
22860
22861         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
22862         also works after #include directives.
22863
22864 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
22865
22866         getdate.y: reject an out-of-range timezone value
22867         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
22868         the range [-24...+24].  When specified with only one or two digits,
22869         * tests/test-getdate.c: Tests for the fix.
22870         * doc/getdate.texi: Document this change.
22871
22872 2008-09-03  Bruno Haible  <bruno@clisp.org>
22873
22874         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
22875
22876 2008-09-02  Simon Josefsson  <simon@josefsson.org>
22877
22878         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
22879         <bruce.korb@gmail.com> with ideas from Ben Pfaff
22880         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
22881         Blake <ebb9@byu.net>.
22882
22883         * tests/test-bitrotate.c: Add more test vectors.
22884
22885 2008-09-02  Eric Blake  <ebb9@byu.net>
22886
22887         vasnprintf-posix: handle large precision via %.*d
22888         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
22889         when handling it ourselves.
22890         * tests/test-vasnprintf-posix.c (test_function): Add test.
22891         * tests/test-snprintf-posix.h (test_function): Likewise.
22892         * tests/test-sprintf-posix.h (test_function): Likewise.
22893         * tests/test-vasprintf-posix.c (test_function): Likewise.
22894         Reported by Alain Guibert.
22895
22896 2008-09-01  Eric Blake  <ebb9@byu.net>
22897
22898         c-stack: make configure-time check more robust
22899         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
22900         successful sigaction call.
22901         Reported by Tom G. Christensen.
22902
22903 2008-09-01  Bruno Haible  <bruno@clisp.org>
22904
22905         New module 'findprog-lgpl'.
22906         * modules/findprog-lgpl: New file.
22907         * lib/findprog-lgpl.c: New file.
22908         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
22909         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
22910         to decide whether to use strdup or xstrdup, concatenated_filename or
22911         xconcatenated_filename.
22912
22913 2008-09-01  Bruno Haible  <bruno@clisp.org>
22914
22915         Split module 'concat-filename' into 'concat-filename' (LGPL) and
22916         'xconcat-filename' (GPL).
22917         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
22918         (License): Change to LGPLv2+.
22919         * modules/xconcat-filename: New file.
22920         * lib/concat-filename.h (concatenated_filename): Change specification.
22921         (xconcatenated_filename): New declaration.
22922         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
22923         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
22924         memory situations.
22925         * lib/xconcat-filename.c: New file.
22926         * NEWS: Mention the change.
22927         * lib/findprog.c: Include concat-filename.h, not filename.h.
22928         (find_in_path): Use xconcatenated_filename instead of
22929         concatenated_filename.
22930         * lib/javacomp.c: Include concat-filename.h, not filename.h.
22931         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
22932         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
22933         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
22934         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
22935         instead of concatenated_filename.
22936         * lib/javaexec.c: Include concat-filename.h, not filename.h.
22937         (execute_java_class): Use xconcatenated_filename instead of
22938         concatenated_filename.
22939         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
22940         * modules/javacomp (Depends-on): Likewise.
22941         * modules/javaexec (Depends-on): Likewise.
22942
22943 2008-09-01  Bruno Haible  <bruno@clisp.org>
22944
22945         Split module 'filename' into 'filename' and 'concat-filename'.
22946         * modules/filename: Keep only lib/filename.h.
22947         (License): Change to LGPLv2+.
22948         * modules/concat-filename: New file, extracted from modules/filename.
22949         * lib/filename.h (concatenated_filename): Remove declaration.
22950         * lib/concat-filename.h: New file, extracted from lib/filename.h.
22951         * lib/concat-filename.c: Include concat-filename.h.
22952         * NEWS: Mention the change.
22953
22954 2008-09-01  Simon Josefsson  <simon@josefsson.org>
22955
22956         * lib/bitrotate.h (rotl8, rotr8): Add.
22957
22958         * modules/bitrotate (configure.ac): Need
22959         AC_REQUIRE([AC_C_INLINE]).
22960         (Description): Mention stdint.h.  Reported by Bruno Haible
22961         <bruno@clisp.org>.
22962
22963         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
22964         Paolo Bonzini <bonzini@gnu.org>.
22965
22966 2008-08-31  Bruno Haible  <bruno@clisp.org>
22967
22968         Assume Solaris specific bi-arch conventions on Solaris systems.
22969         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
22970         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
22971         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
22972         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
22973         like acl_libdirstem.
22974         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
22975         acl_libdirstem.
22976         * NEWS: Mention the change.
22977         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
22978
22979 2008-08-31  Jim Meyering  <meyering@redhat.com>
22980
22981         * lib/strftime.h: Add comments describing the two added arguments.
22982
22983         remove duplicate #include directives
22984         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
22985         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
22986
22987 2008-08-31  Bruno Haible  <bruno@clisp.org>
22988
22989         New module 'sigpipe-die'.
22990         * modules/sigpipe-die: New file.
22991         * lib/sigpipe-die.h: New file.
22992         * lib/sigpipe-die.c: New file.
22993         * MODULES.html.sh (Signal handling): Add sigpipe-die.
22994
22995 2008-08-31  Bruno Haible  <bruno@clisp.org>
22996
22997         Don't override previously installed signal handlers.
22998         * lib/fatal-signal.c (saved_sigactions): New variable.
22999         (uninstall_handlers): Reset the signal to the saved handler, not
23000         to SIG_DFL (except when ignored).
23001         (install_handlers): Save the previous handlers.
23002
23003 2008-08-30  Bruno Haible  <bruno@clisp.org>
23004
23005         * gnulib-tool (func_reset_sigpipe): New function.
23006         (func_get_automake_snippet, func_modules_transitive_closure,
23007         func_import): Invoke it before a join command that reads from stdin,
23008         to avoid "echo: write error: Broken pipe" error messages on stderr.
23009         Reported by Sam Steingold <sds@gnu.org>.
23010
23011 2008-08-30  Bruno Haible  <bruno@clisp.org>
23012
23013         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
23014         Code copied from m4/open.m4.
23015         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
23016         access and the filename ends in a slash. Code copied from lib/open.c.
23017         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
23018         * tests/test-fopen.c (main): Check against bug with trailing slash.
23019
23020 2008-08-29  Bruno Haible  <bruno@clisp.org>
23021
23022         Avoid some "gcc -pedantic" warnings.
23023         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
23024         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
23025         * lib/dirent.in.h: Likewise.
23026         * lib/fcntl.in.h: Likewise.
23027         * lib/float.in.h: Likewise.
23028         * lib/iconv.in.h: Likewise.
23029         * lib/inttypes.in.h: Likewise.
23030         * lib/locale.in.h: Likewise.
23031         * lib/math.in.h: Likewise.
23032         * lib/netinet_in.in.h: Likewise.
23033         * lib/search.in.h: Likewise.
23034         * lib/signal.in.h: Likewise.
23035         * lib/stdarg.in.h: Likewise.
23036         * lib/stdint.in.h: Likewise.
23037         * lib/stdio.in.h: Likewise.
23038         * lib/stdlib.in.h: Likewise.
23039         * lib/string.in.h: Likewise.
23040         * lib/strings.in.h: Likewise.
23041         * lib/sys_select.in.h: Likewise.
23042         * lib/sys_socket.in.h: Likewise.
23043         * lib/sys_stat.in.h: Likewise.
23044         * lib/sys_time.in.h: Likewise.
23045         * lib/sysexits.in.h: Likewise.
23046         * lib/time.in.h: Likewise.
23047         * lib/unistd.in.h: Likewise.
23048         * lib/wchar.in.h: Likewise.
23049         * lib/wctype.in.h: Likewise.
23050         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
23051         * modules/fchdir (Makefile.am): Likewise.
23052         * modules/fcntl (Makefile.am): Likewise.
23053         * modules/float (Makefile.am): Likewise.
23054         * modules/iconv_open (Makefile.am): Likewise.
23055         * modules/inttypes (Makefile.am): Likewise.
23056         * modules/locale (Makefile.am): Likewise.
23057         * modules/math (Makefile.am): Likewise.
23058         * modules/netinet_in (Makefile.am): Likewise.
23059         * modules/search (Makefile.am): Likewise.
23060         * modules/signal (Makefile.am): Likewise.
23061         * modules/stdarg (Makefile.am): Likewise.
23062         * modules/stdint (Makefile.am): Likewise.
23063         * modules/stdio (Makefile.am): Likewise.
23064         * modules/stdlib (Makefile.am): Likewise.
23065         * modules/string (Makefile.am): Likewise.
23066         * modules/strings (Makefile.am): Likewise.
23067         * modules/sys_select (Makefile.am): Likewise.
23068         * modules/sys_socket (Makefile.am): Likewise.
23069         * modules/sys_stat (Makefile.am): Likewise.
23070         * modules/sys_time (Makefile.am): Likewise.
23071         * modules/sysexits (Makefile.am): Likewise.
23072         * modules/time (Makefile.am): Likewise.
23073         * modules/unistd (Makefile.am): Likewise.
23074         * modules/wchar (Makefile.am): Likewise.
23075         * modules/wctype (Makefile.am): Likewise.
23076         Reported by Reuben Thomas <rrt@sc3d.org>.
23077
23078 2008-08-29  Bruno Haible  <bruno@clisp.org>
23079
23080         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
23081         any more.
23082
23083 2008-08-29  Simon Josefsson  <simon@josefsson.org>
23084
23085         * MODULES.html.sh (Misc): Add bitrotate.
23086
23087         * modules/bitrotate: New file.
23088
23089         * lib/bitrotate.h: New file.
23090
23091         * modules/bitrotate-tests: New file.
23092
23093         * tests/test-bitrotate.c: New file.
23094
23095         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
23096         on the bitrotate module.
23097
23098         * lib/arctwo.c: Use new bitrotate module.
23099
23100 2008-08-29  Jim Meyering  <meyering@redhat.com>
23101
23102         bootstrap: merge changes from coreutils
23103         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
23104         of copied files.  Remove a kludge, now that this is fixed.
23105         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
23106         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
23107         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
23108
23109 2008-08-29  Bruno Haible  <bruno@clisp.org>
23110
23111         * MODULES.html.sh: Remove --cvs-urls option.
23112
23113 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
23114
23115         maint.mk: adjust to file name change
23116         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
23117
23118 2008-08-28  Jim Meyering  <meyering@redhat.com>
23119
23120         * modules/getndelim2 (License): Relicense to LGPLv2+.
23121         Approved by Richard Stallman for the version of 1995, and by
23122         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
23123
23124 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
23125
23126         * lib/getdelim.c (flockfile, funlockfile): Make all of them
23127         dummy if one is not available.  Do not touch them if
23128         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
23129         (getc_maybe_unlocked): New.
23130         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
23131
23132 2008-08-26  Eric Blake  <ebb9@byu.net>
23133
23134         doc/INSTALL: resync from autoconf
23135         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
23136         (INSTALL_PRELUDE): Delete; this is done more efficiently by
23137         moving...
23138         * install.texi [!autoconf]: ...here.  Resync from autoconf.
23139         * INSTALL: Regenerate.
23140         * INSTALL.ISO: New file.
23141         * INSTALL.UTF-8: Likewise.
23142
23143 2008-08-26  Jim Meyering  <meyering@redhat.com>
23144
23145         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
23146         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
23147         these definitions conditional, so that they may be overridden, too.
23148
23149 2008-08-26  Bruno Haible  <bruno@clisp.org>
23150
23151         Generate INSTALL file variants with prettier quotes.
23152         * doc/Makefile (INSTALL_PRELUDE): New macro.
23153         (INSTALL): Use it.
23154         (INSTALL.ISO, INSTALL.UTF-8): New rules.
23155
23156 2008-08-26  Bruno Haible  <bruno@clisp.org>
23157
23158         Run makeinfo in an English locale.
23159         * doc/Makefile (MAKEINFO): New variable.
23160
23161 2008-08-26  Bruno Haible  <bruno@clisp.org>
23162
23163         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
23164         Suggested by Eric Blake.
23165
23166 2008-08-25  Bruno Haible  <bruno@clisp.org>
23167
23168         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
23169
23170 2008-08-25  Eric Blake  <ebb9@byu.net>
23171
23172         c-stack: test that stack overflow can be caught
23173         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
23174         that platform allows handling stack overflow; at least OS/2 EMX
23175         has sigaltstack, but crashes before transferring control to
23176         handler on stack overflow.
23177         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
23178         check for HAVE_STACK_OVERFLOW_HANDLING.
23179         Reported by Elbert Pol.
23180
23181 2008-08-25  Bruno Haible  <bruno@clisp.org>
23182
23183         * doc/posix-functions/strftime.texi: Fix description of strftime
23184         module.
23185
23186 2008-08-24  Bruno Haible  <bruno@clisp.org>
23187
23188         * tests/uniwidth/test-uc_width2.c: New file.
23189         * tests/uniwidth/test-uc_width2.sh: New file.
23190         * modules/uniwidth/width-tests (Files): Add the new files.
23191         (TESTS): Add uniwidth/test-uc_width2.sh.
23192         (TESTS_ENVIRONMENT): New variable.
23193         (check_PROGRAMS): Add test-uc_width2.
23194         (test_uc_width2_SOURCES): New variable.
23195
23196         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
23197         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
23198         not 0x00AB.
23199         Reported by Alexander V. Lukyanov <lav@netis.ru>.
23200
23201 2008-08-22  Eric Blake  <ebb9@byu.net>
23202
23203         test-lock, test-tls: mention why a test is skipped
23204         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
23205         skipped.
23206         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
23207
23208         count-one-bits: relax license
23209         * modules/count-one-bits (License): Relicense to LGPLv2+.
23210         Suggested by Ludovic Courtès, approved by Ben Pfaff.
23211
23212 2008-08-22  Andreas Schwab  <schwab@suse.de>
23213
23214         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
23215         Remove spurious space in assignment.
23216
23217 2008-08-21  Simon Josefsson  <simon@josefsson.org>
23218
23219         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
23220         Paul Eggert <eggert@CS.UCLA.EDU>.
23221
23222 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
23223
23224         * modules/gettext: Add m4/threadlib.m4.
23225
23226 2008-08-19  Eric Blake  <ebb9@byu.net>
23227
23228         test-c-stack: fix compilation failure on FreeBSD 5.0
23229         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
23230         headers before <sys/resource.h>.
23231         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
23232         the bug.
23233         Reported by Nelson H. F. Beebe.
23234
23235         strverscmp: migrate from "strverscmp.h" to <string.h>
23236         * modules/string (Makefile.am): Add new hooks.
23237         * modules/strverscmp (Files): Remove strverscmp.h.
23238         (Depends-on): Add string.
23239         (configure.ac): Add indicator.
23240         (Include): Mention new header.
23241         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
23242         defaults.
23243         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
23244         results.
23245         * lib/strverscmp.h: Delete.
23246         * lib/string.in.h (strverscmp): Provide declaration, when needed.
23247         * tests/test-strverscmp.c (includes): Adjust client.
23248         * lib/check-version.c (includes): Likewise.
23249         * NEWS: Document the change.
23250
23251         strverscmp: add unit test
23252         * modules/strverscmp-tests: New file.
23253         * tests/test-strverscmp.c: Likewise.
23254
23255 2008-08-19  Simon Josefsson  <simon@josefsson.org>
23256
23257         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
23258         regarding Windows crypto stuff, from Mono.
23259
23260 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
23261
23262         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
23263         if present, for intel RND.  Return error on failures.
23264
23265 2008-08-18  Ben Pfaff  <blp@gnu.org>
23266
23267         gitlog-to-changelog: give better diagnostic for failed pipe-open
23268         * build-aux/gitlog-to-changelog: Improve error message: suggest
23269         that the version of Git may be too old.
23270
23271 2008-08-18  Simon Josefsson  <simon@josefsson.org>
23272
23273         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
23274         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
23275
23276 2008-08-18  Bruno Haible  <bruno@clisp.org>
23277
23278         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
23279         pthread_in_use().
23280
23281 2008-08-18  Bruno Haible  <bruno@clisp.org>
23282
23283         * lib/glthread/threadlib.c: Include <pthread.h>.
23284
23285 2008-08-18  Bruno Haible  <bruno@clisp.org>
23286
23287         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
23288         glthread_recursive_lock_* macros.
23289         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
23290         Fix syntax error.
23291
23292 2008-08-18  Bruno Haible  <bruno@clisp.org>
23293
23294         * lib/glthread/thread.c: Avoid forcing a context switch right after
23295         thread creation.
23296
23297 2008-08-17  Bruno Haible  <bruno@clisp.org>
23298
23299         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
23300         * lib/glthread/thread.h: Provide Win32 specific implementation.
23301         * modules/thread (Files): Add lib/glthread/thread.c.
23302         (Depends-on): Add lock.
23303         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
23304
23305 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23306
23307         New module 'yield'.
23308         * modules/yield: New file.
23309         * lib/glthread/yield.h: New file.
23310         * m4/yield.m4: New file.
23311         * MODULES.html.sh (Multithreading): Add yield.
23312
23313 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23314
23315         New module 'thread'.
23316         * modules/thread: New file.
23317         * lib/glthread/thread.h: New file.
23318         * m4/thread.m4: New file.
23319         * MODULES.html.sh (Multithreading): Add thread.
23320
23321 2008-08-17  Bruno Haible  <bruno@clisp.org>
23322
23323         * lib/glthread/lock.h: Include <stdlib.h> always.
23324         * lib/glthread/tls.h: Likewise.
23325         * lib/glthread/cond.h: Likewise.
23326
23327 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23328
23329         New module 'cond'.
23330         * modules/cond: New file.
23331         * lib/glthread/cond.h: New file.
23332         * lib/glthread/cond.c: New file.
23333         * m4/cond.m4: New file.
23334         * MODULES.html.sh (Multithreading): Add cond.
23335
23336 2008-08-16  Eric Blake  <ebb9@byu.net>
23337
23338         c-stack: fix regression on Irix 5.3 from 2008-06-21
23339         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
23340         sa_sigaction...
23341         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
23342         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
23343         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
23344         * modules/signal (Makefile.am): Use the value.
23345         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
23346         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
23347         * doc/posix-headers/signal.texi (signal.h): Document this
23348         portability issue.
23349         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
23350         Reported by Tom G. Christensen.
23351
23352 2008-08-17  Bruno Haible  <bruno@clisp.org>
23353
23354         New module 'threadlib'.
23355         * modules/threadlib: New file.
23356         * lib/glthread/threadlib.c: New file, extracted from
23357         lib/glthread/lock.c.
23358         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
23359         functions.
23360         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
23361         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
23362         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
23363         macros.
23364         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
23365         (gl_DISABLE_THREADS): Remove macro.
23366         * modules/lock (Files): Remove build-aux/config.rpath.
23367         (Depends-on): Remove havelib. Add threadlib.
23368         (configure.ac-early): Remove section.
23369         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
23370         * modules/tls (Depends-on): Remove lock. Add threadlib.
23371         (Link): New section, copied from threadlib.
23372         * MODULES.html.sh (Multithreading): Add threadlib.
23373
23374 2008-08-14  Bruno Haible  <bruno@clisp.org>
23375
23376         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
23377         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
23378         glthread_rwlock_unlock, glthread_rwlock_destroy,
23379         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
23380         glthread_recursive_lock_destroy): Define as macros always.
23381         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
23382         glthread_lock_lock.
23383         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
23384         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
23385         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
23386         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
23387         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
23388         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
23389         (glthread_recursive_lock_lock_func): Renamed from
23390         glthread_recursive_lock_lock.
23391         (glthread_recursive_lock_unlock_func): Renamed from
23392         glthread_recursive_lock_unlock.
23393         (glthread_recursive_lock_destroy_func): Renamed from
23394         glthread_recursive_lock_destroy.
23395
23396 2008-08-14  Bruno Haible  <bruno@clisp.org>
23397
23398         * lib/glthread/lock.h: Renamed from lib/lock.h.
23399         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
23400         * lib/glthread/tls.h: Renamed from lib/tls.h.
23401         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
23402         * lib/fstrcmp.c: Update includes.
23403         * lib/strsignal.c: Update includes.
23404         * modules/lock (Files, Makefile.am): Update.
23405         (Include): Change to "glthread/lock.h".
23406         * modules/tls (Files, Makefile.am): Update.
23407         (Include): Change to "glthread/tls.h".
23408         * tests/test-lock.c: Update includes.
23409         * tests/test-tls.c: Update includes.
23410         * NEWS: Mention the renamed header files.
23411
23412 2008-08-11  Jim Meyering  <meyering@redhat.com>
23413
23414         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
23415
23416 2008-08-11  Eric Blake  <ebb9@byu.net>
23417
23418         test-c-stack: avoid C99-ism
23419         * tests/test-c-stack.c (main): Fix whitespace, move declaration
23420         before statement.
23421         Reported by Alain Guibert.
23422
23423 2008-08-10  Jim Meyering  <meyering@redhat.com>
23424
23425         ensure that return value of uinttostr et al are not ignored
23426         * lib/inttostr.h (__GNUC_PREREQ): Define.
23427         (__attribute_warn_unused_result__): Define.
23428         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
23429
23430 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
23431
23432         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
23433         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
23434
23435 2008-08-07  Jim Meyering  <meyering@redhat.com>
23436
23437         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
23438
23439         * modules/mkstemp (License): Relicense under LGPLv2+.
23440         * modules/tempname (License): Likewise.
23441
23442 2008-08-06  Bruno Haible  <bruno@clisp.org>
23443
23444         * lib/poll.c (poll): Further micro-optimization.
23445
23446 2008-08-06  Jim Meyering  <meyering@redhat.com>
23447
23448         inet_pton.c: use locale-independent tolower
23449         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
23450         (inet_pton6): Use c_tolower rather than tolower.
23451         * modules/inet_pton (Depends-on): Add c-ctype.
23452
23453 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
23454
23455         * lib/poll.c (poll): Avoid division when timeout is 0, cache
23456         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
23457
23458 2008-08-06  Jim Meyering  <meyering@redhat.com>
23459
23460         * modules/inet_pton (License): Relicense under LGPLv2+.
23461
23462 2008-08-03  Bruno Haible  <bruno@clisp.org>
23463
23464         Additional non-aborting API for lock and tls.
23465         * lib/lock.h: Include <errno.h>.
23466         (glthread_lock_init): New macro/function.
23467         (gl_lock_init): Define as wrapper around glthread_lock_init.
23468         (glthread_lock_lock): New macro/function.
23469         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
23470         (glthread_lock_unlock): New macro/function.
23471         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
23472         (glthread_lock_destroy): New macro/function.
23473         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
23474         (glthread_rwlock_init): New macro/function.
23475         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
23476         (glthread_rwlock_rdlock): New macro/function.
23477         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
23478         (glthread_rwlock_wrlock): New macro/function.
23479         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
23480         (glthread_rwlock_unlock): New macro/function.
23481         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
23482         (glthread_rwlock_destroy): New macro/function.
23483         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
23484         (glthread_recursive_lock_init): New macro/function.
23485         (gl_recursive_lock_init): Define as wrapper around
23486         glthread_recursive_lock_init.
23487         (glthread_recursive_lock_lock): New macro/function.
23488         (gl_recursive_lock_lock): Define as wrapper around
23489         glthread_recursive_lock_lock.
23490         (glthread_recursive_lock_unlock): New macro/function.
23491         (gl_recursive_lock_unlock): Define as wrapper around
23492         glthread_recursive_lock_unlock.
23493         (glthread_recursive_lock_destroy): New macro/function.
23494         (gl_recursive_lock_destroy): Define as wrapper around
23495         glthread_recursive_lock_destroy.
23496         (glthread_once): New macro/function.
23497         (gl_once): Define as wrapper around glthread_once.
23498         Update function declarations.
23499         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
23500         glthread_rwlock_init. Return error code.
23501         (glthread_rwlock_rdlock_multithreaded): Renamed from
23502         glthread_rwlock_rdlock. Return error code.
23503         (glthread_rwlock_wrlock_multithreaded): Renamed from
23504         glthread_rwlock_wrlock. Return error code.
23505         (glthread_rwlock_unlock_multithreaded): Renamed from
23506         glthread_rwlock_unlock. Return error code.
23507         (glthread_rwlock_destroy_multithreaded): Renamed from
23508         glthread_rwlock_destroy. Return error code.
23509         (glthread_recursive_lock_init_multithreaded): Renamed from
23510         glthread_recursive_lock_init. Return error code.
23511         (glthread_recursive_lock_lock_multithreaded): Renamed from
23512         glthread_recursive_lock_lock. Return error code.
23513         (glthread_recursive_lock_unlock_multithreaded): Renamed from
23514         glthread_recursive_lock_unlock. Return error code.
23515         (glthread_recursive_lock_destroy_multithreaded): Renamed from
23516         glthread_recursive_lock_destroy. Return error code.
23517         (glthread_once_call): Make static.
23518         (glthread_once_multithreaded): Renamed from glthread_once.
23519         * lib/tls.h: Include <errno.h>.
23520         (glthread_tls_key_init): New macro/function.
23521         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
23522         (glthread_tls_set): New macro/function.
23523         (gl_tls_set): Define as wrapper around glthread_tls_set.
23524         (glthread_tls_key_destroy): New macro/function.
23525         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
23526         Update function declarations.
23527         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
23528         glthread_tls_get.
23529         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
23530
23531 2008-08-04  Eric Blake  <ebb9@byu.net>
23532
23533         gnumakefile: use space, not TAB, outside of targets
23534         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
23535
23536 2008-08-02  Jim Meyering  <meyering@redhat.com>
23537
23538         getdate.y: avoid locale-dependent date parsing failure
23539         In Turkish locales, getdate would fail to recognize keywords
23540         containing a lowercase "i".  The solution is not to rely on
23541         locale-sensitive case-conversion.
23542         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
23543         (lookup_word): Use c_toupper in place of toupper.
23544         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
23545         Reported by Vefa Bicakci <bicave@superonline.com> in
23546         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
23547         * modules/getdate (Depends-on): Add c-ctype.
23548
23549 2008-08-02  Bruno Haible  <bruno@clisp.org>
23550
23551         * gnulib-tool (func_import): When updating or creating a .gitignore
23552         file, prepend each added line with a slash, and ignore leading slashes
23553         from the existing lines.
23554         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
23555
23556 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23557
23558         Portability fix for GNU make 3.79.1.
23559         * top/GNUmakefile: Avoid 'else COND', which older GNU make
23560         versions do not understand.
23561
23562 2008-08-01  Bruno Haible  <bruno@clisp.org>
23563
23564         Work around bug of HP-UX 10.20 cc with -0.0 literal.
23565         * tests/test-isnanf.h (zero): New variable.
23566         (main): Avoid literal -0.0f.
23567         * tests/test-isnand.h (zero): New variable.
23568         (main): Avoid literal -0.0.
23569         * tests/test-isnanl.h (zero): New variable.
23570         (main): Avoid literal -0.0L.
23571         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
23572         (test_float, test_double, test_long_double): Avoid literals -0.0f,
23573         -0.0, -0.0L.
23574         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
23575         (test_signbitd): Avoid literal -0.0.
23576         (test_signbitl): Avoid literal -0.0L.
23577         * tests/test-ceilf1.c (zero): New variable.
23578         (main): Avoid literal -0.0f.
23579         * tests/test-ceill.c (zero): New variable.
23580         (main): Avoid literal -0.0L.
23581         * tests/test-floorf1.c (zero): New variable.
23582         (main): Avoid literal -0.0f.
23583         * tests/test-floorl.c (zero): New variable.
23584         (main): Avoid literal -0.0L.
23585         * tests/test-roundf1.c (zero): New variable.
23586         (main): Avoid literal -0.0f.
23587         * tests/test-round1.c (zero): New variable.
23588         (main): Avoid literal -0.0.
23589         * tests/test-roundl.c (zero): New variable.
23590         (main): Avoid literal -0.0L.
23591         * tests/test-truncf1.c (zero): New variable.
23592         (main): Avoid literal -0.0f.
23593         * tests/test-trunc1.c (zero): New variable.
23594         (main): Avoid literal -0.0.
23595         * tests/test-truncl.c (zero): New variable.
23596         (main): Avoid literal -0.0L.
23597         * tests/test-frexp.c (zero): New variable.
23598         (main): Avoid literal -0.0.
23599         * tests/test-frexpl.c (zero): New variable.
23600         (main): Avoid literal -0.0L.
23601         * tests/test-ldexpl.c (zero): New variable.
23602         (main): Avoid literal -0.0L.
23603         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
23604         (zerod, zerol): New variables.
23605         (test_function): Avoid literals -0.0, -0.0L.
23606         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
23607         (zerod, zerol): New variables.
23608         (test_function): Avoid literals -0.0, -0.0L.
23609         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
23610         (zerod, zerol): New variables.
23611         (test_function): Avoid literals -0.0, -0.0L.
23612         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
23613         (zerod, zerol): New variables.
23614         (test_function): Avoid literals -0.0, -0.0L.
23615         * tests/test-strtod.c (zero): New variable.
23616         (main): Avoid literal -0.0.
23617         Reported by Jonathan C. Patschke <jp@centtech.com>.
23618
23619 2008-07-31  Jim Meyering  <meyering@redhat.com>
23620
23621         sha256.h: correct definition of SHA224_DIGEST_SIZE
23622         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
23623         Reported by Paulie Pena IV <paulie4@gmail.com>.
23624         Define as 224 / 8, rather than as a literal.
23625         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
23626         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
23627         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
23628
23629 2008-07-31  Bruno Haible  <bruno@clisp.org>
23630
23631         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
23632         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
23633         Reported by Jonathan Patschke <jp@centtech.com>.
23634
23635 2008-07-31  Bruno Haible  <bruno@clisp.org>
23636
23637         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
23638         Reported by Paolo Bonzini <bonzini@gnu.org>.
23639
23640 2008-07-30  Eric Blake  <ebb9@byu.net>
23641
23642         test-strtod: allow compilation without -lm
23643         * tests/test-strtod.c (main): Avoid link dependence on fabs.
23644         Reported by Dennis Clarke <blastwave@gmail.com>.
23645
23646 2008-07-28  Jim Meyering  <meyering@redhat.com>
23647
23648         bootstrap: work also when there are no .po files in po/
23649         * build-aux/bootstrap (update_po_files): Complete the change
23650         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
23651
23652 2008-07-27  Jim Meyering  <meyering@redhat.com>
23653
23654         * users.txt: Add zile.
23655
23656 2008-07-26  Ben Pfaff  <blp@gnu.org>
23657
23658         Add missing dependencies on new m4/exponent[fdl].m4 files.
23659         * modules/isnanf-nolibm: Add m4/exponentf.m4.
23660         * modules/isnand-nolibm: Add m4/exponentd.m4.
23661         * modules/isnanl-nolibm: Add m4/exponentl.m4.
23662         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
23663         m4/isnan[fdl].m4, because the macros actually used moved.
23664         Reported by Jim Meyering.
23665
23666 2008-07-14  Ben Pfaff  <blp@gnu.org>
23667
23668         Add isinf module.
23669         * lib/isinf.c: New file.
23670         * lib/math.in.h: Define isinf macro if we have decided to replace
23671         it.
23672         * m4/isinf.m4: New file.
23673         * m4/math_h.m4: Initialize and substitute variables for isinf
23674         module.
23675         * modules/isinf: New file.
23676         * modules/isinf-tests: New file.
23677         * modules/math: Add substitutions for new module.
23678         * tests/test-isinf.c: New file.
23679         * doc/posix-functions/isinf.texi: Mention new module.
23680         * MODULES.html.sh: Mention new module.
23681
23682 2008-07-14  Ben Pfaff  <blp@gnu.org>
23683
23684         Factor out some macros for use by additional modules.
23685         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
23686         exponentf.m4.
23687         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
23688         exponentd.m4.
23689         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
23690         file exponentl.m4.
23691         * m4/exponentf.m4: New file.
23692         * m4/exponentd.m4: New file.
23693         * m4/exponentl.m4: New file.
23694         * modules/isnanf: Use new file m4/exponentf.m4.
23695         * modules/isnand: Use new file m4/exponentd.m4.
23696         * modules/isnanl: Use new file m4/exponentl.m4.
23697
23698 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
23699
23700         mktime.c: normalize tp->tm_isdst value to -1/0/1.
23701         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
23702         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
23703         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
23704
23705         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
23706         readlink on platforms without PATH_MAX.
23707
23708 2008-07-21  Eric Blake  <ebb9@byu.net>
23709
23710         Warn, not fail, on stale version.
23711         * top/GNUmakefile (_curr-ver): Tone down previous patch.
23712
23713         Don't allow installation with stale devel version number.
23714         * top/GNUmakefile (_is-install-target): New macro.
23715         (_curr-ver): Forbid installation with stale version number.
23716
23717 2008-07-20  Bruno Haible  <bruno@clisp.org>
23718
23719         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
23720         TESTS_ENVIRONMENT.
23721         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
23722
23723 2008-07-20  Bruno Haible  <bruno@clisp.org>
23724
23725         * lib/c-stack.h (c_stack_action): Add documentation.
23726         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
23727
23728 2008-07-20  Bruno Haible  <bruno@clisp.org>
23729
23730         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
23731         * modules/readlink (License): Likewise.
23732
23733 2008-07-17  Eric Blake  <ebb9@byu.net>
23734
23735         * modules/c-stack (Link): Fix typo.
23736
23737         Make c-stack use libsigsegv, when available.
23738         * modules/c-stack (Depends-on): Add libsigsegv.
23739         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
23740         needed.
23741         * lib/c-stack.c (SIGSTKSZ): Define fallback.
23742         (segv_handler, overflow_handler, c_stack_action)
23743         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
23744         implementation when libsigsegv is available, but only when using
23745         the library is necessary.
23746         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
23747         comment, explaining why XSI check fails on Linux.
23748         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
23749         * tests/test-c-stack2.sh: Tweak skip message.
23750         * NEWS: Document new link-time requirements.
23751
23752 2008-07-16  Eric Blake  <ebb9@byu.net>
23753
23754         c-stack: Expose false positives when not using libsigsegv.
23755         * modules/c-stack-tests (Files): Expand test.
23756         * tests/test-c-stack.c (main): Add means to conditionally trigger
23757         non-overflow SIGSEGV.
23758         * tests/test-c-stack2.sh: New file.
23759
23760 2008-07-14  Bruno Haible  <bruno@clisp.org>
23761
23762         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
23763         Reported by Eric Blake.
23764
23765 2008-07-14  Sam Steingold  <sds@gnu.org>
23766             Bruno Haible  <bruno@clisp.org>
23767
23768         New module libsigsegv.
23769         * modules/libsigsegv: New file.
23770         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
23771         modifications.
23772         * MODULES.html.sh (Signal handling): New section.
23773
23774 2008-07-14  Bruno Haible  <bruno@clisp.org>
23775
23776         * modules/unictype/ctype-* (Description): Add the word "function".
23777         Improves the resulting doc in MODULES.html.
23778
23779 2008-07-12  Ben Pfaff  <blp@gnu.org>
23780
23781         Add longlong module.
23782         * modules/longlong: New file.
23783
23784 2008-07-12  Bruno Haible  <bruno@clisp.org>
23785
23786         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
23787         to empty.
23788
23789 2008-07-10  Ben Pfaff  <blp@gnu.org>
23790
23791         Add isnan module.
23792         * doc/posix-functions/isnan.texi: Mention new module.
23793         * lib/math.in.h: Define isnan macro if we have decided to replace
23794         it.
23795         * m4/isnan.m4: New file.
23796         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
23797         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
23798         also.
23799         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
23800         redundancy.
23801         * m4/math_h.m4: Initialize and substitute variables for isnan
23802         module.
23803         * modules/isnan: New file.
23804         * modules/isnan-tests: New file.
23805         * modules/math: Add substitutions for new module.
23806         * tests/test-isnan.c: New file.
23807         * MODULES.html.sh: Mention new module.
23808
23809 2008-07-10  Ben Pfaff  <blp@gnu.org>
23810
23811         Add isnanf module.
23812         * lib/isnanf.m4: New file.
23813         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
23814         (gl_HAVE_ISNANF_IN_LIBM): New macro.
23815         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
23816         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
23817         * modules/isnanf: New file.
23818         * modules/isnanf-tests: New file.
23819         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
23820         files.
23821         * tests/test-isnanf-nolibm.c: factored most of its contents into
23822         new file tests/test-isnanf.h.
23823         * tests/test-isnanf.h: New file.
23824         * tests/test-isnanf.c: New file.
23825         * MODULES.html.sh: Mention new module.
23826         * doc/glibc-functions/isnanf.texi: Mention new module.
23827
23828 2008-07-10  Ben Pfaff  <blp@gnu.org>
23829
23830         Add isnand module.
23831         * lib/isnand.h: New file.
23832         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
23833         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
23834         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
23835         functionality also.
23836         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
23837         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
23838         (gl_HAVE_ISNAND_IN_LIBM): New macro.
23839         * modules/isnand: New file.
23840         * modules/isnand-tests: New file.
23841         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
23842         files.
23843         * tests/test-isnand-nolibm.c: factored most of its contents into
23844         new file tests/test-isnand.h.
23845         * tests/test-isnand.h: New file.
23846         * tests/test-isnand.c: New file.
23847         * MODULES.html.sh: Mention new module.
23848
23849 2008-07-10  Ben Pfaff  <blp@gnu.org>
23850
23851         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
23852         * lib/isnand.h: Rename lib/isnand-nolibm.h.
23853         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
23854         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
23855         * modules/isnanf-nolibm: Update references to renamed files.
23856         * modules/isnand-nolibm: Likewise.
23857         * modules/isnanf-nolibm-tests: Likewise.
23858         * modules/isnand-nolibm-tests: Likewise.
23859         * lib/frexp.c: Likewise.
23860         * lib/isfinite.c: Likewise.
23861         * lib/signbitd.c: Likewise.
23862         * lib/signbitf.c: Likewise.
23863         * lib/vasnprintf.c: Likewise.
23864         * tests/test-ceilf1.c: Likewise.
23865         * tests/test-ceilf2.c: Likewise.
23866         * tests/test-floorf1.c: Likewise.
23867         * tests/test-floorf2.c: Likewise.
23868         * tests/test-frexp.c: Likewise.
23869         * tests/test-round1.c: Likewise.
23870         * tests/test-round2.c: Likewise.
23871         * tests/test-roundf1.c: Likewise.
23872         * tests/test-strtod.c: Likewise.
23873         * tests/test-trunc1.c: Likewise.
23874         * tests/test-trunc2.c: Likewise.
23875         * tests/test-truncf1.c: Likewise.
23876         * tests/test-truncf2.c: Likewise.
23877         * NEWS: Mention the renamed header files.
23878
23879 2008-07-11  Jim Meyering  <meyering@redhat.com>
23880
23881         vc-list-files: make the last-resort awk code more portable
23882         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
23883         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
23884         does not support it.
23885
23886 2008-07-10  Eric Blake  <ebb9@byu.net>
23887
23888         Work with tar's bootstrap.
23889         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
23890         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
23891         an m4 comment.
23892
23893 2008-07-09  Jim Meyering  <meyering@redhat.com>
23894
23895         posix-shell.m4: fix typo that made this test malfunction
23896         * m4/posix-shell.m4: Remove capitalization in variable name.
23897
23898 2008-07-08  Bruno Haible  <bruno@clisp.org>
23899
23900         * m4/onceonly.m4: Update comments.
23901         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23902
23903 2008-07-04  Jim Meyering  <meyering@redhat.com>
23904
23905         * users.txt: Add vc-dwim.
23906         (bison, coreutils): Use the gitweb URL.
23907
23908 2008-07-03  Jim Meyering  <meyering@redhat.com>
23909
23910         * users.txt: Add libffcall.  From Sam Steingold.
23911
23912 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
23913
23914         getdate.y: do not ignore TZ with relative day, month or year offset
23915         * lib/getdate.y (get_date): Move the tz-handling block to follow the
23916         relative-date-handling, since otherwise, the latter would clobber the
23917         sole output (an updated Start value) of the tz-handling block.
23918         * tests/test-getdate.c: Tests for the fix
23919
23920 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23921
23922         Recognize 'foo_LIBRARIES += libgnu.a'.
23923         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
23924         makefile snippet has already specified an installation location,
23925         also using '+='.
23926
23927 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
23928
23929         getdate.y: factor out common actions
23930         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
23931         Use them in place of open-coded actions.
23932
23933 2008-07-01  Simon Josefsson  <simon@josefsson.org>
23934
23935         Add self-test for getdate module.
23936         * modules/getdate-tests: New file.
23937         * tests/test-getdate.c: New file.
23938
23939 2008-06-29  Bruno Haible  <bruno@clisp.org>
23940
23941         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
23942         .gitignore.
23943         Reported by Sylvain Beucler <beuc@beuc.net>.
23944
23945 2008-06-29  Bruno Haible  <bruno@clisp.org>
23946
23947         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
23948         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
23949
23950 2008-06-29  Bruno Haible  <bruno@clisp.org>
23951
23952         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
23953         EXTRA_DIST.
23954         Reported by Sylvain Beucler <beuc@beuc.net>.
23955
23956 2008-06-26  Jim Meyering  <meyering@redhat.com>
23957
23958         make several modules depend on the "open" module
23959         This provides slightly increased consistency when opening-for-write
23960         the name of a non-directory spelled with a trailing slash.
23961         * modules/chdir-safer: Likewise.
23962         * modules/chown: Likewise.
23963         * modules/clean-temp: Likewise.
23964         * modules/copy-file: Likewise.
23965         * modules/fchdir: Likewise.
23966         * modules/fcntl-safer: Likewise.
23967         * modules/pipe: Likewise.
23968         * modules/utime: Likewise.
23969         Prompted by Eric Blake and Bruno Haible.
23970
23971 2008-06-24  Andreas Schwab  <schwab@suse.de>
23972
23973         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
23974         literals can be used as initializers for global variables.
23975
23976 2008-06-23  Eric Blake  <ebb9@byu.net>
23977
23978         Make gnulib-cache.m4 easier to diff.
23979         * gnulib-tool (func_import): Allow newlines when reading cached
23980         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
23981
23982 2008-06-23  Bruno Haible  <bruno@clisp.org>
23983
23984         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
23985         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
23986         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
23987         m4/signalblocking.m4.
23988         (gl_PREREQ_SIGACTION): Don't invoke it.
23989         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
23990         gl_PREREQ_SIG_HANDLER_H.
23991         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
23992         Don't check for sigaction here.
23993
23994 2008-06-23  Bruno Haible  <bruno@clisp.org>
23995
23996         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
23997         (install_handlers): Don't set the SA_RESETHAND flag.
23998
23999 2008-06-23  Bruno Haible  <bruno@clisp.org>
24000
24001         * m4/sigaction.m4: Comment fixes.
24002         * lib/signal.in.h: Likewise.
24003
24004 2008-06-23  Eric Blake  <ebb9@byu.net>
24005
24006         Fix typo.
24007         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
24008
24009         Avoid SA_ namespace.
24010         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
24011         Reported by Ralf Wildenhues.
24012
24013         Avoid test failure due to SA_RESTORER.
24014         * tests/test-sigaction.c (SA_MASK): New macro.
24015         (main): Avoid failing due to extension flags being set.
24016         Reported by Jim Meyering.
24017
24018         Revert use of sig-handler.h in sigprocmask.c.
24019         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
24020         it requires the existence of struct sigaction.
24021         * lib/sigprocmask.c (handler_t): Restore typedef.
24022         (rpl_signal, old_handlers): Use local type.
24023
24024 2008-06-22  Bruno Haible  <bruno@clisp.org>
24025
24026         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
24027         conditionally.
24028         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24029
24030 2008-06-22  Bruno Haible  <bruno@clisp.org>
24031
24032         * doc/posix-functions/siginterrupt.texi: Move note.
24033
24034         * lib/signal.in.h (SA_RESTART): New macro.
24035         * lib/sigaction.c: Update comment.
24036
24037         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
24038
24039         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
24040         (gl_PREREQ_SIGPROCMASK): Invoke it.
24041         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
24042
24043         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
24044
24045         * lib/sigprocmask.c: Update a comment.
24046
24047 2008-06-21  Eric Blake  <ebb9@byu.net>
24048
24049         Use sigaction module rather than signal().
24050         * modules/c-stack (Depends-on): Add sigaction.
24051         * modules/fatal-signal (Depends-on): Likewise.
24052         * modules/nanosleep (Depends-on): Likewise.
24053         * modules/sigprocmask (Files): Add sig-handler.h.
24054         * modules/sigaction (Files): Likewise.
24055         * lib/sig-handler.h (get_handler): New file, suggested by Paul
24056         Eggert.
24057         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
24058         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
24059         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
24060         (init_fatal_signals): Likewise.
24061         * lib/nanosleep.c (rpl_nanosleep): Likewise.
24062         (siginterrupt): Delete fallback.
24063         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
24064         instead.
24065         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
24066         siginterrupt.
24067
24068         New module sigaction, for mingw.
24069         * modules/sigaction: New module...
24070         * modules/sigaction-tests: ...and its test.
24071         * m4/sigaction.m4: New file.
24072         * lib/sigaction.c: Likewise.
24073         * tests/test-sigaction.c: Likewise.
24074         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
24075         * modules/signal (Makefile.am): Likewise.
24076         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
24077         needed.
24078         * doc/posix-headers/signal.texi (signal.h): Mention provided
24079         types.
24080         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
24081         that sigaction is preferable.
24082         * doc/posix-functions/sigaction.texi (sigaction): Mention new
24083         module.
24084         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
24085         sigaction.
24086
24087         Improve robustness of sigprocmask by overriding signal.
24088         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
24089         is in use.
24090         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
24091         (SIGKILL, SIGSTOP): Provide fallbacks.
24092         (rpl_signal): Implement.
24093         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
24094         signal can be called inside handlers.
24095
24096         Fix nanosleep module on mingw.
24097         * modules/nanosleep (Depends-on): Add sys_select.
24098         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
24099
24100         Fix licensing of sigprocmask.
24101         * modules/raise (License): Relicense as LGPL.
24102
24103 2008-06-21  Bruno Haible  <bruno@clisp.org>
24104
24105         * lib/propername.c (proper_name_utf8): Don't use the transliterated
24106         result if it contains question marks.
24107         Reported by Michael Geng <linux@michaelgeng.de>.
24108
24109 2008-06-19  Bruno Haible  <bruno@clisp.org>
24110
24111         Fix CVS-ism.
24112         * doc/gnulib.texi: Include updated-stamp.texi.
24113         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
24114         (updated-stamp.texi): New rule.
24115         (gnulib.info): Depend on it.
24116         * doc/.gitignore: Add updated-stamp.texi.
24117         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
24118
24119 2008-06-19  Bruno Haible  <bruno@clisp.org>
24120
24121         * doc/Makefile (gnulib.info): Update and simplify dependencies.
24122         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
24123
24124 2008-06-19  Eric Blake  <ebb9@byu.net>
24125
24126         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
24127         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
24128         Reported by Stepan Kasal.
24129
24130 2008-06-18  Bruno Haible  <bruno@clisp.org>
24131
24132         * lib/fatal-signal.c (init_fatal_signals): Add comment.
24133         Reported by Eric Blake.
24134
24135 2008-06-18  Eric Blake  <ebb9@byu.net>
24136
24137         Work around cygwin 1.5.25 strsignal bug.
24138         * tests/test-strsignal.c: Allow for const char *.
24139         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
24140
24141 2008-06-18  Simon Josefsson  <simon@josefsson.org>
24142
24143         * users.txt: Update URL to article and add author/date
24144         information.
24145
24146 2008-06-17  Bruno Haible  <bruno@clisp.org>
24147
24148         New macro gl_DISABLE_THREADS.
24149         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
24150         if the user did not pass --enable-threads or --disable-threads option.
24151         (gl_DISABLE_THREADS): New macro.
24152         Reported by Eric Blake <ebb9@byu.net>.
24153
24154 2008-06-17  Bruno Haible  <bruno@clisp.org>
24155
24156         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
24157         when the macro ignores it.
24158         Based on a patch by Eric Blake <ebb9@byu.net>.
24159
24160 2008-06-17  Bruno Haible  <bruno@clisp.org>
24161
24162         * modules/tls (License): Change to LGPLv2+.
24163         Reported by Eric Blake.
24164
24165 2008-06-17  Eric Blake  <ebb9@byu.net>
24166
24167         Simplify c-stack prerequisites.
24168         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
24169         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
24170         no longer requires <ucontext.h> to exist.  Optimize setrlimit
24171         check.
24172         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
24173         <sys/resource.h>.
24174
24175         Move c-stack test into testsuite.
24176         * modules/c-stack-tests: New file.
24177         * lib/c-stack.c [DEBUG]: Move test program...
24178         * tests/test-c-stack.c: ...into this new file.  Skip rather than
24179         fail test if sigaltstack is lacking.
24180         * tests/test-c-stack.sh: New driver file.
24181
24182 2008-06-16  Eric Blake  <ebb9@byu.net>
24183
24184         Use raise module consistently.
24185         * modules/fatal-signal (Depends-on): Add raise.
24186         * modules/sigprocmask (Depends-on): Likewise.
24187         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
24188         * lib/sigprocmask.c (sigprocmask): Likewise.
24189         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
24190         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
24191
24192         Fix compliance bug in sigpending.
24193         * lib/sigprocmask.c (sigpending): Return pending array via
24194         parameter, not return value.
24195
24196 2008-06-14  Eric Blake  <ebb9@byu.net>
24197
24198         Improve obstack-printf test code.
24199         * tests/test-obstack-printf.c (test_function): Fix comment, and
24200         simplify usage of obstack_* in macros.  Add a test for coverage.
24201         Reported by Bruno Haible.
24202
24203 2008-06-14  Bruno Haible  <bruno@clisp.org>
24204
24205         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
24206         array size as a constant, not as a const variable.
24207         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
24208         AC_USE_SYSTEM_EXTENSIONS.
24209         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
24210         Test whether the obstack_printf function actually exists.
24211         * modules/obstack-printf (Depends-on): Add extensions.
24212         (Include): Remove obstack.h.
24213         * modules/obstack-printf-posix (Depends-on): Add extensions.
24214         (Include): Remove obstack.h.
24215
24216 2008-06-13  Eric Blake  <ebb9@byu.net>
24217
24218         Add obstack-printf and obstack-printf-posix modules.
24219         * modules/obstack-printf: New file.
24220         * modules/obstack-printf-posix: Likewise.
24221         * MODULES.html.sh (Misc): Mention them.
24222         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
24223         Likewise.
24224         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
24225         Likewise.
24226         * modules/stdio (Makefile.am): Accomodate new modules.
24227         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
24228         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
24229         Declare.
24230         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
24231         functions.
24232         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
24233         (gl_REPLACE_OBSTACK_PRINTF): New macros
24234         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
24235         * tests/test-obstack-printf.c: New file.
24236         * modules/obstack-printf-tests: Likewise.
24237         * modules/obstack-printf-posix-tests: Likewise.
24238
24239 2008-06-11  Bruno Haible  <bruno@clisp.org>
24240
24241         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
24242         * lib/open.c: Include errno.h.
24243         (open): Fail when attempting to write to a file that has a trailing
24244         slash.
24245         * tests/test-open.c (main): Test against trailing slash bug.
24246         * doc/posix-functions/open.texi: Mention the trailing slash bug.
24247
24248 2008-06-10  Bruno Haible  <bruno@clisp.org>
24249
24250         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
24251         for $? to work inside the trap command, with various /bin/sh-s.
24252         * tests/test-vc-list-files-cvs.sh: Likewise.
24253
24254 2008-06-10  Bruno Haible  <bruno@clisp.org>
24255
24256         * lib/acl-internal.h: Don't include gettext.h here.
24257         * lib/set-mode-acl.c: Include gettext.h here.
24258         * lib/copy-acl.c: Likewise.
24259
24260 2008-06-10  Bruno Haible  <bruno@clisp.org>
24261
24262         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
24263         * lib/wait-process.c (wait_subprocess): Likewise.
24264         * lib/execute.h (execute): Add termsigp argument.
24265         * lib/execute.c (execute): Likewise.
24266         * lib/csharpcomp.c (compile_csharp_using_pnet,
24267         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
24268         * lib/csharpexec.c (execute_csharp_using_pnet,
24269         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
24270         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
24271         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
24272         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
24273         is_jikes_present): Update.
24274         * lib/javaexec.c (execute_java_class): Update.
24275         * lib/javaversion.c (execute_and_read_line): Update.
24276         * NEWS: Document the changes.
24277         Reported by Eric Blake.
24278
24279 2008-06-10  Eric Blake  <ebb9@byu.net>
24280
24281         Add missing include.
24282         * tests/test-strstr.c (includes): Add <signal.h>.
24283         * tests/test-strcasestr.c (includes): Likewise.
24284         * tests/test-memmem.c (includes): Likewise.
24285
24286 2008-06-10  Bruno Haible  <bruno@clisp.org>
24287
24288         * lib/wait-process.c (wait_subprocess): Add an assertion.
24289
24290 2008-06-10  Bruno Haible  <bruno@clisp.org>
24291
24292         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
24293
24294 2008-06-10  Bruno Haible  <bruno@clisp.org>
24295
24296         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
24297         using alarm().
24298         * tests/test-strcasestr.c (main): Likewise.
24299         * tests/test-strstr.c (main): Likewise.
24300
24301 2008-06-09  Bruno Haible  <bruno@clisp.org>
24302
24303         Work around the Solaris 10 ACE ACLs ABI change.
24304         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
24305         declare if ACL_NO_TRIVIAL is present.
24306         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
24307         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
24308         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
24309         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
24310         define if ACL_NO_TRIVIAL is present.
24311         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
24312         and use the current ABI.
24313         (file_has_acl): Use same #if condition as elsewhere.
24314         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
24315         in use, and use the current ABI.
24316         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
24317         Reported by Jim Meyering.
24318
24319 2008-06-09  Eric Blake  <ebb9@byu.net>
24320
24321         Work around environments that (stupidly) ignore SIGALRM.
24322         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
24323         before using alarm().
24324         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24325         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
24326         Reported by Ian Beckwith <ianb@erislabs.net>.
24327
24328         Produce autobuild blurb earlier in log.
24329         * modules/autobuild (configure.ac-early): Move AB_INIT here.
24330
24331 2008-06-09  Jim Meyering  <meyering@redhat.com>
24332         and OndÅ™ej Vašík  <ovasik@redhat.com>
24333
24334         utimens.c: correct kernel bug work-around
24335         OndÅ™ej Vašík found that the invalid return value of 280 indicates
24336         failure, not success, and the kernel bug we're trying to work
24337         around affects not just the utimensat call, but also the fallback
24338         futimens call.
24339         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
24340         not success.
24341         [HAVE_FUTIMENS]: Use the same work-around, here.
24342
24343 2008-06-09  Jim Meyering  <meyering@redhat.com>
24344
24345         add more guards around definition of ACE_-related code
24346         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
24347         ALLOW and ACE_OWNER are also defined.
24348
24349 2008-06-08  Bruno Haible  <bruno@clisp.org>
24350
24351         * lib/acl-internal.h: Add me as co-author.
24352         * lib/file-has-acl.c: Likewise.
24353         * lib/set-mode-acl.c: Likewise.
24354         * lib/copy-acl.c: Likewise.
24355
24356 2008-06-08  Bruno Haible  <bruno@clisp.org>
24357
24358         Add support for AIX ACLs.
24359         * lib/acl-internal.h (acl_nontrivial): New declaration.
24360         * lib/file-has-acl.c (acl_nontrivial): New function.
24361         (file_has_acl): Add implementation using AIX 4 ACL API.
24362         * lib/set-mode-acl.c (qset_acl): Likewise.
24363         * lib/copy-acl.c (qcopy_acl): Likewise.
24364
24365 2008-06-08  Bruno Haible  <bruno@clisp.org>
24366
24367         Add support for HP-UX ACLs.
24368         * lib/acl-internal.h (acl_nontrivial): New declaration.
24369         * lib/file-has-acl.c (acl_nontrivial): New function.
24370         (file_has_acl): Add implementation using HP-UX 11 ACL API.
24371         * lib/set-mode-acl.c (qset_acl): Likewise.
24372         * lib/copy-acl.c (qcopy_acl): Likewise.
24373
24374 2008-06-08  Bruno Haible  <bruno@clisp.org>
24375
24376         Add support for Cygwin ACLs.
24377         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
24378         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
24379         the chmod_or_fchmod call.
24380         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
24381
24382 2008-06-08  Bruno Haible  <bruno@clisp.org>
24383
24384         Fix bug with setuid modes in Solaris 10+ code.
24385         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
24386         succeeded, when the mode contains some special bits.
24387
24388 2008-06-08  Bruno Haible  <bruno@clisp.org>
24389
24390         Add support for Solaris 7..10 ACLs.
24391         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
24392         declarations.
24393         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
24394         functions.
24395         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
24396         * lib/set-mode-acl.c (qset_acl): Likewise.
24397         * lib/copy-acl.c (qcopy_acl): Likewise.
24398
24399 2008-06-08  Bruno Haible  <bruno@clisp.org>
24400
24401         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
24402         declaration.
24403         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
24404         (acl_access_nontrivial): Remove MacOS X case.
24405         (file_has_acl): Use acl_extended_nontrivial.
24406         * lib/copy-acl.c (qcopy_acl): Likewise.
24407
24408 2008-06-08  Bruno Haible  <bruno@clisp.org>
24409
24410         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
24411
24412 2008-06-08  Jim Meyering  <meyering@redhat.com>
24413
24414         * modules/acl (Maintainer): Add Bruno Haible.
24415
24416 2008-06-07  Bruno Haible  <bruno@clisp.org>
24417
24418         Improve support for Tru64 ACLs.
24419         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
24420         ACL on OSF/1.
24421
24422 2008-06-07  Bruno Haible  <bruno@clisp.org>
24423
24424         Add support for MacOS X ACLs.
24425         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
24426         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
24427         * lib/set-mode-acl.c (qset_acl): Likewise.
24428         * lib/copy-acl.c (qcopy_acl): Likewise.
24429
24430 2008-06-07  Bruno Haible  <bruno@clisp.org>
24431
24432         Fix memory leak introduced on 2008-05-22.
24433         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
24434         use.
24435
24436 2008-06-07  Bruno Haible  <bruno@clisp.org>
24437
24438         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
24439         to construct an empty ACL.
24440
24441 2008-06-07  Bruno Haible  <bruno@clisp.org>
24442
24443         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
24444         precisely.
24445         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
24446
24447 2008-06-07  Bruno Haible  <bruno@clisp.org>
24448
24449         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
24450         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
24451
24452 2008-06-07  Bruno Haible  <bruno@clisp.org>
24453
24454         * doc/posix-functions/_setjmp.texi: Explain the use of this function
24455         regardless of POSIX.
24456         * doc/posix-functions/_longjmp.texi: Likewise.
24457         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
24458         SystemV platform in this case.
24459
24460 2008-06-06  Eric Blake  <ebb9@byu.net>
24461
24462         Document abort() bugs.
24463         * doc/posix-functions/abort.texi (abort): Mention anomalies.
24464
24465         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
24466         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
24467         sigsetjmp.
24468         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
24469         siglongjmp, but only as a macro.
24470         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
24471         is obsolete.
24472         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
24473
24474         Tweak documentation to cover cygwin argz bugs.
24475         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
24476         argz bug fix; no code change needed since no cygwin releases
24477         occurred between the last fix and the bug being tested.
24478         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
24479         module and recently fixed cygwin bugs.
24480         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
24481         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
24482         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
24483         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
24484         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
24485         Likewise.
24486         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
24487         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
24488         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
24489         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
24490         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
24491         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
24492         Likewise.
24493
24494         Avoid gcc warning on cygwin.
24495         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
24496         !ACL_NO_TRIVIAL]: Avoid unused variable.
24497
24498 2008-06-05  Eric Blake  <ebb9@byu.net>
24499
24500         Be tolerant of UNKNOWN version in gnulib-tool test dir.
24501         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
24502         git-version-gen fails to come up with a version.
24503         Reported by Simon Josefsson.
24504
24505 2008-06-05  Jim Meyering  <meyering@redhat.com>
24506             Paul Eggert  <eggert@cs.ucla.edu>
24507
24508         utimens.c: work around a probable Linux kernel bug
24509         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
24510         appears to be a kernel bug that causes utimensat to return 280
24511         instead of 0, indicating success.
24512
24513 2008-06-04  Bruno Haible  <bruno@clisp.org>
24514
24515         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
24516         2008-06-01 commit.
24517
24518 2008-06-04  Bruno Haible  <bruno@clisp.org>
24519
24520         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
24521         * lib/file-has-acl.c (acl_access_nontrivial): New function.
24522         (file_has_acl): Use it. Save errno afterwards.
24523         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
24524
24525 2008-06-03  Bruno Haible  <bruno@clisp.org>
24526
24527         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
24528         draft code. Simplify #ifs.
24529         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
24530         Put Solaris code after POSIX-draft code. Fix comments regarding
24531         Solaris 10, HP-UX. Mention Cygwin.
24532         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
24533
24534 2008-06-03  Eric Blake  <ebb9@byu.net>
24535
24536         Provide fallback for older kernels.
24537         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
24538         Provide runtime fallback if kernel lacks support.
24539         Reported by Mike Frysinger.
24540
24541 2008-06-02  Bruno Haible  <bruno@clisp.org>
24542
24543         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
24544         it exists.
24545
24546 2008-06-02  Bruno Haible  <bruno@clisp.org>
24547
24548         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
24549         * lib/copy-acl.c (qcopy_acl): Update comment.
24550
24551 2008-06-02  Bruno Haible  <bruno@clisp.org>
24552
24553         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
24554         like ACL APIs.
24555
24556 2008-06-02  Bruno Haible  <bruno@clisp.org>
24557
24558         * tests/test-file-has-acl.sh: Use different code for Cygwin.
24559         * tests/test-set-mode-acl.sh: Likewise.
24560         * tests/test-copy-acl.sh: Likewise.
24561         * tests/test-copy-file.sh: Likewise.
24562
24563 2008-06-02  Bruno Haible  <bruno@clisp.org>
24564
24565         * tests/test-file-has-acl.sh: Remove unused code.
24566
24567 2008-06-01  Bruno Haible  <bruno@clisp.org>
24568
24569         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
24570         (copy_acl): Just a wrapper around qcopy_acl that emits the error
24571         messages.
24572         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
24573
24574 2008-06-01  Bruno Haible  <bruno@clisp.org>
24575
24576         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
24577         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
24578         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
24579         APIs.
24580         * modules/acl-tests (configure.ac): Remove tests now contained in
24581         m4/acl.m4.
24582
24583 2008-06-02  Jim Meyering  <meyering@redhat.com>
24584
24585         announce-gen: use a better key-server host name
24586         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
24587         it may be more consistently reliable.  Suggested by Werner Koch
24588         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
24589
24590 2008-06-01  Bruno Haible  <bruno@clisp.org>
24591
24592         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
24593         Reported by Voroskoi Andras <voroskoi@gmail.com>.
24594
24595 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
24596
24597         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
24598
24599 2008-06-01  Bruno Haible  <bruno@clisp.org>
24600
24601         New ACL tests.
24602         * tests/test-file-has-acl.sh: New file.
24603         * tests/test-file-has-acl.c: New file.
24604         * tests/test-set-mode-acl.sh: New file.
24605         * tests/test-set-mode-acl.c: New file.
24606         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
24607         * tests/test-copy-acl.c: New file.
24608         * modules/acl-tests: New file, based on modules/copy-file-tests.
24609         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
24610         (Depends-on): Add acl-tests.
24611         (configure.ac): Remove checks.
24612         (Makefile.am): Don't create test-sameacls program here any more.
24613
24614 2008-06-01  Bruno Haible  <bruno@clisp.org>
24615
24616         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
24617         * tests/test-sameacls.c: Include progname.h.
24618         (main): Invoke set_program_name. Portability fixes for MacOS X,
24619         Solaris, HP-UX.
24620
24621 2008-06-01  Bruno Haible  <bruno@clisp.org>
24622
24623         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
24624         function.
24625         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
24626
24627 2008-06-01  Bruno Haible  <bruno@clisp.org>
24628
24629         * modules/rpmatch (Depends-on): Add strdup.
24630
24631 2008-06-01  Bruno Haible  <bruno@clisp.org>
24632
24633         * lib/pipe.c: Include unistd-safer.h.
24634         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
24635         * modules/pipe (Depends-on): Add unistd-safer.
24636
24637 2008-05-30  Simon Josefsson  <simon@josefsson.org>
24638
24639         * modules/autobuild (configure.ac): Call AB_INIT.
24640
24641 2008-05-30  Simon Josefsson  <simon@josefsson.org>
24642
24643         * tests/test-getaddrinfo.c: Don't print debug messages by default.
24644         Suggested by Bruno Haible <bruno@clisp.org>.
24645
24646 2008-05-30  Simon Josefsson  <simon@josefsson.org>
24647
24648         * tests/test-base64.c: Cast size_t to unsigned long when invoking
24649         printf.  Use %lu instead of %d.  Reported by Bruno Haible
24650         <bruno@clisp.org>.
24651
24652 2008-05-29  Eric Blake  <ebb9@byu.net>
24653
24654         Prefer new POSIX 200x interfaces over futimesat.
24655         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
24656         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
24657         when available.
24658         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
24659
24660 2008-05-28  Bruno Haible  <bruno@clisp.org>
24661
24662         * modules/stpcpy (License): Change to LGPLv2+.
24663         Requested by David Lutterkort <dlutter@redhat.com>.
24664
24665 2008-05-27  Bruno Haible  <bruno@clisp.org>
24666
24667         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
24668         current mingw.
24669         Reported by Jose E. Marchesi <jemarch@gnu.org>.
24670
24671 2008-05-27  Bruno Haible  <bruno@clisp.org>
24672
24673         * modules/iconv_open (Link): New section, from module 'iconv'.
24674         * modules/striconv (Link): Likewise.
24675         * modules/striconveh (Link): Likewise.
24676         * modules/xstriconv (Link): Likewise.
24677         * modules/unicodeio (Link): Likewise.
24678         * modules/propername (Link): Likewise.
24679         Reported by Jim Meyering.
24680
24681 2008-05-26  Jim Meyering  <meyering@redhat.com>
24682
24683         sha256: do not artificially restrict buffer length to be < 2^32
24684         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
24685         uint32_t to size_t.
24686         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
24687         to match.
24688
24689         avoid unaligned access errors, e.g., on sparc
24690         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
24691         direct access through a possibly-unaligned uint64* pointer.
24692         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
24693         direct access through a possibly-unaligned uint32* pointer.
24694         Prompted by this patch from Tom "spot" Callaway:
24695         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
24696
24697         sha512.c: fix typo in comment
24698         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
24699
24700 2008-05-25  Bruno Haible  <bruno@clisp.org>
24701
24702         * lib/set-mode-acl.c: Renamed from lib/acl.c.
24703         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
24704         (Makefile.am): Update lib_SOURCES.
24705
24706 2008-05-25  Bruno Haible  <bruno@clisp.org>
24707
24708         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
24709
24710 2008-05-25  Jim Meyering  <meyering@redhat.com>
24711
24712         useless-if-before-free: freed expr may have white-space differences
24713         * build-aux/useless-if-before-free: Recognize cases in which the
24714         freed expression differs from the tested one in embedded white
24715         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
24716         $1 was used, so we can't make any regexp shy.  Improved tests now
24717         detect this.
24718
24719         useless-if-before-free: accept white space in the expression.
24720         * build-aux/useless-if-before-free: For now, any white space
24721         in the expression must be identical in the free argument.
24722
24723         useless-if-before-free: efficiency tweak
24724         * build-aux/useless-if-before-free: Make the expression-matching
24725         regexp "shy".
24726         Make the *outer* regexp shy, not the expr-matching one.
24727
24728         update code-in-comment to accept cast of free arg
24729         * build-aux/useless-if-before-free: Update regexp.
24730
24731 2008-05-25  Bruno Haible  <bruno@clisp.org>
24732
24733         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
24734         * modules/copy-file-tests (Files, Makefile.am): Update.
24735         * tests/test-copy-file.c (func_test_copy): Update.
24736
24737 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
24738
24739         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
24740
24741 2008-05-23  Bruno Haible  <bruno@clisp.org>
24742
24743         Improve support for ACLs on OSF/1.
24744         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
24745         Remove fallback for unknown flavors of ACLs.
24746
24747 2008-05-22  Bruno Haible  <bruno@clisp.org>
24748
24749         Add support for ACLs on OSF/1.
24750         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
24751         replacements.
24752         (acl_free_text): New macro fallback.
24753         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
24754         acl_free.
24755         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
24756         acl_free_text function. Require AC_C_INLINE.
24757
24758 2008-05-22  Bruno Haible  <bruno@clisp.org>
24759
24760         Make copy_acl work on MacOS X 10.5.
24761         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
24762         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
24763         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
24764         If MODE_INSIDE_ACL, don't assume that every system has the same text
24765         representation for ACLs as FreeBSD.
24766         * lib/copy-acl.c (copy_acl): Add support for platforms with
24767         !MODE_INSIDE_ACL.
24768         * lib/file-has-acl.c (file_has_acl): Likewise.
24769         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
24770         FreeBSD, MacOS X, or IRIX, respectively.
24771
24772 2008-05-22  Bruno Haible  <bruno@clisp.org>
24773
24774         * lib/acl.h: Don't include <sys/acl.h>.
24775         (GETACLCNT): Move fallback to lib/acl-internal.h.
24776         * lib/acl-internal.h: Include <sys/acl.h> here.
24777         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
24778
24779 2008-05-22  Bruno Haible  <bruno@clisp.org>
24780
24781         Split off copy_acl function to separate file.
24782         * lib/copy-acl.c: New file, extracted from lib/acl.c.
24783         * lib/acl.c (copy_acl): Moved function to separate file.
24784         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
24785         * modules/acl (Files): Add lib/copy-acl.c.
24786         (Makefiles.am): Augment lib_SOURCES.
24787
24788 2008-05-22  Bruno Haible  <bruno@clisp.org>
24789
24790         * modules/copy-file-tests: New file.
24791         * tests/test-copy-file.sh: New file.
24792         * tests/test-copy-file.c: New file.
24793         * tests/test-copy-file-sameacls.c: New file.
24794
24795 2008-05-22  Eric Blake  <ebb9@byu.net>
24796
24797         Avoid gcc warning.
24798         * tests/test-memcmp.c (main): Pass NULL indirectly.
24799
24800 2008-05-21  Bruno Haible  <bruno@clisp.org>
24801
24802         Add reference doc about ACLs.
24803         * doc/acl-resources.txt: New file.
24804         * doc/acl-cygwin.txt: New file.
24805
24806 2008-05-21  Bruno Haible  <bruno@clisp.org>
24807
24808         Avoid one more warning from gcc.
24809         * lib/vasnprintf.c (IF_LINT): Update comments.
24810         (VASNPRINTF): Use it also for the 'prefix' array initializer.
24811
24812 2008-05-21  Jim Meyering  <meyering@redhat.com>
24813
24814         avoid a warning from gcc
24815         * lib/vasnprintf.c (IF_LINT): Define.
24816         (scale10_round_decimal_long_double):
24817         Use it to avoid a "may be used uninitialized" warning.
24818         (scale10_round_decimal_double): Likewise.
24819
24820 2008-05-21  Simon Josefsson  <simon@josefsson.org>
24821
24822         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
24823         declared.
24824
24825 2008-05-20  Bruno Haible  <bruno@clisp.org>
24826
24827         * tests/test-memcmp.c (main): Test also the sign of the result. Test
24828         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
24829
24830 2008-05-20  Simon Josefsson  <simon@josefsson.org>
24831
24832         * modules/memcmp-tests: New file.
24833         * tests/test-memcmp.c: New file.
24834
24835 2008-05-19  Bruno Haible  <bruno@clisp.org>
24836
24837         * modules/propername (Notice, configure.ac): Put quoted "..." into
24838         --keyword option.
24839         * lib/propername.h: Update comments accordingly.
24840         Reported by Eric Blake.
24841
24842 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
24843
24844         * modules/getpass-gnu (Depends-on): Add fseeko.
24845
24846 2008-05-19  Simon Josefsson  <simon@josefsson.org>
24847
24848         * modules/base64-tests: New file.
24849
24850 2008-05-19  Bo Borgerson <gigabo@gmail.com>
24851
24852         * lib/base64.c (base64_decode_ctx): If a decode context structure
24853         was passed in use it to ignore newlines.  If a context structure
24854         was _not_ passed in, continue to treat newlines as garbage (this
24855         is the historical behavior).  Formerly base64_decode.
24856         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
24857         takes a decode context structure.
24858         * lib/base64.h (base64_decode): Macro for four-argument calls.
24859         (base64_decode_alloc): Likewise.
24860         * lib/base64.c (base64_decode_ctx): If a decode context structure
24861         was passed in use it to ignore newlines.  If a context structure
24862         was _not_ passed in, continue to treat newlines as garbage (this
24863         is the historical behavior).  Formerly base64_decode.
24864         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
24865         takes a decode context structure.
24866         * lib/base64.h (base64_decode): Macro for four-argument calls.
24867         (base64_decode_alloc): Likewise.
24868
24869 2008-05-19  Jim Meyering  <meyering@redhat.com>
24870
24871         avoid a warning from gcc
24872         * lib/trim.c (IF_LINT): Define.
24873         (trim2): Use it to avoid a "may be used uninitialized" warning.
24874
24875         Fix doc typo.
24876         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
24877
24878 2008-05-19  Bruno Haible  <bruno@clisp.org>
24879
24880         * doc/glibc-functions/getpass.texi: Document limits of other
24881         implementations.
24882
24883 2008-05-19  Simon Josefsson  <simon@josefsson.org>
24884             Bruno Haible <bruno@clisp.org>
24885
24886         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
24887
24888 2008-05-18  Bruno Haible  <bruno@clisp.org>
24889
24890         * modules/propername: New file, from GNU gettext.
24891         * lib/propername.h: New file, from GNU gettext.
24892         * lib/propername.c: New file, from GNU gettext.
24893         * MODULES.html.sh (Internationalization functions): Add propername.
24894
24895 2008-05-16  Jim Meyering  <meyering@redhat.com>
24896             Bruno Haible  <bruno@clisp.org>
24897
24898         Avoid some warnings from "gcc -Wshadow".
24899         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
24900
24901 2008-05-15  Eric Blake  <ebb9@byu.net>
24902
24903         Extend previous patch to cygwin 1.7.0.
24904         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
24905         fast implementation in cygwin >= 1.7.0.
24906         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24907         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24908
24909 2008-05-15  Bruno Haible  <bruno@clisp.org>
24910
24911         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
24912         implementation in glibc >= 2.9.
24913         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24914         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24915
24916 2008-05-15  Bruno Haible  <bruno@clisp.org>
24917
24918         * MODULES.html.sh (Internationalization functions): Remove linebreak.
24919         (Unicode string functions): Add unilbrk/*.
24920         Reported by Karl Berry.
24921
24922 2008-05-15  Eric Blake  <ebb9@byu.net>
24923
24924         Fix violation of <stdbool.h> replacement in regex.
24925         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
24926         * lib/regexec.c (re_search_internal): Likewise.
24927         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
24928
24929 2008-05-15  Jim Meyering  <meyering@redhat.com>
24930
24931         avoid distracting test output when git or cvs is not found
24932         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
24933         * tests/test-vc-list-files-git.sh: Likewise.
24934
24935 2008-05-15  Eric Blake  <ebb9@byu.net>
24936
24937         Glibc finally accepted the memmem speedup code, bugzilla #5514.
24938         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
24939         glibc version.
24940         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
24941         * doc/posix-functions/strstr.texi (strstr): Likewise.
24942         * lib/str-two-way.h (MAX): Sychronize with glibc.
24943
24944 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
24945
24946         * lib/regcomp.c (optimize_utf8): Add a note on why we test
24947         opr.ctx_type.
24948         (calc_first): Initialize constraint field.
24949         (duplicate_node_closure): Use it instead of special casing ANCHORS.
24950         Fix grammar.
24951         (duplicate_node): Merge constraint field for all node types.
24952         (calc_eclosure_iter): Look at constraint field for all node types.
24953         * lib/regex_internal.c (create_cd_newstate): Don't look at
24954         opr.ctx_type.
24955
24956 2008-05-14  Bruno Haible  <bruno@clisp.org>
24957
24958         Help GCC to do better code generation.
24959         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
24960         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
24961         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
24962         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
24963         Declare with attribute 'malloc' if supported.
24964
24965 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
24966
24967         use "echo STR|wc -c" rather than unportable "expr length STR"
24968         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
24969         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
24970
24971 2008-05-14  Jim Meyering  <meyering@redhat.com>
24972
24973         use dd ibs=$n count=1 ... rather than less-portable head -c$n
24974         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
24975         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
24976         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
24977         via Collin Lasse.
24978
24979 2008-05-14  Eric Blake  <ebb9@byu.net>
24980
24981         Avoid quadratic growth in gl_LIBSOURCES.
24982         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
24983         Suggested by Bruno Haible.
24984
24985         Test xmemdup0.
24986         * modules/xmemdup0-tests: New file.
24987         * tests/test-xmemdup0.c: Likewise.
24988
24989 2008-05-13  Eric Blake  <ebb9@byu.net>
24990
24991         Split xmemdup0 into its own module.
24992         * modules/xmemdup0: New file.
24993         * lib/xmemdup0.h: Likewise.
24994         * lib/xmemdup0.c: Likewise.
24995         * MODULES.html.sh (Memory management functions): Add xmemdup0.
24996         * lib/xalloc.h (xmemdup0): Remove.
24997         * lib/xmalloc.c (xmemdup0): Likewise.
24998
24999 2008-05-13  Eric Blake  <ebb9@byu.net>
25000             Bruno Haible  <bruno@clisp.org>
25001
25002         Reduce number of forks required during autoconf.
25003         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
25004         and gl_LIBSOURCES_DIR.
25005         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
25006         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
25007         m4_syscmd per file.
25008         <m4_foreach_w>: Move...
25009         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
25010
25011 2008-05-13  Eric Blake  <ebb9@byu.net>
25012
25013         * gnulib-tool: Fix various comment typos.
25014
25015 2008-05-12  Bruno Haible  <bruno@clisp.org>
25016
25017         Tailor the linebreaking algorithm.
25018         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
25019
25020 2008-05-12  Bruno Haible  <bruno@clisp.org>
25021
25022         Update to Unicode 5.0.0.
25023         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
25024         LBP_JV, LBP_JT. Redistribute values.
25025         (unilbrk_table): Change size.
25026         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
25027         Unicode TR#14 rev. 22.
25028         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
25029         LBP_JV, LBP_JT. Redistribute values.
25030         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
25031         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
25032         Update.
25033         * lib/unilbrk/lbrkprop1.h: Regenerated.
25034         * lib/unilbrk/lbrkprop2.h: Regenerated.
25035         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
25036         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
25037         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
25038         Likewise.
25039         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
25040         Likewise.
25041         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
25042         result.
25043         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
25044         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
25045         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
25046         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
25047         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
25048         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
25049
25050 2008-05-11  Bruno Haible  <bruno@clisp.org>
25051
25052         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
25053
25054 2008-05-11  Bruno Haible  <bruno@clisp.org>
25055
25056         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
25057         * modules/unilbrk/gen-lbrk: New file.
25058
25059 2008-05-11  Bruno Haible  <bruno@clisp.org>
25060
25061         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
25062         * m4/sha512.m4 (gl_SHA512): Likewise.
25063
25064 2008-05-11  Jim Meyering  <meyering@redhat.com>
25065
25066         New modules: crypto/sha256, crypto/sha512 (from coreutils)
25067         * modules/crypto/sha256: New file.
25068         * modules/crypto/sha512: Likewise.
25069         * lib/sha256.c: Likewise.
25070         * lib/sha256.h: Likewise.
25071         * lib/sha512.c: Likewise.
25072         * lib/sha512.h: Likewise.
25073         * lib/u64.h: Likewise.
25074         * m4/sha256.m4: Likewise.
25075         * m4/sha512.m4: Likewise.
25076         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
25077
25078 2008-05-10  Bruno Haible  <bruno@clisp.org>
25079
25080         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
25081         (Input/Output <stdio.h>): Add xprintf.
25082         (Signal handling <signal.h>): Add strsignal.
25083         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
25084         (Core language properties): Add func.
25085         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
25086         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
25087         strings.
25088         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
25089         (Input/output): New section.
25090         (File system functions): Add openat-die, stat-macros.
25091         (Networking functions): Add sockets.
25092         (Unicode string functions): Add unictype/*.
25093         (Support for building libraries and executables): Add gperf.
25094         (Support for building documentation): Add agpl-3.0.
25095         (Misc): Add nocrash.
25096
25097 2008-05-10  Bruno Haible  <bruno@clisp.org>
25098
25099         * modules/unictype/gen-ctype: New file.
25100
25101 2008-05-10  Jim Meyering  <meyering@redhat.com>
25102
25103         Make chdir-safer.c more efficient on a system with no symlinks.
25104         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
25105         also if ELOOP is zero.  Suggested by Bruno Haible.
25106
25107         Make chdir-safer.c slightly safer.
25108         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
25109         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
25110
25111         Avoid compile failure on systems without ELOOP (like mingw).
25112         * lib/chdir-safer.c (ELOOP): Define if not already defined.
25113         Reported by Bruno Haible.
25114
25115 2008-05-10  Bruno Haible  <bruno@clisp.org>
25116
25117         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
25118         (is_utf8_encoding): Use a case-insensitive comparison.
25119         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
25120         streq.
25121
25122 2008-05-10  Bruno Haible  <bruno@clisp.org>
25123
25124         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
25125         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
25126         * lib/unilbrk/ulc-common.h (iconv_string_length,
25127         iconv_string_keeping_offsets): Remove declarations.
25128         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
25129         Don't include <iconv.h>, streq.h, xsize.h.
25130         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
25131         conversion.
25132         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
25133         <iconv.h>, streq.h, xsize.h.
25134         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
25135         conversion.
25136         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
25137         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
25138         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
25139         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
25140
25141 2008-05-10  Bruno Haible  <bruno@clisp.org>
25142
25143         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
25144         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
25145
25146         * modules/unilbrk/u32-width-linebreaks-tests: New file.
25147         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
25148
25149         * modules/unilbrk/u16-width-linebreaks-tests: New file.
25150         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
25151
25152         * modules/unilbrk/u8-width-linebreaks-tests: New file.
25153         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
25154
25155         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
25156         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
25157
25158         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
25159         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
25160
25161         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
25162         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
25163
25164         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
25165         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
25166
25167 2008-05-10  Bruno Haible  <bruno@clisp.org>
25168
25169         Split up 'linebreak' module.
25170         * lib/unilbrk.h: New file, based on lib/linebreak.h.
25171         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
25172         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
25173         modifications.
25174         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
25175         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
25176         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
25177         lib/linebreak.c.
25178         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
25179         lib/linebreak.c.
25180         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
25181         lib/linebreak.c.
25182         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
25183         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
25184         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
25185         lib/linebreak.c.
25186         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
25187         lib/linebreak.c.
25188         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
25189         lib/linebreak.c.
25190         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
25191         lib/linebreak.c.
25192         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
25193         lib/linebreak.c.
25194         * modules/unilbrk/base: New file.
25195         * modules/unilbrk/tables: New file.
25196         * modules/unilbrk/u8-possible-linebreaks: New file.
25197         * modules/unilbrk/u16-possible-linebreaks: New file.
25198         * modules/unilbrk/u32-possible-linebreaks: New file.
25199         * modules/unilbrk/ulc-common: New file.
25200         * modules/unilbrk/ulc-possible-linebreaks: New file.
25201         * modules/unilbrk/u8-width-linebreaks: New file.
25202         * modules/unilbrk/u16-width-linebreaks: New file.
25203         * modules/unilbrk/u32-width-linebreaks: New file.
25204         * modules/unilbrk/ulc-width-linebreaks: New file.
25205         * lib/linebreak.h: Remove file.
25206         * lib/linebreak.c: Remove file.
25207         * m4/linebreak.m4: Remove file.
25208         * modules/linebreak: Remove file.
25209         * NEWS: Mention the changes.
25210
25211 2008-05-09  Eric Blake  <ebb9@byu.net>
25212
25213         Add xmemdup0.
25214         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
25215         implementation.
25216         * lib/xmalloc.c (xmemdup0): New C implementation.
25217
25218 2008-05-08  Bruno Haible  <bruno@clisp.org>
25219
25220         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
25221
25222 2008-05-07  Eric Blake  <ebb9@byu.net>
25223
25224         Support cross-compilation of <wctype.h>.
25225         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
25226         AC_CACHE_CHECK.
25227
25228 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
25229
25230         * build-aux/vc-list-files: Add support for bzr.
25231
25232 2008-05-03  Jim Meyering  <meyering@redhat.com>
25233
25234         avoid failed assertion with tight malloc
25235         * tests/test-getndelim2.c: Correct an off-by-one assertion.
25236
25237 2008-05-03  Simon Josefsson  <simon@josefsson.org>
25238
25239         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
25240         are needed from arpa/inet.h.
25241         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
25242         Reported by Bruno Haible.
25243
25244 2008-05-02  Jim Meyering  <meyering@redhat.com>
25245
25246         avoid compilation error on FreeBSD 6
25247         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
25248
25249 2008-05-01  Jim Meyering  <meyering@redhat.com>
25250
25251         useless-if-before-free: correct --help's exit status description
25252         * build-aux/useless-if-before-free (usage): Like grep, exit 0
25253         for one or more matches, etc.  Reported by Bruno Haible.
25254
25255         vc-list-files: make the stand-alone gnulib test work
25256         * modules/vc-list-files-tests (configure.ac):
25257         Define and AC_SUBST abs_aux_dir.
25258         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
25259         $(abs_top_srcdir) to each script and having each of them
25260         duplicate the work of setting PATH, set PATH here, using
25261         the new variable, abs_aux_dir instead.
25262         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
25263         * tests/test-vc-list-files-git.sh: Likewise.
25264         Reported by Bruno Haible.
25265
25266 2008-05-01  Bruno Haible  <bruno@clisp.org>
25267
25268         * lib/getndelim2.c (getndelim2): Fix newsize computation during
25269         reallocation. Rename 'done' to 'found_delimiter'.
25270
25271 2008-05-01  Jim Meyering  <meyering@redhat.com>
25272
25273         vc-list-files: accommodate /bin/sh like the one from Solaris 10
25274         * build-aux/vc-list-files: Use `...`, not $(...).
25275
25276 2008-04-30  Jim Meyering  <meyering@redhat.com>
25277
25278         add tests for vc-list-files
25279         * modules/vc-list-files-tests: New module.
25280         * tests/test-vc-list-files-cvs.sh: New file.
25281         * tests/test-vc-list-files-git.sh: New file.
25282
25283         avoid a warning from gcc
25284         * lib/getndelim2.c (IF_LINT): Define.
25285         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
25286
25287         vc-list-files: work properly with build-aux/cvsu, too
25288         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
25289         to all cvs-based clauses.
25290
25291         vc-list-files: work properly in the CVS+awk case, too
25292         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
25293
25294         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
25295         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
25296         take more than one file argument, so .  Add quotes, just in case $dir
25297         ever contains a shell meta-character.  Prompted by Soren Hansen in
25298         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
25299
25300 2008-04-29  Eric Blake  <ebb9@byu.net>
25301
25302         Optimize getndelim2 to use block operations when possible.
25303         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
25304         freadseek, and memchr2.
25305         * lib/getndelim2.c (getndelim2): Use them for block reads.
25306
25307 2008-04-29  Bruno Haible  <bruno@clisp.org>
25308
25309         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
25310         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25311         * modules/inet_ntop (Depends-on): Add extensions.
25312         * modules/inet_pton (Depends-on): Likewise.
25313         Reported by Simon Josefsson.
25314
25315 2008-04-29  Jim Meyering  <meyering@redhat.com>
25316
25317         When the is more than one match in a block, match all of them.
25318         * build-aux/useless-if-before-free: Iterate through each block
25319         until there are no more matches.
25320
25321         Fix broken useless-if-before-free script.
25322         * build-aux/useless-if-before-free: Fix typo: missing "?" after
25323         the expression to match cast of argument to free-like function.
25324
25325 2008-04-29  Eric Blake  <ebb9@byu.net>
25326
25327         Use new header.
25328         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
25329
25330 2008-04-29  Jim Meyering  <meyering@redhat.com>
25331
25332         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
25333         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
25334         by gnulib to exist and to declare e.g., inet_ntop.
25335         Don't include "inet_ntop.h", now removed.
25336
25337         * m4/arpa_inet_h.m4: Remove trailing blanks.
25338
25339 2008-04-29  Eric Blake  <ebb9@byu.net>
25340
25341         Silence valgrind on safe reads beyond potential array bounds.
25342         * lib/rawmemchr.valgrind: New file.
25343         * lib/strchrnul.valgrind: Likewise.
25344         * modules/rawmemchr (Files): Distribute new file.
25345         * modules/strchrnul (Files): Likewise.
25346         Suggested by Bruno Haible.
25347
25348 2008-04-29  Bruno Haible  <bruno@clisp.org>
25349
25350         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
25351         (inet_ntop, inet_pton): Change portability warning's wording.
25352         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
25353         Invoke gl_CHECK_NEXT_HEADERS.
25354         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
25355         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
25356         set ARPA_INET_H.
25357         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25358         * modules/arpa_inet (Description): No longer only for systems that
25359         lack it.
25360         (Depends-on): Add include_next.
25361         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
25362         HAVE_ARPA_INET_H.
25363
25364 2008-04-29  Jim Meyering  <meyering@redhat.com>
25365
25366         * modules/mkdir (License): Re-license as LGPLv2+.
25367
25368 2008-04-29  Bruno Haible  <bruno@clisp.org>
25369
25370         * modules/rawmemchr (Maintainer): Set to Eric.
25371         * modules/strchrnul (Maintainer): Likewise.
25372
25373 2008-04-29  Simon Josefsson  <simon@josefsson.org>
25374
25375         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
25376         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
25377
25378         * modules/arpa_inet (arpa/inet.h): Use them.
25379
25380 2008-04-28  Eric Blake  <ebb9@byu.net>
25381
25382         Test getndelim2.
25383         * modules/getndelim2-tests: New file.
25384         * tests/test-getndelim2.c: Likewise.
25385         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
25386         stream.
25387         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
25388
25389         * MODULES.html.sh: Document new module.
25390
25391 2008-04-20  Bruno Haible  <bruno@clisp.org>
25392
25393         * lib/c-stack.c (die): Use raise.
25394         * modules/c-stack (Depends-on): Add raise.
25395
25396 2008-04-28  Bruno Haible  <bruno@clisp.org>
25397
25398         Expect rpmatch to be declared.
25399         * lib/yesno.c (rpmatch): Remove declaration.
25400
25401         Declare rpmatch.
25402         * lib/stdlib.in.h (rpmatch): New declaration.
25403         * lib/rpmatch.c: Include <stdlib.h> first.
25404         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
25405         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
25406         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
25407         HAVE_RPMATCH.
25408         * modules/rpmatch (Depends-on): Add stdlib, extensions.
25409         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25410         (Include): Set to <stdlib.h>.
25411         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
25412         HAVE_RPMATCH.
25413         * NEWS: Document the change.
25414
25415 2008-04-28  Bruno Haible  <bruno@clisp.org>
25416
25417         Change rpmatch to use nl_langinfo when appropriate.
25418         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
25419         (N_): New macro.
25420         (localized_pattern): New function/macro.
25421         (try): Remove match, nomatch arguments. Copy the pattern into safe
25422         memory before caching it.
25423         (rpmatch): Use localized_pattern. Add translator comments.
25424         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
25425         Suggested by Eric Blake.
25426         * modules/rpmatch (Depends-on): Add stdbool.
25427
25428 2008-04-28  Eric Blake  <ebb9@byu.net>
25429
25430         Add rawmemchr module, matching glibc.
25431         * modules/string (Makefile.am): New indicator.
25432         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
25433         * lib/string.in.h (rawmemchr): Declare when appropriate.
25434         * modules/rawmemchr: New file.
25435         * m4/rawmemchr.m4: Likewise.
25436         * lib/rawmemchr.c: Likewise.
25437         * modules/rawmemchr-tests: Likewise.
25438         * tests/test-rawmemchr.c: Likewise.
25439         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
25440         module.
25441         * modules/strchrnul (Depends-on): Add rawmemchr.
25442         * lib/strchrnul.c (strchrnul): Optimize a corner case.
25443
25444         Whitespace cleanup.
25445         * tests/test-strchrnul.c: Reindent.
25446         * lib/strchrnul.c: Likewise.
25447
25448         Optimize and test strchrnul.
25449         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
25450         * modules/strchrnul-tests: New file.
25451         * tests/test-strchrnul.c: Likewise.
25452
25453         Remove intprops dependency.
25454         * modules/memchr (Depends-on): Remove intprops.
25455         * modules/memrchr (Depends-on): Likewise.
25456         * modules/memchr2 (Depends-on): Likewise.
25457         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
25458         * lib/memrchr.c (__memrchr): Likewise.
25459         * lib/memrchr2.c (memchr2): Likewise.
25460         Reported by Simon Josefsson.
25461
25462 2008-04-28  Simon Josefsson  <simon@josefsson.org>
25463
25464         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
25465         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25466
25467 2008-04-28  Simon Josefsson  <simon@josefsson.org>
25468
25469         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
25470
25471         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
25472
25473         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
25474
25475         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
25476         declarations.
25477         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
25478
25479         * m4/inet_pton.m4: Don't check for header files.
25480
25481         * m4/inet_ntop.m4: Don't check for header files.
25482
25483 2008-04-28  Simon Josefsson  <simon@josefsson.org>
25484
25485         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
25486         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
25487         trigger for cygwin).
25488         Reported by Bruno Haible  <bruno@clisp.org>.
25489
25490 2008-04-28  Bruno Haible  <bruno@clisp.org>
25491
25492         * doc/posix-functions/strdup.texi: Mention mingw problem.
25493
25494 2008-04-27  Bruno Haible  <bruno@clisp.org>
25495
25496         * modules/stat-time-tests (Depends-on): Add sleep.
25497         * tests/test-stat-time.c (force_unlink): New function.
25498         (cleanup): Use it.
25499         (test_mtime): Remove the ctime related tests.
25500         (test_ctime): New function, containing the ctime related tests.
25501         (main): Call test_ctime, except on native Windows platforms.
25502
25503 2008-04-27  Bruno Haible  <bruno@clisp.org>
25504
25505         * lib/rpmatch.c (rpmatch): Add some comments.
25506         Reported by James Youngman <jay@gnu.org>.
25507
25508 2008-04-27  Bruno Haible  <bruno@clisp.org>
25509
25510         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
25511         quiet NaNs.
25512
25513 2008-04-27  Bruno Haible  <bruno@clisp.org>
25514
25515         Make test-yesno.sh work on mingw.
25516         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
25517         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
25518         (main): Set stdin to binary mode.
25519         * modules/yesno-tests (Depends-on): Add binary-io.
25520
25521 2008-04-27  Bruno Haible  <bruno@clisp.org>
25522
25523         Fix 'isfinite' on x86, x86_64, ia64 platforms.
25524         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
25525         argument that lie outside the IEEE 854 domain.
25526         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
25527         (gl_ISFINITE): Use it.
25528         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
25529
25530 2008-04-27  Bruno Haible  <bruno@clisp.org>
25531
25532         Allow local renaming in config.h.
25533         * lib/memrchr.c (memrchr): Don't undefine outside libc.
25534
25535 2008-04-27  Bruno Haible  <bruno@clisp.org>
25536
25537         * lib/memchr.c (__memchr): Change type of 'i'.
25538         * lib/memchr2.c (memchr2): Likewise.
25539
25540 2008-04-26  Eric Blake  <ebb9@byu.net>
25541         and Bruno Haible  <bruno@clisp.org>
25542
25543         Optimize and test memrchr.
25544         * modules/memrchr (Depends-on): Add intprops.
25545         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
25546         * modules/memrchr-tests: New file.
25547         * tests/test-memrchr.c: New file.
25548
25549 2008-04-26  Bruno Haible  <bruno@clisp.org>
25550
25551         Add tentative support for DragonFly BSD.
25552         * lib/stdio-impl.h: Add macros for DragonFly BSD.
25553         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
25554         fp.
25555         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
25556         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
25557         * lib/fpurge.c (fpurge): Likewise.
25558         * lib/freadable.c (freaadable): Likewise.
25559         * lib/freadahead.c (freadahead): Likewise.
25560         * lib/freading.c (freading): Likewise.
25561         * lib/freadptr.c (freadptr): Likewise.
25562         * lib/freadseek.c (freadptrinc): Likewise.
25563         * lib/fseeko.c (fseeko): Likewise.
25564         * lib/fseterr.c (fseterr): Likewise.
25565         * lib/fwritable.c (fwritable): Likewise.
25566         * lib/fwriting.c (fwriting): Likewise.
25567
25568 2008-04-26  Bruno Haible  <bruno@clisp.org>
25569
25570         * lib/stdio-impl.h: New file.
25571         * lib/fbufmode.c: Include stdio-impl.h.
25572         (fbufmode): Use fp_, remove redundant #defines.
25573         * lib/fflush.c: Include stdio-impl.h.
25574         (clear_ungetc_buffer): Remove redundant #defines.
25575         * lib/fpurge.c: Include stdio-impl.h.
25576         (fpurge): Remove redundant #defines.
25577         * lib/freadable.c: Include stdio-impl.h.
25578         (freadable): Remove redundant #defines.
25579         * lib/freadahead.c: Include stdio-impl.h.
25580         (freadahead): Remove redundant #defines.
25581         * lib/freading.c: Include stdio-impl.h.
25582         (freading): Remove redundant #defines.
25583         * lib/freadptr.c: Include stdio-impl.h.
25584         (freadptr): Remove redundant #defines.
25585         * lib/freadseek.c: Include stdio-impl.h.
25586         (freadptrinc): Remove redundant #defines.
25587         * lib/fseeko.c: Include stdio-impl.h.
25588         (rpl_fseeko): Remove redundant #defines.
25589         * lib/fseterr.c: Include stdio-impl.h.
25590         (fseterr): Remove redundant #defines.
25591         * lib/fwritable.c: Include stdio-impl.h.
25592         (fwritable: Remove redundant #defines.
25593         * lib/fwriting.c: Include stdio-impl.h.
25594         (fwriting): Remove redundant #defines.
25595         * modules/fbufmode (Files): Add lib/stdio-impl.h.
25596         * modules/fflush (Files): Likewise.
25597         * modules/fpurge (Files): Likewise.
25598         * modules/freadable (Files): Likewise.
25599         * modules/freadahead (Files): Likewise.
25600         * modules/freading (Files): Likewise.
25601         * modules/freadptr (Files): Likewise.
25602         * modules/freadseek (Files): Likewise.
25603         * modules/fseeko (Files): Likewise.
25604         * modules/fseterr (Files): Likewise.
25605         * modules/fwritable (Files): Likewise.
25606         * modules/fwriting (Files): Likewise.
25607
25608 2008-04-26  Bruno Haible  <bruno@clisp.org>
25609
25610         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
25611         restore_seek_optimization, update_fpos_cache): New functions, extracted
25612         from rpl_fflush.
25613         (rpl_fflush): Use them.
25614         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
25615         (gl_REPLACE_FFLUSH): Use it.
25616
25617 2008-04-26  Bruno Haible  <bruno@clisp.org>
25618
25619         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
25620         on Solaris.
25621         * tests/test-xstrtoimax.sh: Likewise.
25622         * tests/test-xstrtoumax.sh: Likewise.
25623         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25624
25625 2008-04-26  Bruno Haible  <bruno@clisp.org>
25626
25627         * modules/memchr-tests: New file.
25628         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
25629
25630 2008-04-26  Eric Blake  <ebb9@byu.net>
25631             Bruno Haible  <bruno@clisp.org>
25632
25633         * lib/memchr.c: Include intprops.h.
25634         (__memchr): Optimize parallel detection of matching bytes. Rename local
25635         variables. Add explanatory comments.
25636
25637 2008-04-26  Bruno Haible  <bruno@clisp.org>
25638
25639         Fix module 'memchr', broken since 2000-10-28.
25640         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
25641
25642 2008-04-26  Bruno Haible  <bruno@clisp.org>
25643
25644         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
25645         comments.
25646
25647 2008-04-25  Eric Blake  <ebb9@byu.net>
25648
25649         Use native fstatat on cygwin 1.7.0.
25650         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
25651         first.
25652
25653 2008-04-23  Eric Blake  <ebb9@byu.net>
25654
25655         Improve memchr2 performance.
25656         * lib/memchr2.c (memchr2): Further optimize parallel detection of
25657         NUL bytes.
25658         * modules/memchr2 (Depends-on): Use intprops.h.
25659
25660 2008-04-23  Simon Josefsson  <simon@josefsson.org>
25661
25662         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
25663         an inline function instead of a CPP macro.  Patch by Ben Pfaff
25664         <blp@cs.stanford.edu>.
25665
25666 2008-04-23  Simon Josefsson  <simon@josefsson.org>
25667
25668         * lib/arpa_inet.in.h: New file.
25669
25670         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
25671         (Makefile.am): Sed in substitute header file.
25672
25673         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
25674         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
25675
25676         * modules/inet_ntop (configure.ac): Use
25677         gl_ARPA_INET_MODULE_INDICATOR.
25678
25679         * modules/inet_pton (configure.ac): Use
25680         gl_ARPA_INET_MODULE_INDICATOR.
25681
25682 2008-04-22  Jim Meyering  <meyering@redhat.com>
25683
25684         * modules/verify (License): Re-license as LGPLv2+.
25685
25686 2008-04-22  Simon Josefsson  <simon@josefsson.org>
25687
25688         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
25689         parameter to void* as per POSIX standard (MinGW uses char*).
25690
25691 2008-04-21  Bruno Haible  <bruno@clisp.org>
25692
25693         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
25694         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
25695         Define to replacements if REPLACE_ISWCNTRL is 1.
25696         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
25697         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
25698         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
25699         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
25700         what it fixes.
25701         * doc/posix-functions/iswalpha.texi: Likewise.
25702         * doc/posix-functions/iswblank.texi: Likewise.
25703         * doc/posix-functions/iswcntrl.texi: Likewise.
25704         * doc/posix-functions/iswdigit.texi: Likewise.
25705         * doc/posix-functions/iswgraph.texi: Likewise.
25706         * doc/posix-functions/iswlower.texi: Likewise.
25707         * doc/posix-functions/iswprint.texi: Likewise.
25708         * doc/posix-functions/iswpunct.texi: Likewise.
25709         * doc/posix-functions/iswspace.texi: Likewise.
25710         * doc/posix-functions/iswupper.texi: Likewise.
25711         * doc/posix-functions/iswxdigit.texi: Likewise.
25712         Reported by Alain Guibert.
25713
25714 2008-04-21  Bruno Haible  <bruno@clisp.org>
25715
25716         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
25717         Patch by Alain Guibert.
25718
25719 2008-04-21  Bruno Haible  <bruno@clisp.org>
25720
25721         Fix test failures on mingw.
25722         * tests/test-xstrtol.c (print_no_progname): New function.
25723         (main): Install it in error_print_progname hook.
25724         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
25725         * tests/test-xstrtoimax.sh: Likewise.
25726         * tests/test-xstrtoumax.sh: Likewise.
25727
25728 2008-04-21  Bruno Haible  <bruno@clisp.org>
25729
25730         Fix test failure on mingw.
25731         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
25732
25733 2008-04-21  Bruno Haible  <bruno@clisp.org>
25734
25735         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
25736         Actually assign a value.
25737
25738 2008-04-20  Bruno Haible  <bruno@clisp.org>
25739
25740         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
25741         take 2.
25742         * lib/canonicalize.c (canonicalize_file_name): Elide if the
25743         'canonicalize-lgpl' module is also used.
25744         * lib/canonicalize-lgpl.c: Undo last change.
25745         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
25746
25747 2008-04-20  Bruno Haible  <bruno@clisp.org>
25748
25749         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
25750         config.h. Provide _mkdir based fallback for mingw.
25751         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
25752         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
25753         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
25754         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
25755         rather than defining mkdir in config.h.
25756         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
25757         (gl_SYS_STAT_H_DEFAULTS): New macro.
25758         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
25759         HAVE_IO_H any more.
25760         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
25761         HAVE_DECL_MKDIR and HAVE_IO_H.
25762
25763 2008-04-20  Bruno Haible  <bruno@clisp.org>
25764
25765         * lib/isapipe.c: Port to native Windows platforms.
25766
25767 2008-04-20  Bruno Haible  <bruno@clisp.org>
25768
25769         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
25770
25771 2008-04-21  Eric Blake  <ebb9@byu.net>
25772
25773         Work around preprocessors that don't handle UINTMAX_MAX.
25774         * lib/memchr2.c (memchr2): Avoid embedded #if.
25775         Reported by Alain Guibert, fix suggested by Bruno Haible.
25776
25777 2008-04-21  Simon Josefsson  <simon@josefsson.org>
25778
25779         * doc/posix-functions/strftime.texi (strftime): Explain better
25780         Windows incompatibility.  Suggested by Micah Cowan
25781         <micah@cowan.name>.
25782
25783 2008-04-20  Bruno Haible  <bruno@clisp.org>
25784
25785         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
25786         unistr/u8-mblen.
25787
25788 2008-04-20  Bruno Haible  <bruno@clisp.org>
25789
25790         Fix test failure on platforms with non-GNU iconv.
25791         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
25792         (U_TO_U8): Use it, rather than u16_to_u8.
25793         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
25794         units at the end of the input string.
25795         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
25796
25797 2008-04-20  Bruno Haible  <bruno@clisp.org>
25798
25799         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
25800         when the resulting length is 0.
25801         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
25802
25803 2008-04-20  Bruno Haible  <bruno@clisp.org>
25804
25805         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
25806         works.
25807         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
25808
25809 2008-04-20  Bruno Haible  <bruno@clisp.org>
25810
25811         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
25812         * modules/tsearch-tests (configure.ac): Test for initstate function.
25813
25814 2008-04-20  Bruno Haible  <bruno@clisp.org>
25815
25816         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
25817         for nlink_t if missing.
25818         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
25819
25820 2008-04-19  Bruno Haible  <bruno@clisp.org>
25821
25822         Work around snprintf bug on Linux libc5.
25823         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
25824         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
25825         gl_SNPRINTF_SIZE1.
25826         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25827         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
25828         that test failed.
25829         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
25830         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
25831         * modules/snprintf (Files): Add m4/printf.m4.
25832         * modules/vsnprintf (Files): Likewise.
25833         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
25834         * doc/posix-functions/vsnprintf.texi: Likewise.
25835
25836 2008-04-19  Bruno Haible  <bruno@clisp.org>
25837
25838         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
25839         from 0.0058 to less than 10^-7.
25840
25841 2008-04-19  Bruno Haible  <bruno@clisp.org>
25842
25843         Fix rounding when a precision is given.
25844         * lib/vasnprintf.c (is_borderline): New function.
25845         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
25846         9...9x.
25847         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
25848         %e, %g.
25849         * tests/test-vasprintf-posix.c (test_function): Likewise.
25850         * tests/test-snprintf-posix.h (test_function): Likewise.
25851         * tests/test-sprintf-posix.h (test_function): Likewise.
25852         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
25853         * tests/test-printf-posix.h (test_function): Likewise.
25854         * tests/test-printf-posix.output: Update.
25855         Reported by John Darrington <john@darrington.wattle.id.au> via
25856         Ben Pfaff <blp@cs.stanford.edu>.
25857
25858 2008-04-18  Simon Josefsson  <simon@josefsson.org>
25859
25860         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
25861         Suggested by Bruno Haible <bruno@clisp.org>.
25862
25863 2008-04-17  Bruno Haible  <bruno@clisp.org>
25864
25865         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
25866         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
25867         implementation.
25868         Patch by Bruce Merry <bmerry@gmail.com>.
25869
25870 2008-04-17  Simon Josefsson  <simon@josefsson.org>
25871
25872         * doc/posix-functions/strftime.texi (strftime): Mention that %e
25873         doesn't work under Windows.
25874
25875 2008-04-16  Bruno Haible  <bruno@clisp.org>
25876
25877         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
25878         New macros.
25879         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
25880         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
25881         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
25882         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
25883         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
25884         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
25885         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
25886         macros.
25887         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
25888         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
25889         Northern Sotho, Uighur.
25890
25891 2008-04-16  Bruno Haible  <bruno@clisp.org>
25892
25893         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
25894         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
25895         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
25896         Reported by Daniel Bergström <daniel@octocode.com>.
25897
25898 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
25899             Bruno Haible  <bruno@clisp.org>
25900
25901         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
25902         function.
25903         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
25904         New functions, mostly extracted from gl_locale_name_default.
25905         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
25906
25907 2008-04-16  Eric Blake  <ebb9@byu.net>
25908
25909         Adjust strtod detection to catch glibc 2.7 bug.
25910         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
25911         Reported by John Gatewood Ham.
25912
25913 2008-04-16  Bruno Haible  <bruno@clisp.org>
25914
25915         Add tentative support for Linux libc5.
25916         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
25917         * lib/fpurge.c (fpurge): Likewise.
25918         * lib/freadable.c (freadable): Likewise.
25919         * lib/freadahead.c (freadahead): Likewise.
25920         * lib/freading.c (freading): Likewise.
25921         * lib/freadptr.c (freadptr): Likewise.
25922         * lib/freadseek.c (freadptrinc): Likewise.
25923         * lib/fseeko.c (rpl_fseeko): Likewise.
25924         * lib/fseterr.c (fseterr): Likewise.
25925         * lib/fwritable.c (fwritable): Likewise.
25926         * lib/fwriting.c (fwriting): Likewise.
25927         Reported by Alain Guibert <alguibert+bts@free.fr>.
25928
25929 2008-04-15  Bruno Haible  <bruno@clisp.org>
25930
25931         * modules/mathl (configure.ac): Define module indicator.
25932
25933 2008-04-15  Bruno Haible  <bruno@clisp.org>
25934
25935         * lib/logl.c (logl): Remove unused variables.
25936
25937 2008-04-15  Bruno Haible  <bruno@clisp.org>
25938
25939         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
25940         fails.
25941
25942 2008-04-15  Bruno Haible  <bruno@clisp.org>
25943
25944         * lib/trim.c (trim2): Fix argument of isspace() macro.
25945
25946 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
25947
25948         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
25949         to 0.
25950         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
25951
25952 2008-04-14  Bruno Haible  <bruno@clisp.org>
25953
25954         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
25955         AC_LANG_PROGRAM argument.
25956         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
25957         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
25958         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
25959         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
25960         * m4/math_h.m4 (gl_MATH_H): Likewise.
25961         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
25962         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25963         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
25964         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
25965         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
25966         * m4/regex.m4 (gl_REGEX): Likewise.
25967         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
25968         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
25969         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25970         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
25971         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
25972         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
25973         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25974         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
25975
25976 2008-04-14  Jim Meyering  <meyering@redhat.com>
25977
25978         test-strtod: fix typos: s/abs/fabs/
25979         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
25980
25981 2008-04-13  Bruno Haible  <bruno@clisp.org>
25982
25983         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
25984         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
25985         module is also used and while not building the reloc-wrapper.
25986
25987 2008-04-13  Bruno Haible  <bruno@clisp.org>
25988
25989         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
25990
25991 2008-04-13  Bruno Haible  <bruno@clisp.org>
25992
25993         Fix AIX compilation failure introduced on 2008-04-02.
25994         * tests/test-frexp.c (exp): Undefine before redefining.
25995         * tests/test-frexpl.c (exp): Likewise.
25996
25997 2008-04-13  Bruno Haible  <bruno@clisp.org>
25998
25999         Work around a HP-UX stdio bug.
26000         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
26001         * tests/test-ftello.c (main): Likewise.
26002         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
26003         * doc/posix-functions/ftello.texi: Likewise.
26004
26005 2008-04-13  Bruno Haible  <bruno@clisp.org>
26006
26007         Make test-signbit pass on HP-UX/hppa.
26008         * tests/test-signbit.c (minus_zerol): New variable.
26009         (test_signbitl): Use it.
26010
26011 2008-04-13  Bruno Haible  <bruno@clisp.org>
26012
26013         Make truncl work on OSF/1 4.0.
26014         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
26015         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
26016         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
26017         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
26018         HAVE_DECL_TRUNCL.
26019         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
26020         HAVE_DECL_TRUNCL.
26021         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
26022
26023 2008-04-13  Bruno Haible  <bruno@clisp.org>
26024
26025         * lib/unictype.h: Remove trailing comma from enumeration definitions.
26026
26027 2008-04-13  Bruno Haible  <bruno@clisp.org>
26028
26029         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
26030         expression, so as to avoid HP-UX 11 cc compiler bug.
26031
26032 2008-04-13  Bruno Haible  <bruno@clisp.org>
26033
26034         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
26035
26036 2008-04-13  Bruno Haible  <bruno@clisp.org>
26037
26038         * lib/git-merge-changelog.c: Remove empty declaration outside of
26039         functions.
26040
26041 2008-04-13  Bruno Haible  <bruno@clisp.org>
26042
26043         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
26044
26045 2008-04-13  Bruno Haible  <bruno@clisp.org>
26046
26047         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
26048         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
26049         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
26050         also if it exists but lacks definitions of the SHUT_* macros.
26051         * modules/sys_socket (Description): Update.
26052         Reported by Elbert Pol <e.pol@chello.nl>.
26053
26054 2008-04-13  Bruno Haible  <bruno@clisp.org>
26055
26056         * lib/localcharset.c (OS2): Don't redefine if already defined.
26057         Reported by Elbert Pol <e.pol@chello.nl>.
26058
26059 2008-04-13  Bruno Haible  <bruno@clisp.org>
26060
26061         * lib/binary-io.h [__EMX__]: Include <io.h>.
26062         Reported by Elbert Pol <e.pol@chello.nl>.
26063
26064 2008-04-12  Bruno Haible  <bruno@clisp.org>
26065
26066         * lib/fpucw.h: Enable the definitions also for x86_64.
26067         Needed for NetBSD/x86_64.
26068         Reported by Thomas Klausner <tk@giga.or.at>.
26069
26070 2008-04-12  Bruno Haible  <bruno@clisp.org>
26071
26072         * tests/test-strtod.c: Include isnand.h.
26073         (main): Use isnand instead of isnan.
26074         Reported by Jim Meyering.
26075
26076 2008-04-12  Bruno Haible  <bruno@clisp.org>
26077
26078         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
26079         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
26080
26081 2008-04-12  Jim Meyering  <meyering@redhat.com>
26082
26083         * m4/math_h.m4 (gl_MATH_H): Fix typos.
26084
26085 2008-04-12  Bruno Haible  <bruno@clisp.org>
26086
26087         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
26088         Reported by Elbert Pol <e.pol@chello.nl>.
26089
26090 2008-04-12  Eric Blake  <ebb9@byu.net>
26091
26092         Work around Solaris 10 math.h bug.
26093         * m4/math_h.m4 (gl_MATH_H): Check for bug.
26094         (gl_MATH_H_DEFAULTS): Set up default.
26095         * modules/math (Makefile.am): Replace new indicators.
26096         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
26097         * tests/test-math.c (main): Test this.
26098         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
26099         * doc/posix-headers/math.texi (math.h): Mention bug.
26100         Reported by Nelson H. F. Beebe and Jim Meyering.
26101
26102 2008-04-11  Bruno Haible  <bruno@clisp.org>
26103
26104         Adapt to future versions of Apple GCC.
26105         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
26106         Reported by Peter O'Gorman <peter@pogma.com>.
26107
26108 2008-04-11  Bruno Haible  <bruno@clisp.org>
26109
26110         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
26111
26112 2008-04-11  Bruno Haible  <bruno@clisp.org>
26113
26114         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
26115
26116         * modules/getaddrinfo-tests (Makefile.am): Define
26117         test_getaddrinfo_LDADD.
26118
26119 2008-04-11  Bruno Haible  <bruno@clisp.org>
26120
26121         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
26122         (init): Fix syntax error.
26123         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
26124         is declared.
26125
26126 2008-04-11  Bruno Haible  <bruno@clisp.org>
26127
26128         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
26129         * modules/glob (Depends-on): Add stdbool.
26130
26131 2008-04-11  Bruno Haible  <bruno@clisp.org>
26132
26133         * lib/trim.c: Include <string.h>.
26134
26135 2008-04-11  Eric Blake  <ebb9@byu.net>
26136
26137         Avoid compile failure on OS/2.
26138         * lib/regex_internal.h (internal_function): Disable optimization
26139         on OS/2 (__EMX__), where it caused compiler error.
26140         Reported by Elbert Pol.
26141
26142 2008-04-11  Bruno Haible  <bruno@clisp.org>
26143
26144         Flush the standard error stream before aborting. Needed on mingw.
26145         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
26146         * tests/test-array_list.c (ASSERT): Likewise.
26147         * tests/test-array_oset.c (ASSERT): Likewise.
26148         * tests/test-avltree_list.c (ASSERT): Likewise.
26149         * tests/test-avltree_oset.c (ASSERT): Likewise.
26150         * tests/test-avltreehash_list.c (ASSERT): Likewise.
26151         * tests/test-binary-io.c (ASSERT): Likewise.
26152         * tests/test-byteswap.c (ASSERT): Likewise.
26153         * tests/test-c-ctype.c (ASSERT): Likewise.
26154         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
26155         * tests/test-c-strcasestr.c (ASSERT): Likewise.
26156         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
26157         * tests/test-c-strstr.c (ASSERT): Likewise.
26158         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
26159         * tests/test-canonicalize.c (ASSERT): Likewise.
26160         * tests/test-carray_list.c (ASSERT): Likewise.
26161         * tests/test-ceilf1.c (ASSERT): Likewise.
26162         * tests/test-ceilf2.c (ASSERT): Likewise.
26163         * tests/test-ceill.c (ASSERT): Likewise.
26164         * tests/test-count-one-bits.c (ASSERT): Likewise.
26165         * tests/test-fbufmode.c (ASSERT): Likewise.
26166         * tests/test-fflush2.c (ASSERT): Likewise.
26167         * tests/test-floorf1.c (ASSERT): Likewise.
26168         * tests/test-floorf2.c (ASSERT): Likewise.
26169         * tests/test-floorl.c (ASSERT): Likewise.
26170         * tests/test-fopen.c (ASSERT): Likewise.
26171         * tests/test-fpending.c (ASSERT): Likewise.
26172         * tests/test-fprintf-posix.c (ASSERT): Likewise.
26173         * tests/test-fpurge.c (ASSERT): Likewise.
26174         * tests/test-freadable.c (ASSERT): Likewise.
26175         * tests/test-freadahead.c (ASSERT): Likewise.
26176         * tests/test-freading.c (ASSERT): Likewise.
26177         * tests/test-freadptr.c (ASSERT): Likewise.
26178         * tests/test-freadptr2.c (ASSERT): Likewise.
26179         * tests/test-freadseek.c (ASSERT): Likewise.
26180         * tests/test-freopen.c (ASSERT): Likewise.
26181         * tests/test-frexp.c (ASSERT): Likewise.
26182         * tests/test-frexpl.c (ASSERT): Likewise.
26183         * tests/test-fseek.c (ASSERT): Likewise.
26184         * tests/test-fseeko.c (ASSERT): Likewise.
26185         * tests/test-fstrcmp.c (ASSERT): Likewise.
26186         * tests/test-ftell.c (ASSERT): Likewise.
26187         * tests/test-ftello.c (ASSERT): Likewise.
26188         * tests/test-func.c (ASSERT): Likewise.
26189         * tests/test-fwritable.c (ASSERT): Likewise.
26190         * tests/test-fwriting.c (ASSERT): Likewise.
26191         * tests/test-getdelim.c (ASSERT): Likewise.
26192         * tests/test-getline.c (ASSERT): Likewise.
26193         * tests/test-i-ring.c (ASSERT): Likewise.
26194         * tests/test-iconv-utf.c (ASSERT): Likewise.
26195         * tests/test-iconv.c (ASSERT): Likewise.
26196         * tests/test-isfinite.c (ASSERT): Likewise.
26197         * tests/test-isnand.c (ASSERT): Likewise.
26198         * tests/test-isnanf.c (ASSERT): Likewise.
26199         * tests/test-isnanl.h (ASSERT): Likewise.
26200         * tests/test-ldexpl.c (ASSERT): Likewise.
26201         * tests/test-linked_list.c (ASSERT): Likewise.
26202         * tests/test-linkedhash_list.c (ASSERT): Likewise.
26203         * tests/test-localename.c (ASSERT): Likewise.
26204         * tests/test-lseek.c (ASSERT): Likewise.
26205         * tests/test-mbscasecmp.c (ASSERT): Likewise.
26206         * tests/test-mbscasestr1.c (ASSERT): Likewise.
26207         * tests/test-mbscasestr2.c (ASSERT): Likewise.
26208         * tests/test-mbscasestr3.c (ASSERT): Likewise.
26209         * tests/test-mbscasestr4.c (ASSERT): Likewise.
26210         * tests/test-mbschr.c (ASSERT): Likewise.
26211         * tests/test-mbscspn.c (ASSERT): Likewise.
26212         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
26213         * tests/test-mbspbrk.c (ASSERT): Likewise.
26214         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
26215         * tests/test-mbsrchr.c (ASSERT): Likewise.
26216         * tests/test-mbsspn.c (ASSERT): Likewise.
26217         * tests/test-mbsstr1.c (ASSERT): Likewise.
26218         * tests/test-mbsstr2.c (ASSERT): Likewise.
26219         * tests/test-mbsstr3.c (ASSERT): Likewise.
26220         * tests/test-memchr2.c (ASSERT): Likewise.
26221         * tests/test-memmem.c (ASSERT): Likewise.
26222         * tests/test-open.c (ASSERT): Likewise.
26223         * tests/test-printf-frexp.c (ASSERT): Likewise.
26224         * tests/test-printf-frexpl.c (ASSERT): Likewise.
26225         * tests/test-printf-posix.c (ASSERT): Likewise.
26226         * tests/test-quotearg.c (ASSERT): Likewise.
26227         * tests/test-rbtree_list.c (ASSERT): Likewise.
26228         * tests/test-rbtree_oset.c (ASSERT): Likewise.
26229         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
26230         * tests/test-round1.c (ASSERT): Likewise.
26231         * tests/test-roundf1.c (ASSERT): Likewise.
26232         * tests/test-roundl.c (ASSERT): Likewise.
26233         * tests/test-signbit.c (ASSERT): Likewise.
26234         * tests/test-sleep.c (ASSERT): Likewise.
26235         * tests/test-snprintf-posix.c (ASSERT): Likewise.
26236         * tests/test-snprintf.c (ASSERT): Likewise.
26237         * tests/test-sprintf-posix.c (ASSERT): Likewise.
26238         * tests/test-stat-time.c (ASSERT): Likewise.
26239         * tests/test-strcasestr.c (ASSERT): Likewise.
26240         * tests/test-strerror.c (ASSERT): Likewise.
26241         * tests/test-striconv.c (ASSERT): Likewise.
26242         * tests/test-striconveh.c (ASSERT): Likewise.
26243         * tests/test-striconveha.c (ASSERT): Likewise.
26244         * tests/test-strsignal.c (ASSERT): Likewise.
26245         * tests/test-strstr.c (ASSERT): Likewise.
26246         * tests/test-strtod.c (ASSERT): Likewise.
26247         * tests/test-trunc1.c (ASSERT): Likewise.
26248         * tests/test-trunc2.c (ASSERT): Likewise.
26249         * tests/test-truncf1.c (ASSERT): Likewise.
26250         * tests/test-truncf2.c (ASSERT): Likewise.
26251         * tests/test-truncl.c (ASSERT): Likewise.
26252         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
26253         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
26254         * tests/test-vasnprintf.c (ASSERT): Likewise.
26255         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
26256         * tests/test-vasprintf.c (ASSERT): Likewise.
26257         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
26258         * tests/test-vprintf-posix.c (ASSERT): Likewise.
26259         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
26260         * tests/test-vsnprintf.c (ASSERT): Likewise.
26261         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
26262         * tests/test-wcwidth.c (ASSERT): Likewise.
26263         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
26264         * tests/test-xprintf-posix.c (ASSERT): Likewise.
26265         * tests/test-xvasprintf.c (ASSERT): Likewise.
26266         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
26267         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
26268         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
26269         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
26270         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
26271         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
26272         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
26273         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
26274         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
26275         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
26276         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
26277         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
26278         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
26279         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
26280         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
26281         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
26282         * tests/unictype/test-block_list.c (ASSERT): Likewise.
26283         * tests/unictype/test-block_of.c (ASSERT): Likewise.
26284         * tests/unictype/test-block_test.c (ASSERT): Likewise.
26285         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
26286         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
26287         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
26288         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
26289         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
26290         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
26291         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
26292         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
26293         * tests/unictype/test-combining.c (ASSERT): Likewise.
26294         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
26295         * tests/unictype/test-digit.c (ASSERT): Likewise.
26296         * tests/unictype/test-mirror.c (ASSERT): Likewise.
26297         * tests/unictype/test-numeric.c (ASSERT): Likewise.
26298         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
26299         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
26300         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
26301         * tests/unictype/test-scripts.c (ASSERT): Likewise.
26302         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
26303         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
26304         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
26305         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
26306         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
26307         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
26308         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
26309         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
26310         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
26311         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
26312         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
26313         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
26314         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
26315         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
26316         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
26317         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
26318         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
26319         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
26320         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
26321         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
26322         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
26323         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
26324         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
26325         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
26326         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
26327         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
26328         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
26329         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
26330         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
26331         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
26332         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
26333         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
26334         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
26335         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
26336         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
26337         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
26338         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
26339         Reported by Eric Blake.
26340
26341 2008-04-11  Bruno Haible  <bruno@clisp.org>
26342
26343         * lib/wchar.in.h: Tweak comment.
26344
26345 2008-04-11  Bruno Haible  <bruno@clisp.org>
26346
26347         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
26348         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
26349         gl_COMMON.
26350         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
26351
26352 2008-04-11  Bruno Haible  <bruno@clisp.org>
26353
26354         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
26355
26356 2008-04-11  Simon Josefsson  <simon@josefsson.org>
26357
26358         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
26359         of attempting to use non-existing /dev/*random.  Based on patch
26360         from Adam Strzelecki <ono@java.pl> in
26361         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
26362
26363 2008-04-08  Bruno Haible  <bruno@clisp.org>
26364
26365         Add tentative support for emx+gcc.
26366         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
26367         * lib/fpurge.c (fpurge): Likewise.
26368         * lib/freadable.c (freadable): Likewise.
26369         * lib/freadahead.c (freadahead): Likewise.
26370         * lib/freading.c (freading): Likewise.
26371         * lib/freadptr.c (freadptr): Likewise.
26372         * lib/freadseek.c (freadptrinc): Likewise.
26373         * lib/fseeko.c (rpl_fseeko): Likewise.
26374         * lib/fseterr.c (fseterr): Likewise.
26375         * lib/fwritable.c (fwritable): Likewise.
26376         * lib/fwriting.c (fwriting): Likewise.
26377         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
26378
26379 2008-04-09  Eric Blake  <ebb9@byu.net>
26380
26381         Avoid some autoconf warnings.
26382         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
26383         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
26384         * m4/afs.m4 (gl_AFS): Likewise.
26385         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
26386         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
26387         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
26388         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
26389         (gl_INTEGER_TYPE_SUFFIX): Likewise.
26390         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
26391         (AC_CHECK_DECLS_ONCE): Likewise.
26392         Rename file...
26393         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
26394         gnulib-tool requires autoconf 2.59 or better.
26395         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
26396
26397 2008-04-08  Eric Blake  <ebb9@byu.net>
26398
26399         Use 'git describe --match' if present (added in git 1.5.5).
26400         * build-aux/git-version-gen: Limit result to tags that match 'v*'
26401         if possible.
26402
26403 2008-04-08  Bruno Haible  <bruno@clisp.org>
26404
26405         Add tentative support for OpenServer.
26406         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
26407         _ptr, _cnt.
26408         * lib/fpurge.c (fpurge): Likewise.
26409         * lib/freadable.c (freadable): Likewise.
26410         * lib/freadahead.c (freadahead): Likewise.
26411         * lib/freading.c (freading): Likewise.
26412         * lib/freadptr.c (freadptr): Likewise.
26413         * lib/freadseek.c (freadptrinc): Likewise.
26414         * lib/fseeko.c (rpl_fseeko): Likewise.
26415         * lib/fseterr.c (fseterr): Likewise.
26416         * lib/fwritable.c (fwritable): Likewise.
26417         * lib/fwriting.c (fwriting): Likewise.
26418         Reported by Roger Cornelius <rac@tenzing.org> and
26419         Brian K. White <brian@aljex.com>.
26420
26421 2008-04-06  Jim Meyering  <meyering@redhat.com>
26422
26423         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
26424
26425 2008-04-06  Bruno Haible  <bruno@clisp.org>
26426
26427         Avoid possible error with non-ASCII bytes in UTF-8 locales.
26428         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
26429         * tests/test-printf-posix.sh: Likewise.
26430         * tests/test-vfprintf-posix.sh: Likewise.
26431         * tests/test-vprintf-posix.sh: Likewise.
26432         * tests/test-xprintf-posix.sh: Likewise.
26433
26434 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26435
26436         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
26437         hide error from 'ls', needed on OS/2.
26438         Report by Elbert Pol <elbert.pol@gmail.com>.
26439
26440 2008-04-04  Eric Blake  <ebb9@byu.net>
26441
26442         Make test-fseeko.c failures meaningful.
26443         * tests/test-fseeko.c: Print line number on failure.
26444         * tests/test-fseek.c: Likewise.
26445         Reported by Nelson H. F. Beebe.
26446
26447         Improve strtod bug detection check.
26448         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
26449         required for Solaris 10.
26450         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
26451
26452 2008-04-04  Bruno Haible  <bruno@clisp.org>
26453
26454         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
26455         by m4/setenv.m4.
26456
26457 2008-04-03  Eric Blake  <ebb9@byu.net>
26458
26459         Ensure sane .version contents.
26460         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
26461         version string.
26462         * build-aux/git-version-gen: Improve documentation.
26463
26464         Make GNU make output nicer.
26465         * top/GNUmakefile [!_have-Makefile]: Add dependency on
26466         MAKECMDGOALS to enforce message for all command line targets.  Set
26467         srcdir for use in maint.mk.
26468
26469         Another maintainer tweak.
26470         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
26471         a target that regenerates version.
26472
26473 2008-04-03  Jim Meyering  <meyering@redhat.com>
26474
26475         vc-list-files: don't cause coreutils "make po-check" failure
26476         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
26477
26478 2008-04-03  Eric Blake  <ebb9@byu.net>
26479
26480         Allow VPATH usage of vc-list-files.
26481         * build-aux/vc-list-files (scriptversion): Add timestamp.
26482         (options): Add --help, --version, -C.
26483         (CVS): Support installed cvsu.
26484
26485 2008-04-02  Bruno Haible  <bruno@clisp.org>
26486
26487         Avoid some "statement with no effect" warnings from gcc.
26488         * tests/test-wctype.c (main): Explicitly ignore unused values.
26489         Reported by Jim Meyering.
26490
26491 2008-04-02  Jim Meyering  <meyering@redhat.com>
26492
26493         Avoid some warnings from "gcc -Wshadow".
26494         * tests/test-frexp.c (exp): Define to a different identifier.
26495         * tests/test-frexpl.c (exp): Likewise.
26496
26497 2008-04-03  Jim Meyering  <meyering@redhat.com>
26498
26499         bootstrap: remove dangling *.[ch] symlinks from lib
26500         * build-aux/bootstrap [dangling symlink removal]: Move find's
26501         -depth option to precede all others, to avoid a warning.
26502         Remove *.[ch] files too, and from "$source_base" (usually lib/).
26503
26504 2008-04-02  Bruno Haible  <bruno@clisp.org>
26505
26506         Avoid some warnings from "gcc -Wshadow".
26507         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
26508         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
26509         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
26510         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
26511         Reported by Jim Meyering.
26512
26513 2008-04-01  Bruno Haible  <bruno@clisp.org>
26514
26515         Fix test to work on IRIX 6.5 with cc.
26516         * tests/test-math.c (numeric_equal): New function.
26517         (main): Use it.
26518
26519 2008-04-01  Bruno Haible  <bruno@clisp.org>
26520
26521         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
26522
26523 2008-04-01  Bruno Haible  <bruno@clisp.org>
26524
26525         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
26526         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26527         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
26528         (Depends-on): Remove math.
26529
26530         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
26531         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26532         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
26533         (Depends-on): Remove math.
26534
26535         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
26536         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26537         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
26538         (Depends-on): Remove math.
26539         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
26540         (Depends-on): Remove math.
26541
26542         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
26543         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26544         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
26545         (Depends-on): Remove math.
26546         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
26547         (Depends-on): Remove math.
26548
26549         * tests/test-round1.c: Include nan.h.
26550         (main): Use NaNd instead of NAN.
26551         * modules/round-tests (Files): Add tests/nan.h.
26552
26553         * tests/test-trunc1.c: Include nan.h.
26554         (main): Use NaNd instead of NAN.
26555         * modules/trunc-tests (Files): Add tests/nan.h.
26556
26557         * tests/test-roundf1.c: Include nan.h.
26558         (main): Use NaNf instead of NAN.
26559         * modules/roundf-tests (Files): Add tests/nan.h.
26560
26561         * tests/test-truncf1.c: Include nan.h.
26562         (main): Use NaNf instead of NAN.
26563         * modules/truncf-tests (Files): Add tests/nan.h.
26564
26565         * tests/test-ceilf1.c: Include nan.h.
26566         (main): Use NaNf instead of NAN.
26567         * modules/ceilf-tests (Files): Add tests/nan.h.
26568
26569         * tests/test-floorf1.c: Include nan.h.
26570         (main): Use NaNf instead of NAN.
26571         * modules/floorf-tests (Files): Add tests/nan.h.
26572
26573         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
26574         (main): Use NaNf instead of NAN.
26575         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
26576
26577         * tests/test-isnand.c: Include nan.h instead of <math.h>.
26578         (main): Use NaNd instead of NAN.
26579         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
26580
26581         * tests/test-frexp.c: Include nan.h.
26582         (main): Use NaNd instead of NAN.
26583         * modules/frexp-tests (Files): Add tests/nan.h.
26584
26585         * lib/isnan.c: Don't include <math.h>.
26586         (FUNC): Don't use NAN macro.
26587         * modules/isnand-nolibm (Depends-on): Remove math.
26588         * modules/isnanf-nolibm (Depends-on): Remove math.
26589         * modules/isnanl (Depends-on): Remove math.
26590         * modules/isnanl-nolibm (Depends-on): Remove math.
26591
26592         * tests/nan.h: New file.
26593
26594 2008-04-01  Eric Blake  <ebb9@byu.net>
26595
26596         Fix typos.
26597         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
26598         values to be the right type.
26599
26600         For now, cater to gnulib strtod inaccuracies.
26601         * tests/test-strtod.c (main): Allow 1-ulp error on expected
26602         fractional results.  While not as nice from a QoI perspective, it
26603         is a quicker patch than correctly implementing decimal to binary
26604         rounding.
26605
26606 2008-03-31  Eric Blake  <ebb9@byu.net>
26607
26608         Guarantee a definition of NAN.
26609         * lib/math.in.h (NAN): Define if missing.
26610         * tests/test-math.c (main): Test it.
26611         * doc/posix-headers/math.texi (math.h): Document this.
26612         * lib/isnan.c (rpl_isnand): Use it.
26613         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
26614         * tests/test-floorf1.c (NaN): Likewise.
26615         * tests/test-frexp.c (NaN): Likewise.
26616         * tests/test-isnand.c (NaN): Likewise.
26617         * tests/test-isnanf.c (NaN): Likewise.
26618         * tests/test-round1.c (NaN): Likewise.
26619         * tests/test-roundf1.c (NaN): Likewise.
26620         * tests/test-snprintf-posix.h (NaN): Likewise.
26621         * tests/test-sprintf-posix.h (NaN): Likewise.
26622         * tests/test-trunc1.c (NaN): Likewise.
26623         * tests/test-truncf1.c (NaN): Likewise.
26624         * tests/test-vasnprintf-posix.c (NaN): Likewise.
26625         * tests/test-vasprintf-posix.c (NaN): Likewise.
26626         * modules/isnand-nolibm (Depends-on): Add math.
26627         * modules/isnanf-nolibm (Depends-on): Likewise.
26628         * modules/isnanl (Depends-on): Likewise.
26629         * modules/isnanl-nolibm (Depends-on): Likewise.
26630         * modules/snprintf-posix-tests (Depends-on): Likewise.
26631         * modules/sprintf-posix-tests (Depends-on): Likewise.
26632         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
26633         * modules/vsprintf-posix-tests (Depends-on): Likewise.
26634         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
26635         * modules/vasprintf-posix-tests (Depends-on): Likewise.
26636
26637 2008-03-31  Bruno Haible  <bruno@clisp.org>
26638
26639         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
26640         * doc/posix-functions/strtod.texi: Likewise.
26641
26642 2008-03-31  Bruno Haible  <bruno@clisp.org>
26643
26644         * tests/test-strtod.c (main): Don't use C99 syntax.
26645
26646 2008-03-31  Bruno Haible  <bruno@clisp.org>
26647
26648         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
26649         Reported by Eric Blake.
26650
26651 2008-03-31  Jim Meyering  <meyering@redhat.com>
26652
26653         Don't compare actual signbit return values.
26654         * tests/test-strtod.c (main): Rather, compare only their
26655         zero/non-zero nature.
26656
26657 2008-03-31  Eric Blake  <ebb9@byu.net>
26658
26659         More strtod documentation.
26660         * doc/posix-functions/strtod.texi (strtod): Interpret more test
26661         failures as distinct bugs.
26662
26663 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
26664
26665         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
26666         Problem reported by Erik Benada in
26667         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
26668
26669 2008-03-30  Bruno Haible  <bruno@clisp.org>
26670
26671         * tests/test-strtod.c: Add comments about which assertion fails on which
26672         platform.
26673         * doc/posix-functions/strtod.texi: Add info about many more platforms.
26674
26675 2008-03-30  Eric Blake  <ebb9@byu.net>
26676
26677         Test signbit behavior on zeros.
26678         * tests/test-signbit.c (test_signbitf): Add tests for zero.
26679         (test_signbitd, test_signbitl): Likewise.
26680
26681         More strtod touchups.
26682         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
26683         sign of negative underflow, for now.  Use .5, not .1.
26684         * doc/posix-functions/strtod.texi (strtod): Mention these
26685         limitations.
26686         Reported by Jim Meyering.
26687
26688 2008-03-30  Bruno Haible  <bruno@clisp.org>
26689
26690         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
26691         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
26692
26693 2008-03-30  Bruno Haible  <bruno@clisp.org>
26694
26695         Avoid failure when attempting to return empty iconv results on some
26696         platforms.
26697         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
26698         allocation, don't report ENOMEM when the resulting string is empty.
26699
26700 2008-03-30  Bruno Haible  <bruno@clisp.org>
26701
26702         Fix buffer overrun.
26703         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
26704         Don't consider the width for tmp_length. Check count against tmp_length
26705         before doing the padding. Ensure enough allocation during padding.
26706
26707 2008-03-30  Eric Blake  <ebb9@byu.net>
26708
26709         strtod touchups.
26710         * lib/strtod.c (strtod): Avoid compiler warnings.
26711         Reported by Jim Meyering.
26712
26713 2008-03-30  Bruno Haible  <bruno@clisp.org>
26714
26715         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
26716         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
26717         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
26718         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
26719         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
26720         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
26721         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
26722         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
26723
26724         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
26725         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
26726         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
26727         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
26728         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
26729         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
26730         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
26731         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
26732
26733         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
26734         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
26735         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
26736         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
26737         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
26738         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
26739         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
26740         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
26741
26742         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
26743         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
26744
26745         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
26746         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
26747
26748         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
26749         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
26750
26751         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
26752         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
26753         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
26754
26755         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
26756         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
26757         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
26758
26759         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
26760         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
26761         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
26762
26763         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
26764         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
26765         * modules/vasprintf (Depends-on): Add EOVERFLOW.
26766
26767         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
26768         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
26769         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
26770         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
26771         (Depends-on): Add EOVERFLOW.
26772         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
26773         (Depends-on): Add EOVERFLOW.
26774         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
26775         (Depends-on): Add EOVERFLOW.
26776         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
26777         (Depends-on): Add EOVERFLOW.
26778         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
26779         (Depends-on): Add EOVERFLOW.
26780         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
26781         (Depends-on): Add EOVERFLOW.
26782         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
26783         (Depends-on): Add EOVERFLOW.
26784         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
26785         (Depends-on): Add EOVERFLOW.
26786
26787         * lib/sprintf.c (EOVERFLOW): Remove fallback.
26788         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
26789         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
26790
26791         * lib/snprintf.c (EOVERFLOW): Remove fallback.
26792         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
26793         * modules/snprintf (Depends-on): Add EOVERFLOW.
26794
26795         * lib/poll.c (EOVERFLOW): Remove fallback.
26796         * modules/poll (Depends-on): Add EOVERFLOW.
26797
26798         * lib/getugroups.c (EOVERFLOW): Remove fallback.
26799         * modules/getugroups (Depends-on): Add EOVERFLOW.
26800
26801         * lib/getdelim.c (EOVERFLOW): Remove fallback.
26802         * modules/getdelim (Depends-on): Add EOVERFLOW.
26803
26804         * lib/ftell.c (EOVERFLOW): Remove fallback.
26805         * modules/ftell (Depends-on): Add EOVERFLOW.
26806
26807         * lib/fprintf.c (EOVERFLOW): Remove fallback.
26808         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
26809         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
26810
26811         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
26812
26813         * modules/EOVERFLOW-tests: New file.
26814         * tests/test-EOVERFLOW.c: New file.
26815
26816         * modules/EOVERFLOW: New file.
26817         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
26818
26819 2008-03-30  Bruno Haible  <bruno@clisp.org>
26820
26821         Fix bug introduced on 2007-06-10.
26822         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
26823         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
26824
26825 2008-03-30  Bruno Haible  <bruno@clisp.org>
26826
26827         Improve freadseek's efficiency after ungetc.
26828         * lib/freadseek.c: Include freadahead.h.
26829         (freadptrinc): New function, extracted from freadseek.
26830         (freadseek): Use it in a loop. Use freadahead to determine the number
26831         of loop iterations.
26832         * modules/freadseek (Depends-on): Add freadahead.
26833         (configure.ac): Require AC_C_INLINE.
26834
26835 2008-03-30  Bruno Haible  <bruno@clisp.org>
26836
26837         * lib/freadseek.c (freadseek): Don't ignore the return value of
26838         freadptr.
26839
26840 2008-03-29  Eric Blake  <ebb9@byu.net>
26841
26842         Add hex float support.
26843         * modules/strtod (Depends-on): Add c-ctype.
26844         (Link): Mention POW_LIB.
26845         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
26846         whitespace between 'e' and exponent.
26847         * tests/test-strtod.c (main): Enable hex float tests.
26848         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
26849         now provides.
26850
26851         Document various strtod bugs, with some fixes.
26852         * doc/posix-functions/strtod.texi (strtod): Document bugs with
26853         "-0x", "inf", "nan", and hex constants.
26854         * doc/posix-functions/atof.texi (atof): Likewise.
26855         * modules/stdlib (Makefile.am): Support strtod.
26856         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
26857         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
26858         detect additional strtod bugs.
26859         * lib/stdlib.in.h (rpl_strtod): Add declarations.
26860         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
26861         bool where appropriate.  Parse 'inf' and 'nan'.
26862         * tests/test-strtod.c: New file.
26863         * modules/strtod (Depends-on): Add stdbool, stdlib.
26864         (configure.ac): Turn on module indicator.
26865         * modules/strtod-tests: New module.
26866
26867 2008-03-29  Eric Blake  <ebb9@byu.net>
26868
26869         Fix ftell on mingw.
26870         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
26871         * modules/ftell-tests (Depends-on): Add binary-io.
26872         * modules/ftello-tests (Depends-on): Likewise.
26873         * tests/test-ftell.c (main): Enhance test to cover behavior after
26874         ungetc.  Enforce binary mode.
26875         * tests/test-ftello.c (main): Likewise.
26876
26877         Pass test-freadseek on cygwin.
26878         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
26879         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
26880         ungetc buffer.
26881
26882         * tests/test-fflush2.c (main): Fix typo.
26883
26884 2008-03-29  Bruno Haible  <bruno@clisp.org>
26885
26886         * tests/test-fflush2.c (main): Temporarily disable the contents of
26887         this test.
26888         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
26889         Reported by Eric Blake.
26890
26891 2008-03-28  Simon Josefsson  <simon@josefsson.org>
26892
26893         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
26894         (GC_SHA224_DIGEST_SIZE): Add.
26895
26896         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
26897         (gc_hash_digest_length): Likewise.
26898         (gc_hash_buffer): Likewise.
26899
26900 2008-03-25  Bruno Haible  <bruno@clisp.org>
26901
26902         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
26903         detail which gettext release to use.
26904         Reported by Simon Josefsson.
26905
26906 2008-03-26  Jim Meyering  <meyering@redhat.com>
26907
26908         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
26909         * modules/gnumakefile (clean-GNUmakefile): Also, use
26910         test ... && ... || : syntax rather than if-then ... fi.
26911
26912         gnumakefile: Don't double-quote-expand $(VPATH) value.
26913         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
26914
26915 2008-03-24  Eric Blake  <ebb9@byu.net>
26916
26917         Alter GNUmakefile to install into top directory.
26918         * modules/maintainer-makefile: Split, and add dependency...
26919         * modules/gnumakefile: to this new module.
26920         * build-aux/GNUmakefile: Move...
26921         * top/GNUmakefile: ...here.
26922         * build-aux/maint.mk: Move...
26923         * top/maint.mk: ...here.
26924         * MODULES.html.sh (Support for maintaining...): Document new
26925         module.
26926
26927 2008-03-23  Bruno Haible  <bruno@clisp.org>
26928
26929         * gnulib-tool: New options --vc-files, --no-vc-files.
26930         (func_usage): Document them.
26931         (vc_files): New variable.
26932         (func_import): Consider vc_files.
26933         (func_create_testdir): Set vc_files to empty.
26934         Suggested by Jim Meyering and Karl Berry.
26935
26936 2008-03-23  Bruno Haible  <bruno@clisp.org>
26937
26938         Fix regex compilation error on HP-UX 11.
26939         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
26940         * modules/regex (Files): Add m4/mbstate_t.m4.
26941         Reported by Ton Voon <ton.voon@altinity.com>.
26942
26943 2008-03-23  Bruno Haible  <bruno@clisp.org>
26944
26945         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
26946
26947 2008-03-23  Eric Blake  <ebb9@byu.net>
26948             Bruno Haible  <bruno@clisp.org>
26949
26950         Install files from top/ in the destination directory.
26951         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
26952         augmentation also for the files from top/.
26953         (func_import, func_create_testdir): Rewrite file names:
26954         top/filename -> filename.
26955
26956 2008-03-23  Bruno Haible  <bruno@clisp.org>
26957
26958         Tweak "gnulib --version" output.
26959         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
26960
26961 2008-03-23  Bruno Haible  <bruno@clisp.org>
26962
26963         Tweak "gnulib --version" output.
26964         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
26965         rather than contents of ChangeLog, when possible.
26966
26967 2008-03-21  Eric Blake  <ebb9@byu.net>
26968
26969         More --version tweaks.
26970         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
26971         date of last ChangeLog entry.
26972
26973 2008-03-21  Jim Meyering  <meyering@redhat.com>
26974
26975         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
26976
26977 2008-03-20  Eric Blake  <ebb9@byu.net>
26978
26979         VPATH fix.
26980         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
26981
26982 2008-03-20  Simon Josefsson  <simon@josefsson.org>
26983
26984         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
26985         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
26986
26987 2008-03-20  Eric Blake  <ebb9@byu.net>
26988
26989         Sync GNUmakefile with coreutils.
26990         * build-aux/GNUmakefile (have-Makefile): Rename...
26991         (_have-Makefile): ...to this, for namespace consideration.
26992         (GNUmakefile.cfg): Include, if present.
26993         (_autoreconf): Define a default.
26994         (_is-dist-target): New rule for rebuilds to pick up intra-release
26995         version.
26996         (maint-cfg.mk): Rename...
26997         (cfg.mk): ...to this.
26998
26999 2008-03-18  Jim Meyering  <meyering@redhat.com>
27000
27001         New script and module: mktempd
27002         * MODULES.html.sh (maint+release support): Add mktempd.
27003         * build-aux/mktempd: New file.
27004         * modules/mktempd: New file.
27005
27006 2008-03-15  Jim Meyering  <meyering@redhat.com>
27007
27008         Undo last change.
27009         * lib/sha1.c, lib/md5.c: 63 != ~63.
27010         Reported by Andreas Schwab.
27011
27012         sha1.c, md5.c: Hoist a redundant expression.
27013         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
27014         "ctx->buflen" only once, before calling *_process_block.
27015         * lib/md5.c (md5_process_bytes): Likewise.
27016
27017 2008-03-14  Eric Blake  <ebb9@byu.net>
27018
27019         Bump copyright year in files generated by gnulib-tool.
27020         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
27021         gnulib-tool, rather than hard-coding it.
27022
27023         Fix 'gnulib-tool --version' output to work with git.
27024         * gnulib-tool (func_gnulib_dir): New function, extracted from...
27025         (startup): ...here.
27026         (func_version): Use it to invoke git-version-gen, rather than
27027         relying on CVS keyword expansion.  Modernize wording.
27028         (cvsdatestamp, last_checkin_date, version): Kill unused
27029         variables.
27030
27031 2008-03-12  Jim Meyering  <meyering@redhat.com>
27032
27033         Recognize optional cast of the argument to free.
27034         * build-aux/useless-if-before-free: Update regexps.
27035
27036         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
27037
27038 2008-03-11  Bruno Haible  <bruno@clisp.org>
27039
27040         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
27041         by a single package.
27042         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
27043         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
27044         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
27045         Reported by Sam Steingold <sds@gnu.org>.
27046
27047 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
27048
27049         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
27050         repositories.
27051
27052 2008-03-11  Bruno Haible  <bruno@clisp.org>
27053
27054         Avoid conflicts between local macro definitions.
27055         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
27056         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
27057
27058 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
27059             Bruno Haible  <bruno@clisp.org>
27060
27061         Make va_copy work with some version of xlc on AIX 5.1.
27062         * lib/stdarg.in.h: New file.
27063         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
27064         On AIX, use a <stdarg.h> file substitute.
27065         * modules/stdarg (Files): Add lib/stdarg.in.h.
27066         (Depends-on): Add include_next.
27067         (Makefile.am): Build a stdarg.h substitute if requested.
27068         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
27069
27070 2008-03-10  Bruno Haible  <bruno@clisp.org>
27071
27072         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
27073         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
27074         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
27075
27076 2008-03-10  Bruno Haible  <bruno@clisp.org>
27077
27078         * modules/stdlib (Depends-on): Add include_next, remove
27079         absolute-header.
27080
27081 2008-03-09  Bruno Haible  <bruno@clisp.org>
27082
27083         * lib/freadahead.h (freadahead): Document more precisely.
27084         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
27085         the sum of both buffer sizes.
27086         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
27087         * NEWS: Document the change.
27088
27089 2008-03-09  Bruno Haible  <bruno@clisp.org>
27090
27091         Extend freadptr to return also the buffer size.
27092         * lib/freadptr.h (freadptr): Add sizep argument.
27093         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
27094         (freadptr): Add sizep argument. Determine buffer size like freadahead
27095         does.
27096         * tests/test-freadptr.c: Don't include freadahead.h.
27097         (main): Adapt for new calling convention of freadptr.
27098         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
27099         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
27100         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
27101         tests/test-freadptr2.sh.
27102         (Depends): Remove freadahead.
27103         (TESTS): Add test-freadptr2.sh.
27104         (check_PROGRAMS): Add test-freadptr2.
27105
27106 2008-03-09  Bruno Haible  <bruno@clisp.org>
27107
27108         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
27109         Report and solution by Simon Josefsson.
27110
27111 2008-03-06  Bruno Haible  <bruno@clisp.org>
27112
27113         Make fflush after ungetc work on BSD platforms.
27114         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
27115         * tests/test-fflush2.c: New file.
27116         * tests/test-fflush2.sh: New file.
27117         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
27118         tests/test-fflush2.c.
27119         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
27120         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
27121
27122 2008-03-06  Eric Blake  <ebb9@byu.net>
27123
27124         Likewise for ftello.
27125         * modules/ftello (Dependencies): Add extensions.
27126         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
27127
27128 2008-03-06  Bruno Haible  <bruno@clisp.org>
27129
27130         * modules/fseeko (Dependencies): Add extensions.
27131         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
27132         Needed on glibc systems.
27133
27134 2008-03-06  Bruno Haible  <bruno@clisp.org>
27135
27136         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
27137         email address.
27138         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27139
27140 2008-03-06  Bruno Haible  <bruno@clisp.org>
27141
27142         * users.txt: Add libgnupdf.
27143
27144 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27145
27146         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
27147         (Header File Substitutes, Function Substitutes,
27148         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
27149         (Build robot for gnulib): Fix typo.
27150
27151 2008-03-06  Bruno Haible  <bruno@clisp.org>
27152
27153         * doc/gnulib-tool.texi (VCS Issues): Small updates.
27154         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27155
27156 2008-03-06  Bruno Haible  <bruno@clisp.org>
27157
27158         * doc/func.texi: New file, extracted from doc/gnulib.texi.
27159         * doc/gnulib.texi: Include it.
27160
27161 2008-03-06  Simon Josefsson  <simon@josefsson.org>
27162
27163         * modules/func (License): Change license to unlimited; there was
27164         no LGPL parts in the module anyway.
27165
27166 2008-03-06  Simon Josefsson  <simon@josefsson.org>
27167
27168         * modules/__func__: Renamed to modules/func.
27169         * modules/__func__-tests: Renamed to modules/func-tests.
27170         * tests/test-__func__.c: Renamed to tests/test-func.c.
27171         * m4/__func__.m4: Renamed to m4/func.m4.
27172         * doc/gnulib.texi (__func__): Section renamed to func.
27173         Suggested by Eric Blake <ebb9@byu.net>.
27174
27175 2008-03-06  Simon Josefsson  <simon@josefsson.org>
27176
27177         * doc/gnulib.texi (__func__): Use C99 terminology when talking
27178         about __func__.  Make example self-contained.  Suggested by Eric
27179         Blake <ebb9@byu.net>.
27180
27181         * tests/test-__func__.c (main): Avoid extraneous () around __func.
27182         Suggested by Eric Blake <ebb9@byu.net>.
27183
27184 2008-03-06  Simon Josefsson  <simon@josefsson.org>
27185
27186         * modules/__func__: New file.
27187         * modules/__func__-tests: New file.
27188         * tests/test-__func__.c: New file.
27189         * m4/__func__.m4: New file.
27190         * doc/gnulib.texi (__func__): Document __func__ module.
27191
27192 2008-03-05  Simon Josefsson  <simon@josefsson.org>
27193
27194         * modules/byteswap (License): Re-license as LGPLv2+.
27195
27196 2008-03-05  Simon Josefsson  <simon@josefsson.org>
27197
27198         * doc/Makefile: Add pdf target.
27199
27200 2008-03-05  Simon Josefsson  <simon@josefsson.org>
27201
27202         * modules/inline (License): Use 'unlimited', since there are only
27203         *.m4 files in this module.
27204
27205 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
27206             Bruno Haible  <bruno@clisp.org>
27207
27208         Add support for HP C 7.1 on OpenVMS 8.3.
27209         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
27210
27211 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
27212
27213         Update VMS specifics.
27214         * lib/getopt.c [VMS]: Remove include of unixlib.h.
27215
27216 2008-03-02  Jim Meyering  <meyering@redhat.com>
27217
27218         Remove the last dependency on the "free" module.
27219         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
27220         Reported by Bob Proulx.
27221
27222         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
27223
27224         Remove useless "if" tests before free.  Deprecate "free" module.
27225         * doc/posix-functions/free.texi: Mention that this
27226         module is no longer useful.
27227         * modules/free (Notice): Say this module is obsolete.
27228         * modules/readutmp (Depends-on): Remove free.
27229         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
27230         * lib/putenv.c (putenv): Likewise.
27231         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
27232         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
27233         * tests/test-c-strcasestr.c (main): Likewise.
27234         * tests/test-c-strstr.c (main): Likewise.
27235         * tests/test-mbscasestr1.c (main): Likewise.
27236         * tests/test-mbscasestr2.c (main): Likewise.
27237         * tests/test-mbsstr1.c (main): Likewise.
27238         * tests/test-mbsstr2.c (main): Likewise.
27239         * tests/test-memmem.c (main): Likewise.
27240         * tests/test-strcasestr.c (main): Likewise.
27241         * tests/test-striconv.c (main): Likewise.
27242         * tests/test-striconveh.c (main): Likewise.
27243         * tests/test-striconveha.c (main): Likewise.
27244         * tests/test-strstr.c (main): Likewise.
27245
27246         * build-aux/git-version-gen: Adjust a comment and the Usage string.
27247
27248         bootstrap: sync from coreutils again
27249         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
27250
27251 2008-03-01  Jim Meyering  <meyering@redhat.com>
27252
27253         bootstrap: sync from coreutils
27254         * build-aux/bootstrap (update_po_files): Copy a .po file into place
27255         also when the target doesn't exist.
27256
27257 2008-03-01  Eric Blake  <ebb9@byu.net>
27258
27259         Fix bugs in last patch.
27260         * lib/memchr2.c (memchr2): Fix typo.
27261         * tests/test-memchr2.c: Test previous bug, and don't use GNU
27262         extension.
27263         Reported by Bruce Korb.
27264
27265         New module 'memchr2'.
27266         * modules/memchr2: New file.
27267         * modules/memchr2-tests: Likewise.
27268         * lib/memchr2.h: Likewise.
27269         * lib/memchr2.c: Likewise, based on memchr.c.
27270         * tests/test-memchr2.c: New test.
27271         * MODULES.html.sh (String handling): Add memchr2.
27272
27273 2008-02-29  Bruno Haible  <bruno@clisp.org>
27274
27275         * modules/freadseek-tests: New file.
27276         * tests/test-freadseek.sh: New file.
27277         * tests/test-freadseek.c: New file.
27278
27279         New module 'freadseek'.
27280         * modules/freadseek: New file.
27281         * lib/freadseek.h: New file.
27282         * lib/freadseek.c: New file.
27283         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
27284
27285 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
27286
27287         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
27288         wydawca.
27289
27290         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
27291         program_invocation_name and program_invocation_short_name are
27292         present.
27293
27294 2008-02-28  Bruno Haible  <bruno@clisp.org>
27295
27296         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
27297         * tests/test-freadptr.sh: Also test non-seekable stdin.
27298
27299 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
27300
27301         * build-aux/bootstrap (source_base, m4_base)
27302         (doc_base, tests_base): New variables.
27303         (gnulib_tool_options): Do not hardcode base directories, use
27304         the above variables instead.
27305
27306 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
27307
27308         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
27309
27310 2008-02-28  Bruno Haible  <bruno@clisp.org>
27311
27312         * modules/freadptr-tests: New file.
27313         * tests/test-freadptr.sh: New file.
27314         * tests/test-freadptr.c: New file.
27315
27316         New module 'freadptr'.
27317         * modules/freadptr: New file.
27318         * lib/freadptr.h: New file.
27319         * lib/freadptr.c: New file.
27320         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
27321
27322 2008-02-26  Karl Berry  <karl@freefriends.org>
27323
27324         Sync from Libtool:
27325         * libltdl/argz.c (argz_add, argz_count): New functions.
27326         * libltdl/argz.in.h: Declare them.
27327         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
27328
27329 2008-02-22  Bruno Haible  <bruno@clisp.org>
27330
27331         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
27332         is a pointer type.  Needed for HP-UX 10.
27333         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
27334         * doc/posix-functions/gmtime_r.texi: Likewise.
27335         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
27336
27337 2008-02-24  Bruno Haible  <bruno@clisp.org>
27338
27339         * modules/environ-tests: New file.
27340         * tests/test-environ.c: New file.
27341
27342         New module 'environ'.
27343         * modules/environ: New file.
27344         * lib/unistd.in.h (environ): New declaration.
27345         * m4/environ.m4: New file.
27346         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
27347         after use.
27348         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
27349         HAVE_DECL_ENVIRON.
27350         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
27351         HAVE_DECL_ENVIRON.
27352         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
27353         wrong claim that 'environ' is missing on some systems.
27354         * modules/execute (Depends-on): Add environ.
27355         * lib/execute.c (environ): Remove fallback declaration.
27356         * modules/pipe (Depends-on): Add environ.
27357         * lib/pipe.c (environ): Remove fallback declaration.
27358         * modules/setenv (Depends-on): Add environ.
27359         * lib/setenv.c (environ): Remove fallback declaration.
27360         * modules/unsetenv (Depends-on): Add environ.
27361         * lib/unsetenv.c (environ): Remove fallback declaration.
27362         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
27363         m4/environ.m4.
27364         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
27365         (gl_PREREQ_UNSETENV): Likewise.
27366
27367 2008-02-24  Bruno Haible  <bruno@clisp.org>
27368
27369         * doc/posix-functions/environ.texi: Document the MacOS X problem.
27370
27371 2008-02-20  Bob Proulx  <bob@proulx.com>
27372
27373         Enable use of older two part flavor 'git describe'.
27374         * build-aux/git-version-gen: If using the older two part flavor of
27375         git version then recreate the third part now present in the
27376         newer three part flavor of git describe.
27377
27378 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
27379
27380         * lib/fts.c (fts_build): Typo correction to comment.
27381
27382 2008-02-17  Bruno Haible  <bruno@clisp.org>
27383
27384         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
27385         generating no-op conflicts.
27386
27387 2008-02-17  Bruno Haible  <bruno@clisp.org>
27388
27389         Speed up by 10%.
27390         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
27391         result_entries, rather than an index-based loop.
27392
27393 2008-02-17  Bruno Haible  <bruno@clisp.org>
27394
27395         Speed up by 25%.
27396         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
27397         'hashcode_cached'.
27398         (entry_create): New function.
27399         (entry_hashcode): Use the cached hashcode if possible.
27400         (read_changelog_file, try_split_merged_entry): Use entry_create.
27401
27402 2008-02-17  Bruno Haible  <bruno@clisp.org>
27403
27404         Speed up from O(n^2) to O(n) for long ChangeLog files.
27405         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
27406         (read_changelog_file): Change implementation of entries_reversed list
27407         to rbtreehash.
27408         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
27409
27410 2008-02-17  Bruno Haible  <bruno@clisp.org>
27411
27412         New option --split-merged-entry.
27413         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
27414         (find_paragraph_end, try_split_merged_entry): New functions.
27415         (long_options): Add option --split-merged-entry.
27416         (usage): Document option --split-merged-entry.
27417         (main): Implement option --split-merged-entry.
27418         Reported by Eric Blake.
27419
27420 2008-02-17  Bruno Haible  <bruno@clisp.org>
27421
27422         * lib/git-merge-changelog.c: Include c-strstr.h.
27423         (main): Support the "git pull --rebase" situation.
27424         * modules/git-merge-changelog (Depends-on): Add c-strstr.
27425         Reported by Eric Blake.
27426
27427 2008-02-16  Eric Blake  <ebb9@byu.net>
27428
27429         Avoid doubling \ in common case of "c-maybe" quoting style.
27430         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
27431         eliding outer quotes.
27432         * lib/quotearg.h: Document this.
27433         * tests/test-quotearg.c (result_strings, inputs, results_g)
27434         (flag_results, locale_results): Test it by adding a new string to
27435         each test group.
27436         (compare_strings): Test new string.
27437
27438 2008-02-13  Eric Blake  <ebb9@byu.net>
27439
27440         Avoid trigraph quoting in default output.
27441         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
27442         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
27443         unless explicitly requested.
27444         * tests/test-quotearg.c (flag_results, main): Add additional tests.
27445
27446 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
27447
27448         Don't rely on signed integer overflowing to negative value.
27449         * lib/getugroups.c (getugroups): Include <limits.h>.
27450         Instead, compare against INT_MAX, and increment only if the test passes.
27451
27452 2008-02-13  Jim Meyering  <meyering@redhat.com>
27453         and Eric Blake  <ebb9@byu.net>
27454
27455         Avoid shadowing warning and compile errors on Linux.
27456         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
27457         forwarding macros on Linux.
27458         (dcgettext): Define a stub, for Linux.
27459         (results_g, main): Avoid warnings.
27460
27461 2008-02-12  Eric Blake  <ebb9@byu.net>
27462
27463         Silence warning in last patch.
27464         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
27465
27466         Quotearg part 4: add tests, fix c-maybe colon quoting.
27467         * lib/quotearg.h: Improve documentation.
27468         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
27469         escapes when adding outer quotes.  When quoting trigraphs, use
27470         valid C notation.  When quoting NUL, omit extra characters if next
27471         character is not digit.  Alter prototype.
27472         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
27473         callers.
27474         * modules/quotearg-tests: New module.
27475         * tests/test-quotearg.c: New test.
27476
27477 2008-02-07  Eric Blake  <ebb9@byu.net>
27478
27479         Quotearg part 3: add flag to control outer quote elision.
27480         * lib/quotearg.h (c_maybe_quoting_style): New style.
27481         (enum quoting_flags): Better documentation of flags.
27482         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
27483         c-maybe style.
27484         (quotearg_buffer_restyled): Handle new flag to elide outer
27485         quotes.
27486
27487         Quotearg part 2: add flag that can control NUL elision.
27488         * lib/quotearg.h (set_quoting_flags): New prototype.
27489         * lib/quotearg.c (struct quoting_options): Add flag field.
27490         (set_quoting_flags): New function.
27491         (quotearg_buffer_restyled): Add flags parameter.
27492         (quotearg_alloc_mem): Set the flag if length cannot be returned.
27493         (quotearg_n_options): Set the flag, since length cannot be
27494         returned.
27495         (quoting_options_from_style): Default flags correctly.
27496
27497         Quotearg part 1: more wrappers, restore quotearg_char state.
27498         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
27499         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
27500         (quotearg_colon_mem): New wrappers.
27501         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
27502         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
27503         functions.
27504         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
27505         (quotearg_colon_mem): New functions.
27506
27507 2008-02-11  Bruno Haible  <bruno@clisp.org>
27508
27509         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
27510         library in the current directory: it does not work with parallel make.
27511         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27512
27513 2008-02-11  Bruno Haible  <bruno@clisp.org>
27514
27515         * .gitattributes: New file.
27516
27517 2008-02-11  Jim Meyering  <meyering@redhat.com>
27518
27519         useless-if-before-free: Fix reversed exit values.
27520         * build-aux/useless-if-before-free: Use correct values
27521         for EXIT_MATCH and EXIT_NO_MATCH.
27522
27523         * build-aux/useless-if-before-free: Close stdout carefully.
27524
27525 2008-02-10  Bruno Haible  <bruno@clisp.org>
27526
27527         New module 'git-merge-changelog'.
27528         * modules/git-merge-changelog: New file.
27529         * lib/git-merge-changelog.c: New file.
27530
27531 2008-02-10  Jim Meyering  <meyering@redhat.com>
27532
27533         useless-if-before-free: New option: --list (-l).
27534
27535         useless-if-before-free: Don't exit immediately upon open failure.
27536         * build-aux/useless-if-before-free: Exit 2 for errors.
27537         Upon failure to open a file, don't exit immediately.
27538         Rather, just warn and continue with any remaining files.
27539
27540 2008-02-10  Bruno Haible  <bruno@clisp.org>
27541
27542         New abstract list operation 'node_set_value'.
27543         * lib/gl_list.h (gl_list_node_set_value): New function.
27544         (struct gl_list_implementation): New field node_set_value.
27545         * lib/gl_list.c (gl_list_node_set_value): New function.
27546         * lib/gl_array_list.c (gl_array_node_set_value): New function.
27547         (gl_array_list_implementation): Update.
27548         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
27549         (gl_carray_list_implementation): Update.
27550         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
27551         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
27552         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
27553         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
27554         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
27555         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
27556         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
27557         Update.
27558         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
27559         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
27560         (gl_sublist_list_implementation): Update.
27561
27562 2008-02-10  Bruno Haible  <bruno@clisp.org>
27563
27564         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
27565         Needed when ELEMENT is #defined to 'some_type *'.
27566
27567 2008-02-10  Jim Meyering  <meyering@redhat.com>
27568
27569         New script and module: useless-if-before-free
27570         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
27571         * build-aux/useless-if-before-free: New file.
27572         * modules/useless-if-before-free: New file.
27573
27574         * build-aux/gitlog-to-changelog: Use committer date, not author date.
27575
27576         xstrtol_error: Fix typo.
27577         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
27578         s/exit_failure/exit_status/.
27579
27580 2008-02-09  Jim Meyering  <meyering@redhat.com>
27581
27582         New script and module: gitlog-to-changelog
27583         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
27584         * modules/gitlog-to-changelog: New file.
27585         * build-aux/gitlog-to-changelog: New file.
27586
27587 2008-02-08  Jim Meyering  <meyering@redhat.com>
27588
27589         Avoid two "parameter unused" warnings.
27590         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
27591         Mark "st" as used.
27592
27593         Use "git COMMAND", not "git-COMMAND".
27594         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
27595         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
27596         * build-aux/git-version-gen: Use "git status", not "git-status".
27597
27598 2008-02-07  Bruno Haible  <bruno@clisp.org>
27599
27600         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
27601         Avoids a crash on Windows Vista.
27602         Reported by Adam Strzelecki <ono@java.pl> via
27603         Simon Josefsson <simon@josefsson.org>.
27604
27605 2008-02-06  Bruno Haible  <bruno@clisp.org>
27606
27607         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
27608         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
27609         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
27610         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
27611         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
27612         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
27613         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
27614         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
27615         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
27616         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
27617         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
27618         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
27619         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
27620         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
27621         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
27622         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
27623         left-adjust flag.
27624         * tests/test-snprintf-posix.h (test_function): Likewise.
27625         * tests/test-sprintf-posix.h (test_function): Likewise.
27626         * tests/test-vasprintf-posix.c (test_function): Likewise.
27627         * doc/posix-functions/fprintf.texi: Update.
27628         * doc/posix-functions/printf.texi: Update.
27629         * doc/posix-functions/snprintf.texi: Update.
27630         * doc/posix-functions/sprintf.texi: Update.
27631         * doc/posix-functions/vfprintf.texi: Update.
27632         * doc/posix-functions/vprintf.texi: Update.
27633         * doc/posix-functions/vsnprintf.texi: Update.
27634         * doc/posix-functions/vsprintf.texi: Update.
27635         Reported by Peter Fales <psfales@alcatel-lucent.com>.
27636
27637 2008-02-06  Bruno Haible  <bruno@clisp.org>
27638
27639         Fix bug introduced on 2008-01-26.
27640         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
27641
27642 2008-02-06  Bruno Haible  <bruno@clisp.org>
27643
27644         Fix bug introduced on 2007-06-10.
27645         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
27646         !NEED_PRINTF_FLAG_ZERO.
27647
27648 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
27649
27650         getloadavg: use libperfstat on AIX5
27651         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
27652
27653 2008-02-03  Bruno Haible  <bruno@clisp.org>
27654
27655         * lib/diffseq.h: Add comments about required #includes.
27656         Reported by Michael Biggs <gnulib@doubleplum.net>.
27657
27658 2008-02-01  Bruno Haible  <bruno@clisp.org>
27659
27660         * users.txt: Add gnuit.
27661
27662 2008-01-31  Bruno Haible  <bruno@clisp.org>
27663
27664         * lib/md4.c (set_uint32): Mark as inline.
27665         * lib/md5.c (set_uint32): Likewise.
27666         * lib/sha1.c (set_uint32): Likewise.
27667         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
27668         * m4/md5.m4 (gl_MD5): Likewise.
27669         * m4/sha1.m4 (gl_SHA1): Likewise.
27670
27671 2008-01-31  Jim Meyering  <meyering@redhat.com>
27672
27673         Use "sizeof VAR", rather than a literal "4".
27674         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
27675         * lib/md4.c (md4_read_ctx): Likewise.
27676         * lib/sha1.c (sha1_read_ctx): Likewise.
27677
27678 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27679
27680         * tests/test-sha1.c: New file, based on test-md5.c.
27681
27682         * modules/crypto/sha1-tests: New file.
27683
27684 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27685
27686         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
27687
27688 2008-01-31  Jim Meyering  <meyering@redhat.com>
27689
27690         Prefer "sizeof v" over the equivalent "4".
27691         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
27692         * lib/md5.c (set_uint32): Likewise.
27693         * lib/sha1.c (set_uint32): Likewise.
27694
27695 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27696
27697         * lib/sha1.c (set_uint32): Mark function as static.
27698
27699 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27700
27701         md2: clarify comments to say that alignment is not required.
27702         * lib/md2.h: Remove warning about alignment in comment.
27703         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
27704         never been required.
27705
27706 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27707
27708         md4: adapt alignment constraint fix from sha1.
27709         * lib/md4.c (set_uint32): New function, from sha1.c
27710         (md4_read_ctx): Use it.
27711         (md4_finish_ctx): Doc fix.
27712         * lib/md4.h: Doc fix.
27713
27714 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27715
27716         md5: adapt alignment constraint fix from sha1.
27717         * lib/md5.c (set_uint32): New function, from sha1.c
27718         (md5_read_ctx): Use it.
27719         (md5_finish_ctx): Doc fix.
27720         * lib/md5.h: Doc fix.
27721
27722 2008-01-30  Peter Palfrader  <weasel@debian.org>
27723
27724         sha1: remove the result buffer alignment constraint
27725         * lib/sha1.c (set_uint32): New function.
27726         (sha1_read_ctx): Rewrite to remove the result buffer alignment
27727         constraint.
27728         (sha1_finish_ctx): Remove comment warning about alignment constraint.
27729         * lib/sha1.h: Likewise.
27730
27731 2008-01-30  Andreas Schwab  <schwab@suse.de>
27732             Bruno Haible  <bruno@clisp.org>
27733
27734         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
27735         correct definition of LDBL_MIN_EXP.
27736
27737 2008-01-30  Karl Berry  <karl@gnu.org>
27738
27739         * config/srclist-update: try to preserve x bit on updates.
27740         * config/srclistvars.sh: update for karl.
27741
27742 2008-01-29  Jim Meyering  <meyering@redhat.com>
27743
27744         vasnprintf.c: Avoid warning about unused label
27745         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
27746         "overflow" label definition and associated code with the
27747         same cpp condition that guards the sole use of that label.
27748
27749 2008-01-26  Bruno Haible  <bruno@clisp.org>
27750
27751         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
27752         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
27753         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
27754         * lib/isnanl-nolibm.h (isnanl): Likewise.
27755         Reported by Paul Eggert <eggert@cs.ucla.edu>.
27756
27757 2008-01-26  Bruno Haible  <bruno@clisp.org>
27758
27759         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
27760         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
27761
27762 2008-01-26  Bruno Haible  <bruno@clisp.org>
27763
27764         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
27765         GCC >= 4.0 built-in.
27766         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
27767
27768 2008-01-26  Bruno Haible  <bruno@clisp.org>
27769
27770         Rename isnan, applicable to 'double' only, to isnand.
27771         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
27772         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
27773         (configure.ac): Update.
27774         (Include): Replace "isnan.h" with "isnand.h".
27775         * m4/isnand.m4: Renamed from m4/isnan.m4.
27776         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
27777         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
27778         instead of isnan.c.
27779         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
27780         instead of HAVE_ISNAN_IN_LIBC.
27781         (isnand): Renamed from isnan.
27782         * lib/isnand.c: New file.
27783         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
27784         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
27785         (Makefile.am): Update.
27786         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
27787         Include isnand.h instead of isnan.h.
27788         (main): Test isnand instead of isnan.
27789         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
27790         isnan-nolibm.
27791         * modules/frexp (Depends-on): Likewise.
27792         * modules/frexp-tests (Depends-on): Likewise.
27793         * modules/frexp-nolibm (Depends-on): Likewise.
27794         * modules/frexp-nolibm-tests (Depends-on): Likewise.
27795         * modules/isfinite (Depends-on): Likewise.
27796         * modules/round-tests (Depends-on): Likewise.
27797         * modules/signbit (Depends-on): Likewise.
27798         * modules/signbit-tests (Depends-on): Likewise.
27799         * modules/snprintf-posix (Depends-on): Likewise.
27800         * modules/sprintf-posix (Depends-on): Likewise.
27801         * modules/trunc-tests (Depends-on): Likewise.
27802         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27803         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27804         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27805         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27806         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27807         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27808         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27809         * modules/vasnprintf-posix (Depends-on): Likewise.
27810         * modules/vasprintf-posix (Depends-on): Likewise.
27811         * modules/vfprintf-posix (Depends-on): Likewise.
27812         * modules/vsnprintf-posix (Depends-on): Likewise.
27813         * modules/vsprintf-posix (Depends-on): Likewise.
27814         * lib/frexp.c: Include isnand.h instead of isnan.h.
27815         (ISNAN): Set to isnand instead of isnan.
27816         * lib/isfinite.c: Include isnand.h instead of isnan.h.
27817         (gl_isfinited): Use isnand instead of isnan.
27818         * lib/signbitd.c: Include isnand.h instead of isnan.h.
27819         (gl_signbitd): Use isnand instead of isnan.
27820         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
27821         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
27822         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
27823         (main): Use isnand instead of isnan.
27824         * tests/test-round1.c: Include isnand.h.
27825         (main): Use isnand instead of isnan.
27826         * tests/test-round2.c: Include isnand.h instead of isnan.h.
27827         (ISNAN): Set to isnand instead of isnan.
27828         * tests/test-trunc1.c: Include isnand.h.
27829         (main): Use isnand instead of isnan.
27830         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
27831         (equal): Use isnand instead of isnan.
27832         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
27833         isnand-nolibm.
27834         * NEWS: Mention the change.
27835
27836 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
27837             Bruno Haible  <bruno@clisp.org>
27838
27839         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
27840         the GCC builtins for signbits are present and set
27841         REPLACE_SIGNBIT_USING_GCC if so.
27842         * lib/math.in.h (signbit): Define using GCC builtins if
27843         REPLACE_SIGNBIT_USING_GCC is set.
27844         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
27845         REPLACE_SIGNBIT_USING_GCC.
27846         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
27847
27848 2008-01-25  Jim Meyering  <meyering@redhat.com>
27849
27850         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
27851         * lib/poll.c: Include <config.h>, not "config.h".
27852         * tests/test-getaddrinfo.c: Likewise.
27853
27854 2008-01-25  Simon Josefsson  <simon@josefsson.org>
27855
27856         * modules/sockets-tests: New file.
27857
27858 2008-01-24  Simon Josefsson  <simon@josefsson.org>
27859
27860         * modules/sockets: New module, can be used to call WSA_Startup and
27861         WSA_Cleanup when needed.
27862
27863         * lib/sockets.h, lib/sockets.c: New files.
27864
27865         * m4/sockets.m4: New file.
27866
27867         * tests/test-sockets.c: New file.
27868
27869 2008-01-19  Bruno Haible  <bruno@clisp.org>
27870
27871         * doc/posix-headers: Renamed from doc/headers.
27872         * doc/posix-functions: Renamed from doc/functions.
27873         * doc/gnulib.texi: Update.
27874
27875 2008-01-19  Bruno Haible  <bruno@clisp.org>
27876
27877         * doc/glibc-functions/strcasestr.texi: Include contents of
27878         doc/functions/strcasestr.texi, fixing the list of platforms.
27879         * doc/functions/strcasestr.texi: Remove file.
27880
27881 2008-01-19  Bruno Haible  <bruno@clisp.org>
27882
27883         * doc/glibc-functions/memmem.texi: Include contents of
27884         doc/functions/memmem.texi.
27885         * doc/functions/memmem.texi: Remove file.
27886
27887 2008-01-18  Bruno Haible  <bruno@clisp.org>
27888
27889         * doc/glibc-functions/*.texi: New files.
27890         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
27891         to use the new files.
27892
27893 2008-01-17  Bruno Haible  <bruno@clisp.org>
27894
27895         * tests/test-gethostname.c (main): Fix printf statement.
27896
27897 2008-01-17  Simon Josefsson  <simon@josefsson.org>
27898
27899         * modules/gethostname-tests: New file.
27900
27901         * tests/test-gethostname.c: New file.
27902
27903 2008-01-17  Simon Josefsson  <simon@josefsson.org>
27904
27905         * lib/gethostname.c: Include string.h unconditionally, strncpy is
27906         used by the UNAME case.  Reported by Bruno Haible
27907         <bruno@clisp.org>.
27908
27909 2008-01-17  Eric Blake  <ebb9@byu.net>
27910
27911         Convert c-strcasestr to be more efficient.
27912         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
27913         (Depends-on): Add c-strcase, remove malloca, strnlen.
27914         * tests/test-c-strcasestr.c (main): Enhance test.
27915         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
27916
27917 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
27918
27919         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
27920         Use it in creating po/Makevars.
27921
27922 2008-01-15  Simon Josefsson  <simon@josefsson.org>
27923
27924         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
27925         Applications that requires it should initialize libgcrypt
27926         manually.
27927
27928 2008-01-16  Simon Josefsson  <simon@josefsson.org>
27929
27930         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
27931
27932 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
27933
27934         Fix problem with getdate on mingw32 reported by Simon Josefsson
27935         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
27936         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
27937         tzname", when deciding whether to declare tzname.
27938         * lib/strftime.c (tzname): Likewise.
27939
27940 2008-01-15  Bruno Haible  <bruno@clisp.org>
27941
27942         Work around a MacOS X 10.5 bug in frexpl().
27943         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
27944         * doc/functions/frexpl.texi: Document the bug.
27945         Reported by Elias Pipping <pipping@gentoo.org>.
27946
27947 2008-01-14  Eric Blake  <ebb9@byu.net>
27948
27949         Touch up previous patch.
27950         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
27951         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
27952
27953         Convert strcasestr module to use Two-Way algorithm.
27954         * modules/strcasestr-simple: New module, based on the old
27955         strcasestr, but with Two-Way rather than KMP.
27956         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
27957         * lib/string.in.h (rpl_strcasestr): Declare.
27958         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
27959         performance.
27960         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
27961         * modules/string (Makefile.am): Support strcasestr.
27962         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
27963         * modules/strcasestr-tests (Depends-on): Check for alarm.
27964         * tests/test-strcasestr.c: Augment test.
27965         * lib/str-two-way.h: Clean up stray macro.
27966         * NEWS: Document new module.
27967         * MODULES.html.sh (string handling): Likewise.
27968         * doc/functions/strcasestr.texi: New file.
27969         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
27970         here, since it is not a POSIX function.
27971
27972 2008-01-14  Colin Watson  <cjwatson@debian.org>
27973             Bruno Haible  <bruno@clisp.org>
27974
27975         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
27976         works fine; if not, set REPLACE_STRSIGNAL.
27977         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
27978         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27979         REPLACE_STRSIGNAL.
27980         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
27981         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
27982         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
27983
27984 2008-01-14  Bruno Haible  <bruno@clisp.org>
27985
27986         * modules/strsignal (Include): Change to <string.h>.
27987
27988 2008-01-14  Colin Watson  <cjwatson@debian.org>
27989
27990         * modules/argp (Notice): Add a notice recommending to change
27991         XGETTEXT_OPTIONS.
27992         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
27993
27994 2008-01-13  Colin Watson  <cjwatson@debian.org>
27995
27996         * modules/strsignal-tests: New file.
27997         * tests/test-strsignal.c: New file.
27998
27999         * lib/strsignal.c: New file, from glibc with modifications.
28000         * lib/siglist.h: New file, from glibc with modifications.
28001         * lib/string.in.h (strsignal): New declaration.
28002         * m4/strsignal.m4: New file.
28003         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28004         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
28005         * modules/strsignal: New file.
28006         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
28007         HAVE_DECL_STRSIGNAL.
28008
28009 2008-01-13  Bruno Haible  <bruno@clisp.org>
28010
28011         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
28012         locale encoding is not ASCII. Needed for OpenBSD 4.0.
28013         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
28014         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
28015
28016 2008-01-13  Bruno Haible  <bruno@clisp.org>
28017
28018         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
28019         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
28020         * lib/argp.h (__attribute__): Likewise.
28021         * lib/c-stack.c (__attribute__): Likewise.
28022         * lib/error.h (__attribute__): Likewise.
28023         * lib/fts.c (__attribute__): Likewise.
28024         * lib/openat.h (__attribute__): Likewise.
28025         * lib/stdio.in.h (__attribute__): Likewise.
28026         * lib/string.in.h (__attribute__): Likewise.
28027         * lib/utimens.c (__attribute__): Likewise.
28028         * lib/vasnprintf.h (__attribute__): Likewise.
28029         * lib/xalloc.h (__attribute__): Likewise.
28030         * lib/xprintf.h (__attribute__): Likewise.
28031         * lib/xstrtol.h (__attribute__): Likewise.
28032         * lib/xvasprintf.h (__attribute__): Likewise.
28033
28034 2008-01-12  Bruno Haible  <bruno@clisp.org>
28035
28036         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
28037         * doc/glibc-headers/a.out.texi: New file.
28038         * doc/glibc-headers/aliases.texi: New file.
28039         * doc/glibc-headers/alloca.texi: New file.
28040         * doc/glibc-headers/ar.texi: New file.
28041         * doc/glibc-headers/argp.texi: New file.
28042         * doc/glibc-headers/argz.texi: New file.
28043         * doc/glibc-headers/byteswap.texi: New file.
28044         * doc/glibc-headers/crypt.texi: New file.
28045         * doc/glibc-headers/endian.texi: New file.
28046         * doc/glibc-headers/envz.texi: New file.
28047         * doc/glibc-headers/err.texi: New file.
28048         * doc/glibc-headers/error.texi: New file.
28049         * doc/glibc-headers/execinfo.texi: New file.
28050         * doc/glibc-headers/fpu_control.texi: New file.
28051         * doc/glibc-headers/fstab.texi: New file.
28052         * doc/glibc-headers/fts.texi: New file.
28053         * doc/glibc-headers/getopt.texi: New file.
28054         * doc/glibc-headers/ieee754.texi: New file.
28055         * doc/glibc-headers/ifaddrs.texi: New file.
28056         * doc/glibc-headers/libintl.texi: New file.
28057         * doc/glibc-headers/mcheck.texi: New file.
28058         * doc/glibc-headers/mntent.texi: New file.
28059         * doc/glibc-headers/obstack.texi: New file.
28060         * doc/glibc-headers/paths.texi: New file.
28061         * doc/glibc-headers/printf.texi: New file.
28062         * doc/glibc-headers/pty.texi: New file.
28063         * doc/glibc-headers/resolv.texi: New file.
28064         * doc/glibc-headers/shadow.texi: New file.
28065         * doc/glibc-headers/sysexits.texi: New file.
28066         * doc/glibc-headers/ttyent.texi: New file.
28067
28068 2008-01-12  Jim Meyering  <meyering@redhat.com>
28069
28070         announce-gen: emit Gnulib's git-based version string.
28071         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
28072         New option --gnulib-version=V, where V is expected to be
28073         the output of running git describe in the gnulib directory.
28074         (get_tool_versions): Request feedback on xdelta.  I suspect it's
28075         not useful, and plan to stop publishing an xdelta file with each
28076         coreutils release.
28077
28078         * build-aux/announce-gen: Also check for lzma-compressed files.
28079
28080 2008-01-11  Bruno Haible  <bruno@clisp.org>
28081
28082         * tests/test-memmem.c (main): Increase maximum allowed time.
28083         * tests/test-strstr.c (main): Likewise.
28084
28085 2008-01-11  Bruno Haible  <bruno@clisp.org>
28086
28087         * doc/functions/memmem.texi: Add more precisions about platforms.
28088         * doc/functions/strstr.texi: Likewise.
28089
28090 2008-01-10  Eric Blake  <ebb9@byu.net>
28091
28092         * m4/strstr.m4: Delete cruft from copy-n-paste.
28093         Reported by Bruno Haible.
28094
28095 2008-01-10  Bruno Haible  <bruno@clisp.org>
28096
28097         Make c-strstr rely on strstr.
28098         * lib/c-strstr.c: Don't include str-kmp.h.
28099         (c_strstr): Define in terms of strstr.
28100         * modules/c-strstr (Files): Remove lib/str-kmp.h.
28101         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
28102
28103 2008-01-10  Bruno Haible  <bruno@clisp.org>
28104
28105         * doc/gnulib.texi (String Functions in C Locale): New section.
28106         * doc/c-ctype.texi: New file.
28107         * doc/c-strcase.texi: New file.
28108         * doc/c-strcaseeq.texi: New file.
28109         * doc/c-strcasestr.texi: New file.
28110         * doc/c-strstr.texi: New file.
28111         * doc/c-strtod.texi: New file.
28112         * doc/c-strtold.texi: New file.
28113
28114 2008-01-10  Eric Blake  <ebb9@byu.net>
28115
28116         * lib/relocatable.h: Fix a comment.
28117
28118 2008-01-10  Eric Blake  <ebb9@byu.net>
28119
28120         Share two-way algorithm.
28121         * lib/str-two-way.h: New file, merged from...
28122         * lib/memmem.c: ...here...
28123         * lib/strstr.c: ...and here.
28124         * modules/memmem (Files): Use it.
28125         * modules/strstr (Files): Likewise.
28126
28127         Avoid quadratic strstr implementations.
28128         * lib/strstr.c: New file.
28129         * m4/strstr.m4: Likewise.
28130         * modules/strstr: Likewise.
28131         * modules/strstr-tests: Likewise.
28132         * tests/test-strstr.c: Likewise.
28133         * lib/string.in.h (rpl_strstr): Declare.
28134         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
28135         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
28136         * modules/string (Makefile.am): Likewise.
28137         * MODULES.html.sh (string handling): Mention new module.
28138         * doc/functions/strstr.texi (strstr): Document the bug.
28139
28140 2008-01-10  Bruno Haible  <bruno@clisp.org>
28141
28142         * lib/relocatable.h (relocate): State whether result is freshly
28143         allocated or not.
28144         * lib/relocatable.c (relocate): Return a freshly allocated string
28145         instead of a pointer to a privately held string.
28146         Reported by Sylvain Beucler <beuc@gnu.org>.
28147
28148 2008-01-10  Colin Watson  <cjwatson@debian.org>
28149
28150         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
28151         s/S_ISNLK/S_ISLNK/.
28152
28153 2008-01-09  Bruno Haible  <bruno@clisp.org>
28154
28155         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
28156         and other files.
28157         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
28158         if it's only a guess.
28159         * modules/memmem: Simplify by depending on memmem-simple.
28160
28161 2008-01-09  Bruno Haible  <bruno@clisp.org>
28162
28163         Work around OpenBSD 4.0 tdelete() bug.
28164         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
28165         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
28166         macros and don't redefine the enum values.
28167         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
28168         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
28169         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
28170
28171 2008-01-09  Bruno Haible  <bruno@clisp.org>
28172
28173         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
28174         (main): Don't perform the tests if setlocale did not install a UTF-8
28175         locale. Needed on OpenBSD 4.0.
28176         * modules/wcwidth-tests (Depends-on): Add localcharset.
28177
28178 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
28179
28180         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
28181         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
28182         * NEWS: announce this.
28183         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
28184
28185 2008-01-09  Simon Josefsson  <simon@josefsson.org>
28186         and Eric Blake  <ebb9@byu.net>
28187
28188         Add memmem-simple module.
28189         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
28190         (gl_FUNC_MEMMEM): Separate performance from presence checks.
28191         * modules/memmem-simple: New file.
28192         * modules/memmem (Description): Tweak.
28193         * MODULES.html.sh (string handling): Mention new module.
28194         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
28195         addressed by memmem-simple.
28196         * NEWS: Document the difference.
28197
28198 2008-01-09  Eric Blake  <ebb9@byu.net>
28199
28200         Give gcc some memmem optimization hints.
28201         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
28202         (strcasestr): Declare as pure.
28203         * modules/memmem (Maintainer): Claim my implementation.
28204
28205 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28206
28207         Support AIX 6.1 and higher.
28208         * build-aux/config.libpath: Likewise.
28209         * build-aux/config.rpath: Likewise.
28210
28211 2008-01-08  Jim Meyering  <meyering@redhat.com>
28212             Bruno Haible  <bruno@clisp.org>
28213
28214         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
28215         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
28216         Reported by Peter Fales in
28217         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
28218
28219 2008-01-08  Bruno Haible  <bruno@clisp.org>
28220
28221         * modules/unictype/category-of (Depends-on): Add
28222         unictype/category-none.
28223         * modules/unictype/category-and-tests (Depends-on): Add
28224         unictype/category-{L,N,Lu,Nd}.
28225         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
28226         * modules/unictype/category-or-tests (Depends-on): Add
28227         unictype/category-{L,N}.
28228         * modules/unictype/category-name-tests (Depends-on): Add
28229         unictype/category-{Z,Nl}.
28230         Reported by Simon Josefsson.
28231
28232 2008-01-08  Bruno Haible  <bruno@clisp.org>
28233
28234         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
28235         convention better.
28236         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
28237         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
28238         Reported by Peter Miller <millerp@canb.auug.org.au>.
28239
28240 2008-01-08  Eric Blake  <ebb9@byu.net>
28241
28242         Rewrite memmem to guarantee linear complexity without malloc.
28243         * lib/memmem.c (memmem): Use Two-Way rather than
28244         Knuth-Morris-Pratt, to allow O(1) space usage.
28245         (critical_factorization, two_way_short_needle)
28246         (two_way_long_needle): New functions.
28247         (knuth_morris_pratt): Delete.
28248         * modules/memmem (Depends-on): No longer need malloca or stdbool.
28249         Add stdint.
28250         * tests/test-memmem.c (main): Add tests for periodic needle and
28251         sublinear performance.
28252         * doc/functions/memmem.texi (memmem): Document other deficiencies
28253         in cygwin and older glibc.
28254
28255 2008-01-08  Bruno Haible  <bruno@clisp.org>
28256
28257         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
28258         augmentation.
28259
28260 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
28261
28262         Add a configure time option: --disable-acl.
28263         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
28264         AC_ARG_ENABLE(acl).
28265
28266 2008-01-06  Simon Josefsson  <simon@josefsson.org>
28267
28268         * tests/test-localename.c: Don't include obsolete "setenv.h".
28269
28270         * modules/localename-tests (Depends-on): Need unsetenv.
28271
28272 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28273
28274         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
28275
28276 2008-01-06  Colin Watson  <cjwatson@debian.org>
28277
28278         * users.txt: Add man-db.
28279
28280 2008-01-07  Bruno Haible  <bruno@clisp.org>
28281
28282         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
28283         previous section name.
28284
28285 2008-01-07  Bruno Haible  <bruno@clisp.org>
28286
28287         * lib/progname.c (set_program_name): Don't strip off a leading
28288         "lt-" prefix outside a .libs directory.
28289         Suggested by Paul Eggert.
28290
28291 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
28292             Bruno Haible  <bruno@clisp.org>
28293
28294         Improve memory cleanup in 'relocatable' module.
28295         * lib/relocatable.h (compute_curr_prefix): Change return type to
28296         'char *'.
28297         * lib/relocatable.c (compute_curr_prefix): Change return type to
28298         'char *'. Free curr_installdir after use.
28299         (relocate): Free curr_prefix_better after use.
28300         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
28301
28302 2008-01-01  Bruno Haible  <bruno@clisp.org>
28303
28304         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
28305         failure on older glibc systems.
28306         Reported by Peter Fales <psfales@alcatel-lucent.com>.
28307
28308 2008-01-05  Eric Blake  <ebb9@byu.net>
28309
28310         Avoid quadratic system memmem.
28311         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
28312         Reported by Ralf Wildenhues.
28313
28314         Fix memmem test for mingw.
28315         * modules/memmem-tests (configure.ac): Check for alarm.
28316         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
28317         it.
28318         * doc/functions/memmem.texi: New file.
28319         * doc/gnulib.texi (Function Substitutes): Add memmem.
28320         Reported by Bruno Haible.
28321
28322 2008-01-04  Bruno Haible  <bruno@clisp.org>
28323
28324         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
28325         Require gl_HEADER_STRINGS_H_DEFAULTS, not
28326         gl_HEADER_STRING_H_DEFAULTS.
28327
28328 2008-01-04  Eric Blake  <ebb9@byu.net>
28329
28330         Shorten duration of memmem test.
28331         * tests/test-memmem.c (main): Use alarm to declare failure if test
28332         is taking too long.
28333         Reported by Ralf Wildenhues.
28334
28335 2007-12-21  Simon Josefsson  <simon@josefsson.org>
28336
28337         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
28338         string, needed by strerror.
28339
28340 2008-01-03  Colin Watson  <cjwatson@debian.org>
28341             Bruno Haible  <bruno@clisp.org>
28342
28343         * doc/gnulib-tool.texi (Localization): New section.
28344
28345 2008-01-02  Bruno Haible  <bruno@clisp.org>
28346
28347         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
28348         variables to 'unsigned char *' type.
28349         Reported by Paul Eggert.
28350
28351 2008-01-02  Jim Meyering  <jim@meyering.net>
28352
28353         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
28354
28355 2007-12-31  Jim Meyering  <jim@meyering.net>
28356
28357         Avoid use of private FTS type name.
28358         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
28359
28360 2007-12-30  Karl Berry  <karl@gnu.org>
28361
28362         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
28363         work around defect in Texinfo and/or the standalone Info browser.
28364
28365 2007-12-30  Bruno Haible  <bruno@clisp.org>
28366
28367         Unify 5 copies of the KMP code.
28368         * lib/str-kmp.h: New file.
28369         * lib/c-strcasestr.c: Include str-kmp.h.
28370         (knuth_morris_pratt): Remove function.
28371         (c_strcasestr): Update.
28372         * lib/c-strstr.c: Include str-kmp.h.
28373         (knuth_morris_pratt): Remove function.
28374         (c_strcasestr): Update.
28375         * lib/mbscasestr.c: Include str-kmp.h.
28376         (knuth_morris_pratt_unibyte): Remove function.
28377         * lib/mbsstr.c: Include str-kmp.h.
28378         (knuth_morris_pratt_unibyte): Remove function.
28379         * lib/strcasestr.c: Include str-kmp.h.
28380         (knuth_morris_pratt): Remove function.
28381         (strcasestr): Update.
28382         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
28383         * modules/c-strstr (Files): Likewise.
28384         * modules/mbscasestr (Files): Likewise.
28385         * modules/mbsstr (Files): Likewise.
28386         * modules/strcasestr (Files): Likewise.
28387         Suggested by Paul Eggert.
28388
28389 2007-12-30  Bruno Haible  <bruno@clisp.org>
28390
28391         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
28392         defined.
28393
28394 2007-12-30  Bruno Haible  <bruno@clisp.org>
28395
28396         * lib/xmalloca.h: Include xalloc.h.
28397         (xnmalloca): New macro.
28398
28399 2007-12-30  Bruno Haible  <bruno@clisp.org>
28400
28401         * lib/malloca.h (nmalloca): New macro.
28402         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
28403         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
28404         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
28405         knuth_morris_pratt_multibyte): Likewise.
28406         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
28407         knuth_morris_pratt_multibyte): Likewise.
28408         * lib/memmem.c (knuth_morris_pratt): Likewise.
28409         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
28410
28411 2007-12-25  Bruno Haible  <bruno@clisp.org>
28412
28413         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
28414         * lib/glob.c: Don't include openat.h.
28415         (link_exists2_p): Add back the code that deals with the
28416         !GLOB_ALTDIRFUNC case.
28417         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
28418         let it do the filename concatenation.
28419         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
28420         * modules/glob (Depends-on): Remove openat.
28421
28422 2007-12-31  Bruno Haible  <bruno@clisp.org>
28423
28424         * modules/dirfd (License): Change to LGPLv2+.
28425         Approved by Jim Meyering.
28426
28427 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
28428
28429         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
28430         when multiplying M by sizeof (size_t).
28431
28432 2007-12-10  Martin Lambers  <marlam@marlam.de>
28433
28434         Override getpagesize on mingw.
28435         * lib/getpagesize.c: New file.
28436         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
28437         * modules/getpagesize (Files): Add lib/getpagesize.c.
28438         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
28439         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28440         REPLACE_GETPAGESIZE.
28441         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
28442
28443 2007-12-25  Bruno Haible  <bruno@clisp.org>
28444
28445         * modules/localcharset (Notice): New field.
28446         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
28447         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
28448
28449 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
28450             Bruno Haible  <bruno@clisp.org>
28451
28452         Avoid using the syntax symbol() in formatted documentation.
28453         * MODULES.html.sh (func_module): When replacing symbol() with a
28454         hyperlink, remove the parentheses. Show an error if some remain.
28455         Recognize and render the '...' syntax.
28456         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
28457         Rework. Add paragraph about GCC's inlining.
28458         * doc/alloca.texi: Likewise.
28459         * doc/error.texi: Remove parentheses from symbol reference.
28460         * doc/gnulib-intro.texi: Likewise.
28461         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
28462         * modules/fnmatch (Description): Reword to say "the ... function".
28463         * modules/full-read (Description): Likewise.
28464         * modules/full-write (Description): Likewise.
28465         * modules/safe-read (Description): Likewise.
28466         * modules/safe-write (Description): Likewise.
28467         * modules/strchrnul (Description): Likewise.
28468         * modules/trim (Description): Likewise.
28469         * modules/error (Description): Remove parentheses from symbol
28470         references.
28471         * modules/verror (Description): Likewise.
28472         Reported by Karl Berry.
28473
28474 2007-12-25  Bruno Haible  <bruno@clisp.org>
28475
28476         Fixup after 2007-10-16 commit.
28477         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
28478
28479 2007-12-24  Bruno Haible  <bruno@clisp.org>
28480
28481         Make --enable-relocatable work with DESTDIR.
28482         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
28483         to compute installdir from destprog.
28484         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
28485         also set the RELOC_DESTDIR variable.
28486         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
28487
28488 2007-12-24  Bruno Haible  <bruno@clisp.org>
28489
28490         Fix link error due to xalloc_die().
28491         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
28492         of xreadlink.
28493         * lib/relocwrapper.c: Update comments.
28494         * build-aux/install-reloc: Remove xreadlink.c from file list.
28495         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
28496         xreadlink.c.
28497         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
28498
28499 2007-12-24  Bruno Haible  <bruno@clisp.org>
28500
28501         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
28502         * lib/setenv.h: Remove file.
28503         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
28504         lib/setenv.h.
28505         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
28506         (Depends-on): Add stdlib.
28507         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
28508         gl_FUNC_UNSETENV.
28509         (Include): Replace setenv.h with <stdlib.h>.
28510         * modules/unsetenv: New file.
28511         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
28512         * lib/unsetenv.c: Include <stdlib.h> first.
28513         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
28514         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
28515         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
28516         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
28517         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
28518         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
28519         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
28520         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
28521         * doc/functions/unsetenv.texi: Update.
28522         * modules/xsetenv (Depends-on): Add unsetenv.
28523         * modules/getdate (Depends-on): Likewise.
28524         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
28525         * lib/xsetenv.c: Don't include setenv.h.
28526         * lib/getdate.y: Likewise.
28527         * lib/relocwrapper.c: Likewise.
28528         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
28529         (Depends-on): Add stdlib.
28530         * NEWS: Mention the changes.
28531         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
28532
28533 2007-12-23  Bruno Haible  <bruno@clisp.org>
28534
28535         * lib/memmem.c (memmem): Use lowercase variable names. Tab
28536         indentation.
28537
28538 2007-12-23  Bruno Haible  <bruno@clisp.org>
28539
28540         * lib/c-strcasestr.c: Add more comments.
28541         * lib/c-strstr.c: Likewise.
28542         * lib/mbscasestr.c: Likewise.
28543         * lib/mbsstr.c: Likewise.
28544         * lib/strcasestr.c: Likewise.
28545         * lib/memmem.c: Likewise.
28546
28547 2007-12-23  Bruno Haible  <bruno@clisp.org>
28548
28549         * tests/test-memmem.c: Include <string.h> first.
28550
28551 2007-12-22  Bruno Haible  <bruno@clisp.org>
28552
28553         * gnulib-tool (func_create_testdir): Change $auxdir while generating
28554         the contents of $testsbase.
28555         Reported by Ralf Wildenhues.
28556
28557 2007-12-22  Bruno Haible  <bruno@clisp.org>
28558
28559         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
28560         two variables local_ldadd_before, local_ldadd_last.
28561
28562 2007-12-20  Eric Blake  <ebb9@byu.net>
28563
28564         Work around circular library issue when cross-compiling.
28565         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
28566         that progname.o does not need to pull in rpl_memcmp.
28567
28568 2007-12-19  Eric Blake  <ebb9@byu.net>
28569
28570         Fix memmem to avoid O(n^2) worst-case complexity.
28571         * lib/memmem.c (knuth_morris_pratt): New function.
28572         (memmem): Use it if first few naive iterations fail.
28573         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
28574         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
28575         * modules/memchr (License): Likewise.
28576         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
28577         malloca.
28578         * tests/test-memmem.c: Rewrite, borrowing ideas from
28579         test-mbsstr1.c; the old version wouldn't even compile!
28580         * modules/memmem-tests: New file.
28581         * lib/string.in.h (rpl_memmem): Add declaration.
28582         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
28583         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
28584         REPLACE_MEMMEM.
28585
28586 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
28587
28588         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
28589         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
28590         before any system include files, and undef after them all.  This
28591         should fix a problem on VMS reported by John E. Malmberg in
28592         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
28593
28594 2007-12-17  Eric Blake  <ebb9@byu.net>
28595
28596         Revert addition of verify, for BSD/OS.
28597         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
28598         can't handle large files, for the sake of obsolete platforms.
28599         * modules/fseeko (Depends-on): Remove verify.
28600         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
28601         * doc/functions/ftello.texi (ftello): Likewise.
28602         * doc/functions/fgetpos.texi (fgetpos): Likewise.
28603         Reported by Larry Jones.
28604
28605 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
28606
28607         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
28608         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
28609
28610 2007-12-17  Jim Meyering  <meyering@redhat.com>
28611
28612         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
28613         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
28614         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
28615         * modules/getcwd (Depends-on): Add openat.
28616         Reported by Petr Salinger.
28617
28618 2007-12-17  Bruno Haible  <bruno@clisp.org>
28619
28620         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
28621         avoid a segmentation fault of the configure test on x86_64 systems.
28622
28623 2007-12-15  Jim Meyering  <meyering@redhat.com>
28624
28625         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
28626
28627 2007-12-13  Eric Blake  <ebb9@byu.net>
28628
28629         Another fseek test.
28630         * tests/test-fseek.c (main): Also test ungetc handling.
28631         * tests/test-fseeko.c (main): Likewise.
28632         * modules/fseeko (Depends-on): Add verify.
28633         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
28634         large.
28635         Reported by Larry Jones.
28636
28637         Fix fseeko on mingw.
28638         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
28639         seek.
28640
28641         Beef up fseek tests.
28642         * tests/test-fseek.c (main): Also test eof handling.
28643         * tests/test-fseeko.c (main): Likewise.
28644         Reported by Larry Jones.
28645
28646 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
28647
28648         Fix fseeko on BSD-based platforms.
28649         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
28650         successful seek.
28651
28652 2007-12-12  Eric Blake  <ebb9@byu.net>
28653
28654         Allow circular dependency of separate libtests.a
28655         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
28656         when use_libtests.
28657
28658 2007-12-11  Eric Blake  <ebb9@byu.net>
28659
28660         Fix bug with -0.0L in previous patch.
28661         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
28662         * tests/test-isnan.c (main): Also test on zeroes.
28663         * tests/test-isnanf.c (main): Likewise.
28664         * tests/test-isnanl.h (main): Likewise.
28665
28666         Detect pseudo-denormals on x86 even when cross-compiling.
28667         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
28668         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
28669         invalid bit patterns that happen to satisfy ==.
28670
28671         Avoid link failures with separate libtests.a.
28672         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
28673         last, to satisfy circular dependencies.
28674
28675 2007-12-11  Eric Blake  <ebb9@byu.net>
28676         and Bruno Haible  <bruno@clisp.org>
28677
28678         Fix OpenBSD 4.0 <float.h> handling of long double.
28679         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
28680         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
28681         * doc/headers/float.texi (float.h): Document OpenBSD bug.
28682
28683 2007-12-11  Jim Meyering  <meyering@redhat.com>
28684
28685         * users.txt: Add libvirt.
28686
28687         Support versions of autoconf prior to 2.59c.
28688         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
28689         if it is not already defined.
28690
28691 2007-12-09  Bruno Haible  <bruno@clisp.org>
28692
28693         Let 'gnulib-tool --import' collect sources needed for the tests in
28694         tests/ rather than in lib/.
28695         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
28696         argument. If true, add rules to generate libtests.a, and put libtests.a
28697         into $(LDADD). Consider source files in subdirectories and set
28698         uses_subdirs.
28699         (func_emit_initmacro_start, func_emit_initmacro_end,
28700         func_emit_initmacro_done): Pass all arguments explicitly.
28701         (func_import): Determine two module lists main_modules,
28702         testsrelated_modules. Determine use_libtests. Determine two variables
28703         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
28704         instead of just sed_transform_lib_file. Determine two variables
28705         main_files and testsrelated_files. Compute 'files' as the union of
28706         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
28707         func_add_or_update. In the generated gnulib-comp.m4, collect the
28708         object files for tests/ in different variables than those for lib/.
28709         Substitute LIBTESTS_LIBDEPS.
28710         (func_create_testdir): Combine the uses_subdirs results from
28711         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
28712
28713 2007-12-09  Bruno Haible  <bruno@clisp.org>
28714
28715         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
28716         the build-aux directory.
28717
28718 2007-12-09  Bruno Haible  <bruno@clisp.org>
28719
28720         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
28721         introduced on 2006-09-09.
28722
28723 2007-12-07  Jim Meyering  <meyering@redhat.com>
28724
28725         Let these macros work also with autoconf-2.59.
28726         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
28727         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
28728         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
28729
28730 2007-12-06  Jim Meyering  <meyering@redhat.com>
28731
28732         Avoid a configure-time syntax error in gl_FUNC_ACL.
28733         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
28734         function in each branch, before testing the cache variable.
28735
28736 2007-12-04  Eric Blake  <ebb9@byu.net>
28737
28738         Make scripts executable.
28739         * build-aux/config.guess: Add execute permissions.
28740         * build-aux/config.sub: Likewise.
28741         * build-aux/gendocs.sh: Likewise.
28742
28743         Fix frexp on mingw.
28744         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
28745         cross-compiling.
28746         * doc/functions/frexp.texi (frexp): Document the bug.
28747
28748         Make cygwin fseeko check more reliable.
28749         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
28750         version numbers, rather than unrelated feature check.
28751         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
28752         * doc/functions/ftello.texi (ftello): Likewise.
28753         Reported by Bruno Haible.
28754
28755         * m4/strerror.m4: Bump version number.
28756
28757 2007-12-03  Bruno Haible  <bruno@clisp.org>
28758
28759         * doc/functions/mprotect.texi: Mention the mingw problem.
28760
28761 2007-12-03  Eric Blake  <ebb9@byu.net>
28762
28763         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
28764         REPLACE_STRERROR is initialized before this macro.
28765
28766 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
28767
28768         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
28769         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
28770         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
28771         put -lsec in even for programs other than 'ls'.  This fixes a problem
28772         for gettext reported by Bruno Haible in
28773         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
28774         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
28775         Add support for Solaris 10.  This isn't efficient, but should get the
28776         job done for now.
28777
28778 2007-12-03  James Youngman  <jay@gnu.org>
28779
28780         * doc/regexprops-generic.texi: change "an close-group" to "a
28781         close-group" and "illegal" to "not allowed".
28782
28783 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28784
28785         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
28786         pr_byname.h. Needed for the rare case when the maintainer has done
28787         "make maintainer-clean" in the source directory and then attempts a
28788         build outside the source directory.
28789         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
28790         scripts_byname.h.
28791
28792 2007-12-02  Martin Lambers <marlam@marlam.de>
28793             Bruno Haible  <bruno@clisp.org>
28794
28795         * lib/getpagesize.h: Remove file.
28796         * lib/unistd.in.h: Include declaration of getpagesize here.
28797         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
28798         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
28799         HAVE_SYS_PARAM_H.
28800         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
28801         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
28802         * modules/getpagesize (Files): Remove lib/getpagesize.h.
28803         (Depends-on): Add unistd.
28804         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28805         (Include): Use <unistd.h> instead of getpagesize.h.
28806         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
28807         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
28808         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
28809         gl_GETPAGESIZE invocation, already handled by module dependency.
28810         * lib/pagealign_alloc.c: Don't include getpagesize.h.
28811
28812 2007-12-02  Bruno Haible  <bruno@clisp.org>
28813
28814         * modules/strings-tests: New file.
28815         * tests/test-strings.c: New file.
28816
28817         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
28818         * lib/strings.in.h: New file.
28819         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
28820         * m4/strings_h.m4: New file.
28821         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
28822         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
28823         * modules/strings: New file.
28824         * modules/string (Makefile.am): Update.
28825         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
28826         Reported by Karl Berry.
28827
28828 2007-12-01  Eric Blake  <ebb9@byu.net>
28829
28830         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
28831         accomodate fix in cygwin 1.5.25.
28832
28833 2007-12-01  Jim Meyering  <meyering@redhat.com>
28834
28835         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
28836         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
28837         that would inhibit utf8-optimization of a regexp containing line-
28838         or buffer-anchors, e.g., `^', `$'.
28839
28840 2007-11-30  Bruno Haible  <bruno@clisp.org>
28841
28842         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
28843         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
28844         glthread_recursive_lock_init.
28845         * lib/lock.c (glthread_recursive_lock_init)
28846         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
28847         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28848
28849 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
28850
28851         New function qset_acl, like set_acl but with syscall semantics.
28852         * lib/acl.h (qset_acl): New decl.
28853         * lib/acl.c (qset_acl): New function.
28854         (set_acl): Use new function.  Use more-consistent diagnostics.
28855
28856 2007-11-28  Jim Meyering  <meyering@redhat.com>
28857
28858         * modules/physmem (License): Change from GPL to LGPLv2+.
28859
28860 2007-11-26  Bruno Haible  <bruno@clisp.org>
28861
28862         * lib/vasnprintf.c (decode_long_double): Don't abort if the
28863         'long double' type has excess precision.
28864         Reported by Jim Meyering in
28865         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
28866
28867 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28868
28869         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
28870         Sync from <http://gnu.org/licenses>.
28871         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
28872         with license text from same location.
28873         * doc/maintain.texi, doc/standards.texi:  Sync from
28874         <http://savannah.gnu.org/projects/gnustandards>.
28875
28876 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
28877         and Jim Meyering  <meyering@redhat.com>
28878
28879         Adjust getdate' grammar to accept a slightly more regular language.
28880         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
28881         Before, the former was rejected.
28882         * lib/getdate.y (digits_to_date_time): New function, factored
28883         out of ...
28884         (number): ...here.  Just call digits_to_date_time.
28885         (hybrid): New non-terminal to handle an <unsigned number,
28886         signed relative offset> sequence consistently.
28887
28888 2007-11-18  Jim Meyering  <meyering@redhat.com>
28889
28890         Pull my changes from coreutils:
28891         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
28892         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
28893         use of $gnulib_tool_option_extras, so that it's separated from the
28894         preceding argument.
28895
28896         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
28897         * build-aux/bootstrap (cp_mark_as_generated): Create any required
28898         parent destination directories before copying a file into place.
28899
28900 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
28901
28902         bootstrap: work also with 4-argument variant of AC_INIT
28903         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
28904
28905 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
28906
28907         Port test-getaddrinfo to Solaris.
28908         Problem reported by Bruno Haible in
28909         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
28910         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
28911         explanation of setting 'hints'.
28912         Don't reject an implementation merely because it returns EAI_SERVICE.
28913         (EAI_SERVICE): Define to 0 if not defined.
28914
28915 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
28916
28917         The license of gnu-make and posix-shell is now "GPLed build tool".
28918         * modules/gnu-make (License): Likewise.
28919         * modules/posix-shell (License): Likewise.
28920
28921         New module posix-shell, for determining a POSIX shell
28922         or perhaps something that is close enough to a POSIX shell.
28923         * m4/posix-shell.m4: New file.
28924         * modules/posix-shell: New file.
28925
28926         * MODULES.html.sh: Mention new module.
28927
28928         New module gnu-make, for determining whether we're using GNU Make.
28929         * m4/gnu-make.m4: New file.
28930         * modules/gnu-make: New file.
28931         * MODULES.html.sh: Mention new module.
28932
28933 2007-11-14  Jim Meyering  <meyering@redhat.com>
28934
28935         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
28936         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
28937         use this macro to create a function _definition_.
28938         Remove useless "#undef ARGMATCH_DIE".
28939
28940 2007-11-14  Bruno Haible  <bruno@clisp.org>
28941
28942         * lib/config.charset: Update for OpenBSD 4.1.
28943         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
28944
28945 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
28946
28947         Document 64-bit #if problems in stdint.texi.
28948         * doc/headers/stdint.texi (stdint.h): Mention problems with
28949         64-bit-#if, and how to work around them.
28950
28951         Don't insist on 'long long int' support in the preprocessor.  It
28952         breaks too many things.  For example, PRIdMAX still uses a 'long
28953         long int' format with the latest Sun compiler, even though
28954         HAVE_LONG_LONG_INT isn't defined due to that compiler's
28955         preprocessor problem.  This causes the latest coreutils to dump
28956         core on Solaris 10 sparc with the Sun C compiler.
28957         Instead, fix the 2007-10-16 problem in a different way, by evaluating
28958         the troublesome expressions at configure-time, not at #if-time.
28959         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
28960         preprocessor.
28961         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
28962         compile-time C checks, done at 'configure'-time.
28963         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
28964         * modules/inttypes (Makefile): Substitute the new symbols that
28965         gl_INTTYPES_H now generates.
28966         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
28967
28968 2007-11-12  Bruno Haible  <bruno@clisp.org>
28969
28970         Tests for Unicode character classification functions.
28971
28972         * modules/unictype/bidicategory-byname-tests: New file.
28973         * modules/unictype/bidicategory-name-tests: New file.
28974         * modules/unictype/bidicategory-of-tests: New file.
28975         * modules/unictype/bidicategory-test-tests: New file.
28976         * modules/unictype/block-list-tests: New file.
28977         * modules/unictype/block-of-tests: New file.
28978         * modules/unictype/block-test-tests: New file.
28979         * modules/unictype/category-C-tests: New file.
28980         * modules/unictype/category-Cc-tests: New file.
28981         * modules/unictype/category-Cf-tests: New file.
28982         * modules/unictype/category-Cn-tests: New file.
28983         * modules/unictype/category-Co-tests: New file.
28984         * modules/unictype/category-Cs-tests: New file.
28985         * modules/unictype/category-L-tests: New file.
28986         * modules/unictype/category-Ll-tests: New file.
28987         * modules/unictype/category-Lm-tests: New file.
28988         * modules/unictype/category-Lo-tests: New file.
28989         * modules/unictype/category-Lt-tests: New file.
28990         * modules/unictype/category-Lu-tests: New file.
28991         * modules/unictype/category-M-tests: New file.
28992         * modules/unictype/category-Mc-tests: New file.
28993         * modules/unictype/category-Me-tests: New file.
28994         * modules/unictype/category-Mn-tests: New file.
28995         * modules/unictype/category-N-tests: New file.
28996         * modules/unictype/category-Nd-tests: New file.
28997         * modules/unictype/category-Nl-tests: New file.
28998         * modules/unictype/category-No-tests: New file.
28999         * modules/unictype/category-P-tests: New file.
29000         * modules/unictype/category-Pc-tests: New file.
29001         * modules/unictype/category-Pd-tests: New file.
29002         * modules/unictype/category-Pe-tests: New file.
29003         * modules/unictype/category-Pf-tests: New file.
29004         * modules/unictype/category-Pi-tests: New file.
29005         * modules/unictype/category-Po-tests: New file.
29006         * modules/unictype/category-Ps-tests: New file.
29007         * modules/unictype/category-S-tests: New file.
29008         * modules/unictype/category-Sc-tests: New file.
29009         * modules/unictype/category-Sk-tests: New file.
29010         * modules/unictype/category-Sm-tests: New file.
29011         * modules/unictype/category-So-tests: New file.
29012         * modules/unictype/category-Z-tests: New file.
29013         * modules/unictype/category-Zl-tests: New file.
29014         * modules/unictype/category-Zp-tests: New file.
29015         * modules/unictype/category-Zs-tests: New file.
29016         * modules/unictype/category-and-not-tests: New file.
29017         * modules/unictype/category-and-tests: New file.
29018         * modules/unictype/category-byname-tests: New file.
29019         * modules/unictype/category-name-tests: New file.
29020         * modules/unictype/category-none-tests: New file.
29021         * modules/unictype/category-of-tests: New file.
29022         * modules/unictype/category-or-tests: New file.
29023         * modules/unictype/category-test-withtable-tests: New file.
29024         * modules/unictype/combining-class-tests: New file.
29025         * modules/unictype/ctype-alnum-tests: New file.
29026         * modules/unictype/ctype-alpha-tests: New file.
29027         * modules/unictype/ctype-blank-tests: New file.
29028         * modules/unictype/ctype-cntrl-tests: New file.
29029         * modules/unictype/ctype-digit-tests: New file.
29030         * modules/unictype/ctype-graph-tests: New file.
29031         * modules/unictype/ctype-lower-tests: New file.
29032         * modules/unictype/ctype-print-tests: New file.
29033         * modules/unictype/ctype-punct-tests: New file.
29034         * modules/unictype/ctype-space-tests: New file.
29035         * modules/unictype/ctype-upper-tests: New file.
29036         * modules/unictype/ctype-xdigit-tests: New file.
29037         * modules/unictype/decimal-digit-tests: New file.
29038         * modules/unictype/digit-tests: New file.
29039         * modules/unictype/mirror-tests: New file.
29040         * modules/unictype/numeric-tests: New file.
29041         * modules/unictype/property-alphabetic-tests: New file.
29042         * modules/unictype/property-ascii-hex-digit-tests: New file.
29043         * modules/unictype/property-bidi-arabic-digit-tests: New file.
29044         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
29045         * modules/unictype/property-bidi-block-separator-tests: New file.
29046         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
29047         * modules/unictype/property-bidi-common-separator-tests: New file.
29048         * modules/unictype/property-bidi-control-tests: New file.
29049         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
29050         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
29051         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
29052         * modules/unictype/property-bidi-european-digit-tests: New file.
29053         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
29054         * modules/unictype/property-bidi-left-to-right-tests: New file.
29055         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
29056         * modules/unictype/property-bidi-other-neutral-tests: New file.
29057         * modules/unictype/property-bidi-pdf-tests: New file.
29058         * modules/unictype/property-bidi-segment-separator-tests: New file.
29059         * modules/unictype/property-bidi-whitespace-tests: New file.
29060         * modules/unictype/property-byname-tests: New file.
29061         * modules/unictype/property-combining-tests: New file.
29062         * modules/unictype/property-composite-tests: New file.
29063         * modules/unictype/property-currency-symbol-tests: New file.
29064         * modules/unictype/property-dash-tests: New file.
29065         * modules/unictype/property-decimal-digit-tests: New file.
29066         * modules/unictype/property-default-ignorable-code-point-tests: New file.
29067         * modules/unictype/property-deprecated-tests: New file.
29068         * modules/unictype/property-diacritic-tests: New file.
29069         * modules/unictype/property-extender-tests: New file.
29070         * modules/unictype/property-format-control-tests: New file.
29071         * modules/unictype/property-grapheme-base-tests: New file.
29072         * modules/unictype/property-grapheme-extend-tests: New file.
29073         * modules/unictype/property-grapheme-link-tests: New file.
29074         * modules/unictype/property-hex-digit-tests: New file.
29075         * modules/unictype/property-hyphen-tests: New file.
29076         * modules/unictype/property-id-continue-tests: New file.
29077         * modules/unictype/property-id-start-tests: New file.
29078         * modules/unictype/property-ideographic-tests: New file.
29079         * modules/unictype/property-ids-binary-operator-tests: New file.
29080         * modules/unictype/property-ids-trinary-operator-tests: New file.
29081         * modules/unictype/property-ignorable-control-tests: New file.
29082         * modules/unictype/property-iso-control-tests: New file.
29083         * modules/unictype/property-join-control-tests: New file.
29084         * modules/unictype/property-left-of-pair-tests: New file.
29085         * modules/unictype/property-line-separator-tests: New file.
29086         * modules/unictype/property-logical-order-exception-tests: New file.
29087         * modules/unictype/property-lowercase-tests: New file.
29088         * modules/unictype/property-math-tests: New file.
29089         * modules/unictype/property-non-break-tests: New file.
29090         * modules/unictype/property-not-a-character-tests: New file.
29091         * modules/unictype/property-numeric-tests: New file.
29092         * modules/unictype/property-other-alphabetic-tests: New file.
29093         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
29094         * modules/unictype/property-other-grapheme-extend-tests: New file.
29095         * modules/unictype/property-other-id-continue-tests: New file.
29096         * modules/unictype/property-other-id-start-tests: New file.
29097         * modules/unictype/property-other-lowercase-tests: New file.
29098         * modules/unictype/property-other-math-tests: New file.
29099         * modules/unictype/property-other-uppercase-tests: New file.
29100         * modules/unictype/property-paired-punctuation-tests: New file.
29101         * modules/unictype/property-paragraph-separator-tests: New file.
29102         * modules/unictype/property-pattern-syntax-tests: New file.
29103         * modules/unictype/property-pattern-white-space-tests: New file.
29104         * modules/unictype/property-private-use-tests: New file.
29105         * modules/unictype/property-punctuation-tests: New file.
29106         * modules/unictype/property-quotation-mark-tests: New file.
29107         * modules/unictype/property-radical-tests: New file.
29108         * modules/unictype/property-sentence-terminal-tests: New file.
29109         * modules/unictype/property-soft-dotted-tests: New file.
29110         * modules/unictype/property-space-tests: New file.
29111         * modules/unictype/property-terminal-punctuation-tests: New file.
29112         * modules/unictype/property-test-tests: New file.
29113         * modules/unictype/property-titlecase-tests: New file.
29114         * modules/unictype/property-unassigned-code-value-tests: New file.
29115         * modules/unictype/property-unified-ideograph-tests: New file.
29116         * modules/unictype/property-uppercase-tests: New file.
29117         * modules/unictype/property-variation-selector-tests: New file.
29118         * modules/unictype/property-white-space-tests: New file.
29119         * modules/unictype/property-xid-continue-tests: New file.
29120         * modules/unictype/property-xid-start-tests: New file.
29121         * modules/unictype/property-zero-width-tests: New file.
29122         * modules/unictype/scripts-tests: New file.
29123         * modules/unictype/syntax-c-ident-tests: New file.
29124         * modules/unictype/syntax-c-whitespace-tests: New file.
29125         * modules/unictype/syntax-java-ident-tests: New file.
29126         * modules/unictype/syntax-java-whitespace-tests: New file.
29127         * tests/unictype/test-bidi_byname.c: New file.
29128         * tests/unictype/test-bidi_name.c: New file.
29129         * tests/unictype/test-bidi_of.c: New file.
29130         * tests/unictype/test-bidi_test.c: New file.
29131         * tests/unictype/test-block_list.c: New file.
29132         * tests/unictype/test-block_of.c: New file.
29133         * tests/unictype/test-block_test.c: New file.
29134         * tests/unictype/test-categ_and.c: New file.
29135         * tests/unictype/test-categ_and_not.c: New file.
29136         * tests/unictype/test-categ_byname.c: New file.
29137         * tests/unictype/test-categ_name.c: New file.
29138         * tests/unictype/test-categ_none.c: New file.
29139         * tests/unictype/test-categ_of.c: New file.
29140         * tests/unictype/test-categ_or.c: New file.
29141         * tests/unictype/test-categ_test_withtable.c: New file.
29142         * tests/unictype/test-combining.c: New file.
29143         * tests/unictype/test-decdigit.c: New file.
29144         * tests/unictype/test-digit.c: New file.
29145         * tests/unictype/test-mirror.c: New file.
29146         * tests/unictype/test-numeric.c: New file.
29147         * tests/unictype/test-pr_byname.c: New file.
29148         * tests/unictype/test-pr_test.c: New file.
29149         * tests/unictype/test-predicate-part1.h: New file.
29150         * tests/unictype/test-predicate-part2.h: New file.
29151         * tests/unictype/test-scripts.c: New file.
29152         * tests/unictype/test-sy_c_ident.c: New file.
29153         * tests/unictype/test-sy_java_ident.c: New file.
29154
29155         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
29156         for Unicode 5.0.0.
29157         * tests/unictype/test-categ_Cc.c: Likewise.
29158         * tests/unictype/test-categ_Cf.c: Likewise.
29159         * tests/unictype/test-categ_Cn.c: Likewise.
29160         * tests/unictype/test-categ_Co.c: Likewise.
29161         * tests/unictype/test-categ_Cs.c: Likewise.
29162         * tests/unictype/test-categ_L.c: Likewise.
29163         * tests/unictype/test-categ_Ll.c: Likewise.
29164         * tests/unictype/test-categ_Lm.c: Likewise.
29165         * tests/unictype/test-categ_Lo.c: Likewise.
29166         * tests/unictype/test-categ_Lt.c: Likewise.
29167         * tests/unictype/test-categ_Lu.c: Likewise.
29168         * tests/unictype/test-categ_M.c: Likewise.
29169         * tests/unictype/test-categ_Mc.c: Likewise.
29170         * tests/unictype/test-categ_Me.c: Likewise.
29171         * tests/unictype/test-categ_Mn.c: Likewise.
29172         * tests/unictype/test-categ_N.c: Likewise.
29173         * tests/unictype/test-categ_Nd.c: Likewise.
29174         * tests/unictype/test-categ_Nl.c: Likewise.
29175         * tests/unictype/test-categ_No.c: Likewise.
29176         * tests/unictype/test-categ_P.c: Likewise.
29177         * tests/unictype/test-categ_Pc.c: Likewise.
29178         * tests/unictype/test-categ_Pd.c: Likewise.
29179         * tests/unictype/test-categ_Pe.c: Likewise.
29180         * tests/unictype/test-categ_Pf.c: Likewise.
29181         * tests/unictype/test-categ_Pi.c: Likewise.
29182         * tests/unictype/test-categ_Po.c: Likewise.
29183         * tests/unictype/test-categ_Ps.c: Likewise.
29184         * tests/unictype/test-categ_S.c: Likewise.
29185         * tests/unictype/test-categ_Sc.c: Likewise.
29186         * tests/unictype/test-categ_Sk.c: Likewise.
29187         * tests/unictype/test-categ_Sm.c: Likewise.
29188         * tests/unictype/test-categ_So.c: Likewise.
29189         * tests/unictype/test-categ_Z.c: Likewise.
29190         * tests/unictype/test-categ_Zl.c: Likewise.
29191         * tests/unictype/test-categ_Zp.c: Likewise.
29192         * tests/unictype/test-categ_Zs.c: Likewise.
29193         * tests/unictype/test-ctype_alnum.c: Likewise.
29194         * tests/unictype/test-ctype_alpha.c: Likewise.
29195         * tests/unictype/test-ctype_blank.c: Likewise.
29196         * tests/unictype/test-ctype_cntrl.c: Likewise.
29197         * tests/unictype/test-ctype_digit.c: Likewise.
29198         * tests/unictype/test-ctype_graph.c: Likewise.
29199         * tests/unictype/test-ctype_lower.c: Likewise.
29200         * tests/unictype/test-ctype_print.c: Likewise.
29201         * tests/unictype/test-ctype_punct.c: Likewise.
29202         * tests/unictype/test-ctype_space.c: Likewise.
29203         * tests/unictype/test-ctype_upper.c: Likewise.
29204         * tests/unictype/test-ctype_xdigit.c: Likewise.
29205         * tests/unictype/test-decdigit.h: Likewise.
29206         * tests/unictype/test-digit.h: Likewise.
29207         * tests/unictype/test-numeric.h: Likewise.
29208         * tests/unictype/test-pr_alphabetic.c: Likewise.
29209         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
29210         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
29211         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
29212         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
29213         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
29214         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
29215         * tests/unictype/test-pr_bidi_control.c: Likewise.
29216         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
29217         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
29218         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
29219         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
29220         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
29221         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
29222         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
29223         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
29224         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
29225         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
29226         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
29227         * tests/unictype/test-pr_combining.c: Likewise.
29228         * tests/unictype/test-pr_composite.c: Likewise.
29229         * tests/unictype/test-pr_currency_symbol.c: Likewise.
29230         * tests/unictype/test-pr_dash.c: Likewise.
29231         * tests/unictype/test-pr_decimal_digit.c: Likewise.
29232         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
29233         * tests/unictype/test-pr_deprecated.c: Likewise.
29234         * tests/unictype/test-pr_diacritic.c: Likewise.
29235         * tests/unictype/test-pr_extender.c: Likewise.
29236         * tests/unictype/test-pr_format_control.c: Likewise.
29237         * tests/unictype/test-pr_grapheme_base.c: Likewise.
29238         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
29239         * tests/unictype/test-pr_grapheme_link.c: Likewise.
29240         * tests/unictype/test-pr_hex_digit.c: Likewise.
29241         * tests/unictype/test-pr_hyphen.c: Likewise.
29242         * tests/unictype/test-pr_id_continue.c: Likewise.
29243         * tests/unictype/test-pr_id_start.c: Likewise.
29244         * tests/unictype/test-pr_ideographic.c: Likewise.
29245         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
29246         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
29247         * tests/unictype/test-pr_ignorable_control.c: Likewise.
29248         * tests/unictype/test-pr_iso_control.c: Likewise.
29249         * tests/unictype/test-pr_join_control.c: Likewise.
29250         * tests/unictype/test-pr_left_of_pair.c: Likewise.
29251         * tests/unictype/test-pr_line_separator.c: Likewise.
29252         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
29253         * tests/unictype/test-pr_lowercase.c: Likewise.
29254         * tests/unictype/test-pr_math.c: Likewise.
29255         * tests/unictype/test-pr_non_break.c: Likewise.
29256         * tests/unictype/test-pr_not_a_character.c: Likewise.
29257         * tests/unictype/test-pr_numeric.c: Likewise.
29258         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
29259         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
29260         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
29261         * tests/unictype/test-pr_other_id_continue.c: Likewise.
29262         * tests/unictype/test-pr_other_id_start.c: Likewise.
29263         * tests/unictype/test-pr_other_lowercase.c: Likewise.
29264         * tests/unictype/test-pr_other_math.c: Likewise.
29265         * tests/unictype/test-pr_other_uppercase.c: Likewise.
29266         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
29267         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
29268         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
29269         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
29270         * tests/unictype/test-pr_private_use.c: Likewise.
29271         * tests/unictype/test-pr_punctuation.c: Likewise.
29272         * tests/unictype/test-pr_quotation_mark.c: Likewise.
29273         * tests/unictype/test-pr_radical.c: Likewise.
29274         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
29275         * tests/unictype/test-pr_soft_dotted.c: Likewise.
29276         * tests/unictype/test-pr_space.c: Likewise.
29277         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
29278         * tests/unictype/test-pr_titlecase.c: Likewise.
29279         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
29280         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
29281         * tests/unictype/test-pr_uppercase.c: Likewise.
29282         * tests/unictype/test-pr_variation_selector.c: Likewise.
29283         * tests/unictype/test-pr_white_space.c: Likewise.
29284         * tests/unictype/test-pr_xid_continue.c: Likewise.
29285         * tests/unictype/test-pr_xid_start.c: Likewise.
29286         * tests/unictype/test-pr_zero_width.c: Likewise.
29287         * tests/unictype/test-sy_c_whitespace.c: Likewise.
29288         * tests/unictype/test-sy_java_whitespace.c: Likewise.
29289
29290 2007-11-12  Bruno Haible  <bruno@clisp.org>
29291
29292         Unicode character classification functions.
29293         * lib/unictype.h: New file.
29294         * modules/unictype/base: New file.
29295         * modules/unictype/category-L: New file.
29296         * modules/unictype/category-Lu: New file.
29297         * modules/unictype/category-Ll: New file.
29298         * modules/unictype/category-Lt: New file.
29299         * modules/unictype/category-Lm: New file.
29300         * modules/unictype/category-Lo: New file.
29301         * modules/unictype/category-M: New file.
29302         * modules/unictype/category-Mn: New file.
29303         * modules/unictype/category-Mc: New file.
29304         * modules/unictype/category-Me: New file.
29305         * modules/unictype/category-N: New file.
29306         * modules/unictype/category-Nd: New file.
29307         * modules/unictype/category-Nl: New file.
29308         * modules/unictype/category-No: New file.
29309         * modules/unictype/category-P: New file.
29310         * modules/unictype/category-Pc: New file.
29311         * modules/unictype/category-Pd: New file.
29312         * modules/unictype/category-Ps: New file.
29313         * modules/unictype/category-Pe: New file.
29314         * modules/unictype/category-Pi: New file.
29315         * modules/unictype/category-Pf: New file.
29316         * modules/unictype/category-Po: New file.
29317         * modules/unictype/category-S: New file.
29318         * modules/unictype/category-Sm: New file.
29319         * modules/unictype/category-Sc: New file.
29320         * modules/unictype/category-Sk: New file.
29321         * modules/unictype/category-So: New file.
29322         * modules/unictype/category-Z: New file.
29323         * modules/unictype/category-Zs: New file.
29324         * modules/unictype/category-Zl: New file.
29325         * modules/unictype/category-Zp: New file.
29326         * modules/unictype/category-C: New file.
29327         * modules/unictype/category-Cc: New file.
29328         * modules/unictype/category-Cf: New file.
29329         * modules/unictype/category-Cs: New file.
29330         * modules/unictype/category-Co: New file.
29331         * modules/unictype/category-Cn: New file.
29332         * modules/unictype/category-or: New file.
29333         * modules/unictype/category-of: New file.
29334         * modules/unictype/category-test: New file.
29335         * modules/unictype/category-test-withtable: New file.
29336         * modules/unictype/category-byname: New file.
29337         * modules/unictype/category-none: New file.
29338         * modules/unictype/category-and: New file.
29339         * modules/unictype/category-and-not: New file.
29340         * modules/unictype/category-name: New file.
29341         * modules/unictype/combining-class: New file.
29342         * modules/unictype/category-all: New file.
29343         * modules/unictype/bidicategory-all: New file.
29344         * modules/unictype/bidicategory-byname: New file.
29345         * modules/unictype/bidicategory-name: New file.
29346         * modules/unictype/bidicategory-of: New file.
29347         * modules/unictype/bidicategory-test: New file.
29348         * modules/unictype/decimal-digit: New file.
29349         * modules/unictype/digit: New file.
29350         * modules/unictype/numeric: New file.
29351         * modules/unictype/mirror: New file.
29352         * modules/unictype/property-white-space: New file.
29353         * modules/unictype/property-alphabetic: New file.
29354         * modules/unictype/property-other-alphabetic: New file.
29355         * modules/unictype/property-not-a-character: New file.
29356         * modules/unictype/property-default-ignorable-code-point: New file.
29357         * modules/unictype/property-other-default-ignorable-code-point: New
29358         file.
29359         * modules/unictype/property-deprecated: New file.
29360         * modules/unictype/property-logical-order-exception: New file.
29361         * modules/unictype/property-variation-selector: New file.
29362         * modules/unictype/property-private-use: New file.
29363         * modules/unictype/property-unassigned-code-value: New file.
29364         * modules/unictype/property-uppercase: New file.
29365         * modules/unictype/property-other-uppercase: New file.
29366         * modules/unictype/property-lowercase: New file.
29367         * modules/unictype/property-other-lowercase: New file.
29368         * modules/unictype/property-titlecase: New file.
29369         * modules/unictype/property-soft-dotted: New file.
29370         * modules/unictype/property-id-start: New file.
29371         * modules/unictype/property-other-id-start: New file.
29372         * modules/unictype/property-id-continue: New file.
29373         * modules/unictype/property-other-id-continue: New file.
29374         * modules/unictype/property-xid-start: New file.
29375         * modules/unictype/property-xid-continue: New file.
29376         * modules/unictype/property-pattern-white-space: New file.
29377         * modules/unictype/property-pattern-syntax: New file.
29378         * modules/unictype/property-join-control: New file.
29379         * modules/unictype/property-grapheme-base: New file.
29380         * modules/unictype/property-grapheme-extend: New file.
29381         * modules/unictype/property-other-grapheme-extend: New file.
29382         * modules/unictype/property-grapheme-link: New file.
29383         * modules/unictype/property-bidi-control: New file.
29384         * modules/unictype/property-bidi-left-to-right: New file.
29385         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
29386         * modules/unictype/property-bidi-arabic-right-to-left: New file.
29387         * modules/unictype/property-bidi-european-digit: New file.
29388         * modules/unictype/property-bidi-eur-num-separator: New file.
29389         * modules/unictype/property-bidi-eur-num-terminator: New file.
29390         * modules/unictype/property-bidi-arabic-digit: New file.
29391         * modules/unictype/property-bidi-common-separator: New file.
29392         * modules/unictype/property-bidi-block-separator: New file.
29393         * modules/unictype/property-bidi-segment-separator: New file.
29394         * modules/unictype/property-bidi-whitespace: New file.
29395         * modules/unictype/property-bidi-non-spacing-mark: New file.
29396         * modules/unictype/property-bidi-boundary-neutral: New file.
29397         * modules/unictype/property-bidi-pdf: New file.
29398         * modules/unictype/property-bidi-embedding-or-override: New file.
29399         * modules/unictype/property-bidi-other-neutral: New file.
29400         * modules/unictype/property-hex-digit: New file.
29401         * modules/unictype/property-ascii-hex-digit: New file.
29402         * modules/unictype/property-ideographic: New file.
29403         * modules/unictype/property-unified-ideograph: New file.
29404         * modules/unictype/property-radical: New file.
29405         * modules/unictype/property-ids-binary-operator: New file.
29406         * modules/unictype/property-ids-trinary-operator: New file.
29407         * modules/unictype/property-zero-width: New file.
29408         * modules/unictype/property-space: New file.
29409         * modules/unictype/property-non-break: New file.
29410         * modules/unictype/property-iso-control: New file.
29411         * modules/unictype/property-format-control: New file.
29412         * modules/unictype/property-dash: New file.
29413         * modules/unictype/property-hyphen: New file.
29414         * modules/unictype/property-punctuation: New file.
29415         * modules/unictype/property-line-separator: New file.
29416         * modules/unictype/property-paragraph-separator: New file.
29417         * modules/unictype/property-quotation-mark: New file.
29418         * modules/unictype/property-sentence-terminal: New file.
29419         * modules/unictype/property-terminal-punctuation: New file.
29420         * modules/unictype/property-currency-symbol: New file.
29421         * modules/unictype/property-math: New file.
29422         * modules/unictype/property-other-math: New file.
29423         * modules/unictype/property-paired-punctuation: New file.
29424         * modules/unictype/property-left-of-pair: New file.
29425         * modules/unictype/property-combining: New file.
29426         * modules/unictype/property-composite: New file.
29427         * modules/unictype/property-decimal-digit: New file.
29428         * modules/unictype/property-numeric: New file.
29429         * modules/unictype/property-diacritic: New file.
29430         * modules/unictype/property-extender: New file.
29431         * modules/unictype/property-ignorable-control: New file.
29432         * modules/unictype/property-test: New file.
29433         * modules/unictype/property-byname: New file.
29434         * modules/unictype/property-all: New file.
29435         * modules/unictype/scripts: New file.
29436         * modules/unictype/scripts-all: New file.
29437         * modules/unictype/block-of: New file.
29438         * modules/unictype/block-test: New file.
29439         * modules/unictype/block-list: New file.
29440         * modules/unictype/block-all: New file.
29441         * modules/unictype/syntax-c-whitespace: New file.
29442         * modules/unictype/syntax-java-whitespace: New file.
29443         * modules/unictype/syntax-c-ident: New file.
29444         * modules/unictype/syntax-java-ident: New file.
29445         * modules/unictype/ctype-alnum: New file.
29446         * modules/unictype/ctype-alpha: New file.
29447         * modules/unictype/ctype-cntrl: New file.
29448         * modules/unictype/ctype-digit: New file.
29449         * modules/unictype/ctype-graph: New file.
29450         * modules/unictype/ctype-lower: New file.
29451         * modules/unictype/ctype-print: New file.
29452         * modules/unictype/ctype-punct: New file.
29453         * modules/unictype/ctype-space: New file.
29454         * modules/unictype/ctype-upper: New file.
29455         * modules/unictype/ctype-xdigit: New file.
29456         * modules/unictype/ctype-blank: New file.
29457         * lib/unictype/bidi_byname.c: New file.
29458         * lib/unictype/bidi_name.c: New file.
29459         * lib/unictype/bidi_of.c: New file.
29460         * lib/unictype/bidi_test.c: New file.
29461         * lib/unictype/bitmap.h: New file.
29462         * lib/unictype/block_test.c: New file.
29463         * lib/unictype/blocks.c: New file.
29464         * lib/unictype/categ_C.c: New file.
29465         * lib/unictype/categ_Cc.c: New file.
29466         * lib/unictype/categ_Cf.c: New file.
29467         * lib/unictype/categ_Cn.c: New file.
29468         * lib/unictype/categ_Co.c: New file.
29469         * lib/unictype/categ_Cs.c: New file.
29470         * lib/unictype/categ_L.c: New file.
29471         * lib/unictype/categ_Ll.c: New file.
29472         * lib/unictype/categ_Lm.c: New file.
29473         * lib/unictype/categ_Lo.c: New file.
29474         * lib/unictype/categ_Lt.c: New file.
29475         * lib/unictype/categ_Lu.c: New file.
29476         * lib/unictype/categ_M.c: New file.
29477         * lib/unictype/categ_Mc.c: New file.
29478         * lib/unictype/categ_Me.c: New file.
29479         * lib/unictype/categ_Mn.c: New file.
29480         * lib/unictype/categ_N.c: New file.
29481         * lib/unictype/categ_Nd.c: New file.
29482         * lib/unictype/categ_Nl.c: New file.
29483         * lib/unictype/categ_No.c: New file.
29484         * lib/unictype/categ_P.c: New file.
29485         * lib/unictype/categ_Pc.c: New file.
29486         * lib/unictype/categ_Pd.c: New file.
29487         * lib/unictype/categ_Pe.c: New file.
29488         * lib/unictype/categ_Pf.c: New file.
29489         * lib/unictype/categ_Pi.c: New file.
29490         * lib/unictype/categ_Po.c: New file.
29491         * lib/unictype/categ_Ps.c: New file.
29492         * lib/unictype/categ_S.c: New file.
29493         * lib/unictype/categ_Sc.c: New file.
29494         * lib/unictype/categ_Sk.c: New file.
29495         * lib/unictype/categ_Sm.c: New file.
29496         * lib/unictype/categ_So.c: New file.
29497         * lib/unictype/categ_Z.c: New file.
29498         * lib/unictype/categ_Zl.c: New file.
29499         * lib/unictype/categ_Zp.c: New file.
29500         * lib/unictype/categ_Zs.c: New file.
29501         * lib/unictype/categ_and.c: New file.
29502         * lib/unictype/categ_and_not.c: New file.
29503         * lib/unictype/categ_byname.c: New file.
29504         * lib/unictype/categ_name.c: New file.
29505         * lib/unictype/categ_none.c: New file.
29506         * lib/unictype/categ_of.c: New file.
29507         * lib/unictype/categ_or.c: New file.
29508         * lib/unictype/categ_test.c: New file.
29509         * lib/unictype/combining.c: New file.
29510         * lib/unictype/ctype_alnum.c: New file.
29511         * lib/unictype/ctype_alpha.c: New file.
29512         * lib/unictype/ctype_blank.c: New file.
29513         * lib/unictype/ctype_cntrl.c: New file.
29514         * lib/unictype/ctype_digit.c: New file.
29515         * lib/unictype/ctype_graph.c: New file.
29516         * lib/unictype/ctype_lower.c: New file.
29517         * lib/unictype/ctype_print.c: New file.
29518         * lib/unictype/ctype_punct.c: New file.
29519         * lib/unictype/ctype_space.c: New file.
29520         * lib/unictype/ctype_upper.c: New file.
29521         * lib/unictype/ctype_xdigit.c: New file.
29522         * lib/unictype/decdigit.c: New file.
29523         * lib/unictype/digit.c: New file.
29524         * lib/unictype/identsyntaxmap.h: New file.
29525         * lib/unictype/mirror.c: New file.
29526         * lib/unictype/numeric.c: New file.
29527         * lib/unictype/pr_alphabetic.c: New file.
29528         * lib/unictype/pr_ascii_hex_digit.c: New file.
29529         * lib/unictype/pr_bidi_arabic_digit.c: New file.
29530         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
29531         * lib/unictype/pr_bidi_block_separator.c: New file.
29532         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
29533         * lib/unictype/pr_bidi_common_separator.c: New file.
29534         * lib/unictype/pr_bidi_control.c: New file.
29535         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
29536         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
29537         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
29538         * lib/unictype/pr_bidi_european_digit.c: New file.
29539         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
29540         * lib/unictype/pr_bidi_left_to_right.c: New file.
29541         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
29542         * lib/unictype/pr_bidi_other_neutral.c: New file.
29543         * lib/unictype/pr_bidi_pdf.c: New file.
29544         * lib/unictype/pr_bidi_segment_separator.c: New file.
29545         * lib/unictype/pr_bidi_whitespace.c: New file.
29546         * lib/unictype/pr_byname.c: New file.
29547         * lib/unictype/pr_byname.gperf: New file.
29548         * lib/unictype/pr_combining.c: New file.
29549         * lib/unictype/pr_composite.c: New file.
29550         * lib/unictype/pr_currency_symbol.c: New file.
29551         * lib/unictype/pr_dash.c: New file.
29552         * lib/unictype/pr_decimal_digit.c: New file.
29553         * lib/unictype/pr_default_ignorable_code_point.c: New file.
29554         * lib/unictype/pr_deprecated.c: New file.
29555         * lib/unictype/pr_diacritic.c: New file.
29556         * lib/unictype/pr_extender.c: New file.
29557         * lib/unictype/pr_format_control.c: New file.
29558         * lib/unictype/pr_grapheme_base.c: New file.
29559         * lib/unictype/pr_grapheme_extend.c: New file.
29560         * lib/unictype/pr_grapheme_link.c: New file.
29561         * lib/unictype/pr_hex_digit.c: New file.
29562         * lib/unictype/pr_hyphen.c: New file.
29563         * lib/unictype/pr_id_continue.c: New file.
29564         * lib/unictype/pr_id_start.c: New file.
29565         * lib/unictype/pr_ideographic.c: New file.
29566         * lib/unictype/pr_ids_binary_operator.c: New file.
29567         * lib/unictype/pr_ids_trinary_operator.c: New file.
29568         * lib/unictype/pr_ignorable_control.c: New file.
29569         * lib/unictype/pr_iso_control.c: New file.
29570         * lib/unictype/pr_join_control.c: New file.
29571         * lib/unictype/pr_left_of_pair.c: New file.
29572         * lib/unictype/pr_line_separator.c: New file.
29573         * lib/unictype/pr_logical_order_exception.c: New file.
29574         * lib/unictype/pr_lowercase.c: New file.
29575         * lib/unictype/pr_math.c: New file.
29576         * lib/unictype/pr_non_break.c: New file.
29577         * lib/unictype/pr_not_a_character.c: New file.
29578         * lib/unictype/pr_numeric.c: New file.
29579         * lib/unictype/pr_other_alphabetic.c: New file.
29580         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
29581         * lib/unictype/pr_other_grapheme_extend.c: New file.
29582         * lib/unictype/pr_other_id_continue.c: New file.
29583         * lib/unictype/pr_other_id_start.c: New file.
29584         * lib/unictype/pr_other_lowercase.c: New file.
29585         * lib/unictype/pr_other_math.c: New file.
29586         * lib/unictype/pr_other_uppercase.c: New file.
29587         * lib/unictype/pr_paired_punctuation.c: New file.
29588         * lib/unictype/pr_paragraph_separator.c: New file.
29589         * lib/unictype/pr_pattern_syntax.c: New file.
29590         * lib/unictype/pr_pattern_white_space.c: New file.
29591         * lib/unictype/pr_private_use.c: New file.
29592         * lib/unictype/pr_punctuation.c: New file.
29593         * lib/unictype/pr_quotation_mark.c: New file.
29594         * lib/unictype/pr_radical.c: New file.
29595         * lib/unictype/pr_sentence_terminal.c: New file.
29596         * lib/unictype/pr_soft_dotted.c: New file.
29597         * lib/unictype/pr_space.c: New file.
29598         * lib/unictype/pr_terminal_punctuation.c: New file.
29599         * lib/unictype/pr_test.c: New file.
29600         * lib/unictype/pr_titlecase.c: New file.
29601         * lib/unictype/pr_unassigned_code_value.c: New file.
29602         * lib/unictype/pr_unified_ideograph.c: New file.
29603         * lib/unictype/pr_uppercase.c: New file.
29604         * lib/unictype/pr_variation_selector.c: New file.
29605         * lib/unictype/pr_white_space.c: New file.
29606         * lib/unictype/pr_xid_continue.c: New file.
29607         * lib/unictype/pr_xid_start.c: New file.
29608         * lib/unictype/pr_zero_width.c: New file.
29609         * lib/unictype/scripts.c: New file.
29610         * lib/unictype/sy_c_ident.c: New file.
29611         * lib/unictype/sy_c_whitespace.c: New file.
29612         * lib/unictype/sy_java_ident.c: New file.
29613         * lib/unictype/sy_java_whitespace.c: New file.
29614
29615         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
29616         Unicode 5.0.0.
29617         * lib/unictype/blocks.h: Likewise.
29618         * lib/unictype/categ_C.h: Likewise.
29619         * lib/unictype/categ_Cc.h: Likewise.
29620         * lib/unictype/categ_Cf.h: Likewise.
29621         * lib/unictype/categ_Cn.h: Likewise.
29622         * lib/unictype/categ_Co.h: Likewise.
29623         * lib/unictype/categ_Cs.h: Likewise.
29624         * lib/unictype/categ_L.h: Likewise.
29625         * lib/unictype/categ_Ll.h: Likewise.
29626         * lib/unictype/categ_Lm.h: Likewise.
29627         * lib/unictype/categ_Lo.h: Likewise.
29628         * lib/unictype/categ_Lt.h: Likewise.
29629         * lib/unictype/categ_Lu.h: Likewise.
29630         * lib/unictype/categ_M.h: Likewise.
29631         * lib/unictype/categ_Mc.h: Likewise.
29632         * lib/unictype/categ_Me.h: Likewise.
29633         * lib/unictype/categ_Mn.h: Likewise.
29634         * lib/unictype/categ_N.h: Likewise.
29635         * lib/unictype/categ_Nd.h: Likewise.
29636         * lib/unictype/categ_Nl.h: Likewise.
29637         * lib/unictype/categ_No.h: Likewise.
29638         * lib/unictype/categ_P.h: Likewise.
29639         * lib/unictype/categ_Pc.h: Likewise.
29640         * lib/unictype/categ_Pd.h: Likewise.
29641         * lib/unictype/categ_Pe.h: Likewise.
29642         * lib/unictype/categ_Pf.h: Likewise.
29643         * lib/unictype/categ_Pi.h: Likewise.
29644         * lib/unictype/categ_Po.h: Likewise.
29645         * lib/unictype/categ_Ps.h: Likewise.
29646         * lib/unictype/categ_S.h: Likewise.
29647         * lib/unictype/categ_Sc.h: Likewise.
29648         * lib/unictype/categ_Sk.h: Likewise.
29649         * lib/unictype/categ_Sm.h: Likewise.
29650         * lib/unictype/categ_So.h: Likewise.
29651         * lib/unictype/categ_Z.h: Likewise.
29652         * lib/unictype/categ_Zl.h: Likewise.
29653         * lib/unictype/categ_Zp.h: Likewise.
29654         * lib/unictype/categ_Zs.h: Likewise.
29655         * lib/unictype/categ_of.h: Likewise.
29656         * lib/unictype/combining.h: Likewise.
29657         * lib/unictype/ctype_alnum.h: Likewise.
29658         * lib/unictype/ctype_alpha.h: Likewise.
29659         * lib/unictype/ctype_blank.h: Likewise.
29660         * lib/unictype/ctype_cntrl.h: Likewise.
29661         * lib/unictype/ctype_digit.h: Likewise.
29662         * lib/unictype/ctype_graph.h: Likewise.
29663         * lib/unictype/ctype_lower.h: Likewise.
29664         * lib/unictype/ctype_print.h: Likewise.
29665         * lib/unictype/ctype_punct.h: Likewise.
29666         * lib/unictype/ctype_space.h: Likewise.
29667         * lib/unictype/ctype_upper.h: Likewise.
29668         * lib/unictype/ctype_xdigit.h: Likewise.
29669         * lib/unictype/decdigit.h: Likewise.
29670         * lib/unictype/digit.h: Likewise.
29671         * lib/unictype/mirror.h: Likewise.
29672         * lib/unictype/numeric.h: Likewise.
29673         * lib/unictype/pr_alphabetic.h: Likewise.
29674         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
29675         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
29676         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
29677         * lib/unictype/pr_bidi_block_separator.h: Likewise.
29678         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
29679         * lib/unictype/pr_bidi_common_separator.h: Likewise.
29680         * lib/unictype/pr_bidi_control.h: Likewise.
29681         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
29682         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
29683         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
29684         * lib/unictype/pr_bidi_european_digit.h: Likewise.
29685         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
29686         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
29687         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
29688         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
29689         * lib/unictype/pr_bidi_pdf.h: Likewise.
29690         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
29691         * lib/unictype/pr_bidi_whitespace.h: Likewise.
29692         * lib/unictype/pr_combining.h: Likewise.
29693         * lib/unictype/pr_composite.h: Likewise.
29694         * lib/unictype/pr_currency_symbol.h: Likewise.
29695         * lib/unictype/pr_dash.h: Likewise.
29696         * lib/unictype/pr_decimal_digit.h: Likewise.
29697         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
29698         * lib/unictype/pr_deprecated.h: Likewise.
29699         * lib/unictype/pr_diacritic.h: Likewise.
29700         * lib/unictype/pr_extender.h: Likewise.
29701         * lib/unictype/pr_format_control.h: Likewise.
29702         * lib/unictype/pr_grapheme_base.h: Likewise.
29703         * lib/unictype/pr_grapheme_extend.h: Likewise.
29704         * lib/unictype/pr_grapheme_link.h: Likewise.
29705         * lib/unictype/pr_hex_digit.h: Likewise.
29706         * lib/unictype/pr_hyphen.h: Likewise.
29707         * lib/unictype/pr_id_continue.h: Likewise.
29708         * lib/unictype/pr_id_start.h: Likewise.
29709         * lib/unictype/pr_ideographic.h: Likewise.
29710         * lib/unictype/pr_ids_binary_operator.h: Likewise.
29711         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
29712         * lib/unictype/pr_ignorable_control.h: Likewise.
29713         * lib/unictype/pr_iso_control.h: Likewise.
29714         * lib/unictype/pr_join_control.h: Likewise.
29715         * lib/unictype/pr_left_of_pair.h: Likewise.
29716         * lib/unictype/pr_line_separator.h: Likewise.
29717         * lib/unictype/pr_logical_order_exception.h: Likewise.
29718         * lib/unictype/pr_lowercase.h: Likewise.
29719         * lib/unictype/pr_math.h: Likewise.
29720         * lib/unictype/pr_non_break.h: Likewise.
29721         * lib/unictype/pr_not_a_character.h: Likewise.
29722         * lib/unictype/pr_numeric.h: Likewise.
29723         * lib/unictype/pr_other_alphabetic.h: Likewise.
29724         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
29725         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
29726         * lib/unictype/pr_other_id_continue.h: Likewise.
29727         * lib/unictype/pr_other_id_start.h: Likewise.
29728         * lib/unictype/pr_other_lowercase.h: Likewise.
29729         * lib/unictype/pr_other_math.h: Likewise.
29730         * lib/unictype/pr_other_uppercase.h: Likewise.
29731         * lib/unictype/pr_paired_punctuation.h: Likewise.
29732         * lib/unictype/pr_paragraph_separator.h: Likewise.
29733         * lib/unictype/pr_pattern_syntax.h: Likewise.
29734         * lib/unictype/pr_pattern_white_space.h: Likewise.
29735         * lib/unictype/pr_private_use.h: Likewise.
29736         * lib/unictype/pr_punctuation.h: Likewise.
29737         * lib/unictype/pr_quotation_mark.h: Likewise.
29738         * lib/unictype/pr_radical.h: Likewise.
29739         * lib/unictype/pr_sentence_terminal.h: Likewise.
29740         * lib/unictype/pr_soft_dotted.h: Likewise.
29741         * lib/unictype/pr_space.h: Likewise.
29742         * lib/unictype/pr_terminal_punctuation.h: Likewise.
29743         * lib/unictype/pr_titlecase.h: Likewise.
29744         * lib/unictype/pr_unassigned_code_value.h: Likewise.
29745         * lib/unictype/pr_unified_ideograph.h: Likewise.
29746         * lib/unictype/pr_uppercase.h: Likewise.
29747         * lib/unictype/pr_variation_selector.h: Likewise.
29748         * lib/unictype/pr_white_space.h: Likewise.
29749         * lib/unictype/pr_xid_continue.h: Likewise.
29750         * lib/unictype/pr_xid_start.h: Likewise.
29751         * lib/unictype/pr_zero_width.h: Likewise.
29752         * lib/unictype/scripts.h: Likewise.
29753         * lib/unictype/scripts_byname.gperf: Likewise.
29754         * lib/unictype/sy_c_ident.h: Likewise.
29755         * lib/unictype/sy_c_whitespace.h: Likewise.
29756         * lib/unictype/sy_java_ident.h: Likewise.
29757         * lib/unictype/sy_java_whitespace.h: Likewise.
29758
29759         * lib/unictype/Makefile: New file.
29760         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
29761         glibc.
29762         * lib/unictype/3level.h: New file, copied from glibc.
29763         * lib/unictype/3levelbit.h: New file.
29764
29765 2007-11-11  Bruno Haible  <bruno@clisp.org>
29766
29767         * modules/gperf: New file.
29768         * modules/iconv_open (Depends-on): Add it.
29769         (Makefile.am): Remove the GPERF definition.
29770
29771 2007-11-11  Bruno Haible  <bruno@clisp.org>
29772
29773         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
29774         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
29775
29776 2007-11-11  Bruno Haible  <bruno@clisp.org>
29777
29778         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
29779         (usage): Remove function.
29780
29781 2007-11-11  Bruno Haible  <bruno@clisp.org>
29782
29783         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
29784         gl_FUNC_CEILF_LIBS.
29785         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
29786         gl_FUNC_CEIL_LIBS.
29787         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
29788         gl_FUNC_CEILL_LIBS.
29789         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
29790         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
29791         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
29792
29793 2007-11-11  Bruno Haible  <bruno@clisp.org>
29794
29795         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
29796         roundf were declared but do not exist on functions.
29797         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
29798         roundl were declared but do not exist on functions.
29799         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
29800         HAVE_FLOORL_AND_CEILL, respectively.
29801         Needed for Sun C on Solaris 10.
29802
29803 2007-11-11  Bruno Haible  <bruno@clisp.org>
29804
29805         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
29806         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
29807         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
29808         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
29809         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
29810         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
29811         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
29812         HAVE_DECL_ROUNDF.
29813         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
29814         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
29815         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
29816         of HAVE_DECL_ROUND*.
29817         * modules/math (Makefile.am): Update.
29818
29819 2007-11-10  Bruno Haible  <bruno@clisp.org>
29820
29821         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
29822         ptrdiff_t as m4/intl.m4.
29823
29824 2007-11-10  Jim Meyering  <meyering@redhat.com>
29825
29826         Avoid link failure for the argmatch test.
29827         * tests/test-argmatch.c (usage): Define function to avoid a link
29828         failure: argmatch_die requires a usage function.
29829
29830 2007-11-09  Bruno Haible  <bruno@clisp.org>
29831
29832         * doc/functions/snprintf.texi: Mention BeOS deficiency.
29833         * doc/functions/vsnprintf.texi: Likewise.
29834         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
29835         with a size argument < 2.
29836
29837 2007-11-09  Bruno Haible  <bruno@clisp.org>
29838
29839         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
29840         buffer. Fixes an inefficiency introduced on 2007-11-03.
29841
29842 2007-11-09  Bruno Haible  <bruno@clisp.org>
29843
29844         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
29845         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
29846
29847 2007-11-08  Jim Meyering  <meyering@redhat.com>
29848
29849         Change cache variable name prefix "jm_" to "gl_" everywhere.
29850         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
29851         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
29852         * m4/uptime.m4: s/gl_/jm_/
29853
29854 2007-11-07  Bruno Haible  <bruno@clisp.org>
29855
29856         Update to GNU gettext 0.17.
29857         * m4/intl.m4: Update to GNU gettext 0.17.
29858         * m4/po.m4: Likewise.
29859         * modules/gettext (Files): Remove m4/ulonglong.m4.
29860         (configure.ac): Require gettext infrastructure from version 0.17.
29861
29862 2007-11-06  Bruno Haible  <bruno@clisp.org>
29863
29864         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
29865         symbolic values are not defined in a public header.
29866         * lib/freadable.c (freadable) [QNX]: Likewise.
29867         * lib/freadahead.c (freadahead) [QNX]: Likewise.
29868         * lib/freading.c (freading) [QNX]: Likewise.
29869         * lib/fseterr.c (fseterr) [QNX]: Likewise.
29870         * lib/fwritable.c (fwritable) [QNX]: Likewise.
29871         * lib/fwriting.c (fwriting) [QNX]: Likewise.
29872         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
29873         Reported by Alain Magloire.
29874
29875         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
29876
29877 2007-11-05  Bruno Haible  <bruno@clisp.org>
29878
29879         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
29880         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
29881         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
29882         Reported by Eric Blake.
29883
29884 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29885             Bruno Haible  <bruno@clisp.org>
29886
29887         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
29888         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
29889         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
29890         (malloc): Undefine also before including <stdlib.h>.
29891         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
29892         Needed on OSF/1 4.0.
29893
29894 2007-11-05  Jim Meyering  <meyering@redhat.com>
29895
29896         git-version-gen: sync from coreutils.
29897         * build-aux/git-version-gen: Add comments.
29898         Change the first '-' to '.' in the snapshot version string,
29899         e.g., 6.9-377-08144 -> 6.9.377-08144
29900         Remove first parameter.
29901         Don't declare a version "-dirty" merely because a time
29902         stamp has changed.
29903
29904 2007-11-04  Bruno Haible  <bruno@clisp.org>
29905
29906         * lib/lock.h: Protect all macro definitions containing an 'if'
29907         statement through a "do { ... } while (0)".
29908         * lib/tls.h: Likewise.
29909
29910 2007-11-04  Bruno Haible  <bruno@clisp.org>
29911
29912         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
29913
29914 2007-11-04  Bruno Haible  <bruno@clisp.org>
29915
29916         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
29917         * modules/fprintf-posix (Depends-on): Add nocrash.
29918         * modules/snprintf-posix (Depends-on): Likewise.
29919         * modules/sprintf-posix (Depends-on): Likewise.
29920         * modules/vasnprintf-posix (Depends-on): Likewise.
29921         * modules/vasprintf-posix (Depends-on): Likewise.
29922         * modules/vfprintf-posix (Depends-on): Likewise.
29923         * modules/vsnprintf-posix (Depends-on): Likewise.
29924         * modules/vsprintf-posix (Depends-on): Likewise.
29925         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
29926         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29927         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29928         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29929         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29930         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29931         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29932
29933 2007-11-04  Bruno Haible  <bruno@clisp.org>
29934
29935         * modules/nocrash: New file.
29936         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
29937         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
29938
29939 2007-11-04  Bruno Haible  <bruno@clisp.org>
29940
29941         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
29942         precision handling.
29943         * tests/test-vasprintf-posix.c (test_function): Likewise.
29944         * tests/test-snprintf-posix.h (test_function): Likewise.
29945         * tests/test-sprintf-posix.h (test_function): Likewise.
29946
29947         Fix *printf behaviour for large precisions on mingw and BeOS.
29948         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
29949         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
29950         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
29951         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
29952         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29953         gl_PRINTF_PRECISION and test its result. Invoke
29954         gl_PREREQ_VASNPRINTF_PRECISION.
29955         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29956         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29957         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29958         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29959         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29960         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29961         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29962         * doc/functions/fprintf.texi: Update.
29963         * doc/functions/printf.texi: Update.
29964         * doc/functions/snprintf.texi: Update.
29965         * doc/functions/sprintf.texi: Update.
29966         * doc/functions/vfprintf.texi: Update.
29967         * doc/functions/vprintf.texi: Update.
29968         * doc/functions/vsnprintf.texi: Update.
29969         * doc/functions/vsprintf.texi: Update.
29970
29971 2007-11-04  Bruno Haible  <bruno@clisp.org>
29972
29973         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
29974
29975 2007-11-04  Bruno Haible  <bruno@clisp.org>
29976
29977         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
29978         Reported by Sylvain Beucler <beuc@gnu.org>.
29979
29980 2007-11-03  Bruno Haible  <bruno@clisp.org>
29981
29982         * tests/test-fprintf-posix2.sh: New file.
29983         * tests/test-fprintf-posix2.c: New file.
29984         * modules/fprintf-posix-tests (Files): Add them.
29985         (TESTS): Add test-fprintf-posix2.sh.
29986         (configure.ac): Check for getrlimit and setrlimit.
29987         (check_PROGRAMS): Add test-fprintf-posix2.
29988
29989         * tests/test-printf-posix2.sh: New file.
29990         * tests/test-printf-posix2.c: New file.
29991         * modules/printf-posix-tests (Files): Add them.
29992         (TESTS): Add test-printf-posix2.sh.
29993         (configure.ac): Check for getrlimit and setrlimit.
29994         (check_PROGRAMS): Add test-printf-posix2.
29995
29996         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
29997         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
29998         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
29999         (decode_double): New function, copied from decode_long_double.
30000         (scale10_round_decimal_decoded): New function, extracted from
30001         scale10_round_decimal_long_double.
30002         (scale10_round_decimal_long_double): Use it.
30003         (scale10_round_decimal_double): New function.
30004         (floorlog10): New function.
30005         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
30006         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
30007         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
30008         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30009         gl_PRINTF_ENOMEM and test its result. Invoke
30010         gl_PREREQ_VASNPRINTF_ENOMEM.
30011         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30012         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30013         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30014         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30015         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30016         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30017         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30018         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
30019         * modules/snprintf-posix (Depends-on): Likewise.
30020         * modules/sprintf-posix (Depends-on): Likewise.
30021         * modules/vasnprintf-posix (Depends-on): Likewise.
30022         * modules/vasprintf-posix (Depends-on): Likewise.
30023         * modules/vfprintf-posix (Depends-on): Likewise.
30024         * modules/vsnprintf-posix (Depends-on): Likewise.
30025         * modules/vsprintf-posix (Depends-on): Likewise.
30026         * doc/functions/fprintf.texi: Update.
30027         * doc/functions/printf.texi: Update.
30028         * doc/functions/snprintf.texi: Update.
30029         * doc/functions/sprintf.texi: Update.
30030         * doc/functions/vfprintf.texi: Update.
30031         * doc/functions/vprintf.texi: Update.
30032         * doc/functions/vsnprintf.texi: Update.
30033         * doc/functions/vsprintf.texi: Update.
30034
30035 2007-11-03  Bruno Haible  <bruno@clisp.org>
30036
30037         * modules/frexp-nolibm-tests: New file.
30038
30039         * modules/frexp-nolibm: New file.
30040         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
30041
30042 2007-11-03  Bruno Haible  <bruno@clisp.org>
30043
30044         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
30045         value is C99 compliant.
30046         Needed for OSF/1 5.1.
30047
30048 2007-11-03  Bruno Haible  <bruno@clisp.org>
30049
30050         Fix out-of-memory handling of vasnprintf.
30051         * lib/printf-parse.c: Include <errno.h>.
30052         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
30053         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
30054         is already set.
30055
30056 2007-11-02  Eric Blake  <ebb9@byu.net>
30057
30058         Fix tests on cygwin.
30059         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
30060
30061 2007-11-01  Bruno Haible  <bruno@clisp.org>
30062
30063         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
30064         warning.
30065         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
30066         needed for POSIX compatibility.
30067
30068 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
30069
30070         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
30071         for compatibility with GNU.
30072
30073 2007-11-01  Bruno Haible  <bruno@clisp.org>
30074
30075         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
30076         (putenv): Renamed from rpl_putenv. Change argument type from
30077         'const char *' to 'char *'.
30078         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
30079         of defining putenv in config.h, just set REPLACE_PUTENV.
30080         * modules/putenv (Depends-on): Add stdlib.
30081         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
30082         (Include): Use <stdlib.h>.
30083         * lib/stdlib.in.h (putenv): New declaration.
30084         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
30085         REPLACE_PUTENV.
30086         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
30087         REPLACE_PUTENV.
30088         Needed for MacOS X 10.5.0.
30089         Reported by Peter O'Gorman <peter@pogma.com>.
30090
30091 2007-11-01  Jim Meyering  <meyering@redhat.com>
30092
30093         Treat an empty date string exactly like "0".
30094         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
30095         if the remaining date string (to be parsed) is empty, use "0".
30096         Reported by Mischa Molhoek and discussed in this thread:
30097         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
30098
30099 2007-10-31  Bruno Haible  <bruno@clisp.org>
30100
30101         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
30102         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
30103         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
30104         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
30105         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
30106         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
30107
30108 2007-10-31  Bruno Haible  <bruno@clisp.org>
30109
30110         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
30111         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
30112         (AC_TYPE_LONG_LONG_INT): Use it.
30113         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
30114         it as well.
30115         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
30116         to m4/longlong.m4.
30117         * modules/stdint (Files): Remove m4/ulonglong.m4.
30118         * modules/strtoull (Files): Use m4/longlong.m4 instead of
30119         m4/ulonglong.m4.
30120         * modules/strtoumax (Files): Likewise.
30121
30122 2007-10-30  Bruno Haible  <bruno@clisp.org>
30123
30124         * modules/xvasprintf-posix: New file.
30125         Suggested by Eric Blake.
30126
30127 2007-10-30  Bruno Haible  <bruno@clisp.org>
30128
30129         * modules/xprintf-posix-tests: New file.
30130         * tests/test-xprintf-posix.sh: New file.
30131         * tests/test-xprintf-posix.c: New file.
30132         * tests/test-xfprintf-posix.c: New file.
30133
30134         * modules/xprintf-posix: New file.
30135
30136 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30137
30138         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
30139         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
30140         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
30141
30142 2007-10-29  Bruno Haible  <bruno@clisp.org>
30143
30144         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
30145         contain the special marker '_cv_'.
30146         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
30147         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
30148         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
30149         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
30150         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
30151         Reported by Ralf Wildenhues.
30152
30153 2007-10-29  Bruno Haible  <bruno@clisp.org>
30154
30155         * gnulib-tool (func_import): When --lgpl is not specified, set
30156         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
30157         GPLv3.
30158         Reported by Simon Josefsson.
30159
30160 2007-10-28  Bruno Haible  <bruno@clisp.org>
30161
30162         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
30163         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
30164         HAVE_DECL_ISFINITE.
30165         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
30166         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
30167         HAVE_DECL_ISFINITE.
30168
30169 2007-10-28  Bruno Haible  <bruno@clisp.org>
30170
30171         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
30172         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
30173
30174 2007-10-28  Bruno Haible  <bruno@clisp.org>
30175
30176         Fix link errors with Sun C 5.0 on Solaris 10.
30177         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
30178         function is declared but not present in the compiler's libm.
30179         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
30180         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
30181         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
30182         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
30183         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
30184         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
30185         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
30186         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
30187         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
30188         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
30189         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
30190         HAVE_DECL_FLOORL.
30191
30192 2007-10-28  Bruno Haible  <bruno@clisp.org>
30193
30194         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
30195         gl_FUNC_FLOORL. Cache the result.
30196         (gl_FUNC_FLOORL): Use it.
30197         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
30198         gl_FUNC_CEILL. Cache the result.
30199         (gl_FUNC_CEILL): Use it.
30200
30201         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
30202         gl_FUNC_FLOOR. Cache the result.
30203         (gl_FUNC_FLOOR): Use it.
30204         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
30205         gl_FUNC_CEIL. Cache the result.
30206         (gl_FUNC_CEIL): Use it.
30207
30208         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
30209         gl_FUNC_FLOORF. Cache the result.
30210         (gl_FUNC_FLOORF): Use it.
30211         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
30212         gl_FUNC_CEILF. Cache the result.
30213         (gl_FUNC_CEILF): Use it.
30214
30215 2007-10-28  Bruno Haible  <bruno@clisp.org>
30216
30217         * gnulib-tool: Allow specifying the LGPL version number through
30218         --lgpl=2 or --lgpl=3.
30219         (func_usage): Document --lgpl with argument.
30220         Handle --lgpl=... arguments.
30221         (func_import): Recognize also gl_LGPL calls with an argument. When
30222         --lgpl=2 is used and the module's license is just LGPL, report an
30223         error. Set sed_transform_lib_file according to the lgpl variable. In
30224         the generated files, use --lgpl or gl_LGPL invocations with argument,
30225         if necessary.
30226         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
30227         an LGPv2+ license.
30228         * doc/gnulib-tool.texi (Modified imports): Update explanation of
30229         gl_LGPL macro.
30230
30231 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30232             Bruno Haible  <bruno@clisp.org>
30233
30234         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
30235         (u16_uctomb_aux): Likewise.
30236         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
30237         !HAVE_INLINE.
30238         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
30239
30240 2007-10-28  Bruno Haible  <bruno@clisp.org>
30241
30242         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
30243         Invoke AM_GETTEXT_OPTION if it exists.
30244         * modules/vasprintf: Likewise.
30245         * modules/verror: Likewise.
30246         * modules/xprintf: Likewise.
30247         * modules/xvasprintf: Likewise.
30248
30249 2007-10-27  Ben Pfaff  <blp@gnu.org>
30250
30251         * lib/math.in.h: Define isfinite macro and prototypes for
30252         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
30253         implementations.
30254         * m4/math_h.m4: New substitutions for isfinite module.
30255         * lib/isfinite.c: New file.
30256         * m4/isfinite.m4: New file.
30257         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
30258         * modules/isfinite: New file.
30259         * modules/isfinite-tests: New file.
30260         * tests/tests-isfinite.c: New file.
30261         * doc/functions/isfinite.texi: Mention isfinite module.
30262         * MODULES.html.sh: Mention new module.
30263
30264 2007-10-27  Ben Pfaff  <blp@gnu.org>
30265
30266         Ralf Wildenhues reported that Tru64 4.0D declares the round
30267         functions but does not have definitions.
30268         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
30269         cannot be found in any library, set the output variable to
30270         "missing" instead of "".
30271         * m4/round.m4: Also use our substitute if we cannot find round in
30272         any library, even if it is declared.
30273         * m4/roundf.m4: Likewise for roundf.
30274         * m4/roundl.m4: Likewise for roundl.
30275         * lib/math.in.h: Undefine roundf, round, roundl before defining
30276         their replacements, to allow for hypothetical systems where these
30277         may be defined as macros but not available in libraries.
30278
30279 2007-10-27  Bruno Haible  <bruno@clisp.org>
30280
30281         * doc/gnulib.texi: Invoke @firstparagraphindent.
30282         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
30283         changes in gnulib.
30284         (Source changes): New section.
30285
30286 2007-10-26  Bruno Haible  <bruno@clisp.org>
30287
30288         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
30289         borrowed from autoconf.
30290
30291 2007-10-26  Bruno Haible  <bruno@clisp.org>
30292
30293         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
30294         strerror returned the empty string. Needed on HP-UX 11.00.
30295
30296 2007-10-24  Micah Cowan  <micah@cowan.name>
30297
30298         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
30299         * build-aux/bootstrap: Remove support for now-unnecessary option,
30300         --cvs-user, and envvars CVS_USER, CVS_RSH.
30301
30302 2007-10-24  Jim Meyering  <meyering@redhat.com>
30303
30304         Avoid diagnostics from sha1sum when there is no cached checksum.
30305         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
30306         if the po.s1 file hasn't been created yet.
30307
30308         * build-aux/bootstrap: Sync from coreutils:
30309         2007-10-24  Jim Meyering  <meyering@redhat.com>
30310         Get gnulib from the git repository, not from an obsolete cvs one.
30311         * build-aux/bootstrap: Suggestion from Micah Cowan.
30312         2007-10-04  Jim Meyering  <jim@meyering.net>
30313         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
30314         (update_po_files): Work also when there are no .po files in po/.
30315
30316 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
30317
30318         * README: Append ".git" to git and cg examples.
30319         Problem reported by Benoit Sigoure.
30320
30321 2007-10-23  Micah Cowan  <micah@cowan.name>
30322
30323         * users.txt: Add wget.
30324
30325 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30326
30327         Fix linking of some unistdio tests on FreeBSD.
30328         * modules/unistdio/u16-vsnprintf-tests
30329         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
30330         * modules/unistdio/u16-vsprintf-tests
30331         (test_u16_vsnprintf1_LDADD): Likewise.
30332         * modules/unistdio/u32-vsnprintf-tests
30333         (test_u32_vsnprintf1_LDADD): Likewise.
30334         * modules/unistdio/u32-vsprintf-tests
30335         (test_u32_vsprintf1_LDADD): Likewise.
30336         * modules/unistdio/u8-vsnprintf-tests
30337         (test_u8_vsnprintf1_LDADD): Likewise.
30338         * modules/unistdio/u8-vsprintf-tests
30339         (test_u8_vsprintf1_LDADD): Likewise.
30340         * modules/unistdio/ulc-vsnprintf-tests
30341         (test_ulc_vsnprintf1_LDADD): Likewise.
30342         * modules/unistdio/ulc-vsprintf-tests
30343         (test_ulc_vsprintf1_LDADD): Likewise.
30344
30345         Fix linking of some uniconv tests on FreeBSD.
30346         * modules/uniconv/u16-conv-from-enc-tests
30347         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
30348         * modules/uniconv/u16-conv-to-enc-tests
30349         (test_u16_conv_to_enc_LDADD): Likewise.
30350         * modules/uniconv/u16-strconv-from-enc-tests
30351         (test_u16_strconv_from_enc_LDADD): Likewise.
30352         * modules/uniconv/u16-strconv-to-enc-tests
30353         (test_u16_strconv_to_enc_LDADD): Likewise.
30354         * modules/uniconv/u32-conv-from-enc-tests
30355         (test_u32_conv_from_enc_LDADD): Likewise.
30356         * modules/uniconv/u32-conv-to-enc-tests
30357         (test_u32_conv_to_enc_LDADD): Likewise.
30358         * modules/uniconv/u32-strconv-from-enc-tests
30359         (test_u32_strconv_from_enc_LDADD): Likewise.
30360         * modules/uniconv/u32-strconv-to-enc-tests
30361         (test_u32_strconv_to_enc_LDADD): Likewise.
30362         * modules/uniconv/u8-conv-from-enc-tests
30363         (test_u8_conv_from_enc_LDADD): Likewise.
30364         * modules/uniconv/u8-conv-to-enc-tests
30365         (test_u8_conv_to_enc_LDADD): Likewise.
30366         * modules/uniconv/u8-strconv-from-enc-tests
30367         (test_u8_strconv_from_enc_LDADD): Likewise.
30368         * modules/uniconv/u8-strconv-to-enc-tests
30369         (test_u8_strconv_to_enc_LDADD): Likewise.
30370
30371 2007-10-22  Bruno Haible  <bruno@clisp.org>
30372
30373         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
30374         size.
30375
30376 2007-10-22  Eric Blake  <ebb9@byu.net>
30377
30378         Tweak x*printf documentation.
30379         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
30380         variable name and comments.
30381         Suggested by Bruno Haible.
30382
30383 2007-10-22  Bruno Haible  <bruno@clisp.org>
30384
30385         * lib/acl.c (copy_acl): Fix file name in comment.
30386
30387 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
30388
30389         Fix Tru64 problem with stdbool.h.
30390         * lib/stdbool.in.h (false, true):
30391         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
30392         Don't declare as an enum in this situation; it runs afoul of Tru64.
30393         Problem reported by Steven M. Schweda in
30394         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
30395
30396 2007-10-22  Eric Blake  <ebb9@byu.net>
30397
30398         Also wrap vf?printf.
30399         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
30400         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
30401         (xvprintf, xvfprintf): New functions.
30402
30403 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30404
30405         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
30406         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
30407
30408         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
30409         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
30410
30411 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
30412
30413         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
30414         by Bruno Haible.
30415
30416 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30417
30418         * lib/getloadavg.c
30419         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
30420         Undef `sys' after including sys/table.h, for Tru64 4.0D.
30421
30422         * tests/test-i-ring.c: Work for C89.
30423
30424 2007-10-22  Bruno Haible  <bruno@clisp.org>
30425
30426         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
30427         -1u, in preprocessor expression, so that we don't test for the bug
30428         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
30429         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
30430
30431 2007-10-22  Eric Blake  <ebb9@byu.net>
30432
30433         * tests/test-yesno.sh: Silence stderr during test.
30434
30435 2007-10-22  Simon Josefsson  <simon@josefsson.org>
30436
30437         * modules/crypto/gc-camellia: New file.
30438
30439         * m4/gc-camellia.m4: New file.
30440
30441         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
30442
30443         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
30444
30445 2007-10-22  Simon Josefsson  <simon@josefsson.org>
30446
30447         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
30448         --help to stdout.  Reported by sms@antinode.org (Steven
30449         M. Schweda).
30450
30451 2007-10-22  Simon Josefsson  <simon@josefsson.org>
30452
30453         * users.txt: Fix link to libksba.
30454
30455 2007-10-21  Ben Pfaff  <blp@gnu.org>
30456
30457         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
30458         round.c roundf implementation that depends on floorf and ceilf to
30459         be tested unconditionally.
30460
30461 2007-10-21  Ben Pfaff  <blp@gnu.org>
30462
30463         * m4/check-libm-func.m4: Removed.
30464         * m4/check-math-lib.m4: New file.
30465         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
30466         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
30467         definition and lack of AC_LIBOBJ([roundf]).
30468         * m4/roundl.m4: Ditto, and similarly for roundl.
30469         * modules/round: Reference new m4 file.
30470         * modules/roundf: Ditto.
30471         * modules/roundl: Ditto.
30472         * tests/test-round2.c (main): Use ROUND instead of round.
30473         Bug report from Bruno Haible.
30474
30475 2007-10-21  Bruno Haible  <bruno@clisp.org>
30476
30477         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
30478         context.
30479
30480 2007-10-21  Bruno Haible  <bruno@clisp.org>
30481
30482         * tests/test-wcwidth.c (main): Allow negative result for some control
30483         characters.
30484
30485         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
30486         Needed on OSF/1 5.1.
30487
30488 2007-10-21  Bruno Haible  <bruno@clisp.org>
30489
30490         * tests/test-floorf1.c: Include isnanf.h.
30491         (main): Use isnanf() instead of isnan().
30492         * tests/test-ceilf1.c: Include isnanf.h.
30493         (main): Use isnanf() instead of isnan().
30494         * tests/test-truncf1.c: Include isnanf.h.
30495         (main): Use isnanf() instead of isnan().
30496         * tests/test-roundf1.c: Include isnanf.h.
30497         (main): Use isnanf() instead of isnan().
30498
30499 2007-10-21  Eric Blake  <ebb9@byu.net>
30500
30501         * users.txt: Update URL for m4.
30502
30503 2007-10-21  Bruno Haible  <bruno@clisp.org>
30504
30505         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
30506
30507 2007-10-21  Bruno Haible  <bruno@clisp.org>
30508
30509         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
30510         Git's management files if the CVS files are not present.
30511
30512 2007-10-20  Bruno Haible  <bruno@clisp.org>
30513
30514         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
30515         gcc-3.4.x.
30516
30517 2007-10-20  Ben Pfaff  <blp@gnu.org>
30518
30519         * lib/math.in.h: Declare round, roundf, roundl if we are providing
30520         implementations.
30521         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
30522         * lib/round.c: New file.
30523         * lib/roundf.c: New file.
30524         * lib/roundl.c: New file.
30525         * m4/round.m4: New file.
30526         * m4/roundf.m4: New file.
30527         * m4/roundl.m4: New file.
30528         * m4/check-libm-func-m4: New file.
30529         * modules/math: Replace round, roundf, roundl related @VARS@ in
30530         math.in.h.
30531         * modules/round: New file.
30532         * modules/round-tests: New file.
30533         * modules/roundf: New file.
30534         * modules/roundf-tests: New file.
30535         * modules/roundl: New file.
30536         * modules/roundl-tests: New file.
30537         * tests/test-round1.c: New file.
30538         * tests/test-round2.c: New file.
30539         * tests/test-roundf1.c: New file.
30540         * tests/test-roundf2.c: New file.
30541         * tests/test-roundl.c: New file.
30542         * doc/functions/round.texi: Mention round module.
30543         * doc/functions/roundf.texi: Mention roundf module.
30544         * doc/functions/roundl.texi: Mention roundl module.
30545         * MODULES.html.sh: Mention new modules.
30546         Thanks to Bruno Haible for suggestions.
30547
30548 2007-10-20  Jim Meyering  <meyering@redhat.com>
30549
30550         * lib/xprintf.c: Include <config.h> unconditionally.
30551
30552         Change xprintf's license to GPL.
30553         * modules/xprintf (License): s/LGPL/GPL/, since this module
30554         depends on modules (exit and exitfail) which are GPL.
30555         Suggestion from Bruno Haible.
30556
30557         xprintf fixes.
30558         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
30559         Use a clearer diagnostic.
30560         Patch from Bruno Haible.
30561
30562 2007-10-20  Bruno Haible  <bruno@clisp.org>
30563
30564         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
30565         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
30566         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30567
30568 2007-10-20  Bruno Haible  <bruno@clisp.org>
30569
30570         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
30571         precision in the comparison result > x - 1 or similar.
30572         * tests/test-ceilf2.c (correct_result_p): Likewise.
30573         * tests/test-truncf2.c (correct_result_p): Likewise.
30574         * tests/test-trunc2.c (correct_result_p): Likewise.
30575         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30576
30577 2007-10-20  Bruno Haible  <bruno@clisp.org>
30578
30579         * modules/ceil: New file.
30580         * m4/ceil.m4: New file.
30581         * doc/functions/ceil.texi: Mention the 'ceil' module.
30582
30583 2007-10-20  Bruno Haible  <bruno@clisp.org>
30584
30585         * modules/floor: New file.
30586         * m4/floor.m4: New file.
30587         * doc/functions/floor.texi: Mention the 'floor' module.
30588
30589 2007-10-20  Bruno Haible  <bruno@clisp.org>
30590
30591         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
30592         of %a.
30593         * modules/floorf-tests (Depends-on): Likewise.
30594         * modules/truncf-tests (Depends-on): Likewise.
30595         * modules/trunc-tests (Depends-on): Likewise.
30596         Reported by Ben Pfaff.
30597
30598 2007-10-19  Jim Meyering  <meyering@redhat.com>
30599
30600         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
30601         Don't bother testing specific errno values.  Just test ferror.
30602
30603         New module: xprintf
30604         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
30605
30606 2007-10-19  Bruno Haible  <bruno@clisp.org>
30607
30608         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
30609         syntax.
30610         * modules/javaexec (Makefile.am): Likewise.
30611         * modules/relocatable-prog (Makefile.am): Likewise.
30612         Suggested by Jim Meyering.
30613
30614 2007-10-18  Bruno Haible  <bruno@clisp.org>
30615
30616         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
30617         Reported by Jim Meyering.
30618
30619 2007-10-18  Eric Blake  <ebb9@byu.net>
30620
30621         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
30622
30623 2007-10-18  Bruno Haible  <bruno@clisp.org>
30624
30625         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
30626         the format string into writable memory. Needed in Fortify conditions.
30627
30628 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
30629             Bruno Haible  <bruno@clisp.org>
30630
30631         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
30632         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
30633         * modules/trim (Depends-on): Add mbchar.
30634         (configure.ac): Add gl_FUNC_MBRTOWC.
30635         (Makefile.am): Augment lib_SOURCES.
30636
30637 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
30638
30639         Modify glob.c to use fstatat and dirfd, to simplify it.
30640         Suggested by Eric Blake.
30641         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
30642         Don't include <stdbool.h>; not used.
30643         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
30644         (link_exists_p): Simplify implementation, since we can now assume
30645         dirfd and fstatat.
30646         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
30647
30648 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30649
30650         * gnulib-tool (func_get_dependencies): Fix sed script to
30651         match only tests.
30652
30653 2007-10-17  Bruno Haible  <bruno@clisp.org>
30654
30655         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
30656         allow locale names without encoding suffix.
30657         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
30658         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
30659
30660 2007-10-16  Bruno Haible  <bruno@clisp.org>
30661
30662         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
30663         * lib/getgroups.c (getgroups): Likewise.
30664         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
30665
30666 2007-10-16  Bruno Haible  <bruno@clisp.org>
30667
30668         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
30669         * modules/malloc-posix (License): Likewise.
30670         * modules/realloc-posix (License): Likewise.
30671         * modules/calloc-posix (License): Likewise.
30672         * modules/intprops (License): Change from GPL to LGPL, with
30673         Paul Eggert's approval.
30674
30675 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
30676
30677         Merge glibc changes into lib/glob.c.
30678
30679         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
30680         2007-10-15 04:59:03 UTC.  Here are the changes:
30681
30682         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
30683
30684         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
30685
30686         * lib/glob.c: Add some branch prediction throughout.
30687
30688         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
30689
30690         [BZ #5103]
30691         * lib/glob.c (glob): Recognize patterns starting \/.
30692
30693         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
30694
30695         [BZ #3996]
30696         * lib/glob.c (attribute_hidden): Define if not defined.
30697         (glob): Unescape dirname, filename or username when needed and not
30698         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
30699         is NULL.  Handle unescaped [ in pattern without closing ].
30700         Don't pass GLOB_CHECK down to recursive glob for directories.
30701         (__glob_pattern_type): New function.
30702         (__glob_pattern_p): Implement using __glob_pattern_type.
30703         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
30704         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
30705         Remove unreachable code.
30706
30707         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
30708
30709         * lib/glob.c (glob_in_dir): Add some comments and asserts to
30710         explain why there are no leaks.
30711
30712         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
30713
30714         [BZ #3253]
30715         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
30716         time, rather allocate increasingly bigger arrays of pointers, if
30717         possible with alloca, if too large with malloc.
30718
30719 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
30720
30721         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
30722         Problem reported by H.Merijn Brand in
30723         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
30724         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
30725         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
30726
30727 2007-10-15  Bruno Haible  <bruno@clisp.org>
30728
30729         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
30730         with explicit rpl_ prefix.
30731         * lib/fopen.c (fopen): Likewise.
30732         * lib/freopen.c (freopen): Likewise.
30733         * lib/iconv.c (iconv): Likewise.
30734         * lib/iconv_close.c (iconv_close): Likewise.
30735
30736 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30737
30738         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
30739
30740 2007-10-15  Bruno Haible  <bruno@clisp.org>
30741
30742         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
30743         <stddef.h> instead of <stdlib.h> since we only need NULL.
30744         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30745
30746 2007-10-15  Bruno Haible  <bruno@clisp.org>
30747
30748         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
30749         Replace paragraph talking about LIBOBJS.
30750         Reported by Colin Watson <cjwatson@debian.org>.
30751
30752 2007-10-15  Bruno Haible  <bruno@clisp.org>
30753
30754         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
30755         <stdlib.h> before using NULL.
30756
30757 2007-10-15  Simon Josefsson  <simon@josefsson.org>
30758
30759         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
30760         Reported by Albert Chin <china@thewrittenword.com>.
30761
30762 2007-10-14  Bruno Haible  <bruno@clisp.org>
30763
30764         * modules/iconv_open-utf-tests: New file.
30765         * tests/test-iconv-utf.c: New file.
30766
30767         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
30768         * modules/iconv_open-utf: New file.
30769         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
30770         (iconv, iconv_close): New declarations.
30771         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
30772         be defined.
30773         (iconv_open): Add special handling of conversion between UTF-8 and
30774         UTF-{16,32}{BE,LE}.
30775         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
30776         * lib/iconv_close.c: New file.
30777         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
30778         gl_FUNC_ICONV_OPEN.
30779         (gl_FUNC_ICONV_OPEN): Use it.
30780         (gl_FUNC_ICONV_OPEN_UTF): New macro.
30781         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
30782         and REPLACE_ICONV_UTF.
30783         * modules/iconv_open (Depends-on): Add c-strcase.
30784         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
30785         ICONV_CONST.
30786         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
30787
30788 2007-10-13  Albert Chin  <china@thewrittenword.com>
30789             Bruno Haible  <bruno@clisp.org>
30790
30791         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
30792         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
30793
30794 2007-10-13  Bruno Haible  <bruno@clisp.org>
30795
30796         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
30797         defined, use the ISO C99 inline semantics.
30798         * lib/argp.h (ARGP_EI): Likewise.
30799
30800 2007-10-13  Bruno Haible  <bruno@clisp.org>
30801
30802         Handle 'inline' change in gcc 4.3.0.
30803         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
30804         argp_fmtstream_write, argp_fmtstream_set_lmargin,
30805         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
30806         argp_fmtstream_point): Disable 'extern' declaration if the function
30807         definition is going to be provided inline.
30808         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
30809         semantics, not the ISO C99 inline semantics.
30810         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
30811         'extern' declaration if the function definition is going to be provided
30812         inline.
30813         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
30814         the GNU C inline semantics, not the ISO C99 inline semantics. With
30815         GCC 4.2, avoid a warning.
30816
30817 2007-10-13  Bruno Haible  <bruno@clisp.org>
30818
30819         * lib/freading.h (freading): Enable the use of __freading for
30820         glibc >= 2.7.
30821         * lib/freading.c (freading): Likewise.
30822
30823 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
30824
30825         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
30826         "warning: C99 inline functions are not supported; using GNU89".
30827
30828 2007-10-12  Bruno Haible  <bruno@clisp.org>
30829
30830         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
30831         of 2.
30832         * tests/test-ceilf2.c: New file.
30833         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
30834
30835         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
30836         * modules/ceilf-tests: Update.
30837
30838 2007-10-12  Bruno Haible  <bruno@clisp.org>
30839
30840         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
30841         of 2.
30842         * tests/test-floorf2.c: New file.
30843         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
30844
30845         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
30846         * modules/floorf-tests: Update.
30847
30848 2007-10-12  Bruno Haible  <bruno@clisp.org>
30849
30850         * tests/test-trunc2.c: New file.
30851         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
30852
30853         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
30854         * modules/trunc-tests: Update.
30855
30856 2007-10-12  Bruno Haible  <bruno@clisp.org>
30857
30858         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
30859         of 2.
30860         * tests/test-truncf2.c: New file.
30861         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
30862
30863         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
30864         * modules/truncf-tests: Update.
30865
30866 2007-10-11  Eric Blake  <ebb9@byu.net>
30867
30868         Don't claim strerror is broken on Interix.
30869         * doc/functions/strerror.texi (strerror): Known broken systems are
30870         now Solaris 8, and not Interix.
30871         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
30872         Interix on cross-compile.
30873         Reported by Martin Koeppe in
30874         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
30875
30876 2007-10-11  Bruno Haible  <bruno@clisp.org>
30877
30878         * modules/i-ring-tests: New file.
30879         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
30880         instead of assert.
30881
30882 2007-10-11  Bruno Haible  <bruno@clisp.org>
30883
30884         * modules/filenamecat-tests: New file.
30885         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
30886         * lib/filenamecat.c: Remove test code.
30887
30888 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
30889
30890         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
30891
30892         * lib/strerror.c: Include <string.h> always, to test interface,
30893         and to remove the need for the dummy.
30894         Include intprops.h to compute width instead of doing it ourselves
30895         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
30896         (strerror): Define it to return NULL if there's no system strerror.
30897         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
30898         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
30899         ancient pre-strerror Unix systems well any more.  Saying "unknown
30900         system error" is enough.
30901         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
30902         simpler strerror.c implementation.
30903         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
30904         Simplify the tests to reflect the simpler strerror implementation.
30905         * modules/strerror (Depends-on): Add intprops.
30906
30907 2007-10-09  Eric Blake  <ebb9@byu.net>
30908
30909         Silence test-fpending.
30910         * modules/fpending-tests (Files): Add wrapper script.
30911         * tests/test-fpending.sh: New file.
30912
30913 2007-10-09  Bruno Haible  <bruno@clisp.org>
30914
30915         * MODULES.html.sh (func_module): Don't create a hyperlink for
30916         function names like 'printf_frexp'.
30917         (Misc): Add crc, memxor.
30918         (Characteristics of floating types): New section.
30919         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
30920         isnanf-nolibm, signbit, trunc, truncf, truncl.
30921         (Enhancements for ISO C 99 functions): New subsection Input/output.
30922         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
30923         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
30924         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
30925         (Compatibility checks for POSIX:2001 functions): Add clock-time.
30926         (Enhancements for POSIX:2001 functions): Add chdir-long.
30927         (File system functions): Add areadlink, chdir-safer, read-file.
30928         Remove cycle-check.
30929         (File system as inode set): New section.
30930         (Date and time): Add gethrxtime.
30931         (Multithreading): Add openmp.
30932         (Internationalization functions): Add localename.
30933         (Unicode string functions): Add unistr/u*-mbsnlen.
30934         (Support for maintaining and releasing projects): Add git-version-gen.
30935         (Lone files): Remove directories.
30936
30937 2007-10-08  Ben Pfaff  <blp@gnu.org>
30938
30939         * lib/xmalloca.h: Fix typo in comment.
30940
30941 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
30942
30943         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
30944         when avoiding problems with integer overflow.  Use a portable test
30945         instead.
30946
30947 2007-10-08  Simon Josefsson  <simon@josefsson.org>
30948
30949         * modules/dummy (License): Change to LGPLv2+.
30950         * modules/float (License): Likewise
30951         * modules/realloc (License): Likewise
30952         * modules/stdlib (License): Likewise
30953
30954 2007-10-07  Bruno Haible  <bruno@clisp.org>
30955
30956         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
30957         * floor.c (TWO_MANT_DIG): Likewise.
30958         * ceil.c (TWO_MANT_DIG): Likewise.
30959         Reported by Ben Pfaff.
30960
30961 2007-10-07  Bruno Haible  <bruno@clisp.org>
30962
30963         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
30964         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
30965         * lib/frexp.c (FUNC): Likewise.
30966         * lib/printf-frexp.h (printf_frexp): Likewise.
30967         * lib/printf-frexpl.h (printf_frexpl): Likewise.
30968         * lib/printf-frexp.c (FUNC): Likewise.
30969         Suggested by Jim Meyering.
30970
30971 2007-10-07  Jim Meyering  <meyering@redhat.com>
30972
30973         Make xnanosleep's integer overflow test more robust.
30974         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
30975         so that gcc-4.3.0 doesn't optimize away this test for overflow.
30976
30977 2007-10-07  Bruno Haible  <bruno@clisp.org>
30978
30979         * NEWS: Mention the license change.
30980
30981         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
30982         abbreviations in the modules files.
30983
30984         Change copyright notice from GPLv2+ to GPLv3+.
30985         * README: Change copyright notice.
30986         * MODULES.html.sh: Likewise.
30987         * build-aux/bootstrap.conf: Likewise.
30988         * build-aux/config.libpath: Likewise.
30989         * build-aux/csharpcomp.sh.in: Likewise.
30990         * build-aux/csharpexec.sh.in: Likewise.
30991         * build-aux/install-reloc: Likewise.
30992         * build-aux/javacomp.sh.in: Likewise.
30993         * build-aux/javaexec.sh.in: Likewise.
30994         * build-aux/ldd.sh.in: Likewise.
30995         * build-aux/reloc-ldflags: Likewise.
30996         * build-aux/relocatable.sh.in: Likewise.
30997         * build-aux/x-to-1.in: Likewise.
30998         * check-module: Likewise.
30999         * config/srclistvars.sh: Likewise.
31000         * gnulib-tool: Likewise.
31001         * lib/acl-internal.h: Likewise.
31002         * lib/acl.c: Likewise.
31003         * lib/acl.h: Likewise.
31004         * lib/acl_entries.c: Likewise.
31005         * lib/areadlink-with-size.c: Likewise.
31006         * lib/areadlink.c: Likewise.
31007         * lib/areadlink.h: Likewise.
31008         * lib/argmatch.c: Likewise.
31009         * lib/argmatch.h: Likewise.
31010         * lib/argp-ba.c: Likewise.
31011         * lib/argp-eexst.c: Likewise.
31012         * lib/argp-fmtstream.c: Likewise.
31013         * lib/argp-fmtstream.h: Likewise.
31014         * lib/argp-fs-xinl.c: Likewise.
31015         * lib/argp-help.c: Likewise.
31016         * lib/argp-namefrob.h: Likewise.
31017         * lib/argp-parse.c: Likewise.
31018         * lib/argp-pin.c: Likewise.
31019         * lib/argp-pv.c: Likewise.
31020         * lib/argp-pvh.c: Likewise.
31021         * lib/argp-xinl.c: Likewise.
31022         * lib/argp.h: Likewise.
31023         * lib/at-func.c: Likewise.
31024         * lib/atanl.c: Likewise.
31025         * lib/backupfile.c: Likewise.
31026         * lib/backupfile.h: Likewise.
31027         * lib/basename.c: Likewise.
31028         * lib/binary-io.h: Likewise.
31029         * lib/byteswap.in.h: Likewise.
31030         * lib/c-stack.c: Likewise.
31031         * lib/c-stack.h: Likewise.
31032         * lib/c-strcasestr.c: Likewise.
31033         * lib/c-strcasestr.h: Likewise.
31034         * lib/c-strstr.c: Likewise.
31035         * lib/c-strstr.h: Likewise.
31036         * lib/c-strtod.c: Likewise.
31037         * lib/calloc.c: Likewise.
31038         * lib/canon-host.c: Likewise.
31039         * lib/canon-host.h: Likewise.
31040         * lib/canonicalize-lgpl.c: Likewise.
31041         * lib/canonicalize.c: Likewise.
31042         * lib/canonicalize.h: Likewise.
31043         * lib/ceil.c: Likewise.
31044         * lib/ceilf.c: Likewise.
31045         * lib/ceill.c: Likewise.
31046         * lib/chdir-long.c: Likewise.
31047         * lib/chdir-long.h: Likewise.
31048         * lib/chdir-safer.c: Likewise.
31049         * lib/chdir-safer.h: Likewise.
31050         * lib/chown.c: Likewise.
31051         * lib/classpath.c: Likewise.
31052         * lib/classpath.h: Likewise.
31053         * lib/clean-temp.c: Likewise.
31054         * lib/clean-temp.h: Likewise.
31055         * lib/cloexec.c: Likewise.
31056         * lib/close-stream.c: Likewise.
31057         * lib/closein.c: Likewise.
31058         * lib/closein.h: Likewise.
31059         * lib/closeout.c: Likewise.
31060         * lib/closeout.h: Likewise.
31061         * lib/concat-filename.c: Likewise.
31062         * lib/copy-file.c: Likewise.
31063         * lib/copy-file.h: Likewise.
31064         * lib/count-one-bits.h: Likewise.
31065         * lib/crc.c: Likewise.
31066         * lib/crc.h: Likewise.
31067         * lib/creat-safer.c: Likewise.
31068         * lib/csharpcomp.c: Likewise.
31069         * lib/csharpcomp.h: Likewise.
31070         * lib/csharpexec.c: Likewise.
31071         * lib/csharpexec.h: Likewise.
31072         * lib/cycle-check.c: Likewise.
31073         * lib/cycle-check.h: Likewise.
31074         * lib/diacrit.c: Likewise.
31075         * lib/diacrit.h: Likewise.
31076         * lib/diffseq.h: Likewise.
31077         * lib/dirchownmod.c: Likewise.
31078         * lib/dirent.in.h: Likewise.
31079         * lib/dirfd.c: Likewise.
31080         * lib/dirfd.h: Likewise.
31081         * lib/dirname.c: Likewise.
31082         * lib/dirname.h: Likewise.
31083         * lib/dummy.c: Likewise.
31084         * lib/dup-safer.c: Likewise.
31085         * lib/dup2.c: Likewise.
31086         * lib/eealloc.h: Likewise.
31087         * lib/error.c: Likewise.
31088         * lib/error.h: Likewise.
31089         * lib/euidaccess.c: Likewise.
31090         * lib/exclude.c: Likewise.
31091         * lib/exclude.h: Likewise.
31092         * lib/execute.c: Likewise.
31093         * lib/execute.h: Likewise.
31094         * lib/exitfail.c: Likewise.
31095         * lib/exitfail.h: Likewise.
31096         * lib/expl.c: Likewise.
31097         * lib/fatal-signal.c: Likewise.
31098         * lib/fatal-signal.h: Likewise.
31099         * lib/fbufmode.c: Likewise.
31100         * lib/fbufmode.h: Likewise.
31101         * lib/fchdir.c: Likewise.
31102         * lib/fchmodat.c: Likewise.
31103         * lib/fchownat.c: Likewise.
31104         * lib/fcntl--.h: Likewise.
31105         * lib/fcntl-safer.h: Likewise.
31106         * lib/fcntl.in.h: Likewise.
31107         * lib/fd-safer.c: Likewise.
31108         * lib/fflush.c: Likewise.
31109         * lib/file-has-acl.c: Likewise.
31110         * lib/file-set.c: Likewise.
31111         * lib/file-type.c: Likewise.
31112         * lib/file-type.h: Likewise.
31113         * lib/fileblocks.c: Likewise.
31114         * lib/filemode.c: Likewise.
31115         * lib/filemode.h: Likewise.
31116         * lib/filename.h: Likewise.
31117         * lib/filenamecat.c: Likewise.
31118         * lib/filenamecat.h: Likewise.
31119         * lib/findprog.c: Likewise.
31120         * lib/findprog.h: Likewise.
31121         * lib/float.in.h: Likewise.
31122         * lib/floor.c: Likewise.
31123         * lib/floorf.c: Likewise.
31124         * lib/floorl.c: Likewise.
31125         * lib/fopen-safer.c: Likewise.
31126         * lib/fopen.c: Likewise.
31127         * lib/fpending.c: Likewise.
31128         * lib/fpending.h: Likewise.
31129         * lib/fprintf.c: Likewise.
31130         * lib/fprintftime.h: Likewise.
31131         * lib/fpucw.h: Likewise.
31132         * lib/fpurge.c: Likewise.
31133         * lib/fpurge.h: Likewise.
31134         * lib/freadable.c: Likewise.
31135         * lib/freadable.h: Likewise.
31136         * lib/freadahead.c: Likewise.
31137         * lib/freadahead.h: Likewise.
31138         * lib/freading.c: Likewise.
31139         * lib/freading.h: Likewise.
31140         * lib/free.c: Likewise.
31141         * lib/freopen.c: Likewise.
31142         * lib/frexp.c: Likewise.
31143         * lib/frexpl.c: Likewise.
31144         * lib/fseek.c: Likewise.
31145         * lib/fseterr.c: Likewise.
31146         * lib/fseterr.h: Likewise.
31147         * lib/fstatat.c: Likewise.
31148         * lib/fstrcmp.c: Likewise.
31149         * lib/fstrcmp.h: Likewise.
31150         * lib/fsusage.c: Likewise.
31151         * lib/fsusage.h: Likewise.
31152         * lib/ftell.c: Likewise.
31153         * lib/ftello.c: Likewise.
31154         * lib/fts-cycle.c: Likewise.
31155         * lib/fts.c: Likewise.
31156         * lib/fts_.h: Likewise.
31157         * lib/full-read.c: Likewise.
31158         * lib/full-read.h: Likewise.
31159         * lib/full-write.c: Likewise.
31160         * lib/full-write.h: Likewise.
31161         * lib/fwritable.c: Likewise.
31162         * lib/fwritable.h: Likewise.
31163         * lib/fwriteerror.c: Likewise.
31164         * lib/fwriteerror.h: Likewise.
31165         * lib/fwriting.c: Likewise.
31166         * lib/fwriting.h: Likewise.
31167         * lib/gcd.c: Likewise.
31168         * lib/gcd.h: Likewise.
31169         * lib/getcwd.c: Likewise.
31170         * lib/getdate.h: Likewise.
31171         * lib/getdate.y: Likewise.
31172         * lib/getdomainname.c: Likewise.
31173         * lib/getdomainname.h: Likewise.
31174         * lib/getgroups.c: Likewise.
31175         * lib/gethostname.c: Likewise.
31176         * lib/gethrxtime.c: Likewise.
31177         * lib/gethrxtime.h: Likewise.
31178         * lib/getloadavg.c: Likewise.
31179         * lib/getndelim2.c: Likewise.
31180         * lib/getndelim2.h: Likewise.
31181         * lib/getnline.c: Likewise.
31182         * lib/getnline.h: Likewise.
31183         * lib/getopt.c: Likewise.
31184         * lib/getopt.in.h: Likewise.
31185         * lib/getopt1.c: Likewise.
31186         * lib/getopt_int.h: Likewise.
31187         * lib/getpagesize.h: Likewise.
31188         * lib/getsubopt.c: Likewise.
31189         * lib/gettime.c: Likewise.
31190         * lib/getugroups.c: Likewise.
31191         * lib/getugroups.h: Likewise.
31192         * lib/getusershell.c: Likewise.
31193         * lib/gl_anyavltree_list1.h: Likewise.
31194         * lib/gl_anyavltree_list2.h: Likewise.
31195         * lib/gl_anyhash_list1.h: Likewise.
31196         * lib/gl_anyhash_list2.h: Likewise.
31197         * lib/gl_anylinked_list1.h: Likewise.
31198         * lib/gl_anylinked_list2.h: Likewise.
31199         * lib/gl_anyrbtree_list1.h: Likewise.
31200         * lib/gl_anyrbtree_list2.h: Likewise.
31201         * lib/gl_anytree_list1.h: Likewise.
31202         * lib/gl_anytree_list2.h: Likewise.
31203         * lib/gl_anytree_oset.h: Likewise.
31204         * lib/gl_anytreehash_list1.h: Likewise.
31205         * lib/gl_anytreehash_list2.h: Likewise.
31206         * lib/gl_array_list.c: Likewise.
31207         * lib/gl_array_list.h: Likewise.
31208         * lib/gl_array_oset.c: Likewise.
31209         * lib/gl_array_oset.h: Likewise.
31210         * lib/gl_avltree_list.c: Likewise.
31211         * lib/gl_avltree_list.h: Likewise.
31212         * lib/gl_avltree_oset.c: Likewise.
31213         * lib/gl_avltree_oset.h: Likewise.
31214         * lib/gl_avltreehash_list.c: Likewise.
31215         * lib/gl_avltreehash_list.h: Likewise.
31216         * lib/gl_carray_list.c: Likewise.
31217         * lib/gl_carray_list.h: Likewise.
31218         * lib/gl_linked_list.c: Likewise.
31219         * lib/gl_linked_list.h: Likewise.
31220         * lib/gl_linkedhash_list.c: Likewise.
31221         * lib/gl_linkedhash_list.h: Likewise.
31222         * lib/gl_list.c: Likewise.
31223         * lib/gl_list.h: Likewise.
31224         * lib/gl_oset.c: Likewise.
31225         * lib/gl_oset.h: Likewise.
31226         * lib/gl_rbtree_list.c: Likewise.
31227         * lib/gl_rbtree_list.h: Likewise.
31228         * lib/gl_rbtree_oset.c: Likewise.
31229         * lib/gl_rbtree_oset.h: Likewise.
31230         * lib/gl_rbtreehash_list.c: Likewise.
31231         * lib/gl_rbtreehash_list.h: Likewise.
31232         * lib/gl_sublist.c: Likewise.
31233         * lib/gl_sublist.h: Likewise.
31234         * lib/group-member.c: Likewise.
31235         * lib/group-member.h: Likewise.
31236         * lib/hard-locale.c: Likewise.
31237         * lib/hard-locale.h: Likewise.
31238         * lib/hash-pjw.c: Likewise.
31239         * lib/hash-pjw.h: Likewise.
31240         * lib/hash-triple.c: Likewise.
31241         * lib/hash.c: Likewise.
31242         * lib/hash.h: Likewise.
31243         * lib/human.c: Likewise.
31244         * lib/human.h: Likewise.
31245         * lib/i-ring.c: Likewise.
31246         * lib/i-ring.h: Likewise.
31247         * lib/idcache.c: Likewise.
31248         * lib/imaxabs.c: Likewise.
31249         * lib/imaxdiv.c: Likewise.
31250         * lib/inet_pton.c: Likewise.
31251         * lib/inet_pton.h: Likewise.
31252         * lib/intprops.h: Likewise.
31253         * lib/inttostr.c: Likewise.
31254         * lib/inttostr.h: Likewise.
31255         * lib/inttypes.in.h: Likewise.
31256         * lib/isapipe.c: Likewise.
31257         * lib/isdir.c: Likewise.
31258         * lib/isnan.c: Likewise.
31259         * lib/isnan.h: Likewise.
31260         * lib/isnanf.c: Likewise.
31261         * lib/isnanf.h: Likewise.
31262         * lib/isnanl-nolibm.h: Likewise.
31263         * lib/isnanl.c: Likewise.
31264         * lib/isnanl.h: Likewise.
31265         * lib/javacomp.c: Likewise.
31266         * lib/javacomp.h: Likewise.
31267         * lib/javaexec.c: Likewise.
31268         * lib/javaexec.h: Likewise.
31269         * lib/javaversion.c: Likewise.
31270         * lib/javaversion.h: Likewise.
31271         * lib/javaversion.java: Likewise.
31272         * lib/lbrkprop.h: Likewise.
31273         * lib/lchmod.h: Likewise.
31274         * lib/lchown.c: Likewise.
31275         * lib/ldexpl.c: Likewise.
31276         * lib/linebreak.c: Likewise.
31277         * lib/linebreak.h: Likewise.
31278         * lib/linebuffer.c: Likewise.
31279         * lib/linebuffer.h: Likewise.
31280         * lib/locale.in.h: Likewise.
31281         * lib/logl.c: Likewise.
31282         * lib/long-options.c: Likewise.
31283         * lib/long-options.h: Likewise.
31284         * lib/lstat.c: Likewise.
31285         * lib/lstat.h: Likewise.
31286         * lib/math.in.h: Likewise.
31287         * lib/mbchar.c: Likewise.
31288         * lib/mbchar.h: Likewise.
31289         * lib/mbfile.h: Likewise.
31290         * lib/mbiter.h: Likewise.
31291         * lib/mbscasecmp.c: Likewise.
31292         * lib/mbscasestr.c: Likewise.
31293         * lib/mbschr.c: Likewise.
31294         * lib/mbscspn.c: Likewise.
31295         * lib/mbslen.c: Likewise.
31296         * lib/mbsncasecmp.c: Likewise.
31297         * lib/mbsnlen.c: Likewise.
31298         * lib/mbspbrk.c: Likewise.
31299         * lib/mbspcasecmp.c: Likewise.
31300         * lib/mbsrchr.c: Likewise.
31301         * lib/mbssep.c: Likewise.
31302         * lib/mbsspn.c: Likewise.
31303         * lib/mbsstr.c: Likewise.
31304         * lib/mbstok_r.c: Likewise.
31305         * lib/mbswidth.c: Likewise.
31306         * lib/mbswidth.h: Likewise.
31307         * lib/mbuiter.h: Likewise.
31308         * lib/memcasecmp.c: Likewise.
31309         * lib/memcasecmp.h: Likewise.
31310         * lib/memchr.c: Likewise.
31311         * lib/memcmp.c: Likewise.
31312         * lib/memcoll.c: Likewise.
31313         * lib/memcoll.h: Likewise.
31314         * lib/memcpy.c: Likewise.
31315         * lib/memrchr.c: Likewise.
31316         * lib/mkancesdirs.c: Likewise.
31317         * lib/mkdir-p.c: Likewise.
31318         * lib/mkdir-p.h: Likewise.
31319         * lib/mkdir.c: Likewise.
31320         * lib/mkdirat.c: Likewise.
31321         * lib/mkdtemp.c: Likewise.
31322         * lib/mkstemp-safer.c: Likewise.
31323         * lib/mkstemp.c: Likewise.
31324         * lib/modechange.c: Likewise.
31325         * lib/modechange.h: Likewise.
31326         * lib/mountlist.c: Likewise.
31327         * lib/mountlist.h: Likewise.
31328         * lib/mpsort.c: Likewise.
31329         * lib/nanosleep.c: Likewise.
31330         * lib/obstack.c: Likewise.
31331         * lib/obstack.h: Likewise.
31332         * lib/open-safer.c: Likewise.
31333         * lib/open.c: Likewise.
31334         * lib/openat-die.c: Likewise.
31335         * lib/openat-priv.h: Likewise.
31336         * lib/openat-proc.c: Likewise.
31337         * lib/openat.c: Likewise.
31338         * lib/openat.h: Likewise.
31339         * lib/pagealign_alloc.c: Likewise.
31340         * lib/pagealign_alloc.h: Likewise.
31341         * lib/physmem.c: Likewise.
31342         * lib/physmem.h: Likewise.
31343         * lib/pipe-safer.c: Likewise.
31344         * lib/pipe.c: Likewise.
31345         * lib/pipe.h: Likewise.
31346         * lib/posixtm.c: Likewise.
31347         * lib/posixtm.h: Likewise.
31348         * lib/posixver.c: Likewise.
31349         * lib/printf-frexp.c: Likewise.
31350         * lib/printf-frexp.h: Likewise.
31351         * lib/printf-frexpl.c: Likewise.
31352         * lib/printf-frexpl.h: Likewise.
31353         * lib/printf.c: Likewise.
31354         * lib/progname.c: Likewise.
31355         * lib/progname.h: Likewise.
31356         * lib/progreloc.c: Likewise.
31357         * lib/putenv.c: Likewise.
31358         * lib/quote.c: Likewise.
31359         * lib/quote.h: Likewise.
31360         * lib/quotearg.c: Likewise.
31361         * lib/quotearg.h: Likewise.
31362         * lib/raise.c: Likewise.
31363         * lib/readline.c: Likewise.
31364         * lib/readline.h: Likewise.
31365         * lib/readlink.c: Likewise.
31366         * lib/readtokens.c: Likewise.
31367         * lib/readtokens.h: Likewise.
31368         * lib/readtokens0.c: Likewise.
31369         * lib/readtokens0.h: Likewise.
31370         * lib/readutmp.c: Likewise.
31371         * lib/readutmp.h: Likewise.
31372         * lib/realloc.c: Likewise.
31373         * lib/relocwrapper.c: Likewise.
31374         * lib/rename-dest-slash.c: Likewise.
31375         * lib/rename.c: Likewise.
31376         * lib/rmdir.c: Likewise.
31377         * lib/rpmatch.c: Likewise.
31378         * lib/safe-read.c: Likewise.
31379         * lib/safe-read.h: Likewise.
31380         * lib/safe-write.c: Likewise.
31381         * lib/safe-write.h: Likewise.
31382         * lib/same-inode.h: Likewise.
31383         * lib/same.c: Likewise.
31384         * lib/same.h: Likewise.
31385         * lib/save-cwd.c: Likewise.
31386         * lib/save-cwd.h: Likewise.
31387         * lib/savedir.c: Likewise.
31388         * lib/savedir.h: Likewise.
31389         * lib/savewd.c: Likewise.
31390         * lib/savewd.h: Likewise.
31391         * lib/search.in.h: Likewise.
31392         * lib/setenv.c: Likewise.
31393         * lib/setenv.h: Likewise.
31394         * lib/settime.c: Likewise.
31395         * lib/sh-quote.c: Likewise.
31396         * lib/sh-quote.h: Likewise.
31397         * lib/sig2str.c: Likewise.
31398         * lib/sig2str.h: Likewise.
31399         * lib/signal.in.h: Likewise.
31400         * lib/signbitd.c: Likewise.
31401         * lib/signbitf.c: Likewise.
31402         * lib/signbitl.c: Likewise.
31403         * lib/sigprocmask.c: Likewise.
31404         * lib/sincosl.c: Likewise.
31405         * lib/sleep.c: Likewise.
31406         * lib/sprintf.c: Likewise.
31407         * lib/sqrtl.c: Likewise.
31408         * lib/stat-time.h: Likewise.
31409         * lib/stdio--.h: Likewise.
31410         * lib/stdio-safer.h: Likewise.
31411         * lib/stdlib--.h: Likewise.
31412         * lib/stdlib-safer.h: Likewise.
31413         * lib/stdlib.in.h: Likewise.
31414         * lib/stpcpy.c: Likewise.
31415         * lib/stpncpy.c: Likewise.
31416         * lib/strchrnul.c: Likewise.
31417         * lib/strcspn.c: Likewise.
31418         * lib/strerror.c: Likewise.
31419         * lib/strftime.c: Likewise.
31420         * lib/strftime.h: Likewise.
31421         * lib/striconveh.c: Likewise.
31422         * lib/striconveh.h: Likewise.
31423         * lib/striconveha.c: Likewise.
31424         * lib/striconveha.h: Likewise.
31425         * lib/stripslash.c: Likewise.
31426         * lib/strnlen1.c: Likewise.
31427         * lib/strnlen1.h: Likewise.
31428         * lib/strtod.c: Likewise.
31429         * lib/strtoimax.c: Likewise.
31430         * lib/strtok_r.c: Likewise.
31431         * lib/strtol.c: Likewise.
31432         * lib/strtoll.c: Likewise.
31433         * lib/strtoul.c: Likewise.
31434         * lib/strtoull.c: Likewise.
31435         * lib/sysexits.in.h: Likewise.
31436         * lib/tempname.c: Likewise.
31437         * lib/tempname.h: Likewise.
31438         * lib/timespec.h: Likewise.
31439         * lib/tls.c: Likewise.
31440         * lib/tls.h: Likewise.
31441         * lib/tmpdir.c: Likewise.
31442         * lib/tmpdir.h: Likewise.
31443         * lib/tmpfile-safer.c: Likewise.
31444         * lib/tmpfile.c: Likewise.
31445         * lib/trigl.c: Likewise.
31446         * lib/trigl.h: Likewise.
31447         * lib/trim.c: Likewise.
31448         * lib/trim.h: Likewise.
31449         * lib/trunc.c: Likewise.
31450         * lib/truncf.c: Likewise.
31451         * lib/truncl.c: Likewise.
31452         * lib/tsearch.c: Likewise.
31453         * lib/unicodeio.c: Likewise.
31454         * lib/unicodeio.h: Likewise.
31455         * lib/unistd--.h: Likewise.
31456         * lib/unistd-safer.h: Likewise.
31457         * lib/unistdio/ulc-fprintf.c: Likewise.
31458         * lib/unistdio/ulc-vfprintf.c: Likewise.
31459         * lib/unlinkdir.c: Likewise.
31460         * lib/unlinkdir.h: Likewise.
31461         * lib/unlocked-io.h: Likewise.
31462         * lib/unsetenv.c: Likewise.
31463         * lib/userspec.c: Likewise.
31464         * lib/utime.c: Likewise.
31465         * lib/utimecmp.c: Likewise.
31466         * lib/utimecmp.h: Likewise.
31467         * lib/utimens.c: Likewise.
31468         * lib/verify.h: Likewise.
31469         * lib/verror.c: Likewise.
31470         * lib/verror.h: Likewise.
31471         * lib/version-etc-fsf.c: Likewise.
31472         * lib/version-etc.c: Likewise.
31473         * lib/version-etc.h: Likewise.
31474         * lib/vfprintf.c: Likewise.
31475         * lib/vprintf.c: Likewise.
31476         * lib/vsprintf.c: Likewise.
31477         * lib/w32spawn.h: Likewise.
31478         * lib/wait-process.c: Likewise.
31479         * lib/wait-process.h: Likewise.
31480         * lib/wcwidth.c: Likewise.
31481         * lib/write-any-file.c: Likewise.
31482         * lib/xalloc-die.c: Likewise.
31483         * lib/xalloc.h: Likewise.
31484         * lib/xasprintf.c: Likewise.
31485         * lib/xgetcwd.c: Likewise.
31486         * lib/xgetcwd.h: Likewise.
31487         * lib/xgetdomainname.c: Likewise.
31488         * lib/xgetdomainname.h: Likewise.
31489         * lib/xgethostname.c: Likewise.
31490         * lib/xmalloc.c: Likewise.
31491         * lib/xmalloca.c: Likewise.
31492         * lib/xmalloca.h: Likewise.
31493         * lib/xmemcoll.c: Likewise.
31494         * lib/xnanosleep.c: Likewise.
31495         * lib/xreadlink.c: Likewise.
31496         * lib/xreadlink.h: Likewise.
31497         * lib/xsetenv.c: Likewise.
31498         * lib/xsetenv.h: Likewise.
31499         * lib/xstriconv.c: Likewise.
31500         * lib/xstriconv.h: Likewise.
31501         * lib/xstrndup.c: Likewise.
31502         * lib/xstrndup.h: Likewise.
31503         * lib/xstrtod.c: Likewise.
31504         * lib/xstrtod.h: Likewise.
31505         * lib/xstrtol-error.c: Likewise.
31506         * lib/xstrtol.c: Likewise.
31507         * lib/xstrtol.h: Likewise.
31508         * lib/xtime.h: Likewise.
31509         * lib/xvasprintf.c: Likewise.
31510         * lib/xvasprintf.h: Likewise.
31511         * lib/yesno.c: Likewise.
31512         * lib/yesno.h: Likewise.
31513         * posix-modules: Likewise.
31514         * tests/test-alloca-opt.c: Likewise.
31515         * tests/test-arcfour.c: Likewise.
31516         * tests/test-arctwo.c: Likewise.
31517         * tests/test-argmatch.c: Likewise.
31518         * tests/test-argp-2.sh: Likewise.
31519         * tests/test-argp.c: Likewise.
31520         * tests/test-arpa_inet.c: Likewise.
31521         * tests/test-array_list.c: Likewise.
31522         * tests/test-array_oset.c: Likewise.
31523         * tests/test-atexit.c: Likewise.
31524         * tests/test-avltree_list.c: Likewise.
31525         * tests/test-avltree_oset.c: Likewise.
31526         * tests/test-avltreehash_list.c: Likewise.
31527         * tests/test-base64.c: Likewise.
31528         * tests/test-binary-io.c: Likewise.
31529         * tests/test-byteswap.c: Likewise.
31530         * tests/test-c-ctype.c: Likewise.
31531         * tests/test-c-strcasecmp.c: Likewise.
31532         * tests/test-c-strcasestr.c: Likewise.
31533         * tests/test-c-strncasecmp.c: Likewise.
31534         * tests/test-c-strstr.c: Likewise.
31535         * tests/test-canonicalize-lgpl.c: Likewise.
31536         * tests/test-canonicalize.c: Likewise.
31537         * tests/test-carray_list.c: Likewise.
31538         * tests/test-ceilf.c: Likewise.
31539         * tests/test-ceill.c: Likewise.
31540         * tests/test-count-one-bits.c: Likewise.
31541         * tests/test-crc.c: Likewise.
31542         * tests/test-dirname.c: Likewise.
31543         * tests/test-fbufmode.c: Likewise.
31544         * tests/test-fcntl.c: Likewise.
31545         * tests/test-fflush.c: Likewise.
31546         * tests/test-floorf.c: Likewise.
31547         * tests/test-floorl.c: Likewise.
31548         * tests/test-fopen.c: Likewise.
31549         * tests/test-fprintf-posix.c: Likewise.
31550         * tests/test-fprintf-posix.h: Likewise.
31551         * tests/test-fpurge.c: Likewise.
31552         * tests/test-freadable.c: Likewise.
31553         * tests/test-freadahead.c: Likewise.
31554         * tests/test-freading.c: Likewise.
31555         * tests/test-freopen.c: Likewise.
31556         * tests/test-frexp.c: Likewise.
31557         * tests/test-frexpl.c: Likewise.
31558         * tests/test-fseek.c: Likewise.
31559         * tests/test-fseeko.c: Likewise.
31560         * tests/test-fseterr.c: Likewise.
31561         * tests/test-fstrcmp.c: Likewise.
31562         * tests/test-ftell.c: Likewise.
31563         * tests/test-ftello.c: Likewise.
31564         * tests/test-fwritable.c: Likewise.
31565         * tests/test-fwriting.c: Likewise.
31566         * tests/test-getaddrinfo.c: Likewise.
31567         * tests/test-getpass.c: Likewise.
31568         * tests/test-gettimeofday.c: Likewise.
31569         * tests/test-hmac-md5.c: Likewise.
31570         * tests/test-hmac-sha1.c: Likewise.
31571         * tests/test-iconv.c: Likewise.
31572         * tests/test-iconvme.c: Likewise.
31573         * tests/test-inttypes.c: Likewise.
31574         * tests/test-isnan.c: Likewise.
31575         * tests/test-isnanf.c: Likewise.
31576         * tests/test-isnanl-nolibm.c: Likewise.
31577         * tests/test-isnanl.c: Likewise.
31578         * tests/test-isnanl.h: Likewise.
31579         * tests/test-ldexpl.c: Likewise.
31580         * tests/test-linked_list.c: Likewise.
31581         * tests/test-linkedhash_list.c: Likewise.
31582         * tests/test-locale.c: Likewise.
31583         * tests/test-localename.c: Likewise.
31584         * tests/test-lock.c: Likewise.
31585         * tests/test-lseek.c: Likewise.
31586         * tests/test-malloca.c: Likewise.
31587         * tests/test-math.c: Likewise.
31588         * tests/test-mbscasecmp.c: Likewise.
31589         * tests/test-mbscasestr1.c: Likewise.
31590         * tests/test-mbscasestr2.c: Likewise.
31591         * tests/test-mbscasestr3.c: Likewise.
31592         * tests/test-mbscasestr4.c: Likewise.
31593         * tests/test-mbschr.c: Likewise.
31594         * tests/test-mbscspn.c: Likewise.
31595         * tests/test-mbsncasecmp.c: Likewise.
31596         * tests/test-mbspbrk.c: Likewise.
31597         * tests/test-mbspcasecmp.c: Likewise.
31598         * tests/test-mbsrchr.c: Likewise.
31599         * tests/test-mbsspn.c: Likewise.
31600         * tests/test-mbsstr1.c: Likewise.
31601         * tests/test-mbsstr2.c: Likewise.
31602         * tests/test-mbsstr3.c: Likewise.
31603         * tests/test-md5.c: Likewise.
31604         * tests/test-memmem.c: Likewise.
31605         * tests/test-netinet_in.c: Likewise.
31606         * tests/test-open.c: Likewise.
31607         * tests/test-printf-frexp.c: Likewise.
31608         * tests/test-printf-frexpl.c: Likewise.
31609         * tests/test-printf-posix.c: Likewise.
31610         * tests/test-printf-posix.h: Likewise.
31611         * tests/test-rbtree_list.c: Likewise.
31612         * tests/test-rbtree_oset.c: Likewise.
31613         * tests/test-rbtreehash_list.c: Likewise.
31614         * tests/test-read-file.c: Likewise.
31615         * tests/test-rijndael.c: Likewise.
31616         * tests/test-search.c: Likewise.
31617         * tests/test-signbit.c: Likewise.
31618         * tests/test-sleep.c: Likewise.
31619         * tests/test-snprintf-posix.c: Likewise.
31620         * tests/test-snprintf-posix.h: Likewise.
31621         * tests/test-snprintf.c: Likewise.
31622         * tests/test-sprintf-posix.c: Likewise.
31623         * tests/test-sprintf-posix.h: Likewise.
31624         * tests/test-stat-time.c: Likewise.
31625         * tests/test-stdbool.c: Likewise.
31626         * tests/test-stdint.c: Likewise.
31627         * tests/test-stdio.c: Likewise.
31628         * tests/test-stdlib.c: Likewise.
31629         * tests/test-stpncpy.c: Likewise.
31630         * tests/test-strcasestr.c: Likewise.
31631         * tests/test-striconv.c: Likewise.
31632         * tests/test-striconveh.c: Likewise.
31633         * tests/test-striconveha.c: Likewise.
31634         * tests/test-string.c: Likewise.
31635         * tests/test-sys_select.c: Likewise.
31636         * tests/test-sys_socket.c: Likewise.
31637         * tests/test-sys_stat.c: Likewise.
31638         * tests/test-sys_time.c: Likewise.
31639         * tests/test-sysexits.c: Likewise.
31640         * tests/test-time.c: Likewise.
31641         * tests/test-tls.c: Likewise.
31642         * tests/test-trunc.c: Likewise.
31643         * tests/test-truncf.c: Likewise.
31644         * tests/test-truncl.c: Likewise.
31645         * tests/test-unistd.c: Likewise.
31646         * tests/test-vasnprintf-posix.c: Likewise.
31647         * tests/test-vasnprintf-posix2.c: Likewise.
31648         * tests/test-vasnprintf.c: Likewise.
31649         * tests/test-vasprintf-posix.c: Likewise.
31650         * tests/test-vasprintf.c: Likewise.
31651         * tests/test-verify.c: Likewise.
31652         * tests/test-vfprintf-posix.c: Likewise.
31653         * tests/test-vprintf-posix.c: Likewise.
31654         * tests/test-vsnprintf-posix.c: Likewise.
31655         * tests/test-vsnprintf.c: Likewise.
31656         * tests/test-vsprintf-posix.c: Likewise.
31657         * tests/test-wchar.c: Likewise.
31658         * tests/test-wctype.c: Likewise.
31659         * tests/test-wcwidth.c: Likewise.
31660         * tests/test-xstrtol.c: Likewise.
31661         * tests/test-xvasprintf.c: Likewise.
31662         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
31663         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
31664         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
31665         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
31666         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
31667         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
31668         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
31669         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
31670         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
31671         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
31672         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
31673         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
31674         * tests/uniname/test-uninames.c: Likewise.
31675         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
31676         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
31677         * tests/unistdio/test-u16-printf1.h: Likewise.
31678         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
31679         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
31680         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
31681         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
31682         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
31683         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
31684         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
31685         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
31686         * tests/unistdio/test-u32-printf1.h: Likewise.
31687         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
31688         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
31689         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
31690         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
31691         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
31692         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
31693         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
31694         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
31695         * tests/unistdio/test-u8-printf1.h: Likewise.
31696         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
31697         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
31698         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
31699         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
31700         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
31701         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
31702         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
31703         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
31704         * tests/unistdio/test-ulc-printf1.h: Likewise.
31705         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
31706         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
31707         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
31708         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
31709         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
31710         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
31711         * tests/uniwidth/test-u16-strwidth.c: Likewise.
31712         * tests/uniwidth/test-u16-width.c: Likewise.
31713         * tests/uniwidth/test-u32-strwidth.c: Likewise.
31714         * tests/uniwidth/test-u32-width.c: Likewise.
31715         * tests/uniwidth/test-u8-strwidth.c: Likewise.
31716         * tests/uniwidth/test-u8-width.c: Likewise.
31717         * tests/uniwidth/test-uc_width.c: Likewise.
31718         * config/srclist-update: Likewise.
31719         (fixlicense): Update to GPLv3+.
31720
31721         Change copyright notice from LGPLv2.1+ to LGPLv3+.
31722         * tests/test-tsearch.c: Change copyright notice.
31723
31724         Change copyright notice from LGPLv2.0+ to LGPLv3+.
31725         * lib/c-strcaseeq.h: Change copyright notice.
31726         * lib/streq.h: Likewise.
31727         * lib/uniconv.h: Likewise.
31728         * lib/uniconv/u-conv-from-enc.h: Likewise.
31729         * lib/uniconv/u-conv-to-enc.h: Likewise.
31730         * lib/uniconv/u-strconv-from-enc.h: Likewise.
31731         * lib/uniconv/u-strconv-to-enc.h: Likewise.
31732         * lib/uniconv/u16-conv-from-enc.c: Likewise.
31733         * lib/uniconv/u16-conv-to-enc.c: Likewise.
31734         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
31735         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
31736         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
31737         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
31738         * lib/uniconv/u32-conv-from-enc.c: Likewise.
31739         * lib/uniconv/u32-conv-to-enc.c: Likewise.
31740         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
31741         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
31742         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
31743         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
31744         * lib/uniconv/u8-conv-from-enc.c: Likewise.
31745         * lib/uniconv/u8-conv-to-enc.c: Likewise.
31746         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
31747         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
31748         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
31749         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
31750         * lib/uniname.h: Likewise.
31751         * lib/uniname/uniname.c: Likewise.
31752         * lib/unistdio.h: Likewise.
31753         * lib/unistdio/u-asnprintf.h: Likewise.
31754         * lib/unistdio/u-asprintf.h: Likewise.
31755         * lib/unistdio/u-printf-args.c: Likewise.
31756         * lib/unistdio/u-printf-args.h: Likewise.
31757         * lib/unistdio/u-printf-parse.h: Likewise.
31758         * lib/unistdio/u-snprintf.h: Likewise.
31759         * lib/unistdio/u-sprintf.h: Likewise.
31760         * lib/unistdio/u-vasprintf.h: Likewise.
31761         * lib/unistdio/u-vsnprintf.h: Likewise.
31762         * lib/unistdio/u-vsprintf.h: Likewise.
31763         * lib/unistdio/u16-asnprintf.c: Likewise.
31764         * lib/unistdio/u16-asprintf.c: Likewise.
31765         * lib/unistdio/u16-printf-parse.c: Likewise.
31766         * lib/unistdio/u16-snprintf.c: Likewise.
31767         * lib/unistdio/u16-sprintf.c: Likewise.
31768         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
31769         * lib/unistdio/u16-u16-asprintf.c: Likewise.
31770         * lib/unistdio/u16-u16-snprintf.c: Likewise.
31771         * lib/unistdio/u16-u16-sprintf.c: Likewise.
31772         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
31773         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
31774         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
31775         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
31776         * lib/unistdio/u16-vasnprintf.c: Likewise.
31777         * lib/unistdio/u16-vasprintf.c: Likewise.
31778         * lib/unistdio/u16-vsnprintf.c: Likewise.
31779         * lib/unistdio/u16-vsprintf.c: Likewise.
31780         * lib/unistdio/u32-asnprintf.c: Likewise.
31781         * lib/unistdio/u32-asprintf.c: Likewise.
31782         * lib/unistdio/u32-printf-parse.c: Likewise.
31783         * lib/unistdio/u32-snprintf.c: Likewise.
31784         * lib/unistdio/u32-sprintf.c: Likewise.
31785         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
31786         * lib/unistdio/u32-u32-asprintf.c: Likewise.
31787         * lib/unistdio/u32-u32-snprintf.c: Likewise.
31788         * lib/unistdio/u32-u32-sprintf.c: Likewise.
31789         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
31790         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
31791         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
31792         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
31793         * lib/unistdio/u32-vasnprintf.c: Likewise.
31794         * lib/unistdio/u32-vasprintf.c: Likewise.
31795         * lib/unistdio/u32-vsnprintf.c: Likewise.
31796         * lib/unistdio/u32-vsprintf.c: Likewise.
31797         * lib/unistdio/u8-asnprintf.c: Likewise.
31798         * lib/unistdio/u8-asprintf.c: Likewise.
31799         * lib/unistdio/u8-printf-parse.c: Likewise.
31800         * lib/unistdio/u8-snprintf.c: Likewise.
31801         * lib/unistdio/u8-sprintf.c: Likewise.
31802         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
31803         * lib/unistdio/u8-u8-asprintf.c: Likewise.
31804         * lib/unistdio/u8-u8-snprintf.c: Likewise.
31805         * lib/unistdio/u8-u8-sprintf.c: Likewise.
31806         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
31807         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
31808         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
31809         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
31810         * lib/unistdio/u8-vasnprintf.c: Likewise.
31811         * lib/unistdio/u8-vasprintf.c: Likewise.
31812         * lib/unistdio/u8-vsnprintf.c: Likewise.
31813         * lib/unistdio/u8-vsprintf.c: Likewise.
31814         * lib/unistdio/ulc-asnprintf.c: Likewise.
31815         * lib/unistdio/ulc-asprintf.c: Likewise.
31816         * lib/unistdio/ulc-printf-parse.c: Likewise.
31817         * lib/unistdio/ulc-snprintf.c: Likewise.
31818         * lib/unistdio/ulc-sprintf.c: Likewise.
31819         * lib/unistdio/ulc-vasnprintf.c: Likewise.
31820         * lib/unistdio/ulc-vasprintf.c: Likewise.
31821         * lib/unistdio/ulc-vsnprintf.c: Likewise.
31822         * lib/unistdio/ulc-vsprintf.c: Likewise.
31823         * lib/unistr.h: Likewise.
31824         * lib/unistr/u-cpy-alloc.h: Likewise.
31825         * lib/unistr/u-cpy.h: Likewise.
31826         * lib/unistr/u-endswith.h: Likewise.
31827         * lib/unistr/u-move.h: Likewise.
31828         * lib/unistr/u-set.h: Likewise.
31829         * lib/unistr/u-startswith.h: Likewise.
31830         * lib/unistr/u-stpcpy.h: Likewise.
31831         * lib/unistr/u-stpncpy.h: Likewise.
31832         * lib/unistr/u-strcat.h: Likewise.
31833         * lib/unistr/u-strcpy.h: Likewise.
31834         * lib/unistr/u-strcspn.h: Likewise.
31835         * lib/unistr/u-strdup.h: Likewise.
31836         * lib/unistr/u-strlen.h: Likewise.
31837         * lib/unistr/u-strncat.h: Likewise.
31838         * lib/unistr/u-strncpy.h: Likewise.
31839         * lib/unistr/u-strnlen.h: Likewise.
31840         * lib/unistr/u-strpbrk.h: Likewise.
31841         * lib/unistr/u-strspn.h: Likewise.
31842         * lib/unistr/u-strstr.h: Likewise.
31843         * lib/unistr/u-strtok.h: Likewise.
31844         * lib/unistr/u16-check.c: Likewise.
31845         * lib/unistr/u16-chr.c: Likewise.
31846         * lib/unistr/u16-cmp.c: Likewise.
31847         * lib/unistr/u16-cpy-alloc.c: Likewise.
31848         * lib/unistr/u16-cpy.c: Likewise.
31849         * lib/unistr/u16-endswith.c: Likewise.
31850         * lib/unistr/u16-mblen.c: Likewise.
31851         * lib/unistr/u16-mbsnlen.c: Likewise.
31852         * lib/unistr/u16-mbtouc-aux.c: Likewise.
31853         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
31854         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
31855         * lib/unistr/u16-mbtouc.c: Likewise.
31856         * lib/unistr/u16-mbtoucr.c: Likewise.
31857         * lib/unistr/u16-move.c: Likewise.
31858         * lib/unistr/u16-next.c: Likewise.
31859         * lib/unistr/u16-prev.c: Likewise.
31860         * lib/unistr/u16-set.c: Likewise.
31861         * lib/unistr/u16-startswith.c: Likewise.
31862         * lib/unistr/u16-stpcpy.c: Likewise.
31863         * lib/unistr/u16-stpncpy.c: Likewise.
31864         * lib/unistr/u16-strcat.c: Likewise.
31865         * lib/unistr/u16-strchr.c: Likewise.
31866         * lib/unistr/u16-strcmp.c: Likewise.
31867         * lib/unistr/u16-strcpy.c: Likewise.
31868         * lib/unistr/u16-strcspn.c: Likewise.
31869         * lib/unistr/u16-strdup.c: Likewise.
31870         * lib/unistr/u16-strlen.c: Likewise.
31871         * lib/unistr/u16-strmblen.c: Likewise.
31872         * lib/unistr/u16-strmbtouc.c: Likewise.
31873         * lib/unistr/u16-strncat.c: Likewise.
31874         * lib/unistr/u16-strncmp.c: Likewise.
31875         * lib/unistr/u16-strncpy.c: Likewise.
31876         * lib/unistr/u16-strnlen.c: Likewise.
31877         * lib/unistr/u16-strpbrk.c: Likewise.
31878         * lib/unistr/u16-strrchr.c: Likewise.
31879         * lib/unistr/u16-strspn.c: Likewise.
31880         * lib/unistr/u16-strstr.c: Likewise.
31881         * lib/unistr/u16-strtok.c: Likewise.
31882         * lib/unistr/u16-to-u32.c: Likewise.
31883         * lib/unistr/u16-to-u8.c: Likewise.
31884         * lib/unistr/u16-uctomb-aux.c: Likewise.
31885         * lib/unistr/u16-uctomb.c: Likewise.
31886         * lib/unistr/u32-check.c: Likewise.
31887         * lib/unistr/u32-chr.c: Likewise.
31888         * lib/unistr/u32-cmp.c: Likewise.
31889         * lib/unistr/u32-cpy-alloc.c: Likewise.
31890         * lib/unistr/u32-cpy.c: Likewise.
31891         * lib/unistr/u32-endswith.c: Likewise.
31892         * lib/unistr/u32-mblen.c: Likewise.
31893         * lib/unistr/u32-mbsnlen.c: Likewise.
31894         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
31895         * lib/unistr/u32-mbtouc.c: Likewise.
31896         * lib/unistr/u32-mbtoucr.c: Likewise.
31897         * lib/unistr/u32-move.c: Likewise.
31898         * lib/unistr/u32-next.c: Likewise.
31899         * lib/unistr/u32-prev.c: Likewise.
31900         * lib/unistr/u32-set.c: Likewise.
31901         * lib/unistr/u32-startswith.c: Likewise.
31902         * lib/unistr/u32-stpcpy.c: Likewise.
31903         * lib/unistr/u32-stpncpy.c: Likewise.
31904         * lib/unistr/u32-strcat.c: Likewise.
31905         * lib/unistr/u32-strchr.c: Likewise.
31906         * lib/unistr/u32-strcmp.c: Likewise.
31907         * lib/unistr/u32-strcpy.c: Likewise.
31908         * lib/unistr/u32-strcspn.c: Likewise.
31909         * lib/unistr/u32-strdup.c: Likewise.
31910         * lib/unistr/u32-strlen.c: Likewise.
31911         * lib/unistr/u32-strmblen.c: Likewise.
31912         * lib/unistr/u32-strmbtouc.c: Likewise.
31913         * lib/unistr/u32-strncat.c: Likewise.
31914         * lib/unistr/u32-strncmp.c: Likewise.
31915         * lib/unistr/u32-strncpy.c: Likewise.
31916         * lib/unistr/u32-strnlen.c: Likewise.
31917         * lib/unistr/u32-strpbrk.c: Likewise.
31918         * lib/unistr/u32-strrchr.c: Likewise.
31919         * lib/unistr/u32-strspn.c: Likewise.
31920         * lib/unistr/u32-strstr.c: Likewise.
31921         * lib/unistr/u32-strtok.c: Likewise.
31922         * lib/unistr/u32-to-u16.c: Likewise.
31923         * lib/unistr/u32-to-u8.c: Likewise.
31924         * lib/unistr/u32-uctomb.c: Likewise.
31925         * lib/unistr/u8-check.c: Likewise.
31926         * lib/unistr/u8-chr.c: Likewise.
31927         * lib/unistr/u8-cmp.c: Likewise.
31928         * lib/unistr/u8-cpy-alloc.c: Likewise.
31929         * lib/unistr/u8-cpy.c: Likewise.
31930         * lib/unistr/u8-endswith.c: Likewise.
31931         * lib/unistr/u8-mblen.c: Likewise.
31932         * lib/unistr/u8-mbsnlen.c: Likewise.
31933         * lib/unistr/u8-mbtouc-aux.c: Likewise.
31934         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
31935         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
31936         * lib/unistr/u8-mbtouc.c: Likewise.
31937         * lib/unistr/u8-mbtoucr.c: Likewise.
31938         * lib/unistr/u8-move.c: Likewise.
31939         * lib/unistr/u8-next.c: Likewise.
31940         * lib/unistr/u8-prev.c: Likewise.
31941         * lib/unistr/u8-set.c: Likewise.
31942         * lib/unistr/u8-startswith.c: Likewise.
31943         * lib/unistr/u8-stpcpy.c: Likewise.
31944         * lib/unistr/u8-stpncpy.c: Likewise.
31945         * lib/unistr/u8-strcat.c: Likewise.
31946         * lib/unistr/u8-strchr.c: Likewise.
31947         * lib/unistr/u8-strcmp.c: Likewise.
31948         * lib/unistr/u8-strcpy.c: Likewise.
31949         * lib/unistr/u8-strcspn.c: Likewise.
31950         * lib/unistr/u8-strdup.c: Likewise.
31951         * lib/unistr/u8-strlen.c: Likewise.
31952         * lib/unistr/u8-strmblen.c: Likewise.
31953         * lib/unistr/u8-strmbtouc.c: Likewise.
31954         * lib/unistr/u8-strncat.c: Likewise.
31955         * lib/unistr/u8-strncmp.c: Likewise.
31956         * lib/unistr/u8-strncpy.c: Likewise.
31957         * lib/unistr/u8-strnlen.c: Likewise.
31958         * lib/unistr/u8-strpbrk.c: Likewise.
31959         * lib/unistr/u8-strrchr.c: Likewise.
31960         * lib/unistr/u8-strspn.c: Likewise.
31961         * lib/unistr/u8-strstr.c: Likewise.
31962         * lib/unistr/u8-strtok.c: Likewise.
31963         * lib/unistr/u8-to-u16.c: Likewise.
31964         * lib/unistr/u8-to-u32.c: Likewise.
31965         * lib/unistr/u8-uctomb-aux.c: Likewise.
31966         * lib/unistr/u8-uctomb.c: Likewise.
31967         * lib/unitypes.h: Likewise.
31968         * lib/uniwidth.h: Likewise.
31969         * lib/uniwidth/cjk.h: Likewise.
31970         * lib/uniwidth/u16-strwidth.c: Likewise.
31971         * lib/uniwidth/u16-width.c: Likewise.
31972         * lib/uniwidth/u32-strwidth.c: Likewise.
31973         * lib/uniwidth/u32-width.c: Likewise.
31974         * lib/uniwidth/u8-strwidth.c: Likewise.
31975         * lib/uniwidth/u8-width.c: Likewise.
31976         * lib/uniwidth/width.c: Likewise.
31977
31978 2007-10-07  Bruno Haible  <bruno@clisp.org>
31979
31980         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
31981         The file is still under LGPL (see modules/inttypes).
31982
31983 2007-10-06  Bruno Haible  <bruno@clisp.org>
31984
31985         * modules/trunc (Dependencies): Add 'extensions'.
31986         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
31987         Reported by Ben Pfaff <blp@gnu.org>.
31988
31989 2007-10-06  Bruno Haible  <bruno@clisp.org>
31990
31991         * modules/freopen-tests: New file.
31992         * tests/test-freopen.c: New file.
31993
31994         * modules/fopen-tests: New file.
31995         * tests/test-fopen.c: New file.
31996
31997         * modules/fopen: New file.
31998         * lib/fopen.c: New file.
31999         * m4/fopen.m4: New file.
32000         * modules/freopen: New file.
32001         * lib/freopen.c: New file.
32002         * m4/freopen.m4: New file.
32003         * lib/stdio.in.h (fopen, freopen): New declarations.
32004         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
32005         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
32006         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
32007         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
32008         * doc/functions/fopen.texi: Mention the 'fopen' module.
32009         * doc/functions/freopen.texi: Mention the 'freopen' module.
32010
32011 2007-10-06  Bruno Haible  <bruno@clisp.org>
32012
32013         * modules/open-tests: New file.
32014         * tests/test-open.c: New file.
32015
32016         * modules/open: New file.
32017         * lib/open.c: New file.
32018         * m4/open.m4: New file.
32019         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
32020         lib/open.c does.
32021         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
32022         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
32023         macros.
32024         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
32025         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
32026         REPLACE_OPEN.
32027         * doc/functions/open.texi: Mention the 'open' module.
32028
32029 2007-10-04  Bruno Haible  <bruno@clisp.org>
32030
32031         * modules/ceill-tests: New file.
32032         * tests/test-ceill.c: New file.
32033
32034         * modules/ceill: New file.
32035         * lib/ceill.c: Replace entire file.
32036         * m4/ceill.m4: New file.
32037         * lib/math.in.h (ceill): Replace declaration.
32038         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
32039         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
32040         * doc/functions/ceill.texi: Mention the 'ceill' module.
32041         * modules/mathl (Files): Remove lib/ceill.c.
32042         (Depends-on): Add ceill.
32043
32044 2007-10-04  Bruno Haible  <bruno@clisp.org>
32045
32046         * modules/ceilf-tests: New file.
32047         * tests/test-ceilf.c: New file.
32048
32049         * modules/ceilf: New file.
32050         * lib/ceil.c: New file.
32051         * lib/ceilf.c: New file.
32052         * m4/ceilf.m4: New file.
32053         * lib/math.in.h (ceilf): New declaration.
32054         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
32055         HAVE_DECL_CEILF.
32056         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
32057         HAVE_DECL_CEILF.
32058         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
32059
32060 2007-10-04  Bruno Haible  <bruno@clisp.org>
32061
32062         * modules/floorl-tests: New file.
32063         * tests/test-floorl.c: New file.
32064
32065         * modules/floorl: New file.
32066         * lib/floorl.c: Replace entire file.
32067         * m4/floorl.m4: New file.
32068         * lib/math.in.h (floorl): Replace declaration.
32069         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
32070         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
32071         * doc/functions/floorl.texi: Mention the 'floorl' module.
32072         * modules/mathl (Files): Remove lib/floorl.c.
32073         (Depends-on): Add floorl.
32074
32075 2007-10-04  Bruno Haible  <bruno@clisp.org>
32076
32077         * modules/floorf-tests: New file.
32078         * tests/test-floorf.c: New file.
32079
32080         * modules/floorf: New file.
32081         * lib/floor.c: New file.
32082         * lib/floorf.c: New file.
32083         * m4/floorf.m4: New file.
32084         * lib/math.in.h (floorf): New declaration.
32085         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
32086         HAVE_DECL_FLOORF.
32087         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
32088         HAVE_DECL_FLOORF.
32089         * doc/functions/floorf.texi: Mention the 'floorf' module.
32090
32091 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
32092             Bruno Haible  <bruno@clisp.org>
32093
32094         Advertise for the Git server instead of the CVS server.
32095         * doc/gnulib-intro.texi (Steady Development): Mention the Git
32096         repository instead of the CVS one.
32097         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
32098         about all VCS systems generically.
32099         * doc/gnulib.texi (Introduction): Capitalize `Git'.
32100
32101 2007-10-04  Bruno Haible  <bruno@clisp.org>
32102
32103         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
32104         means.
32105         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
32106
32107 2007-10-04  Bruno Haible  <bruno@clisp.org>
32108
32109         * modules/truncl-tests: New file.
32110         * tests/test-truncl.c: New file.
32111
32112         * modules/truncl: New file.
32113         * lib/truncl.c: New file.
32114         * m4/truncl.m4: New file.
32115         * lib/math.in.h (truncl): New declaration.
32116         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
32117         HAVE_DECL_TRUNCL.
32118         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
32119         HAVE_DECL_TRUNCL.
32120         * doc/functions/truncl.texi: Mention the 'truncl' module.
32121
32122 2007-10-04  Bruno Haible  <bruno@clisp.org>
32123
32124         * modules/truncf-tests: New file.
32125         * tests/test-truncf.c: New file.
32126
32127         * modules/truncf: New file.
32128         * lib/trunc.c: Make paramerizable through USE_* macros.
32129         * lib/truncf.c: New file.
32130         * m4/truncf.m4: New file.
32131         * lib/math.in.h (truncf): New declaration.
32132         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
32133         HAVE_DECL_TRUNCF.
32134         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
32135         HAVE_DECL_TRUNCF.
32136         * doc/functions/truncf.texi: Mention the 'truncf' module.
32137
32138 2007-10-03  Bruno Haible  <bruno@clisp.org>
32139
32140         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
32141         augmentation also for tests modules.
32142         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
32143         * modules/atexit-tests (Makefile.am): Likewise.
32144         * modules/binary-io-tests (Makefile.am): Likewise.
32145         * modules/c-strcase-tests (Makefile.am): Likewise.
32146         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
32147         * modules/canonicalize-tests (Makefile.am): Likewise.
32148         * modules/closein-tests (Makefile.am): Likewise.
32149         * modules/fprintf-posix-tests (Makefile.am): Likewise.
32150         * modules/freadahead-tests (Makefile.am): Likewise.
32151         * modules/fseek-tests (Makefile.am): Likewise.
32152         * modules/fseeko-tests (Makefile.am): Likewise.
32153         * modules/ftell-tests (Makefile.am): Likewise.
32154         * modules/ftello-tests (Makefile.am): Likewise.
32155         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
32156         * modules/isnanl-tests (Makefile.am): Likewise.
32157         * modules/lseek-tests (Makefile.am): Likewise.
32158         * modules/mbscasecmp-tests (Makefile.am): Likewise.
32159         * modules/mbscasestr-tests (Makefile.am): Likewise.
32160         * modules/mbschr-tests (Makefile.am): Likewise.
32161         * modules/mbscspn-tests (Makefile.am): Likewise.
32162         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
32163         * modules/mbspbrk-tests (Makefile.am): Likewise.
32164         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
32165         * modules/mbsrchr-tests (Makefile.am): Likewise.
32166         * modules/mbsspn-tests (Makefile.am): Likewise.
32167         * modules/mbsstr-tests (Makefile.am): Likewise.
32168         * modules/printf-posix-tests (Makefile.am): Likewise.
32169         * modules/snprintf-posix-tests (Makefile.am): Likewise.
32170         * modules/sprintf-posix-tests (Makefile.am): Likewise.
32171         * modules/tsearch-tests (Makefile.am): Likewise.
32172         * modules/uniname/uniname-tests (Makefile.am): Likewise.
32173         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
32174         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
32175         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
32176         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
32177         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
32178         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
32179         * modules/vprintf-posix-tests (Makefile.am): Likewise.
32180         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
32181         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
32182         * modules/xstrtoimax-tests (Makefile.am): Likewise.
32183         * modules/xstrtol-tests (Makefile.am): Likewise.
32184         * modules/xstrtoumax-tests (Makefile.am): Likewise.
32185         * modules/yesno-tests (Makefile.am): Likewise.
32186
32187 2007-10-03  Bruno Haible  <bruno@clisp.org>
32188
32189         * modules/trunc-tests: New file.
32190         * tests/test-trunc.c: New file.
32191
32192         * modules/trunc: New file.
32193         * lib/trunc.c: New file.
32194         * m4/trunc.m4: New file.
32195         * lib/math.in.h (trunc): New declaration.
32196         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
32197         HAVE_DECL_TRUNC.
32198         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
32199         HAVE_DECL_TRUNC.
32200         * doc/functions/trunc.texi: Mention the 'trunc' module.
32201
32202 2007-10-03  Bruno Haible  <bruno@clisp.org>
32203
32204         * tests/test-fpending.c: New file, mostly copied
32205         from coreutils/lib/t-fpending.c.
32206         * modules/fpending-tests: New file.
32207
32208 2007-10-03  Bruno Haible  <bruno@clisp.org>
32209
32210         Port the stdio extensions to QNX (untested).
32211         * lib/fseterr.c (fseterr): Add support for QNX.
32212         * lib/fbufmode.c (fbufmode): Likewise.
32213         * lib/freadable.c (freadable): Likewise.
32214         * lib/fwritable.c (fwritable): Likewise.
32215         * lib/freading.c (freading): Likewise.
32216         * lib/fwriting.c (fwriting): Likewise.
32217         * lib/freadahead.c (freadahed): Likewise.
32218         * lib/fpurge.c (fpurge): Likewise.
32219         * lib/fseeko.c (rpl_fseeko): Likewise.
32220
32221 2007-10-03  Bruno Haible  <bruno@clisp.org>
32222             Jim Meyering  <jim@meyering.net>
32223             Eric Blake  <ebb9@byu.net>
32224
32225         * doc/relocatable.texi: Use @command instead of @program.
32226
32227 2007-10-02  Jim Meyering  <jim@meyering.net>
32228
32229         Perform one more "_.h" -> ".in.h" substitution.
32230         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
32231         instead of unistd_.h here, too.
32232
32233 2007-10-01  Bruno Haible  <bruno@clisp.org>
32234
32235         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
32236         Needed for the alloca-opt module.
32237
32238 2007-09-30  Bruno Haible  <bruno@clisp.org>
32239
32240         * lib/alloca.in.h: Renamed from lib/alloca_.h.
32241         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
32242         alloca_.h.
32243         * lib/argz.in.h: Renamed from lib/argz_.h.
32244         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
32245         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
32246         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
32247         byteswap_.h.
32248         * lib/dirent.in.h: Renamed from lib/dirent_.h.
32249         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
32250         dirent_.h.
32251         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
32252         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
32253         fcntl_.h.
32254         * lib/float.in.h: Renamed from lib/float_.h.
32255         * modules/float (Files, Makefile.am): Use float.in.h instead of
32256         float_.h.
32257         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
32258         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
32259         fnmatch_.h.
32260         * lib/getopt.in.h: Renamed from lib/getopt_.h.
32261         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
32262         getopt_.h.
32263         * lib/glob.in.h: Renamed from lib/glob_.h.
32264         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
32265         * lib/iconv.in.h: Renamed from lib/iconv_.h.
32266         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
32267         iconv_.h.
32268         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
32269         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
32270         inttypes_.h.
32271         * lib/locale.in.h: Renamed from lib/locale_.h.
32272         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
32273         locale_.h.
32274         * lib/math.in.h: Renamed from lib/math_.h.
32275         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
32276         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
32277         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
32278         of netinet_in_.h. Add dependency.
32279         * lib/poll.in.h: Renamed from lib/poll_.h.
32280         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
32281         * lib/search.in.h: Renamed from lib/search_.h.
32282         * modules/search (Files, Makefile.am): Use search.in.h instead of
32283         search_.h.
32284         * lib/signal.in.h: Renamed from lib/signal_.h.
32285         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
32286         _signal.h.
32287         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
32288         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
32289         stdbool_.h.
32290         * lib/stdint.in.h: Renamed from lib/stdint_.h.
32291         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
32292         stdint_.h.
32293         * lib/stdio.in.h: Renamed from lib/stdio_.h.
32294         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
32295         stdio_.h.
32296         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
32297         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
32298         stdlib_.h.
32299         * lib/string.in.h: Renamed from lib/string_.h.
32300         * modules/string (Files, Makefile.am): Use string.in.h instead of
32301         string_.h.
32302         * doc/gnulib-tool.texi (Initial import): Update.
32303         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
32304         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
32305         of sys_select_.h. Add dependency.
32306         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
32307         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
32308         of sys_socket_.h.
32309         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
32310         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
32311         sys_stat_.h.
32312         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
32313         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
32314         sys_time_.h.
32315         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
32316         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
32317         sysexits_.h.
32318         * lib/time.in.h: Renamed from lib/time_.h.
32319         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
32320         * lib/unistd.in.h: Renamed from lib/unistd_.h.
32321         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
32322         unistd_.h.
32323         * lib/wchar.in.h: Renamed from lib/wchar_.h.
32324         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
32325         wchar_.h.
32326         * lib/wctype.in.h: Renamed from lib/wctype_.h.
32327         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
32328         wctype_.h.
32329         * build-aux/bootstrap (slurp): Update.
32330         * lib/.cppi-disable: Update.
32331
32332 2007-09-30  Bruno Haible  <bruno@clisp.org>
32333
32334         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
32335         Needed on BeOS.
32336
32337 2007-09-30  Bruno Haible  <bruno@clisp.org>
32338
32339         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
32340
32341 2007-09-29  Bruno Haible  <bruno@clisp.org>
32342
32343         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
32344
32345 2007-09-29  Bruno Haible  <bruno@clisp.org>
32346
32347         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
32348         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
32349         * build-aux/install-reloc: Compile also areadlink.c.
32350         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
32351
32352 2007-09-29  Bruno Haible  <bruno@clisp.org>
32353
32354         * gnulib-tool (func_emit_initmacro_done): Indentation.
32355
32356 2007-09-29  Bruno Haible  <bruno@clisp.org>
32357
32358         * README: Add CVS checkout update instructions.
32359         Info from Bob Proulx <bob@proulx.com>.
32360
32361 2007-09-28  Eric Blake  <ebb9@byu.net>
32362
32363         Provide move-if-change.
32364         * build-aux/move-if-change: New file, based on best practice
32365         rather than any canonical upstream location.
32366
32367 2007-09-28  Jim Meyering  <jim@meyering.net>
32368
32369         Fix canonicalize loop-detection corner case.
32370         Do not attempt to stat the symlink values stored via seen_triple.
32371         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
32372         on linux-2.6.18, (but not 2.6.22).
32373         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
32374         triple_compare.  The former compares dev,ino,filename, while the latter
32375         would actually stat dirname(filename) when dev and ino were equal.
32376         * lib/hash-triple.c: Install <string.h>.
32377         (STREQ): Define.
32378         (triple_compare_ino_str): New function.
32379         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
32380
32381 2007-09-28  Eric Blake  <ebb9@byu.net>
32382
32383         Enforce that AC_REPLACE_FUNCS files exist.
32384         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
32385         override check for typos.
32386
32387         Fix test-closein on Solaris 10.
32388         * tests/test-closein.c (main): Don't assume stdin can be inherited
32389         closed on all systems.
32390         * tests/test-closein.sh: Likewise.
32391         Reported by Piotr Tarnowski.
32392
32393 2007-09-28  Jim Meyering  <jim@meyering.net>
32394
32395         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
32396
32397 2007-09-27  Jim Meyering  <jim@meyering.net>
32398
32399         canonicalize: Avoid a false-positive cycle failure.
32400         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
32401         Sort.  Remove cycle-check.
32402         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
32403         not cycle-check.h.
32404         (seen_triple): New function.
32405         (canonicalize_filename_mode): Use it instead of cycle-check.
32406         * tests/test-canonicalize.c: Add a test for this bug.
32407         * tests/test-canonicalize.sh: Set up and run the test.
32408
32409         New module, file-set, from coreutils.
32410         * modules/file-set: Define it.
32411         * lib/file-set.c, lib/file-set.h: Implement.
32412
32413         New module, hash-triple, from coreutils.
32414         * modules/hash-triple: Define it.
32415         * lib/hash-triple.c, lib/hash-triple.h: Implement.
32416
32417 2007-09-25  Eric Blake  <ebb9@byu.net>
32418
32419         Fix strerror on Interix.
32420         * lib/string_.h (strerror): Declare replacement.
32421         * doc/functions/strerror.texi (strerror): Document the Interix
32422         shortcoming.
32423         * modules/string (Makefile.am): Support new hooks.
32424         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
32425         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
32426         gl_FUNC_STRERROR_SEPARATE.
32427         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
32428         * lib/strerror.c (rpl_strerror): Provide replacement.
32429         * modules/strerror (Depends-on): Add string.
32430         (configure.ac): Detect use of module.
32431         * tests/test-strerror.c: New file.
32432         * modules/strerror-tests: New test module.
32433         * modules/argp (Depends-on): Add strerror.
32434         * modules/error (Depends-on): Likewise.
32435         Reported by Martin Koeppe.
32436
32437 2007-09-24  Bruno Haible  <bruno@clisp.org>
32438
32439         * README: Update git instructions.
32440
32441 2007-09-24  Eric Blake  <ebb9@byu.net>
32442
32443         Revert fpending breakage from 2007-09-08.
32444         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
32445         __fpending.c.
32446
32447 2007-09-24  Jim Meyering  <jim@meyering.net>
32448
32449         filenamecat.c: Add a test.
32450         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
32451         showing how the function works when DIR is the empty string.
32452
32453 2007-09-21  Simon Josefsson  <simon@josefsson.org>
32454
32455         * tests/test-canonicalize.sh: Turn on executable bit.
32456
32457 2007-09-19  Eric Blake  <ebb9@byu.net>
32458
32459         * README: Update CVS instructions.
32460
32461 2007-09-18  Bruno Haible  <bruno@clisp.org>
32462
32463         * modules/areadlink: New file.
32464         * lib/areadlink.h (areadlink): New declaration.
32465         * lib/areadlink.c: New file, based on lib/xreadlink.c.
32466
32467 2007-09-17  Jim Meyering  <jim@meyering.net>
32468
32469         * lib/savewd.c (ESTALE) [!defined]: Define.
32470         Reported to be required on Interix by Martin Koeppe.
32471
32472 2007-09-17  Bruno Haible  <bruno@clisp.org>
32473
32474         * gnulib-tool (func_version): Use $version.
32475
32476 2007-09-16  Bruno Haible  <bruno@clisp.org>
32477
32478         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
32479         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
32480         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
32481         Reported by Greg Schafer <gschafer@zip.com.au>.
32482
32483 2007-09-15  Bruno Haible  <bruno@clisp.org>
32484
32485         * gnulib-tool (sed): Try a little harder to make bash understand the
32486         alias.
32487         Reported by Bruce Korb <bruce.korb@gmail.com>.
32488
32489 2007-09-13  Eric Blake  <ebb9@byu.net>
32490
32491         * ChangeLog: Remove conflict markers.
32492
32493 2007-09-13  Simon Josefsson  <simon@josefsson.org>
32494
32495         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
32496         Reported by Bruno Haible <bruno@clisp.org>.
32497
32498 2007-09-12  Bruno Haible  <bruno@clisp.org>
32499
32500         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
32501         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
32502         is not defined.
32503
32504 2007-09-12  Eric Blake  <ebb9@byu.net>
32505
32506         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
32507         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
32508         Autoconf definition.
32509         * modules/euidaccess (Depends-on): Add extensions, for
32510         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
32511         * modules/fnmatch (Depends-on): Likewise.
32512         * modules/getaddrinfo (Depends-on): Likewise.
32513         * modules/getdelim (Depends-on): Likewise.
32514         * modules/getline (Depends-on): Likewise.
32515         * modules/getsubopt (Depends-on): Likewise.
32516         * modules/gettext (Depends-on): Likewise.
32517         * modules/group-member (Depends-on): Likewise.
32518         * modules/mbchar (Depends-on): Likewise.
32519         * modules/memmem (Depends-on): Likewise.
32520         * modules/mempcpy (Depends-on): Likewise.
32521         * modules/memrchr (Depends-on): Likewise.
32522         * modules/pagealign_alloc (Depends-on): Likewise.
32523         * modules/readutmp (Depends-on): Likewise.
32524         * modules/stpcpy (Depends-on): Likewise.
32525         * modules/stpncpy (Depends-on): Likewise.
32526         * modules/strchrnul (Depends-on): Likewise.
32527         * modules/strndup (Depends-on): Likewise.
32528         * modules/strsep (Depends-on): Likewise.
32529         * modules/strverscmp (Depends-on): Likewise.
32530         * modules/vasprintf (Depends-on): Likewise.
32531         * modules/wcwidth (Depends-on): Likewise.
32532         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
32533         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
32534         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
32535         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
32536         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
32537         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
32538         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
32539         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
32540         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
32541         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
32542         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
32543         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
32544         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
32545         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
32546         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
32547         * m4/readutmp.m4 (gl_READUTMP): Likewise.
32548         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
32549         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
32550         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
32551         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
32552         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
32553         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
32554         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
32555         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
32556         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
32557         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
32558         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
32559         so that lock.m4 can be used in gettext without extensions module.
32560
32561 2007-09-11  Bruno Haible  <bruno@clisp.org>
32562
32563         * m4/isc-posix.m4: Remove file.
32564         Suggested by Eric Blake.
32565
32566 2007-09-11  Eric Blake  <ebb9@byu.net>
32567
32568         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
32569
32570 2007-09-10  Bruno Haible  <bruno@clisp.org>
32571
32572         * posix-modules: Fix typo in error message.
32573         Reported by Matt <mkraai@beckman.com>.
32574
32575 2007-09-09  Bruno Haible  <bruno@clisp.org>
32576
32577         * doc/functions/getdelim.texi: Update list of platforms lacking the
32578         function.
32579         * doc/functions/getline.texi: Likewise.
32580
32581 2007-09-09  Jim Meyering  <jim@meyering.net>
32582
32583         * lib/hash.c (hash_initialize): Detect calloc failure.
32584         Reported by Bruno Haible.
32585
32586 2007-09-09  Bruno Haible  <bruno@clisp.org>
32587
32588         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
32589         malloc or realloc fails.
32590
32591 2007-09-09  Bruno Haible  <bruno@clisp.org>
32592
32593         * modules/getcwd (Depends-on): Add malloc-posix.
32594         * modules/glob (Depends-on): Likewise.
32595         * modules/putenv (Depends-on): Likewise.
32596         * modules/strdup (Depends-on): Likewise.
32597         * modules/getdelim (Depends-on): Add realloc-posix.
32598         * modules/read-file (Depends-on): Likewise.
32599
32600 2007-09-09  Bruno Haible  <bruno@clisp.org>
32601
32602         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
32603         (gl_FUNC_MALLOC_POSIX): Require it.
32604         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
32605         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
32606         * modules/realloc (Files): Add m4/malloc.m4.
32607         * modules/calloc (Files): Likewise.
32608
32609 2007-09-09  Bruno Haible  <bruno@clisp.org>
32610
32611         * modules/malloc-posix: New file.
32612         * modules/malloc (Depends-on): Add malloc-posix.
32613         * lib/malloc.c: Include errno.h.
32614         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
32615         and a POSIX-compatible malloc into a single function. Set ENOMEM
32616         when returning NULL.
32617         * m4/malloc.m4: New file.
32618         * doc/functions/malloc.texi: Mention the malloc-posix module.
32619         * lib/stdlib_.h (malloc): New declaration.
32620         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
32621         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
32622         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
32623         and HAVE_MALLOC_POSIX.
32624
32625 2007-09-09  Bruno Haible  <bruno@clisp.org>
32626
32627         * modules/realloc-posix: New file.
32628         * modules/realloc (Depends-on): Add realloc-posix.
32629         * lib/realloc.c: Include errno.h.
32630         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
32631         and a POSIX-compatible realloc into a single function. Set ENOMEM
32632         when returning NULL.
32633         * m4/realloc.m4: New file.
32634         * doc/functions/realloc.texi: Mention the realloc-posix module.
32635         * lib/stdlib_.h (realloc): New declaration.
32636         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
32637         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
32638         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
32639         and HAVE_REALLOC_POSIX.
32640
32641 2007-09-09  Bruno Haible  <bruno@clisp.org>
32642
32643         * modules/calloc-posix: New file.
32644         * modules/calloc (Depends-on): Add calloc-posix.
32645         * lib/calloc.c: Include errno.h.
32646         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
32647         and a POSIX-compatible calloc into a single function. Set ENOMEM
32648         when returning NULL.
32649         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
32650         * doc/functions/calloc.texi: Mention the calloc-posix module.
32651         * lib/stdlib_.h (calloc): New declaration.
32652         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
32653         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
32654         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
32655         and HAVE_CALLOC_POSIX.
32656
32657 2007-09-09  Bruno Haible  <bruno@clisp.org>
32658
32659         Allow for modules to show an arbitrary notice.
32660         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
32661         * gnulib-tool: New option --extract-notice.
32662         (func_usage): Document it.
32663         (sed_extract_prog): Update.
32664         (func_get_notice): New function.
32665         (func_modules_notice): New function.
32666         (func_import, func_create_testdir): Invoke it.
32667         Suggested by Jim Meyering.
32668
32669 2007-09-09  Bruno Haible  <bruno@clisp.org>
32670
32671         * gnulib-tool: New options --verbose, --quiet.
32672         (func_usage): Document them.
32673         (verbose): New variable.
32674         (func_execute_command): New function.
32675         (func_import): Don't show the module list and the file list if
32676         $verbose < 0.
32677         (func_create_testdir): Likewise. Use func_execute_command.
32678         (func_create_megatestdir): Use func_execute_command.
32679
32680 2007-09-08  Bruno Haible  <bruno@clisp.org>
32681
32682         * gnulib-tool (func_import): Prefer rsync over wget when available,
32683         for fetching the PO files.
32684
32685 2007-09-08  Bruno Haible  <bruno@clisp.org>
32686
32687         * posix-modules: New file. Portions copied from gnulib-tool.
32688         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
32689
32690 2007-09-08  Jim Meyering  <jim@meyering.net>
32691
32692         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
32693         * lib/fpending.h: Rename from __fpending.h.
32694         * lib/fpending.c: Rename from __fpending.c.
32695         Include "fpending.h", not "__fpending.h".
32696         * lib/__fpending.h, lib/__fpending.c: Remove files.
32697         * modules/fpending (Files): Reflect new file names.
32698         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
32699
32700 2007-09-08  Bruno Haible  <bruno@clisp.org>
32701
32702         * m4/inttypes-h.m4: Remove stub file.
32703
32704 2007-09-07  Simon Josefsson  <simon@josefsson.org>
32705
32706         * doc/headers/stdint.texi: Discuss #include_next issue.
32707
32708 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
32709
32710         * build-aux/bootstrap: Remove obsolete comment about wget --help.
32711
32712 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32713
32714         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
32715         in variable name.
32716
32717 2007-09-03  Jim Meyering  <jim@meyering.net>
32718
32719         New module: git-version-gen.
32720         * modules/git-version-gen: New file.
32721
32722         Import changes from coreutils for bootstrap script.
32723
32724         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
32725
32726         bootstrap: uses rsync to download the .po files
32727         * build-aux/bootstrap (po_download_command_format): New global.
32728         (download_po_files): Use rsync.
32729         (update_po_files): Don't remove .po files after download,
32730         so future rsync runs can take advantage of the copies.
32731
32732         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
32733
32734         Solve the unnecessary-.po-file-regeneration problem once and for all.
32735         * build-aux/bootstrap (download_po_files): New function, renamed from
32736         get_translations.  Now, downloads, but doesn't update LINGUAS.
32737         (update_po_files): New function.
32738
32739         bootstrap: Ignore more.
32740         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
32741         uniwidth to e.g., lib/.gitignore.
32742         (slurp): Handle the sys_stat_.h -> sys mapping, too.
32743
32744         * build-aux/bootstrap: New setting: vc_ignore.
32745         (insert_sorted_if_absent): Create $file if absent.
32746         Adapt to new, possibly empty, list: $vc_ignore.
32747
32748         bootstrap: generate more ignorable names
32749         * build-aux/bootstrap (slurp): When generating ignorable names,
32750         also map .sin to .sed, .gperf to .c, and .y to .c.
32751
32752 2007-09-03  Jim Meyering  <jim@meyering.net>
32753
32754         * build-aux/git-version-gen: New file, from coreutils.  For details, see
32755         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
32756
32757 2007-09-02  Bruno Haible  <bruno@clisp.org>
32758
32759         Fix mis-recognition of 'mcs' on QNX 6.
32760         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
32761         output contains the string "Mono".
32762         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
32763         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
32764
32765 2007-09-01  Bruno Haible  <bruno@clisp.org>
32766
32767         Fix collision between uniwidth/* and linebreak modules.
32768         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
32769         u32_width): Remove declarations.
32770         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
32771         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
32772         streq3, streq2, streq1, streq0): Remove functions.
32773         (STREQ): Remove macro.
32774         (is_cjk_encoding): Remove function.
32775         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
32776         (uc_width, u8_width, u16_width, u32_width): Remove functions.
32777         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
32778         * NEWS: Document the change.
32779
32780 2007-09-01  Bruno Haible  <bruno@clisp.org>
32781
32782         * lib/streq.h: Add double-inclusion guard.
32783
32784 2007-09-01  Karl Berry  <karl@gnu.org>
32785
32786         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
32787
32788 2007-08-28  Jim Meyering  <jim@meyering.net>
32789
32790         Rename mreadlink_with_size to areadlink_with_size.
32791         * NEWS: Document the change.
32792         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
32793         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
32794         * lib/mreadlink.h: Rename this to...
32795         * lib/areadlink.h: ...this.
32796         * modules/mreadlink-with-size: Rename this to...
32797         * modules/areadlink-with-size: ...this.
32798         * lib/canonicalize.c: Reflect the renaming.
32799         * modules/canonicalize: Likewise.
32800
32801 2007-08-26  Bruno Haible  <bruno@clisp.org>
32802
32803         * gnulib-tool (func_import): When deciding which files to remove,
32804         consider also dangling symbolic links.
32805         Reported by Eric Blake.
32806
32807 2007-08-26  Bruno Haible  <bruno@clisp.org>
32808
32809         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
32810
32811 2007-08-23  Simon Josefsson  <simon@josefsson.org>
32812
32813         * lib/readline.c: Don't include getline.h, the prototype is now
32814         found in stdio.h.
32815
32816 2007-08-23  Jim Meyering  <jim@meyering.net>
32817
32818         Getdelim touchup.
32819         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
32820         around the funlockfile call, since funlockfile never sets errno.
32821         Don't set errno upon failed realloc.
32822
32823 2007-08-22  Eric Blake  <ebb9@byu.net>
32824
32825         Getline touchups.
32826         * lib/getdelim.c (getdelim): Revert regression that required *n to
32827         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
32828         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
32829         getdelim, rather than whether implementation is missing.
32830         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
32831         * lib/stdio_.h (getline): Also declare if replacement is
32832         required.
32833         * doc/functions/getdelim.texi: New file.
32834         * doc/functions/getline.texi: Likewise.
32835         * doc/gnulib.texi (Function Substitutes): Add new files.
32836         Reported by Bruno Haible.
32837
32838 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
32839
32840         * users.txt: Add Guile.
32841
32842 2007-08-22  Eric Blake  <ebb9@byu.net>
32843
32844         * tests/test-getdelim.c (main): Use remove, not unlink.
32845         * tests/test-getline.c (main): Likewise.
32846
32847         Move getline and getdelim into stdio.h, per POSIX 200x.
32848         * modules/getline (Files): Remove getline.h.
32849         (Depends-on): Add stdio.
32850         (configure.ac): Add module indicator.
32851         * modules/getdelim (Files): Remove getdelim.h.
32852         (Depends-on): Add stdio.
32853         (configure.ac): Add module indicator.
32854         * modules/stdio (Makefile.am): Work with new indicators.
32855         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
32856         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
32857         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
32858         * lib/getdelim.h: Delete.
32859         * lib/getline.h: Delete.
32860         * lib/stdio_.h (getdelim, getline): Declare.
32861         * modules/getdelim-tests: New module.
32862         * modules/getline-tests: Likewise.
32863         * tests/test-getdelim.c: New file.
32864         * tests/test-getline.c: Likewise.
32865         * NEWS: Document the change.
32866         * lib/getline.c: Update choice of header.
32867         * lib/csharpcomp.c: Likewise.
32868         * lib/getpass.c: Likewise.
32869         * lib/javacomp.c: Likewise.
32870         * lib/javaversion.c: Likewise.
32871         * lib/yesno.c: Likewise.
32872         * lib/getdelim.c: Likewise.
32873         (getdelim): Set errno on failure, and avoid memory leak.
32874
32875 2007-08-19  Bruno Haible  <bruno@clisp.org>
32876
32877         * modules/closein (Depends-on): Add freadahead.
32878         * lib/closein.c: Include freadahead.h.
32879         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
32880         is zero.
32881
32882 2007-08-19  Bruno Haible  <bruno@clisp.org>
32883
32884         * modules/freadahead-tests: New file.
32885         * tests/test-freadahead.sh: New file.
32886         * tests/test-freadahead.c: New file.
32887
32888         * modules/freadahead: New file.
32889         * lib/freadahead.h: New file.
32890         * lib/freadahead.c: New file.
32891         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
32892         fbufmode, fpurge, freadable, fwritable.
32893
32894 2007-08-19  Eric Blake  <ebb9@byu.net>
32895
32896         Test yesno in combination with closein.
32897         * lib/yesno.c (yesno): Document use of stdin.
32898         * modules/yesno-tests (Files): New module.
32899         * tests/test-yesno.c (main): New file.
32900         * tests/test-yesno.sh: Likewise.
32901
32902 2007-08-19  Bruno Haible  <bruno@clisp.org>
32903
32904         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
32905         * lib/fseeko.c (rpl_fseeko): Likewise.
32906         * lib/fseterr.c (fseterr): Likewise.
32907
32908 2007-08-19  Bruno Haible  <bruno@clisp.org>
32909
32910         * tests/test-lseek.c (main): Disable a test for BeOS.
32911         * doc/functions/lseek.texi: Document the BeOS bug.
32912
32913 2007-08-19  Bruno Haible  <bruno@clisp.org>
32914             Eric Blake  <ebb9@byu.net>
32915
32916         * lib/lseek.c: Include <sys/stat.h>.
32917         (rpl_lseek): Add workaround code also for Unix platforms.
32918         Needed for BeOS.
32919         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
32920         * doc/functions/lseek.texi: Document BeOS definiency.
32921
32922 2007-08-18  Bruno Haible  <bruno@clisp.org>
32923
32924         * modules/fstrcmp-tests: New file.
32925         * tests/test-fstrcmp.c: New file.
32926
32927 2007-08-18  Bruno Haible  <bruno@clisp.org>
32928
32929         * modules/fstrcmp: New file, from GNU gettext with modifications.
32930         * lib/fstrcmp.h: New file, from GNU gettext.
32931         * lib/fstrcmp.c: New file, from GNU gettext.
32932         * MODULES.html.sh (String handling): Add fstrcmp.
32933
32934 2007-08-18  Bruno Haible  <bruno@clisp.org>
32935
32936         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
32937         'bool'.
32938         (diag, compareseq): Remove const from the ctxt argument.
32939         (USE_HEURISTIC): Undefine at the end.
32940
32941 2007-08-18  Jim Meyering  <jim@meyering.net>
32942
32943         New file: lib/idcache.h
32944         * NEWS: Mention the addition.
32945         * modules/idcache (Files): Add lib/idcache.h
32946         * lib/idcache.c: Include "idcache.h".
32947         Don't include <sys/types.h>.
32948         Add a FIXME comment.
32949         Move file-scoped "static" declarations to the top.
32950         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
32951
32952 2007-08-17  Bruno Haible  <bruno@clisp.org>
32953         and Paul Eggert  <eggert@cs.ucla.edu>
32954
32955         * MODULES.html.sh: Add diffseq.
32956         * modules/diffseq: New file.
32957         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
32958         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
32959
32960 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
32961
32962         Import changes from coreutils for bootstrap script.
32963
32964         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
32965
32966         * build-aux/bootstrap (slurp): Work even in environments where
32967         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
32968         current code does not slurp files whose names start with ".", and
32969         this looks like it might be a troublesome area.
32970
32971         2007-07-11  Jim Meyering  <jim@meyering.net>
32972
32973         If there's a GPL vN copyright comment, require that N == 3.
32974
32975         2007-07-08  Jim Meyering  <jim@meyering.net>
32976
32977         Run the coreutils-specific code only if tests/Makefile.am.in exists.
32978         * build-aux/bootstrap (mam_template): Move definition out of loop.
32979
32980         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
32981
32982         * build-aux/bootstrap (symlink_to_dir): Rename function from
32983         symlink_to_gnulib.  Add a directory parameter.  Update all
32984         callers.
32985         (cp_mark_as_generated): Also check for -- and link to -- files in
32986         gl/.
32987
32988         2007-07-08  Jim Meyering  <jim@meyering.net>
32989
32990         Adapt to deeper hierarchy in gnulib.
32991         * build-aux/bootstrap (symlink_to_dir): If the destination
32992         directory doesn't exist, create it. This is required at least for
32993         "lib/uniwidth/cjk.h".
32994
32995         2007-05-15  Jim Meyering  <jim@meyering.net>
32996
32997         * build-aux/bootstrap: Now that generated Makefile.am files
32998         are no longer under version control, they must be created at
32999         bootstrap time.
33000
33001 2007-08-14  Ben Pfaff  <blp@gnu.org>
33002
33003         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
33004
33005 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
33006
33007         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
33008         given the changes below.
33009         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
33010         even on hosts that have padding bits beyond the supported 64.
33011
33012 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
33013
33014         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
33015         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
33016         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
33017         depends on it.
33018         (xstrtol_error): Remove.
33019         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
33020         but with a different signature.
33021         (ATTRIBUTE_NORETURN, __attribute__): New macros.
33022         * lib/xstrtol-error.c: Include exitfail.h.
33023         (xstrtol_fatal): New function, with a different signature from the
33024         old xstrtol_error, so that the caller need not worry about passing
33025         in an exit status, or about storage management of the option argument.
33026         (xstrtol_error): Now a static function.  Redo signature to
33027         implement xstrtol_fatal.  Output the correct number of hyphens in
33028         front of the option so that the caller need not worry about
33029         storage management.
33030         (N_): New macro.
33031         (_): Remove; not used now.
33032         * modules/xstrtol: Depend on getopt.
33033         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
33034         of old STRTOL_FATAL_ERROR macro.
33035         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
33036         of test program.
33037         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
33038         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
33039
33040 2007-08-08  Eric Blake  <ebb9@byu.net>
33041
33042         * lib/xstrtol-error.c: Add missing include.
33043
33044         Move xstrtol messages into gnulib domain, when --pobase is used.
33045         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
33046         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
33047         * modules/xstrtol (Files): Distribute new file.
33048         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
33049         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
33050         * tests/test-xstrtol.c: ...into new file.
33051         * tests/test-xstrtoul.c: Also test xstrtoul.
33052         * tests/test-xstrtoimax.c: Also test xstrtoimax.
33053         * tests/test-xstrtoumax.c: Also test xstrtoumax.
33054         * tests/test-xstrtol.sh: Drive the tests.
33055         * tests/test-xstrtoimax.sh: Likewise.
33056         * tests/test-xstrtoumax.sh: Likewise.
33057         * modules/xstrtol-tests: New module.
33058         * modules/xstrtoimax-tests: Likewise.
33059         * modules/xstrtoumax-tests: Likewise.
33060
33061 2007-08-08  Jim Meyering  <jim@meyering.net>
33062
33063         New function: mfile_name_concat.
33064         * lib/filenamecat.c (mfile_name_concat): New function, just like
33065         file_name_concat, but return NULL upon failure rather than exiting
33066         with a diagnostic.
33067         * lib/filenamecat.h: Declare it.
33068
33069 2007-08-07  Bruno Haible  <bruno@clisp.org>
33070
33071         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
33072         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
33073         warning from gcc.
33074         Reported by Eric Blake.
33075
33076 2007-08-07  Simon Josefsson  <simon@josefsson.org>
33077
33078         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
33079         * modules/crypto/arcfour (License): Likewise.
33080         * modules/crypto/des-tests (License): Likewise.
33081         * modules/crypto/gc-arctwo-tests (License): Likewise.
33082         * modules/crypto/gc-des-tests (License): Likewise.
33083         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
33084         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
33085         * modules/crypto/gc-md2-tests (License): Likewise.
33086         * modules/crypto/gc-md4-tests (License): Likewise.
33087         * modules/crypto/gc-md5-tests (License): Likewise.
33088         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
33089         * modules/crypto/gc-rijndael-tests (License): Likewise.
33090         * modules/crypto/gc-sha1-tests (License): Likewise.
33091         * modules/crypto/gc-tests (License): Likewise.
33092         * modules/crypto/hmac-md5 (License): Likewise.
33093         * modules/crypto/hmac-sha1 (License): Likewise.
33094         * modules/crypto/md2-tests (License): Likewise.
33095         * modules/crypto/md4-tests (License): Likewise.
33096         * modules/crypto/md5 (License): Likewise.
33097         * modules/crypto/rijndael (License): Likewise.
33098         * modules/crypto/sha1 (License): Likewise.
33099         * modules/memxor (License): Likewise.
33100
33101 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
33102         and Bruno Haible  <bruno@clisp.org>
33103
33104         * NEWS: Describe interface changes to human, xstrtol.
33105         * lib/human.h: Include <xstrtol.h>.
33106         (human_options): Return enum strtol_error, not int.  Remove
33107         bool arg; take int * instead.
33108         * lib/human.c: Don't include "gettext.h".
33109         (_): Remove; no longer used.
33110         Don't include <xstrtol.h>, since human.h does it.
33111         (human_options): Adjust to abovementioned interface changes.
33112         Do not report error to stderr; that's now the caller's
33113         responsibility.
33114         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
33115         interface change.
33116         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
33117         Str, Argument_type_string.  All uses changed.  Put " argument"
33118         in diagnostics to make them clearer.  Change wording of suffix
33119         message for clarity.
33120         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
33121         Argument_type_string.
33122         (STRTOL_FATAL_WARN): Remove; no longer used.
33123         * modules/human (Depends-on): Remove gettext-h.
33124
33125 2007-08-06  Simon Josefsson  <simon@josefsson.org>
33126
33127         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
33128
33129 2007-07-31  Bruno Haible  <bruno@clisp.org>
33130
33131         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
33132         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
33133         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
33134
33135 2007-07-31  Bruno Haible  <bruno@clisp.org>
33136
33137         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
33138         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
33139
33140 2007-07-30  Bruno Haible  <bruno@clisp.org>
33141
33142         * modules/base64 (License): Use the synonymous term "LGPLv2+".
33143         * modules/c-ctype (License): Likewise.
33144         * modules/c-strcase (License): Likewise.
33145         * modules/check-version (License): Likewise.
33146         * modules/iconv (License): Likewise.
33147         * modules/iconv_open (License): Likewise.
33148         * modules/read-file (License): Likewise.
33149         * modules/striconv (License): Likewise.
33150         * modules/strverscmp (License): Likewise.
33151         * modules/vasprintf (License): Likewise.
33152         * modules/crypto/des (License): Likewise.
33153         * modules/crypto/gc (License): Likewise.
33154         * modules/crypto/gc-arcfour (License): Likewise.
33155         * modules/crypto/gc-arctwo (License): Likewise.
33156         * modules/crypto/gc-des (License): Likewise.
33157         * modules/crypto/gc-hmac-md5 (License): Likewise.
33158         * modules/crypto/gc-hmac-sha1 (License): Likewise.
33159         * modules/crypto/gc-md2 (License): Likewise.
33160         * modules/crypto/gc-md4 (License): Likewise.
33161         * modules/crypto/gc-md5 (License): Likewise.
33162         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
33163         * modules/crypto/gc-random (License): Likewise.
33164         * modules/crypto/gc-rijndael (License): Likewise.
33165         * modules/crypto/gc-sha1 (License): Likewise.
33166         * modules/crypto/md2 (License): Likewise.
33167         * modules/crypto/md4 (License): Likewise.
33168
33169 2007-07-30  Jim Meyering  <jim@meyering.net>
33170
33171         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
33172         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
33173         it has valid stat data.  This bug would cause du not to count the
33174         sizes of inaccessible directories.
33175         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
33176         in <http://bugzilla.redhat.com/250077>.
33177
33178 2007-07-25  Peter O'Gorman  <peter@pogma.com>
33179             Bruno Haible  <bruno@clisp.org>
33180
33181         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
33182         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
33183         #include_next, gives a diagnostic about it, but reports no error in
33184         the exit code.
33185         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
33186
33187 2007-07-24  Ben Pfaff  <blp@gnu.org>
33188
33189         Improve name: "count-one-bits" is better than "popcount".
33190         * MODULES.html.sh: Update name.
33191         * lib/popcount.h: Renamed lib/count-one-bits.h.
33192         (popcount): Renamed count_one_bits.
33193         (popcountl): Renamed count_one_bits_l.
33194         (popcountll): Renamed count_one_bits_ll.
33195         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
33196         * modules/popcount: Renamed module/count-one-bits.
33197         * modules/popcount-tests: Renamed module/count-one-bits-tests.
33198         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
33199
33200 2007-07-23  Ben Pfaff  <blp@gnu.org>
33201
33202         * lib/popcount.h (popcount32): Reduce size of constants, to allow
33203         better code generation, and add U to large constants to avoid
33204         warnings, in non-GCC case.
33205         Suggested by Bruno Haible.
33206
33207 2007-07-23  Ben Pfaff  <blp@gnu.org>
33208
33209         * lib/popcount.h: Use verify_true instead of if...abort.
33210         * modules/popcount: Depend on verify module.
33211         Suggested by Jim Meyering.
33212
33213 2007-07-23  Bruno Haible  <bruno@clisp.org>
33214
33215         * gnulib-tool (func_import): Create a .cvsignore file also when the
33216         directory is not yet in CVS but the toplevel directory is. When
33217         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
33218         Reported by Karl Berry.
33219
33220 2007-07-22  Ben Pfaff  <blp@gnu.org>
33221
33222         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
33223         case.
33224         Suggested by Eric Blake.
33225
33226 2007-07-22  Ben Pfaff  <blp@gnu.org>
33227
33228         New module: popcount.
33229         * MODULES.html.sh: Add popcount.
33230         * modules/popcount: New file.
33231         * modules/popcount-tests: New file.
33232         * tests/test-popcount.c: New file.
33233         * lib/popcount.h: New file.
33234         * m4/popcount.m4: New file.
33235
33236 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
33237
33238         * build-aux/announce-gen: Update to GPLv3.
33239
33240         * build-aux/config.guess: Update from config.
33241
33242 2007-07-21  Bruno Haible  <bruno@clisp.org>
33243
33244         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
33245         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
33246
33247 2007-07-20  Jim Meyering  <jim@meyering.net>
33248
33249         * check-module: Diagnose a self-dependency.
33250
33251 2007-07-19  Bruno Haible  <bruno@clisp.org>
33252
33253         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
33254         empty.
33255         Reported by Eric Blake.
33256
33257 2007-07-18  Bruno Haible  <bruno@clisp.org>
33258
33259         * gnulib-tool: New options --po-base, --po-domain.
33260         (func_usage): Document them.
33261         (pobase, po_domain): New variables.
33262         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
33263         DEFAULT_TEXT_DOMAIN.
33264         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
33265         (func_import): Consider pobase and po_domain. Create a po/ directory.
33266         (func_create_testdir): Set pobase and po_domain to empty.
33267         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
33268         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
33269
33270 2007-07-18  Bruno Haible  <bruno@clisp.org>
33271
33272         * gnulib-tool (func_get_automake_snippet): Synthesize also an
33273         EXTRA_DIST augmentation for files in build-aux/.
33274
33275 2007-07-16  Bruno Haible  <bruno@clisp.org>
33276
33277         * modules/lseek (License): Use the synonymous term "LGPLv2+".
33278         * modules/getdelim (License): Likewise.
33279
33280 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33281
33282         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
33283         * modules/d-type (License): Likewise.
33284         * modules/extensions (License): Likewise.
33285         * modules/fnmatch (License): Likewise.
33286         * modules/fseeko (License): Likewise.
33287         * modules/getaddrinfo (License): Likewise.
33288         * modules/getline (License): Likewise.
33289         * modules/getlogin_r (License): Likewise.
33290         * modules/getpass (License): Likewise.
33291         * modules/gettimeofday (License): Likewise.
33292         * modules/glob (License): Likewise.
33293         * modules/inet_ntop (License): Likewise.
33294         * modules/malloc (License): Likewise.
33295         * modules/malloca (License): Likewise.
33296         * modules/memmem (License): Likewise.
33297         * modules/mempcpy (License): Likewise.
33298         * modules/memset (License): Likewise.
33299         * modules/minmax (License): Likewise.
33300         * modules/mktime (License): Likewise.
33301         * modules/netinet_in (License): Likewise.
33302         * modules/pathmax (License): Likewise.
33303         * modules/poll (License): Likewise.
33304         * modules/regex (License): Likewise.
33305         * modules/snprintf (License): Likewise.
33306         * modules/stdbool (License): Likewise.
33307         * modules/stdint (License): Likewise.
33308         * modules/stdio (License): Likewise.
33309         * modules/strcase (License): Likewise.
33310         * modules/strcasestr (License): Likewise.
33311         * modules/strdup (License): Likewise.
33312         * modules/string (License): Likewise.
33313         * modules/strndup (License): Likewise.
33314         * modules/strnlen (License): Likewise.
33315         * modules/strpbrk (License): Likewise.
33316         * modules/strptime (License): Likewise.
33317         * modules/strsep (License): Likewise.
33318         * modules/sys_select (License): Likewise.
33319         * modules/sys_socket (License): Likewise.
33320         * modules/sys_stat (License): Likewise.
33321         * modules/sys_time (License): Likewise.
33322         * modules/time (License): Likewise.
33323         * modules/time_r (License): Likewise.
33324         * modules/timegm (License): Likewise.
33325         * modules/unistd (License): Likewise.
33326         * modules/vsnprintf (License): Likewise.
33327         * modules/wctype (License): Likewise.
33328
33329 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33330
33331         * modules/argz (License): LGPLv2+.
33332
33333 2007-07-15  Karl Berry  <karl@gnu.org>
33334
33335         * doc/gnulib.texi: revise node structure per new fdl.texi.
33336
33337 2007-07-14  Bruno Haible  <bruno@clisp.org>
33338
33339         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
33340         the output file.
33341         * lib/uniname/uninames.h: Regenerated.
33342
33343 2007-07-14  Karl Berry  <karl@gnu.org>
33344
33345         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
33346         omitting sectioning and index commands.
33347
33348 2007-07-13  Bruno Haible  <bruno@clisp.org>
33349
33350         New gnulib-tool option --more-symlinks.
33351         * gnulib-tool (func_usage): Document --more-symlinks.
33352         (do_copyrights): New variable.
33353         Recognize option --more-symlinks.
33354         (func_import): Don't add a copyright notice transform to
33355         sed_transform_lib_file if do_copyrights is empty.
33356
33357 2007-07-13  Bruno Haible  <bruno@clisp.org>
33358
33359         * lib/vasnprintf.c (decimal_point_char): Define also if
33360         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
33361         && !NEED_PRINTF_DIRECTIVE_A.
33362         Reported by Clemens Koller <clemens.koller@anagramm.de> via
33363         Gary V. Vaughan <gary@gnu.org>.
33364
33365 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
33366
33367         * lib/inttypes_.h: Undo previous change, since it was fixed
33368         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
33369
33370 2007-07-13  Bruno Haible  <bruno@clisp.org>
33371
33372         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
33373         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
33374
33375 2007-07-13  Jim Meyering  <jim@meyering.net>
33376
33377         df: Don't fail for Tru64's "file-on-file mount".
33378         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
33379         so we fall through and use statfs instead.  Details here:
33380         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
33381         Reported by Albert Chin.
33382
33383 2007-07-13  Bruno Haible  <bruno@clisp.org>
33384
33385         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
33386         * modules/configmake (License): Likewise.
33387         * modules/gettext (License): Likewise.
33388         * modules/gettext-h (License): Likewise.
33389         * modules/include_next (License): Likewise.
33390         * modules/link-warning (License): Likewise.
33391         * modules/localcharset (License): Likewise.
33392         * modules/localename (License): Likewise.
33393         * modules/lock (License): Likewise.
33394         * modules/relocatable-lib-lgpl (License): Likewise.
33395         * modules/size_max (License): Likewise.
33396         * modules/vasnprintf (License): Likewise.
33397         * modules/wchar (License): Likewise.
33398         * modules/xsize (License): Likewise.
33399
33400 2007-07-13  Bruno Haible  <bruno@clisp.org>
33401
33402         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
33403         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
33404
33405 2007-07-12  Bruno Haible  <bruno@clisp.org>
33406
33407         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
33408         in the modules files.
33409
33410 2007-07-11  Karl Berry  <karl@gnu.org>
33411
33412         * MODULES.html.sh (func_module): use
33413          sed -e '\|^'"${includefile}"'$|d'
33414          instead of /.../d, to avoid errors on $includefile's containing /.
33415
33416 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
33417
33418         * gnulib-tool (func_import): Avoid duplication of --avoid
33419         statements
33420         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
33421         names to `_' in variable names.
33422
33423 2007-07-10  Eric Blake  <ebb9@byu.net>
33424
33425         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
33426         * NEWS: Document this change.
33427
33428 2007-07-08  Bruno Haible  <bruno@clisp.org>
33429
33430         Update to Unicode 5.0.
33431         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
33432         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
33433         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
33434         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
33435         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
33436         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
33437         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
33438         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
33439         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
33440         U+10A3F, U+1D242..U+1D244.
33441         (nonspacing_table_ind): Update.
33442         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
33443         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
33444
33445 2007-07-08  Bruno Haible  <bruno@clisp.org>
33446
33447         Update to Unicode 5.0.
33448         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
33449         code transform. Extend the name index field of unicode_name_to_code and
33450         unicode_code_to_name from 16 to 24 bits.
33451         * lib/uniname/uniname.c (unicode_character_name,
33452         unicode_name_character): Add the range 0x12xxx to the code transform.
33453         * lib/uniname/uninames.h: Regenerated.
33454         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
33455
33456 2007-07-07  Bruno Haible  <bruno@clisp.org>
33457
33458         * modules/wcwidth-tests: New file.
33459         * tests/test-wcwidth.c: New file.
33460
33461         Work around MacOS X wcwidth() bug.
33462         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
33463         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
33464         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
33465         original wcwidth in non-UTF-8 locales.
33466         * modules/wcwidth (Depends-on): Add localcharset, streq,
33467         uniwidth/width.
33468         * doc/functions/wcwidth.texi: Update.
33469
33470 2007-07-07  Bruno Haible  <bruno@clisp.org>
33471
33472         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
33473         (wcwidth): New declaration.
33474         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
33475         macros.
33476         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
33477         here. Prepare for creating <wchar.h> unconditionally.
33478         * modules/wchar (Depends-on): Add link-warning.
33479         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
33480         REPLACE_WCWIDTH, and GL_LINK_WARNING.
33481         * lib/wcwidth.h: Remove file.
33482         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
33483         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
33484         * modules/wcwidth (Files): Remove lib/wcwidth.h.
33485         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
33486         (Include): Replace wcwidth.h with <wchar.h>.
33487         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
33488         * lib/mbchar.h: Don't include wcwidth.h.
33489         * lib/mbswidth.c: Likewise.
33490         * NEWS: Mention the change.
33491
33492 2007-07-07  Bruno Haible  <bruno@clisp.org>
33493
33494         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
33495         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
33496         definition with an external declaration.
33497         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
33498         defined as a function. Remove AC_C_INLINE requirement.
33499         * modules/wcwidth (Files): Add lib/wcwidth.c.
33500         (Makefile.am): Remove redundant statement.
33501
33502 2007-07-07  Bruno Haible  <bruno@clisp.org>
33503
33504         * MODULES.html.sh (Unicode string functions): Add the new modules.
33505
33506         * tests/uniwidth/test-u32-strwidth.c: New file.
33507         * modules/uniwidth/u32-strwidth-tests: New file.
33508
33509         * lib/uniwidth/u32-strwidth.c: New file.
33510         * modules/uniwidth/u32-strwidth: New file.
33511
33512         * tests/uniwidth/test-u16-strwidth.c: New file.
33513         * modules/uniwidth/u16-strwidth-tests: New file.
33514
33515         * lib/uniwidth/u16-strwidth.c: New file.
33516         * modules/uniwidth/u16-strwidth: New file.
33517
33518         * tests/uniwidth/test-u8-strwidth.c: New file.
33519         * modules/uniwidth/u8-strwidth-tests: New file.
33520
33521         * lib/uniwidth/u8-strwidth.c: New file.
33522         * modules/uniwidth/u8-strwidth: New file.
33523
33524         * tests/uniwidth/test-u32-width.c: New file.
33525         * modules/uniwidth/u32-width-tests: New file.
33526
33527         * lib/uniwidth/u32-width.c: New file.
33528         * modules/uniwidth/u32-width: New file.
33529
33530         * tests/uniwidth/test-u16-width.c: New file.
33531         * modules/uniwidth/u16-width-tests: New file.
33532
33533         * lib/uniwidth/u16-width.c: New file.
33534         * modules/uniwidth/u16-width: New file.
33535
33536         * tests/uniwidth/test-u8-width.c: New file.
33537         * modules/uniwidth/u8-width-tests: New file.
33538
33539         * lib/uniwidth/u8-width.c: New file.
33540         * modules/uniwidth/u8-width: New file.
33541
33542         * tests/uniwidth/test-uc_width.c: New file.
33543         * modules/uniwidth/width-tests: New file.
33544
33545         * lib/uniwidth/width.c: New file, from GNU libiconv.
33546         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
33547         * modules/uniwidth/width: New file.
33548
33549         * lib/uniwidth.h: New file, from GNU libiconv.
33550         * modules/uniwidth/base: New file.
33551
33552 2007-07-07  Bruno Haible  <bruno@clisp.org>
33553
33554         * lib/uniname.h: New file, from GNU gettext.
33555         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
33556         * lib/uniname/uninames.h: New file, from GNU gettext.
33557         * lib/uniname/uniname.c: New file, from GNU gettext.
33558         * tests/uniname/test-uninames.sh: New file.
33559         * tests/uniname/test-uninames.c: New file, from GNU gettext.
33560         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
33561         * modules/uniname/base: New file.
33562         * modules/uniname/uniname: New file.
33563         * modules/uniname/uniname-tests: New file.
33564         * MODULES.html.sh (Unicode string functions): Add the new modules.
33565
33566 2007-07-06  Bruno Haible  <bruno@clisp.org>
33567
33568         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
33569
33570 2007-07-06  Bruno Haible  <bruno@clisp.org>
33571
33572         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
33573         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
33574         includes <cygwin/sys_time.h> which includes <sys/select.h> which
33575         include <sys/time.h>.
33576         Reported by Eric Blake.
33577
33578 2007-07-06  Eric Blake  <ebb9@byu.net>
33579
33580         Fix testing canonicalize on cygwin.
33581         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
33582         Revert patch from 2007-06-19.
33583         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
33584         canonicalize module is also in use.
33585         * tests/test-canonicalize.c: New file.
33586         * tests/test-canonicalize.sh: Likewise.
33587         * modules/canonicalize-tests: Likewise.
33588
33589 2007-07-06  Jim Meyering  <jim@meyering.net>
33590
33591         * lib/getugroups.c (getugroups): Detect getgrent failure.
33592         Adjust comment to reflect reality: this function may return -1.
33593
33594 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
33595
33596         * build-aux/bootstrap (TP_URL,get_translations): Update to use
33597         the new TP address.
33598         (usage): Fix typo
33599         (gnulib_mk): New variable.
33600
33601 2007-07-05  Jim Meyering  <jim@meyering.net>
33602
33603         Don't let endgrent clobber errno, no matter how improbable.
33604         * lib/getugroups.c (getugroups): Save and restore errno around
33605         endgrent call.
33606
33607         Close the group DB even when failing with 2^31 or more members.
33608         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
33609
33610 2007-07-04  Jim Meyering  <jim@meyering.net>
33611
33612         * lib/getugroups.h: New file.
33613         * lib/getugroups.c: Include "getugroups.h".
33614         Remove uses of "register" keyword.
33615         Move local variable, "cp", down into scope where used.
33616         Give "username" parameter the "const" attribute.
33617         * modules/getugroups (Files): Add lib/getugroups.h
33618
33619 2007-07-04  Karl Berry  <karl@gnu.org>
33620
33621         * MODULES.html.sh (func_all_modules): Complete rename of
33622         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
33623
33624 2007-07-02  Bruno Haible  <bruno@clisp.org>
33625
33626         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
33627         mode, when inttypes.h comes from gnulib.
33628         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
33629
33630 2007-07-02  Simon Josefsson  <simon@josefsson.org>
33631
33632         * NEWS: Mention lgpl module name change.
33633
33634         * modules/lgpl-2.1: Renamed from lgpl.
33635
33636         * NEWS: Mention gpl module name change.
33637
33638         * modules/gpl-3.0: New file, based on gpl-2.0.
33639
33640         * modules/gpl-2.0: Renamed from gpl.
33641
33642         * modules/gpl: Fix filename, doc/gpl.texi is now found at
33643         doc/gpl-2.0.texi.
33644
33645 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
33646
33647         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
33648         #define __STDC_LIMIT_MACROS temporarily while including
33649         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
33650         Problem reported by Joel E. Denny in
33651         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
33652
33653 2007-07-01  Bruno Haible  <bruno@clisp.org>
33654
33655         * lib/unistdio.h: New file.
33656         * lib/unistdio/u-asnprintf.h: New file.
33657         * lib/unistdio/u-asprintf.h: New file.
33658         * lib/unistdio/u-printf-args.c: New file.
33659         * lib/unistdio/u-printf-args.h: New file.
33660         * lib/unistdio/u-printf-parse.h: New file.
33661         * lib/unistdio/u-snprintf.h: New file.
33662         * lib/unistdio/u-sprintf.h: New file.
33663         * lib/unistdio/u-vasprintf.h: New file.
33664         * lib/unistdio/u-vsnprintf.h: New file.
33665         * lib/unistdio/u-vsprintf.h: New file.
33666         * lib/unistdio/ulc-asnprintf.c: New file.
33667         * lib/unistdio/ulc-asprintf.c: New file.
33668         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
33669         * lib/unistdio/ulc-printf-parse.c: New file.
33670         * lib/unistdio/ulc-snprintf.c: New file.
33671         * lib/unistdio/ulc-sprintf.c: New file.
33672         * lib/unistdio/ulc-vasnprintf.c: New file.
33673         * lib/unistdio/ulc-vasprintf.c: New file.
33674         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
33675         * lib/unistdio/ulc-vsnprintf.c: New file.
33676         * lib/unistdio/ulc-vsprintf.c: New file.
33677         * lib/unistdio/u8-asnprintf.c: New file.
33678         * lib/unistdio/u8-asprintf.c: New file.
33679         * lib/unistdio/u8-printf-parse.c: New file.
33680         * lib/unistdio/u8-snprintf.c: New file.
33681         * lib/unistdio/u8-sprintf.c: New file.
33682         * lib/unistdio/u8-vasnprintf.c: New file.
33683         * lib/unistdio/u8-vasprintf.c: New file.
33684         * lib/unistdio/u8-vsnprintf.c: New file.
33685         * lib/unistdio/u8-vsprintf.c: New file.
33686         * lib/unistdio/u8-u8-asnprintf.c: New file.
33687         * lib/unistdio/u8-u8-asprintf.c: New file.
33688         * lib/unistdio/u8-u8-snprintf.c: New file.
33689         * lib/unistdio/u8-u8-sprintf.c: New file.
33690         * lib/unistdio/u8-u8-vasnprintf.c: New file.
33691         * lib/unistdio/u8-u8-vasprintf.c: New file.
33692         * lib/unistdio/u8-u8-vsnprintf.c: New file.
33693         * lib/unistdio/u8-u8-vsprintf.c: New file.
33694         * lib/unistdio/u16-asnprintf.c: New file.
33695         * lib/unistdio/u16-asprintf.c: New file.
33696         * lib/unistdio/u16-printf-parse.c: New file.
33697         * lib/unistdio/u16-snprintf.c: New file.
33698         * lib/unistdio/u16-sprintf.c: New file.
33699         * lib/unistdio/u16-vasnprintf.c: New file.
33700         * lib/unistdio/u16-vasprintf.c: New file.
33701         * lib/unistdio/u16-vsnprintf.c: New file.
33702         * lib/unistdio/u16-vsprintf.c: New file.
33703         * lib/unistdio/u16-u16-asnprintf.c: New file.
33704         * lib/unistdio/u16-u16-asprintf.c: New file.
33705         * lib/unistdio/u16-u16-snprintf.c: New file.
33706         * lib/unistdio/u16-u16-sprintf.c: New file.
33707         * lib/unistdio/u16-u16-vasnprintf.c: New file.
33708         * lib/unistdio/u16-u16-vasprintf.c: New file.
33709         * lib/unistdio/u16-u16-vsnprintf.c: New file.
33710         * lib/unistdio/u16-u16-vsprintf.c: New file.
33711         * lib/unistdio/u32-asnprintf.c: New file.
33712         * lib/unistdio/u32-asprintf.c: New file.
33713         * lib/unistdio/u32-printf-parse.c: New file.
33714         * lib/unistdio/u32-snprintf.c: New file.
33715         * lib/unistdio/u32-sprintf.c: New file.
33716         * lib/unistdio/u32-vasnprintf.c: New file.
33717         * lib/unistdio/u32-vasprintf.c: New file.
33718         * lib/unistdio/u32-vsnprintf.c: New file.
33719         * lib/unistdio/u32-vsprintf.c: New file.
33720         * lib/unistdio/u32-u32-asnprintf.c: New file.
33721         * lib/unistdio/u32-u32-asprintf.c: New file.
33722         * lib/unistdio/u32-u32-snprintf.c: New file.
33723         * lib/unistdio/u32-u32-sprintf.c: New file.
33724         * lib/unistdio/u32-u32-vasnprintf.c: New file.
33725         * lib/unistdio/u32-u32-vasprintf.c: New file.
33726         * lib/unistdio/u32-u32-vsnprintf.c: New file.
33727         * lib/unistdio/u32-u32-vsprintf.c: New file.
33728         * tests/unistdio/test-ulc-asnprintf1.c: New file.
33729         * tests/unistdio/test-ulc-asnprintf1.h: New file.
33730         * tests/unistdio/test-ulc-printf1.h: New file.
33731         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
33732         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
33733         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
33734         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
33735         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
33736         * tests/unistdio/test-ulc-vasprintf1.c: New file.
33737         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
33738         * tests/unistdio/test-ulc-vsprintf1.c: New file.
33739         * tests/unistdio/test-u8-asnprintf1.c: New file.
33740         * tests/unistdio/test-u8-asnprintf1.h: New file.
33741         * tests/unistdio/test-u8-printf1.h: New file.
33742         * tests/unistdio/test-u8-vasnprintf1.c: New file.
33743         * tests/unistdio/test-u8-vasnprintf2.c: New file.
33744         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
33745         * tests/unistdio/test-u8-vasnprintf3.c: New file.
33746         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
33747         * tests/unistdio/test-u8-vasprintf1.c: New file.
33748         * tests/unistdio/test-u8-vsnprintf1.c: New file.
33749         * tests/unistdio/test-u8-vsprintf1.c: New file.
33750         * tests/unistdio/test-u16-asnprintf1.c: New file.
33751         * tests/unistdio/test-u16-asnprintf1.h: New file.
33752         * tests/unistdio/test-u16-printf1.h: New file.
33753         * tests/unistdio/test-u16-vasnprintf1.c: New file.
33754         * tests/unistdio/test-u16-vasnprintf2.c: New file.
33755         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
33756         * tests/unistdio/test-u16-vasnprintf3.c: New file.
33757         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
33758         * tests/unistdio/test-u16-vasprintf1.c: New file.
33759         * tests/unistdio/test-u16-vsnprintf1.c: New file.
33760         * tests/unistdio/test-u16-vsprintf1.c: New file.
33761         * tests/unistdio/test-u32-asnprintf1.c: New file.
33762         * tests/unistdio/test-u32-asnprintf1.h: New file.
33763         * tests/unistdio/test-u32-printf1.h: New file.
33764         * tests/unistdio/test-u32-vasnprintf1.c: New file.
33765         * tests/unistdio/test-u32-vasnprintf2.c: New file.
33766         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
33767         * tests/unistdio/test-u32-vasnprintf3.c: New file.
33768         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
33769         * tests/unistdio/test-u32-vasprintf1.c: New file.
33770         * tests/unistdio/test-u32-vsnprintf1.c: New file.
33771         * tests/unistdio/test-u32-vsprintf1.c: New file.
33772         * modules/unistdio/base: New file.
33773         * modules/unistdio/u-printf-args: New file.
33774         * modules/unistdio/ulc-asnprintf: New file.
33775         * modules/unistdio/ulc-asprintf: New file.
33776         * modules/unistdio/ulc-fprintf: New file.
33777         * modules/unistdio/ulc-printf-parse: New file.
33778         * modules/unistdio/ulc-snprintf: New file.
33779         * modules/unistdio/ulc-sprintf: New file.
33780         * modules/unistdio/ulc-vasnprintf: New file.
33781         * modules/unistdio/ulc-vasprintf: New file.
33782         * modules/unistdio/ulc-vfprintf: New file.
33783         * modules/unistdio/ulc-vsnprintf: New file.
33784         * modules/unistdio/ulc-vsprintf: New file.
33785         * modules/unistdio/u8-asnprintf: New file.
33786         * modules/unistdio/u8-asprintf: New file.
33787         * modules/unistdio/u8-printf-parse: New file.
33788         * modules/unistdio/u8-snprintf: New file.
33789         * modules/unistdio/u8-sprintf: New file.
33790         * modules/unistdio/u8-vasnprintf: New file.
33791         * modules/unistdio/u8-vasprintf: New file.
33792         * modules/unistdio/u8-vsnprintf: New file.
33793         * modules/unistdio/u8-vsprintf: New file.
33794         * modules/unistdio/u8-u8-asnprintf: New file.
33795         * modules/unistdio/u8-u8-asprintf: New file.
33796         * modules/unistdio/u8-u8-snprintf: New file.
33797         * modules/unistdio/u8-u8-sprintf: New file.
33798         * modules/unistdio/u8-u8-vasnprintf: New file.
33799         * modules/unistdio/u8-u8-vasprintf: New file.
33800         * modules/unistdio/u8-u8-vsnprintf: New file.
33801         * modules/unistdio/u8-u8-vsprintf: New file.
33802         * modules/unistdio/u16-asnprintf: New file.
33803         * modules/unistdio/u16-asprintf: New file.
33804         * modules/unistdio/u16-printf-parse: New file.
33805         * modules/unistdio/u16-snprintf: New file.
33806         * modules/unistdio/u16-sprintf: New file.
33807         * modules/unistdio/u16-vasnprintf: New file.
33808         * modules/unistdio/u16-vasprintf: New file.
33809         * modules/unistdio/u16-vsnprintf: New file.
33810         * modules/unistdio/u16-vsprintf: New file.
33811         * modules/unistdio/u16-u16-asnprintf: New file.
33812         * modules/unistdio/u16-u16-asprintf: New file.
33813         * modules/unistdio/u16-u16-snprintf: New file.
33814         * modules/unistdio/u16-u16-sprintf: New file.
33815         * modules/unistdio/u16-u16-vasnprintf: New file.
33816         * modules/unistdio/u16-u16-vasprintf: New file.
33817         * modules/unistdio/u16-u16-vsnprintf: New file.
33818         * modules/unistdio/u16-u16-vsprintf: New file.
33819         * modules/unistdio/u32-asnprintf: New file.
33820         * modules/unistdio/u32-asprintf: New file.
33821         * modules/unistdio/u32-printf-parse: New file.
33822         * modules/unistdio/u32-snprintf: New file.
33823         * modules/unistdio/u32-sprintf: New file.
33824         * modules/unistdio/u32-vasnprintf: New file.
33825         * modules/unistdio/u32-vasprintf: New file.
33826         * modules/unistdio/u32-vsnprintf: New file.
33827         * modules/unistdio/u32-vsprintf: New file.
33828         * modules/unistdio/u32-u32-asnprintf: New file.
33829         * modules/unistdio/u32-u32-asprintf: New file.
33830         * modules/unistdio/u32-u32-snprintf: New file.
33831         * modules/unistdio/u32-u32-sprintf: New file.
33832         * modules/unistdio/u32-u32-vasnprintf: New file.
33833         * modules/unistdio/u32-u32-vasprintf: New file.
33834         * modules/unistdio/u32-u32-vsnprintf: New file.
33835         * modules/unistdio/u32-u32-vsprintf: New file.
33836         * modules/unistdio/ulc-asnprintf-tests: New file.
33837         * modules/unistdio/ulc-vasnprintf-tests: New file.
33838         * modules/unistdio/ulc-vasprintf-tests: New file.
33839         * modules/unistdio/ulc-vsnprintf-tests: New file.
33840         * modules/unistdio/ulc-vsprintf-tests: New file.
33841         * modules/unistdio/u8-asnprintf-tests: New file.
33842         * modules/unistdio/u8-vasnprintf-tests: New file.
33843         * modules/unistdio/u8-vasprintf-tests: New file.
33844         * modules/unistdio/u8-vsnprintf-tests: New file.
33845         * modules/unistdio/u8-vsprintf-tests: New file.
33846         * modules/unistdio/u16-asnprintf-tests: New file.
33847         * modules/unistdio/u16-vasnprintf-tests: New file.
33848         * modules/unistdio/u16-vasprintf-tests: New file.
33849         * modules/unistdio/u16-vsnprintf-tests: New file.
33850         * modules/unistdio/u16-vsprintf-tests: New file.
33851         * modules/unistdio/u32-asnprintf-tests: New file.
33852         * modules/unistdio/u32-vasnprintf-tests: New file.
33853         * modules/unistdio/u32-vasprintf-tests: New file.
33854         * modules/unistdio/u32-vsnprintf-tests: New file.
33855         * modules/unistdio/u32-vsprintf-tests: New file.
33856         * MODULES.html.sh (Unicode string functions): Add the new modules.
33857
33858 2007-07-01  Bruno Haible  <bruno@clisp.org>
33859
33860         * lib/sprintf.c (sprintf): Limit the available length estimation,
33861         to avoid address wraparound.
33862         * lib/vsprintf.c (vsprintf): Likewise.
33863         * modules/sprintf-posix (Dependencies): Add stdint.
33864         * modules/vsprintf-posix (Dependencies): Likewise.
33865
33866 2007-07-01  Bruno Haible  <bruno@clisp.org>
33867
33868         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
33869         Windows PATH as well. Conservative double-quoting. Comments.
33870
33871 2007-07-01  Bruno Haible  <bruno@clisp.org>
33872             Eric Blake  <ebb9@byu.net>
33873             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33874
33875         * gnulib-tool (self_abspathname): Fix algorithm to cope with
33876         empty components in $PATH, denoting '.'.
33877
33878 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33879
33880         * gnulib-tool: Fix indentation.
33881         (func_create_megatestdir): Likewise.
33882         Report by Bruno Haible.
33883
33884 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33885
33886         Sync from Automake.
33887         * build-aux/gnupload: Fix shell portability issues with for loops.
33888         Report by Karl Berry.
33889
33890 2007-06-29  Simon Josefsson  <simon@josefsson.org>
33891
33892         * build-aux/maint.mk (POURL): Use translationproject.org.
33893
33894 2007-06-27  Simon Josefsson  <simon@josefsson.org>
33895             Bruno Haible  <bruno@clisp.org>
33896
33897         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
33898         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
33899         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
33900         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
33901         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
33902
33903 2007-06-27  Bruno Haible  <bruno@clisp.org>
33904
33905         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
33906         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
33907
33908 2007-06-26  Karl Berry  <karl@gnu.org>
33909
33910         * MODULES.html.sh: remove xreadlink-with-size.
33911
33912 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
33913
33914         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
33915         method that I hope also handles the double-include problem noted
33916         by Bruno Haible in
33917         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
33918
33919 2007-06-23  Bruno Haible  <bruno@clisp.org>
33920
33921         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33922         Don't let the 'mostlyclean' target fail if the last subdirectory could
33923         not be removed.
33924         Reported by Karl Berry.
33925
33926 2007-06-23  Bruno Haible  <bruno@clisp.org>
33927
33928         * gnulib-tool (echo): Add a speedier workaround for ksh.
33929         * tests/test-echo.sh: Likewise.
33930
33931 2007-06-23  Bruno Haible  <bruno@clisp.org>
33932
33933         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
33934         * tests/test-echo.sh: Likewise.
33935
33936 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33937
33938         * gnulib-tool (IFS): Initialize early, so we don't set it to
33939         empty later.
33940         (self_abspathname): Rewrite algorithm to set it, reindent.
33941         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
33942         (func_create_megatestdir): Merge some sed scripts.
33943
33944 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
33945
33946         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
33947         exposed by Sun Studio 11 cc on Solaris 8.
33948
33949 2007-06-22  Bruno Haible  <bruno@clisp.org>
33950
33951         * gnulib-tool (echo): Ensure the echo primitive does not interpret
33952         backslashes.
33953         * tests/test-echo.sh: New file.
33954
33955 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33956
33957         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
33958         simplify `sed_replace_build_aux' scripts, they are portable but
33959         echoing them with `echo' is not.
33960         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
33961
33962 2007-06-21  Karl Berry  <karl@gnu.org>
33963
33964         * config/srclist.txt: guess we can't handle the licenses via
33965         srclist at the moment.
33966
33967 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
33968
33969         * MODULES.html.sh: Add include_next.
33970         * modules/include_next: New file.
33971
33972 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
33973
33974         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
33975         INCLUDE_NEXT.
33976         (gl_CHECK_NEXT_HEADERS): New macro.
33977         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
33978         the obsolescent gl_ABSOLUTE_HEADER.
33979         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
33980         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
33981         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
33982         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33983         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
33984         * m4/math_h.m4 (gl_MATH_H): Likewise.
33985         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
33986         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33987         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33988         * m4/stdint.m4 (gl_STDINT_H): Likewise.
33989         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
33990         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
33991         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
33992         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33993         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33994         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
33995         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
33996         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
33997         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
33998         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33999         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
34000         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
34001         * m4/inttypes.m4 (gl_INTTYPES_H): Define
34002         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
34003         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
34004         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
34005         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
34006         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
34007         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
34008         * lib/float_.h: Likewise.
34009         * lib/inttypes_.h: Likewise.
34010         * lib/math_.h: Likewise.
34011         * lib/search_.h: Likewise.
34012         * lib/signal_.h: Likewise.
34013         * lib/stdint_.h: Likewise.
34014         * lib/stdio_.h: Likewise.
34015         * lib/stdlib_.h: Likewise.
34016         * lib/string_.h: Likewise.
34017         * lib/sys_stat_.h: Likewise.
34018         * lib/sys_time_.h: Likewise.
34019         * lib/time_.h: Likewise.
34020         * lib/unistd_.h: Likewise.
34021         * lib/wchar_.h: Likewise.
34022         * lib/wctype_.h: Likewise.
34023         * lib/dirent_.h: Likewise.
34024         * lib/iconv_.h: Likewise.
34025         * lib/locale_.h: Likewise.
34026         * lib/netinet_in_.h: Likewise.
34027         * lib/sys_select_.h: Likewise.
34028         * lib/sys_socket_.h: Likewise.
34029         * lib/sysexits_.h: Likewise.
34030         * modules/fcntl (Depends-on): Depend on include_next, not
34031         absolute_header.
34032         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
34033         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
34034         * modules/fchdir: Likewise.
34035         * modules/float: Likewise.
34036         * modules/iconv_open: Likewise.
34037         * modules/inttypes: Likewise.
34038         * modules/locale: Likewise.
34039         * modules/math: Likewise.
34040         * modules/netinet_in: Likewise.
34041         * modules/search: Likewise.
34042         * modules/signal: Likewise.
34043         * modules/stdint: Likewise.
34044         * modules/stdio: Likewise.
34045         * modules/stdlib: Likewise.
34046         * modules/string: Likewise.
34047         * modules/sys_select: Likewise.
34048         * modules/sys_socket: Likewise.
34049         * modules/sys_stat: Likewise.
34050         * modules/sys_time: Likewise.
34051         * modules/sysexits: Likewise.
34052         * modules/time: Likewise.
34053         * modules/unistd: Likewise.
34054         * modules/wchar: Likewise.
34055         * modules/wctype: Likewise.
34056         * modules/sys_stat: Change maintainer to "all".
34057         * modules/unistd: Likewise.
34058
34059 2007-06-20  Karl Berry  <karl@gnu.org>
34060
34061         * config/srclist.txt: track www changes in license files.
34062
34063 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
34064
34065         * build-aux/bootstrap: Remove stray dot.
34066         Make sure build_aux settings are honored when linking
34067         gnulib_extra_files.
34068
34069 2007-06-19  Eric Blake  <ebb9@byu.net>
34070
34071         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
34072         Allow compilation on cygwin.
34073
34074 2007-06-19  Jim Meyering  <jim@meyering.net>
34075
34076         xreadlink-with-size: Remove module.  No longer used.
34077         Ex-callers now use xreadlink or mreadlink-with-size.
34078         * modules/xreadlink-with-size: Remove module.
34079         * lib/xreadlink-with-size.c: Remove file.
34080         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
34081         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
34082         just before the function definition *is* accurate.
34083
34084         Eliminate one way canonicalize_filename_mode could exit.
34085         * lib/canonicalize.c (canonicalize_filename_mode):
34086         Use mreadlink_with_size, not xreadlink_with_size.
34087
34088 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
34089
34090         Detect porting problems to FreeBSD/arm, which has time_t wider than
34091         long int.  Original problem reported for GNU diff by Xin Li in
34092         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
34093         * modules/getdate (Depends-on): Add intprops, verify.
34094         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
34095         is an integer type no wider than long int.
34096
34097 2007-06-18  Jim Meyering  <jim@meyering.net>
34098
34099         New module: mreadlink-with-size.
34100         * MODULES.html.sh: Add mreadlink-with-size.
34101         * modules/mreadlink-with-size: New module
34102         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
34103         not xreadlink-with-size.
34104         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
34105
34106 2007-06-16  Bruno Haible  <bruno@clisp.org>
34107
34108         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
34109         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
34110         Reported by Gary V. Vaughan <gary@gnu.org>.
34111
34112 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
34113
34114         Revamp lchown so that it lives in unistd.h where it belongs.
34115         * lib/lchown.h: Remove.
34116         * lib/dirchownmod.c: Don't include lib/lchown.h.
34117         * lib/fchownat.c: Likewise.
34118         * lib/openat.c: Likewise.
34119         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
34120         does not follow symlinks.
34121         (EOPNOTSUPP): Define if not defined.
34122         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
34123         is defined to 0.
34124         (lchown): New decl.
34125         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
34126         Do not check for lchown decl.
34127         Set REPLACE_LCHOWN.
34128         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
34129         REPLACE_LCHOWN.
34130         * modules/chown: Make it clear it follows symlinks.
34131         * modules/lchown: Make it clear it doesn't follow symlinks.
34132         (Files): Remove lib/lchown.h
34133         (Depends-on): Add unistd.
34134         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
34135         (Include): Include <unistd.h>, not "lchown.h".
34136         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
34137         REPLACE_LCHOWN.
34138
34139 2007-06-15  Jim Meyering  <jim@meyering.net>
34140
34141         Change license (GPL to LGPL) of fsusage and dependents.
34142         * modules/fsusage (License): Change to LGPL.
34143         * modules/full-read (License): Likewise.
34144         * modules/full-write (License): Likewise.
34145         * modules/safe-read (License): Likewise.
34146         * modules/safe-write (License): Likewise.
34147
34148 2007-06-14  Ben Pfaff  <blp@gnu.org>
34149
34150         Missing part of allocsa -> malloca transition.
34151         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
34152         gl_MALLOCA.
34153
34154 2007-06-12  Bruno Haible  <bruno@clisp.org>
34155
34156         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
34157         to ia64, x86_64, i386.
34158         Reported by Eric Blake.
34159
34160 2007-06-12  Bruno Haible  <bruno@clisp.org>
34161
34162         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
34163         cross-compiling to x86_64.
34164
34165 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
34166
34167         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
34168         glitch reported by Ralf Wildenhues in
34169         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
34170
34171         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
34172         Vin Shelton.
34173
34174 2007-06-11  Bruno Haible  <bruno@clisp.org>
34175
34176         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
34177         replacement string.
34178         Reported by Eric Blake.
34179
34180 2007-06-10  Bruno Haible  <bruno@clisp.org>
34181
34182         Prepare vasnprintf code for use with Unicode strings.
34183         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
34184         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
34185         TYPE_U32_STRING.
34186         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
34187         a_u32_string variants.
34188         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
34189         * lib/printf-args.c: Don't include config.h and the specification
34190         header if PRINTF_FETCHARGS is already defined.
34191         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
34192         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
34193         TYPE_U16_STRING, TYPE_U32_STRING.
34194         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
34195         u16_directive, u16_directives, u32_directive, u32_directives): New
34196         types.
34197         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
34198         New declarations.
34199         * lib/printf-parse.c: Don't include config.h and the specification
34200         header if PRINTF_PARSE is already defined. Eliminate the set of
34201         parameters for WIDE_CHAR_VERSION; the user of this file must provide
34202         them now. Include c-ctype.h.
34203         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
34204         directive and CHAR_T_ONLY_ASCII.
34205         * lib/vasnprintf.c: Don't include config.h and the specification header
34206         if VASNPRINTF is already defined.
34207         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
34208         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
34209         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
34210         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
34211         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
34212         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
34213         code accordingly.
34214         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
34215         pad_ourselves also in this case, with the 'c' and 's' directives, and
34216         with a different notion of "width".
34217         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
34218
34219 2007-06-10  Bruno Haible  <bruno@clisp.org>
34220
34221         * modules/unistr/u32-mbsnlen: New file.
34222         * lib/unistr/u32-mbsnlen.c: New file.
34223
34224         * modules/unistr/u16-mbsnlen: New file.
34225         * lib/unistr/u16-mbsnlen.c: New file.
34226
34227         * modules/unistr/u8-mbsnlen: New file.
34228         * lib/unistr/u8-mbsnlen.c: New file.
34229
34230         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
34231         declarations.
34232
34233 2007-06-10  Bruno Haible  <bruno@clisp.org>
34234
34235         * lib/string_.h (mbsnlen): New declaration.
34236         * lib/mbsnlen.c: New file.
34237         * m4/mbsnlen.m4: New file.
34238         * modules/mbsnlen: New file.
34239         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
34240         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
34241         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
34242
34243 2007-06-10  Bruno Haible  <bruno@clisp.org>
34244
34245         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
34246
34247 2007-06-10  Bruno Haible  <bruno@clisp.org>
34248
34249         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
34250         * lib/mbuiter.h: Likewise.
34251
34252 2007-06-10  Bruno Haible  <bruno@clisp.org>
34253
34254         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
34255         declaration.
34256
34257 2007-06-10  Karl Berry  <karl@gnu.org>
34258
34259         * config/srclist.txt: remove gettext entries, Bruno prefers
34260         to update individually.
34261
34262 2007-06-10  Bruno Haible  <bruno@clisp.org>
34263
34264         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
34265         'maxlen'. Ensure only length + width bytes are allocated, not
34266         length + 1 + width.
34267
34268 2007-06-09  Bruno Haible  <bruno@clisp.org>
34269
34270         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
34271         (CHAR_T): Remove macro.
34272         (VASNPRINTF): Update.
34273
34274 2007-06-09  Bruno Haible  <bruno@clisp.org>
34275
34276         * MODULES.html.sh (Unicode string functions): Add the new modules.
34277
34278         * modules/uniconv/u32-conv-to-enc: New file.
34279         * lib/uniconv/u32-conv-to-enc.c: New file.
34280         * modules/uniconv/u32-conv-to-enc-tests: New file.
34281         * tests/uniconv/test-u32-conv-to-enc.c: New file.
34282
34283         * modules/uniconv/u16-conv-to-enc: New file.
34284         * lib/uniconv/u16-conv-to-enc.c: New file.
34285         * lib/uniconv/u-conv-to-enc.h: New file.
34286         * modules/uniconv/u16-conv-to-enc-tests: New file.
34287         * tests/uniconv/test-u16-conv-to-enc.c: New file.
34288
34289         * modules/uniconv/u8-conv-to-enc: New file.
34290         * lib/uniconv/u8-conv-to-enc.c: New file.
34291         * modules/uniconv/u8-conv-to-enc-tests: New file.
34292         * tests/uniconv/test-u8-conv-to-enc.c: New file.
34293
34294         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
34295         u32_conv_to_encoding): New declarations.
34296
34297 2007-06-09  Bruno Haible  <bruno@clisp.org>
34298
34299         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
34300
34301 2007-06-09  Bruno Haible  <bruno@clisp.org>
34302
34303         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
34304         * modules/malloca: Renamed from modules/allocsa, updated.
34305         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
34306         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
34307         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
34308         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
34309         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
34310         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
34311         * modules/xmalloca: Renamed from modules/xallocsa, updated.
34312         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
34313         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
34314         * modules/c-strcasestr (Depends-on): Update.
34315         * lib/c-strcasestr.c: Update.
34316         * modules/c-strstr (Depends-on): Update.
34317         * lib/c-strstr.c: Update.
34318         * modules/canonicalize-lgpl (Depends-on): Update.
34319         * lib/canonicalize-lgpl.c: Update.
34320         * modules/clean-temp (Depends-on): Update.
34321         * lib/clean-temp.c: Update.
34322         * modules/csharpcomp (Depends-on): Update.
34323         * lib/csharpcomp.c: Update.
34324         * modules/csharpexec (Depends-on): Update.
34325         * lib/csharpexec.c: Update.
34326         * modules/javacomp (Depends-on): Update.
34327         * lib/javacomp.c: Update.
34328         * modules/javaexec (Depends-on): Update.
34329         * lib/javaexec.c: Update.
34330         * modules/mbscasestr (Depends-on): Update.
34331         * lib/mbscasestr.c: Update.
34332         * modules/mbsstr (Depends-on): Update.
34333         * lib/mbsstr.c: Update.
34334         * modules/setenv (Depends-on): Update.
34335         * lib/setenv.c: Update.
34336         * modules/strcasestr (Depends-on): Update.
34337         * lib/strcasestr.c: Update.
34338         * modules/striconveha (Depends-on): Update.
34339         * lib/striconveha.c: Update.
34340         * modules/relocatable-prog-wrapper (Files): Update.
34341         * lib/relocwrapper.c: Update.
34342         * build-aux/install-reloc: Update.
34343         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
34344
34345 2007-06-08  Bruno Haible  <bruno@clisp.org>
34346
34347         Port to uClibc.
34348         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
34349         * lib/fpurge.c (fpurge): Likewise.
34350         * lib/freading.c (freading): Likewise.
34351         * lib/fseeko.c (rpl_fseeko): Likewise.
34352         * lib/fseterr.c (fseterr): Likewise.
34353         * lib/fwriting.c (fwriting): Likewise.
34354         * tests/test-fflush.c (main): Avoid a failure on uClibc.
34355
34356 2007-06-08  Bruno Haible  <bruno@clisp.org>
34357
34358         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
34359         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
34360         * modules/gettext (Files): Add m4/intlmacosx.m4.
34361
34362 2007-06-07  Bruno Haible  <bruno@clisp.org>
34363
34364         * modules/localename-tests: New file.
34365         * tests/test-localename.c: New file.
34366
34367         New module 'localename'.
34368         * lib/localename.h: New file.
34369         * lib/localename.c: New file, from GNU gettext.
34370         * m4/localename.m4: New file.
34371         * modules/localename: New file.
34372
34373 2007-06-07  Bruno Haible  <bruno@clisp.org>
34374
34375         Work around the lack of <wchar.h> on some builds of uClibc.
34376         * doc/headers/wchar.texi: Update.
34377         * lib/wchar_.h: Include <wchar.h> only if it exists.
34378         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
34379         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
34380         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
34381         doesn't exist.
34382         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
34383         * modules/mbfile (Depends-on): Add wchar.
34384         * modules/mbiter (Depends-on): Likewise.
34385         * modules/mbuiter (Depends-on): Likewise.
34386         Reported by Simon Josefsson.
34387
34388 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
34389
34390         Work around problem reported by Steven M. Schweda in
34391         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
34392         Tru64 5.1B with the Compaq compiler environment installed declares
34393         an 'isblank' function but does not define it in the C library.
34394         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
34395         * lib/regex_internal.h (isblank): Likewise.
34396         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
34397         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
34398
34399 2007-06-05  Bruno Haible  <bruno@clisp.org>
34400
34401         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
34402         ia64.
34403         * modules/printf-safe: New file.
34404         * modules/fprintf-posix (Depends-on): Add printf-safe.
34405         * modules/printf-posix (Depends-on): Likewise.
34406         * modules/snprintf-posix (Depends-on): Likewise.
34407         * modules/sprintf-posix (Depends-on): Likewise.
34408         * modules/vasnprintf-posix (Depends-on): Likewise.
34409         * modules/vasprintf-posix (Depends-on): Likewise.
34410         * modules/vfprintf-posix (Depends-on): Likewise.
34411         * modules/vprintf-posix (Depends-on): Likewise.
34412         * modules/vsnprintf-posix (Depends-on): Likewise.
34413         * modules/vsprintf-posix (Depends-on): Likewise.
34414         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
34415         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
34416         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
34417         "no" on i386, x86_64, ia64.
34418         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
34419         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34420         on i386, x86_64, ia64.
34421         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
34422         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34423         on i386, x86_64, ia64.
34424         * tests/test-vasnprintf-posix.c: Include float.h.
34425         (LDBL80_WORDS): New macro.
34426         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34427         on i386, x86_64, ia64.
34428         * tests/test-vasprintf-posix.c: Include float.h.
34429         (LDBL80_WORDS): New macro.
34430         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34431         on i386, x86_64, ia64.
34432         * tests/test-snprintf-posix.c: Include float.h.
34433         * tests/test-sprintf-posix.c: Likewise.
34434         * tests/test-vsnprintf-posix.c: Likewise.
34435         * tests/test-vsprintf-posix.c: Likewise.
34436
34437 2007-06-05  Bruno Haible  <bruno@clisp.org>
34438
34439         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
34440         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
34441         non-IEEE numbers on i386, x86_64, ia64.
34442         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
34443         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
34444         * tests/test-isnanl.h: Include float.h.
34445         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
34446
34447 2007-06-05  Bruno Haible  <bruno@clisp.org>
34448
34449         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
34450         also the %a / %A. Handle the %a / %A code before this extra handling.
34451
34452 2007-06-05  Bruno Haible  <bruno@clisp.org>
34453
34454         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
34455         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
34456
34457 2007-06-05  Bruno Haible  <bruno@clisp.org>
34458
34459         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
34460         typo in variable name.
34461
34462 2007-06-05  Eric Blake  <ebb9@byu.net>
34463
34464         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
34465         Reported by Simon Josefsson.
34466
34467 2007-06-04  Bruno Haible  <bruno@clisp.org>
34468
34469         Avoid test failures on some PowerPC platforms.
34470         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
34471         Define differently for PowerPC.
34472         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
34473         Reported by Gary V. Vaughan <gary@gnu.org>.
34474
34475 2007-06-02  Bruno Haible  <bruno@clisp.org>
34476
34477         Fix test-stdint failure on FreeBSD/ia64.
34478         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
34479         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
34480         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
34481         * doc/headers/stdint.texi: Update.
34482
34483 2007-06-01  Bruno Haible  <bruno@clisp.org>
34484
34485         * tests/test-binary-io.c (main): Pass a third argument to open().
34486         Reported by Gary V. Vaughan <gary@gnu.org>.
34487
34488 2007-06-01  Bruno Haible  <bruno@clisp.org>
34489
34490         * doc/functions/frexpl.texi: Update for mingw.
34491
34492 2007-06-01  Bruno Haible  <bruno@clisp.org>
34493
34494         * tests/test-lseek.c (main): Disable test of errno for invalid third
34495         argument.
34496         * doc/functions/lseek.texi: Update.
34497         Reported by Gary V. Vaughan <gary@gnu.org>.
34498
34499 2007-05-28  Bruno Haible  <bruno@clisp.org>
34500
34501         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
34502
34503 2007-05-31  Eric Blake  <ebb9@byu.net>
34504
34505         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
34506         cross compiling.
34507
34508 2007-05-30  Eric Blake  <ebb9@byu.net>
34509         and Bruno Haible  <bruno@clisp.org>
34510
34511         Work around mingw test failures exposed by m4-1.4.9b.
34512         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
34513         * tests/test-unistd.c: Disable uid_t and git_t tests for the
34514         moment.
34515
34516 2007-05-30  Bruno Haible  <bruno@clisp.org>
34517
34518         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
34519         assuming that they are closed. Needed on HP-UX 11.
34520
34521 2007-05-29  Bruno Haible  <bruno@clisp.org>
34522
34523         Fix a problem with #include_next.
34524         * lib/dirent_.h: Split the double-inclusion guard.
34525         * lib/fcntl_.h: Likewise.
34526         * lib/float_.h: Likewise.
34527         * lib/iconv_.h: Likewise.
34528         * lib/inttypes_.h: Likewise.
34529         * lib/locale_.h: Likewise.
34530         * lib/math_.h: Likewise.
34531         * lib/netinet_in_.h: Likewise.
34532         * lib/search_.h: Likewise.
34533         * lib/signal_.h: Likewise.
34534         * lib/stdint_.h: Likewise.
34535         * lib/stdio_.h: Likewise.
34536         * lib/stdlib_.h: Likewise.
34537         * lib/string_.h: Likewise.
34538         * lib/sys_select_.h: Likewise.
34539         * lib/sys_socket_.h: Likewise.
34540         * lib/sys_stat_.h: Likewise.
34541         * lib/sys_time_.h: Likewise.
34542         * lib/sysexits_.h: Likewise.
34543         * lib/time_.h: Likewise.
34544         * lib/unistd_.h: Likewise.
34545         * lib/wchar_.h: Likewise.
34546         * lib/wctype_.h: Likewise.
34547
34548 2007-05-29  Bruno Haible  <bruno@clisp.org>
34549
34550         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
34551         for the moment.
34552
34553 2007-05-29  Bruno Haible  <bruno@clisp.org>
34554
34555         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
34556         invocation.
34557         Reported by Eric Blake.
34558
34559 2007-05-29  Bruno Haible  <bruno@clisp.org>
34560
34561         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
34562         compiling case.
34563
34564 2007-05-29  Eric Blake  <ebb9@byu.net>
34565             Bruno Haible  <bruno@clisp.org>
34566
34567         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
34568         cross compiles.
34569
34570 2007-05-28  Eric Blake  <ebb9@byu.net>
34571
34572         * modules/closein-tests (test_closein_LDADD): Support test on
34573         cygwin with libtool.
34574
34575 2007-05-28  Bruno Haible  <bruno@clisp.org>
34576
34577         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
34578         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
34579         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
34580         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
34581         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
34582         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
34583         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
34584         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
34585         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
34586
34587 2007-05-28  Eric Blake  <ebb9@byu.net>
34588
34589         Unconditionally include <config.h> in unit tests.
34590         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
34591         * tests/test-allocsa.c, tests/test-arcfour.c,
34592         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
34593         tests/test-array_list.c, tests/test-array_oset.c,
34594         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
34595         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
34596         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
34597         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
34598         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
34599         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
34600         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
34601         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
34602         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
34603         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
34604         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
34605         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
34606         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
34607         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
34608         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
34609         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
34610         test-md5.c, test-memmem.c, test-printf-posix.c,
34611         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
34612         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
34613         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
34614         test-strcasestr.c, test-striconv.c, test-striconveh.c,
34615         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
34616         test-vasnprintf-posix2.c, test-vasnprintf.c,
34617         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
34618         test-vfprintf-posix.c, test-vprintf-posix.c,
34619         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
34620         test-xvasprintf.c: Likewise.
34621
34622 2007-05-28  Bruno Haible  <bruno@clisp.org>
34623
34624         * gnulib-tool (func_import): Remember the --with-tests command-line
34625         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
34626         Reported by Eric Blake.
34627
34628 2007-05-28  Bruno Haible  <bruno@clisp.org>
34629
34630         * modules/ftell-tests: New file.
34631         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
34632         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
34633
34634         * lib/ftell.c: New file.
34635         * modules/ftell: New file.
34636         * m4/ftell.m4: New file.
34637         * doc/functions/ftell.texi: Update.
34638         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
34639         REPLACE_FTELL.
34640         * lib/stdio_.h (rpl_ftell): New declaration.
34641         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
34642         REPLACE_FTELL.
34643
34644 2007-05-28  Eric Blake  <ebb9@byu.net>
34645
34646         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
34647
34648 2007-05-28  Bruno Haible  <bruno@clisp.org>
34649
34650         * modules/fseek-tests: New file.
34651         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
34652         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
34653
34654         * lib/fseek.c: New file.
34655         * modules/fseek: New file.
34656         * m4/fseek.m4: New file.
34657         * doc/functions/fseek.texi: Update.
34658         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
34659         REPLACE_FSEEK.
34660         * lib/stdio_.h (rpl_fseek): New declaration.
34661         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
34662         REPLACE_FSEEK.
34663
34664 2007-05-28  Bruno Haible  <bruno@clisp.org>
34665
34666         * lib/stdio_.h (fflush): More comments.
34667
34668 2007-05-28  Bruno Haible  <bruno@clisp.org>
34669
34670         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
34671         runtime test.
34672
34673 2007-05-28  Eric Blake  <ebb9@byu.net>
34674
34675         Improve lseek module.
34676         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
34677         * lib/unistd_.h (lseek): Scale back link warning message.
34678         * tests/test-lseek.c: Beef up test.
34679         * tests/test-lseek.sh: Exercise more facets of lseek.
34680         Reported by Bruno Haible.
34681
34682 2007-05-28  Bruno Haible  <bruno@clisp.org>
34683
34684         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
34685         to define.
34686
34687 2007-05-27  Bruno Haible  <bruno@clisp.org>
34688
34689         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
34690
34691 2007-05-27  Bruno Haible  <bruno@clisp.org>
34692
34693         * modules/openmp: New file.
34694         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
34695         Noah Misch.
34696
34697 2007-05-26  Bruno Haible  <bruno@clisp.org>
34698
34699         * modules/chdir-long (Depends-on): Add fchdir.
34700         * modules/chdir-safer (Depends-on): Likewise.
34701         * modules/fts (Depends-on): Likewise.
34702         * modules/fts-lgpl (Depends-on): Likewise.
34703         * modules/openat (Depends-on): Likewise.
34704         * modules/savewd (Depends-on): Likewise.
34705
34706 2007-05-24  Eric Blake  <ebb9@byu.net>
34707
34708         Fix lseek on mingw.
34709         * modules/lseek: New module.
34710         * m4/lseek.m4: New file.
34711         * lib/lseek.c: New file.
34712         * modules/lseek-tests: New file.
34713         * tests/test-lseek.c: New file.
34714         * tests/test-lseek.sh: New file.
34715         * MODULES.html.sh: Document lseek module.
34716         * modules/fflush (Depends-on): Add lseek, fseeko.
34717         * modules/fseeko (Depends-on): Likewise.
34718         * modules/ftello (Depends-on): Likewise.
34719         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
34720         broken.
34721         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
34722         broken.
34723         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
34724         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
34725         * lib/ftello.c (rpl_ftello): Likewise.
34726         * tests/test-fseeko.c (main): Test this.
34727         * tests/test-fseeko.sh: Likewise.
34728         * tests/test-ftello.c (main): Likewise.
34729         * tests/test-ftello.sh: Likewise.
34730         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
34731         implies replacing fseek.
34732         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
34733         HAVE_FTELLO.
34734         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
34735         * modules/unistd (Makefile.am): Likewise.
34736         * lib/unistd_.h (lseek): Declare a replacement.
34737         * doc/functions/lseek.texi (lseek): Document this fix.
34738         * doc/functions/fseek.texi (fseek): Likewise.
34739         * doc/functions/ftell.texi (ftell): Likewise.
34740
34741 2007-05-24  Bruno Haible  <bruno@clisp.org>
34742
34743         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
34744         in the printed representation of a NaN.
34745         * tests/test-vasprintf-posix.c (test_function): Likewise.
34746         * tests/test-snprintf-posix.h (test_function): Likewise.
34747         * tests/test-sprintf-posix.h (test_function): Likewise.
34748         Reported by Eric Blake.
34749
34750 2007-05-23  Eric Blake  <ebb9@byu.net>
34751
34752         Fix fseeko/ftello on cygwin 1.5.24.
34753         * doc/functions/fseeko.texi (fseeko): Document the fix.
34754         * doc/functions/ftello.texi (ftello): Document the fix.
34755         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
34756         * doc/functions/stdout.text (stdout): New file.
34757         * doc/functions/stderr.text (stderr): New file.
34758         * doc/gnulib.texi (Function Substitutes): Use new files.
34759         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
34760         prior to 1.7.0.
34761         * tests/test-ftello.c (main): Likewise for ftello.
34762         * tests/test-fseeko.sh: New file.
34763         * tests/test-ftello.sh: New file.
34764         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
34765         with seekable stdin.
34766         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
34767         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
34768         (gl_REPLACE_FSEEKO): New macro.
34769         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
34770         * modules/fseeko (Files): Distribute fseeko.c.
34771         * modules/ftello (Files): Distribute ftello.c.
34772         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
34773         mode.
34774         * lib/ftello.c (rpl_ftello): New file.
34775         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
34776         fseeko, ftello.
34777         (gl_STDIN_LARGE_OFFSET): New macro.
34778         * modules/stdio (Makefile.am): Perform the replacement.
34779         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
34780
34781 2007-05-23  Bruno Haible  <bruno@clisp.org>
34782
34783         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
34784         GNULIB_POSIXCHECK is defined.
34785
34786 2007-05-21  Bruno Haible  <bruno@clisp.org>
34787
34788         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
34789         Check also the output for NaN arguments. When cross-compiling, guess
34790         no on IRIX.
34791         * lib/vasnprintf.c: Update comments.
34792         * tests/test-vasnprintf-posix.c (strisnan): New function.
34793         (test_function): Use it.
34794         * tests/test-vasprintf-posix.c (strisnan): New function.
34795         (test_function): Use it.
34796         * tests/test-snprintf-posix.h (strisnan): New function.
34797         (test_function): Use it.
34798         * tests/test-sprintf-posix.h (strisnan): New function.
34799         (test_function): Use it.
34800         Reported by Eric Blake.
34801
34802 2007-05-20  Bruno Haible  <bruno@clisp.org>
34803
34804         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
34805         numbers that fails on BeOS.
34806         * doc/functions/frexpl.texi: Update.
34807
34808 2007-05-20  Jim Meyering  <jim@meyering.net>
34809
34810         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
34811         forced upon us by glibc-2.6.
34812
34813 2007-05-20  Bruno Haible  <bruno@clisp.org>
34814
34815         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
34816         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
34817         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
34818         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
34819         NEED_PRINTF_INFINITE.
34820         (is_infinitel): New function.
34821         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
34822         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
34823         gl_PREREQ_VASNPRINTF_INFINITE.
34824         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
34825         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34826         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
34827         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
34828         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
34829         gl_PREREQ_VASNPRINTF_INFINITE.
34830         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34831         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34832         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34833         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34834         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34835         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34836         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34837         * doc/functions/fprintf.texi: Update.
34838         * doc/functions/printf.texi: Update.
34839         * doc/functions/snprintf.texi: Update.
34840         * doc/functions/sprintf.texi: Update.
34841         * doc/functions/vfprintf.texi: Update.
34842         * doc/functions/vprintf.texi: Update.
34843         * doc/functions/vsnprintf.texi: Update.
34844         * doc/functions/vsprintf.texi: Update.
34845
34846 2007-05-20  Bruno Haible  <bruno@clisp.org>
34847
34848         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
34849         was not found in libc.
34850         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
34851
34852 2007-05-20  Bruno Haible  <bruno@clisp.org>
34853
34854         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
34855         printed as "-nan" instead of "nan".
34856         * tests/test-vasprintf-posix.c (test_function): Likewise.
34857         * tests/test-snprintf-posix.h (test_function): Likewise.
34858         * tests/test-sprintf-posix.h (test_function): Likewise.
34859         Needed for HP-UX 11.
34860
34861 2007-05-20  Jim Meyering  <jim@meyering.net>
34862
34863         Fix buggy test for the fchownat-deref bug.
34864         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
34865         symlink required for the run-test.  Without it, this test would
34866         always declare that fchownat doesn't work, and client code would
34867         unnecessarily use the replacement function with fixed libc.
34868         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
34869         Reported by Greg Schafer.
34870
34871 2007-05-19  Bruno Haible  <bruno@clisp.org>
34872
34873         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
34874         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
34875         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
34876         Needed for IRIX 6.5 and Solaris 2.5.1.
34877
34878 2007-05-19  Bruno Haible  <bruno@clisp.org>
34879
34880         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
34881         (test_function): Skip tests involving -0.0 on platforms where
34882         -0.0 = 0.0.
34883         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
34884         (test_function): Skip tests involving -0.0 on platforms where
34885         -0.0 = 0.0.
34886         * tests/test-snprintf-posix.h (have_minus_zero): New function.
34887         (test_function): Skip tests involving -0.0 on platforms where
34888         -0.0 = 0.0.
34889         * tests/test-sprintf-posix.h (have_minus_zero): New function.
34890         (test_function): Skip tests involving -0.0 on platforms where
34891         -0.0 = 0.0.
34892         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
34893         tests.
34894         * tests/test-printf-posix.h (test_function): Likewise.
34895         * tests/test-printf-posix.output: Remove all -0.0 related results.
34896         Needed for IRIX 6.5.
34897
34898 2007-05-19  Bruno Haible  <bruno@clisp.org>
34899
34900         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
34901         printed as "nan0x7fffffff" instead of "nan".
34902         * tests/test-vasprintf-posix.c (test_function): Likewise.
34903         * tests/test-snprintf-posix.h (test_function): Likewise.
34904         * tests/test-sprintf-posix.h (test_function): Likewise.
34905         * tests/test-fprintf-posix.h (NaN): Remove macro.
34906         (test_function): Remove all NaN related tests.
34907         * tests/test-printf-posix.h (NaN): Remove macro.
34908         (test_function): Remove all NaN related tests.
34909         * tests/test-printf-posix.output: Remove all NaN related results.
34910         Needed for IRIX 6.5.
34911
34912 2007-05-19  Bruno Haible  <bruno@clisp.org>
34913
34914         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
34915         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
34916
34917 2007-05-19  Bruno Haible  <bruno@clisp.org>
34918
34919         * lib/float_.h: New file.
34920         * m4/float_h.m4: New file.
34921         * modules/float: New file.
34922         * modules/isnanl (Dependencies): Add float.
34923         * modules/isnanl-nolibm (Dependencies): Likewise.
34924         * modules/mathl (Dependencies): Likewise.
34925         * modules/printf-frexpl (Dependencies): Likewise.
34926         * modules/signbit (Dependencies): Likewise.
34927         * modules/vasnprintf (Dependencies): Likewise.
34928         * doc/headers/float.texi: Update.
34929
34930 2007-05-19  Jim Meyering  <jim@meyering.net>
34931
34932         * lib/utimens.c (gl_futimens): Rename from futimens,
34933         now that glibc-2.6 declares futimens.
34934         * lib/utimens.h: Likewise.
34935
34936 2007-05-19  Bruno Haible  <bruno@clisp.org>
34937
34938         Avoid test failures on mingw.
34939         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
34940         * tests/test-printf-posix.sh: Likewise.
34941         * tests/test-vfprintf-posix.sh: Likewise.
34942         * tests/test-vprintf-posix.sh: Likewise.
34943
34944 2007-05-19  Bruno Haible  <bruno@clisp.org>
34945
34946         Fix *printf result for NaN, Inf, -0.0 on mingw.
34947         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
34948         * lib/vasnprintf.c: Include math.h and isnan.h.
34949         (is_infinite_or_zero): New function.
34950         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
34951         values in the %f, %F, %e, %E, %g, %G directives.
34952         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
34953         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34954         gl_PRINTF_INFINITE and test its result. Invoke
34955         gl_PREREQ_VASNPRINTF_INFINITE.
34956         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34957         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34958         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34959         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34960         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34961         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34962         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34963         * doc/functions/fprintf.texi: Update.
34964         * doc/functions/printf.texi: Update.
34965         * doc/functions/snprintf.texi: Update.
34966         * doc/functions/sprintf.texi: Update.
34967         * doc/functions/vfprintf.texi: Update.
34968         * doc/functions/vprintf.texi: Update.
34969         * doc/functions/vsnprintf.texi: Update.
34970         * doc/functions/vsprintf.texi: Update.
34971
34972 2007-05-19  Bruno Haible  <bruno@clisp.org>
34973
34974         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
34975         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
34976         Instead of multiplying with 10^k, set extra_zeroes to k.
34977         (scale10_round_long_double): Remove function.
34978
34979 2007-05-18  Bruno Haible  <bruno@clisp.org>
34980
34981         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
34982         introduced on 2007-05-06.
34983
34984 2007-05-18  Bruno Haible  <bruno@clisp.org>
34985
34986         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
34987         %g directives.
34988         * tests/test-vasprintf-posix.c (test_function): Likewise.
34989         * tests/test-snprintf-posix.h (test_function): Likewise.
34990         * tests/test-sprintf-posix.h (test_function): Likewise.
34991
34992 2007-05-18  Bruno Haible  <bruno@clisp.org>
34993
34994         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
34995         (strmatch): New function.
34996         (test_function): Test the %f directive on numbers of various exponents.
34997         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
34998         (strmatch): New function.
34999         (test_function): Test the %f directive on numbers of various exponents.
35000         * tests/test-snprintf-posix.h (strmatch): New function.
35001         (test_function): Test the %f directive on numbers of various exponents.
35002         * tests/test-sprintf-posix.h (strmatch): New function.
35003         (test_function): Test the %f directive on numbers of various exponents.
35004         * tests/test-snprintf-posix.c (SIZEOF): New macro.
35005         * tests/test-sprintf-posix.c (SIZEOF): New macro.
35006         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
35007         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
35008
35009 2007-05-18  Bruno Haible  <bruno@clisp.org>
35010
35011         Add support for 'long double' number output.
35012         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
35013         * lib/vasnprintf.c: Include math.h and float+.h.
35014         (mp_limb_t): New type.
35015         (GMP_LIMB_BITS): New macro.
35016         (mp_twolimb_t): New type.
35017         (GMP_TWOLIMB_BITS): New macro.
35018         (mpn_t): New type.
35019         (multiply, divide, convert_to_decimal, decode_long_double,
35020         scale10_round_long_double, scale10_round_decimal_long_double,
35021         floorlog10l): New functions.
35022         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
35023         for the %f, %F, %e, %E, %g, %G directives.
35024         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
35025         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35026         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
35027         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
35028         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35029         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35030         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35031         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35032         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35033         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35034         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35035         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
35036         * modules/snprintf-posix (Depends-on): Likewise.
35037         * modules/sprintf-posix (Depends-on): Likewise.
35038         * modules/vasnprintf-posix (Depends-on): Likewise.
35039         * modules/vasprintf-posix (Depends-on): Likewise.
35040         * modules/vfprintf-posix (Depends-on): Likewise.
35041         * modules/vsnprintf-posix (Depends-on): Likewise.
35042         * modules/vsprintf-posix (Depends-on): Likewise.
35043         * modules/vasnprintf (Files): Add lib/float+.h.
35044         * doc/functions/fprintf.texi: Update.
35045         * doc/functions/printf.texi: Update.
35046         * doc/functions/snprintf.texi: Update.
35047         * doc/functions/sprintf.texi: Update.
35048         * doc/functions/vfprintf.texi: Update.
35049         * doc/functions/vprintf.texi: Update.
35050         * doc/functions/vsnprintf.texi: Update.
35051         * doc/functions/vsprintf.texi: Update.
35052
35053 2007-05-18  Bruno Haible  <bruno@clisp.org>
35054
35055         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
35056
35057 2007-05-18  Bruno Haible  <bruno@clisp.org>
35058
35059         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
35060         for printing 64-bit integers. Needed for mingw.
35061
35062 2007-05-18  Bruno Haible  <bruno@clisp.org>
35063
35064         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
35065         gl_FUNC_FREXPL_WORKS.
35066         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
35067
35068 2007-05-18  Bruno Haible  <bruno@clisp.org>
35069
35070         * modules/frexpl-nolibm-tests: New file.
35071
35072         * modules/frexpl-nolibm: New file.
35073         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
35074
35075 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
35076
35077         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
35078         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
35079         GCC 4.2, which otherwise issues a lot of warnings.
35080         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
35081         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
35082         Likewise.
35083         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
35084         * modules/iconv_open (iconv.h): Likewise.
35085         * modules/locale (locale.h): Likewise.
35086         * modules/netinet_in (netinet/in.h): Likewise.
35087         * modules/sys_select (sys_select.h): Likewise.
35088         * modules/sys_socket (sys/socket.h): Likewise.
35089         * modules/sys_stat (sys/stat.h): Likewise.
35090         * modules/sysexits (sysexits.h): Likewise.
35091         * modules/unistd (unistd.h): Likewise.
35092
35093 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35094
35095         * modules/closein-tests (Makefile.am): Distribute
35096         `test-closein.sh'.
35097
35098 2007-05-17  Bruno Haible  <bruno@clisp.org>
35099
35100         * tests/test-printf-posix.output: Renamed from
35101         tests/test-fprintf-posix.out.
35102         * modules/fprintf-posix-tests: Update.
35103         * modules/printf-posix-tests: Update.
35104         * modules/vfprintf-posix-tests: Update.
35105         * modules/vprintf-posix-tests: Update.
35106         * tests/test-fprintf-posix.sh: Update.
35107         * tests/test-printf-posix.sh: Update.
35108         * tests/test-vfprintf-posix.sh: Update.
35109         * tests/test-vprintf-posix.sh: Update.
35110         Reported by Ralf Wildenhues.
35111
35112 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
35113
35114         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
35115         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
35116         GCC 4.2, which otherwise issues a lot of warnings.
35117         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
35118         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
35119         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
35120         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
35121         it should no longer be needed.
35122         * lib/string_.h: Likewise.
35123         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
35124         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
35125         * modules/inttypes (inttypes.h): Likewise.
35126         * modules/math (math.h): Likewise.
35127         * modules/search (search.h): Likewise.
35128         * modules/signal (signal.h): Likewise.
35129         * modules/stdint (stdint.h): Likewise.
35130         * modules/stdio (stdio.h): Likewise.
35131         * modules/stdlib (stdlib.h): Likewise.
35132         * modules/string (string.h): Likewise.
35133         * modules/sys_time (sys/time.h): Likewise.
35134         * modules/time (time.h): Likewise.
35135         * modules/wchar (wchar.h): Likewise.
35136         * modules/wctype (wtype.h): Likewise.
35137
35138 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
35139
35140         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
35141
35142 2007-05-13  Bruno Haible  <bruno@clisp.org>
35143
35144         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
35145         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
35146         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
35147         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
35148         (gl_PREREQ_STRTOK_R): Don't require it here.
35149
35150 2007-05-13  Bruno Haible  <bruno@clisp.org>
35151
35152         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
35153         when used in C++ mode.
35154
35155 2007-05-12  Bruno Haible  <bruno@clisp.org>
35156
35157         * lib/linebuffer.h: Tweak doc.
35158         * lib/linebuffer.c: Likewise.
35159
35160 2007-05-12  James Youngman  <jay@gnu.org>
35161
35162         * lib/linebuffer.c (readlinebuffer_delim): New function,
35163         like readlinebuffer, but use a caller-specified delimiter.
35164         (readlinebuffer): Just call readlinebuffer_delim with '\n'
35165         as the delimiter.
35166         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
35167
35168 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
35169
35170         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
35171         * modules/openat (Files): Remove openat-die.c.
35172         (Depends-on): Add openat-die.
35173         * modules/openat-die: New module.
35174
35175 2007-05-06  Bruno Haible  <bruno@clisp.org>
35176
35177         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
35178         Update with info about Cygwin.
35179         * doc/functions/fprintf.texi: Update.
35180         * doc/functions/printf.texi: Update.
35181         * doc/functions/snprintf.texi: Update.
35182         * doc/functions/sprintf.texi: Update.
35183         * doc/functions/vfprintf.texi: Update.
35184         * doc/functions/vprintf.texi: Update.
35185         * doc/functions/vsnprintf.texi: Update.
35186         * doc/functions/vsprintf.texi: Update.
35187         Reported by Eric Blake.
35188
35189 2007-05-06  Bruno Haible  <bruno@clisp.org>
35190
35191         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
35192         padding ourselves for the floating-point directives.
35193         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
35194         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
35195         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35196         gl_PRINTF_FLAG_ZERO and test its result. Invoke
35197         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
35198         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35199         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
35200         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35201         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35202         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35203         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35204         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35205         * tests/test-snprintf-posix.h (test_function): Also check the width
35206         and some flags in the %f directive.
35207         * tests/test-sprintf-posix.h (test_function): Likewise.
35208         * tests/test-vasnprintf-posix.c (test_function): Likewise.
35209         * tests/test-vasprintf-posix.c (test_function): Likewise.
35210         * doc/functions/fprintf.texi: Update.
35211         * doc/functions/printf.texi: Update.
35212         * doc/functions/snprintf.texi: Update.
35213         * doc/functions/sprintf.texi: Update.
35214         * doc/functions/vfprintf.texi: Update.
35215         * doc/functions/vprintf.texi: Update.
35216         * doc/functions/vsnprintf.texi: Update.
35217         * doc/functions/vsprintf.texi: Update.
35218
35219 2007-05-06  Bruno Haible  <bruno@clisp.org>
35220
35221         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
35222         pass the ' flag character to sprintf or snprintf.
35223         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
35224         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
35225         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35226         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
35227         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
35228         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35229         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
35230         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35231         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35232         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35233         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35234         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35235         * tests/test-snprintf-posix.h (test_function): Also check the grouping
35236         flag.
35237         * tests/test-sprintf-posix.h (test_function): Likewise.
35238         * tests/test-vasnprintf-posix.c (test_function): Likewise.
35239         * tests/test-vasprintf-posix.c (test_function): Likewise.
35240         * doc/functions/fprintf.texi: Update.
35241         * doc/functions/printf.texi: Update.
35242         * doc/functions/snprintf.texi: Update.
35243         * doc/functions/sprintf.texi: Update.
35244         * doc/functions/vfprintf.texi: Update.
35245         * doc/functions/vprintf.texi: Update.
35246         * doc/functions/vsnprintf.texi: Update.
35247         * doc/functions/vsprintf.texi: Update.
35248
35249 2007-05-01  Bruno Haible  <bruno@clisp.org>
35250
35251         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
35252
35253 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
35254
35255         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
35256         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
35257
35258 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
35259
35260         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
35261         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
35262         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
35263
35264 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
35265
35266         * lib/argp-help.c (struct hol_entry): New member `ord'.
35267         (HOL_ENTRY_PTRCMP): Use ord for comparison
35268         (hol_sort): Initialize ord.
35269
35270 2007-05-01  Bruno Haible  <bruno@clisp.org>
35271
35272         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
35273         Reported by Eric Blake.
35274         * doc/gnulib.texi (Function Substitutes): Update.
35275
35276 2007-05-01  Bruno Haible  <bruno@clisp.org>
35277
35278         * doc/functions.texi: Remove file, now redundant through
35279         doc/functions/*.texi.
35280
35281 2007-05-01  Bruno Haible  <bruno@clisp.org>
35282
35283         * modules/argp (Depends-on): Add sleep.
35284
35285 2007-05-01  Bruno Haible  <bruno@clisp.org>
35286
35287         * modules/sleep-tests: New file.
35288         * tests/test-sleep.c: New file.
35289
35290         * modules/sleep: New file.
35291         * lib/sleep.c: New file.
35292         * m4/sleep.m4: New file.
35293         * lib/unistd_.h (sleep): New declaration.
35294         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
35295         HAVE_SLEEP.
35296         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
35297         * doc/functions/sleep.texi: Document the sleep module.
35298
35299 2007-05-01  Bruno Haible  <bruno@clisp.org>
35300
35301         * lib/sigprocmask.h: Remove file.
35302         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
35303         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
35304         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
35305         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
35306         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
35307         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
35308         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
35309         HAVE_SIGSET_T as a shell variable.
35310         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
35311         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
35312         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
35313         (Depends-on): Add signal. Remove verify.
35314         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
35315         (Include): Mention <signal.h> instead of sigprocmask.h.
35316         * NEWS: Mention the change.
35317         * lib/fatal-signal.c: Don't include sigprocmask.h.
35318
35319 2007-05-01  Bruno Haible  <bruno@clisp.org>
35320
35321         * modules/signal: New file.
35322         * lib/signal_.h: New file.
35323         * m4/signal_h.m4: New file.
35324
35325 2007-05-01  Bruno Haible  <bruno@clisp.org>
35326
35327         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
35328         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
35329         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
35330         HAVE_WCTYPE_CTMP_BUG into wctype.h.
35331
35332 2007-05-01  Bruno Haible  <bruno@clisp.org>
35333
35334         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
35335         configure time.
35336         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
35337         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
35338         * modules/sys_stat (Makefile.am): Substitute their values into
35339         sys/stat.h.
35340
35341 2007-05-01  Bruno Haible  <bruno@clisp.org>
35342
35343         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
35344         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
35345         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
35346
35347 2007-05-01  Bruno Haible  <bruno@clisp.org>
35348
35349         * doc/header/assert.texi: Undo last change: don't mention the gnulib
35350         'assert' module here.
35351
35352 2007-05-01  Bruno Haible  <bruno@clisp.org>
35353
35354         * doc/functions/*.texi: New files.
35355         * doc/functions/google-ranking.txt: New file.
35356         * doc/gnulib.texi (Function Substitutes): New chapter.
35357         (ctime, inet_ntoa): Remove sections.
35358         * doc/ctime.texi: Remove file.
35359         * doc/inet_ntoa.texi: Remove file.
35360         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
35361         dependencies.
35362         (%.info): New rule, specifying a --reference-limit.
35363
35364 2007-05-01  Bruno Haible  <bruno@clisp.org>
35365
35366         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
35367
35368 2007-05-01  Bruno Haible  <bruno@clisp.org>
35369
35370         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
35371         the portability of 'mkdir' to mingw systems.
35372
35373 2007-05-01  Bruno Haible  <bruno@clisp.org>
35374
35375         * doc/headers/google-ranking.txt: New file.
35376
35377 2007-04-30  Eric Blake  <ebb9@byu.net>
35378
35379         Prefer fseeko to fseek.
35380         * modules/getpass (Depends-on): Add fseeko.
35381         * lib/getpass.c (getpass): Use fseeko, not fseek.
35382
35383 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
35384
35385         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
35386         assumes the sorting is stable, while most qsort implementations
35387         are not.  Use argument addresses to ensure they never compare as
35388         equal.
35389
35390         * tests/test-argp-2.sh (usage-indent test): Fix output
35391         (func_compare): Restore diff options
35392         * tests/test-argp.c: Restore #include "progname.h"
35393
35394 2007-04-29  Bruno Haible  <bruno@clisp.org>
35395
35396         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
35397         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35398         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
35399         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35400         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
35401         (configure.ac): Define CHECK_SNPRINTF_POSIX.
35402         (TESTS, check_PROGRAMS): Add test-snprintf.
35403         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
35404         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
35405         (TESTS, check_PROGRAMS): Add test-vsnprintf.
35406         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
35407         assertions that fail on HP-UX, OSF/1, or IRIX.
35408         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
35409
35410 2007-04-29  Bruno Haible  <bruno@clisp.org>
35411
35412         * MODULES.html.sh (posix_functions): Remove 'contents'.
35413
35414 2007-04-29  Karl Berry  <karl@gnu.org>
35415
35416         * config/srclist.txt (gendocs_template_min): new entry.
35417
35418 2007-04-29  Bruno Haible  <bruno@clisp.org>
35419
35420         Work around fpurge bug on BSD systems.
35421         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
35422         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
35423         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
35424         fpurge to rpl_fpurge if the system already has this function.
35425         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
35426         the case where the system already has this function. Correct invariants
35427         on BSD systems.
35428         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
35429         BSD systems.
35430
35431 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
35432
35433         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
35434         proposed by Sven Verdoolaege.
35435
35436         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
35437         options.
35438         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
35439         (usage and help tests): Update
35440
35441 2007-04-29  Bruno Haible  <bruno@clisp.org>
35442
35443         * tests/test-fflush.c (main): Use a file of size 17, not 10.
35444         Print more information in case of failure. Disable a test on BeOS.
35445
35446 2007-04-29  Bruno Haible  <bruno@clisp.org>
35447
35448         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
35449         This helps debugging on systems on which no gdb is available.
35450
35451 2007-04-29  Bruno Haible  <bruno@clisp.org>
35452
35453         * lib/freading.h: Improve comments.
35454         * lib/fwriting.h: Likewise.
35455         * tests/test-freading.c (main): Don't check freading immediately after
35456         repositioning. Needed for glibc.
35457
35458 2007-04-29  Bruno Haible  <bruno@clisp.org>
35459
35460         * lib/freading.c (freading): Trivial simplification.
35461
35462 2007-04-28  Bruno Haible  <bruno@clisp.org>
35463
35464         * tests/test-fwriting.c (main): Also test the interaction between
35465         fflush and fwriting.
35466         * modules/fwriting-tests (Depends-on): Add fflush.
35467
35468         * tests/test-freading.c (main): Also test the interaction between
35469         fflush and freading.
35470         * modules/freading-tests (Depends-on): Add fflush.
35471
35472 2007-04-28  Bruno Haible  <bruno@clisp.org>
35473
35474         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
35475         fseeko and ftello.
35476         Suggested by Eric Blake.
35477
35478 2007-04-28  Jim Meyering  <jim@meyering.net>
35479
35480         Avoid false-negative in gl_STDINT_H's C99 conformance test.
35481         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
35482         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
35483
35484 2007-04-27  Eric Blake  <ebb9@byu.net>
35485
35486         * doc/headers/assert.texi (assert.h): Document assert module use.
35487
35488 2007-04-27  Bruno Haible  <bruno@clisp.org>
35489
35490         * doc/headers/*.texi: New files.
35491         * doc/gnulib.texi (Header File Substitutes): New chapter.
35492         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
35493         dependencies.
35494         (standards.info ,standards.html, standards.dvi): Update dependencies.
35495         (mostlyclean, clean): New targets.
35496
35497 2007-04-27  Bruno Haible  <bruno@clisp.org>
35498
35499         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
35500         * modules/sysexits (Files, Makefile.am): Update.
35501
35502         * lib/sys_socket_.h: Renamed from lib/socket_.h.
35503         * modules/sys_socket (Files, Makefile.am): Update.
35504
35505         * lib/sys_stat_.h: Renamed from lib/stat_.h.
35506         * modules/sys_stat (Files, Makefile.am): Update.
35507
35508 2007-04-27  Eric Blake  <ebb9@byu.net>
35509
35510         * lib/freading.h: Improve comments.
35511         * lib/fwriting.h: Likewise.
35512         * lib/fflush.c: Likewise.
35513
35514         Fix closein for mingw.
35515         * modules/closein-tests: Add tests for closein.
35516         * tests/test-closein.c: New file.
35517         * tests/test-closein.sh: Likewise.
35518         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
35519         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
35520
35521 2007-04-27  Bruno Haible  <bruno@clisp.org>
35522
35523         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
35524         version is < 6.
35525         * lib/math_.h [__DECC]: Likewise.
35526         * lib/stdio_.h [__DECC]: Likewise.
35527         * lib/stdlib_.h [__DECC]: Likewise.
35528         * lib/string_.h [__DECC]: Likewise.
35529         * lib/time_.h [__DECC]: Likewise.
35530         * lib/wchar_.h [__DECC]: Likewise.
35531         * lib/wctype_.h [__DECC]: Likewise.
35532
35533 2007-04-27  Bruno Haible  <bruno@clisp.org>
35534
35535         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
35536
35537 2007-04-27  Bruno Haible  <bruno@clisp.org>
35538
35539         * lib/fflush.c: Add comments.
35540         * modules/fpurge-tests (Depends-on): Add fflush.
35541         * modules/freadable-tests (Depends-on): Likewise.
35542         * modules/fwritable-tests (Depends-on): Likewise.
35543
35544 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
35545
35546         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
35547         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
35548         Report by Bruno Haible <bruno@clisp.org>.
35549
35550 2007-04-26  Eric Blake  <ebb9@byu.net>
35551
35552         Fix fflush on mingw.
35553         * modules/fflush (Depends-on): Add freading.
35554         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
35555         but unread data.
35556
35557 2007-04-26  Eric Blake  <ebb9@byu.net>
35558         and Bruno Haible  <bruno@clisp.org>
35559
35560         Implement freading and fwriting.
35561         * lib/freading.c: New file.
35562         * lib/freading.h: Likewise.
35563         * m4/freading.m4: Likewise.
35564         * modules/freading: Likewise.
35565         * modules/freading-tests: Likewise.
35566         * tests/test-freading.c: Likewise.
35567         * lib/fwriting.c: New file.
35568         * lib/fwriting.h: Likewise.
35569         * m4/fwriting.m4: Likewise.
35570         * modules/fwriting: Likewise.
35571         * modules/fwriting-tests: Likewise.
35572         * tests/test-fwriting.c: Likewise.
35573         * MODULES.html.sh (File stream based Input/Output): Mention them.
35574
35575 2007-04-26  Bruno Haible  <bruno@clisp.org>
35576
35577         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
35578         'long' when we assume it.
35579         Suggested by Eric Blake.
35580
35581 2007-04-26  Bruno Haible  <bruno@clisp.org>
35582
35583         Ensure fseeko, ftello are declared on glibc systems.
35584         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
35585         * modules/fseeko (configure.ac-early): Likewise.
35586         * modules/ftello (configure.ac-early): Likewise.
35587         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
35588         AC_FUNC_FSEEKO for this.
35589         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
35590         (gl_CHECK_FSEEKO): Remove macro.
35591
35592 2007-04-26  Bruno Haible  <bruno@clisp.org>
35593
35594         * tests/test-fflush.c (main): Also check the ftell result after
35595         fflush and fseek/fseeko.
35596         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
35597         file descriptor position cache in the stream.
35598         * lib/fseeko.c (rpl_fseeko): Likewise.
35599
35600 2007-04-26  Bruno Haible  <bruno@clisp.org>
35601
35602         * modules/fflush-tests (Depends-on): Add fseeko.
35603
35604 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
35605             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35606
35607         * lib/argz_.h: ensure error_t definition is obtained in same
35608         mechanism system argz.h would have.
35609         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
35610         argz facilities are known bad.  Err on the side of caution if
35611         cross-compiling.
35612
35613 2007-04-25  Eric Blake  <ebb9@byu.net>
35614
35615         * lib/fpurge.c (includes): Use stdlib.h for free.
35616         * tests/test-fflush.c (main): Also test fflush-fseeko.
35617
35618 2007-04-25  Bruno Haible  <bruno@clisp.org>
35619
35620         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
35621         * lib/fseeko.c: New file.
35622         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
35623         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
35624         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
35625         gl_FUNC_FSEEKO.
35626         (gl_FUNC_FSEEKO): Invoke it.
35627         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
35628         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
35629         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
35630
35631 2007-04-25  Bruno Haible  <bruno@clisp.org>
35632
35633         * modules/fflush (Depends-on): Add ftello.
35634
35635 2007-04-25  Bruno Haible  <bruno@clisp.org>
35636
35637         * modules/ftello-tests: New file.
35638         * tests/test-ftello.c: New file.
35639
35640         * modules/ftello: New file.
35641         * m4/ftello.m4: New file.
35642         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
35643         HAVE_FTELLO.
35644         * lib/stdio_.h (ftello): New declaration.
35645         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
35646         HAVE_FTELLO.
35647
35648 2007-04-25  Bruno Haible  <bruno@clisp.org>
35649
35650         * modules/fseeko-tests: New file.
35651         * tests/test-fseeko.c: New file.
35652
35653         * modules/fseeko: New file.
35654         * m4/fseeko.m4: New file.
35655         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
35656         HAVE_FSEEKO.
35657         * lib/stdio_.h (fseeko): New declaration.
35658         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
35659         HAVE_FSEEKO.
35660
35661 2007-04-25  Bruno Haible  <bruno@clisp.org>
35662
35663         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
35664
35665 2007-04-25  Bruno Haible  <bruno@clisp.org>
35666
35667         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
35668         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
35669         * tests/test-unistd.c: Likewise.
35670         * tests/test-fcntl.c: Likewise.
35671
35672 2007-04-23  Eric Blake  <ebb9@byu.net>
35673
35674         * lib/fflush.c: Fix missing include.
35675         Reported by Bruno Haible.
35676
35677 2007-04-23  Bruno Haible  <bruno@clisp.org>
35678
35679         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
35680         Reported by Eric Blake.
35681
35682 2007-04-23  Bruno Haible  <bruno@clisp.org>
35683
35684         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
35685
35686 2007-04-23  Bruno Haible  <bruno@clisp.org>
35687
35688         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
35689
35690 2007-04-23  Bruno Haible  <bruno@clisp.org>
35691
35692         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
35693         Needed on HP-UX 11.
35694
35695 2007-04-16  Eric Blake  <ebb9@byu.net>
35696
35697         Make fflush rely on fpurge.
35698         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
35699         open coding all variants.
35700         * modules/fflush (Depends-on): Add fpurge and unistd.
35701         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
35702         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
35703
35704         Fix --with-tests compilation on cygwin.
35705         * modules/argmatch-tests (Makefile.am): List gnulib library first
35706         in LDADD.
35707         * modules/argp-tests (Makefile.am): Likewise.
35708         * modules/array-list-tests (Makefile.am): Likewise.
35709         * modules/array-oset-tests (Makefile.am): Likewise.
35710         * modules/avltree-list-tests (Makefile.am): Likewise.
35711         * modules/avltree-oset-tests (Makefile.am): Likewise.
35712         * modules/avltreehash-list-tests (Makefile.am): Likewise.
35713         * modules/carray-list-tests (Makefile.am): Likewise.
35714         * modules/dirname-tests (Makefile.am): Likewise.
35715         * modules/frexp-tests (Makefile.am): Likewise.
35716         * modules/isnanl-tests (Makefile.am): Likewise.
35717         * modules/linked-list-tests (Makefile.am): Likewise.
35718         * modules/linkedhash-list-tests (Makefile.am): Likewise.
35719         * modules/lock-tests (Makefile.am): Likewise.
35720         * modules/rbtree-list-tests (Makefile.am): Likewise.
35721         * modules/rbtree-oset-tests (Makefile.am): Likewise.
35722         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
35723         * modules/tls-tests (Makefile.am): Likewise.
35724         * modules/tsearch-tests (Makefile.am): Likewise.
35725         * modules/xvasprintf-tests (Makefile.am): Likewise.
35726
35727         Fix fpurge for cygwin.
35728         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
35729         value.
35730         * modules/fpurge-tests (Depends-on): Clean up trash.
35731
35732 2007-04-16  Simon Josefsson  <simon@josefsson.org>
35733
35734         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
35735
35736         * m4/autobuild.m4: Re-indent.
35737
35738 2007-04-13  Bruno Haible  <bruno@clisp.org>
35739
35740         * modules/fpurge-tests: New file.
35741         * tests/test-fpurge.c: New file.
35742
35743         * modules/fpurge: New file.
35744         * lib/fpurge.h: New file.
35745         * lib/fpurge.c: New file.
35746         * m4/fpurge.m4: New file.
35747
35748 2007-04-13  Bruno Haible  <bruno@clisp.org>
35749
35750         * modules/fbufmode-tests: New file.
35751         * tests/test-fbufmode.c: New file.
35752
35753         * modules/fbufmode: New file.
35754         * lib/fbufmode.h: New file.
35755         * lib/fbufmode.c: New file.
35756         * m4/fbufmode.m4: New file.
35757
35758 2007-04-13  Bruno Haible  <bruno@clisp.org>
35759
35760         * modules/fwritable-tests: New file.
35761         * tests/test-fwritable.c: New file.
35762
35763         * modules/fwritable: New file.
35764         * lib/fwritable.h: New file.
35765         * lib/fwritable.c: New file.
35766         * m4/fwritable.m4: New file.
35767
35768 2007-04-13  Bruno Haible  <bruno@clisp.org>
35769
35770         * modules/freadable-tests: New file.
35771         * tests/test-freadable.c: New file.
35772
35773         * modules/freadable: New file.
35774         * lib/freadable.h: New file.
35775         * lib/freadable.c: New file.
35776         * m4/freadable.m4: New file.
35777
35778 2007-04-13  Bruno Haible  <bruno@clisp.org>
35779
35780         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
35781         MOSTLYCLEANFILES.
35782
35783 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
35784
35785         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
35786         gzip bootstrap.conf to avoid dragging in i18n machinery.
35787         (gnulib_tool_option): Use it.
35788
35789 2007-04-13  Bruno Haible  <bruno@clisp.org>
35790
35791         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
35792         %F directives.
35793         * tests/test-vasprintf-posix.c (test_function): Likewise.
35794         * tests/test-snprintf-posix.h (test_function): Likewise.
35795         * tests/test-sprintf-posix.h (test_function): Likewise.
35796         * tests/test-fprintf-posix.h (test_function): Likewise.
35797         * tests/test-printf-posix.h (test_function): Likewise.
35798         * tests/test-fprintf-posix.out: Likewise.
35799
35800 2007-04-13  Bruno Haible  <bruno@clisp.org>
35801
35802         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
35803         * modules/tls-tests (configure.ac): Likewise.
35804         Reported by Arto C. Nirkko <anirkko@insel.ch>.
35805
35806 2007-04-13  Bruno Haible  <bruno@clisp.org>
35807
35808         * lib/tls.c (glthread_tls_get): Fix return type.
35809         Patch by Arto C. Nirkko <anirkko@insel.ch>.
35810
35811 2007-04-12  Eric Blake  <ebb9@byu.net>
35812
35813         * modules/gettime (Depends-on): Remove gettime.
35814         Reported by Dmitry V. Levin.
35815
35816 2007-04-12  Bruno Haible  <bruno@clisp.org>
35817
35818         * modules/fflush (Include): Mention <stdio.h>.
35819         * modules/strtoimax (Include): Mention <inttypes.h>.
35820         * modules/strtoumax (Include): Likewise.
35821
35822 2007-04-12  Eric Blake  <ebb9@byu.net>
35823
35824         * .cvsignore: New file.
35825         * .gitignore: Likewise.
35826
35827 2007-04-12  Bruno Haible  <bruno@clisp.org>
35828
35829         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
35830         not before, since $(LDADD) often contains libgnu.a.
35831         * modules/striconv-tests (test_striconv_LDADD): Likewise.
35832         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
35833         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
35834         Needed on Cygwin.
35835
35836 2007-04-12  Eric Blake  <ebb9@byu.net>
35837
35838         Work around glibc's failure to flush stdin on fclose.
35839         * lib/closein.c (close_stdin): Flush stdin before closing.
35840
35841         Work around glibc's failure to reset seekable stdin on exit.
35842         * modules/closein: New module.
35843         * lib/closein.c: New file.
35844         * lib/closein.h: Likewise.
35845         * m4/closein.m4: Likewise.
35846         * MODULES.html.sh (File stream based Input/Output): Document it.
35847
35848 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35849
35850         * gnulib-tool: Rename generated 'autobuild' script to
35851         'do-autobuild' in --create-megatestdir output.
35852
35853         * doc/gnulib.texi (Build robot for gnulib): Fix.
35854
35855 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35856
35857         * modules/sysexits (Depends-on): Add absolute-header.
35858
35859 2007-04-12  Eric Blake  <ebb9@byu.net>
35860
35861         No need to preserve errno on success.
35862         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
35863         Reported by Bruno Haible.
35864
35865 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35866
35867         * MODULES.html.sh (Support for maintaining and releasing
35868         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
35869
35870 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35871
35872         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
35873
35874 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35875
35876         * modules/autobuild: New module.
35877
35878         * m4/autobuild.m4: New file.
35879
35880 2007-04-11  Bruno Haible  <bruno@clisp.org>
35881
35882         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
35883         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
35884         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
35885         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
35886         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35887         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35888         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35889         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35890         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35891         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35892         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
35893         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35894         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35895         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
35896         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35897         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35898         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
35899         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35900         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35901         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
35902         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35903         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35904         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
35905         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35906         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35907         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
35908         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35909         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35910         Reported by Eric Blake.
35911
35912 2007-04-11  Bruno Haible  <bruno@clisp.org>
35913
35914         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
35915
35916 2007-04-10  Bruno Haible  <bruno@clisp.org>
35917
35918         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
35919         for NaN and Infinity. Needed on FreeBSD 6.1.
35920         * tests/test-vasnprintf-posix.c (test_function): Undo last change
35921         regarding results for "%010a" of Infinity and NaN.
35922         * tests/test-vasprintf-posix.c (test_function): Likewise.
35923         * tests/test-snprintf-posix.h (test_function): Likewise.
35924         * tests/test-sprintf-posix.h (test_function): Likewise.
35925         * tests/test-fprintf-posix.h (test_function): Likewise.
35926         * tests/test-printf-posix.h (test_function): Likewise.
35927         * tests/test-fprintf-posix.out: Likewise.
35928
35929 2007-04-10  Bruno Haible  <bruno@clisp.org>
35930
35931         * modules/locale-tests: New file.
35932         * tests/test-locale.c: New file.
35933
35934         * modules/locale: New file.
35935         * lib/locale_.h: New file.
35936         * m4/locale_h.m4: New file.
35937
35938 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
35939             Bruno Haible  <bruno@clisp.org>
35940
35941         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
35942         be determined, test for availability of the copysignf, copysign,
35943         copysignl functions.
35944         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
35945         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
35946         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
35947
35948 2007-04-09  Eric Blake  <ebb9@byu.net>
35949
35950         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
35951         * modules/stdio (Makefile.am): Support fflush.
35952         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35953         * modules/fflush: New file.
35954         * lib/fflush.c: Likewise.
35955         * m4/fflush.m4: Likewise.
35956         * modules/fflush-tests: New test.
35957         * tests/test-fflush.c: Likewise.
35958         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
35959
35960 2007-04-06  Bruno Haible  <bruno@clisp.org>
35961
35962         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
35963         (VASNPRINTF): Use signbit for faster determination whether to print a
35964         minus sign.
35965         * modules/vasnprintf (Files): Remove lib/float+.h.
35966         * modules/fprintf-posix (Depends-on): Add signbit.
35967         * modules/snprintf-posix (Depends-on): Likewise.
35968         * modules/sprintf-posix (Depends-on): Likewise.
35969         * modules/vasnprintf-posix (Depends-on): Likewise.
35970         * modules/vasprintf-posix (Depends-on): Likewise.
35971         * modules/vfprintf-posix (Depends-on): Likewise.
35972         * modules/vsnprintf-posix (Depends-on): Likewise.
35973         * modules/vsprintf-posix (Depends-on): Likewise.
35974
35975 2007-04-06  Bruno Haible  <bruno@clisp.org>
35976
35977         * tests/test-frexp.c (main): Test also the sign bit of zero results.
35978         * tests/test-frexpl.c (main): Likewise.
35979         * tests/test-ldexpl.c (main): Likewise.
35980         * modules/frexp-tests (Depends-on): Add signbit.
35981         * modules/frexpl-tests (Depdends-on): Likewise.
35982         * modules/ldexpl-tests (Depdends-on): Likewise.
35983
35984 2007-04-06  Bruno Haible  <bruno@clisp.org>
35985
35986         * modules/signbit-tests: New file.
35987         * tests/test-signbit.c: New file.
35988
35989         * modules/signbit: New file.
35990         * lib/signbitf.c: New file.
35991         * lib/signbitd.c: New file.
35992         * lib/signbitl.c: New file.
35993         * m4/signbit.m4: New file.
35994         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
35995         (signbit): New macro.
35996         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
35997         REPLACE_SIGNBIT.
35998         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
35999         REPLACE_FREXPL into math.h.
36000
36001 2007-04-06  Bruno Haible  <bruno@clisp.org>
36002
36003         * modules/isnanf-nolibm-tests: New file.
36004         * tests/test-isnanf.c: New file.
36005
36006         * modules/isnanf-nolibm: New file.
36007         * lib/isnanf.h: New file.
36008         * lib/isnanf.c: New file.
36009         * lib/isnan.c: Consider the USE_FLOAT macro.
36010         * m4/isnanf.m4: New file.
36011
36012 2007-04-06  Bruno Haible  <bruno@clisp.org>
36013
36014         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
36015         (Link): New section.
36016
36017         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
36018
36019 2007-04-06  Bruno Haible  <bruno@clisp.org>
36020
36021         Assume the 'long double' type.
36022         * m4/longdouble.m4: Remove file.
36023         * config/srclist.txt: Don't mention longdouble.m4.
36024         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
36025         * lib/float+.h: Likewise.
36026         * lib/frexp.c: Likewise.
36027         * lib/printf-args.h: Likewise.
36028         * lib/printf-args.c: Likewise.
36029         * lib/printf-frexp.c: Likewise.
36030         * lib/printf-parse.c: Likewise.
36031         * lib/vasnprintf.c: Likewise.
36032         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
36033         * m4/intl.m4: Likewise.
36034         * m4/isnanl.m4: Likewise.
36035         * m4/printf.m4: Likewise.
36036         * m4/printf-frexpl.m4: Likewise.
36037         * m4/vasnprintf.m4: Likewise.
36038         * modules/allocsa (Files): Remove m4/longdouble.m4.
36039         * modules/gettext (Files): Likewise.
36040         * modules/relocatable-prog-wrapper (Files): Likewise.
36041         * modules/vasnprintf (Files): Likewise.
36042         * modules/isnanl (Files): Likewise.
36043         (Include): Simplify.
36044         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
36045         (Include): Simplify.
36046         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
36047         (Include): Simplify.
36048         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
36049         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36050         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
36051         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36052         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
36053         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36054         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
36055         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36056         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
36057         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36058         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
36059         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36060         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
36061         * tests/test-isnanl.c: Likewise.
36062         * tests/test-snprintf-posix.h: Likewise.
36063         * tests/test-sprintf-posix.h: Likewise.
36064         * tests/test-vasnprintf-posix.c: Likewise.
36065         * tests/test-vasnprintf-posix2.c: Likewise.
36066         * tests/test-vasprintf-posix.c: Likewise.
36067
36068 2007-04-06  Bruno Haible  <bruno@clisp.org>
36069
36070         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
36071         * lib/math_.h [__DECC]: Include the overridden include file through
36072         #include_next, outside the double-inclusion guard.
36073         * lib/stdio_.h [__DECC]: Likewise.
36074         * lib/stdlib_.h [__DECC]: Likewise.
36075         * lib/string_.h [__DECC]: Likewise.
36076         * lib/time_.h [__DECC]: Likewise.
36077         * lib/wchar_.h [__DECC]: Likewise.
36078         * lib/wctype_.h [__DECC]: Likewise.
36079         * lib/inttypes_.h [__DECC]: Likewise.
36080         Reported by Albert Chin <china@thewrittenword.com> in
36081         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
36082
36083 2007-04-04  Eric Blake  <ebb9@byu.net>
36084
36085         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
36086         1.5.x.
36087
36088 2007-04-04  Bruno Haible  <bruno@clisp.org>
36089
36090         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
36091         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
36092
36093 2007-04-04  Bruno Haible  <bruno@clisp.org>
36094
36095         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
36096         results for "%010a" of Infinity and NaN.
36097         * tests/test-vasprintf-posix.c (test_function): Likewise.
36098         * tests/test-snprintf-posix.h (test_function): Likewise.
36099         * tests/test-sprintf-posix.h (test_function): Likewise.
36100         * tests/test-fprintf-posix.h (test_function): Remove these tests.
36101         * tests/test-printf-posix.h (test_function): Likewise.
36102         * tests/test-fprintf-posix.out: Update.
36103         Needed for FreeBSD 6.1.
36104
36105 2007-04-04  Bruno Haible  <bruno@clisp.org>
36106
36107         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
36108         directly used by the gnulib modules nor by gnulib-tool.
36109
36110 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
36111
36112         * DEPENDENCIES: Give overall description of version dependency
36113         desirability.  Use more-typical names for apps.
36114         Add shell, coreutils, diffutils, grep, tar, gzip.
36115
36116 2007-04-04  Simon Josefsson  <simon@josefsson.org>
36117
36118         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
36119
36120 2007-04-04  Karl Berry  <karl@gnu.org>
36121
36122         * MODULES.html.sh (func_module): missing '.
36123
36124 2007-04-03  Bruno Haible  <bruno@clisp.org>
36125
36126         * modules/argmatch-tests (Makefile.am): New variable
36127         test_argmatch_LDADD.
36128         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
36129         * modules/array-list-tests (Makefile.am): New variable
36130         test_array_list_LDADD.
36131         * modules/array-oset-tests (Makefile.am): New variable
36132         test_array_oset_LDADD.
36133         * modules/avltree-list-tests (Makefile.am): New variable
36134         test_avltree_list_LDADD.
36135         * modules/avltree-oset-tests (Makefile.am): New variable
36136         test_avltree_oset_LDADD.
36137         * modules/avltreehash-list-tests (Makefile.am): New variable
36138         test_avltreehash_list_LDADD.
36139         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
36140         test_canonicalize_lgpl_LDADD.
36141         * modules/carray-list-tests (Makefile.am): New variable
36142         test_carray_list_LDADD.
36143         * modules/dirname-tests (Makefile.am): New variable
36144         test_dirname_LDADD.
36145         * modules/linked-list-tests (Makefile.am): New variable
36146         test_linked_list_LDADD.
36147         * modules/linkedhash-list-tests (Makefile.am): New variable
36148         test_linkedhash_list_LDADD.
36149         * modules/rbtree-list-tests (Makefile.am): New variable
36150         test_rbtree_list_LDADD.
36151         * modules/rbtree-oset-tests (Makefile.am): New variable
36152         test_rbtree_oset_LDADD.
36153         * modules/rbtreehash-list-tests (Makefile.am): New variable
36154         test_rbtreehash_list_LDADD.
36155         * modules/xvasprintf-tests (Makefile.am): New variable
36156         test_xvasprintf_LDADD.
36157         Reported by Eric Blake.
36158
36159 2007-04-03  Eric Blake  <ebb9@byu.net>
36160
36161         * DEPENDENCIES: Weaken m4 requirements.
36162
36163 2007-04-03  Bruno Haible  <bruno@clisp.org>
36164
36165         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
36166         * modules/isnanl-tests (configure.ac): Likewise.
36167
36168 2007-04-03  Ben Pfaff  <blp@gnu.org>
36169
36170         * modules/iconv_open: Add $(srcdir)/ to source directory
36171         references in Makefile fragments that call gperf, to fix VPATH
36172         builds.
36173
36174 2007-04-03  Bruno Haible  <bruno@clisp.org>
36175
36176         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
36177         * lib/ldexpl.c: Undo last change.
36178
36179 2007-04-03  Bruno Haible  <bruno@clisp.org>
36180
36181         * modules/printf-frexpl (Depends-on): Undo last change.
36182         (Files): Add m4/ldexpl.m4.
36183
36184 2007-04-03  Bruno Haible  <bruno@clisp.org>
36185
36186         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
36187         * modules/isnanl (Link): New section.
36188
36189         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
36190         * modules/frexp (Link): New section.
36191
36192         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
36193         * modules/frexpl (Link): New section.
36194
36195         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
36196         * modules/ldexpl (Link): New section.
36197
36198 2007-04-03  Bruno Haible  <bruno@clisp.org>
36199
36200         * modules/TEMPLATE-EXTENDED: New file.
36201         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
36202
36203 2007-04-03  Bruno Haible  <bruno@clisp.org>
36204
36205         * DEPENDENCIES: New file.
36206         Suggested by Simon Josefsson.
36207
36208 2007-04-03  Bruno Haible  <bruno@clisp.org>
36209
36210         * doc/gnulib.texi: Escape @.
36211
36212 2007-04-03  James Youngman  <jay@gnu.org>
36213         and Paul Eggert  <eggert@cs.ucla.edu>
36214
36215         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
36216         birthtime on all systems that have birthtime, not just those which
36217         use st_birthtimensec rather than st_birthtim.  Putting zero in
36218         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
36219         that the birth time is not available for files on an NFS mount.
36220
36221 2007-04-03  Simon Josefsson  <simon@josefsson.org>
36222
36223         * modules/memxor: Move back from crypto/, suggested by Bruno.
36224         * modules/crypto/hmac-sha1: Fix memxor dependency.
36225
36226         * modules/crypto/gc: Moved from ../.
36227
36228 2007-04-02  Eric Blake  <ebb9@byu.net>
36229
36230         * lib/ldexpl.c (includes): Avoid libm.
36231
36232         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
36233
36234 2007-04-02  Bruno Haible  <bruno@clisp.org>
36235
36236         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
36237         on IRIX.
36238
36239 2007-04-02  Bruno Haible  <bruno@clisp.org>
36240
36241         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
36242         x86 or x86_64 platforms running MacOS X.
36243         Reported by Ryan Schmidt <@ryandesign.com>.
36244
36245 2007-04-02  Bruno Haible  <bruno@clisp.org>
36246
36247         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
36248         i386.
36249
36250 2007-04-01  Simon Josefsson  <simon@josefsson.org>
36251
36252         * modules/crypto/arcfour: Moved from ../.
36253         * modules/crypto/arcfour-tests: Moved from ../.
36254         * modules/crypto/arctwo: Moved from ../.
36255         * modules/crypto/arctwo-tests: Moved from ../.
36256         * modules/crypto/des: Moved from ../.
36257         * modules/crypto/des-tests: Moved from ../.
36258         * modules/crypto/gc-arcfour: Moved from ../.
36259         * modules/crypto/gc-arcfour-tests: Moved from ../.
36260         * modules/crypto/gc-arctwo: Moved from ../.
36261         * modules/crypto/gc-arctwo-tests: Moved from ../.
36262         * modules/crypto/gc-des: Moved from ../.
36263         * modules/crypto/gc-des-tests: Moved from ../.
36264         * modules/crypto/gc-hmac-md5: Moved from ../.
36265         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
36266         * modules/crypto/gc-hmac-sha1: Moved from ../.
36267         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
36268         * modules/crypto/gc-md2: Moved from ../.
36269         * modules/crypto/gc-md2-tests: Moved from ../.
36270         * modules/crypto/gc-md4: Moved from ../.
36271         * modules/crypto/gc-md4-tests: Moved from ../.
36272         * modules/crypto/gc-md5: Moved from ../.
36273         * modules/crypto/gc-md5-tests: Moved from ../.
36274         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
36275         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
36276         * modules/crypto/gc-random: Moved from ../.
36277         * modules/crypto/gc-rijndael: Moved from ../.
36278         * modules/crypto/gc-rijndael-tests: Moved from ../.
36279         * modules/crypto/gc-sha1: Moved from ../.
36280         * modules/crypto/gc-sha1-tests: Moved from ../.
36281         * modules/crypto/gc-tests: Moved from ../.
36282         * modules/crypto/hmac-md5: Moved from ../.
36283         * modules/crypto/hmac-md5-tests: Moved from ../.
36284         * modules/crypto/hmac-sha1: Moved from ../.
36285         * modules/crypto/hmac-sha1-tests: Moved from ../.
36286         * modules/crypto/md2: Moved from ../.
36287         * modules/crypto/md2-tests: Moved from ../.
36288         * modules/crypto/md4: Moved from ../.
36289         * modules/crypto/md4-tests: Moved from ../.
36290         * modules/crypto/md5: Moved from ../.
36291         * modules/crypto/md5-tests: Moved from ../.
36292         * modules/crypto/memxor: Moved from ../.
36293         * modules/crypto/rijndael: Moved from ../.
36294         * modules/crypto/rijndael-tests: Moved from ../.
36295         * modules/crypto/sha1: Moved from ../.
36296
36297 2007-03-30  James Youngman  <jay@gnu.org>
36298
36299         * tests/test-stat-time.c (prepare_test): use chmod() rather than
36300         rename() to change the ctime of a file (because ctime is unaffected
36301         by rename on jfs2 on AIX 5.1).
36302         (main): Start by doing cleanup, in case a previous run failed leaving
36303         test files behind.
36304
36305 2007-03-31  Bruno Haible  <bruno@clisp.org>
36306
36307         Support old proprietary implementations of iconv.
36308         * modules/iconv_open: New file.
36309         * lib/iconv_.h: New file.
36310         * m4/iconv_h.m4: New file.
36311         * lib/iconv_open.c: New file.
36312         * lib/iconv_open-aix.gperf: New file.
36313         * lib/iconv_open-hpux.gperf: New file.
36314         * lib/iconv_open-irix.gperf: New file.
36315         * lib/iconv_open-osf.gperf: New file.
36316         * m4/iconv_open.m4: New file.
36317         * modules/linebreak (Depends-on): Add iconv_open.
36318         * modules/striconv (Depends-on): Likewise.
36319         * modules/striconveh (Depends-on): Likewise.
36320         * modules/unicodeio (Depends-on): Likewise.
36321         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
36322         (iconv_t)(-1).
36323         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
36324         conversion if cd is (iconv_t)(-1).
36325         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
36326         is not possible.
36327
36328 2007-03-31  Bruno Haible  <bruno@clisp.org>
36329
36330         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
36331         work on Solaris either. Protect also second use of "autodetect_jp".
36332
36333 2007-03-31  Bruno Haible  <bruno@clisp.org>
36334
36335         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
36336         the function is not present.
36337
36338 2007-03-31  Bruno Haible  <bruno@clisp.org>
36339
36340         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
36341         the function is not present.
36342
36343 2007-03-31  Bruno Haible  <bruno@clisp.org>
36344
36345         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
36346         a bug in HP-UX iconv_open().
36347
36348 2007-03-31  Bruno Haible  <bruno@clisp.org>
36349
36350         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
36351         (Mathematics <math.h>): New section, add fpieee.
36352         (Input/output <stdio.h>): Add fseterr.
36353         (Mathematics <math.h>): New section, add printf-frexp.
36354         (Container data structures): Add sublist.
36355         (Core language properties): Add fpucw, inline.
36356         (Functions for greatest-width integer types <inttypes.h>): Add
36357         imaxabs, imaxdiv, inttypes.
36358         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
36359         isnanl-nolibm, ldexp.
36360         (Mathematics <math.h>): New section, add printf-frexpl.
36361         (Support for systems lacking POSIX:2001): Add fprintf-posix,
36362         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
36363         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
36364         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
36365         (Unicode string functions): Add unistr/u*-mbtoucr.
36366         (Java): Add javacomp-script, javaexec-script.
36367         (C#): Add csharpcomp-script, csharpexec-script.
36368         (Support for building libraries and executables): Add havelib,
36369         relocatable-*.
36370         (Support for maintaining and releasing projects): Renamed from
36371         'Support for maintaining and release projects'. Add announce-gen.
36372
36373 2007-03-31  Bruno Haible  <bruno@clisp.org>
36374
36375         * README: Talk primarily about git.
36376         (git and CVS): Renamed from CVS.
36377         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
36378         gnulib is available through git.
36379         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
36380
36381 2007-03-30  Bruno Haible  <bruno@clisp.org>
36382
36383         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
36384         * lib/poll_.h: Likewise.
36385         * lib/stat_.h: Likewise.
36386         * lib/sys_time_.h: Likewise.
36387         * lib/sysexit_.h: Likewise.
36388         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
36389         * lib/stdbool_.h: Likewise.
36390         * lib/byteswap_.h: Add double-inclusion guard.
36391
36392 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
36393
36394         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
36395
36396 2007-03-30  Karl Berry  <karl@gnu.org>
36397
36398         * config/srclist-update: double space after USA in the license
36399         substitution, since that's how it's usually (?) written.
36400
36401 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
36402
36403         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
36404         reported by Bruno Haible.
36405
36406 2007-03-29  Bruno Haible  <bruno@clisp.org>
36407
36408         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
36409         a bug in AIX iconv().
36410
36411 2007-03-29  Bruno Haible  <bruno@clisp.org>
36412
36413         * modules/ldexpl-tests: New file.
36414         * tests/test-ldexpl.c: New file.
36415
36416 2007-03-29  Bruno Haible  <bruno@clisp.org>
36417
36418         * lib/ldexpl.c: Include fpucw.h.
36419         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
36420         multiplication.
36421         * modules/ldexpl (Depends-on): Add fpucw.
36422
36423 2007-03-29  Bruno Haible  <bruno@clisp.org>
36424
36425         * modules/ldexpl: New file.
36426         * m4/ldexpl.m4: New file.
36427         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
36428         set.
36429         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
36430         REPLACE_LDEXPL.
36431         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
36432         REPLACE_LDEXPL.
36433         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
36434         gl_FUNC_LDEXPL_WORKS.
36435         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
36436         * modules/mathl (Files): Remove lib/ldexpl.c.
36437         (Depends-on): Add ldexpl.
36438
36439 2007-03-29  Bruno Haible  <bruno@clisp.org>
36440
36441         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
36442
36443 2007-03-29  Bruno Haible  <bruno@clisp.org>
36444
36445         * tests/test-striconveh.c (main): Don't assume that a direct conversion
36446         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
36447         and possibly also HP-UX.
36448         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
36449         work on AIX, IRIX, HP-UX, OSF/1.
36450         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
36451         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
36452         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
36453         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
36454         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
36455         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
36456
36457 2007-03-29  Bruno Haible  <bruno@clisp.org>
36458
36459         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
36460
36461 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
36462
36463         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
36464         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
36465
36466 2007-03-29  Eric Blake  <ebb9@byu.net>
36467
36468         * lib/acl-internal.h: Remove redundant include.
36469         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
36470         Cygwin when a file is locked.
36471
36472 2007-03-29  Bruno Haible  <bruno@clisp.org>
36473
36474         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
36475         file.
36476         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
36477
36478 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
36479
36480         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
36481         try to remove a parent directory if the child couldn't be removed
36482         (except for the first rmdir, which could fail because the child
36483         doesn't exist).  Problem reported by Jeff Blaine in
36484         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
36485
36486 2007-03-28  Bruno Haible  <bruno@clisp.org>
36487
36488         * lib/striconveh.c (utf8conv_carefully): New function.
36489         (mem_cd_iconveh_internal): Invoke it.
36490
36491 2007-03-28  Bruno Haible  <bruno@clisp.org>
36492
36493         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
36494         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
36495         input.
36496         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
36497         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
36498         unistr/u8-uctomb.
36499
36500 2007-03-28  Bruno Haible  <bruno@clisp.org>
36501
36502         * modules/unistr/u8-mbtoucr: New file.
36503         * lib/unistr/u8-mbtoucr.c: New file.
36504         * modules/unistr/u16-mbtoucr: New file.
36505         * lib/unistr/u16-mbtoucr.c: New file.
36506         * modules/unistr/u16-mbtoucr: New file.
36507         * lib/unistr/u16-mbtoucr.c: New file.
36508         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
36509
36510 2007-03-27  Simon Josefsson  <simon@josefsson.org>
36511             Bruno Haible  <bruno@clisp.org>
36512
36513         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
36514         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
36515         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
36516
36517         * m4/stdio_h.m4: Add stubs for vasprintf too.
36518
36519         * modules/stdio: Support vasprintf in sed command.
36520
36521         * modules/vasprintf: Depend on stdio for prototypes.  Remove
36522         vasprintf.h.  Add stdio module indicator.
36523
36524         * lib/stdio_.h: Declare asprintf and vasprintf, based on
36525         vasprintf.h.
36526
36527         * lib/vasprintf.h: File removed.
36528
36529         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
36530         * lib/vasprintf.c: Ditto.
36531         * lib/xvasprintf.c: Ditto.
36532         * tests/test-vasprintf-posix.c: Ditto.
36533         * tests/test-vasprintf.c: Ditto.
36534
36535 2007-03-27  Bruno Haible  <bruno@clisp.org>
36536
36537         Make vasnprintf multithread-safe.
36538         * lib/vasnprintf.c (decimal_point_char): New function.
36539         (VASNPRINTF): Use it.
36540         Suggested by Simon Josefsson.
36541
36542 2007-03-27  Eric Blake  <ebb9@byu.net>
36543
36544         Support sub-second birthtime on cygwin.
36545         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
36546         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
36547         (get_stat_birthtime): Also work with st_birthtim.
36548
36549 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
36550
36551         * lib/stat-time.h (USE_BIRTHTIME): Remove.
36552         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
36553         (get_stat_birthtime_ns): Do not try to use "spare" fields.
36554         (get_stat_birthtime_ns): Simplify compile-time tests.
36555         (get_stat_birthtime): Change the API to look like
36556         get_stat_mtime etc., except return a negative tv_nsec on error.
36557         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
36558         Don't check for "spare" fields.
36559         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
36560         or for struct stat.st_birthtime, as these tests aren't used.
36561         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
36562
36563 2007-03-27  Bruno Haible  <bruno@clisp.org>
36564
36565         * lib/stat-time.h: Include <sys/stat.h>.
36566
36567 2007-03-27  James Youngman  <jay@gnu.org>
36568
36569         * lib/stat-time.h (get_stat_birthtime): New function for
36570           retrieving st_birthtime as provided by UFS2 (hence *BSD).
36571         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
36572           and its variants.
36573         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
36574         * modules/stat-time-test: New file.
36575         * tests/test-stat-time.c: New test, devised by Bruno Haible.
36576
36577 2007-03-26  Bruno Haible  <bruno@clisp.org>
36578
36579         Better support of signalling NaNs.
36580         * lib/atanl.c: Include isnanl.h.
36581         (atanl): Perform test for NaN at the beginning of the function and
36582         through a call to isnanl.
36583         * lib/cosl.c: Include isnanl.h.
36584         (cosl): Perform test for NaN at the beginning of the function and
36585         through a call to isnanl.
36586         * lib/ldexpl.c: Include isnanl.h.
36587         (ldexpl): Perform test for NaN through a call to isnanl.
36588         * lib/logl.c: Include isnanl.h.
36589         (logl): Perform test for NaN at the beginning of the function and
36590         through a call to isnanl.
36591         * lib/sinl.c: Include isnanl.h.
36592         (sinl): Perform test for NaN at the beginning of the function and
36593         through a call to isnanl.
36594         * lib/sqrtl.c: Include isnanl.h.
36595         (sqrtl): Perform test for NaN at the beginning of the function and
36596         through a call to isnanl.
36597         * lib/tanl.c: Include isnanl.h.
36598         (tanl): Perform test for NaN at the beginning of the function and
36599         through a call to isnanl.
36600         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
36601         * modules/mathl (Depends-on): Add isnanl.
36602
36603 2007-03-26  Eric Blake  <ebb9@byu.net>
36604
36605         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
36606         regression in logic sense of previous patch.
36607
36608 2007-03-26  Bruno Haible  <bruno@clisp.org>
36609
36610         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
36611         unportable shell command "if ! ...".
36612         Reported by Ralf Wildenhues.
36613
36614 2007-03-25  Bruno Haible  <bruno@clisp.org>
36615
36616         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
36617         <sysexits.h> file, and only add EX_CONFIG.
36618         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
36619         absolute file name and whether it is sufficient. Substitute also
36620         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
36621         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
36622         ABSOLUTE_SYSEXITS_H into sysexits.h.
36623
36624 2007-03-25  Bruno Haible  <bruno@clisp.org>
36625
36626         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
36627         hints is NULL.
36628
36629 2007-03-25  Bruno Haible  <bruno@clisp.org>
36630
36631         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
36632         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
36633
36634 2007-03-25  Bruno Haible  <bruno@clisp.org>
36635
36636         * lib/vasnprintf.c: Include langinfo.h.
36637         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
36638         multithread-safe.
36639         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
36640         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
36641         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36642         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36643         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36644         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36645         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36646         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
36647         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36648         Reported by Simon Josefsson.
36649
36650 2007-03-25  Bruno Haible  <bruno@clisp.org>
36651
36652         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
36653         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
36654         * modules/vasnprintf (Depends-on): Add stdint.
36655
36656 2007-03-25  Bruno Haible  <bruno@clisp.org>
36657
36658         * modules/fpieee: New file.
36659         * m4/fpieee.m4: New file.
36660         * modules/isnan-nolibm (Depends-on): Add fpieee.
36661         * modules/isnanl-nolibm (Depends-on): Add fpieee.
36662         * modules/isnanl (Depends-on): Add fpieee.
36663
36664 2007-03-25  Bruno Haible  <bruno@clisp.org>
36665
36666         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
36667
36668 2007-03-25  Bruno Haible  <bruno@clisp.org>
36669
36670         Avoid test failures on IRIX 6.5.
36671         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
36672         (main): Use it.
36673         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
36674         macros.
36675         (main): Use them.
36676
36677 2007-03-25  Bruno Haible  <bruno@clisp.org>
36678
36679         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
36680         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
36681         exists but doesn't work.
36682         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
36683         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
36684         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
36685         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
36686
36687 2007-03-25  Bruno Haible  <bruno@clisp.org>
36688
36689         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
36690         returns inf. Needed on IRIX 6.5.
36691
36692 2007-03-25  Bruno Haible  <bruno@clisp.org>
36693
36694         * tests/test-frexpl.c: Include isnanl-nolibm.h.
36695         (main): Use isnanl instead of x != x idiom.
36696         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
36697
36698         * tests/test-frexp.c: Include isnan.h.
36699         (main): Use isnan instead of x != x idiom.
36700         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
36701
36702 2007-03-25  Bruno Haible  <bruno@clisp.org>
36703
36704         * tests/test-frexp.c (NaN): New function/macro.
36705         (main): Use it instead of 0.0 / 0.0.
36706         * tests/test-isnan.c (NaN): New function/macro.
36707         (main): Use it instead of 0.0 / 0.0.
36708         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
36709         (test_function): Use it instead of 0.0 / 0.0.
36710         * tests/test-vasprintf-posix.c (NaN): New function/macro.
36711         (test_function): Use it instead of 0.0 / 0.0.
36712         * tests/test-snprintf-posix.h (NaN): New function/macro.
36713         (test_function): Use it instead of 0.0 / 0.0.
36714         * tests/test-sprintf-posix.h (NaN): New function/macro.
36715         (test_function): Use it instead of 0.0 / 0.0.
36716         * tests/test-fprintf-posix.h (NaN): New function/macro.
36717         (test_function): Use it instead of 0.0 / 0.0.
36718         * tests/test-printf-posix.h (NaN): New function/macro.
36719         (test_function): Use it instead of 0.0 / 0.0.
36720
36721         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
36722
36723 2007-03-25  Bruno Haible  <bruno@clisp.org>
36724
36725         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
36726
36727 2007-03-25  Bruno Haible  <bruno@clisp.org>
36728
36729         * lib/regexec.c (merge_state_with_log): Make static.
36730
36731 2007-03-25  Bruno Haible  <bruno@clisp.org>
36732
36733         * lib/trigl.c (kernel_rem_pio2): Make static.
36734
36735 2007-03-25  Bruno Haible  <bruno@clisp.org>
36736
36737         * lib/sincosl.c (sincosl_table): Make static.
36738
36739 2007-03-25  Bruno Haible  <bruno@clisp.org>
36740
36741         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
36742         if the compiler does not support C99.
36743
36744 2007-03-25  Bruno Haible  <bruno@clisp.org>
36745
36746         * modules/time (Makefile.am): Ensure all rule action lines start with a
36747         tab.
36748
36749 2007-03-24  Bruno Haible  <bruno@clisp.org>
36750
36751         * modules/tsearch-tests: New file.
36752         * tests/test-tsearch.sh: New file.
36753         * tests/test-tsearch.c: New file, mostly copied from glibc.
36754
36755         * modules/search-tests: New file.
36756         * tests/test-search.c: New file.
36757
36758         * modules/search: New file.
36759         * lib/search_.h: New file, incorporating lib/tsearch.h.
36760         * m4/search_h.m4: New file.
36761         * lib/tsearch.h: Remove file.
36762         * lib/tsearch.c: Include search.h instead of tsearch.h.
36763         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
36764         HAVE_TSEARCH.
36765         * modules/tsearch (Files): Remove lib/tsearch.h.
36766         (Depends-on): Add search.
36767         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
36768         (Include): Change tsearch.h into search.h.
36769
36770 2007-03-24  Bruno Haible  <bruno@clisp.org>
36771
36772         * modules/fpucw: New file.
36773         * lib/fpucw.h: New file.
36774         * lib/frexp.c: Include fpucw.h.
36775         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
36776         (FUNC): Use them.
36777         * lib/printf-frexp.c: Include fpucw.h.
36778         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
36779         (FUNC): Use them.
36780         * lib/vasnprintf.c: Include fpucw.h.
36781         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
36782         'long double' calculations.
36783         * tests/test-frexpl.c: Include fpucw.h.
36784         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
36785         * tests/test-printf-frexpl.c: Include fpucw.h.
36786         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
36787         * modules/frexpl (Depends-on): Add fpucw.
36788         * modules/printf-frexpl (Depends-on): Likewise.
36789         * modules/fprintf-posix (Depends-on): Likewise.
36790         * modules/snprintf-posix (Depends-on): Likewise.
36791         * modules/sprintf-posix (Depends-on): Likewise.
36792         * modules/vasnprintf-posix (Depends-on): Likewise.
36793         * modules/vasprintf-posix (Depends-on): Likewise.
36794         * modules/vfprintf-posix (Depends-on): Likewise.
36795         * modules/vsnprintf-posix (Depends-on): Likewise.
36796         * modules/vsprintf-posix (Depends-on): Likewise.
36797         * modules/frexpl-tests (Depends-on): Likewise.
36798         * modules/printf-frexpl-tests (Depends-on): Likewise.
36799
36800 2007-03-24  Bruno Haible  <bruno@clisp.org>
36801
36802         * lib/float+.h: New file.
36803         * lib/isnan.c: Include float+.h.
36804         (SIZE): New macro.
36805         (FUNC): Compare only SIZE bytes of the value.
36806         * lib/vasnprintf.c: Include float+.h.
36807         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
36808         SIZEOF_LDBL or SIZEOF_DBL bytes.
36809         * modules/isnan-nolibm (Files): Add lib/float+.h.
36810         * modules/isnanl-nolibm (Files): Add lib/float+.h.
36811         * modules/isnanl (Files): Add lib/float+.h.
36812         * modules/vasnprintf (Files): Add lib/float+.h.
36813
36814 2007-03-24  Bruno Haible  <bruno@clisp.org>
36815
36816         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
36817         include isnanl-nolibm.h.
36818
36819 2007-03-24  Bruno Haible  <bruno@clisp.org>
36820
36821         * tests/test-read-file.c (main): Don't produce spurious output for
36822         expected situations. Make the test fail if it encountered unexpected
36823         results.
36824
36825 2007-03-24  Bruno Haible  <bruno@clisp.org>
36826
36827         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
36828         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
36829
36830 2007-03-24  Bruno Haible  <bruno@clisp.org>
36831
36832         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
36833
36834 2007-03-24  Bruno Haible  <bruno@clisp.org>
36835
36836         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
36837         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
36838
36839         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
36840         * modules/utf8-ucs4: Turn into a symbolic link to module
36841         unistr/u8-mbtouc.
36842
36843         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
36844         utf8-ucs4-unsafe.
36845         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
36846         unistr/u8-mbtouc-unsafe.
36847
36848         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
36849         * modules/utf16-ucs4: Turn into a symbolic link to module
36850         unistr/u16-mbtouc.
36851
36852         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
36853         utf16-ucs4-unsafe.
36854         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
36855         unistr/u16-mbtouc-unsafe.
36856
36857         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
36858         * modules/ucs4-utf8: Turn into a symbolic link to module
36859         unistr/u8-ubtomb.
36860
36861         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
36862         * modules/ucs4-utf16: Turn into a symbolic link to module
36863         unistr/u16-ubtomb.
36864
36865 2007-03-24  Bruno Haible  <bruno@clisp.org>
36866
36867         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
36868         Enable the function only if HAVE_INLINE.
36869         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
36870         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
36871         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
36872         Enable the function only if HAVE_INLINE.
36873         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
36874         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
36875         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
36876         Enable the function only if HAVE_INLINE.
36877         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
36878         Enable the function only if HAVE_INLINE.
36879         * modules/utf8-ucs4: Update.
36880         * modules/utf8-ucs4-unsafe: Update.
36881         * modules/utf16-ucs4: Update.
36882         * modules/utf16-ucs4-unsafe: Update.
36883         * modules/ucs4-utf8: Update.
36884         * modules/ucs4-utf16: Update.
36885
36886 2007-03-24  Bruno Haible  <bruno@clisp.org>
36887
36888         * lib/utf8-ucs4.h: Remove file.
36889         * lib/utf8-ucs4-unsafe.h: Remove file.
36890         * lib/utf16-ucs4.h: Remove file.
36891         * lib/utf16-ucs4-unsafe.h: Remove file.
36892         * lib/ucs4-utf8.h: Remove file.
36893         * lib/ucs4-utf16.h: Remove file.
36894         * lib/unistr.h: Include their previous contents.
36895         * m4/utf-ucs4.m4: Remove file.
36896         * m4/ucs4-utf.m4: Remove file.
36897         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
36898         (Depends-on): Add unistr/base.
36899         (configure.ac): Remove gl_UTF_UCS4.
36900         (Makefile.am): Update.
36901         (Include): Change to unistr.h.
36902         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
36903         (Depends-on): Add unistr/base.
36904         (configure.ac): Remove gl_UTF_UCS4.
36905         (Makefile.am): Update.
36906         (Include): Change to unistr.h.
36907         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
36908         (Depends-on): Add unistr/base.
36909         (configure.ac): Remove gl_UTF_UCS4.
36910         (Makefile.am): Update.
36911         (Include): Change to unistr.h.
36912         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
36913         (Depends-on): Add unistr/base.
36914         (configure.ac): Remove gl_UTF_UCS4.
36915         (Makefile.am): Update.
36916         (Include): Change to unistr.h.
36917         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
36918         (Depends-on): Add unistr/base.
36919         (configure.ac): Remove gl_UCS4_UTF.
36920         (Makefile.am): Update.
36921         (Include): Change to unistr.h.
36922         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
36923         (Depends-on): Add unistr/base.
36924         (configure.ac): Remove gl_UCS4_UTF.
36925         (Makefile.am): Update.
36926         (Include): Change to unistr.h.
36927         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
36928         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
36929         utf8-ucs4-unsafe.h.
36930         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
36931         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
36932         utf16-ucs4-unsafe.h.
36933         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
36934         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
36935         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
36936         * lib/unistr/u8-strchr.c: Likewise.
36937         * lib/unistr/u8-strrchr.c: Likewise.
36938         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
36939         * lib/unistr/u16-strchr.c: Likewise.
36940         * lib/unistr/u16-strrchr.c: Likewise.
36941         * lib/striconveh.c: Update.
36942         * lib/linebreak.c: Update.
36943
36944 2007-03-24  Bruno Haible  <bruno@clisp.org>
36945
36946         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
36947         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
36948
36949 2007-03-22  Bruno Haible  <bruno@clisp.org>
36950
36951         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
36952
36953 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
36954
36955         * MODULES.html.sh (File system functions): New module write-any-file.
36956         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
36957         * m4/write-any-file.m4: New files.
36958
36959 2007-03-23  Eric Blake  <ebb9@byu.net>
36960
36961         * gnulib-tool: Rearrange space-tab sequences, since some editors
36962         like to eat them.
36963
36964 2007-03-23  Eric Blake  <ebb9@byu.net>
36965
36966         * lib/version-etc.c (version_etc_va): Update license wording to
36967         be more concise.  Recommended by Richard Stallman.
36968
36969 2007-03-22  Bruno Haible  <bruno@clisp.org>
36970
36971         * lib/poll.c (MSG_PEEK): New fallback definition.
36972
36973 2007-03-22  Bruno Haible  <bruno@clisp.org>
36974
36975         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
36976         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
36977         (main): Update.
36978         Fixes a compilation error on BeOS.
36979
36980 2007-03-22  Bruno Haible  <bruno@clisp.org>
36981
36982         * modules/frexpl-tests: New file.
36983         * tests/test-frexpl.c: New file.
36984
36985         * modules/frexpl: New file.
36986         * m4/frexpl.m4: New file.
36987         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
36988         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
36989         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
36990         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
36991         (Depends-on): Add frexpl. Remove isnanl-nolibm.
36992         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
36993
36994 2007-03-22  Bruno Haible  <bruno@clisp.org>
36995
36996         * lib/frexpl.c: Share code with lib/frexp.c.
36997         * modules/mathl (Files): Add lib/frexp.c.
36998         (Depends-on): Add isnanl-nolibm.
36999
37000 2007-03-22  Bruno Haible  <bruno@clisp.org>
37001
37002         * modules/printf-frexp (Files): Add m4/frexp.m4.
37003         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
37004         only if the found frexp function actually works.
37005
37006 2007-03-22  Bruno Haible  <bruno@clisp.org>
37007
37008         * lib/frexp.c: Remove older implementation that uses divisions.
37009
37010 2007-03-21  Bruno Haible  <bruno@clisp.org>
37011
37012         * modules/frexp-tests: New file.
37013         * tests/test-frexp.c: New file.
37014
37015         * modules/frexp: New file.
37016         * lib/frexp.c: New file.
37017         * m4/frexp.m4: New file.
37018         * lib/math_.h (frexp): New declaration.
37019         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
37020         REPLACE_FREXP.
37021         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
37022
37023 2007-03-21  Bruno Haible  <bruno@clisp.org>
37024
37025         * modules/isnanl-tests: New file.
37026         * tests/test-isnanl.c: New file.
37027
37028         * modules/isnanl: New file.
37029         * lib/isnanl.h: New file.
37030         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
37031         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
37032         gl_FUNC_ISNANL_WORKS.
37033         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
37034         New macros.
37035
37036 2007-03-21  Bruno Haible  <bruno@clisp.org>
37037
37038         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
37039         lib/isnanl.h.
37040         (Include): Update.
37041         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
37042         * lib/vasnprintf.c: Update.
37043         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
37044         tests/test-isnanl.h, remove tests/test-isnanl.c.
37045         (Makefile.am): Update.
37046         * tests/test-isnanl-nolibm.c: New file.
37047         * tests/test-isnanl.h: New file.
37048         * tests/test-isnanl.c: Remove file.
37049
37050 2007-03-21  Jim Meyering  <jim@meyering.net>
37051
37052         When trying to open ".", treat ESTALE like EACCES.
37053         * lib/savewd.c (savewd_save): Resort to forking not just upon
37054         failure with EACCES, but also when errno is ESTALE.
37055
37056 2007-03-20  Bruno Haible  <bruno@clisp.org>
37057
37058         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
37059         Needed on AIX 5.1. Reported by Matthew Woehlke.
37060
37061 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
37062
37063         Suggestions by Bruno Haible:
37064         * lib/acl-internal.h: Include "gettext.h" rather than rolling
37065         our own.
37066         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
37067         * modules/acl (Depends-on): Add gettext.
37068
37069 2007-03-19  Bruno Haible  <bruno@clisp.org>
37070
37071         * modules/iconvme: Remove file.
37072         * lib/iconvme.h: Remove file.
37073         * lib/iconvme.c: Remove file.
37074         * m4/iconvme.m4: Remove file.
37075
37076 2007-03-19  Bruno Haible  <bruno@clisp.org>
37077
37078         * doc/relocatable-maint.texi: Break long shell script line.
37079         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
37080
37081 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
37082
37083         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
37084         handle file_has_acl.
37085         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
37086         * lib/acl.c: Move header inclusions and related macro defns into
37087         lib/acl-internal.h.
37088         (S_ISLNK): Remove defn, since that's now done for us.
37089         (file_has_acl): Move to lib/file-has-acl.c.
37090         Call acl_trivial if available.  This is the crucial part of the fix.
37091         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
37092         shared within the library.  Rewrite a bit, partly to make it compatible
37093         with the GNU coding style.
37094         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
37095         Remove unnecessary double-quotes.
37096         Don't test for acl_to_text; the build will catch that.
37097         Replace acl_entries if it doesn't exist and it is needed.
37098         Check for -lsec and acl_trivial (as used on Solaris 10).
37099         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
37100         lib/file-has-acl.c.
37101         (Depends-on): Add sys_stat, for S_ISLNK.
37102
37103 2007-03-19  Ben Pfaff  <blp@gnu.org>
37104
37105         * doc/gnulib.texi: Fix typos.
37106         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
37107
37108 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
37109
37110         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
37111         If size is zero here, buf must be zero.
37112
37113 2007-03-19  Simon Josefsson  <simon@josefsson.org>
37114
37115         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
37116         <bruno@clisp.org>.
37117
37118 2007-03-18  Bruno Haible  <bruno@clisp.org>
37119
37120         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
37121         Suggested by Eric Blake.
37122
37123 2007-03-18  Ben Pfaff  <blp@gnu.org>
37124
37125         * doc/relocatable.texi: Recommend using as prefix a directory
37126         that does not exist and will never be created.  Based on
37127         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
37128         and others.
37129
37130 2007-03-17  Bruno Haible  <bruno@clisp.org>
37131
37132         * lib/fchownat.c: Include lchown.h.
37133
37134 2007-03-17  Bruno Haible  <bruno@clisp.org>
37135
37136         Fix endless loop when the given allocated size was > INT_MAX.
37137         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
37138         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
37139         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
37140         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
37141         * lib/sprintf.c (sprintf): Likewise.
37142
37143 2007-03-17  Bruno Haible  <bruno@clisp.org>
37144
37145         * tests/test-argp-2.sh (func_compare): Output a context diff.
37146
37147 2007-03-17  Bruno Haible  <bruno@clisp.org>
37148
37149         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
37150         locale's decimal-point character.
37151
37152 2007-03-17  Bruno Haible  <bruno@clisp.org>
37153
37154         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
37155         before comparing it. Needed because on some platforms (e.g. x86) a
37156         'long double' occupies less bytes than sizeof (long double).
37157
37158 2007-03-17  Bruno Haible  <bruno@clisp.org>
37159
37160         * tests/test-crc.c (main): Make printf statements 64-bit clean.
37161         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
37162         * tests/test-getaddrinfo.c (simple): Likewise.
37163         * tests/test-read-file.c (main): Likewise.
37164
37165 2007-03-17  Bruno Haible  <bruno@clisp.org>
37166
37167         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
37168
37169 2007-03-17  Bruno Haible  <bruno@clisp.org>
37170
37171         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
37172         unused variable.
37173
37174 2007-03-17  Bruno Haible  <bruno@clisp.org>
37175
37176         * tests/test-c-strcasecmp.c: Include c-strcase.h.
37177         * tests/test-c-strncasecmp.c: Likewise.
37178
37179 2007-03-17  Bruno Haible  <bruno@clisp.org>
37180
37181         * modules/stdlib (Depends-on): Add unistd.
37182         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
37183         Needed for MacOS X 10.3.
37184
37185 2007-03-17  Bruno Haible  <bruno@clisp.org>
37186
37187         * lib/unistr/u-strdup.h: Include <stdlib.h>.
37188
37189 2007-03-17  Bruno Haible  <bruno@clisp.org>
37190
37191         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
37192
37193 2007-03-17  Bruno Haible  <bruno@clisp.org>
37194
37195         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
37196         to reflect files copied from gnulib (with or without modifications).
37197         Suggested by Jim Meyering.
37198
37199 2007-03-17  Eric Blake  <ebb9@byu.net>
37200
37201         * NEWS: Document stdlib change from 2007-02-18.
37202
37203 2007-03-17  Jim Meyering  <jim@meyering.net>
37204
37205         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
37206         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
37207         someone uses a name containing shell meta-characters.
37208         Reported by Alfred M. Szmidt.
37209
37210         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
37211
37212 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
37213
37214         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
37215         and copy gettext configuration files only if configure.ac contains
37216         a use of AM_GNU_GETTEXT_VERSION.
37217
37218 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
37219
37220         * build-aux/bootstrap (gnulib_name): New variable.
37221         (gnulib_tool_options): Use it.
37222
37223 2007-03-13  Simon Josefsson  <simon@josefsson.org>
37224
37225         * tests/test-des.c: Use new namespace.
37226
37227 2007-03-15  Bruno Haible  <bruno@clisp.org>
37228
37229         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
37230         Reported by James Youngman <jay@gnu.org>.
37231
37232 2007-03-15  Bruno Haible  <bruno@clisp.org>
37233
37234         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
37235         declared prototype. Needed with cc on OSF/1 5.1.
37236
37237 2007-03-15  Bruno Haible  <bruno@clisp.org>
37238
37239         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
37240         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
37241         (struct gl_list_implementation): Add dispose_fn argument to the
37242         'create_empty', 'create' methods.
37243         (struct gl_list_impl_base): Add field 'dispose_fn'.
37244         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
37245         argument.
37246         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
37247         dispose_fn argument.
37248         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
37249         dispose_fn on the dropped values.
37250         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
37251         dispose_fn argument.
37252         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
37253         dropped values.
37254         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
37255         (gl_tree_remove_node): Call dispose_fn on the dropped value.
37256         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
37257         (gl_tree_remove_node): Call dispose_fn on the dropped value.
37258         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
37259         argument.
37260         (gl_tree_list_free): Call dispose_fn on the dropped values.
37261         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
37262         the dropped values.
37263         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
37264         Add dispose_fn argument.
37265         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
37266         Call dispose_fn on the dropped values.
37267         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
37268         Add dispose_fn argument.
37269         (gl_sublist_create): Initialize the 'dispose_fn' field.
37270         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
37271         * tests/test-array_list.c (main): Update.
37272         * tests/test-carray_list.c (main): Update.
37273         * tests/test-avltree_list.c (main): Update.
37274         * tests/test-rbtree_list.c (main): Update.
37275         * tests/test-avltreehash_list.c (main): Update.
37276         * tests/test-rbtreehash_list.c (main): Update.
37277         * tests/test-linked_list.c (main): Update.
37278         * tests/test-linkedhash_list.c (main): Update.
37279         * tests/test-array_oset.c (main): Update.
37280
37281 2007-03-15  Bruno Haible  <bruno@clisp.org>
37282
37283         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
37284         (gl_oset_create_empty): Add dispose_fn argument.
37285         (struct gl_oset_implementation): Add dispose_fn argument to
37286         'create_empty' method.
37287         (struct gl_oset_impl_base): Add dispose_fn field.
37288         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
37289         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
37290         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
37291         values.
37292         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
37293         (gl_tree_oset_free): Call dispose_fn on the dropped values.
37294         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
37295         dropped value.
37296         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
37297         dropped value.
37298         * tests/test-array_oset.c (main): Update.
37299         * tests/test-avltree_oset.c (main): Update.
37300         * tests/test-rbtree_oset.c (main): Update.
37301         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
37302
37303 2007-03-13  Bruno Haible  <bruno@clisp.org>
37304
37305         * tests/test-stdbool.c (i): Update after last patch.
37306
37307 2007-03-12  Bruno Haible  <bruno@clisp.org>
37308
37309         * lib/quotearg.c: Include <wctype.h> early, before the definition of
37310         the iswprint macro. Needed on Solaris 2.5.1.
37311
37312 2007-03-12  Bruno Haible  <bruno@clisp.org>
37313
37314         * tests/test-printf-frexp.c (main): Declare x as volatile.
37315
37316 2007-03-12  Simon Josefsson  <simon@josefsson.org>
37317
37318         * doc/gnulib.texi (Build robot for gnulib): New section.
37319
37320 2007-03-12  Jim Meyering  <jim@meyering.net>
37321
37322         * build-aux/bootstrap: New file.
37323         * build-aux/bootstrap.conf: New file, from coreutils.
37324
37325 2007-03-11  Bruno Haible  <bruno@clisp.org>
37326
37327         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
37328
37329 2007-03-12  Simon Josefsson  <simon@josefsson.org>
37330
37331         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
37332         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
37333         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
37334
37335 2007-03-11  Bruno Haible  <bruno@clisp.org>
37336
37337         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
37338         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
37339
37340 2007-03-11  Bruno Haible  <bruno@clisp.org>
37341
37342         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
37343         formula. Needed for SunPRO C 5.0.
37344
37345 2007-03-11  Bruno Haible  <bruno@clisp.org>
37346
37347         * modules/long-options (Depends-on): Add getopt.
37348
37349 2007-03-11  Bruno Haible  <bruno@clisp.org>
37350
37351         * modules/modechange (Depends-on): Add stdbool.
37352
37353 2007-03-11  Bruno Haible  <bruno@clisp.org>
37354
37355         * modules/i-ring (Depends-on): Add stdbool.
37356
37357 2007-03-11  Bruno Haible  <bruno@clisp.org>
37358
37359         * modules/gc-des (Depends-on): Add stdbool.
37360
37361 2007-03-11  Bruno Haible  <bruno@clisp.org>
37362
37363         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
37364
37365 2007-03-11  Bruno Haible  <bruno@clisp.org>
37366
37367         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
37368
37369 2007-03-11  Bruno Haible  <bruno@clisp.org>
37370
37371         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
37372
37373 2007-03-11  Bruno Haible  <bruno@clisp.org>
37374
37375         * lib/vasnprintf.c (sprintf): Undefine.
37376
37377 2007-03-11  Bruno Haible  <bruno@clisp.org>
37378
37379         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
37380         initializers in SunPRO C and Compaq C compilers.
37381
37382 2007-03-11  Bruno Haible  <bruno@clisp.org>
37383
37384         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
37385         decrementing code ANSI C compliant.
37386
37387 2007-03-11  Bruno Haible  <bruno@clisp.org>
37388
37389         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
37390         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
37391
37392 2007-03-11  Bruno Haible  <bruno@clisp.org>
37393
37394         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
37395         <stdbool.h> substitute doesn't pass.
37396
37397 2007-03-11  Bruno Haible  <bruno@clisp.org>
37398
37399         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
37400
37401 2007-03-11  Bruno Haible  <bruno@clisp.org>
37402
37403         * gnulib-tool (func_create_megatestdir): Create also an autobuild
37404         script, for submission to autobuild.josefsson.org.
37405
37406 2007-03-10  Bruno Haible  <bruno@clisp.org>
37407
37408         * modules/canonicalize-lgpl-tests: New file.
37409         * tests/test-canonicalize-lgpl.sh: New file.
37410         * tests/test-canonicalize-lgpl.c: New file.
37411
37412         * modules/c-strcase-tests: New file.
37413         * tests/test-c-strcase.sh: New file.
37414         * tests/test-c-strcasecmp.c: New file.
37415         * tests/test-c-strncasecmp.c: New file.
37416
37417         * modules/atexit-tests: New file.
37418         * tests/test-atexit.sh: New file.
37419         * tests/test-atexit.c: New file.
37420
37421 2007-03-10  Bruno Haible  <bruno@clisp.org>
37422
37423         * tests/test-binary-io.sh: Use temporary filenames that are not so
37424         likely to clash with those of other tests (in a parallel make).
37425         * tests/test-binary-io.c: Likewise.
37426
37427 2007-03-10  Bruno Haible  <bruno@clisp.org>
37428
37429         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
37430         fallback; use #error instead.
37431         Suggested by Simon Josefsson.
37432
37433 2007-03-10  Bruno Haible  <bruno@clisp.org>
37434
37435         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
37436         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
37437         first and the last.
37438
37439 2007-03-10  Bruno Haible  <bruno@clisp.org>
37440
37441         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
37442
37443 2007-03-10  Bruno Haible  <bruno@clisp.org>
37444
37445         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
37446         "make distcheck".
37447         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
37448         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
37449         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
37450
37451 2007-03-10  Bruno Haible  <bruno@clisp.org>
37452
37453         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
37454         variable.
37455         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
37456         variable.
37457
37458 2007-03-09  Eric Blake  <ebb9@byu.net>
37459         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
37460
37461         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
37462         types are not being provided by gnulib.
37463         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
37464         types are supported.
37465
37466 2007-03-10  Bruno Haible  <bruno@clisp.org>
37467
37468         * lib/stdio_.h (__attribute__): New macro.
37469         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
37470         vsprintf): Specify __attribute__ __format__ for GCC.
37471         Suggested by Eric Blake.
37472
37473 2007-03-09  Bruno Haible  <bruno@clisp.org>
37474
37475         * modules/printf-posix-tests: New file.
37476         * tests/test-printf-posix.sh: New file.
37477         * tests/test-printf-posix.c: New file.
37478
37479         * modules/printf-posix: New file.
37480         * lib/printf.c: New file.
37481         * m4/printf-posix-rpl.m4: New file.
37482         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
37483         REPLACE_PRINTF.
37484         * lib/stdio_.h (printf): New declaration.
37485         (format, __format__, ____printf____, ____scanf____, ____strftime____,
37486         ____strfmon____): New macros.
37487         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
37488         REPLACE_PRINTF.
37489
37490 2007-03-09  Bruno Haible  <bruno@clisp.org>
37491
37492         * tests/test-vasnprintf-posix2.sh: New file.
37493         * tests/test-vasnprintf-posix2.c: New file.
37494         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
37495         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
37496         (Makefile.am): Activate test-vasnprintf-posix2.sh.
37497
37498         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
37499         a locale dependent decimal point, rather than always '.'.
37500
37501 2007-03-09  Eric Blake  <ebb9@byu.net>
37502
37503         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
37504         spite of platforms like Tandem/NSK that define it to -1.
37505
37506 2007-03-08  Bruno Haible  <bruno@clisp.org>
37507
37508         * modules/vprintf-posix-tests: New file.
37509         * tests/test-vprintf-posix.sh: New file.
37510         * tests/test-vprintf-posix.c: New file.
37511         * tests/test-printf-posix.h: New file.
37512
37513         * modules/vprintf-posix: New file.
37514         * lib/vprintf.c: New file.
37515         * m4/vprintf-posix.m4: New file.
37516         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
37517         REPLACE_VPRINTF.
37518         * lib/stdio_.h (vprintf): New declaration.
37519         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
37520         REPLACE_VPRINTF.
37521
37522 2007-03-08  Bruno Haible  <bruno@clisp.org>
37523
37524         * modules/fprintf-posix-tests: New file.
37525         * tests/test-fprintf-posix.sh: New file.
37526         * tests/test-fprintf-posix.c: New file.
37527
37528         * modules/fprintf-posix: New file.
37529         * lib/fprintf.c: New file.
37530         * m4/fprintf-posix.m4: New file.
37531         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
37532         REPLACE_FPRINTF.
37533         * lib/stdio_.h (fprintf): New declaration.
37534         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
37535         REPLACE_FPRINTF.
37536
37537 2007-03-08  Bruno Haible  <bruno@clisp.org>
37538
37539         * modules/vfprintf-posix-tests: New file.
37540         * tests/test-vfprintf-posix.sh: New file.
37541         * tests/test-vfprintf-posix.c: New file.
37542         * tests/test-fprintf-posix.h: New file.
37543         * tests/test-fprintf-posix.out: New file.
37544
37545         * modules/vfprintf-posix: New file.
37546         * lib/vfprintf.c: New file.
37547         * m4/vfprintf-posix.m4: New file.
37548         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
37549         REPLACE_VFPRINTF.
37550         * lib/stdio_.h (vfprintf): New declaration.
37551         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
37552         REPLACE_VFPRINTF.
37553
37554 2007-03-08  Bruno Haible  <bruno@clisp.org>
37555
37556         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
37557
37558 2007-03-08  Bruno Haible  <bruno@clisp.org>
37559
37560         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
37561         instead of 'expr' invocations.
37562         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37563         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37564         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37565         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37566         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37567         Suggested by Paul Eggert.
37568
37569 2007-03-08  Bruno Haible  <bruno@clisp.org>
37570
37571         * modules/fseterr-tests: New file.
37572         * tests/test-fseterr.c: New file.
37573
37574         * modules/fseterr: New file.
37575         * lib/fseterr.h: New file.
37576         * lib/fseterr.c: New file.
37577
37578 2007-03-08  Bruno Haible  <bruno@clisp.org>
37579
37580         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
37581         * lib/getopt_.h: Likewise.
37582         * lib/mbswidth.h: Likewise.
37583         * lib/setenv.h: Likewise.
37584         * lib/vasnprintf.h: Likewise.
37585         * lib/vasprintf.h: Likewise.
37586         * lib/verror.h: Likewise.
37587         * lib/xsetenv.h: Likewise.
37588         * lib/xvasprintf.h: Likewise.
37589
37590 2007-03-08  Jim Meyering  <jim@meyering.net>
37591
37592         * users.txt: Add parted.
37593
37594         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
37595
37596 2007-03-07  Bruno Haible  <bruno@clisp.org>
37597
37598         * m4/printf.m4: Make the shell script snippets copy&pastable.
37599
37600 2007-03-02  Bruno Haible  <bruno@clisp.org>
37601
37602         * lib/netinet_in_.h: New file.
37603         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
37604         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
37605         * modules/netinet_in (Files): Add lib/netinet_in_.h.
37606         (Depends-on): Add absolute-header.
37607         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
37608         into netinet/in.h.
37609
37610 2007-03-03  Bruno Haible  <bruno@clisp.org>
37611
37612         * lib/sys_select_.h: New file.
37613         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
37614         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
37615         * modules/sys_select (Files): Add lib/sys_select_.h.
37616         (Depends-on): Add absolute-header.
37617         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
37618         into sys/select.h.
37619
37620 2007-03-02  Bruno Haible  <bruno@clisp.org>
37621
37622         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
37623         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
37624         values.
37625         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
37626         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
37627         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
37628         * modules/sys_socket (Depends-on): Add absolute-header.
37629         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
37630         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
37631         (Include): Remove requirement of inclusion of <sys/types.h>.
37632
37633 2007-03-02  Bruno Haible  <bruno@clisp.org>
37634
37635         * lib/byteswap_.h (bswap_32): Fix formula.
37636
37637 2007-03-06  Bruno Haible  <bruno@clisp.org>
37638
37639         * modules/sprintf-posix-tests: New file.
37640         * tests/test-sprintf-posix.c: New file.
37641
37642         * modules/sprintf-posix: New file.
37643         * lib/sprintf.c: New file.
37644         * m4/sprintf-posix.m4: New file.
37645         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
37646         REPLACE_SPRINTF.
37647         * lib/stdio_.h (sprintf): New declaration.
37648         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
37649         REPLACE_SPRINTF.
37650
37651 2007-03-06  Bruno Haible  <bruno@clisp.org>
37652
37653         * modules/vsprintf-posix-tests: New file.
37654         * tests/test-vsprintf-posix.c: New file.
37655         * tests/test-sprintf-posix.h: New file.
37656
37657         * modules/vsprintf-posix: New file.
37658         * lib/vsprintf.c: New file.
37659         * m4/vsprintf-posix.m4: New file.
37660         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
37661         REPLACE_VSPRINTF.
37662         * lib/stdio_.h (vsprintf): New declaration.
37663         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
37664         REPLACE_VSPRINTF.
37665
37666 2007-03-06  Bruno Haible  <bruno@clisp.org>
37667
37668         * modules/vsnprintf (Depend-on): Remove minmax.
37669
37670 2007-03-06  Bruno Haible  <bruno@clisp.org>
37671
37672         * modules/snprintf-posix-tests: New file.
37673         * tests/test-snprintf-posix.c: New file.
37674
37675         * modules/snprintf-posix: New file.
37676         * m4/snprintf-posix.m4: New file.
37677         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
37678         gl_FUNC_SNPRINTF.
37679         (gl_FUNC_SNPRINTF): Invoke it.
37680         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
37681         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
37682         is set.
37683         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
37684
37685 2007-03-06  Bruno Haible  <bruno@clisp.org>
37686
37687         * modules/vsnprintf-posix-tests: New file.
37688         * tests/test-vsnprintf-posix.c: New file.
37689         * tests/test-snprintf-posix.h: New file.
37690
37691         * modules/vsnprintf-posix: New file.
37692         * m4/vsnprintf-posix.m4: New file.
37693         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
37694         gl_FUNC_VSNPRINTF.
37695         (gl_FUNC_VSNPRINTF): Invoke it.
37696         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
37697         * lib/stdio_.h (vsnprintf): Define as a replacement if
37698         REPLACE_VSNPRINTF is set.
37699         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
37700
37701 2007-03-06  Bruno Haible  <bruno@clisp.org>
37702
37703         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
37704         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
37705
37706 2007-03-06  Bruno Haible  <bruno@clisp.org>
37707
37708         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
37709         (asinl): Declare also if HAVE_DECL_ASINL is set.
37710         (atanl): Declare also if HAVE_DECL_ATANL is set.
37711         (ceill): Declare also if HAVE_DECL_CEILL is set.
37712         (cosl): Declare also if HAVE_DECL_COSL is set.
37713         (expl): Declare also if HAVE_DECL_EXPL is set.
37714         (floorl): Declare also if HAVE_DECL_FLOORL is set.
37715         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
37716         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
37717         (logl): Declare also if HAVE_DECL_LOGL is set.
37718         (sinl): Declare also if HAVE_DECL_SINL is set.
37719         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
37720         (tanl): Declare also if HAVE_DECL_TANL is set.
37721         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
37722         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
37723         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
37724         declaration of frexpl, ldexpl.
37725         * modules/printf-frexpl (Depends-on): Add math.
37726         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
37727
37728 2007-03-05  Bruno Haible  <bruno@clisp.org>
37729
37730         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
37731         frexpl and ldexpl are declared.
37732         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
37733
37734 2007-03-05  Bruno Haible  <bruno@clisp.org>
37735
37736         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
37737         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
37738
37739 2007-03-05  Bruno Haible  <bruno@clisp.org>
37740
37741         * lib/stdio_.h: Include <stddef.h>.
37742
37743 2007-03-05  Bruno Haible  <bruno@clisp.org>
37744
37745         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
37746
37747 2007-03-05  Bruno Haible  <bruno@clisp.org>
37748
37749         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
37750         NetBSD 4, from Ralf Wildenhues.
37751
37752 2007-03-04  Bruno Haible  <bruno@clisp.org>
37753
37754         * lib/vasprintf.h: Update #if logic for the case when the functions
37755         exist but are overridden.
37756
37757 2007-03-04  Bruno Haible  <bruno@clisp.org>
37758
37759         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
37760         implementations: glibc-2.4 and MacOS X 10.3.
37761         * tests/test-vasnprintf-posix.c (test_function): Test also the case
37762         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
37763         * tests/test-vasprintf-posix.c (test_function): Likewise.
37764
37765 2007-03-04  Bruno Haible  <bruno@clisp.org>
37766
37767         * modules/vasprintf-posix-tests: New file.
37768         * tests/test-vasprintf-posix.c: New file.
37769
37770         * modules/vasprintf-posix: New file.
37771         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
37772         defined.
37773         * m4/vasprintf-posix.m4: New file.
37774         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
37775         gl_FUNC_VASPRINTF.
37776         (gl_FUNC_VASPRINTF): Invoke it.
37777         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
37778         here.
37779         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
37780
37781 2007-03-04  Bruno Haible  <bruno@clisp.org>
37782
37783         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
37784         REPLACE_GETTIMEOFDAY.
37785         * modules/sys_time (Makefile.am): Likewise.
37786         * m4/sys_time_h.m4: Likewise.
37787         * m4/gettimeofday.m4: Likewise.
37788
37789 2007-03-04  Bruno Haible  <bruno@clisp.org>
37790
37791         * modules/vasnprintf-posix-tests: New file.
37792         * tests/test-vasnprintf-posix.c: New file.
37793
37794         * modules/vasnprintf-posix: New file.
37795         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
37796         printf-frexpl.h.
37797         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
37798         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
37799         REPLACE_VASNPRINTF is defined.
37800         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
37801         gl_FUNC_VASNPRINTF.
37802         (gl_FUNC_VASNPRINTF): Invoke it.
37803         * m4/vasnprintf-posix.m4: New file.
37804         * m4/printf.m4: New file.
37805
37806 2007-03-04  Bruno Haible  <bruno@clisp.org>
37807
37808         Compile progreloc.c only if --enable-relocatable is specified.
37809         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
37810         if --enable-relocatable was specified.
37811         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
37812         lib_SOURCES.
37813
37814 2007-03-04  Jim Meyering  <jim@meyering.net>
37815
37816         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
37817         Use it consistently, rather than enumerating errno constants.
37818
37819 2007-03-04  Bruno Haible  <bruno@clisp.org>
37820
37821         * modules/xvasprintf-tests: New file.
37822         * tests/test-xvasprintf.c: New file.
37823
37824         * modules/vasprintf-tests: New file.
37825         * tests/test-vasprintf.c: New file.
37826
37827         * modules/vasnprintf-tests: New file.
37828         * tests/test-vasnprintf.c: New file.
37829
37830         * modules/vsnprintf-tests: New file.
37831         * tests/test-vsnprintf.c: New file.
37832
37833         * modules/snprintf-tests: New file.
37834         * tests/test-snprintf.c: New file.
37835
37836 2007-03-04  Bruno Haible  <bruno@clisp.org>
37837
37838         Compile relocatable.c only if --enable-relocatable is specified.
37839         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
37840         gl_RELOCATABLE_LIBRARY.
37841         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
37842         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
37843         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
37844         gl_RELOCATABLE_LIBRARY.
37845         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
37846         (Makefile.am): Remove lib_SOURCES.
37847         * modules/relocatable-lib-lgpl (configure.ac): Invoke
37848         gl_RELOCATABLE_LIBRARY.
37849         (Makefile.am): Remove lib_SOURCES.
37850         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
37851         always.
37852         * modules/relocatable-prog-wrapper (configure.ac): Invoke
37853         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
37854
37855 2007-03-04  Bruno Haible  <bruno@clisp.org>
37856
37857         * modules/argmatch-tests: New file.
37858         * tests/test-argmatch.c: New file.
37859
37860         * tests/test-allocsa.c (main): Halve the number of loop runs.
37861
37862         * modules/alloca-opt-tests: New file.
37863         * tests/test-alloca-opt.c: New file.
37864
37865 2007-03-04  Jim Meyering  <jim@meyering.net>
37866
37867         Work around difference between Linux ACLs and Solaris 10 ZFS.
37868         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
37869         for EINVAL.
37870
37871 2007-03-03  Bruno Haible  <bruno@clisp.org>
37872
37873         * modules/relocatable-prog (Depends-on): Add back progreloc's
37874         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
37875
37876 2007-03-03  Bruno Haible  <bruno@clisp.org>
37877
37878         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
37879         * modules/relocatable-lib: New file.
37880
37881 2007-03-03  Bruno Haible  <bruno@clisp.org>
37882
37883         * modules/relocatable-prog: Renamed from modules/relocatable.
37884         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
37885
37886 2007-03-03  Bruno Haible  <bruno@clisp.org>
37887
37888         * modules/relocatable-script (Files): Add doc/relocatable.texi,
37889         m4/relocatable-lib.m4.
37890         (Depends-on): Remove 'relocatable'.
37891         (configure.ac): Add gl_RELOCATABLE_NOP.
37892
37893 2007-03-03  Bruno Haible  <bruno@clisp.org>
37894
37895         * modules/relocatable-prog-wrapper: New file.
37896         * modules/relocatable (Depends-on): Add it. Remove all other
37897         dependencies except progname.
37898         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
37899
37900         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
37901         (gl_FUNC_STRERROR): Nop.
37902         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
37903
37904         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
37905         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
37906
37907         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
37908         (gl_FUNC_READLINK): Update.
37909
37910         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
37911
37912 2007-03-03  Bruno Haible  <bruno@clisp.org>
37913
37914         * lib/xreadlink.c: Include <unistd.h> unconditionally.
37915         * modules/xreadlink (Depends-on): Add unistd.
37916         * modules/xreadlink-with-size (Depends-on): Likewise.
37917
37918 2007-03-03  Bruno Haible  <bruno@clisp.org>
37919
37920         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
37921         extracted from gt_FUNC_SETENV.
37922         (gt_FUNC_SETENV): Remove macro.
37923         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
37924         remove gt_FUNC_SETENV.
37925
37926 2007-03-03  Bruno Haible  <bruno@clisp.org>
37927
37928         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
37929         ENABLE_RELOCATABLE here.
37930         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
37931
37932 2007-03-03  Bruno Haible  <bruno@clisp.org>
37933
37934         * modules/rbtreehash-list-tests (Depends-on): Add progname.
37935         * tests/test-rbtreehash_list.c: Include progname.h.
37936         (main): Call set_program_name.
37937
37938         * modules/rbtree-oset-tests (Depends-on): Add progname.
37939         * tests/test-rbtree_oset.c: Include progname.h.
37940         (main): Call set_program_name.
37941
37942         * modules/rbtree-list-tests (Depends-on): Add progname.
37943         * tests/test-rbtree_list.c: Include progname.h.
37944         (main): Call set_program_name.
37945
37946         * modules/linked-list-tests (Depends-on): Add progname.
37947         * tests/test-linked_list.c: Include progname.h.
37948         (main): Call set_program_name.
37949
37950 2007-03-03  Bruno Haible  <bruno@clisp.org>
37951
37952         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
37953         All uses of __restrict changed to _Restrict_.
37954         * lib/glob_.h (__restrict): Remove macro.
37955
37956 2007-03-02  Bruno Haible  <bruno@clisp.org>
37957
37958         * modules/gettext (configure.ac): Require gettext infrastructure
37959         from version 0.16.1.
37960
37961 2007-03-02  Bruno Haible  <bruno@clisp.org>
37962
37963         * modules/linkedhash-list-tests (Depends-on): Add progname.
37964         * tests/test-linkedhash_list.c: Include progname.h.
37965         (main): Call set_program_name.
37966
37967         * modules/carray-list-tests (Depends-on): Add progname.
37968         * tests/test-carray_list.c: Include progname.h.
37969         (main): Call set_program_name.
37970
37971         * modules/avltreehash-list-tests (Depends-on): Add progname.
37972         * tests/test-avltreehash_list.c: Include progname.h.
37973         (main): Call set_program_name.
37974
37975         * modules/avltree-oset-tests (Depends-on): Add progname.
37976         * tests/test-avltree_oset.c: Include progname.h.
37977         (main): Call set_program_name.
37978
37979         * modules/avltree-list-tests (Depends-on): Add progname.
37980         * tests/test-avltree_list.c: Include progname.h.
37981         (main): Call set_program_name.
37982
37983         * modules/array-oset-tests (Depends-on): Add progname.
37984         * tests/test-array_oset.c: Include progname.h.
37985         (main): Call set_program_name.
37986
37987         * modules/array-list-tests (Depends-on): Add progname.
37988         * tests/test-array_list.c: Include progname.h.
37989         (main): Call set_program_name.
37990
37991         * modules/argp-tests (Depends-on): Add progname.
37992         * tests/test-argp.c: Include argp.h first. Include progname.h.
37993         (main): Call set_program_name.
37994
37995 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
37996
37997         * doc/gnulib-tool.texi (Initial import): Reword description of
37998         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
37999         limited effect even if defined after the first system include.
38000
38001 2007-03-01  Bruno Haible  <bruno@clisp.org>
38002
38003         * build-aux/config.libpath: Update to libtool-1.5.22.
38004         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38005
38006 2007-03-01  Bruno Haible  <bruno@clisp.org>
38007
38008         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
38009         foo_CFLAGS.
38010         Reported by Ralf Wildenhues.
38011
38012 2007-03-01  Bruno Haible  <bruno@clisp.org>
38013
38014         * build-aux/install-reloc: Remove object files left over by some
38015         compilers.
38016         Reported by Ralf Wildenhues.
38017
38018 2007-03-01  Bruno Haible  <bruno@clisp.org>
38019
38020         * build-aux/install-reloc: Break long lines.
38021
38022 2007-03-01  Bruno Haible  <bruno@clisp.org>
38023
38024         * doc/relocatable.texi: Document that it may not work on OpenBSD.
38025         Reported by Ralf Wildenhues.
38026
38027 2007-03-01  Bruno Haible  <bruno@clisp.org>
38028
38029         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
38030         include ordering constraints.
38031
38032 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
38033
38034         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
38035         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
38036         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
38037         as another example.
38038         * lib/time_.h: Fix misspelling.
38039         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
38040         Require gl_HEADER_TIME_H_DEFAULTS.
38041         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
38042         * m4/time_r.m4 (gl_TIME_R): Likewise.
38043         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
38044
38045 2007-03-01  Bruno Haible  <bruno@clisp.org>
38046
38047         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
38048         * m4/utimens.m4 (gl_UTIMENS): Likewise.
38049
38050 2007-03-01  Jim Meyering  <jim@meyering.net>
38051
38052         * modules/xreadlink (Maintainer): Add my name.
38053         * modules/xreadlink-with-size (Depends-on): Alphabetize.
38054
38055 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
38056             Bruno Haible  <bruno@clisp.org>
38057
38058         * build-aux/install-reloc: Compile also c-ctype.c.
38059         * build-aux/relocatable.sh.in: New file.
38060         * doc/relocatable.texi: New file.
38061         * doc/relocatable-maint.texi: New file.
38062         * doc/gnulib.texi: Include relocatable-maint.texi.
38063         * lib/progreloc.c: Include unistd.h unconditionally.
38064         * lib/relocwrapper.c: Include unistd.h unconditionally.
38065         Include c-ctype.h.
38066         (add_dotbin): Use c_tolower.
38067         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
38068         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
38069         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
38070         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
38071         to m4/relocatable-lib.m4.
38072         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
38073         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
38074         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
38075         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
38076         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
38077         * modules/relocatable: New file.
38078         * modules/relocatable-lib: New file.
38079         * modules/relocatable-script: New file.
38080
38081 2007-02-28  Bruno Haible  <bruno@clisp.org>
38082
38083         Import --enable-relocatable infrastructure.
38084         * build-aux/config.libpath: New file, from GNU gettext.
38085         * build-aux/install-reloc: New file, from GNU gettext.
38086         * build-aux/reloc-ldflags: New file, from GNU gettext.
38087         * lib/relocatable.h: New file, from GNU gettext.
38088         * lib/relocatable.c: New file, from GNU gettext.
38089         * lib/relocwrapper.c: New file, from GNU gettext.
38090         * m4/relocatable.m4: New file, from GNU gettext.
38091
38092 2007-02-28  Bruno Haible  <bruno@clisp.org>
38093
38094         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
38095
38096         * modules/xreadlink: New file, from GNU gettext with modifications.
38097         * lib/xreadlink.c: New file, from GNU gettext.
38098         * lib/xreadlink.h: Add comments.
38099         (xreadlink): New declaration.
38100
38101         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
38102         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
38103         lib/xreadlink-with-size.c.
38104         (configure.ac): Remove gl_XREADLINK invocation.
38105         (Makefile.am): Augment lib_SOURCES.
38106         * m4/xreadlink.m4: Remove file.
38107         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
38108         (xreadlink_with_size): Renamed from xreadink.
38109         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
38110         * modules/canonicalize (Depends-on): Replace xreadlink with
38111         xreadlink-with-size.
38112         * lib/canonicalize.c (canonicalize_filename_mode): Update.
38113
38114 2007-02-25  Jim Meyering  <jim@meyering.net>
38115
38116         * build-aux/announce-gen: When complaining about excess arguments,
38117         list them.
38118
38119 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
38120
38121         * README: Document signed integer overflow situation more
38122         accurately.
38123
38124 2007-02-25  Bruno Haible  <bruno@clisp.org>
38125
38126         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
38127         'a' or 'A' conversion.
38128
38129 2007-02-25  Bruno Haible  <bruno@clisp.org>
38130
38131         * modules/filename: Renamed from modules/pathname.
38132         (Files): Replace lib/pathname.h with lib/filename.h. Replace
38133         lib/concatpath.c with lib/concat-filename.c.
38134         (Makefile.am): Update.
38135         (Include): Replace pathname.h with filename.h.
38136         * lib/filename.h: Renamed from lib/pathname.h.
38137         (concatenated_filename): Renamed from concatenated_pathname.
38138         * lib/concat-filename.c: Renamed from lib/concatpath.c.
38139         (concatenated_filename): Renamed from concatenated_pathname.
38140         * lib/findprog.c: Include filename.h instead of pathname.h.
38141         (find_in_path): Update.
38142         * lib/javacomp.c: Include filename.h instead of pathname.h.
38143         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
38144         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
38145         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
38146         is_oldgcj_14_13_usable, is_javac_usable): Update.
38147         * lib/javaexec.c: Include filename.h instead of pathname.h.
38148         (execute_java_class): Update.
38149         * modules/findprog: Update.
38150         * modules/javacomp: Update.
38151         * modules/javaexec: Update.
38152         * MODULES.html.sh (File system functions): Add 'filename', remove
38153         'pathname'.
38154
38155 2007-02-25  Bruno Haible  <bruno@clisp.org>
38156
38157         * modules/printf-frexpl-tests: New file.
38158         * tests/test-printf-frexpl.c: New file.
38159
38160         * modules/printf-frexpl: New file.
38161         * lib/printf-frexpl.h: New file.
38162         * lib/printf-frexpl.c: New file.
38163         * m4/printf-frexpl.m4: New file.
38164
38165 2007-02-25  Bruno Haible  <bruno@clisp.org>
38166
38167         * modules/printf-frexp-tests: New file.
38168         * tests/test-printf-frexp.c: New file.
38169
38170         * modules/printf-frexp: New file.
38171         * lib/printf-frexp.h: New file.
38172         * lib/printf-frexp.c: New file.
38173         * m4/printf-frexp.m4: New file.
38174
38175 2007-02-25  Bruno Haible  <bruno@clisp.org>
38176
38177         Assume automake >= 1.10 for the tests.
38178         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
38179         * modules/arctwo-tests: Likewise.
38180         * modules/argp-tests: Likewise.
38181         * modules/avltree-list-tests: Likewise.
38182         * modules/avltree-oset-tests: Likewise.
38183         * modules/avltreehash-list-tests: Likewise.
38184         * modules/carray-list-tests: Likewise.
38185         * modules/crc-tests: Likewise.
38186         * modules/des-tests: Likewise.
38187         * modules/gc-arcfour-tests: Likewise.
38188         * modules/gc-arctwo-tests: Likewise.
38189         * modules/gc-des-tests: Likewise.
38190         * modules/gc-hmac-md5-tests: Likewise.
38191         * modules/gc-hmac-sha1-tests: Likewise.
38192         * modules/gc-md2-tests: Likewise.
38193         * modules/gc-md4-tests: Likewise.
38194         * modules/gc-md5-tests: Likewise.
38195         * modules/gc-pbkdf2-sha1-tests: Likewise.
38196         * modules/gc-rijndael-tests: Likewise.
38197         * modules/gc-sha1-tests: Likewise.
38198         * modules/gc-tests: Likewise.
38199         * modules/getaddrinfo-tests: Likewise.
38200         * modules/hmac-md5-tests: Likewise.
38201         * modules/hmac-sha1-tests: Likewise.
38202         * modules/linked-list-tests: Likewise.
38203         * modules/linkedhash-list-tests: Likewise.
38204         * modules/lock-tests: Likewise.
38205         * modules/md2-tests: Likewise.
38206         * modules/md4-tests: Likewise.
38207         * modules/md5-tests: Likewise.
38208         * modules/rbtree-list-tests: Likewise.
38209         * modules/rbtree-oset-tests: Likewise.
38210         * modules/rbtreehash-list-tests: Likewise.
38211         * modules/read-file-tests: Likewise.
38212         * modules/rijndael-tests: Likewise.
38213         * modules/stdint-tests: Likewise.
38214         * modules/tls-tests: Likewise.
38215
38216 2007-02-24  Bruno Haible  <bruno@clisp.org>
38217
38218         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
38219         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
38220         function; instead check whether isnan with a double argument links.
38221         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
38222         function; instead check whether isnan with a 'long double' argument
38223         links.
38224         Reported by Eric Blake <ebb9@byu.net>.
38225
38226 2007-02-24  Bruno Haible  <bruno@clisp.org>
38227
38228         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
38229         defined.
38230         * lib/isnanl.c: Remove all code. Just include isnan.c.
38231         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
38232
38233 2007-02-25  Jim Meyering  <jim@meyering.net>
38234
38235         Avoid conflicting types for 'unsetenv' on FreeBSD.
38236         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
38237         conflicting with FreeBSD's (5.0 and 6.1) function declaration
38238         in stdlib.h.
38239
38240 2007-02-24  Bruno Haible  <bruno@clisp.org>
38241
38242         * modules/isnanl-nolibm-tests: New file.
38243         * tests/test-isnanl.c: New file.
38244
38245         * modules/isnanl-nolibm: New file.
38246         * lib/isnanl.h: New file.
38247         * lib/isnanl.c: New file.
38248         * m4/isnanl.m4: New file.
38249
38250 2007-02-24  Bruno Haible  <bruno@clisp.org>
38251
38252         * modules/isnan-nolibm-tests: New file.
38253         * tests/test-isnan.c: New file.
38254
38255         * modules/isnan-nolibm: New file.
38256         * lib/isnan.h: New file.
38257         * lib/isnan.c: New file.
38258         * m4/isnan.m4: New file.
38259
38260 2007-02-24  Bruno Haible  <bruno@clisp.org>
38261
38262         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
38263         assume that an exponent fits in 20 bits.
38264
38265 2007-02-24  Jim Meyering  <jim@meyering.net>
38266
38267         * m4/regex.m4: Update the description of the configure-time option,
38268         --without-included-regex, to state accurately what the defaults are,
38269         and perhaps to give people an idea why using this option is risky.
38270
38271 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
38272
38273         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
38274         loops on small arguments.  This attempts to avoid the problem
38275         Bruno Haible reported for AIX 4.3.2 in
38276         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
38277
38278 2007-02-23  Bruno Haible  <bruno@clisp.org>
38279
38280         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
38281         Needed for help2man.
38282
38283 2007-02-23  Karl Berry  <karl@gnu.org>
38284
38285         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
38286         exists, foo.h should be cvs-ignored, not committed.
38287
38288 2007-02-23  Eric Blake  <ebb9@byu.net>
38289
38290         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
38291         * lib/stat-time.h (includes): Likewise.
38292         * lib/utimecmp.c (includes): Likewise.
38293         * lib/utimens.h (includes): Likewise.
38294         * lib/getdate.y (includes): Also include "timespec.h" for use
38295         internal to the module.
38296         * modules/utimens (Depends-on): Revert yesterday's patch.
38297         * modules/nanosleep (Depends-on): Add missing dependency.
38298
38299 2007-02-22  Bruno Haible  <bruno@clisp.org>
38300
38301         * lib/glob.c: Don't include getlogin_r.h.
38302
38303 2007-02-22  Jim Meyering  <jim@meyering.net>
38304
38305         * modules/utimens (Depends-on): Add timespec, required for
38306         utimens.h's inclusion of timespec.h.
38307
38308 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
38309
38310         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
38311         long unreadable paths in GNU/Linux.  Problem reported by Andreas
38312         Schwab in
38313         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
38314         I'll try to think of a better way to fix the Solaris problem.
38315
38316         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
38317         like glibc; on Solaris 10, it fails with errno == EINVAL.
38318         POSIX says the behavior is unspecified if the first argument is NULL,
38319         so play it safe and never pass NULL to the system getcwd.
38320
38321 2007-02-21  Jim Meyering  <jim@meyering.net>
38322
38323         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
38324         of gettimeofday.  It would conflict with the one now always
38325         provided via sys_time_.h.  Reported by Matthew Woehlke, as
38326         an IRIX 6.5 build failure.
38327
38328 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
38329
38330         Minor fixups to port to Solaris 10 with Sun C 5.8.
38331         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
38332         * modules/getcwd (Depends-on): Add dirfd.
38333         * lib/putenv.c (putenv): #undef it.
38334         (rpl_putenv): New decl.
38335         (malloc, free): Include <stdlib.h> rather than prototyping separately.
38336
38337 2007-02-20  Bruno Haible  <bruno@clisp.org>
38338
38339         * modules/stdio-tests: New file.
38340         * tests/test-stdio.c: New file.
38341
38342         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
38343         (Depends-on): Add stdio.
38344         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
38345         (Include): Use <stdio.h> instead of vsnprintf.h.
38346         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
38347         HAVE_DECL_VSNPRINTF.
38348         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
38349
38350         * modules/snprintf (Files): Remove lib/snprintf.h.
38351         (Depends-on): Add stdio.
38352         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
38353         (Include): Use <stdio.h> instead of snprintf.h.
38354         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
38355         HAVE_DECL_SNPRINTF.
38356         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
38357         * lib/getaddrinfo.c: Likewise.
38358
38359         * modules/stdio: New file.
38360         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
38361         * lib/snprintf.h: Remove file.
38362         * lib/vsnprintf.h: Remove file.
38363         * lib/.cppi-disable: Remove snprintf.h.
38364         * m4/stdio_h.m4: New file.
38365         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
38366
38367 2007-02-20  Jim Meyering  <jim@meyering.net>
38368
38369         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
38370         used by e.g., mingw.  From Bruno Haible.
38371
38372 2007-02-19  Bruno Haible  <bruno@clisp.org>
38373
38374         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
38375         warnings.
38376         Reported by Ben Pfaff <blp@cs.stanford.edu>.
38377
38378 2007-02-19  Bruno Haible  <bruno@clisp.org>
38379
38380         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
38381         from mingw users.
38382
38383 2007-02-19  Bruno Haible  <bruno@clisp.org>
38384
38385         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
38386         warnings.
38387         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
38388
38389 2007-02-19  Jim Meyering  <jim@meyering.net>
38390
38391         Don't use FD after a successful "fdopendir (fd)".
38392         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
38393         Reset it by calling dirfd on the just-obtained DIR*.
38394
38395         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
38396         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
38397
38398 2007-02-18  Bruno Haible  <bruno@clisp.org>
38399
38400         * lib/readlink.c: Include <unistd.h>.
38401         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
38402         HAVE_READLINK.
38403         * modules/readlink (Depends-on): Add unistd.
38404         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38405         (Include): Add <unistd.h>.
38406
38407         * lib/getlogin_r.h: Remove file.
38408         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
38409         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
38410         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
38411         HAVE_DECL_GETLOGIN_R.
38412         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
38413         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38414         (Include): Use <unistd.h> instead of getlogin_r.h.
38415
38416         * lib/getcwd.h: Remove file.
38417         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
38418         * lib/xgetcwd.c: Likewise.
38419         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
38420         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
38421         * modules/getcwd (Files): Remove lib/getcwd.h.
38422         (Depends-on): Add unistd.
38423         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38424         (Include): Use <unistd.h> instad of getcwd.h.
38425
38426         * lib/ftruncate.c: Include <unistd.h> first.
38427         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
38428         Set HAVE_FTRUNCATE.
38429         * modules/ftruncate (Depends-on): Add unistd.
38430         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38431
38432         * lib/fchdir.c: Include <unistd.h> first.
38433         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
38434         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
38435         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
38436         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38437         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
38438
38439         * lib/dup2.c: Include <unistd.h> first.
38440         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
38441         HAVE_DUP2.
38442         * modules/dup2 (Depends-on): Add unistd.
38443         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38444
38445         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
38446         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
38447         REPLACE_CHOWN. Don't define chown as a macro here.
38448         * modules/chown (Depends-on): Add unistd.
38449         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38450
38451         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
38452         Add definition for GL_LINK_WARNING.
38453         (chown, dup2): New declarations.
38454         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
38455         link warning.
38456         (ftruncate): New declaration.
38457         (getcwd): New declaration, taken from old getcwd.h.
38458         (getlogin_r): New declaration, taken from old getlogin_r.h.
38459         (readlink): New declaration.
38460         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
38461         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
38462         (gl_PREREQ_UNISTD): Remove macro.
38463         (gl_UNISTD_MODULE_INDICATOR): New macro.
38464         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
38465         many new variables. Don't set UNISTD_H.
38466         * modules/unistd (Description): Change.
38467         (Depends-on): Add link-warning.
38468         (configure.ac): Update.
38469         (Makefile.am): Create unistd.h always. Substitute many new variables
38470         into it.
38471
38472 2007-02-18  Bruno Haible  <bruno@clisp.org>
38473
38474         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
38475         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
38476         HAVE_GETSUBOPT.
38477         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
38478         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
38479         * lib/getsubopt.h: Remove file.
38480         * modules/getsubopt (Files): Remove lib/getsubopt.h.
38481         (Depends-on): Add stdlib.
38482         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38483         (Includes): Use <stdlib.h> instead of getsubopt.h.
38484         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
38485         Set HAVE_GETSUBOPT.
38486         * lib/getsubopt.c: Don't include getsubopt.h.
38487
38488 2007-02-18  Bruno Haible  <bruno@clisp.org>
38489
38490         * modules/fchdir (Depends-on): Add dup2.
38491
38492 2007-02-18  Bruno Haible  <bruno@clisp.org>
38493
38494         * lib/stdlib_.h: Handle glibc's special invocation convention
38495         specially.
38496
38497 2007-02-18  Bruno Haible  <bruno@clisp.org>
38498
38499         * modules/stdlib-tests: New file.
38500         * tests/test-stdlib.c: New file.
38501
38502         * modules/mkstemp (Files): Remove lib/mkstemp.h.
38503         (Depends-on): Add stdlib.
38504         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38505         (Includes): Use <stdlib.h> instead of mkstemp.h.
38506         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
38507         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
38508         * lib/mkstemp.c: Don't include mkstemp.h.
38509         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
38510         * lib/stdlib--.h: Don't include mkstemp.h.
38511
38512         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
38513         (Depends-on): Add stdlib.
38514         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38515         (Includes): Use <stdlib.h> instead of mkdtemp.h.
38516         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
38517         HAVE_MKDTEMP.
38518         * lib/mkdtemp.c: Don't include mkdtemp.h.
38519         * lib/clean-temp.c: Don't include mkdtemp.h.
38520
38521         * modules/exit (Files): Remove lib/exit.h.
38522         (Depends-on): Add stdlib.
38523         (Makefile.am): Remove lib_SOURCES.
38524         (Include): Use <stdlib.h> instead of exit.h.
38525         * lib/argmatch.c: Don't include exit.h.
38526         * lib/execute.c: Likewise.
38527         * lib/pagealign_alloc.c: Likewise.
38528         * lib/pipe.c: Likewise.
38529         * lib/wait-process.c: Likewise.
38530         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
38531         * lib/exitfail.c: Likewise.
38532         * lib/savewd.c: Likewise.
38533         * lib/xsetenv.c: Likewise.
38534
38535         * modules/stdlib: New file.
38536         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
38537         and extra comments about mkstemp().
38538         * lib/exit.h: Remove file.
38539         * lib/mkdtemp.h: Remove file.
38540         * lib/mkstemp.h: Remove file.
38541         * m4/stdlib_h.m4: New file.
38542         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
38543
38544 2007-02-18  Bruno Haible  <bruno@clisp.org>
38545
38546         * modules/math-tests: New file.
38547         * tests/test-math.c: New file.
38548
38549         * modules/math: New file.
38550         * modules/mathl (Files): Remove lib/mathl.h.
38551         (Depends-on): Add math.
38552         (Makefile.am): Don't mention mathl.h.
38553         (Include): Use <math.h> instead of mathl.h.
38554         * lib/math_.h: New file.
38555         * lib/mathl.h: Remove file.
38556         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
38557         mathl.h.
38558         * lib/asinl.c: Likewise.
38559         * lib/atanl.c: Likewise.
38560         * lib/ceill.c: Likewise.
38561         * lib/cosl.c: Likewise.
38562         * lib/expl.c: Likewise.
38563         * lib/floorl.c: Likewise.
38564         * lib/frexpl.c: Likewise.
38565         * lib/ldexpl.c: Likewise.
38566         * lib/logl.c: Likewise.
38567         * lib/sincosl.c: Likewise.
38568         * lib/sinl.c: Likewise.
38569         * lib/sqrtl.c: Likewise.
38570         * lib/tanl.c: Likewise.
38571         * lib/trigl.c: Likewise.
38572         * m4/math_h.m4: New file.
38573         * MODULES.html.sh (Mathematics): Add math.
38574
38575 2007-02-17  Bruno Haible  <bruno@clisp.org>
38576
38577         * modules/wctype-tests: New file.
38578         * tests/test-wctype.c: New file.
38579
38580         * modules/wchar-tests: New file.
38581         * tests/test-wchar.c: New file.
38582
38583         * modules/unistd-tests: New file.
38584         * tests/test-unistd.c: New file.
38585
38586         * modules/time-tests: New file.
38587         * tests/test-time.c: New file.
38588
38589         * modules/sysexits-tests: New file.
38590         * tests/test-sysexits.c: New file.
38591
38592         * modules/sys_time-tests: New file.
38593         * tests/test-sys_time.c: New file.
38594
38595         * modules/sys_stat-tests: New file.
38596         * tests/test-sys_stat.c: New file.
38597
38598         * modules/sys_socket-tests: New file.
38599         * tests/test-sys_socket.c: New file.
38600
38601         * modules/sys_select-tests: New file.
38602         * tests/test-sys_select.c: New file.
38603
38604         * modules/string-tests: New file.
38605         * tests/test-string.c: New file.
38606
38607         * modules/stdbool-tests: New file.
38608         * tests/test-stdbool.c: New file.
38609
38610         * modules/netinet_in-tests: New file.
38611         * tests/test-netinet_in.c: New file.
38612
38613         * modules/inttypes-tests: New file.
38614         * tests/test-inttypes.c: New file.
38615
38616         * modules/fcntl-tests: New file.
38617         * tests/test-fcntl.c: New file.
38618
38619         * modules/byteswap-tests: New file.
38620         * tests/test-byteswap.c: New file.
38621
38622         * modules/arpa_inet-tests: New file.
38623         * tests/test-arpa_inet.c: New file.
38624
38625 2007-02-17  Bruno Haible  <bruno@clisp.org>
38626
38627         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
38628         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
38629         if the corresponding module is not enabled. Emit link warnings if
38630         the function is used nevertheless.
38631         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
38632         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
38633         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
38634         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
38635         * modules/inttypes (Depends-on): Add link-warning.
38636         (Makefile.am): Copy the contents of build-aux/link-warning.h into
38637         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
38638         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
38639         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
38640         * modules/imaxdiv (configure.ac): Likewise.
38641         * modules/strtoimax (configure.ac): Likewise.
38642         * modules/strtoumax (configure.ac): Likewise.
38643
38644 2007-02-17  Bruno Haible  <bruno@clisp.org>
38645
38646         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
38647         gl_STRING_MODULE_INDICATOR_DEFAULTS.
38648         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
38649         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
38650
38651 2007-02-17  Bruno Haible  <bruno@clisp.org>
38652
38653         * modules/link-warning: New file.
38654         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
38655         * lib/string_.h (GL_LINK_WARNING): Remove definition.
38656         * modules/string (Depends-on): Add link-warning.
38657         (Makefile.am): Copy the contents of build-aux/link-warning.h into
38658         string.h.
38659         * MODULES.html.sh (Support for building libraries and executables): Add
38660         link-warning.
38661
38662 2007-02-17  Bruno Haible  <bruno@clisp.org>
38663
38664         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
38665         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
38666         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
38667         long lines.
38668
38669 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
38670             Bruno Haible  <bruno@clisp.org>
38671
38672         * modules/tmpfile: New file.
38673         * lib/tmpfile.c: New file.
38674         * m4/tmpfile.m4: New file.
38675         * MODULES.html.sh (func_all_modules): New section "Input/output".
38676
38677 2007-02-15  Bruno Haible  <bruno@clisp.org>
38678
38679         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
38680         (supports_delete_on_close): New function.
38681         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
38682
38683 2007-02-14  Bruno Haible  <bruno@clisp.org>
38684
38685         * modules/mbspcasecmp-tests: New file.
38686         * tests/test-mbspcasecmp.sh: New file.
38687         * tests/test-mbspcasecmp.c: New file.
38688
38689         New module mbspcasecmp.
38690         * modules/mbspcasecmp: New file.
38691         * lib/mbspcasecmp.c: New file.
38692         * lib/string_.h (strncasecmp): Change warning message.
38693         (mbspcasecmp): New declaration.
38694         * m4/mbspcasecmp.m4: New file.
38695         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38696         GNULIB_MBSPCASECMP.
38697         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
38698         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
38699
38700 2007-02-14  Bruno Haible  <bruno@clisp.org>
38701
38702         * modules/mbsncasecmp-tests: New file.
38703         * tests/test-mbsncasecmp.sh: New file.
38704         * tests/test-mbsncasecmp.c: New file.
38705
38706         New module mbsncasecmp.
38707         * modules/mbsncasecmp: New file.
38708         * lib/mbsncasecmp.c: New file.
38709         * lib/string_.h (mbsncasecmp): New declaration.
38710         * m4/mbsncasecmp.m4: New file.
38711         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38712         GNULIB_MBSNCASECMP.
38713         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
38714         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
38715
38716 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
38717
38718         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
38719         Verify that it doesn't overlap with our flags.
38720         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
38721         do not have the desired effect in multibyte locales; instead, use
38722         mbscasecmp.
38723         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
38724         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
38725         we don't require GNU fnmatch ourselves (if our users require it, they
38726         should do so explicitly).
38727
38728         Fix regex code so it doesn't rely on strcasecmp.
38729         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
38730         Otherwise, include gnulib's langinfo.h.
38731         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
38732         undesirable behavior in non-C locales.  Instead, rely on localecharset.
38733         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
38734         * modules/regex (FILES): Remove m4/codeset.m4.
38735         (Depends-on): Add localcharset.  Remove strcase.
38736
38737 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38738
38739         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
38740         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
38741
38742 2007-02-13  Bruno Haible  <bruno@clisp.org>
38743
38744         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
38745         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38746
38747 2007-02-12  Bruno Haible  <bruno@clisp.org>
38748
38749         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
38750         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
38751         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
38752         time warning rather than a link error.
38753
38754 2007-02-12  Bruno Haible  <bruno@clisp.org>
38755
38756         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
38757         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
38758         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38759
38760 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
38761
38762         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
38763         args, not 2.
38764
38765 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
38766
38767         New module 'time', so that apps can include <time.h> as per
38768         POSIX and GNU instead of separate include files like time_r.h
38769         and timegm.h.  This implementation tries out a simpler approach
38770         for replacing decls in standard include files (as compared to
38771         the string module), somewhat as an experiment.
38772
38773         * config/srclist.txt: Comment out mktime.c for now.
38774         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
38775         since it doesn't apply any more.  Use generic wording instead.
38776         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
38777         'time'.
38778         * lib/time_.h, m4/time_h.m4, modules/time: New files.
38779         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
38780         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
38781         Don't include <sys/types.h>; no longer needed since we assume C89.
38782         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
38783         * lib/strftime.c: Likewise.
38784         * lib/time_r.c: Likewise.
38785         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
38786         * lib/nanosleep.c: Include <time.h> first, to check interface.
38787         * lib/strptime.c: Likewise.
38788         * lib/time_r.c: Likewise.
38789         * lib/timegm.c: Likewise.
38790         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
38791         needed.
38792         * lib/timegm.c: Don't include timegm.h; no longer needed.
38793         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
38794         time.h now handles any problems in that area.
38795         (struct timespec, nanosleep): Remove; time.h now arranges for these.
38796         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
38797         that time.h defines struct timespec.
38798         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
38799         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
38800         handles that.
38801         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
38802         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
38803         needed.  Set REPLACE_LOCALTIME.
38804         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
38805         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
38806         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
38807         nanosleep; time_h.m4 now does that.  Don't require
38808         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
38809         module handles this now.
38810         * modules/getdate (Depends-on): Remove timespec.  Add time.
38811         * modules/nanosleep (Depends-on): Likewise.
38812         * modules/stat-time (Depends-on): Likewise.
38813         * modules/nanosleep (Include): Include time.h, not timespec.h.
38814         * modules/strptime (Files): Remove lib/strptime.h.
38815         (Depends-on): Add extensions, time.
38816         (Include): Include time.h, not strptime.h.
38817         * modules/time_r (Files): Remove lib/time_r.h.
38818         (Depends-on): Add time.
38819         (Include): Include time.h, not time_r.h.
38820         * modules/timegm: Likewise.
38821         * modules/timespec (Description): Now does timespec-related decls
38822         of our own, instead of struct timespec itself.
38823         (Depends-on): Add time; remove extensions.
38824         (Maintainer): Add self.
38825         * modules/utimecmp (Depends-on): Add time; remove timespec.
38826         * modules/utimens (Depends-on): Likewise.
38827         * modules/xnanosleep (Depends-on): Likewise.
38828
38829 2007-02-11  Bruno Haible  <bruno@clisp.org>
38830
38831         * lib/c-strstr.c: Include allocsa.h.
38832         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38833         * lib/c-strcasestr.c: Include allocsa.h.
38834         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38835         * lib/strcasestr.c: Include allocsa.h.
38836         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38837         * lib/mbsstr.c: Include allocsa.h.
38838         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
38839         allocsa/freesa instead of malloc/free.
38840         * lib/mbscasestr.c: Include allocsa.h.
38841         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
38842         allocsa/freesa instead of malloc/free.
38843         * modules/c-strstr (Depends-on): Add allocsa.
38844         * modules/c-strcasestr (Depends-on): Likewise.
38845         * modules/strcasestr (Depends-on): Likewise.
38846         * modules/mbsstr (Depends-on): Likewise.
38847         * modules/mbscasestr (Depends-on): Likewise.
38848
38849 2007-02-11  Bruno Haible  <bruno@clisp.org>
38850
38851         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
38852
38853         * modules/mbsspn-tests: New file.
38854         * tests/test-mbsspn.sh: New file.
38855         * tests/test-mbsspn.c: New file.
38856
38857 2007-02-11  Bruno Haible  <bruno@clisp.org>
38858
38859         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
38860
38861         * modules/mbspbrk-tests: New file.
38862         * tests/test-mbspbrk.sh: New file.
38863         * tests/test-mbspbrk.c: New file.
38864
38865 2007-02-11  Bruno Haible  <bruno@clisp.org>
38866
38867         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
38868         unneeded cast.
38869
38870         * modules/mbscspn-tests: New file.
38871         * tests/test-mbscspn.sh: New file.
38872         * tests/test-mbscspn.c: New file.
38873
38874 2007-02-11  Bruno Haible  <bruno@clisp.org>
38875
38876         * modules/mbscasecmp-tests: New file.
38877         * tests/test-mbscasecmp.sh: New file.
38878         * tests/test-mbscasecmp.c: New file.
38879
38880 2007-02-11  Bruno Haible  <bruno@clisp.org>
38881
38882         Ensure O(n) worst-case complexity of mbscasestr.
38883         * lib/mbscasestr.c: Include stdbool.h.
38884         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
38885         functions.
38886         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
38887         the bookkeeping indicates that it's worth it.
38888         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
38889
38890         * modules/mbscasestr-tests: New file.
38891         * tests/test-mbscasestr1.c: New file.
38892         * tests/test-mbscasestr2.sh: New file.
38893         * tests/test-mbscasestr2.c: New file.
38894         * tests/test-mbscasestr3.sh: New file.
38895         * tests/test-mbscasestr3.c: New file.
38896         * tests/test-mbscasestr4.sh: New file.
38897         * tests/test-mbscasestr4.c: New file.
38898         * m4/locale-tr.m4: New file.
38899
38900 2007-02-11  Bruno Haible  <bruno@clisp.org>
38901
38902         Ensure O(n) worst-case complexity of mbsstr.
38903         * lib/mbsstr.c: Include stdbool.h.
38904         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
38905         functions.
38906         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
38907         bookkeeping indicates that it's worth it.
38908         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
38909
38910         * modules/mbsstr-tests: New file.
38911         * tests/test-mbsstr1.c: New file.
38912         * tests/test-mbsstr2.sh: New file.
38913         * tests/test-mbsstr2.c: New file.
38914         * tests/test-mbsstr3.sh: New file.
38915         * tests/test-mbsstr3.c: New file.
38916         * m4/locale-fr.m4: New file.
38917
38918 2007-02-11  Bruno Haible  <bruno@clisp.org>
38919
38920         * lib/mbsrchr.c (mbsrchr): Fix bug.
38921
38922         * modules/mbsrchr-tests: New file.
38923         * tests/test-mbsrchr.sh: New file.
38924         * tests/test-mbsrchr.c: New file.
38925
38926 2007-02-11  Bruno Haible  <bruno@clisp.org>
38927
38928         * lib/mbschr.c (mbschr): Fix bug.
38929
38930         * modules/mbschr-tests: New file.
38931         * tests/test-mbschr.sh: New file.
38932         * tests/test-mbschr.c: New file.
38933         * m4/locale-zh.m4: New file.
38934
38935 2007-02-11  Bruno Haible  <bruno@clisp.org>
38936
38937         Support for copying multibyte string iterators.
38938         * lib/mbiter.h: Include <string.h>.
38939         (mbiter_multi_copy): New function.
38940         (mbi_copy): New macro.
38941         * lib/mbuiter.h: Include <string.h>.
38942         (mbuiter_multi_copy): New function.
38943         (mbui_copy): New macro.
38944
38945 2007-02-11  Bruno Haible  <bruno@clisp.org>
38946
38947         New module mbslen.
38948         * modules/mbslen: New file.
38949         * lib/mbslen.c: New file.
38950         * lib/string_.h (mbslen): New declaration.
38951         * m4/mbslen.m4: New file.
38952         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38953         GNULIB_MBSLEN.
38954         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
38955         * MODULES.html.sh (Internationalization functions): Add mbslen.
38956
38957 2007-02-11  Bruno Haible  <bruno@clisp.org>
38958
38959         Ensure O(n) worst-case complexity of strcasestr substitute.
38960         * lib/strcasestr.c: Include stdbool.h.
38961         (knuth_morris_pratt): New function.
38962         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
38963         bookkeeping indicates that it's worth it.
38964         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
38965
38966         * modules/strcasestr-tests: New file.
38967         * tests/test-strcasestr.c: New file.
38968
38969 2007-02-11  Bruno Haible  <bruno@clisp.org>
38970
38971         Ensure O(n) worst-case complexity of c_strcasestr.
38972         * lib/c-strcasestr.c: Include stdbool.h, string.h.
38973         (knuth_morris_pratt): New function.
38974         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
38975         the bookkeeping indicates that it's worth it.
38976         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
38977
38978         * modules/c-strcasestr-tests: New file.
38979         * tests/test-c-strcasestr.c: New file.
38980
38981 2007-02-11  Bruno Haible  <bruno@clisp.org>
38982
38983         Ensure O(n) worst-case complexity of c_strstr.
38984         * lib/c-strstr.c: Include stdbool.h, string.h.
38985         (knuth_morris_pratt): New function.
38986         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
38987         bookkeeping indicates that it's worth it.
38988         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
38989
38990         * lib/c-strstr.c: Complete rewrite for maintainability.
38991
38992         * modules/c-strstr-tests: New file.
38993         * tests/test-c-strstr.c: New file.
38994
38995 2007-02-11  Bruno Haible  <bruno@clisp.org>
38996
38997         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
38998         5.2.1 and earlier, whereby \055 was treated just like the range
38999         delimiter '-'.
39000         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
39001
39002 2007-02-08  Bruno Haible  <bruno@clisp.org>
39003
39004         * modules/regex (Depends-on): Add stdbool.
39005         Reported by Dalibor Topic <robilad@kaffe.org>.
39006
39007 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
39008
39009         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
39010         Prefer returning from main to exiting from it.
39011         Remove unnecessary parens after sizeof.
39012
39013 2007-02-05  Bruno Haible  <bruno@clisp.org>
39014
39015         New module mbssep.
39016         * modules/mbssep: New file.
39017         * lib/mbssep.c: New file.
39018         * lib/string_.h (strsep): Add a conditional link warning.
39019         (mbssep): New declaration.
39020         * m4/mbssep.m4: New file.
39021         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39022         GNULIB_MBSSEP.
39023         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
39024         * MODULES.html.sh (Internationalization functions): Add mbssep.
39025
39026 2007-02-05  Bruno Haible  <bruno@clisp.org>
39027
39028         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
39029         Optimize search in case of 1 delimiter.
39030
39031 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
39032
39033         * lib/acl.h: Include sys/types.h before sys/acl.h.
39034
39035 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
39036
39037         Merge upstream fix for glibc bugzilla #3957:
39038
39039         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
39040
39041         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
39042         bit for RE_HAT_LISTS_NOT_NEWLINE.
39043         (build_charclass_op): Remove bogus comment.
39044
39045 2007-02-05  Simon Josefsson  <simon@josefsson.org>
39046
39047         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
39048
39049 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
39050
39051         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
39052         * lib/memmem.c [!defined _LIBC]: Include config.h.
39053
39054 2007-02-04  Bruno Haible  <bruno@clisp.org>
39055
39056         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
39057         warning message.
39058
39059 2007-02-04  Bruno Haible  <bruno@clisp.org>
39060
39061         New module mbstok_r.
39062         * modules/mbstok_r: New file.
39063         * lib/mbstok_r.c: New file.
39064         * lib/string_.h (strtok_r): Change argument names to match the
39065         comments. Add a conditional link warning.
39066         (mbstok_r): New declaration.
39067         * m4/mbstok_r.m4: New file.
39068         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39069         GNULIB_MBSTOK_R.
39070         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
39071         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
39072
39073 2007-02-04  Bruno Haible  <bruno@clisp.org>
39074
39075         New module mbsspn.
39076         * modules/mbsspn: New file.
39077         * lib/mbsspn.c: New file.
39078         * lib/string_.h (strspn): Add a conditional link warning.
39079         (mbsspn): New declaration.
39080         * m4/mbsspn.m4: New file.
39081         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39082         GNULIB_MBSSPN.
39083         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
39084         * MODULES.html.sh (Internationalization functions): Add mbsspn.
39085
39086 2007-02-04  Bruno Haible  <bruno@clisp.org>
39087
39088         New module mbspbrk.
39089         * modules/mbspbrk: New file.
39090         * lib/mbspbrk.c: New file.
39091         * lib/string_.h (strpbrk): Add a conditional link warning.
39092         (mbspbrk): New declaration.
39093         * m4/mbspbrk.m4: New file.
39094         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39095         GNULIB_MBSPBRK.
39096         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
39097         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
39098
39099 2007-02-04  Bruno Haible  <bruno@clisp.org>
39100
39101         New module mbscspn.
39102         * modules/mbscspn: New file.
39103         * lib/mbscspn.c: New file.
39104         * lib/string_.h (strcspn): Add a conditional link warning.
39105         (mbscspn): New declaration.
39106         * m4/mbscspn.m4: New file.
39107         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39108         GNULIB_MBSCSPN.
39109         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
39110         * MODULES.html.sh (Internationalization functions): Add mbscspn.
39111
39112 2007-02-04  Bruno Haible  <bruno@clisp.org>
39113
39114         New module mbscasestr, reduced goal of strcasestr.
39115         * modules/mbscasestr: New file.
39116         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
39117         (mbscasestr): Renamed from strcasestr.
39118         * lib/strcasestr.c: Don't include mbuiter.h.
39119         (strcasestr): Remove support for multibyte locales.
39120         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
39121         Change the conditional link warning.
39122         (mbscasestr): New declaration.
39123         * m4/mbscasestr.m4: New file.
39124         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
39125         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
39126         REPLACE_STRCASESTR.
39127         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
39128         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39129         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
39130         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
39131         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
39132         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
39133         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
39134         (Depends-on): Remove mbuiter.
39135         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
39136
39137 2007-02-04  Bruno Haible  <bruno@clisp.org>
39138
39139         Simplify handling of strncasecmp.
39140         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
39141         the conditional link warning.
39142         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39143         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
39144         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
39145         * modules/strcase (configure.ac): Don't invoke
39146         gl_STRING_MODULE_INDICATOR.
39147         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
39148
39149 2007-02-04  Bruno Haible  <bruno@clisp.org>
39150
39151         New module mbscasecmp, reduced goal of strcasecmp.
39152         * modules/mbscasecmp: New file.
39153         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
39154         (mbscasecmp): Renamed from strcasecmp.
39155         * lib/strcasecmp.c: Don't include mbuiter.h.
39156         (strcasecmp): Remove support for multibyte locales.
39157         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
39158         Change the conditional link warning.
39159         (mbscasecmp): New declaration.
39160         * m4/mbscasecmp.m4: New file.
39161         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
39162         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
39163         REPLACE_STRCASECMP.
39164         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
39165         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39166         GNULIB_MBSCASECMP.
39167         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
39168         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
39169         * modules/strcase (Files): Remove m4/mbrtowc.m4.
39170         (Depends-on): Remove mbuiter.
39171         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
39172
39173 2007-02-04  Bruno Haible  <bruno@clisp.org>
39174
39175         New module mbsstr. Remove module strstr.
39176         * modules/mbsstr: New file.
39177         * modules/strstr: Remove file.
39178         * lib/mbsstr.c: Renamed from lib/strstr.c.
39179         (mbsstr): Renamed from strstr.
39180         * lib/string_.h (strstr): Remove declaration. Change the conditional
39181         link warning.
39182         (mbsstr): New declaration.
39183         * m4/mbsstr.m4: New file.
39184         * m4/strstr.m4: Remove file.
39185         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
39186         REPLACE_STRSTR.
39187         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
39188         Don't initialize GNULIB_STRSTR.
39189         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
39190         substitute GNULIB_STRSTR and REPLACE_STRSTR.
39191         * MODULES.html.sh (Internationalization functions): Add mbsstr.
39192         (Support for systems lacking ANSI C 89): Remove strstr.
39193
39194 2007-02-04  Bruno Haible  <bruno@clisp.org>
39195
39196         New module mbsrchr.
39197         * modules/mbsrchr: New file.
39198         * lib/mbsrchr.c: New file.
39199         * lib/string_.h (strrchr): Add a conditional link warning.
39200         (mbsrchr): New declaration.
39201         * m4/mbsrchr.m4: New file.
39202         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39203         GNULIB_MBSRCHR.
39204         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
39205         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
39206
39207 2007-02-04  Bruno Haible  <bruno@clisp.org>
39208
39209         New module mbschr.
39210         * modules/mbschr: New file.
39211         * lib/mbschr.c: New file.
39212         * lib/string_.h (strchr): Add a conditional link warning.
39213         (mbschr): New declaration.
39214         * m4/mbschr.m4: New file.
39215         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39216         GNULIB_MBSCHR.
39217         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
39218         * MODULES.html.sh (Internationalization functions): Add mbschr.
39219
39220 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
39221
39222         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
39223
39224         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
39225
39226 2007-02-04  Bruno Haible  <bruno@clisp.org>
39227
39228         New module description section 'configure.ac-early'.
39229         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
39230         (func_get_autoconf_early_snippet): New function.
39231         (func_import, func_create_testdir): Use it. Remove special cases for
39232         modules 'extensions' and 'lock'.
39233         * modules/extensions (configure.ac-early): Require
39234         gl_USE_SYSTEM_EXTENSIONS.
39235         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
39236
39237 2007-02-04  Bruno Haible  <bruno@clisp.org>
39238
39239         Make use of gcj-4.3's -fsource and -ftarget option.
39240         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
39241         and if so try the options -fsource and -ftarget.
39242         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
39243         source_version, ftarget_option, target_version arguments.
39244         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
39245         (is_envjavac_oldgcj_14_14_usable): Renamed from
39246         is_envjavac_gcj_14_14_usable.
39247         (is_envjavac_oldgcj_14_13_usable): Renamed from
39248         is_envjavac_gcj_14_13_usable.
39249         (is_gcj_present): Update.
39250         (is_gcj_43, is_gcj43_usable): New functions.
39251         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
39252         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
39253         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
39254         try the options -fsource and -ftarget.
39255
39256 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
39257
39258         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
39259         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
39260         larger value.
39261
39262 2007-02-03  Jim Meyering  <jim@meyering.net>
39263
39264         Give tools a better chance to allocate space for very large buffers.
39265         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
39266
39267         Make pwd and readlink work also when run with an unreadable parent dir
39268         on systems with openat support.
39269         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
39270         provided getcwd function, even when we have openat support.
39271         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
39272
39273 2007-02-02  Bruno Haible  <bruno@clisp.org>
39274
39275         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
39276         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
39277         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
39278         portability problems if one of these functions is only used on specific
39279         platforms.
39280         Reported by Paul Eggert.
39281
39282 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
39283
39284         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
39285         is causing more trouble than it's curing.
39286         * lib/regex_internal.h (__mempcpy): Remove.
39287         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
39288         (and make the code a tad smaller to boot).
39289         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
39290
39291 2007-02-02  Jim Meyering  <jim@meyering.net>
39292
39293         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
39294         section, not in the Makefile.am: one.
39295
39296 2007-02-02  Eric Blake  <ebb9@byu.net>
39297
39298         * lib/strchrnul.c: Always include config.h first.
39299
39300         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
39301         gnulib strstr is not necessary here.
39302
39303 2007-02-02  Simon Josefsson  <simon@josefsson.org>
39304
39305         * m4/socklen.m4: Fix typo.
39306
39307 2007-02-02  Eric Blake  <ebb9@byu.net>
39308
39309         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
39310         * modules/netinet_in (Makefile.am): Likewise.
39311
39312 2007-02-01  Bruno Haible  <bruno@clisp.org>
39313
39314         * lib/string_.h (GL_LINK_WARNING): New macro.
39315         (strcasecmp, strstr, strcasestr): If provided by the system,
39316         conditionally define as a macro that leads to a warning instead of to
39317         an error.
39318         (strncasecmp): Conditionally define as a macro that leads to a warning.
39319
39320 2007-02-01  Karl Berry  <karl@gnu.org>
39321
39322         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
39323
39324 2007-02-01  Bruno Haible  <bruno@clisp.org>
39325
39326         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
39327         renamings.
39328
39329 2007-02-01  Eric Blake  <ebb9@byu.net>
39330
39331         * modules/regex (Depends-on): Revert dependence on mempcpy.
39332         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
39333         module's definition of mempcpy.
39334         Reported by Paul Eggert.
39335
39336 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
39337
39338         * lib/string_.h: If the gnulib module XYZ is not present, undefine
39339         the symbol XYZ before redefining it.  This fixes a problem with
39340         programs that don't use XYZ, when compiled on systems that define
39341         XYZ to something else.
39342
39343 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
39344
39345         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
39346         occurs when "mkdir -m foo" creates a setgid directory that is (1)
39347         writeable to group or other and (2) is intended to have a special
39348         mode bit that is set or cleared.  In such a case, the directory
39349         should be neither group- nor other-writeable until the special
39350         mode bits are right.
39351
39352 2007-01-31  Eric Blake  <ebb9@byu.net>
39353
39354         * modules/mountlist (Depends-on): Add strstr.
39355
39356         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
39357         bug.
39358         * modules/string (Makefile.am): Remove redundant replacement.
39359         * modules/regex (Depends-on): Add mempcpy.
39360
39361 2007-01-31  Bruno Haible  <bruno@clisp.org>
39362
39363         New module description field 'Link'.
39364         * gnulib-tool (func_usage): Document --extract-link-directive.
39365         (sed_extract_prog): Recognize 'Link' directive.
39366         (func_get_link_directive): New function.
39367         (func_import): Show summary of link directives.
39368         Handle --extract-link-directive option.
39369         * modules/acl (Link): New section.
39370         * modules/clock-time (Link): New section.
39371         * modules/euidaccess (Link): New section.
39372         * modules/gettext (Link): New section.
39373         * modules/iconv (Link): New section.
39374         * modules/lock (Link): New section.
39375         * modules/nanosleep (Link): New section.
39376         * modules/readline (Link): New section.
39377
39378 2007-01-27  Bruno Haible  <bruno@clisp.org>
39379
39380         Enforce the use of gnulib modules for unportable <string.h> functions.
39381         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
39382         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
39383         (gl_HEADER_STRING_H_BODY): Require it.
39384         * lib/string_.h: If the gnulib module XYZ is not present, redefine
39385         the symbol XYZ to one that gives a link error.
39386         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
39387         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
39388         * modules/mempcpy (configure.ac): Likewise.
39389         * modules/memrchr (configure.ac): Likewise.
39390         * modules/stpcpy (configure.ac): Likewise.
39391         * modules/stpncpy (configure.ac): Likewise.
39392         * modules/strcase (configure.ac): Likewise.
39393         * modules/strcasestr (configure.ac): Likewise.
39394         * modules/strchrnul (configure.ac): Likewise.
39395         * modules/strdup (configure.ac): Likewise.
39396         * modules/strndup (configure.ac): Likewise.
39397         * modules/strnlen (configure.ac): Likewise.
39398         * modules/strpbrk (configure.ac): Likewise.
39399         * modules/strsep (configure.ac): Likewise.
39400         * modules/strstr (configure.ac): Likewise.
39401         * modules/strtok_r (configure.ac): Likewise.
39402
39403 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
39404
39405         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
39406
39407 2007-01-30  Jim Meyering  <jim@meyering.net>
39408
39409         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
39410
39411 2007-01-29  Bruno Haible  <bruno@clisp.org>
39412
39413         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
39414         * lib/execute.c: Likewise.
39415         * lib/pipe.c: Likewise.
39416         * lib/printf-args.h: Likewise.
39417         * lib/printf-args.c: Likewise.
39418         * lib/printf-parse.c: Likewise.
39419         * lib/vasnprintf.c: Likewise.
39420
39421 2007-01-29  Eric Blake  <ebb9@byu.net>
39422
39423         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
39424         declaration.
39425
39426 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
39427
39428         * lib/strptime.h (strptime): Use 'restrict' for args where
39429         POSIX requires this.
39430         * lib/strptime.c (strptime): Likewise.
39431         Change license notice from LGPL to GPL, since gnulib-tool will
39432         change this as needed.
39433         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
39434         defined.
39435         Include "strptime.h" first, to check interface.
39436         Do not #undef _LIBC and _NL_CURRENT.
39437         Do not include <stdlib.h>; no longer needed.
39438         Include "time_r.h" and declare ptime_locale_status
39439         only if _LIBC is not defined.
39440         (__P): Remove unused macro.
39441         (match_string): Bring back glibc version, but use it only if _LIBC
39442         is defined.
39443         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
39444         Remove unnecessary assertion and abort() call.
39445         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
39446         * m4/strptime.m4: Fix serial number comment.
39447         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
39448         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
39449         (Depends-on): Add time_r.
39450
39451 2007-01-29  Bruno Haible  <bruno@clisp.org>
39452
39453         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39454         strptime.
39455         * modules/strptime (Depends-on): Add stdbool.
39456         * lib/strptime.h: Include <time.h> always. Add comments.
39457
39458 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39459
39460         * modules/strptime: New file.
39461         * lib/strptime.h: New file.
39462         * lib/strptime.c: New file.
39463         * m4/strptime.m4: New file.
39464
39465 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
39466
39467         * MODULES.html.sh: New module mpsort.
39468         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
39469
39470         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
39471         a circularity problem with HP-UX ia64 reported by Bob Proulx in
39472         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
39473         All uses changed.
39474         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
39475         All uses changed.
39476         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
39477         to _Restrict_.
39478         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
39479         the parameter matches the prototype.
39480
39481 2007-01-28  Jim Meyering  <jim@meyering.net>
39482
39483         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
39484         sys/time.h here, reverting that part of the previous patch:
39485         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
39486
39487 2007-01-28  Bruno Haible  <bruno@clisp.org>
39488
39489         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
39490         value of $(SYS_TIME_H).
39491         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
39492         remove it conditionally, too. [added by Jim Meyering]
39493         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
39494         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
39495         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
39496         GETTIMEOFDAY_REPLACEMENT to 1.
39497
39498 2007-01-28  Bruno Haible  <bruno@clisp.org>
39499
39500         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
39501         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
39502         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
39503         Set UNISTD_H instead of UNISTD_H2.
39504         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
39505
39506 2007-01-28  Bruno Haible  <bruno@clisp.org>
39507
39508         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
39509         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
39510
39511 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39512
39513         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
39514         (func_create_testdir): Ensure C locale for `grep' and `tr'
39515         character ranges.
39516         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
39517         ACLOCAL_AMFLAGS parsing state machine.
39518
39519 2007-01-27  Bruno Haible  <bruno@clisp.org>
39520
39521         * modules/unistr/base: Update.
39522
39523 2007-01-27  Bruno Haible  <bruno@clisp.org>
39524
39525         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
39526         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
39527         * modules/unistr/u32-mbtouc-unsafe: Renamed from
39528         modules/unistr/u32-mbtouc.
39529         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
39530         * lib/unistr.h: Update.
39531         * lib/linebreak.c: Update.
39532         * modules/unistr/u32-mbtouc: Renamed from
39533         modules/unistr/u32-mbtouc-safe.
39534         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
39535         * lib/unistr.h: Update.
39536         * lib/unistr/u32-to-u8.c: Update.
39537         * lib/unistr/u32-to-u16.c: Update.
39538
39539 2007-01-27  Bruno Haible  <bruno@clisp.org>
39540
39541         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
39542         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
39543         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
39544         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
39545         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
39546         * modules/unistr/u16-mbtouc-unsafe: Renamed from
39547         modules/unistr/u16-mbtouc.
39548         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
39549         * lib/unistr.h: Update.
39550         * lib/linebreak.c: Update.
39551         * modules/linebreak: Update.
39552         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
39553         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
39554         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
39555         * modules/unistr/u16-mbtouc: Renamed from
39556         modules/unistr/u16-mbtouc-safe.
39557         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
39558         * lib/unistr.h: Update.
39559         * lib/unistr/u16-to-u8.c: Update.
39560         * modules/unistr/u16-to-u8: Update.
39561         * lib/unistr/u16-to-u32.c: Update.
39562         * modules/unistr/u16-to-u32: Update.
39563
39564 2007-01-27  Bruno Haible  <bruno@clisp.org>
39565
39566         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
39567         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
39568         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
39569         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
39570         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
39571         * modules/unistr/u8-mbtouc-unsafe: Renamed from
39572         modules/unistr/u8-mbtouc.
39573         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
39574         * lib/unistr.h: Update.
39575         * lib/striconveh.c: Update.
39576         * modules/striconveh: Update.
39577         * lib/linebreak.c: Update.
39578         * modules/linebreak: Update.
39579         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
39580         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
39581         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
39582         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
39583         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
39584         * lib/unistr.h: Update.
39585         * lib/striconveh.c: Update.
39586         * modules/striconveh: Update.
39587         * lib/unistr/u8-to-u16.c: Update.
39588         * modules/unistr/u8-to-u16: Update.
39589         * lib/unistr/u8-to-u32.c: Update.
39590         * modules/unistr/u8-to-u32: Update.
39591
39592 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39593
39594         Sync from Libtool.
39595         * lib/argz.c: Do not include strings.h nor memory.h, include
39596         string.h unconditionally.  Patch by Simon Josefsson.
39597
39598 2007-01-27  Bruno Haible  <bruno@clisp.org>
39599
39600         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
39601         from gl_HEADER_STRING_H_BODY.
39602         (gl_HEADER_STRING_H_BODY): Require it.
39603         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
39604         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
39605         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
39606         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
39607         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
39608         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
39609         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39610         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
39611         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
39612         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
39613         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
39614         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
39615         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
39616         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39617         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
39618
39619 2007-01-27  Bruno Haible  <bruno@clisp.org>
39620
39621         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
39622         check_PROGRAMS into noinst_PROGRAMS.
39623         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
39624         check_PROGRAMS in this case.
39625         (func_import): Set for_test to false.
39626         (func_create_testdir): Set for_test to true.
39627
39628 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
39629             Bruno Haible  <bruno@clisp.org>
39630
39631         * modules/strcasestr (Files): Remove lib/strcasestr.h.
39632         (Depends-on): Add string.
39633         (Includes): Use <string.h> instead of strcasestr.h.
39634         * modules/string (Makefile.am): Also substitute the value of
39635         REPLACE_STRCASESTR.
39636         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
39637         assume strcasestr is declared in <string.h> not <strings.h>. Also
39638         set REPLACE_STRCASESTR.
39639         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
39640         REPLACE_STRCASESTR.
39641         * lib/strcasestr.h: Remove file.
39642         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
39643         * lib/string_.h (strcasestr): New declaration.
39644
39645 2007-01-27  Bruno Haible  <bruno@clisp.org>
39646
39647         * lib/string_.h: Use 'extern'.
39648
39649 2007-01-27  Jim Meyering  <jim@meyering.net>
39650
39651         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
39652         of set-but-not-used local, "q".
39653
39654         * lib/mempcpy.c: Include <config.h> before <string.h>.
39655         This fixes a compilation error on HP-UX, due to the system's
39656         "restrict"-using mempcpy prototype.
39657
39658 2007-01-26  Bruno Haible  <bruno@clisp.org>
39659
39660         Small optimization.
39661         * lib/javacomp.c: Include c-strstr.h.
39662          (is_envjavac_gcj): Use c_strstr instead of strstr.
39663         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
39664
39665 2007-01-26  Bruno Haible  <bruno@clisp.org>
39666
39667         * MODULES.html.sh (Unicode string functions): Add the new modules.
39668
39669         * modules/uniconv/u32-strconv-to-locale: New file.
39670         * lib/uniconv/u32-strconv-to-locale.c: New file.
39671
39672         * modules/uniconv/u16-strconv-to-locale: New file.
39673         * lib/uniconv/u16-strconv-to-locale.c: New file.
39674
39675         * modules/uniconv/u8-strconv-to-locale: New file.
39676         * lib/uniconv/u8-strconv-to-locale.c: New file.
39677
39678         * modules/uniconv/u32-strconv-from-locale: New file.
39679         * lib/uniconv/u32-strconv-from-locale.c: New file.
39680
39681         * modules/uniconv/u16-strconv-from-locale: New file.
39682         * lib/uniconv/u16-strconv-from-locale.c: New file.
39683
39684         * modules/uniconv/u8-strconv-from-locale: New file.
39685         * lib/uniconv/u8-strconv-from-locale.c: New file.
39686
39687         * modules/uniconv/u32-strconv-to-enc: New file.
39688         * lib/uniconv/u32-strconv-to-enc.c: New file.
39689         * modules/uniconv/u32-strconv-to-enc-tests: New file.
39690         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
39691
39692         * modules/uniconv/u16-strconv-to-enc: New file.
39693         * lib/uniconv/u16-strconv-to-enc.c: New file.
39694         * lib/uniconv/u-strconv-to-enc.h: New file.
39695         * modules/uniconv/u16-strconv-to-enc-tests: New file.
39696         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
39697
39698         * modules/uniconv/u8-strconv-to-enc: New file.
39699         * lib/uniconv/u8-strconv-to-enc.c: New file.
39700         * modules/uniconv/u8-strconv-to-enc-tests: New file.
39701         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
39702
39703         * modules/uniconv/u32-strconv-from-enc: New file.
39704         * lib/uniconv/u32-strconv-from-enc.c: New file.
39705         * modules/uniconv/u32-strconv-from-enc-tests: New file.
39706         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
39707
39708         * modules/uniconv/u16-strconv-from-enc: New file.
39709         * lib/uniconv/u16-strconv-from-enc.c: New file.
39710         * modules/uniconv/u16-strconv-from-enc-tests: New file.
39711         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
39712
39713         * modules/uniconv/u8-strconv-from-enc: New file.
39714         * lib/uniconv/u8-strconv-from-enc.c: New file.
39715         * lib/uniconv/u-strconv-from-enc.h: New file.
39716         * modules/uniconv/u8-strconv-from-enc-tests: New file.
39717         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
39718
39719         * modules/uniconv/u32-conv-from-enc: New file.
39720         * lib/uniconv/u32-conv-from-enc.c: New file.
39721         * modules/uniconv/u32-conv-from-enc-tests: New file.
39722         * tests/uniconv/test-u32-conv-from-enc.c: New file.
39723
39724         * modules/uniconv/u16-conv-from-enc: New file.
39725         * lib/uniconv/u16-conv-from-enc.c: New file.
39726         * lib/uniconv/u-conv-from-enc.h: New file.
39727         * modules/uniconv/u16-conv-from-enc-tests: New file.
39728         * tests/uniconv/test-u16-conv-from-enc.c: New file.
39729
39730         * modules/uniconv/u8-conv-from-enc: New file.
39731         * lib/uniconv/u8-conv-from-enc.c: New file.
39732         * modules/uniconv/u8-conv-from-enc-tests: New file.
39733         * tests/uniconv/test-u8-conv-from-enc.c: New file.
39734
39735         * modules/uniconv/base: New file.
39736         * lib/uniconv.h: New file.
39737
39738 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
39739
39740         * doc/gnulib-tool.texi (Initial import): Update to match current
39741         behavior with strdup module.
39742         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
39743         * lib/memmem.h: Remove; all uses removed.  This is now done
39744         by <string.h>.
39745         * lib/mempcpy.h: Likewise.
39746         * lib/memrchr.h: Likewise.
39747         * lib/stpcpy.h: Likewise.
39748         * lib/stpncpy.h: Likewise.
39749         * lib/strcase.h: Likewise.
39750         * lib/strchrnul.h: Likewise.
39751         * lib/strdup.h: Likewise.
39752         * lib/strndup.h: Likewise.
39753         * lib/strnlen.h: Likewise.
39754         * lib/strpbrk.h: Likewise.
39755         * lib/strsep.h: Likewise.
39756         * lib/strstr.h: Likewise.
39757         * lib/strtok_r.h: Likewise.
39758         * lib/string_.h: New file.
39759         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
39760         Rely on <string.h> instead.
39761         * lib/canon-host.c: Likewise.
39762         * lib/chdir-long.c: Likewise.
39763         * lib/concatpath.c: Likewise.
39764         * lib/exclude.c: Likewise.
39765         * lib/fchdir.c: Likewise.
39766         * lib/getaddrinfo.c: Likewise.
39767         * lib/getcwd.c: Likewise.
39768         * lib/getsubopt.c: Likewise.
39769         * lib/glob.c: Likewise.
39770         * lib/hard-locale.c: Likewise.
39771         * lib/iconvme.c: Likewise.
39772         * lib/javacomp.c: Likewise.
39773         * lib/mempcpy.c: Likewise.
39774         * lib/memrchr.c: Likewise.
39775         * lib/regex_internal.h: Likewise.
39776         * lib/stpncpy.c: Likewise.
39777         * lib/strcasecmp.c: Likewise.
39778         * lib/strchrnul.c: Likewise.
39779         * lib/strdup.c: Likewise.
39780         * lib/striconv.c: Likewise.
39781         * lib/striconveh.c: Likewise.
39782         * lib/striconveha.c: Likewise.
39783         * lib/strncasecmp.c: Likewise.
39784         * lib/strndup.c: Likewise.
39785         * lib/strnlen.c: Likewise.
39786         * lib/strsep.c: Likewise.
39787         * lib/strstr.c: Likewise.
39788         * lib/strtok_r.c: Likewise.
39789         * lib/userspec.c: Likewise.
39790         * lib/w32spawn.h: Likewise.
39791         * lib/xstrndup.c: Likewise.
39792         * lib/mountlist.c (strstr): Remove decl.
39793         * m4/string_h.m4: New file.
39794         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
39795         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
39796         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
39797         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
39798         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
39799         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
39800         Set REPLACE_STRCASECMP if necessary.
39801         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
39802         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
39803         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
39804         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
39805         HAVE_DECL_STRDUP if necessary.
39806         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
39807         since gl_FUNC_STRNDUP does that now.
39808         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
39809         Check for decl here...
39810         (gl_PREREQ_STRNLEN): ... not here.
39811         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
39812         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
39813         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
39814         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
39815         necessary.
39816         * modules/string: New file.
39817         * modules/memmem (Files): Remove special-purpose include file.
39818         (Depends-on): Add string.
39819         (Include): Include <string.h>, not the removed file.
39820         * modules/mempcpy: Likewise.
39821         * modules/memrchr: Likewise.
39822         * modules/stpcpy: Likewise.
39823         * modules/stpncpy: Likewise.
39824         * modules/strcase: Likewise.
39825         * modules/strchrnul: Likewise.
39826         * modules/strdup: Likewise.
39827         * modules/strndup: Likewise.
39828         * modules/strnlen: Likewise.
39829         * modules/strpbrk: Likewise.
39830         * modules/strsep: Likewise.
39831         * modules/strstr: Likewise.
39832         * modules/strtok_r: Likewise.
39833         * tests/test-dirname.c: Don't include "strdup.h", since
39834         <string.h> now suffices.
39835         * tests/test-memmem.c: Don't include "memmem.h", since
39836         <string.h> now suffices.
39837
39838 2007-01-25  Bruno Haible  <bruno@clisp.org>
39839
39840         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
39841         *resultp is 0.
39842
39843         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
39844         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
39845         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
39846         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
39847
39848         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
39849         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
39850         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
39851         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
39852         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
39853         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
39854
39855 2007-01-24  Bruno Haible  <bruno@clisp.org>
39856
39857         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
39858         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
39859         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
39860         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
39861         gl_FUNC_FTS_CORE.
39862         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
39863         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
39864         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
39865         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
39866         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
39867         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
39868         gl_FUNC_FCHOWNAT.
39869         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
39870         gl_FUNC_STRFTIME.
39871         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
39872         Reported by Ralf Wildenhues.
39873
39874 2007-01-24  Bruno Haible  <bruno@clisp.org>
39875
39876         Drop AC_REQUIRE calls that are redundant with the module dependencies.
39877         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
39878         gl_GETADDRINFO.
39879         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
39880         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
39881         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
39882
39883 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
39884
39885         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
39886         Don't use 'exit'; just return from 'main'.
39887         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
39888
39889         * lib/fnmatch_.h: Readjust white space and comments to match
39890         glibc, to avoid spurious diffs.
39891
39892 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
39893
39894         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
39895         2004-12-01 change by Jakub Jelinek, since this code won't compile
39896         if !LIBC.  Problem reported by Bob Proulx.
39897
39898 2007-01-23  Bruno Haible  <bruno@clisp.org>
39899
39900         * lib/striconveh.c: Include c-strcaseeq.h.
39901         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
39902         * modules/striconveh (Depends-on): Add c-strcaseeq.
39903
39904 2007-01-23  Bruno Haible  <bruno@clisp.org>
39905
39906         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
39907
39908         * modules/c-strcaseeq: New file.
39909         * lib/c-strcaseeq.h: New file.
39910
39911         * modules/streq: New file.
39912         * lib/streq.h: New file.
39913
39914 2007-01-23  Bruno Haible  <bruno@clisp.org>
39915
39916         * modules/striconveha-tests: New file.
39917         * tests/test-striconveha.c: New file.
39918
39919         * lib/striconveha.h: Include <stdbool.h>.
39920         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
39921         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
39922         (mem_iconveha_notranslit): Renamed from mem_iconveha.
39923         (mem_iconveha): New function.
39924         (str_iconveha_notranslit): Renamed from str_iconveha.
39925         (str_iconveha): New function.
39926         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
39927         c-strcase.
39928
39929 2007-01-23  Bruno Haible  <bruno@clisp.org>
39930
39931         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
39932         encodings without forgiving before trying any encoding with handler.
39933         (str_iconveha): Try all encodings without forgiving before trying any
39934         encoding with handler.
39935
39936 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
39937
39938         Import the following changes from libc.
39939
39940         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
39941
39942         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
39943
39944         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
39945
39946         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
39947         normal_bracket label.
39948
39949         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
39950
39951         [BZ #361]
39952         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
39953         to normal_bracket after fetching the next character.
39954
39955 2007-01-22  Bruno Haible  <bruno@clisp.org>
39956
39957         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
39958         argument.
39959         * lib/striconveh.c (iconv_carefully_1): New function.
39960         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
39961         argument.
39962         (str_cd_iconveh): Update.
39963         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
39964         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
39965         * tests/test-striconveh.c (MAGIC): New macro.
39966         (new_offsets): New function.
39967         (main): Test call with and without offsets.
39968
39969 2007-01-22  Bruno Haible  <bruno@clisp.org>
39970
39971         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
39972         * modules/sys_select (Makefile.am): Likewise.
39973         * modules/sys_socket (Makefile.am): Likewise.
39974         * modules/sys_time (Makefile.am): Likewise.
39975
39976 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
39977
39978         * modules/gettimeofday (License): Change from GPL to LGPL, since
39979         gettimeofday is a library function.
39980
39981 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39982
39983         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
39984
39985 2007-01-21  Bruno Haible  <bruno@clisp.org>
39986
39987         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
39988
39989 2007-01-21  Bruno Haible  <bruno@clisp.org>
39990
39991         * modules/striconveha: New file.
39992         * lib/striconveha.h: New file.
39993         * lib/striconveha.c: New file.
39994         * MODULES.html.sh (Internationalization functions): Add striconveha.
39995         * lib/striconv.c (str_iconv): Optimize the case of an empty input
39996         string.
39997         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
39998
39999 2007-01-21  Bruno Haible  <bruno@clisp.org>
40000
40001         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
40002         * lib/striconveh.c (str_iconveh): Likewise.
40003
40004 2007-01-21  Bruno Haible  <bruno@clisp.org>
40005
40006         * lib/striconveh.h (mem_iconveh): New declaration.
40007         * lib/striconveh.c (mem_iconveh): New function.
40008         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
40009
40010 2007-01-21  Bruno Haible  <bruno@clisp.org>
40011
40012         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
40013
40014         * lib/striconveh.h (mem_cd_iconveh): Change specification.
40015         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
40016         original result buffer.
40017         (str_cd_iconveh): Update.
40018         * tests/test-striconveh.c (main): Update.
40019
40020         * lib/striconv.h (mem_cd_iconv): Change specification.
40021         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
40022         result buffer.
40023         (str_cd_iconv): Update.
40024         * tests/test-striconv.c (main): Update.
40025
40026 2007-01-21  Bruno Haible  <bruno@clisp.org>
40027
40028         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
40029
40030 2007-01-20  Jim Meyering  <jim@meyering.net>
40031
40032         * lib/userspec.c (parse_with_separator): If a user or group string
40033         starts with "+", skip the corresponding name-to-ID look-up, since
40034         such a look-up must fail: user and group names may not include "+".
40035
40036 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
40037
40038         * lib/poll.c: Include sys/time.h and time.h unconditionally,
40039         since we now assume the sys_time module.
40040         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
40041         check for sys/time.h; no longer needed.
40042         * modules/poll (Depends-on): Depend on sys_time.
40043
40044 2007-01-18  Bruno Haible  <bruno@clisp.org>
40045
40046         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
40047         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
40048
40049         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
40050         gettimeofday.
40051
40052         * tests/test-gettimeofday.c: Include <time.h>.
40053         (dummy): Remove variable.
40054
40055         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
40056         gl_HEADER_SYS_TIME_H.
40057         (gl_HEADER_SYS_TIME_H): New macro.
40058
40059         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
40060         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40061         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
40062         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
40063         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40064         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
40065         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
40066         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40067         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
40068         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
40069         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40070
40071         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
40072         last change; it caused a compilation error when cross-compiling to
40073         Cygwin.
40074
40075 2007-01-18  Jim Meyering  <jim@meyering.net>
40076
40077         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
40078         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
40079         than the race-prone "test -d sys || mkdir sys".
40080         (configure.ac): Use AC_PROG_MKDIR_P.
40081         * modules/sys_select: Likewise.
40082         * modules/sys_socket: Likewise.
40083         * modules/sys_time: Likewise.
40084
40085 2007-01-18  Eric Blake  <ebb9@byu.net>
40086
40087         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
40088         replace gettimeofday.
40089         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
40090         name, to avoid infinite recursion.
40091
40092 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
40093
40094         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
40095         module sys_time.
40096         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
40097         assume timespec.h defines struct timeval.
40098         * lib/settime.c: Likewise.
40099         * lib/utimens.c: Likewise.
40100         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
40101         since we now assume the gettimeofday module.
40102         * lib/tempname.c (__gen_tempname): Likewise.
40103         * lib/gettimeofday.h: Remove.
40104         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
40105         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
40106         Include <time.h>, for 'time()'.
40107         (localtime_buffer_addr): Also use this workaround if
40108         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
40109         to simplify the uses.  All uses changed.
40110         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
40111         that #undef is inside {}, and 'const' follows type name consistently.
40112         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
40113         (gettimeofday): Do not use the maximum possible value for
40114         tv->tv_usec, since that might break usages other than ls.c.
40115         Instead, we'll leave ls.c alone.  This undoes today's patch
40116         by Bruno.  Add a compile-time warning for 1s-clock resolution;
40117         we've never observed the problem but might as well keep the
40118         canary.
40119         * lib/nanosleep.c: Include timespec.h first, for interface check.
40120         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
40121         now assume the sys_time module.
40122         * lib/tempname.c: Likewise.
40123         * lib/timespec.h: Likewise.
40124         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
40125         needed.
40126         * lib/strftime.c: Likewise.
40127         * lib/timespec.h: Likewise.
40128         * lib/posixtm.c: Include posixtm.h first, for interface check.
40129         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
40130         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
40131         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
40132         * lib/sys_time_.h: New file.
40133         * lib/timespec.h (struct timespec): Use long int, not long.
40134         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
40135         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
40136         Remove obsolescent call to AC_HEADER_TIME.
40137         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
40138         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
40139         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
40140         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
40141         Likewise.
40142         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
40143         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
40144         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
40145         into the sys_time module.  Check for gettimeofday just once.
40146         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
40147         for gettimeofday signature to just check the signature.  Merely
40148         compile it, since linking doesn't test signature.  Improve test for
40149         whether gettimeofday.o is actually needed.
40150         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
40151         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
40152         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
40153         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40154         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
40155         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
40156         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
40157         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
40158         than worrying about sys/time.h.
40159         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
40160         Don't bother worrying about TIME_WITH_SYS_TIME.
40161         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
40162         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
40163         * m4/sys_time_h.m4: New file.
40164         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
40165         Don't include sys/time.h.  Return from main rather than exiting.
40166         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
40167         all uses changed.
40168         * modules/gethrxtime (Depends-on): Add sys_time.
40169         * modules/gettime (Depends-on): Likewise.
40170         * modules/gettimeofday (Depends-on): Likewise.
40171         * modules/nanosleep (Depends-on): Likewise.
40172         * modules/settime (Depends-on): Likewise.
40173         * modules/tempname (Depends-on): Likewise.
40174         * modules/utimens (Depends-on): Likewise.
40175         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
40176         (Include:) Change back to <sys/time.h>.
40177         (Maintainer:) Add self.
40178         * modules/sys_time: New file.
40179         * modules/tempname (Depends-on): Add gettimeofday.
40180         * tests/test-gettimeofday.c: Include <sys/time.h>
40181         rather than gettimeofday.h.
40182
40183 2007-01-17  Bruno Haible  <bruno@clisp.org>
40184
40185         * gnulib-tool (func_get_license): Revert last patch. Instead, let
40186         the license default to GPL.
40187         (func_create_testdir): Don't complain if a module is LGPL and its
40188         tests module depends on GPLed modules.
40189
40190 2007-01-17  Bruno Haible  <bruno@clisp.org>
40191
40192         * lib/gettimeofday.c (gettimeofday): Add code for the case
40193         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
40194         maximum possible value for tv->tv_usec, rather than the minimum one.
40195
40196 2005-10-08  Martin Lambers  <marlam@marlam.de>
40197 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
40198 2007-01-16  Bruno Haible  <bruno@clisp.org>
40199
40200         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
40201         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
40202         gl_FUNC_GETTIMEOFDAY.
40203         (Include): Add gettimeofday.h.
40204         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
40205         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
40206         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
40207         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
40208         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
40209         * lib/gettimeofday.h: New file.
40210         * lib/gettimeofday.c: Include <sys/timeb.h>.
40211         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
40212         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40213         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
40214         fall back on time().
40215
40216         * tests/test-gettimeofday.c: New file.
40217         * modules/gettimeofday-tests: New file.
40218
40219 2007-01-16  Eric Blake  <ebb9@byu.net>
40220
40221         * modules/fnmatch (Depends-on): Depend on wchar.
40222         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
40223         * m4/fnmatch.m4: Likewise.
40224         * modules/mbchar (Makefile.am): Assume <wchar.h>.
40225         * m4/mbchar.m4: Likewise.
40226         * modules/mbswidth (Depends-on): Depend on wchar.
40227         * lib/mbswidth.c: Assume <wchar.h>.
40228         * m4/mbswidth.m4: Likewise.
40229         * modules/quotearg (Depends-on): Depend on wchar.
40230         * lib/quotearg.c: Assume <wchar.h>.
40231         * m4/quotearg.m4: Likewise.
40232         * modules/regex (Depends-on): Depend on wchar.
40233         * lib/regex_internal.h: Assume <wchar.h>.
40234         * m4/regex.m4: Likewise.
40235         * modules/stdint (Depends-on): Depend on wchar.
40236         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
40237         * m4/stdint.m4: Likewise.
40238         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
40239         * modules/strftime (Depends-on): Depend on wchar.
40240         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
40241         * modules/strtol (Depends-on): Depend on wchar.
40242         * lib/strtol.c: Assume <wchar.h>.
40243         * modules/wcwidth (Depends-on): Depend on wchar.
40244         * lib/wcwidth.h: Assume <wchar.h>.
40245         * m4/wcwidth.m4: Likewise.
40246
40247 2007-01-16  Bruno Haible  <bruno@clisp.org>
40248
40249         * modules/csharpexec-script: New, created from...
40250         * modules/csharpexec: ... this.
40251
40252 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
40253
40254         * modules/javaexec-script: New, created from...
40255         * modules/javaexec: ... this.
40256
40257 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40258
40259         * modules/poll (Dependencies): Add sys_select.
40260
40261 2007-01-15  Jim Meyering  <jim@meyering.net>
40262
40263         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
40264         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
40265         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
40266         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
40267
40268 2007-01-15  Bruno Haible  <bruno@clisp.org>
40269
40270         * modules/striconveh: New file.
40271         * lib/striconveh.h: New file.
40272         * lib/striconveh.c: New file.
40273         * MODULES.html.sh (Internationalization functions): Add striconveh.
40274
40275         * modules/striconveh-tests: New file.
40276         * tests/test-striconveh.c: New file.
40277
40278 2007-01-15  Bruno Haible  <bruno@clisp.org>
40279
40280         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
40281         not from GNU libiconv or GNU libc.
40282
40283 2007-01-15  Bruno Haible  <bruno@clisp.org>
40284
40285         * doc/gnulib-intro.texi (Copyright): Explain the different license
40286         terms for module descriptions, autoconf macros, tests, documentation.
40287
40288 2007-01-14  Bruno Haible  <bruno@clisp.org>
40289
40290         * modules/striconv-tests: New file.
40291         * tests/test-striconv.c: New file.
40292
40293 2007-01-14  Bruno Haible  <bruno@clisp.org>
40294
40295         * modules/iconv-tests: New file.
40296         * tests/test-iconv.c: New file.
40297
40298 2007-01-14  Bruno Haible  <bruno@clisp.org>
40299
40300         * gnulib-tool (func_get_license): For test modules, use the license of
40301         the main module.
40302
40303 2007-01-14  Bruno Haible  <bruno@clisp.org>
40304
40305         * modules/iconv (Include): Clarify that <iconv.h> can only be included
40306         if iconv is found to exist.
40307
40308 2007-01-14  Bruno Haible  <bruno@clisp.org>
40309
40310         * modules/c-ctype-tests: New file.
40311         * tests/test-c-ctype.c: New file.
40312
40313 2007-01-14  Bruno Haible  <bruno@clisp.org>
40314
40315         * modules/binary-io-tests: New file.
40316         * tests/test-binary-io.sh: New file.
40317         * tests/test-binary-io.c: New file.
40318
40319 2007-01-14  Bruno Haible  <bruno@clisp.org>
40320
40321         * modules/array-oset-tests: New file.
40322         * tests/test-array_oset.c: New file.
40323
40324 2007-01-14  Bruno Haible  <bruno@clisp.org>
40325
40326         * modules/array-list-tests: New file.
40327         * tests/test-array_list.c: New file.
40328
40329 2007-01-14  Bruno Haible  <bruno@clisp.org>
40330
40331         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
40332         and make.
40333         Reported by Simon Josefsson in
40334         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
40335
40336 2007-01-14  Bruno Haible  <bruno@clisp.org>
40337
40338         * modules/allocsa-tests: New file.
40339         * tests/test-allocsa.c: New file.
40340
40341 2007-01-14  Bruno Haible  <bruno@clisp.org>
40342
40343         * modules/fchdir (Depends-on): Add absolute-header.
40344         * modules/unistd (Depends-on): Likewise.
40345
40346 2006-12-30  Bruno Haible  <bruno@clisp.org>
40347
40348         * modules/fchdir: New file.
40349         * modules/unistd (Files): Add lib/unistd_.h.
40350         (Makefile.am): Generate unistd.h from unistd_.h.
40351         * lib/fchdir.c: New file.
40352         * lib/dirent_.h: New file.
40353         * lib/unistd_.h: New file.
40354         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
40355         * m4/fchdir.m4: New file.
40356         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
40357         (gl_HEADER_UNISTD): Invoke it.
40358         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
40359         function.
40360         * lib/backupfile.c (opendir, closedir): Undefine.
40361         * lib/chown.c (open, close): Undefine.
40362         * lib/clean-temp.c (open, close): Undefine.
40363         * lib/copy-file.c (open, close): Undefine.
40364         * lib/execute.c (open, close): Undefine.
40365         * lib/fsusage.c (open, close): Undefine.
40366         * lib/gc-gnulib.c (open, close): Undefine.
40367         * lib/getcwd.c (opendir, closedir): Undefine.
40368         * lib/glob.c (opendir, closedir): Undefine.
40369         * lib/javacomp.c (open, close): Undefine.
40370         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
40371         * lib/openat-proc.c (open, close): Undefine.
40372         * lib/pagealign_alloc.c (open, close): Undefine.
40373         * lib/pipe.c (open, close): Undefine.
40374         * lib/progreloc.c (open, close): Undefine.
40375         * lib/savedir.c (opendir, closedir): Undefine.
40376         * lib/utime.c (open, close): Undefine.
40377         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
40378
40379 2007-01-10  Bruno Haible  <bruno@clisp.org>
40380
40381         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
40382
40383 2007-01-12  Eric Blake  <ebb9@byu.net>
40384
40385         Provide a robust <wchar.h>.  Further simplifications are now
40386         possible in other modules, but not included here.
40387         * modules/wchar: New module.
40388         * m4/wchar.m4: New file.
40389         * lib/wchar_.h: Likewise.
40390         * modules/mbchar (Depends-on): Depend on wchar, as the first use
40391         of the new module.
40392         * MODULES.html.sh (Extended multibyte and wide character utilities):
40393         New section.
40394
40395 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
40396
40397         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
40398         to a reasonable default for memory allocation.
40399         (xreadlink): Don't allocate a huge buffer, to work around a buggy
40400         file system that reports garbage st_size values for symlinks.
40401         Problem reported by Liyang Hu.
40402
40403 2007-01-11  Simon Josefsson  <simon@josefsson.org>
40404
40405         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
40406         Emacs .#* auto-save files).
40407
40408 2007-01-11  Bruno Haible  <bruno@clisp.org>
40409
40410         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
40411         directory.
40412
40413 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
40414
40415         Use @...@ consistently in lib/wctype_.h.
40416         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
40417         on it being set to 1 or 0.
40418         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
40419         go back to AC_SUBSTing it.
40420         * modules/wctype (Makefile.am): Undo previous change.
40421
40422 2007-01-10  Eric Blake  <ebb9@byu.net>
40423
40424         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
40425         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
40426         * modules/wctype (Makefile.am): Likewise.
40427         Reported by Chris McGuire.
40428
40429 2007-01-10  Jim Meyering  <jim@meyering.net>
40430
40431         fts.c: a small readability/maintainability improvement
40432         * lib/fts.c (fts_read): Make this code slightly more readable and
40433         maintainable by hoisting the "sp->fts_cur = p" assignments to
40434         immediately follow the statements that set P.  Derived from
40435         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
40436
40437 2007-01-10  Eric Blake  <ebb9@byu.net>
40438
40439         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
40440         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
40441         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
40442         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
40443         Reported by Chris McGuire.
40444
40445 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40446
40447         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
40448         in sed script.
40449
40450 2007-01-09  Bruno Haible  <bruno@clisp.org>
40451
40452         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
40453         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
40454         variables.
40455         (func_module): Use them.
40456
40457 2007-01-09  Bruno Haible  <bruno@clisp.org>
40458
40459         * modules/unistr/base: New file.
40460         * lib/unistr.h: New file.
40461
40462         * modules/unistr/u8-to-u16: New file.
40463         * lib/unistr/u8-to-u16.c: New file.
40464
40465         * modules/unistr/u8-to-u32: New file.
40466         * lib/unistr/u8-to-u32.c: New file.
40467
40468         * modules/unistr/u16-to-u8: New file.
40469         * lib/unistr/u16-to-u8.c: New file.
40470
40471         * modules/unistr/u16-to-u32: New file.
40472         * lib/unistr/u16-to-u32.c: New file.
40473
40474         * modules/unistr/u32-to-u8: New file.
40475         * lib/unistr/u32-to-u8.c: New file.
40476
40477         * modules/unistr/u32-to-u16: New file.
40478         * lib/unistr/u32-to-u16.c: New file.
40479
40480         * modules/unistr/u8-check: New file.
40481         * modules/unistr/u16-check: New file.
40482         * modules/unistr/u32-check: New file.
40483         * lib/unistr/u8-check.c: New file.
40484         * lib/unistr/u16-check.c: New file.
40485         * lib/unistr/u32-check.c: New file.
40486
40487         * modules/unistr/u8-chr: New file.
40488         * modules/unistr/u16-chr: New file.
40489         * modules/unistr/u32-chr: New file.
40490         * lib/unistr/u8-chr.c: New file.
40491         * lib/unistr/u16-chr.c: New file.
40492         * lib/unistr/u32-chr.c: New file.
40493
40494         * modules/unistr/u8-cmp: New file.
40495         * modules/unistr/u16-cmp: New file.
40496         * modules/unistr/u32-cmp: New file.
40497         * lib/unistr/u8-cmp.c: New file.
40498         * lib/unistr/u16-cmp.c: New file.
40499         * lib/unistr/u32-cmp.c: New file.
40500
40501         * modules/unistr/u8-cpy: New file.
40502         * modules/unistr/u16-cpy: New file.
40503         * modules/unistr/u32-cpy: New file.
40504         * lib/unistr/u8-cpy.c: New file.
40505         * lib/unistr/u16-cpy.c: New file.
40506         * lib/unistr/u32-cpy.c: New file.
40507         * lib/unistr/u-cpy.h: New file.
40508
40509         * modules/unistr/u8-cpy-alloc: New file.
40510         * modules/unistr/u16-cpy-alloc: New file.
40511         * modules/unistr/u32-cpy-alloc: New file.
40512         * lib/unistr/u8-cpy-alloc.c: New file.
40513         * lib/unistr/u16-cpy-alloc.c: New file.
40514         * lib/unistr/u32-cpy-alloc.c: New file.
40515         * lib/unistr/u-cpy-alloc.h: New file.
40516
40517         * modules/unistr/u8-endswith: New file.
40518         * modules/unistr/u16-endswith: New file.
40519         * modules/unistr/u32-endswith: New file.
40520         * lib/unistr/u8-endswith.c: New file.
40521         * lib/unistr/u16-endswith.c: New file.
40522         * lib/unistr/u32-endswith.c: New file.
40523         * lib/unistr/u-endswith.h: New file.
40524
40525         * modules/unistr/u8-mblen: New file.
40526         * modules/unistr/u16-mblen: New file.
40527         * modules/unistr/u32-mblen: New file.
40528         * lib/unistr/u8-mblen.c: New file.
40529         * lib/unistr/u16-mblen.c: New file.
40530         * lib/unistr/u32-mblen.c: New file.
40531
40532         * modules/unistr/u8-mbtouc: New file.
40533         * modules/unistr/u16-mbtouc: New file.
40534         * modules/unistr/u32-mbtouc: New file.
40535         * lib/unistr/u8-mbtouc.c: New file.
40536         * lib/unistr/u16-mbtouc.c: New file.
40537         * lib/unistr/u32-mbtouc.c: New file.
40538
40539         * modules/unistr/u8-mbtouc-safe: New file.
40540         * modules/unistr/u16-mbtouc-safe: New file.
40541         * modules/unistr/u32-mbtouc-safe: New file.
40542         * lib/unistr/u8-mbtouc-safe.c: New file.
40543         * lib/unistr/u16-mbtouc-safe.c: New file.
40544         * lib/unistr/u32-mbtouc-safe.c: New file.
40545
40546         * modules/unistr/u8-move: New file.
40547         * modules/unistr/u16-move: New file.
40548         * modules/unistr/u32-move: New file.
40549         * lib/unistr/u8-move.c: New file.
40550         * lib/unistr/u16-move.c: New file.
40551         * lib/unistr/u32-move.c: New file.
40552         * lib/unistr/u-move.h: New file.
40553
40554         * modules/unistr/u8-next: New file.
40555         * modules/unistr/u16-next: New file.
40556         * modules/unistr/u32-next: New file.
40557         * lib/unistr/u8-next.c: New file.
40558         * lib/unistr/u16-next.c: New file.
40559         * lib/unistr/u32-next.c: New file.
40560
40561         * modules/unistr/u8-prev: New file.
40562         * modules/unistr/u16-prev: New file.
40563         * modules/unistr/u32-prev: New file.
40564         * lib/unistr/u8-prev.c: New file.
40565         * lib/unistr/u16-prev.c: New file.
40566         * lib/unistr/u32-prev.c: New file.
40567
40568         * modules/unistr/u8-set: New file.
40569         * modules/unistr/u16-set: New file.
40570         * modules/unistr/u32-set: New file.
40571         * lib/unistr/u8-set.c: New file.
40572         * lib/unistr/u16-set.c: New file.
40573         * lib/unistr/u32-set.c: New file.
40574         * lib/unistr/u-set.h: New file.
40575
40576         * modules/unistr/u8-startswith: New file.
40577         * modules/unistr/u16-startswith: New file.
40578         * modules/unistr/u32-startswith: New file.
40579         * lib/unistr/u8-startswith.c: New file.
40580         * lib/unistr/u16-startswith.c: New file.
40581         * lib/unistr/u32-startswith.c: New file.
40582         * lib/unistr/u-startswith.h: New file.
40583
40584         * modules/unistr/u8-stpcpy: New file.
40585         * modules/unistr/u16-stpcpy: New file.
40586         * modules/unistr/u32-stpcpy: New file.
40587         * lib/unistr/u8-stpcpy.c: New file.
40588         * lib/unistr/u16-stpcpy.c: New file.
40589         * lib/unistr/u32-stpcpy.c: New file.
40590         * lib/unistr/u-stpcpy.h: New file.
40591
40592         * modules/unistr/u8-stpncpy: New file.
40593         * modules/unistr/u16-stpncpy: New file.
40594         * modules/unistr/u32-stpncpy: New file.
40595         * lib/unistr/u8-stpncpy.c: New file.
40596         * lib/unistr/u16-stpncpy.c: New file.
40597         * lib/unistr/u32-stpncpy.c: New file.
40598         * lib/unistr/u-stpncpy.h: New file.
40599
40600         * modules/unistr/u8-strcat: New file.
40601         * modules/unistr/u16-strcat: New file.
40602         * modules/unistr/u32-strcat: New file.
40603         * lib/unistr/u8-strcat.c: New file.
40604         * lib/unistr/u16-strcat.c: New file.
40605         * lib/unistr/u32-strcat.c: New file.
40606         * lib/unistr/u-strcat.h: New file.
40607
40608         * modules/unistr/u8-strchr: New file.
40609         * modules/unistr/u16-strchr: New file.
40610         * modules/unistr/u32-strchr: New file.
40611         * lib/unistr/u8-strchr.c: New file.
40612         * lib/unistr/u16-strchr.c: New file.
40613         * lib/unistr/u32-strchr.c: New file.
40614
40615         * modules/unistr/u8-strcmp: New file.
40616         * modules/unistr/u16-strcmp: New file.
40617         * modules/unistr/u32-strcmp: New file.
40618         * lib/unistr/u8-strcmp.c: New file.
40619         * lib/unistr/u16-strcmp.c: New file.
40620         * lib/unistr/u32-strcmp.c: New file.
40621
40622         * modules/unistr/u8-strcpy: New file.
40623         * modules/unistr/u16-strcpy: New file.
40624         * modules/unistr/u32-strcpy: New file.
40625         * lib/unistr/u8-strcpy.c: New file.
40626         * lib/unistr/u16-strcpy.c: New file.
40627         * lib/unistr/u32-strcpy.c: New file.
40628         * lib/unistr/u-strcpy.h: New file.
40629
40630         * modules/unistr/u8-strcspn: New file.
40631         * modules/unistr/u16-strcspn: New file.
40632         * modules/unistr/u32-strcspn: New file.
40633         * lib/unistr/u8-strcspn.c: New file.
40634         * lib/unistr/u16-strcspn.c: New file.
40635         * lib/unistr/u32-strcspn.c: New file.
40636         * lib/unistr/u-strcspn.h: New file.
40637
40638         * modules/unistr/u8-strdup: New file.
40639         * modules/unistr/u16-strdup: New file.
40640         * modules/unistr/u32-strdup: New file.
40641         * lib/unistr/u8-strdup.c: New file.
40642         * lib/unistr/u16-strdup.c: New file.
40643         * lib/unistr/u32-strdup.c: New file.
40644         * lib/unistr/u-strdup.h: New file.
40645
40646         * modules/unistr/u8-strlen: New file.
40647         * modules/unistr/u16-strlen: New file.
40648         * modules/unistr/u32-strlen: New file.
40649         * lib/unistr/u8-strlen.c: New file.
40650         * lib/unistr/u16-strlen.c: New file.
40651         * lib/unistr/u32-strlen.c: New file.
40652         * lib/unistr/u-strlen.h: New file.
40653
40654         * modules/unistr/u8-strmblen: New file.
40655         * modules/unistr/u16-strmblen: New file.
40656         * modules/unistr/u32-strmblen: New file.
40657         * lib/unistr/u8-strmblen.c: New file.
40658         * lib/unistr/u16-strmblen.c: New file.
40659         * lib/unistr/u32-strmblen.c: New file.
40660
40661         * modules/unistr/u8-strmbtouc: New file.
40662         * modules/unistr/u16-strmbtouc: New file.
40663         * modules/unistr/u32-strmbtouc: New file.
40664         * lib/unistr/u8-strmbtouc.c: New file.
40665         * lib/unistr/u16-strmbtouc.c: New file.
40666         * lib/unistr/u32-strmbtouc.c: New file.
40667
40668         * modules/unistr/u8-strncat: New file.
40669         * modules/unistr/u16-strncat: New file.
40670         * modules/unistr/u32-strncat: New file.
40671         * lib/unistr/u8-strncat.c: New file.
40672         * lib/unistr/u16-strncat.c: New file.
40673         * lib/unistr/u32-strncat.c: New file.
40674         * lib/unistr/u-strncat.h: New file.
40675
40676         * modules/unistr/u8-strncmp: New file.
40677         * modules/unistr/u16-strncmp: New file.
40678         * modules/unistr/u32-strncmp: New file.
40679         * lib/unistr/u8-strncmp.c: New file.
40680         * lib/unistr/u16-strncmp.c: New file.
40681         * lib/unistr/u32-strncmp.c: New file.
40682
40683         * modules/unistr/u8-strncpy: New file.
40684         * modules/unistr/u16-strncpy: New file.
40685         * modules/unistr/u32-strncpy: New file.
40686         * lib/unistr/u8-strncpy.c: New file.
40687         * lib/unistr/u16-strncpy.c: New file.
40688         * lib/unistr/u32-strncpy.c: New file.
40689         * lib/unistr/u-strncpy.h: New file.
40690
40691         * modules/unistr/u8-strnlen: New file.
40692         * modules/unistr/u16-strnlen: New file.
40693         * modules/unistr/u32-strnlen: New file.
40694         * lib/unistr/u8-strnlen.c: New file.
40695         * lib/unistr/u16-strnlen.c: New file.
40696         * lib/unistr/u32-strnlen.c: New file.
40697         * lib/unistr/u-strnlen.h: New file.
40698
40699         * modules/unistr/u8-strpbrk: New file.
40700         * modules/unistr/u16-strpbrk: New file.
40701         * modules/unistr/u32-strpbrk: New file.
40702         * lib/unistr/u8-strpbrk.c: New file.
40703         * lib/unistr/u16-strpbrk.c: New file.
40704         * lib/unistr/u32-strpbrk.c: New file.
40705         * lib/unistr/u-strpbrk.h: New file.
40706
40707         * modules/unistr/u8-strrchr: New file.
40708         * modules/unistr/u16-strrchr: New file.
40709         * modules/unistr/u32-strrchr: New file.
40710         * lib/unistr/u8-strrchr.c: New file.
40711         * lib/unistr/u16-strrchr.c: New file.
40712         * lib/unistr/u32-strrchr.c: New file.
40713
40714         * modules/unistr/u8-strspn: New file.
40715         * modules/unistr/u16-strspn: New file.
40716         * modules/unistr/u32-strspn: New file.
40717         * lib/unistr/u8-strspn.c: New file.
40718         * lib/unistr/u16-strspn.c: New file.
40719         * lib/unistr/u32-strspn.c: New file.
40720         * lib/unistr/u-strspn.h: New file.
40721
40722         * modules/unistr/u8-strstr: New file.
40723         * modules/unistr/u16-strstr: New file.
40724         * modules/unistr/u32-strstr: New file.
40725         * lib/unistr/u8-strstr.c: New file.
40726         * lib/unistr/u16-strstr.c: New file.
40727         * lib/unistr/u32-strstr.c: New file.
40728         * lib/unistr/u-strstr.h: New file.
40729
40730         * modules/unistr/u8-strtok: New file.
40731         * modules/unistr/u16-strtok: New file.
40732         * modules/unistr/u32-strtok: New file.
40733         * lib/unistr/u8-strtok.c: New file.
40734         * lib/unistr/u16-strtok.c: New file.
40735         * lib/unistr/u32-strtok.c: New file.
40736         * lib/unistr/u-strtok.h: New file.
40737
40738         * modules/unistr/u8-uctomb: New file.
40739         * modules/unistr/u16-uctomb: New file.
40740         * modules/unistr/u32-uctomb: New file.
40741         * lib/unistr/u8-uctomb.c: New file.
40742         * lib/unistr/u16-uctomb.c: New file.
40743         * lib/unistr/u32-uctomb.c: New file.
40744
40745         * MODULES.html.sh (Unicode string functions): Add the new modules.
40746
40747 2007-01-08  Bruno Haible  <bruno@clisp.org>
40748
40749         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
40750         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
40751         subdirectories.
40752
40753 2007-01-08  Karl Berry  <karl@gnu.org>
40754
40755         * doc/error.texi: mention that main() fns must set program_name
40756         when progname is used.
40757
40758 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
40759
40760         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
40761         WCTYPE_H is empty, for the benefit of builds from non-distclean
40762         directories.  Problem reported by Eric Blake in
40763         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
40764
40765 2007-01-08  Bruno Haible  <bruno@clisp.org>
40766
40767         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
40768         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
40769         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
40770         PROVIDE_CANONICALIZE_FILENAME_MODE.
40771         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
40772
40773 2007-01-08  Bruno Haible  <bruno@clisp.org>
40774
40775         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
40776         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
40777         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
40778         * lib/fts.c: Likewise.
40779         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
40780
40781 2006-12-25  Bruno Haible  <bruno@clisp.org>
40782
40783         * modules/utf8-ucs4-safe: New file.
40784         * lib/utf8-ucs4-safe.h: New file.
40785         * lib/unistr/utf8-ucs4-safe.c: New file.
40786
40787         * modules/utf16-ucs4-safe: New file.
40788         * lib/utf16-ucs4-safe.h: New file.
40789         * lib/unistr/utf16-ucs4-safe.c: New file.
40790
40791         * MODULES.html.sh (Unicode string functions): Add the new modules.
40792
40793 2007-01-08  Bruno Haible  <bruno@clisp.org>
40794
40795         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
40796         (Depends-on): Add unitypes.
40797         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
40798         (u8_mbtouc_aux): Move out to separate file.
40799         (u8_mbtouc): Use ucs4_t, uint8_t types.
40800         * lib/unistr/utf8-ucs4.c: New file.
40801
40802         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
40803         (Depends-on): Add unitypes.
40804         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
40805         (u16_mbtouc_aux): Move out to separate file.
40806         (u16_mbtouc): Use ucs4_t, uint16_t types.
40807         * lib/unistr/utf16-ucs4.c: New file.
40808
40809         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
40810         (Depends-on): Add unitypes.
40811         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
40812         (u8_uctomb_aux): Move out to separate file.
40813         (u8_uctomb): Use ucs4_t, uint8_t types.
40814         * lib/unistr/ucs4-utf8.c: New file.
40815
40816         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
40817         (Depends-on): Add unitypes.
40818         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
40819         (u16_uctomb_aux): Move out to separate file.
40820         (u16_uctomb): Use ucs4_t, uint16_t types.
40821         * lib/unistr/ucs4-utf16.c: New file.
40822
40823 2006-12-25  Bruno Haible  <bruno@clisp.org>
40824
40825         * modules/unitypes: New file.
40826         * lib/unitypes.h: New file.
40827         * MODULES.html.sh (func_all_modules): New section "Unicode string
40828         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
40829         this section. Add unitypes.
40830
40831 2007-01-08  Bruno Haible  <bruno@clisp.org>
40832
40833         Avoid variable names that conflict with those from libtool.
40834         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
40835         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
40836         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
40837         library_names_spec to acl_library_names_spec, hardcode_* to
40838         acl_hardcode_*.
40839         Reported by Ralf Wildenhues.
40840
40841 2007-01-08  Bruno Haible  <bruno@clisp.org>
40842
40843         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
40844         definition.
40845         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
40846         definition.
40847         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
40848         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
40849         definition.
40850         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
40851         definition.
40852         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
40853         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
40854         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
40855         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
40856         definition.
40857         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
40858         definition.
40859         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
40860         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
40861         GC_USE_<algorithm>.
40862         * lib/gc-libgcrypt.c: Likewise.
40863         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
40864         * modules/gc-arctwo (configure.ac): Likewise.
40865         * modules/gc-des (configure.ac): Likewise.
40866         * modules/gc-hmac-md5 (configure.ac): Likewise.
40867         * modules/gc-hmac-sha1 (configure.ac): Likewise.
40868         * modules/gc-md2 (configure.ac): Likewise.
40869         * modules/gc-md4 (configure.ac): Likewise.
40870         * modules/gc-md5 (configure.ac): Likewise.
40871         * modules/gc-random (configure.ac): Likewise.
40872         * modules/gc-rijndael (configure.ac): Likewise.
40873         * modules/gc-sha1 (configure.ac): Likewise.
40874
40875 2007-01-08  Bruno Haible  <bruno@clisp.org>
40876
40877         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
40878         macro definition.
40879         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
40880         definition.
40881         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
40882         definition.
40883         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
40884         * modules/fcntl-safer (configure.ac): Likewise.
40885         * modules/fopen-safer (configure.ac): Likewise.
40886         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
40887         GNULIB_FWRITEERROR macro definition.
40888
40889 2007-01-08  Bruno Haible  <bruno@clisp.org>
40890
40891         * m4/gnulib-common.m4: New file.
40892         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
40893         (func_get_filelist): Add m4/gnulib-common.m4.
40894
40895 2007-01-08  Bruno Haible  <bruno@clisp.org>
40896
40897         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
40898         command.
40899
40900 2007-01-08  Jim Meyering  <jim@meyering.net>
40901
40902         Use a more robust test for a "can't happen" condition.
40903         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
40904         narrowed the st_size value.  Presuming the "can't happen" condition
40905         is true, that narrowing could conceivably convert an invalid st_size
40906         value into a valid one.  Instead, use a change based on Matthew
40907         Woehlke's original patch.
40908
40909         Slight readability improvement: use an assert-like macro
40910         in place of literal "abort ()" uses.
40911         * lib/fts.c (fts_assert): Define.
40912         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
40913         Use this macro instead of a bare 'abort'.
40914
40915 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
40916
40917         Don't worry about using IRIX 5.3's wctype.h broken definitions;
40918         simply work around them.
40919         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
40920         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
40921         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
40922         declaring.
40923         Don't bother to define as macros, since the standard doesn't require it.
40924         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
40925         longer worry about IRIX 5.3.
40926         (HAVE_WCTYPE_CTMP_BUG): Remove.
40927
40928 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
40929
40930         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
40931         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
40932         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
40933         Problems reported by Georg Schwarz for IRIX 5.3.
40934
40935         * gnulib-tool (autoconf_minversion): Take the maximum version number
40936         found, not the minimum.  Problem reported by James Youngman.
40937
40938 2007-01-03  Karl Berry  <karl@gnu.org>
40939
40940         * doc/error.texi: new file, explaining interaction with progname.
40941         * doc/gnulib.texi: include it.  Update copyright.
40942
40943 2007-01-03  Simon Josefsson  <simon@josefsson.org>
40944
40945         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
40946         AC_CANONICAL_HOST, to improve autobuild outputs.
40947
40948 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
40949             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
40950
40951         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
40952         sockets, server sockets, and other file descriptors.  Count errors
40953         to compute the return value.  Reorder the code a bit to be easier
40954         to follow.  Don't set event bits that were not requested (except
40955         POLLERR and POLLHUP).
40956
40957 2007-01-01  Bruno Haible  <bruno@clisp.org>
40958
40959         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
40960
40961 2007-01-03  Jim Meyering  <jim@meyering.net>
40962
40963         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
40964
40965 2007-01-02  Bruno Haible  <bruno@clisp.org>
40966
40967         * modules/settime (Include): Require timespec.h.
40968         * modules/nanosleep (Include): Likewise.
40969
40970 2007-01-01  Bruno Haible  <bruno@clisp.org>
40971
40972         * gnulib-tool (func_emit_copyright_notice): Bump year.
40973         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
40974
40975 2007-01-01  Bruno Haible  <bruno@clisp.org>
40976
40977         Improve support for OpenBSD.
40978         * build-aux/config.rpath (libname_spec): Export.
40979         (library_names_spec): New variable. Export.
40980         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
40981         library_names_spec from the config.rpath output. Locate shared library
40982         through the name pattern in library_names_spec.
40983
40984 2007-01-01  Eric Blake  <ebb9@byu.net>
40985
40986         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
40987
40988 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
40989
40990         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
40991         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
40992         assume the C locale, and avoid an "eval" that could cause trouble.
40993         Problem with SORT reported by Bob Proulx.
40994
40995         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
40996         Define.  Trivial patch from Henning Nielsen Lund, originally
40997         sent to bug-grep@gnu.org today.
40998
40999 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
41000
41001         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
41002         struct stat.  Problem reported by Henning Nielsen Lund.
41003         * lib/acl.c: Include acl.h first, to check interface.  Don't
41004         bother to include sys/types.h and sys/stat.h again.
41005
41006 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
41007
41008         Import the following change from libc; problem reported by
41009         Sven Verdoolaege.
41010
41011         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
41012
41013         [BZ #1373]
41014         * lib/argp.h: Remove __NTH for __argp_usage inline function.
41015
41016 2006-12-28  Jim Meyering  <jim@meyering.net>
41017
41018         * build-aux/announce-gen: Do not assume that the package
41019         builds any of tar.gz, tar.bz2, and .xdelta files.
41020         Suggestion from Simon Josefsson.
41021
41022 2006-12-28  Simon Josefsson  <simon@josefsson.org>
41023
41024         * modules/announce-gen: New file.
41025
41026 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
41027
41028         * lib/mbchar.h: Just include <wctype.h>; the wctype module
41029         handles its gotchas now.
41030         * lib/mbswidth.c: Likewise.
41031         * lib/wcwidth.h: Likewise.
41032         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
41033         and iswcntrl; the wctype module does this stuff now.
41034         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
41035         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
41036         * modules/mbchar (Depends-on): Add wctype.
41037         * modules/mbswidth (Depends-on): Likewise.
41038         * modules/wcwidth (Depends-on): Likewise.
41039
41040 2006-12-27  Eric Blake  <ebb9@byu.net>
41041
41042         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
41043         module uses more than what <wctype.h> is required to provide.
41044
41045 2006-12-26  Eric Blake  <ebb9@byu.net>
41046
41047         * gnulib-tool (sed_extract_prog): Avoid space-tab.
41048
41049 2006-12-26  Eric Blake  <ebb9@byu.net>
41050
41051         * modules/absolute-header: New module.
41052         * modules/fcntl (Depends-on): Depend on it.
41053         * modules/inttypes (Depends-on): Likewise.
41054         * modules/stdint (Depends-on): Likewise.
41055         * modules/sys_stat (Depends-on): Likewise.
41056         * modules/wctype (Depends-on): Likewise.
41057         * MODULES.html.sh (Support for building libraries and
41058         executables): Document it.
41059
41060 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
41061
41062         * gnulib-tool (SED): Remove, undoing previous change.
41063         The problem was that it broke coreutils on Solaris, because
41064         "sed --posix" leaked into a makefile.
41065         (sed): New alias, if 'alias' and GNU sed.
41066
41067 2006-12-24  Jim Meyering  <jim@meyering.net>
41068
41069         Work around an fchownat bug in glibc-2.4:
41070         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
41071         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
41072         in spite of the -P option.
41073         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
41074         New macros.
41075         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
41076         * modules/openat (Files): Add lib/fchownat.c.
41077         * lib/openat.c (fchownat): Don't define here.  Move to...
41078         * lib/fchownat.c: ...this new file.
41079
41080 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
41081
41082         Fix bug reported by Bruno Haible in
41083         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
41084         where quotearg.c didn't compile on Mac OS X 10.2 because it
41085         lacks <wchar.h> and wint_t.
41086         * lib/wctype_.h (__wctype_wint_t): New type.
41087         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
41088         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
41089         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
41090         Arg is now of type __wctype_wint_t, not wint_t.
41091         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
41092         substitute HAVE_WINT_T.
41093         * modules/wctype (Files): Add m4/wint_t.m4.
41094         (wctype.h): Substitute HAVE_WINT_T.
41095
41096 2006-12-23  Bruno Haible  <bruno@clisp.org>
41097
41098         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
41099
41100 2006-12-23  Bruno Haible  <bruno@clisp.org>
41101
41102         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
41103         S_ISLNK.
41104         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
41105         mingw.
41106
41107 2006-12-22  Bruno Haible  <bruno@clisp.org>
41108
41109         * lib/copy-file.c: Include acl.h.
41110         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
41111         Close the file descriptors only after being done with copy_acl.
41112         * modules/copy-file (Depends-on): Add acl.
41113
41114 2006-12-22  Bruno Haible  <bruno@clisp.org>
41115
41116         * gnulib-tool (SED): New variable.
41117         Use $SED instead of sed everywhere.
41118
41119 2006-12-22  Bruno Haible  <bruno@clisp.org>
41120
41121         * modules/no-c++: New file.
41122         * m4/no-c++.m4: New file.
41123         * MODULES.html.sh (Support for building libraries and executables):
41124         Add no-c++.
41125
41126 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
41127
41128         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
41129         Include <limits.h>, and use its INT_MAX to rewrite the
41130         j loop so that it does not overflow 'int'.  Problem reported by
41131         Ralf Wildenhues in
41132         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
41133         Play it safe by shifting left by 1 rather than multiplying by 2,
41134         as GCC is less likely to optimize this away when the value
41135         is signed (when it assumes overflow leads to undefined behavior).
41136         Also, don't assume time_t uses two's complement.
41137
41138 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
41139
41140         * MODULES.html.sh: New module wctype.
41141         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
41142         * lib/fnmatch.c: Don't bother to include <wchar.h> before
41143         <wctype.h>, since the new wctype module should fix this.
41144         * lib/quotearg.c: Include <wctype.h> unconditionally, since
41145         the wctype module should arrange for it.
41146         * lib/regex_internal.h: Likewise.
41147         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
41148         since the wctype module should handle this now.
41149         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
41150         * modules/fnmatch (Depends-on): Add wctype.
41151         * modules/quotearg (Depends-on): Likewise.
41152         * modules/regex (Depends-on): Likewise.
41153
41154 2006-12-19  Bruno Haible  <bruno@clisp.org>
41155
41156         * lib/strdup.h [C++]: Wrap definitions in extern "C".
41157         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
41158
41159 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41160
41161         * modules/savewd (Depends-on): Fix dependency on fcntl.
41162
41163 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
41164
41165         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
41166         conforms to C99, rather than relying on the user's environment
41167         setting of STDINT_H.
41168
41169 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
41170         and Eric Blake  <ebb9@byu.net>
41171
41172         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
41173         This is more consistent with the other defines here.
41174         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
41175         Port to z/OS.  Problem reported by Paul Gilmartin.
41176         Change local vars to use gl_ prefix rather than ac_.
41177         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
41178         with other defines.
41179         * modules/double-slash-root: New module.
41180         * modules/dirname (Files): Remove m4/double-slash-root.m4.
41181         (Depends-on): Add double-slash-root.
41182         * MODULES.html.sh (File system functions): Mention new module.
41183
41184 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
41185
41186         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
41187         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
41188         This is for the benefit of gzip, which doesn't do i18n.
41189
41190 2006-12-12  Jim Meyering  <jim@meyering.net>
41191
41192         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
41193         Reported by Andreas Schwab <schwab@suse.de>.
41194
41195 2006-12-12  Bruno Haible  <bruno@clisp.org>
41196
41197         Merge these changes.
41198         2006-09-05  Bruno Haible  <bruno@clisp.org>
41199         * lib/iconvme.c (iconv_string): No need to save and restore errno when
41200         iconv_alloc succeeded.
41201         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
41202         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
41203         test for " && dest " at the end - dest is always != NULL there. Call
41204         iconv with 4xNULL arguments initially, to reset the state. Call iconv
41205         with 2xNULL arguments, also to flush the state storage. Handle the
41206         IRIX iconv behaviour. Realloc the final result, to throw away unused
41207         memory.
41208
41209 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
41210
41211         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
41212         and fchmodat unconditionally, since glibc 2.4 has them.
41213         Problem reported by Arkadiusz Miskiewicz.
41214
41215 2006-12-10  Bruno Haible  <bruno@clisp.org>
41216
41217         * gnulib-tool (func_import): Show the include files only for those
41218         modules that are copied and specified.
41219         Reported by Karl Berry.
41220
41221 2006-12-08  Jim Meyering  <jim@meyering.net>
41222
41223         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
41224         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
41225
41226         * build-aux/announce-gen: Add two new options, both optional:
41227         --bootstrap-tools=TOOL_LIST
41228               a comma-separated list of tools, e.g.,
41229               autoconf,automake,bison,gnulib
41230         --gnulib-snapshot-date=DATE
41231               if gnulib is in the bootstrap tool list,
41232               then report this as the snapshot date.
41233               If not specified, use the current date/time.
41234               If you specify a date here, be sure it's UTC.
41235
41236 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41237
41238         * tests/test-argp-2.sh: Fix test to match actual output.
41239         (func_compare): Fix sed script to be portable.
41240
41241 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
41242
41243         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
41244         workaround for this case.  It is not autoconfigured now; offhand
41245         it's hard to see how to autoconfigure it.
41246
41247 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
41248
41249         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
41250         a directory that is about to be chowned.  Such a directory's
41251         initial file permissions should permit the owner only and this
41252         should not be changed until after the chown, since the group and
41253         other bits would be incorrect if they granted permission before
41254         the chown.
41255
41256         Fix porting problem for iswctype reported by Georg Schwarz in:
41257         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
41258         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
41259         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
41260         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
41261         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
41262
41263 2006-12-03  Jim Meyering  <jim@meyering.net>
41264
41265         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
41266         p->fts_statp may not yet be defined.
41267         (fts_read): Instead, set it in the caller, once p->fts_statp is
41268         sure to be defined, and corresponds to a top-level directory.
41269         This bug made du -x fail.  Here's the coreutils test case:
41270         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
41271         Reported by Mike Frysinger.
41272
41273 2006-12-01  Jim Meyering  <jim@meyering.net>
41274
41275         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
41276         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
41277         Reported by Simon Josefsson.
41278
41279 2006-11-30  Jim Meyering  <jim@meyering.net>
41280
41281         * m4/warning.m4: Use the all-permissive copyright notice
41282         recommended by RMS (rather than LGPL).
41283         * m4/vararrays.m4: Likewise.
41284         * m4/flexmember.m4: Likewise.
41285
41286 2006-11-29  Bruno Haible  <bruno@clisp.org>
41287
41288         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
41289         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
41290         using +=.
41291         Reported by Simon Josefsson <simon@josefsson.org>.
41292
41293 2006-11-28  James Youngman <jay@gnu.org>
41294
41295         * README: Advise users that they might find the bug-gnulib@gnu.org
41296         and autotools-announce@gnu.org mailing lists useful.
41297
41298 2006-11-28  Bruno Haible  <bruno@clisp.org>
41299
41300         * m4/ptrdiff_max.m4: Remove file.
41301
41302 2006-11-21  Bruno Haible  <bruno@clisp.org>
41303
41304         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
41305         _AC_COMPUTE_INT.
41306         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
41307         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
41308         _AC_COMPUTE_INT.
41309         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
41310         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
41311         _AC_COMPUTE_INT.
41312         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
41313
41314 2006-11-28  Jim Meyering  <jim@meyering.net>
41315
41316         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
41317         warning from "gcc -Wshadow" about shadowing the builtin.
41318
41319 2006-11-27  Bruno Haible  <bruno@clisp.org>
41320
41321         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
41322         _AC_COMPUTE_INT.
41323         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
41324
41325 2006-11-27  Bruno Haible  <bruno@clisp.org>
41326             Paul Eggert  <eggert@cs.ucla.edu>
41327
41328         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
41329
41330 2006-11-26  Bruno Haible  <bruno@clisp.org>
41331
41332         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
41333         noinst_LTLIBRARIES.
41334
41335 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
41336             Bruno Haible  <bruno@clisp.org>
41337
41338         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
41339         if compiling with "gcc -ansi".
41340
41341 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
41342
41343         Fix some incompatibilities with gcc -ansi -pedantic.
41344         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
41345         if compiling pedantically with GCC, unless it's C99 or later.
41346         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
41347         it mishandles gcc -ansi -pedantic as well.
41348         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
41349         if gcc -pedantic.
41350         * lib/regexec.c (check_node_accept_bytes): Don't use auto
41351         initializers for struct if -pedantic, unless it's C99 or later.
41352
41353 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
41354
41355         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
41356         Don't close an fd more than once. Identical atimes indicate
41357         success, not failure.
41358
41359 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
41360
41361         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
41362
41363 2006-11-23  Jim Meyering  <jim@meyering.net>
41364
41365         * build-aux/announce-gen: New file.  From coreutils.
41366
41367 2006-11-22  Jim Meyering  <jim@meyering.net>
41368
41369         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
41370         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
41371         (fts_read): Use a temporary to narrow the overused st_size member
41372         before using it in a switch statement.  Reported by Matthew Woehlke.
41373
41374         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
41375         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
41376
41377 2006-11-20  Bruno Haible  <bruno@clisp.org>
41378
41379         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
41380         changequote instead of pairs of brackets.
41381         Reported by Andreas Schwab <schwab@suse.de>.
41382
41383 2006-11-21  Jim Meyering  <jim@meyering.net>
41384
41385         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
41386         so as to remain compatible with older compilers.
41387         Patch from Michael Deutschmann.
41388
41389 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
41390
41391         * MODULES.html.sh (File system functions): Add openat.
41392
41393         * lib/openat.h (rpl_fstatat): New macro, if
41394         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
41395         (fstatat): Define to rpl_fstatat under the same conditions,
41396         unless COMPILING_FSTATAT.
41397         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
41398         seems to have the bug.
41399         * lib/fstatat.c: New file.
41400         * modules/openat (Files): Add it.
41401
41402 2006-11-20  Bruno Haible  <bruno@clisp.org>
41403
41404         * Makefile: New file.
41405
41406 2006-11-20  Jim Meyering  <jim@meyering.net>
41407
41408         The beginnings of syntax-related checks for gnulib.
41409         * lib/Makefile: New file.
41410         * lib/t-idcache: New script.  Ensure that the two halves of
41411         idcache.c stay in sync.
41412
41413         * lib/idcache.c: Adjust comments in user- and group- portions to
41414         be more accurate, and to be consistent with one another.
41415
41416 2006-11-20  Jim Meyering  <jim@meyering.net>
41417
41418         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
41419         continue using the flexible array member (thus, this module performs
41420         half as many malloc calls), with the addition that...
41421         (getgroup, getuser): Consistently record a non-match via an empty
41422         "name" string, and map an empty string match to a NULL return value.
41423         * modules/idcache (Depends-on): Re-add flexmember.
41424
41425         * lib/idcache.c (getuser): Remove all uses of the register keyword.
41426         (getuidbyname, getgroup, getgidbyname): Likewise.
41427
41428         Use cleaner syntax: NULL rather than 0.
41429         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
41430
41431 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
41432
41433         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
41434         It mishandled the case where the group was missing.
41435         Problem reported by Greg Schafer.
41436         * modules/idcache: Likewise.
41437
41438 2006-11-18  Jim Meyering  <jim@meyering.net>
41439
41440         * check-module (%exempt_header): Add exception for some
41441         conditionally-included headers.
41442
41443         * modules/i-ring (Depends-on): Add verify.
41444         (License): Change to LGPL.
41445
41446 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
41447
41448         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
41449         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
41450         and inttostr.h.  Use snprintf rather than uinttostr, so that
41451         LGPLed code doesn't depend on GPLed.
41452
41453 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
41454
41455         * modules/inline (License): Change from GPL to LGPL.
41456
41457 2006-11-17  Jim Meyering  <jim@meyering.net>
41458
41459         * modules/d-type (License): Switch to LGPL.
41460
41461 2006-11-15  Bruno Haible  <bruno@clisp.org>
41462
41463         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
41464
41465 2006-11-15  Eric Blake  <ebb9@byu.net>
41466
41467         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
41468         the module dependency.
41469
41470 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41471             Bruno Haible  <bruno@clisp.org>
41472
41473         * gnulib-tool (func_create_testdir): Add license consistency check.
41474
41475 2006-11-15  Eric Blake  <ebb9@byu.net>
41476
41477         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
41478         random "(cached)" in configure output.
41479
41480 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41481
41482         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
41483         test for conforming inttypes.h is both announced and cached.
41484
41485         * MODULES.html.sh (seen_modules, seen_files): New variables.
41486         (func_module): Rewrite to use a few less gnulib-tool and sed
41487         invocations.  Avoid a couple of quadratic algorithms for ...
41488         (missed_modules, missed_files): ... these, with ...
41489         (func_append, func_tmpdir): ... these new functions, from
41490         gnulib-tool.  Analogously, install traps for cleanup.
41491
41492         * tests/test-gc.c (main): Remove unused variables.
41493         * tests/test-read-file.c: Include stdlib.h, for 'free'.
41494
41495 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
41496
41497         * modules/inttostr (License): Change to LGPL.
41498
41499 2006-11-14  Eric Blake  <ebb9@byu.net>
41500
41501         * modules/tempname (License): Change to LGPL.
41502
41503 2006-11-14  Eric Blake  <ebb9@byu.net>
41504
41505         * doc/functions.texi (Function Portability): *printf functions on
41506         Cygwin now understand all POSIX size specifiers.
41507
41508 2006-11-14  Bruno Haible  <bruno@clisp.org>
41509
41510         * modules/c-ctype (License): Change to LGPL.
41511
41512 2006-11-12  Bruno Haible  <bruno@clisp.org>
41513
41514         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
41515         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
41516         for GNOME libraries, for which the include files are installed in
41517         subdirectories of $prefix/include.
41518
41519 2006-11-12  Bruno Haible  <bruno@clisp.org>
41520
41521         * m4/lib-link.m4: Require at least autoconf-2.54.
41522         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
41523         name to underscores for the --with option.
41524
41525 2006-11-13  Bruno Haible  <bruno@clisp.org>
41526
41527         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
41528         the tests directory.
41529         Reported by Ralf Wildenhues.
41530
41531 2006-11-13  Bruno Haible  <bruno@clisp.org>
41532
41533         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
41534         (func_emit_initmacro_end): Undo the override here.
41535         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
41536         Works around the famous automake error in coreutils.
41537
41538 2006-11-13  Eric Blake  <ebb9@byu.net>
41539
41540         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
41541         element, not its node.
41542
41543 2006-11-12  Bruno Haible  <bruno@clisp.org>
41544
41545         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
41546         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
41547
41548 2006-11-12  Bruno Haible  <bruno@clisp.org>
41549
41550         * gnulib-tool: New option --local-symlink.
41551         (func_usage): Document it.
41552         (lsymbolic): New variable.
41553         (func_import, func_create_testdir): If --symlink was not specified,
41554         test whether --local-symlink was specified and the file comes from
41555         the local_gnulib_dir.
41556
41557 2006-11-12  Bruno Haible  <bruno@clisp.org>
41558
41559         * gnulib-tool (func_ln): New function.
41560         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
41561
41562 2006-11-12  Bruno Haible  <bruno@clisp.org>
41563
41564         Finish support for source files in subdirectories.
41565         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
41566         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
41567         AUTOMAKE_OPTIONS.
41568         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
41569
41570 2006-11-12  Bruno Haible  <bruno@clisp.org>
41571
41572         * gnulib-tool (func_get_automake_snippet): Synthesize also an
41573         EXTRA_lib_SOURCES augmentation.
41574         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
41575
41576 2006-11-12  Jim Meyering  <jim@meyering.net>
41577
41578         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
41579         file descriptors.  This also averts a failure on systems with
41580         native openat support when a traversed directory lacks "x" access.
41581         * lib/fts_.h: Include "i-ring.h"
41582         (struct FTS) [fts_fd_ring]: New member.
41583         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
41584         (FCHDIR): Add parentheses.
41585         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
41586         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
41587         When descending, rather than simply closing the previous
41588         fts_cwd_fd value, push that file descriptor onto the ring.
41589         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
41590         (fts_open): Initialize the new fd_ring member.
41591         (fts_close): Clear the ring.
41592         (fts_safe_changedir): When possible, use our new fd_ring to skip
41593         the diropen and fstat and dev/ino comparison that would normally
41594         accompany a virtual `chdir ("..")'.
41595
41596         * modules/fts (Depends-on): Add i-ring.
41597         * modules/i-ring: New module.
41598         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
41599         * m4/i-ring.m4: New file.
41600
41601 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41602
41603         * gnulib-tool (func_create_testdir): Fix replacement of
41604         `build-aux' in configure.ac.  Run autotools in gltests
41605         subdirectory.
41606         (func_create_testdir, func_create_megatestdir, test): There is
41607         no need for '--force' in most autotool invocations in a new
41608         tree.  Actually fail the whole test if any of the tools, or the
41609         configure or make stages fail.
41610
41611         Sync from Automake.
41612         * build-aux/gnupload: Revert last change.  Add pointer to upload
41613         instructions of the GNU Maintenance Instructions.
41614         Suggestion by Karl Berry.
41615
41616 2006-11-10  Jim Meyering  <jim@meyering.net>
41617
41618         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
41619
41620 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
41621
41622         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
41623         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
41624         (bind_textdomain_codeset) [! ENABLE_NLS]:
41625         Evaluate all the arguments.  That way, callers get compatible behavior
41626         if the arguments have side effects.  Also, it avoids some GCC
41627         diagnostics in some cases; Joel E. Denny reported problems when Bison
41628         was configured with --enable-gcc-warnigs.
41629
41630 2006-11-10  Jim Meyering  <jim@meyering.net>
41631
41632         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
41633         relevant options in CFLAGS (like -O, -fno-inline) are taken into
41634         account.
41635
41636 2006-11-10  Jim Meyering  <jim@meyering.net>
41637
41638         * modules/inline: New file/module.
41639         * modules/xalloc (Files): Remove m4/inline.m4.
41640         (Depends-on): Add inline, instead.
41641         * modules/oset: Likewise.
41642         * modules/list: Likewise.
41643
41644 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
41645
41646         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
41647         Problem reported by Matthew Woehlke.
41648
41649 2006-11-09  Bruno Haible  <bruno@clisp.org>
41650
41651         * lib/tempname.c (gen_tempname): Remove variant that invokes
41652         __gen_tempname.
41653         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
41654         __gen_tempname.
41655
41656 2006-11-08  Bruno Haible  <bruno@clisp.org>
41657
41658         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
41659         to 'yes' instead of 'cross-compiling'.
41660
41661 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
41662
41663         * lib/quotearg.h (quotearg_free): New decl.
41664         * lib/quotearg.c (quotearg_free): New function.
41665         (slot0, nslots, slotvec0, slotvec):
41666         Now file-scope so that quotearg_free can get at them.
41667
41668 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41669
41670         Sync from Automake.
41671         * build-aux/gnupload: Add missing 'gnu' to example URL.
41672         Report by Karl Berry.
41673
41674 2006-11-08  Bruno Haible  <bruno@clisp.org>
41675
41676         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
41677         Suggested by Paul Eggert.
41678
41679 2006-11-08  Jim Meyering  <jim@meyering.net>
41680
41681         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
41682         It's already included if !_LIBC.
41683         (fts_safe_changedir): Add a comment.
41684
41685 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
41686
41687         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
41688         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
41689         Matthew Woehlke.
41690
41691         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
41692         definitions up, to avoid colliding with change below.
41693         (static_inline) [HAVE_INLINE]: New macro.
41694         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
41695         Provide extern decls when !HAVE_INLINE.  Do not define unless
41696         static_inline is defined, either by us or by xmalloc.c.  Use
41697         static_inline rather than static inline.
41698         (XCALLOC): Optimize sizeof(T) = 1 case.
41699         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
41700
41701 2006-11-07  Bruno Haible  <bruno@clisp.org>
41702
41703         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
41704         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
41705         AC_C_INLINE.
41706         * modules/xalloc (Files): Add m4/inline.m4.
41707
41708 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41709
41710         * README: Fix typo.
41711         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
41712         (Miscellanous Notes): ...from this.
41713
41714 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
41715
41716         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
41717         Mention that offsetof should be used instead of sizeof.
41718         From Bruno Haible.
41719
41720 2006-11-07  Bruno Haible  <bruno@clisp.org>
41721
41722         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
41723
41724 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
41725
41726         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
41727         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
41728         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
41729         (gl_tree_add_before, gl_tree_add_after):
41730         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
41731         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
41732         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
41733         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
41734         (gl_linked_add_after, gl_linked_add_at): Likewise.
41735         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
41736         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
41737         (gl_tree_add_before, gl_tree_add_after): Likewise.
41738         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
41739         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
41740         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
41741
41742 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41743
41744         * lib/gl_oset.h: Use C comment style, not C++ comment style.
41745
41746 2006-11-06  Bruno Haible  <bruno@clisp.org>
41747
41748         * m4/inline.m4: New file.
41749         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
41750         * modules/list (Files): Add m4/inline.m4.
41751         * modules/oset (Files): Likewise.
41752
41753 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
41754
41755         * lib/idcache.c: Include <stddef.h>, for offsetof.
41756         (struct userid.name): Change from char * to a flexible array member.
41757         All uses changed.
41758         * modules/idcache (Depends-on): Add flexmember.
41759
41760         * MODULES.html.sh (Core language properties): New module flexmember.
41761         * modules/flexmember, m4/flexmember.m4: New files.
41762
41763         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
41764         inline functions that are identical with the old xnmalloc_inline,
41765         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
41766         that we can avoid some unnecessary integer multiplications and
41767         divisions in the common case where the element size is known at
41768         compile time.
41769         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
41770         needed.
41771         (xnboundedmalloc): Remove.
41772         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
41773         arguments, for consistency with rest of this header.
41774         (xcharalloc): Rewrite using XNMALLOC.
41775         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
41776         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
41777         versions have been moved to lib/xalloc.h and renamed to be the
41778         non-*_inline versions.
41779         (xmalloc, xrealloc): Implement without reference to the xnmalloc
41780         and xnrealloc functions, since those functions are now inline and
41781         now call us.
41782         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
41783         renaming described above.
41784         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
41785         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
41786         captures the dependency in AC_C_INLINE.
41787
41788         New module canonicalize-lgpl, proposed by Charles Wilson in
41789         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
41790         with a few small changes afterwards.
41791         * MODULES.html.sh (File system functions): New module
41792         canonicalize-lgpl.
41793         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
41794         and canonicalize_file_name.
41795         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
41796         * modules/canonicalize-lgpl: New files.
41797
41798 2006-11-05  Bruno Haible  <bruno@clisp.org>
41799
41800         * gnulib-tool (func_import, func_create_testdir): Create directories
41801         also for files in subdirectories of lib/.
41802
41803 2006-11-05  Bruno Haible  <bruno@clisp.org>
41804
41805         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
41806         ANSI C compliant.
41807
41808 2006-11-03  Bruno Haible  <bruno@clisp.org>
41809
41810         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
41811         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
41812         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
41813         (xnboundedmalloc): New inline function.
41814         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
41815         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
41816         xmalloc.
41817         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
41818         xmalloc.
41819         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
41820         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
41821         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
41822         xmalloc.
41823         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
41824         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
41825         xmalloc.
41826         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
41827         gl_tree_add_after): Use XMALLOC instead of xmalloc.
41828         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
41829         xmalloc.
41830         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
41831         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
41832         gl_tree_add_after): Use XMALLOC instead of xmalloc.
41833         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
41834         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
41835         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
41836         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
41837
41838 2006-11-03  Bruno Haible  <bruno@clisp.org>
41839
41840         * lib/c-ctype.h [C++]: Define functions without name mangling.
41841         * lib/fwriteerror.h [C++]: Likewise.
41842         * lib/gcd.h [C++]: Likewise.
41843         * lib/linebreak.h [C++]: Likewise.
41844
41845 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
41846
41847         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
41848         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
41849         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
41850         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
41851         Check for functions and headers just once.
41852         Check for declaration of canonicalize_file_name.
41853         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
41854
41855 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
41856
41857         * gnulib-tool (func_import): Fix typo in actioncmd.
41858
41859 2006-11-02  Bruno Haible  <bruno@clisp.org>
41860
41861         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
41862         newline sequence in the Makefile.am snippet as a space, like "make"
41863         does.
41864         Reported by Roger Persson <perrog@gmail.com>.
41865
41866 2006-11-01  Bruno Haible  <bruno@clisp.org>
41867
41868         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
41869         already declared in <string.h>.
41870         * lib/strcase.h (strncasecmp): Don't declare it if yes.
41871
41872 2006-11-01  Bruno Haible  <bruno@clisp.org>
41873
41874         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
41875         * lib/strcase.h: Include <string.h>.
41876         (strcasecmp): Define to rpl_strcasecmp here.
41877
41878 2006-11-01  Bruno Haible  <bruno@clisp.org>
41879
41880         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
41881
41882 2006-11-01  Eric Blake  <ebb9@byu.net>
41883
41884         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
41885
41886         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
41887
41888 2006-10-29  Bruno Haible  <bruno@clisp.org>
41889
41890         Make it compile in C++ mode.
41891         * lib/full-write.c (full_rw): Add a cast.
41892
41893 2006-11-01  Bruno Haible  <bruno@clisp.org>
41894
41895         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
41896         be POSIX compliant.
41897         Reported by Roger Persson <perrog@gmail.com>.
41898
41899 2006-11-01  Eric Blake  <ebb9@byu.net>
41900
41901         * lib/getopt_.h: Fix comments.
41902
41903 2006-10-31  Eric Blake  <ebb9@byu.net>
41904
41905         * modules/tmpdir (Depends-on): Add sys_stat.
41906         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
41907         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
41908         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
41909         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
41910         tempname.
41911
41912 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
41913
41914         Avoid some C++ diagnostics reported by Bruno Haible.
41915         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
41916         xmalloc.
41917         (quotearg_alloc): Use xcharalloc rather than xmalloc.
41918         (struct slotvec): Move to top level.
41919         (quotearg_n_options): Rewrite to avoid xmalloc.
41920         * lib/xalloc.h (xcharalloc): New function.
41921         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
41922         [defined __cplusplus]: Add function template that provides result
41923         type propagation.  This part of the change is from Bruno Haible.
41924
41925 2006-10-29  Bruno Haible  <bruno@clisp.org>
41926
41927         Make it compile in C++ mode.
41928         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
41929         * lib/strnlen1.c (strnlen1): Cast memchr result.
41930         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
41931         * lib/clean-temp.c (string_equals, string_hash): Add casts.
41932         (create_temp_dir): Rename local variable 'template'.
41933         (compile_csharp_using_sscli): Add cast.
41934         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
41935         * lib/findprog.c (find_in_path): Likewise.
41936         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
41937         * lib/wait-process.c (register_slave_subprocess): Likewise.
41938
41939 2006-10-22  Bruno Haible  <bruno@clisp.org>
41940
41941         * modules/tsearch: New file.
41942         * lib/tsearch.h: New file.
41943         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
41944         * m4/tsearch.m4: New file.
41945         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
41946
41947 2006-10-29  Eric Blake  <ebb9@byu.net>
41948
41949         * lib/arcfour.c: Assume config.h.
41950         * lib/arctwo.c: Likewise.
41951         * lib/base64.c: Likewise.
41952         * lib/check-version.c: Likewise.
41953         * lib/crc.c: Likewise.
41954         * lib/des.c: Likewise.
41955         * lib/gc-gnulib.c: Likewise.
41956         * lib/gc-libgcrypt.c: Likewise.
41957         * lib/gc-pbkdf2-sha1.c: Likewise.
41958         * lib/getaddrinfo.c: Likewise.
41959         * lib/getdelim.c: Likewise.
41960         * lib/getline.c: Likewise.
41961         * lib/hmac-md5.c: Likewise.
41962         * lib/hmac-sha1.c: Likewise.
41963         * lib/iconvme.c: Likewise.
41964         * lib/md2.c: Likewise.
41965         * lib/md4.c: Likewise.
41966         * lib/memxor.c: Likewise.
41967         * lib/read-file.c: Likewise.
41968         * lib/readline.c: Likewise.
41969         * lib/rijndael-alg-fst.c: Likewise.
41970         * lib/rijndael-api-fst.c: Likewise.
41971         * lib/xgetdomainname.c: Likewise.
41972
41973 2006-10-28  Eric Blake  <ebb9@byu.net>
41974
41975         * lib/xstrndup.c: Assume config.h.
41976
41977 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
41978
41979         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
41980         stat-macros.h is now for our own macros, whereas stat_h is for
41981         macros in the <sys/stat.h> name space.
41982         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
41983         (STAT_MACROS_H): Remove.
41984         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
41985         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
41986         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
41987         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
41988         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
41989         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
41990         Move these macros to ...
41991         * lib/stat_.h: here.  Don't include stat-macros.h.
41992         * lib/canonicalize.c: Don't include stat-macros.h.
41993         * lib/chown.c: Likewise.
41994         * lib/euidaccess.c: Likewise.
41995         * lib/file-type.c: Likewise.
41996         * lib/filemode.c: Likewise.
41997         * lib/glob.c: Likewise.
41998         * lib/isapipe.c: Likewise.
41999         * lib/lchown.c: Likewise.
42000         * lib/lstat.c: Likewise.
42001         * lib/mkdir-p.c: Likewise.
42002         * lib/rmdir.c: Likewise.
42003         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
42004         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
42005         unless mkdir isn't declared, to speed up 'configure'.
42006         Always create sys/stat.h, since it's unlikely any real sys/stat.h
42007         would define all the S_* symbols.
42008         * modules/canonicalize (Depends-on):
42009         Depend on sys_stat, not stat-macros.
42010         * modules/chown: Likewise.
42011         * modules/euidaccess: Likewise.
42012         * modules/filemode: Likewise.
42013         * modules/file-type: Likewise.
42014         * modules/glob: Likewise.
42015         * modules/isapipe: Likewise.
42016         * modules/lchown: Likewise.
42017         * modules/lstat: Likewise.
42018         * modules/mkancesdirs: Likewise.
42019         * modules/rmdir: Likewise.
42020         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
42021         * modules/modechange: Likewise.
42022         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
42023         (configure.ac): Remove gl_STAT_MACROS.
42024         * modules/sys_stat (Depends-on): Remove stat-macros.
42025
42026 2006-10-27  Bruno Haible  <bruno@clisp.org>
42027
42028         * m4/signed.m4: Remove file.
42029         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
42030         invocation.
42031         * modules/vasnprintf (Files): Remove m4/signed.m4.
42032
42033 2006-10-27  Bruno Haible  <bruno@clisp.org>
42034
42035         Update to GNU gettext 0.16.
42036         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
42037         m4/inttypes-h.m4, m4/signed.m4.
42038         * m4/gettext.m4: Update to GNU gettext 0.16.
42039         * m4/intl.m4: New file, from GNU gettext.
42040         * m4/intldir.m4: New file, from GNU gettext.
42041         * config/srclist.txt: Update
42042
42043 2006-10-27  Eric Blake  <ebb9@byu.net>
42044
42045         * MODULES.html.sh: Document tempname.
42046         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
42047         dependencies.
42048         (Files): Move lib/tempname.c...
42049         * modules/tempname: ...to this new module.
42050         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
42051         (gl_PREREQ_TEMPNAME): Move...
42052         * m4/tempname.m4: ...to this new file.
42053         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
42054         * modules/sys_stat (Depends-on): Add stat-macros.
42055         * lib/stat_.h (includes): Pick up stat macros.
42056         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
42057         if stat macros are broken.
42058         * lib/tempname.c (includes): No need to include "stat-macros.h".
42059         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
42060         (direxists, __path_search) [!_LIBC]: Don't compile these in
42061         gnulib; the tmpdir module covers that.
42062         * lib/tempname.h: New file.
42063
42064 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
42065
42066         * COPYING: Explain how gnulib-tool converts licence headers.
42067         Almost all wording by Eric Blake.
42068
42069 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
42070
42071         * lib/mbchar.h (is_basic_table): Make read-only.
42072         * lib/mbchar.c (is_basic_table): Likewise.
42073         Reported by John Darrington.
42074
42075 2006-10-25  Bruno Haible  <bruno@clisp.org>
42076
42077         * lib/progname.h (set_program_name): Undefine before defining.
42078
42079 2006-10-25  Bruno Haible  <bruno@clisp.org>
42080
42081         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
42082         false for non-gcc C++ compilers.
42083         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
42084
42085 2006-10-24  Bruno Haible  <bruno@clisp.org>
42086
42087         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
42088         iconv implementations like Irix iconv.
42089
42090 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
42091
42092         * modules/vararrays: New file.
42093         * m4/vararrays.m4: New file, taken from diffutils.
42094         * MODULES.html.sh: New module vararrays.
42095
42096 2006-10-24  Karl Berry  <karl@gnu.org>
42097
42098         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
42099         Don't call GNU Unix.
42100
42101 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42102
42103         * users.txt: Add Libtool.
42104
42105         Sync from Libtool:
42106
42107         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
42108
42109         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
42110         to gnulib's policy of including config.h unconditionally.
42111
42112 2006-10-24  Bruno Haible  <bruno@clisp.org>
42113
42114         * modules/wcwidth (Files): Add m4/wint_t.m4.
42115         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
42116         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
42117
42118 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
42119
42120         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
42121         to pacify GCC with some -W flags enabled.  Problem reported by
42122         Bruno Haible.
42123
42124 2006-10-24  Jim Meyering  <jim@meyering.net>
42125
42126         * MODULES.html.sh: Remove uinttostr.  It's not a module.
42127         Reported by Karl Berry.
42128
42129 2006-10-23  Bruno Haible  <bruno@clisp.org>
42130
42131         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
42132
42133 2006-10-24  Bruno Haible  <bruno@clisp.org>
42134
42135         * lib/gl_list.h: Use C comment style, not C++ comment style.
42136
42137 2006-10-23  Eric Blake  <ebb9@byu.net>
42138
42139         * lib/getaddrinfo.c (includes): Add missing include.
42140
42141 2006-10-23  Bruno Haible  <bruno@clisp.org>
42142             Paul Eggert  <eggert@cs.ucla.edu>
42143
42144         Ability to rename obstack_free.
42145         * lib/obstack.h (__obstack_free): New macro. Declare instead of
42146         obstack_free.
42147         (obstack_free): Invoke the __obstack_free macro.
42148         * lib/obstack.c (obstack_free): Use __obstack_free macro.
42149
42150 2006-10-23  Bruno Haible  <bruno@clisp.org>
42151             Paul Eggert  <eggert@cs.ucla.edu>
42152
42153         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
42154         __argc, __argv from the declaration. (They are defined as macros on
42155         mingw.)
42156
42157 2006-10-22  Bruno Haible  <bruno@clisp.org>
42158
42159         * doc/gnulib-intro.texi: New file.
42160         * doc/gnulib.texi: Include it.
42161
42162 2006-10-21  Bruno Haible  <bruno@clisp.org>
42163
42164         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
42165         "Introduction", "Miscellanous Notes", "Particular Modules".
42166
42167 2006-10-21  Bruno Haible  <bruno@clisp.org>
42168
42169         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42170         Change mostlyclean-local rule to avoid sh syntax error from bash
42171         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
42172
42173 2006-10-23  Jim Meyering  <jim@meyering.net>
42174
42175         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
42176         in place of snprintf.
42177
42178         * modules/inttostr (Files): Add lib/uinttostr.c.
42179         * lib/uinttostr.c (inttostr): New file/function.
42180         * lib/inttostr.h (uinttostr): Declare.
42181         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
42182         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
42183         Add uinttostr.
42184         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
42185
42186 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
42187
42188         * lib/canonicalize.c (ELOOP): Define if not already defined.
42189         Problem reported by Bruno Haible in
42190         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
42191
42192 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
42193
42194         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
42195         Problem reported by Perry Smith and Ville Laurikari.
42196
42197         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
42198         uses.
42199
42200 2006-10-19  Bruno Haible  <bruno@clisp.org>
42201
42202         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
42203         for mingw.
42204
42205 2006-10-19  Bruno Haible  <bruno@clisp.org>
42206
42207         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
42208         Needed for mingw.
42209
42210 2006-10-19  Bruno Haible  <bruno@clisp.org>
42211
42212         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
42213
42214 2006-10-19  Bruno Haible  <bruno@clisp.org>
42215
42216         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
42217         it.
42218
42219 2006-10-19  Bruno Haible  <bruno@clisp.org>
42220
42221         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
42222         invocation.
42223
42224 2006-10-19  Bruno Haible  <bruno@clisp.org>
42225
42226         * gnulib-tool (func_create_testdir): Don't include ftruncate and
42227         mountlist by default.
42228
42229 2006-10-16  Bruno Haible  <bruno@clisp.org>
42230
42231         * lib/c-strstr.c: Include c-strstr.h.
42232
42233 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
42234
42235         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
42236         in a slash.
42237
42238 2006-10-18  Bruno Haible  <bruno@clisp.org>
42239
42240         * lib/lock.h [C++]: Wrap definitions in extern "C".
42241
42242 2006-10-18  Bruno Haible  <bruno@clisp.org>
42243
42244         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
42245         gl_LIBOBJS list.
42246
42247 2006-10-18  Bruno Haible  <bruno@clisp.org>
42248
42249         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
42250
42251 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
42252
42253         * lib/xstrtol.h: Include gettext.h.
42254         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
42255         Problem reported by Eric Blake.
42256         * modules/xstrtol (Depends-on): Add gettext-h.
42257
42258 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
42259
42260         * lib/strftime.c (advance): New macro.
42261         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
42262         incomplete type, so you can't add 0 to it.  Problem and patch
42263         reported by Eelco Dolstra for dietlibc.
42264
42265 2006-10-18  Jim Meyering  <jim@meyering.net>
42266
42267         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
42268         type for a local, and rename it: s/up/user_proc/.
42269
42270 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
42271
42272         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
42273         READ_UTMP_USER_PROCESS.
42274         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
42275
42276 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
42277
42278         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
42279         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
42280
42281 2006-10-17  Eric Blake  <ebb9@byu.net>
42282
42283         * lib/sigprocmask.c (sigprocmask): Fix typo.
42284
42285         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
42286
42287         * modules/clean-temp (Makefile.am): Don't add to make output...
42288         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
42289         config.h.
42290
42291 2006-10-17  Bruno Haible  <bruno@clisp.org>
42292
42293         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
42294         differently if DEFAULT_TEXT_DOMAIN is set.
42295
42296 2006-10-16  Bruno Haible  <bruno@clisp.org>
42297
42298         * lib/clean-temp.c: Include fwriteerror.h.
42299
42300 2006-10-16  Bruno Haible  <bruno@clisp.org>
42301
42302         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
42303
42304 2006-10-16  Bruno Haible  <bruno@clisp.org>
42305
42306         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
42307         * lib/sigprocmask.h: Include <sys/types.h>.
42308         (sigset_t): Use the system's definition if present.
42309
42310 2006-10-17  Eric Blake  <ebb9@byu.net>
42311
42312         * lib/xvasprintf.c (includes): Assume config.h.
42313         * lib/xasprintf.c (includes): Likewise.
42314
42315 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
42316
42317         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
42318         at least as wide as intmax_t.
42319
42320 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
42321
42322         (Imported from Automake.)
42323         * build-aux/gnupload: Update to version 1.1 of directive file.
42324
42325 2006-10-16  Eric Blake  <ebb9@byu.net>
42326
42327         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
42328         match Automake 1.10a.
42329
42330 2006-10-14  Bruno Haible  <bruno@clisp.org>
42331
42332         * modules/sigprocmask: New file.
42333         * lib/sigprocmask.h: New file.
42334         * lib/sigprocmask.c: New file.
42335         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
42336         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
42337         request sigprocmask.o.
42338         (gl_PREREQ_SIGPROCMASK): New macro.
42339         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
42340         (Depends-on): Add sigprocmask.
42341         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
42342         gt_SIGNALBLOCKING. Test for 'raise' only once.
42343         * lib/fatal-signal.c: Include sigprocmask.h.
42344         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
42345         unblock_fatal_signals): Define always.
42346         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42347         sigprocmask.
42348
42349 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
42350
42351         Sync from Automake.
42352         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
42353         which incorrectly sets the mode of an existing destination
42354         directory.  In some cases the unpatched install-sh could do the
42355         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
42356         system.  We hope this is rare in practice, but it's clearly worth
42357         fixing.  Problem reported by Alex Unleashed in
42358         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
42359         Also, don't bother to check for -m bugs unless we're using -m;
42360         suggested by Stepan Kasal.
42361
42362 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42363
42364         Sync from Automake.
42365         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
42366         `-c' flag, so they appear at the same position as in %FASTDEP%
42367         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
42368         which ignores unknown options only after the first non-option.
42369         Bug report against M4 by Nelson H. F. Beebe.
42370
42371 2006-10-13  Jim Meyering  <jim@meyering.net>
42372
42373         Fix a bug in yesterday's change.
42374         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
42375         p->fts_statp->st_dev would be used uninitialized.
42376         Ensures that we always call fts_stat on the very first entry.
42377         Miklos Szeredi reported that find -xdev stopped working.
42378
42379 2006-10-12  Bruno Haible  <bruno@clisp.org>
42380
42381         * gnulib-tool (func_get_automake_snippet): Append an automatically
42382         computed EXTRA_DIST augmentation.
42383         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
42384         * modules/alloca-opt (Makefile.am): Likewise.
42385         * modules/allocsa (Makefile.am): Likewise.
42386         * modules/arcfour (Makefile.am): Likewise.
42387         * modules/arctwo (Makefile.am): Likewise.
42388         * modules/argmatch (Makefile.am): Likewise.
42389         * modules/argz (Makefile.am): Likewise.
42390         * modules/atexit (Makefile.am): Likewise.
42391         * modules/backupfile (Makefile.am): Likewise.
42392         * modules/byteswap (Makefile.am): Likewise.
42393         * modules/c-strtod (Makefile.am): Likewise.
42394         * modules/c-strtold (Makefile.am): Likewise.
42395         * modules/calloc (Makefile.am): Likewise.
42396         * modules/canon-host (Makefile.am): Likewise.
42397         * modules/canonicalize (Makefile.am): Likewise.
42398         * modules/chdir-long (Makefile.am): Likewise.
42399         * modules/chdir-safer (Makefile.am): Likewise.
42400         * modules/check-version (Makefile.am): Likewise.
42401         * modules/chown (Makefile.am): Likewise.
42402         * modules/cloexec (Makefile.am): Likewise.
42403         * modules/close-stream (Makefile.am): Likewise.
42404         * modules/closeout (Makefile.am): Likewise.
42405         * modules/crc (Makefile.am): Likewise.
42406         * modules/csharpexec (Makefile.am): Likewise.
42407         * modules/cycle-check (Makefile.am): Likewise.
42408         * modules/des (Makefile.am): Likewise.
42409         * modules/dev-ino (Makefile.am): Likewise.
42410         * modules/dirfd (Makefile.am): Likewise.
42411         * modules/dirname (Makefile.am): Likewise.
42412         * modules/dup2 (Makefile.am): Likewise.
42413         * modules/eealloc (Makefile.am): Likewise.
42414         * modules/error (Makefile.am): Likewise.
42415         * modules/euidaccess (Makefile.am): Likewise.
42416         * modules/exclude (Makefile.am): Likewise.
42417         * modules/exitfail (Makefile.am): Likewise.
42418         * modules/fcntl-safer (Makefile.am): Likewise.
42419         * modules/fcntl (Makefile.am): Likewise.
42420         * modules/file-type (Makefile.am): Likewise.
42421         * modules/fileblocks (Makefile.am): Likewise.
42422         * modules/filemode (Makefile.am): Likewise.
42423         * modules/filenamecat (Makefile.am): Likewise.
42424         * modules/fnmatch (Makefile.am): Likewise.
42425         * modules/fopen-safer (Makefile.am): Likewise.
42426         * modules/fpending (Makefile.am): Likewise.
42427         * modules/fprintftime (Makefile.am): Likewise.
42428         * modules/free (Makefile.am): Likewise.
42429         * modules/fsusage (Makefile.am): Likewise.
42430         * modules/ftruncate (Makefile.am): Likewise.
42431         * modules/fts (Makefile.am): Likewise.
42432         * modules/gc-arcfour (Makefile.am): Likewise.
42433         * modules/gc-des (Makefile.am): Likewise.
42434         * modules/gc-hmac-md5 (Makefile.am): Likewise.
42435         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
42436         * modules/gc-md4 (Makefile.am): Likewise.
42437         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
42438         * modules/gc-sha1 (Makefile.am): Likewise.
42439         * modules/gc (Makefile.am): Likewise.
42440         * modules/getaddrinfo (Makefile.am): Likewise.
42441         * modules/getcwd (Makefile.am): Likewise.
42442         * modules/getdelim (Makefile.am): Likewise.
42443         * modules/getdomainname (Makefile.am): Likewise.
42444         * modules/getgroups (Makefile.am): Likewise.
42445         * modules/gethostname (Makefile.am): Likewise.
42446         * modules/gethrxtime (Makefile.am): Likewise.
42447         * modules/getline (Makefile.am): Likewise.
42448         * modules/getloadavg (Makefile.am): Likewise.
42449         * modules/getlogin_r (Makefile.am): Likewise.
42450         * modules/getndelim2 (Makefile.am): Likewise.
42451         * modules/getopt (Makefile.am): Likewise.
42452         * modules/getpagesize (Makefile.am): Likewise.
42453         * modules/getpass-gnu (Makefile.am): Likewise.
42454         * modules/getpass (Makefile.am): Likewise.
42455         * modules/getsubopt (Makefile.am): Likewise.
42456         * modules/gettime (Makefile.am): Likewise.
42457         * modules/gettimeofday (Makefile.am): Likewise.
42458         * modules/getugroups (Makefile.am): Likewise.
42459         * modules/getusershell (Makefile.am): Likewise.
42460         * modules/glob (Makefile.am): Likewise.
42461         * modules/group-member (Makefile.am): Likewise.
42462         * modules/hard-locale (Makefile.am): Likewise.
42463         * modules/hash (Makefile.am): Likewise.
42464         * modules/hmac-md5 (Makefile.am): Likewise.
42465         * modules/hmac-sha1 (Makefile.am): Likewise.
42466         * modules/human (Makefile.am): Likewise.
42467         * modules/idcache (Makefile.am): Likewise.
42468         * modules/imaxabs (Makefile.am): Likewise.
42469         * modules/imaxdiv (Makefile.am): Likewise.
42470         * modules/inet_ntop (Makefile.am): Likewise.
42471         * modules/inet_pton (Makefile.am): Likewise.
42472         * modules/intprops (Makefile.am): Likewise.
42473         * modules/inttostr (Makefile.am): Likewise.
42474         * modules/inttypes (Makefile.am): Likewise.
42475         * modules/isapipe (Makefile.am): Likewise.
42476         * modules/javaversion (Makefile.am): Likewise.
42477         * modules/lchmod (Makefile.am): Likewise.
42478         * modules/lchown (Makefile.am): Likewise.
42479         * modules/localcharset (Makefile.am): Likewise.
42480         * modules/long-options (Makefile.am): Likewise.
42481         * modules/lstat (Makefile.am): Likewise.
42482         * modules/malloc (Makefile.am): Likewise.
42483         * modules/mathl (Makefile.am): Likewise.
42484         * modules/mbchar (Makefile.am): Likewise.
42485         * modules/md2 (Makefile.am): Likewise.
42486         * modules/md4 (Makefile.am): Likewise.
42487         * modules/md5 (Makefile.am): Likewise.
42488         * modules/memcasecmp (Makefile.am): Likewise.
42489         * modules/memchr (Makefile.am): Likewise.
42490         * modules/memcmp (Makefile.am): Likewise.
42491         * modules/memcoll (Makefile.am): Likewise.
42492         * modules/memcpy (Makefile.am): Likewise.
42493         * modules/memmem (Makefile.am): Likewise.
42494         * modules/memmove (Makefile.am): Likewise.
42495         * modules/mempcpy (Makefile.am): Likewise.
42496         * modules/memrchr (Makefile.am): Likewise.
42497         * modules/memset (Makefile.am): Likewise.
42498         * modules/memxor (Makefile.am): Likewise.
42499         * modules/mkancesdirs (Makefile.am): Likewise.
42500         * modules/mkdir-p (Makefile.am): Likewise.
42501         * modules/mkdir (Makefile.am): Likewise.
42502         * modules/mkdtemp (Makefile.am): Likewise.
42503         * modules/mkstemp (Makefile.am): Likewise.
42504         * modules/mktime (Makefile.am): Likewise.
42505         * modules/modechange (Makefile.am): Likewise.
42506         * modules/mountlist (Makefile.am): Likewise.
42507         * modules/nanosleep (Makefile.am): Likewise.
42508         * modules/obstack (Makefile.am): Likewise.
42509         * modules/openat (Makefile.am): Likewise.
42510         * modules/pagealign_alloc (Makefile.am): Likewise.
42511         * modules/pathmax (Makefile.am): Likewise.
42512         * modules/physmem (Makefile.am): Likewise.
42513         * modules/poll (Makefile.am): Likewise.
42514         * modules/posixtm (Makefile.am): Likewise.
42515         * modules/posixver (Makefile.am): Likewise.
42516         * modules/putenv (Makefile.am): Likewise.
42517         * modules/quote (Makefile.am): Likewise.
42518         * modules/quotearg (Makefile.am): Likewise.
42519         * modules/raise (Makefile.am): Likewise.
42520         * modules/read-file (Makefile.am): Likewise.
42521         * modules/readline (Makefile.am): Likewise.
42522         * modules/readlink (Makefile.am): Likewise.
42523         * modules/readtokens (Makefile.am): Likewise.
42524         * modules/readutmp (Makefile.am): Likewise.
42525         * modules/realloc (Makefile.am): Likewise.
42526         * modules/regex (Makefile.am): Likewise.
42527         * modules/rename-dest-slash (Makefile.am): Likewise.
42528         * modules/rename (Makefile.am): Likewise.
42529         * modules/rijndael (Makefile.am): Likewise.
42530         * modules/rmdir (Makefile.am): Likewise.
42531         * modules/rpmatch (Makefile.am): Likewise.
42532         * modules/safe-read (Makefile.am): Likewise.
42533         * modules/safe-write (Makefile.am): Likewise.
42534         * modules/same-inode (Makefile.am): Likewise.
42535         * modules/same (Makefile.am): Likewise.
42536         * modules/save-cwd (Makefile.am): Likewise.
42537         * modules/savedir (Makefile.am): Likewise.
42538         * modules/setenv (Makefile.am): Likewise.
42539         * modules/settime (Makefile.am): Likewise.
42540         * modules/sha1 (Makefile.am): Likewise.
42541         * modules/sig2str (Makefile.am): Likewise.
42542         * modules/snprintf (Makefile.am): Likewise.
42543         * modules/stat-macros (Makefile.am): Likewise.
42544         * modules/stat-time (Makefile.am): Likewise.
42545         * modules/stdbool (Makefile.am): Likewise.
42546         * modules/stdint (Makefile.am): Likewise.
42547         * modules/stdlib-safer (Makefile.am): Likewise.
42548         * modules/stpcpy (Makefile.am): Likewise.
42549         * modules/stpncpy (Makefile.am): Likewise.
42550         * modules/strcase (Makefile.am): Likewise.
42551         * modules/strcasestr (Makefile.am): Likewise.
42552         * modules/strchrnul (Makefile.am): Likewise.
42553         * modules/strcspn (Makefile.am): Likewise.
42554         * modules/strdup (Makefile.am): Likewise.
42555         * modules/strerror (Makefile.am): Likewise.
42556         * modules/strftime (Makefile.am): Likewise.
42557         * modules/strndup (Makefile.am): Likewise.
42558         * modules/strnlen (Makefile.am): Likewise.
42559         * modules/strpbrk (Makefile.am): Likewise.
42560         * modules/strsep (Makefile.am): Likewise.
42561         * modules/strstr (Makefile.am): Likewise.
42562         * modules/strtod (Makefile.am): Likewise.
42563         * modules/strtoimax (Makefile.am): Likewise.
42564         * modules/strtok_r (Makefile.am): Likewise.
42565         * modules/strtol (Makefile.am): Likewise.
42566         * modules/strtoll (Makefile.am): Likewise.
42567         * modules/strtoul (Makefile.am): Likewise.
42568         * modules/strtoull (Makefile.am): Likewise.
42569         * modules/strtoumax (Makefile.am): Likewise.
42570         * modules/strverscmp (Makefile.am): Likewise.
42571         * modules/sys_socket (Makefile.am): Likewise.
42572         * modules/sys_stat (Makefile.am): Likewise.
42573         * modules/sysexits (Makefile.am): Likewise.
42574         * modules/time_r (Makefile.am): Likewise.
42575         * modules/timegm (Makefile.am): Likewise.
42576         * modules/timespec (Makefile.am): Likewise.
42577         * modules/tmpfile-safer (Makefile.am): Likewise.
42578         * modules/trim (Makefile.am): Likewise.
42579         * modules/unistd-safer (Makefile.am): Likewise.
42580         * modules/unlinkdir (Makefile.am): Likewise.
42581         * modules/unlocked-io (Makefile.am): Likewise.
42582         * modules/userspec (Makefile.am): Likewise.
42583         * modules/utime (Makefile.am): Likewise.
42584         * modules/utimecmp (Makefile.am): Likewise.
42585         * modules/utimens (Makefile.am): Likewise.
42586         * modules/vasnprintf (Makefile.am): Likewise.
42587         * modules/vasprintf (Makefile.am): Likewise.
42588         * modules/vsnprintf (Makefile.am): Likewise.
42589         * modules/xalloc (Makefile.am): Likewise.
42590         * modules/xgetcwd (Makefile.am): Likewise.
42591         * modules/xnanosleep (Makefile.am): Likewise.
42592         * modules/xreadlink (Makefile.am): Likewise.
42593         * modules/xstrtod (Makefile.am): Likewise.
42594         * modules/xstrtol (Makefile.am): Likewise.
42595         * modules/xstrtold (Makefile.am): Likewise.
42596         * modules/yesno (Makefile.am): Likewise.
42597         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
42598
42599 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
42600
42601         * modules/error (Makefile.am): Distribute files through
42602         EXTRA_DIST, not lib_SOURCES.
42603
42604 2006-10-12  Eric Blake  <ebb9@byu.net>
42605
42606         * modules/error (Makefile.am): Distribute files in /lib.
42607         * modules/obstack (Makefile.am): Likewise.
42608
42609 2006-10-12  Bruno Haible  <bruno@clisp.org>
42610
42611         * modules/acl (Makefile.am): Distribute all files in lib/ through
42612         EXTRA_DIST.
42613         * modules/arcfour (Makefile.am): Likewise.
42614         * modules/arctwo (Makefile.am): Likewise.
42615         * modules/argmatch (Makefile.am): Likewise.
42616         * modules/argz (Makefile.am): Likewise.
42617         * modules/atexit (Makefile.am): Likewise.
42618         * modules/backupfile (Makefile.am): Likewise.
42619         * modules/c-strtod (Makefile.am): Likewise.
42620         * modules/c-strtold (Makefile.am): Likewise.
42621         * modules/calloc (Makefile.am): Likewise.
42622         * modules/canon-host (Makefile.am): Likewise.
42623         * modules/canonicalize (Makefile.am): Likewise.
42624         * modules/chdir-long (Makefile.am): Likewise.
42625         * modules/chdir-safer (Makefile.am): Likewise.
42626         * modules/check-version (Makefile.am): Likewise.
42627         * modules/chown (Makefile.am): Likewise.
42628         * modules/cloexec (Makefile.am): Likewise.
42629         * modules/close-stream (Makefile.am): Likewise.
42630         * modules/closeout (Makefile.am): Likewise.
42631         * modules/crc (Makefile.am): Likewise.
42632         * modules/cycle-check (Makefile.am): Likewise.
42633         * modules/des (Makefile.am): Likewise.
42634         * modules/dirfd (Makefile.am): Likewise.
42635         * modules/dirname (Makefile.am): Likewise.
42636         * modules/dup2 (Makefile.am): Likewise.
42637         * modules/euidaccess (Makefile.am): Likewise.
42638         * modules/exclude (Makefile.am): Likewise.
42639         * modules/exitfail (Makefile.am): Likewise.
42640         * modules/fcntl-safer (Makefile.am): Likewise.
42641         * modules/file-type (Makefile.am): Likewise.
42642         * modules/fileblocks (Makefile.am): Likewise.
42643         * modules/filemode (Makefile.am): Likewise.
42644         * modules/filenamecat (Makefile.am): Likewise.
42645         * modules/fnmatch (Makefile.am): Likewise.
42646         * modules/fopen-safer (Makefile.am): Likewise.
42647         * modules/fpending (Makefile.am): Likewise.
42648         * modules/fprintftime (Makefile.am): Likewise.
42649         * modules/free (Makefile.am): Likewise.
42650         * modules/fsusage (Makefile.am): Likewise.
42651         * modules/ftruncate (Makefile.am): Likewise.
42652         * modules/fts (Makefile.am): Likewise.
42653         * modules/gc (Makefile.am): Likewise.
42654         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
42655         * modules/getaddrinfo (Makefile.am): Likewise.
42656         * modules/getcwd (Makefile.am): Likewise.
42657         * modules/getdelim (Makefile.am): Likewise.
42658         * modules/getdomainname (Makefile.am): Likewise.
42659         * modules/getgroups (Makefile.am): Likewise.
42660         * modules/gethostname (Makefile.am): Likewise.
42661         * modules/gethrxtime (Makefile.am): Likewise.
42662         * modules/getline (Makefile.am): Likewise.
42663         * modules/getloadavg (Makefile.am): Likewise.
42664         * modules/getlogin_r (Makefile.am): Likewise.
42665         * modules/getopt (Makefile.am): Likewise.
42666         * modules/getpass (Makefile.am): Likewise.
42667         * modules/getpass-gnu (Makefile.am): Likewise.
42668         * modules/getsubopt (Makefile.am): Likewise.
42669         * modules/gettime (Makefile.am): Likewise.
42670         * modules/gettimeofday (Makefile.am): Likewise.
42671         * modules/getugroups (Makefile.am): Likewise.
42672         * modules/getusershell (Makefile.am): Likewise.
42673         * modules/glob (Makefile.am): Likewise.
42674         * modules/group-member (Makefile.am): Likewise.
42675         * modules/hard-locale (Makefile.am): Likewise.
42676         * modules/hash (Makefile.am): Likewise.
42677         * modules/hmac-md5 (Makefile.am): Likewise.
42678         * modules/hmac-sha1 (Makefile.am): Likewise.
42679         * modules/human (Makefile.am): Likewise.
42680         * modules/idcache (Makefile.am): Likewise.
42681         * modules/imaxabs (Makefile.am): Likewise.
42682         * modules/imaxdiv (Makefile.am): Likewise.
42683         * modules/inet_ntop (Makefile.am): Likewise.
42684         * modules/inet_pton (Makefile.am): Likewise.
42685         * modules/inttostr (Makefile.am): Likewise.
42686         * modules/isapipe (Makefile.am): Likewise.
42687         * modules/lchown (Makefile.am): Likewise.
42688         * modules/long-options (Makefile.am): Likewise.
42689         * modules/lstat (Makefile.am): Likewise.
42690         * modules/malloc (Makefile.am): Likewise.
42691         * modules/mathl (Makefile.am): Likewise.
42692         * modules/mbchar (Makefile.am): Likewise.
42693         * modules/md2 (Makefile.am): Likewise.
42694         * modules/md4 (Makefile.am): Likewise.
42695         * modules/md5 (Makefile.am): Likewise.
42696         * modules/memcasecmp (Makefile.am): Likewise.
42697         * modules/memchr (Makefile.am): Likewise.
42698         * modules/memcmp (Makefile.am): Likewise.
42699         * modules/memcoll (Makefile.am): Likewise.
42700         * modules/memcpy (Makefile.am): Likewise.
42701         * modules/memmem (Makefile.am): Likewise.
42702         * modules/memmove (Makefile.am): Likewise.
42703         * modules/mempcpy (Makefile.am): Likewise.
42704         * modules/memrchr (Makefile.am): Likewise.
42705         * modules/memset (Makefile.am): Likewise.
42706         * modules/memxor (Makefile.am): Likewise.
42707         * modules/mkancesdirs (Makefile.am): Likewise.
42708         * modules/mkdir (Makefile.am): Likewise.
42709         * modules/mkdir-p (Makefile.am): Likewise.
42710         * modules/mkdtemp (Makefile.am): Likewise.
42711         * modules/mkstemp (Makefile.am): Likewise.
42712         * modules/mktime (Makefile.am): Likewise.
42713         * modules/modechange (Makefile.am): Likewise.
42714         * modules/mountlist (Makefile.am): Likewise.
42715         * modules/nanosleep (Makefile.am): Likewise.
42716         * modules/openat (Makefile.am): Likewise.
42717         * modules/pagealign_alloc (Makefile.am): Likewise.
42718         * modules/physmem (Makefile.am): Likewise.
42719         * modules/poll (Makefile.am): Likewise.
42720         * modules/posixtm (Makefile.am): Likewise.
42721         * modules/posixver (Makefile.am): Likewise.
42722         * modules/putenv (Makefile.am): Likewise.
42723         * modules/quote (Makefile.am): Likewise.
42724         * modules/quotearg (Makefile.am): Likewise.
42725         * modules/raise (Makefile.am): Likewise.
42726         * modules/read-file (Makefile.am): Likewise.
42727         * modules/readline (Makefile.am): Likewise.
42728         * modules/readlink (Makefile.am): Likewise.
42729         * modules/readtokens (Makefile.am): Likewise.
42730         * modules/readutmp (Makefile.am): Likewise.
42731         * modules/realloc (Makefile.am): Likewise.
42732         * modules/regex (Makefile.am): Likewise.
42733         * modules/rename (Makefile.am): Likewise.
42734         * modules/rename-dest-slash (Makefile.am): Likewise.
42735         * modules/rijndael (Makefile.am): Likewise.
42736         * modules/rmdir (Makefile.am): Likewise.
42737         * modules/rpmatch (Makefile.am): Likewise.
42738         * modules/safe-read (Makefile.am): Likewise.
42739         * modules/safe-write (Makefile.am): Likewise.
42740         * modules/same (Makefile.am): Likewise.
42741         * modules/save-cwd (Makefile.am): Likewise.
42742         * modules/savedir (Makefile.am): Likewise.
42743         * modules/setenv (Makefile.am): Likewise.
42744         * modules/settime (Makefile.am): Likewise.
42745         * modules/sha1 (Makefile.am): Likewise.
42746         * modules/sig2str (Makefile.am): Likewise.
42747         * modules/snprintf (Makefile.am): Likewise.
42748         * modules/stdlib-safer (Makefile.am): Likewise.
42749         * modules/stpcpy (Makefile.am): Likewise.
42750         * modules/stpncpy (Makefile.am): Likewise.
42751         * modules/strcase (Makefile.am): Likewise.
42752         * modules/strcasestr (Makefile.am): Likewise.
42753         * modules/strchrnul (Makefile.am): Likewise.
42754         * modules/strcspn (Makefile.am): Likewise.
42755         * modules/strdup (Makefile.am): Likewise.
42756         * modules/strerror (Makefile.am): Likewise.
42757         * modules/strftime (Makefile.am): Likewise.
42758         * modules/strndup (Makefile.am): Likewise.
42759         * modules/strnlen (Makefile.am): Likewise.
42760         * modules/strpbrk (Makefile.am): Likewise.
42761         * modules/strsep (Makefile.am): Likewise.
42762         * modules/strstr (Makefile.am): Likewise.
42763         * modules/strtod (Makefile.am): Likewise.
42764         * modules/strtoimax (Makefile.am): Likewise.
42765         * modules/strtok_r (Makefile.am): Likewise.
42766         * modules/strtol (Makefile.am): Likewise.
42767         * modules/strtoll (Makefile.am): Likewise.
42768         * modules/strtoul (Makefile.am): Likewise.
42769         * modules/strtoull (Makefile.am): Likewise.
42770         * modules/strtoumax (Makefile.am): Likewise.
42771         * modules/strverscmp (Makefile.am): Likewise.
42772         * modules/time_r (Makefile.am): Likewise.
42773         * modules/timegm (Makefile.am): Likewise.
42774         * modules/tmpfile-safer (Makefile.am): Likewise.
42775         * modules/unistd-safer (Makefile.am): Likewise.
42776         * modules/unlinkdir (Makefile.am): Likewise.
42777         * modules/userspec (Makefile.am): Likewise.
42778         * modules/utime (Makefile.am): Likewise.
42779         * modules/utimecmp (Makefile.am): Likewise.
42780         * modules/utimens (Makefile.am): Likewise.
42781         * modules/vasnprintf (Makefile.am): Likewise.
42782         * modules/vasprintf (Makefile.am): Likewise.
42783         * modules/vsnprintf (Makefile.am): Likewise.
42784         * modules/xalloc (Makefile.am): Likewise.
42785         * modules/xgetcwd (Makefile.am): Likewise.
42786         * modules/xnanosleep (Makefile.am): Likewise.
42787         * modules/xreadlink (Makefile.am): Likewise.
42788         * modules/xstrtod (Makefile.am): Likewise.
42789         * modules/xstrtol (Makefile.am): Likewise.
42790         * modules/xstrtold (Makefile.am): Likewise.
42791         * modules/yesno (Makefile.am): Likewise.
42792
42793 2006-10-12  Jim Meyering  <jim@meyering.net>
42794
42795         * m4/getloadavg.m4: Revert the change below.
42796
42797         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
42798         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
42799         fail with a symlink, which is what coreutils' ./bootstrap now
42800         creates by default.
42801
42802 2006-10-12  Bruno Haible  <bruno@clisp.org>
42803
42804         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
42805         mingw.
42806         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
42807         MSVC and mingw explicitly.
42808
42809 2006-10-11  Simon Josefsson  <jas@extundo.com>
42810             Bruno Haible  <bruno@clisp.org>
42811
42812         Add support for multiple gnulib-tool invocations in the scope of a
42813         single configure.ac file.
42814         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
42815         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
42816         with the same contents as the _LIBADD variable.
42817         (func_emit_initmacro_start, func_emit_initmacro_end,
42818         func_emit_initmacro_done): New functions.
42819         (func_import, func_create_testdir): Invoke them. Allow the identifiers
42820         gl_LIBOBJS and gl_LTLIBOBJS.
42821
42822 2006-10-11  Bruno Haible  <bruno@clisp.org>
42823
42824         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
42825         (func_create_testdir): Don't create po/Makefile.am, don't invoke
42826         autoreconf. Instead, invoke autopoint explicitly but move back the
42827         *.m4 files from gnulib.
42828
42829 2006-10-11  Bruno Haible  <bruno@clisp.org>
42830
42831         * gnulib-tool (func_usage): Make module names after --create-testdir
42832         optional.
42833         (func_create_testdir): If no module was specified, use nearly all
42834         modules.
42835
42836 2006-10-12  Jim Meyering  <jim@meyering.net>
42837
42838         Big performance improvement for fts-based tools that use FTS_NOSTAT.
42839         Avoid spurious inode-mismatch problems on non-POSIX file systems.
42840         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
42841         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
42842         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
42843         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
42844         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
42845         (fts_set_stat_required): New function.
42846         (fts_open): Defer the calls to fts_stat, if possible or requested.
42847         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
42848         into fts_stat itself.
42849         (fts_read): Perform any required (deferred) fts_stat call.
42850         (fts_build): Likewise, for the directory we're about to open and read.
42851         In the readdir loop, carefully decide whether each entry will require
42852         an eventual call to fts_stat, using dirent.d_type info if available.
42853         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
42854         a command line argument into this function.  Update all callers.
42855         Map a return value of FTS_DOT to FTS_D for a command line argument.
42856         * modules/fts (Depends-on): Add d-type.  Alphabetize.
42857         Thanks to Miklos Szeredi for his tenacity and for the initial
42858         bug report about "find" failing on a FUSE-based file system.
42859
42860         * lib/fts.c (fts_open): Use consistent indentation.
42861
42862 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
42863
42864         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
42865         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
42866         reported by Jim Meyering.  All uses of cache variables renamed
42867         to match Autoconf's.
42868         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
42869         the other one.
42870
42871         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
42872         Fix misspelling in diagnostic.
42873
42874 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
42875
42876         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
42877         defined.  Problem reported by Matthew Woehlke.
42878
42879         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
42880         Add support for Tandem NonStop R series.
42881         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
42882         Use new macro.
42883
42884         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
42885         (has_trailing_slash): Omit size arg; all callers changed.
42886         Omit 'inline', since it doesn't help performance and we'd
42887         need to configure it.
42888         Don't count //, ///, etc. as having a trailing slash.
42889         As a side effect, this removes a C99ism reported by Matthew Woehlke.
42890         (rpl_rename_dest_slash): On failure, use rename's errno rather
42891         than (in some cases) an incorrect or junk errno.
42892         Simplify code by removing need to compute length; this does
42893         cause it to make two passes instead of one over the file name,
42894         but it's worth it.
42895
42896         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
42897         change, since Autoconf's version may no longer be appropriate now
42898         that we are using CVS Autoconf's version.  Add support for Tandem.
42899
42900 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
42901             Bruno Haible  <bruno@clisp.org>
42902
42903         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
42904         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
42905         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
42906         gl_AC_TYPE_LONG_LONG.
42907
42908         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
42909         instead of HAVE_LONG_LONG.
42910         * lib/printf-args.c (printf_fetchargs): Likewise.
42911         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
42912         * lib/vasnprintf.c (VASNPRINTF): Likewise.
42913         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
42914         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
42915         gl_AC_TYPE_LONG_LONG.
42916
42917 2006-10-11  Bruno Haible  <bruno@clisp.org>
42918
42919         * m4/longlong.m4: Add comments.
42920         * m4/ulonglong.m4: Likewise.
42921
42922 2006-10-10  Bruno Haible  <bruno@clisp.org>
42923
42924         Make it possible to #define stpcpy, strdup to aliases.
42925         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
42926         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
42927
42928 2006-10-10  Bruno Haible  <bruno@clisp.org>
42929
42930         Make it possible to #define gcd to an alias.
42931         * lib/gcd.c: Include config.h.
42932
42933 2006-10-10  Bruno Haible  <bruno@clisp.org>
42934
42935         Make it possible to #define c_isascii to an alias.
42936         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
42937         defined. Undefine the macros before defining them, to avoid gcc
42938         warnings.
42939         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
42940         define NO_C_CTYPE_MACROS early.
42941
42942 2006-10-10  Bruno Haible  <bruno@clisp.org>
42943
42944         Make it possible to #define set_program_name to an alias.
42945         * lib/progname.c: Don't undefine set_program_name; instead, undefine
42946         ENABLE_RELOCATABLE early.
42947
42948 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
42949
42950         Port to Tandem NSK OSS, which has 64-bit signed int but at most
42951         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
42952         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
42953         More generally, don't assume that 64-bit signed int is available
42954         if unsigned int is, and vice versa.
42955         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
42956         unsigned symbols, not on their signed counterparts.
42957         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
42958         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
42959         (UINT64_C, UINTMAX_C):
42960         Likewise.
42961         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
42962         unsigned counterparts.
42963         (Have_long_long, Unsigned): New macros.
42964         (Int): Renamed from INT.
42965         (strtoimax): Use the new macros.
42966         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
42967         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
42968         * modules/inttypes (inttypes.h): Substitute
42969         HAVE_UNSIGNED_LONG_LONG_INT.
42970         * modules/stdint (stdint.h): Likewise.
42971         (Files): Add m4/ulonglong.m4.
42972
42973 2006-10-10  Bruno Haible  <bruno@clisp.org>
42974
42975         Fix a gcc -Wshadow warning.
42976         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
42977         to 'bucket'.
42978         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
42979         gl_linked_indexof_from_to): Likewise.
42980         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
42981         Likewise.
42982         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
42983         Likewise.
42984         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
42985         Reported by Eric Blake.
42986
42987 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
42988
42989         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
42990         for NetBSD.  Problem reported by Bruno Haible.
42991
42992 2006-10-09  Jim Meyering  <jim@meyering.net>
42993
42994         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
42995         Patch from Bruno Haible.
42996
42997 2006-10-09  Jim Meyering  <jim@meyering.net>
42998
42999         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
43000         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
43001         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
43002
43003 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
43004
43005         Don't include <config.h> twice; this doesn't work in some cases,
43006         e.g., when config.h has "#define intmax_t long long int" and
43007         we include <config.h>, <inttypes.h>, <config.h> in that order.
43008         Problem reported by Matthew Woehlke in:
43009         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
43010         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
43011         * lib/fts-cycle.c: Don't include config.h.
43012         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
43013         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
43014         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
43015         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
43016         inttypes.h.
43017         * lib/xstrtoumax.c: Likewise.
43018         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
43019         __strtol and the like, so that this module is more like its siblings.
43020         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
43021         Remove; no longer needed now that we assume gnulib inttypes.h.
43022
43023 2006-10-08  Bruno Haible  <bruno@clisp.org>
43024
43025         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
43026         option.
43027
43028 2006-10-07  Jim Meyering  <jim@meyering.net>
43029
43030         * modules/inttypes (inttypes.h): Revert what seems to have been
43031         an inadvertent part of today's change: use "|", not "/" in the
43032         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
43033
43034 2006-10-07  Bruno Haible  <bruno@clisp.org>
43035
43036         * modules/sublist: New file.
43037
43038 2006-10-07  Bruno Haible  <bruno@clisp.org>
43039
43040         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
43041         * modules/argz (argz.h): Likewise.
43042         * modules/arpa_inet (arpa/inet.h): Likewise.
43043         * modules/byteswap (byteswap.h): Likewise.
43044         * modules/configmake (configmake.h): Likewise.
43045         * modules/fcntl (fcntl.h): Likewise.
43046         * modules/fnmatch (fnmatch.h): Likewise.
43047         * modules/getopt (getopt.h): Likewise.
43048         * modules/glob (glob.h): Likewise.
43049         * modules/inttypes (inttypes.h): Likewise.
43050         * modules/netinet_in (netinet/in.h): Likewise.
43051         * modules/poll (poll.h): Likewise.
43052         * modules/stdbool (stdbool.h): Likewise.
43053         * modules/stdint (stdint.h): Likewise.
43054         * modules/sys_select (sys/select.h): Likewise.
43055         * modules/sys_socket (sys/socket.h): Likewise.
43056         * modules/sys_stat (sys/stat.h): Likewise.
43057         * modules/sysexits (sysexits.h): Likewise.
43058         * modules/unistd (unistd.h): Likewise.
43059         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43060         Add a "DO NOT EDIT" comment to the generated file.
43061         (func_import): Likewise for gnulib-comp.m4.
43062
43063 2006-10-07  Bruno Haible  <bruno@clisp.org>
43064
43065         * lib/gl_sublist.h: New file.
43066         * lib/gl_sublist.c: New file.
43067
43068 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
43069
43070         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
43071         name (relative to the original working directory) and the file
43072         name component (relative to the temporary working directory).  All
43073         callers changed.
43074         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
43075         * lib/mkdir-p.c (make_dir_parents): Likewise.
43076         * lib/mkdir-p.h (make_dir_parents): Likewise.
43077
43078 2006-10-06  Eric Blake  <ebb9@byu.net>
43079
43080         Define several macros for use by the clean-temp module.
43081         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
43082         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
43083         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
43084
43085         * lib/clean-temp.h (close_stream_temp): New declaration.
43086         * lib/clean-temp.c (includes): Pull in headers according to what
43087         other modules are in use.
43088         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
43089
43090 2006-10-06  Bruno Haible  <bruno@clisp.org>
43091
43092         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
43093         instead of fopen, fwriteerror.
43094
43095 2006-10-06  Bruno Haible  <bruno@clisp.org>
43096
43097         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
43098         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
43099         int.
43100         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
43101         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
43102         Return an error indicator.
43103         Suggested by Eric Blake.
43104
43105 2006-10-06  Bruno Haible  <bruno@clisp.org>
43106
43107         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
43108         Reported by Eric Blake.
43109
43110 2006-10-06  Bruno Haible  <bruno@clisp.org>
43111
43112         * modules/closeout (Description): Mention stderr too.
43113
43114 2006-10-06  Bruno Haible  <bruno@clisp.org>
43115         and Paul Eggert  <eggert@cs.ucla.edu>
43116
43117         * lib/closeout.c (close_stdout): Also close stderr.
43118         * lib/closeout.h: Update comment.
43119
43120 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
43121
43122         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
43123         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
43124         * lib/dirchownmod.c: Include lchown.h.
43125         * lib/lchown.c: Don't include files that lchown.h now includes.
43126         Don't declare chown, since lchown.h now does that.
43127         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
43128         (lchown): Define to rpl_chown if lchown is declared but
43129         does not exist.  Declare using a prototype if lchown is not
43130         declared.  Add a copyright notice.
43131         * lib/mkstemp.h: Include <unistd.h>.
43132         * lib/openat.c: Include lchown.h.
43133
43134         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
43135         we now test for that separately.
43136         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
43137         rather than O_NOFOLLOW, when testing whether it's possible to
43138         avoid a race condition reliably.
43139         * lib/savewd.c (savewd_chdir): Likewise.
43140
43141         Remove macros that are no longer needed now that stdint.h is
43142         reliable.
43143         * lib/fsusage.c (UINTMAX_MAX): Remove.
43144         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
43145         * lib/utimecmp.c (SIZE_MAX): Remove.
43146
43147         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
43148
43149         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
43150         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
43151         O_NOATIME works.
43152
43153 2006-10-05  Bruno Haible  <bruno@clisp.org>
43154
43155         * lib/gl_list.h (gl_sortedlist_search_from_to,
43156         gl_sortedlist_indexof_from_to): New declarations.
43157         (gl_list_implementation): New fields sortedlist_search_from_to,
43158         sortedlist_indexof_from_to.
43159         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
43160         inline functions.
43161         * lib/gl_list.c (gl_sortedlist_search_from_to,
43162         gl_sortedlist_indexof_from_to): New functions.
43163         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
43164         function.
43165         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
43166         (gl_array_sortedlist_search_from_to): New function.
43167         (gl_array_list_implementation): Update.
43168         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
43169         function.
43170         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
43171         (gl_carray_sortedlist_search_from_to): New function.
43172         (gl_carray_list_implementation): Update.
43173         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
43174         gl_linked_sortedlist_indexof_from_to): New functions.
43175         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
43176         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
43177         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
43178         gl_tree_sortedlist_indexof_from_to): New functions.
43179         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
43180         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
43181         Update.
43182         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
43183         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
43184         Update.
43185
43186 2006-10-05  Bruno Haible  <bruno@clisp.org>
43187
43188         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
43189         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
43190         (struct gl_list_implementation): Add fields search_from_to,
43191         indexof_from_to. Remove fields search, indexof.
43192         (gl_list_search): Use the search_from_to method.
43193         (gl_list_search_from, gl_list_search_from_to): New functions.
43194         (gl_list_indexof): Use the indexof_from_to method.
43195         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
43196         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
43197         (gl_list_search_from, gl_list_search_from_to): New functions.
43198         (gl_list_indexof): Use the indexof_from_to method.
43199         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
43200         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
43201         gl_array_indexof. Add start_index, end_index arguments.
43202         (gl_array_search_from_to): Renamed from gl_array_search. Add
43203         start_index, end_index arguments.
43204         (gl_array_remove, gl_array_list_implementation): Update.
43205         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
43206         gl_carray_indexof. Add start_index, end_index arguments.
43207         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
43208         start_index, end_index arguments.
43209         (gl_carray_remove, gl_carray_list_implementation): Update.
43210         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
43211         gl_linked_search. Add start_index, end_index arguments.
43212         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
43213         start_index, end_index arguments.
43214         (gl_linked_remove): Update.
43215         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
43216         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
43217         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
43218         field to 'size_t'.
43219         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
43220         gl_tree_search. Add start_index, end_index arguments.
43221         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
43222         start_index, end_index arguments.
43223         (gl_tree_remove): Update.
43224         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
43225         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
43226         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
43227         function.
43228         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
43229         gl_tree_search. Add start_index, end_index arguments.
43230         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
43231         start_index, end_index arguments.
43232         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
43233         Update.
43234         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
43235
43236 2006-10-05  Bruno Haible  <bruno@clisp.org>
43237
43238         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
43239
43240         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
43241         fwriteerror_temp): New declarations.
43242         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
43243         (descriptors): New variable.
43244         (cleanup): First, close the descriptors.
43245         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
43246         fclose_temp, fwriteerror_temp): New functions.
43247
43248 2006-10-04  Jim Meyering  <jim@meyering.net>
43249
43250         * lib/fts.c (fts_open): Tiny comment change.
43251
43252 2006-10-04  Bruno Haible  <bruno@clisp.org>
43253
43254         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
43255         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
43256         gl_LOCK_BODY.
43257         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
43258         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
43259         gl_LOCK_EARLY_BODY.
43260         (gl_LOCK): Require gl_LOCK_BODY.
43261
43262 2006-10-04  Bruno Haible  <bruno@clisp.org>
43263
43264         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
43265         (gl_oset_search_atleast): New declaration.
43266         (struct gl_oset_implementation): Add field 'search_atleast'.
43267         (gl_oset_search_atleast): New inline function.
43268         * lib/gl_oset.c (gl_oset_search_atleast): New function.
43269         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
43270         (gl_array_oset_implementation): Update.
43271         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
43272         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
43273         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
43274
43275 2006-10-04  Bruno Haible  <bruno@clisp.org>
43276
43277         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
43278
43279 2006-10-03  Bruno Haible  <bruno@clisp.org>
43280
43281         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
43282         from gl_avltreehash_list_implementation.
43283
43284 2006-10-03  Bruno Haible  <bruno@clisp.org>
43285
43286         * lib/gl_oset.c (gl_oset_add): Fix return type.
43287
43288 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
43289
43290         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
43291
43292 2006-10-02  Eric Blake  <ebb9@byu.net>
43293
43294         * modules/strnlen (Depends-on): Add extensions.
43295
43296 2006-10-02  Eric Blake  <ebb9@byu.net>
43297
43298         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
43299         definition in 2.60+.
43300
43301 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
43302
43303         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
43304         checks.
43305
43306 2006-10-02  Bruno Haible  <bruno@clisp.org>
43307
43308         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
43309         to the AUTOMAKE_OPTIONS.
43310         Reported by Jim Meyering.
43311
43312 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
43313
43314         Work around bug in Solaris 10 /proc file system:
43315         /proc/self/fd/NNN/.. isn't the parent directory of
43316         the directory whose file descriptor is NNN.  This needs to
43317         be worked around at run time, not compile time, since a
43318         program might be built on Solaris 8, where things work, and
43319         run on Solaris 10.
43320         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
43321         to use the following interface instead:
43322         (OPENAT_BUFFER_SIZE): New macro.
43323         (openat_proc_name): New function.
43324         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
43325         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
43326         Likewise.
43327         * lib/openat-proc.c: New file.
43328         * modules/openat (Files): Add lib/openat-proc.c.
43329         (Depends-on): Add same-inode, stdbool.
43330         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
43331
43332 2006-09-29  Bruno Haible  <bruno@clisp.org>
43333
43334         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
43335         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
43336         argument. Set stdout_closed before testing for ferror, not after.
43337         (fwriteerror, fwriteerror_no_ebadf): New functions.
43338
43339 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43340
43341         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
43342
43343 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
43344
43345         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
43346         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
43347
43348 2006-09-28  Jim Meyering  <jim@meyering.net>
43349
43350         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
43351         Include <unistd.h>.
43352
43353 2006-09-28  Bruno Haible  <bruno@clisp.org>
43354
43355         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
43356         * modules/linkedhash-list (Depends-on): Likewise.
43357         * modules/rbtreehash-list (Depends-on): Likewise.
43358
43359 2006-09-28  Bruno Haible  <bruno@clisp.org>
43360
43361         * lib/strndup.h: Simplify the redefinition of strndup.
43362         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
43363         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
43364
43365 2006-09-28  Bruno Haible  <bruno@clisp.org>
43366
43367         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
43368         * lib/gl_linkedhash_list.c: Likewise.
43369         * lib/gl_rbtreehash_list.c: Likewise.
43370
43371 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
43372
43373         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
43374         getaddrinfo.
43375
43376         * lib/__fpending.h: Don't include <stdio_ext.h> unless
43377         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
43378         it causes <stdio_ext.h> to cause a compile-time error.
43379         Problem reported by Nelson H. F. Beebe.
43380         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
43381         of HAVE_DECL___PENDING.
43382
43383         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
43384         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
43385         declaration.
43386
43387 2006-09-27  Jim Meyering  <jim@meyering.net>
43388
43389         This file could end up with a definition for a function
43390         named __strndup, rather than rpl_strndup on a system with
43391         incomplete weak_alias support.
43392         * lib/strndup.c (strndup): Rename from __strndup.
43393         Remove #defines that used to map __strndup to strndup.
43394         Don't use K&R prototypes.
43395         Remove LIBC-related code, since this file is not sync'd with glibc.
43396         * lib/strndup.h: Revamp, accordingly.
43397         * m4/strndup.m4: Modernize.
43398
43399 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
43400
43401         * modules/savewd (Depends-on): Add 'raise'.
43402         * lib/savewd.c: Include <signal.h>, for 'raise'.
43403
43404 2006-09-26  Jim Meyering  <jim@meyering.net>
43405
43406         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
43407         when we detect Darwin 8.7.0's acl_get_file bug.
43408         Rearrange to perform the new (below) run-test while $LIBS
43409         contains any acl-related library.  Set USE_ACL at the end.
43410         (gl_ACL_GET_FILE): New function.
43411
43412 2006-09-26  Eric Blake  <ebb9@byu.net>
43413
43414         * lib/verror.c: Include <config.h> unconditionally.
43415
43416 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
43417
43418         * modules/clock-time (Maintainer): Add self.
43419         * modules/getlogin_r (Depends-on): Add extensions.
43420
43421 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43422
43423         * modules/clock-time: New module.
43424         * modules/nanosleep (Depends-on): Add clock-time.
43425         * modules/gethrxtime (Depends-on): Likewise.
43426         * modules/gettime (Depends-on): Likewise.
43427         * modules/settime (Depends-on): Likewise.
43428
43429         * modules/fts-lgpl: Depend on openat.
43430         * modules/mkancesdirs: Depend on savewd.
43431         * modules/mkdir-p: Likewise.
43432
43433 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43434
43435         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
43436
43437         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
43438         `gl_have_arbitrary_file_name_length_limit' to
43439         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
43440         actually works between configure runs.
43441
43442 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43443             Bruno Haible  <bruno@clisp.org>
43444
43445         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
43446
43447 2006-09-25  Jim Meyering  <jim@meyering.net>
43448
43449         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
43450         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
43451
43452 2006-09-25  Eric Blake  <ebb9@byu.net>
43453
43454         * gnulib-tool (func_import, func_create_testdir): Fix typos in
43455         exec's in 2006-09-18 patch when shuffling fds.
43456
43457 2006-09-25  Bruno Haible  <bruno@clisp.org>
43458
43459         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
43460         Reported by Jim Meyering.
43461
43462 2006-09-24  Jim Meyering  <jim@meyering.net>
43463
43464         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
43465         compare a pointer against a literal "0".  That caused failures with
43466         at least HP-UX's hpcc.
43467
43468 2006-09-22  Simon Josefsson  <jas@extundo.com>
43469
43470         * modules/gc-sha1:
43471         * modules/gc-md4:
43472         * modules/gc-hmac-sha1:
43473         * modules/gc-hmac-md5:
43474         * modules/gc-des:
43475         * modules/gc-arcfour: Distribute more files.
43476
43477 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43478
43479         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
43480         (gl_linked_iterator_from_to): Initialize struct completely.
43481         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
43482         (gl_tree_iterator_from_to): Likewise
43483         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
43484         * lib/gl_array_list.c [lint] (gl_array_iterator)
43485         (gl_array_iterator_from_to): Likewise.
43486         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
43487         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
43488         (gl_carray_iterator_from_to): Likewise.
43489
43490         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
43491         * lib/md4.c (md4_process_block): Remove unused variable.
43492         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
43493         parentheses for clarity.
43494
43495 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43496
43497         * modules/bison-i18n (Depends-on): Add gettext.
43498
43499 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43500
43501         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
43502         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
43503         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
43504         also add missing comma that caused broken test.
43505         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
43506         stdlib.h, for `abort'.
43507         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
43508         variables.
43509         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
43510         include unistd.h if present, for `rmdir'.
43511         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
43512         variables.
43513         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
43514         in the process include standard headers for prototypes.
43515         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
43516         gets declared on GNU/Linux.
43517         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
43518         unistd.h, for `rmdir'.
43519         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
43520
43521         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
43522         always true.
43523         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
43524
43525         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
43526
43527 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43528
43529         * gnulib-tool (func_version): Create output all at once.  This
43530         may help avoid triggering unnecessary SIGPIPEs, and at any
43531         rate it doesn't hurt.
43532
43533 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43534             Bruno Haible  <bruno@clisp.org>
43535
43536         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
43537         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
43538         * m4/signed.m4 (bh_C_SIGNED): Likewise.
43539
43540         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
43541         (gl_FUNC_VASPRINTF): Invoke it.
43542
43543 2006-09-22  Bruno Haible  <bruno@clisp.org>
43544
43545         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
43546         getloadavg.c as first argument.
43547
43548 2006-09-22  Bruno Haible  <bruno@clisp.org>
43549
43550         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
43551         at the beginning of the gl_INIT macro.
43552         * modules/getloadavg (configure.ac): Pass $gl_source_base to
43553         gl_GETLOADAVG.
43554
43555 2006-09-22  Bruno Haible  <bruno@clisp.org>
43556
43557         * gnulib-tool (func_create_megatestdir): Don't include the config-h
43558         module.
43559         Suggested by Ralf Wildenhues.
43560
43561 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
43562
43563         Import this patch from libc:
43564
43565         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
43566
43567         * lib/regex_internal.c (re_string_reconstruct): Handle
43568         offset < pstr->valid_raw_len && pstr->offsets_needed case.
43569         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
43570         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
43571         re_string_context_at.
43572
43573         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
43574         now requires it.
43575         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
43576         gl_REGEX now does it for us.
43577         (gl_REGEX): Add test taken from
43578         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
43579
43580         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
43581         Check that large offsets work.  Modernize Autoconf usages.
43582         Prefer "yes" to mean a good thing rather than a bad.
43583         Don't put "#define mkstemp" in config.h, as this might interfere
43584         with standard system headers that "#define mkstemp mkstemp64".
43585
43586         * modules/mkstemp (Depends-on): Add extensions, so that
43587         mkstemp is visible on some platforms.
43588         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
43589         (Include): Change to "mkstemp.h" from <stdlib.h>.
43590         (Files): Add mkstemp.h.
43591
43592         * lib/mkstemp.h: New file, since some standard headers
43593         #define mkstemp.
43594         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
43595         Include "mkstemp.h".
43596         Make the _LIBC code resemble glibc original more,
43597         e.g., use K&R style.
43598         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
43599         (mkstemp): Remove, since mkstemp.h does this for us.
43600         * lib/stdlib--.h: Include mkstemp.h.
43601
43602         Import this patch from libc:
43603
43604         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
43605
43606         * lib/tempname.c (__gen_tempname): Change attempts_min
43607         into a macro.  Use preprocessor to decide how to initialize
43608         attempts [Coverity CID 67].
43609
43610 2006-09-20  Bruno Haible  <bruno@clisp.org>
43611
43612         * lib/mkdtemp.c: Import from libc.
43613         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
43614                 * sysdeps/posix/tempname.c (__gen_tempname): Change
43615                 attempts_min into a macro.  Use preprocessor to decide how to
43616                 initialize attempts [Coverity CID 67].
43617         2001-11-27  Paul Eggert  <eggert@twinsun.com>
43618                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
43619                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
43620
43621 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43622
43623         * gnulib-tool (func_exit): New function, to allow to pass the
43624         exit status portably through the trap.  Use everywhere.
43625         (--help, --version): Signal a write error.
43626         (trap): catch SIGPIPE, for write errors.
43627         Exit at the end of the trap, with the correct exit status.
43628
43629 2006-09-19  Karl Berry  <karl@gnu.org>
43630
43631         * doc/gnulib.texi: note about the license texinfo files.
43632
43633 2006-09-19  Eric Blake  <ebb9@byu.net>
43634
43635         * gnulib-tool: Avoid space-tab.
43636
43637 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
43638
43639         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
43640         that prevented coreutils 6.1 from building.  Problem reported
43641         by Petter Reinholdtsen.
43642
43643 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
43644
43645         * gnulib-tool (avoidlist): Fix typo that broke options like
43646         --avoid=lock that are used by coreutils bootstrap.
43647
43648 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
43649
43650         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
43651         more systematically.
43652
43653 2006-09-18  Jim Meyering  <jim@meyering.net>
43654
43655         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
43656
43657 2006-09-18  Bruno Haible  <bruno@clisp.org>
43658
43659         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
43660
43661 2006-09-18  Bruno Haible  <bruno@clisp.org>
43662
43663         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
43664         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
43665         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
43666         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
43667         * m4/gettext.m4: Require autoconf >= 2.52.
43668         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
43669         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
43670         of gl_cv_header_inttypes_h.
43671
43672 2006-09-18  Bruno Haible  <bruno@clisp.org>
43673
43674         * lib/javaversion.c: Include configmake.h.
43675
43676 2006-09-18  Bruno Haible  <bruno@clisp.org>
43677
43678         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
43679         avoid that the while loops be executed in a subshell.
43680
43681 2006-09-18  Bruno Haible  <bruno@clisp.org>
43682
43683         * MODULES.html.sh (func_module): Break long lines.
43684         Suggested by Bruce Korb <bkorb@gnu.org>.
43685
43686 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43687
43688         Speed up by a factor of 1.12.
43689         * gnulib-tool (nl): New variable.
43690         (func_import): Rewrite include directive extraction to only read each
43691         directive once.
43692
43693 2006-09-17  Bruno Haible  <bruno@clisp.org>
43694
43695         * modules/javaversion (Makefile.am): Remove DEFS setting.
43696         (Depends-on): Add configmake, for PKGDATADIR definition.
43697
43698 2006-09-17  Bruno Haible  <bruno@clisp.org>
43699
43700         * gnulib-tool (func_create_testdir): Rewrite all files at once.
43701
43702 2006-09-17  Bruno Haible  <bruno@clisp.org>
43703
43704         * gnulib-tool (func_append): New function, stolen from libtool.m4.
43705         (func_modules_transitive_closure, func_modules_add_dummy,
43706         func_modules_to_filelist, func_import, func_create_testdir,
43707         func_create_megatestdir, ...): Use it wherever possible.
43708         Suggested by Ralf Wildenhues.
43709
43710 2006-09-16  Karl Berry  <karl@gnu.org>
43711
43712         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
43713         to avoid sectioning errors.
43714         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
43715         [ifinfo]: blank line after @center-ed titles.
43716         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
43717         Spell FSF address consistently with others.
43718         (These changes approved by rms.)
43719
43720 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43721
43722         Speed up by a factor of 1.61.
43723         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
43724         already checked module names again.
43725
43726 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43727
43728         Speed up by a factor of 1.13.
43729         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
43730         for new_files, and the input to func_add_or_update.
43731
43732 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43733
43734         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
43735         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
43736
43737 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
43738
43739         * modules/mkancesdirs (Depends-on): Add fcntl.
43740         * modules/savewd: New file.
43741         * MODULES.html.sh (File system functions): Add savewd.
43742
43743         * modules/configmake (Makefile.am): Add support for the
43744         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
43745
43746 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
43747
43748         * m4/savewd.m4: New file.
43749
43750 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
43751
43752         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
43753         (dirchownmod): New arg FD.  All callers changed.
43754         Use FD rather than opening the directory ourself, as opening is
43755         now the caller's responsibility.
43756         * lib/dirchownmod.h: Likewise.
43757         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
43758         hosts that require <sys/types.h> before <sys/stat.h>.  Include
43759         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
43760         (test_dir): Remove.
43761         (mkancesdirs): Return length of prefix of FILE that has already
43762         been made, or -2 if there is a child doing the work.  Redo
43763         algorithm so that it is O(N) rather than O(N**2).  Optimize away
43764         ".", and treat ".." specially since it might stray back into
43765         already-created areas.  Use a subprocess if necessary.  New arg
43766         WD; all users changed.  MAKE_DIR function should now return 1
43767         if it creates a directory that is not readable.  Return -2 if
43768         a child process is spun off.
43769         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
43770         Adjust signature to match code.
43771         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
43772         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
43773         all users changed.
43774         * lib/savewd.c, lib/savewd.h: New files.
43775
43776 2006-09-15  Jim Meyering  <jim@meyering.net>
43777
43778         * modules/rename-dest-slash: New module.
43779         * MODULES.html.sh (posix_compat): Add it here.
43780
43781         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
43782
43783 2006-09-15  Jim Meyering  <jim@meyering.net>
43784
43785         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
43786         file.
43787
43788         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
43789
43790 2006-09-15  Jim Meyering  <jim@meyering.net>
43791
43792         * lib/rename-dest-slash.c (has_trailing_slash): Use
43793         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
43794         (rpl_rename_dest_slash): Perform the cheaper trailing slash
43795         test before testing whether SRC is a directory.
43796         Suggestions from Bruno Haible.
43797
43798         Avoid a warning about an unused variable.
43799         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
43800         into the #ifdef block where it's used.
43801
43802         * lib/rename-dest-slash.c: New file.
43803
43804 2006-09-14  Bruno Haible  <bruno@clisp.org>
43805
43806         * lib/allocsa.c: Include <config.h> unconditionally.
43807         * lib/asnprintf.c: Likewise.
43808         * lib/asprintf.c: Likewise.
43809         * lib/c-strcasecmp.c: Likewise.
43810         * lib/c-strcasestr.c: Likewise.
43811         * lib/c-strncasecmp.c: Likewise.
43812         * lib/c-strstr.c: Likewise.
43813         * lib/classpath.c: Likewise.
43814         * lib/clean-temp.c: Likewise.
43815         * lib/concatpath.c: Likewise.
43816         * lib/copy-file.c: Likewise.
43817         * lib/csharpcomp.c: Likewise.
43818         * lib/csharpexec.c: Likewise.
43819         * lib/execute.c: Likewise.
43820         * lib/fatal-signal.c: Likewise.
43821         * lib/findprog.c: Likewise.
43822         * lib/fwriteerror.c: Likewise.
43823         * lib/gl_array_list.c: Likewise.
43824         * lib/gl_array_oset.c: Likewise.
43825         * lib/gl_avltree_list.c: Likewise.
43826         * lib/gl_avltree_oset.c: Likewise.
43827         * lib/gl_avltreehash_list.c: Likewise.
43828         * lib/gl_carray_list.c: Likewise.
43829         * lib/gl_linked_list.c: Likewise.
43830         * lib/gl_linkedhash_list.c: Likewise.
43831         * lib/gl_list.c: Likewise.
43832         * lib/gl_oset.c: Likewise.
43833         * lib/gl_rbtree_list.c: Likewise.
43834         * lib/gl_rbtree_oset.c: Likewise.
43835         * lib/gl_rbtreehash_list.c: Likewise.
43836         * lib/imaxabs.c: Likewise.
43837         * lib/imaxdiv.c: Likewise.
43838         * lib/javacomp.c: Likewise.
43839         * lib/javaexec.c: Likewise.
43840         * lib/javaversion.c: Likewise.
43841         * lib/linebreak.c: Likewise.
43842         * lib/localcharset.c: Likewise.
43843         * lib/lock.c: Likewise.
43844         * lib/mbchar.c: Likewise.
43845         * lib/mbswidth.c: Likewise.
43846         * lib/mkdtemp.c: Likewise.
43847         * lib/pipe.c: Likewise.
43848         * lib/printf-args.c: Likewise.
43849         * lib/printf-parse.c: Likewise.
43850         * lib/progname.c: Likewise.
43851         * lib/progreloc.c: Likewise.
43852         * lib/readlink.c: Likewise.
43853         * lib/sh-quote.c: Likewise.
43854         * lib/stpcpy.c: Likewise.
43855         * lib/stpncpy.c: Likewise.
43856         * lib/strcasecmp.c: Likewise.
43857         * lib/strcasestr.c: Likewise.
43858         * lib/strcspn.c: Likewise.
43859         * lib/striconv.c: Likewise.
43860         * lib/strncasecmp.c: Likewise.
43861         * lib/strnlen1.c: Likewise.
43862         * lib/strstr.c: Likewise.
43863         * lib/strtok_r.c: Likewise.
43864         * lib/tls.c: Likewise.
43865         * lib/tmpdir.c: Likewise.
43866         * lib/unicodeio.c: Likewise.
43867         * lib/unsetenv.c: Likewise.
43868         * lib/vasnprintf.c: Likewise.
43869         * lib/vasprintf.c: Likewise.
43870         * lib/wait-process.c: Likewise.
43871         * lib/xallocsa.c: Likewise.
43872         * lib/xsetenv.c: Likewise.
43873         * lib/xstriconv.c: Likewise.
43874
43875 2006-09-13  Simon Josefsson  <jas@extundo.com>
43876
43877         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
43878         that internally, suggested by Ralf Wildenhues
43879         <Ralf.Wildenhues@gmx.de>.
43880
43881 2006-09-13  Simon Josefsson  <jas@extundo.com>
43882
43883         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
43884         @LIBOBJS@.
43885         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43886
43887 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
43888
43889         * lib/_fpending.c: Include <config.h> unconditionally, since we no
43890         longer worry about uses that don't define HAVE_CONFIG_H.
43891         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
43892         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
43893         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
43894         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
43895         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
43896         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
43897         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
43898         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
43899         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
43900         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
43901         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
43902         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
43903         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
43904         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
43905         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
43906         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
43907         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
43908         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
43909         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
43910         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
43911         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
43912         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
43913         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
43914         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
43915         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
43916         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
43917         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
43918         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
43919         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
43920         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
43921         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
43922         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
43923         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
43924         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
43925         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
43926         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
43927         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
43928         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
43929         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
43930         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
43931         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
43932         Likewise.
43933
43934 2006-09-13  Eric Blake  <ebb9@byu.net>
43935
43936         * lib/getopt.c: Fix typo in last commit.
43937
43938 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43939
43940         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
43941         dgettext.
43942
43943 2006-09-12  Jim Meyering  <jim@meyering.net>
43944
43945         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
43946         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
43947         Reported by Nelson H. F. Beebe.
43948
43949 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
43950
43951         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
43952         program_invocation_name and program_invocation_short_name are
43953         initialized.
43954         * lib/argp-namefrob.h: Move declarations of program_invocation_name
43955         and program_invocation_short_name to argp.h, so they are visible
43956         to user programs.
43957         * lib/argp.h: Likewise
43958
43959 2006-09-10  Bruno Haible  <bruno@clisp.org>
43960
43961         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
43962         m4/inttypes_h.m4, m4/uintmax_t.m4.
43963
43964 2006-09-10  Bruno Haible  <bruno@clisp.org>
43965
43966         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
43967         gl_AC_TYPE_UINTMAX_T.
43968
43969 2006-09-10  Bruno Haible  <bruno@clisp.org>
43970
43971         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
43972
43973 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
43974
43975         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
43976         convention.  Text proposed by Bruno Haible.
43977         (struct argp_option): Document the use of N_() wrappers.
43978
43979         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
43980         '\v', and translate the two parts separately, instead of feeding
43981         the whole string to gettext.  This allows to exclude
43982         '\v' from the strings visible to the translator by writing doc
43983         strings as N_("..") "\v" N_("..").
43984
43985 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
43986
43987         * config/srclist.txt: Undo latest change; the bug was fixed.
43988
43989 2006-09-09  Bruno Haible  <bruno@clisp.org>
43990
43991         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
43992         assignments if building a library without libtool.
43993         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
43994         in func_emit_lib_Makefile_am.
43995         (func_import): When building a static library libfoo.a, arrange to
43996         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
43997         (func_create_testdir): Likewise.
43998         * modules/gc (configure.ac, Makefile.am): If building statically,
43999         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
44000         * modules/iconvme (configure.ac, Makefile.am): Likewise.
44001         * modules/striconv (configure.ac, Makefile.am): Likewise.
44002         Based on a suggestion by Ralf Wildenhues.
44003
44004 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
44005
44006         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
44007         Check for unistd.h too, since Autoconf doesn't assume POSIX.
44008         Also:
44009
44010         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
44011         Add year_2050_test to catch glibc bug 2821
44012         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
44013
44014         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
44015         Prefer #ifdef to #if.
44016
44017         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
44018         Return from 'main' instead of calling 'exit'.
44019
44020 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
44021
44022         * lib/mktime.c (guess_time_tm): Fix bug where mktime
44023         returned the maximum time_t value rather than (time_t) -1.
44024         Problem originally reported by William Bardwell
44025         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
44026
44027         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
44028         Moved to here ...
44029         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
44030         ... from here.
44031
44032 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
44033
44034         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
44035         2821 is fixed.
44036
44037 2006-09-08  Jim Meyering  <jim@meyering.net>
44038
44039         Don't make generated files read-only.  That would bother too many
44040         people.  However, do retain the ability to work when targets are
44041         read-only: remove the destination and temporary files before writing
44042         them (when generated via sed or echo), or by using the -f option for
44043         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
44044         * modules/alloca-opt, modules/argz, modules/arpa_inet:
44045         * modules/byteswap, modules/configmake, modules/fcntl:
44046         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
44047         * modules/localcharset, modules/netinet_in, modules/poll:
44048         * modules/stdbool, modules/stdint, modules/sys_select:
44049         * modules/sys_socket, modules/sys_stat, modules/sysexits:
44050
44051 2006-09-08  Jim Meyering  <jim@meyering.net>
44052
44053         Avoid new build failure on FreeBSD 6.0.
44054         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
44055         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
44056         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
44057
44058 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44059
44060         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
44061
44062 2006-09-07  Jim Meyering  <jim@meyering.net>
44063
44064         Fix global typo in last change: use chmod u-w, not chmod u-x.
44065         Spotted by Paul Eggert and Bruce Korb.
44066         * modules/alloca-opt, modules/argz, modules/arpa_inet:
44067         * modules/byteswap, modules/configmake, modules/fcntl:
44068         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
44069         * modules/localcharset, modules/netinet_in, modules/poll:
44070         * modules/stdbool, modules/stdint, modules/sys_select:
44071         * modules/sys_socket, modules/sys_stat, modules/sysexits:
44072
44073 2006-09-06  Jim Meyering  <jim@meyering.net>
44074
44075         Make generated files be read-only.
44076         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
44077         Ensure that each generated file is now read-only.
44078         * modules/argz: Likewise.
44079         * modules/arpa_inet: Likewise.
44080         * modules/byteswap: Likewise.
44081         * modules/configmake: Likewise.
44082         * modules/fcntl: Likewise.
44083         * modules/fnmatch: Likewise.
44084         * modules/getopt: Likewise.
44085         * modules/glob: Likewise.
44086         * modules/inttypes: Likewise.
44087         * modules/netinet_in: Likewise.
44088         * modules/poll: Likewise.
44089         * modules/stdbool: Likewise.
44090         * modules/stdint: Likewise.
44091         * modules/sys_select: Likewise.
44092         * modules/sys_socket: Likewise.
44093         * modules/sys_stat: Likewise.
44094         * modules/sysexits: Likewise.
44095         * modules/localcharset: Same as above, but continue using temporary
44096         file named "t-$@" (why different?) rather than the "$@-t" used
44097         everywhere else.
44098
44099         * modules/sysexits (Makefile.am): Replace literal occurrences
44100         of "sysexit.h" more readable, and more consistent, "$@".
44101
44102 2006-09-06  Bruno Haible  <bruno@clisp.org>
44103
44104         * modules/striconv: New file.
44105         * modules/xstriconv: New file.
44106         * MODULES.html.sh (Internationalization functions): Add striconv,
44107         xstriconv.
44108
44109 2006-09-06  Bruno Haible  <bruno@clisp.org>
44110
44111         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
44112         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
44113         not using libtool correctly.
44114
44115 2006-09-06  Bruno Haible  <bruno@clisp.org>
44116
44117         * lib/striconv.h: New file.
44118         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
44119         iconvstring.c.
44120         * lib/xstriconv.h: New file.
44121         * lib/xstriconv.c: New file.
44122
44123 2006-09-06  Bruno Haible  <bruno@clisp.org>
44124
44125         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
44126         lib_..._LDFLAGS.
44127
44128 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44129
44130         * lib/argz_.h: Sync from Libtool.
44131
44132         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
44133                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44134
44135         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
44136
44137 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
44138
44139         * modules/trim: New file.
44140
44141 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
44142
44143         * lib/trim.h: New file.
44144         * lib/trim.c: New file.
44145
44146 2006-09-05  Bruno Haible  <bruno@clisp.org>
44147
44148         * MODULES.html.sh (String handling): Add trim.
44149
44150 2006-09-04  Karl Berry  <karl@gnu.org>
44151
44152         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
44153         until next release.
44154
44155 2006-09-03  Bruno Haible  <bruno@clisp.org>
44156
44157         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
44158         correctly.
44159
44160 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
44161
44162         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
44163         not gl_GETLOADAVG.  Omit unneeded semicolons.
44164         Problems reported by Ralf Wildenhues in
44165         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
44166         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
44167         at the end, which is the usual gnulib style.
44168
44169         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
44170         of doing all the work ourselves.
44171         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
44172         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
44173
44174 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
44175
44176         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
44177         Problem reported by Ralf Wildenhues in
44178         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
44179
44180         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
44181         HAVE_STRUCT_STATFS_F_FSTYPENAME.
44182
44183 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
44184
44185         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
44186         yesterday's patch by changing test -n to test -z.
44187
44188 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
44189
44190         * modules/getloadavg (Files): Add m4/getloadavg.m4.
44191         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
44192         the former is now obsolescent.
44193
44194         * modules/chdir-long (Depends-on): Add fcntl.
44195
44196 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
44197
44198         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
44199         obsolescent, and programs should use gnulib instead.
44200         * m4/getloadavg.m4: New file, with contents taken from Autoconf
44201         but with prefixes changed.
44202
44203 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
44204
44205         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
44206         or stdbool.h, because they might not exist while configuring.
44207
44208         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
44209         Don't include unistd.h or limits.h; not needed, since chdir-long.h
44210         does that for us.
44211         (O_DIRECTORY): Remove.
44212
44213 2006-08-31  Eric Blake  <ebb9@byu.net>
44214
44215         * gnulib-tool: Don't let emacs change spaces to TAB.
44216
44217 2006-08-31  Bruno Haible  <bruno@clisp.org>
44218
44219         * gnulib-tool: When calling func_import more than once, do it in a
44220         subshell.
44221         Reported by Eric Blake <ebb9@byu.net>.
44222
44223 2006-08-31  Bruno Haible  <bruno@clisp.org>
44224
44225         * gnulib-tool (nl): Remove variable.
44226         (sed_transform_lib_file): Use more robust test for config-h module.
44227         (func_import): Fix typo in 2006-08-25 patch.
44228
44229 2006-08-31  Bruno Haible  <bruno@clisp.org>
44230
44231         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
44232         specified, augment Makefile.am variables instead of assigning them.
44233
44234 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44235
44236         Work around a bug in both the Linux and SunOS 64-bit kernels:
44237         nanosleep mishandles sleeps for longer than 2**31 seconds.
44238         Problem reported by Frank v Waveren in
44239         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
44240         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
44241         Check for nanosleep bug.
44242         (LIB_NANOSLEEP): Append clock_gettime library if needed.
44243
44244 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44245
44246         Work around a bug in both the Linux and SunOS 64-bit kernels:
44247         nanosleep mishandles sleeps for longer than 2**31 seconds.
44248         Problem reported by Frank v Waveren in
44249         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
44250         * lib/nanosleep.c (BILLION): New constant.
44251         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
44252         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
44253         implementation.
44254
44255 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44256
44257         * modules/nanosleep (Depends-on): Add gettime.
44258
44259 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44260         and Simon Josefsson  <jas@extundo.com>
44261         and Oskar Liljeblad  <oskar@osk.mine.nu>
44262
44263         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
44264         * gnulib-tool (func_import): New license type 'unmodifiable license
44265         text'.
44266         * modules/fdl: Use it.  Longer description.
44267         * module/gpl, module/lgpl: New files.
44268
44269 2006-08-30  Jim Meyering  <jim@meyering.net>
44270
44271         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
44272         shadowing the parameter.
44273
44274 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44275
44276         Sync from Libtool:
44277
44278         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44279
44280         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
44281         sharing with gnulib.  Report by Eric Blake.
44282
44283 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44284
44285         * modules/isapipe: New file.
44286         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
44287
44288 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44289
44290         * modules/configmake (Makefile.am): Add a comment, and omit
44291         the CONFIGMAKE_ prefix from generated macro names.  Suggested
44292         by Bruno Haible.
44293
44294 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44295
44296         * m4/isapipe.m4: New file.
44297
44298 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44299
44300         * lib/isapipe.c, lib/isapipe.h: New files.
44301
44302 2006-08-29  Jim Meyering  <jim@meyering.net>
44303
44304         * modules/configmake (Makefile.am): Make configmake.h depend on
44305         Makefile.  Otherwise, a stale configmake.h could hang around.
44306
44307 2006-08-29  Eric Blake  <ebb9@byu.net>
44308
44309         * lib/error.c (error_at_line, print_errno_message): Match libc, after
44310         resolution of upstream bug 3044.
44311
44312 2006-08-29  Bruno Haible  <bruno@clisp.org>
44313
44314         * modules/localcharset (Depends-on): Add configmake.
44315         (Makefile.am): Remove setting of LIBDIR through DEFS.
44316
44317 2006-08-29  Bruno Haible  <bruno@clisp.org>
44318
44319         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
44320         defined.
44321
44322 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44323
44324         * modules/fcntl: New file.
44325         * modules/chdir-safer (Depends-on): Add fcntl.
44326         * modules/fts: Likewise.
44327         * modules/mkdir-p: Likewise.
44328
44329         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
44330         This undoes the most recent change, since we're now addressing the
44331         problem in a different way.
44332
44333         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
44334         into output, since the output might be called Makefile.am even
44335         if $makefile_name is something different.
44336         (func_import): Use $makefile_am rather than
44337         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
44338         empty.
44339
44340         * modules/inttypes (Files): Add m4/inttypes-h.m4.
44341
44342 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44343
44344         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
44345         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
44346         recent change to stdint.m4, since we're now addressing the problem in a
44347         different way.
44348
44349 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44350
44351         * m4/fcntl_h.m4: New file.
44352
44353 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44354
44355         * lib/fcntl_.h: New file.
44356         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
44357         the fcntl module.
44358         * lib/dirchownmod.c: Likewise.
44359         * lib/fts.c: Likewise.
44360
44361         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
44362         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
44363         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
44364         just before including <inttypes.h>, to avoid circular inclusion.
44365
44366 2006-08-28  Jim Meyering  <jim@meyering.net>
44367
44368         * doc/visibility.texi: Actually read and correct the grammar of the
44369         sentence affected by yesterday's change.
44370
44371 2006-08-28  Eric Blake  <ebb9@byu.net>
44372
44373         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
44374         needs wrapper.
44375
44376 2006-08-28  Eric Blake  <ebb9@byu.net>
44377
44378         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
44379
44380 2006-08-28  Eric Blake  <ebb9@byu.net>
44381
44382         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
44383
44384 2006-08-28  Bruno Haible  <bruno@clisp.org>
44385
44386         * modules/c-strstr: New file, from GNU gettext.
44387         * MODULES.html.sh (String handling): Add c-strstr.
44388
44389 2006-08-28  Bruno Haible  <bruno@clisp.org>
44390
44391         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
44392         macros.
44393         Reported by Eric Blake.
44394
44395 2006-08-28  Bruno Haible  <bruno@clisp.org>
44396
44397         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
44398         (VASNPRINTF): Return a string of length > INT_MAX without failing.
44399         * lib/vasprintf.c: Include errno.h, limits.h.
44400         (EOVERFLOW): New fallback definition.
44401         (vasprintf): Test here whether the string length is > INT_MAX.
44402         * lib/vsnprintf.c: Include errno.h, limits.h.
44403         (EOVERFLOW): New fallback definition.
44404         (vsnprintf): Fix bug when generated string was too long for the buffer.
44405         Test here whether the string length is > INT_MAX.
44406
44407 2006-08-28  Bruno Haible  <bruno@clisp.org>
44408
44409         * lib/inttypes_.h (SCNX*): Remove definitions.
44410         Reported by Eric Blake.
44411
44412 2006-08-28  Bruno Haible  <bruno@clisp.org>
44413
44414         * lib/c-strstr.h: New file, from GNU gettext.
44415         * lib/c-strstr.c: New file, from GNU gettext.
44416
44417 2006-08-28  Bruno Haible  <bruno@clisp.org>
44418
44419         * gnulib-tool: Reorder some statements.
44420
44421 2006-08-28  Bruno Haible  <bruno@clisp.org>
44422
44423         * gnulib-tool: New option --makefile-name.
44424         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
44425         $makefile_name.
44426         (func_import): Write $makefile_name to the cache file, and read it from
44427         there unless explicitly specified. Use $makefile_name as file name
44428         instead of Makefile.am. Adjust the recommendations accordingly.
44429
44430 2006-08-28  Bruno Haible  <bruno@clisp.org>
44431
44432         * gnulib-tool (func_verify_module): Check against misapplying patch.
44433
44434 2006-08-28  Bruno Haible  <bruno@clisp.org>
44435
44436         * gnulib-tool (func_relativize, func_relconcat): New functions.
44437         Give an error if --local-dir is given with --update.
44438         Remove trailing slashes from $local_gnulib_dir.
44439         (func_import): Store the relativized $local_gnulib_dir in
44440         gnulib-cache.m4, and read it from there if not specified explicitly.
44441
44442 2006-08-28  Bruno Haible  <bruno@clisp.org>
44443
44444         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
44445         is the current directory. Respect also $local_gnulib_dir.
44446
44447 2006-08-28  Bruno Haible  <bruno@clisp.org>
44448             Simon Josefsson  <jas@extundo.com>
44449
44450         BeOS portability.
44451         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
44452
44453 2006-08-27  Jim Meyering  <jim@meyering.net>
44454
44455         * doc/visibility.texi: Remove duplicate word: "pointer".
44456
44457 2006-08-26  Bruno Haible  <bruno@clisp.org>
44458
44459         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
44460         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
44461         (Makefile.am): Create inttypes.h from inttypes_.h.
44462         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
44463
44464         * modules/imaxabs: New file.
44465
44466         * modules/imaxdiv: New file.
44467
44468 2006-08-26  Bruno Haible  <bruno@clisp.org>
44469
44470         * m4/inttypes.m4: New file.
44471         * m4/_inttypes_h.m4: Remove file.
44472         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
44473         PRI_MACROS_BROKEN.
44474         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
44475
44476         * m4/imaxabs.m4: New file.
44477
44478         * m4/imaxdiv.m4: New file.
44479
44480 2006-08-26  Bruno Haible  <bruno@clisp.org>
44481
44482         * lib/inttypes_.h: New file.
44483         * lib/inttypes.h: Remove file.
44484         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
44485
44486         * lib/imaxabs.c: New file.
44487
44488         * lib/imaxdiv.c: New file.
44489
44490 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
44491
44492         New config-h module, so that "make" output needn't be cluttered
44493         by -DHAVE_CONFIG_H.
44494         * MODULES.html.sh (Support for building libraries and executables):
44495         Add config-h.
44496         * modules/config-h: New file.
44497         * gnulib-tool (nl, sed_transform_lib_file): New vars.
44498         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
44499         the config-h module is used.
44500
44501         New configmake module, so that "make" output needn't be cluttered
44502         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
44503         * MODULES.html.sh (Support for building libraries and executables):
44504         Add configmake.
44505         * modules/configmake: New file.
44506
44507 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
44508
44509         * m4/config-h.m4: New file.
44510
44511 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
44512
44513         * config/srclist.txt: Add elisp-comp.
44514
44515 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
44516
44517         * MODULES.html.sh (Support for building libraries and executables):
44518         Add elisp-comp.
44519         * build-aux/elisp-comp: New file.
44520         * modules/elisp-comp: New file.
44521
44522 2006-08-24  Bruno Haible  <bruno@clisp.org>
44523
44524         * gnulib-tool (func_create_testdir): Use non-default values of
44525         sourcebase and m4base.
44526
44527 2006-08-24  Bruno Haible  <bruno@clisp.org>
44528
44529         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
44530         HTML structure.
44531
44532 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
44533
44534         * modules/openat (Depends-on): Add lchown.
44535
44536 2006-08-23  Bruno Haible  <bruno@clisp.org>
44537
44538         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
44539         of gl_LOCK_EARLY instead of gl_LOCK.
44540
44541 2006-08-23  Bruno Haible  <bruno@clisp.org>
44542
44543         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
44544         on OSF/1 to no.
44545         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
44546
44547 2006-08-23  Bruno Haible  <bruno@clisp.org>
44548
44549         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
44550         as unusable.
44551
44552         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
44553         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
44554         (gl_LOCK): New macro.
44555
44556 2006-08-22  Simon Josefsson  <jas@extundo.com>
44557
44558         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
44559         to md5 module.
44560
44561 2006-08-22  Simon Josefsson  <jas@extundo.com>
44562
44563         * MODULES.html.sh: Add "Support for maintaining and release
44564         projects".
44565
44566         * build-aux/gnupload: New file, from coreutils.
44567
44568 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
44569
44570         Avoid the need for AC_LIBSOURCES in m4 macros.
44571         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
44572         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
44573         * modules/check-version (EXTRA_DIST): Add check-version.h.
44574         * modules/crc (EXTRA_DIST): Add crc.h.
44575         * modules/des (EXTRA_DIST): Add des.h.
44576         * modules/gc (EXTRA_DIST): Add gc.h.
44577         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
44578         * modules/getline (EXTRA_DIST): Add getline.h.
44579         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
44580         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
44581         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
44582         * modules/md2 (EXTRA_DIST): Add md2.h.
44583         * modules/md4 (EXTRA_DIST): Add md4.h.
44584         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
44585         * modules/read-file (EXTRA_DIST): Add read-file.h.
44586         * modules/readline (EXTRA_DIST): Add readline.h.
44587         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
44588         rijndael-api-fst.h.
44589
44590 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
44591
44592         * m4/rijndael.m4 (gl_ARCFOUR):
44593         * m4/arctwo.m4 (gl_ARCTWO):
44594         * m4/check-version.m4 (gl_CHECK_VERSION):
44595         * m4/crc.m4 (gl_CRC):
44596         * m4/des.m4 (gl_DES):
44597         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
44598         * m4/gc.m4 (gl_GC):
44599         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
44600         * m4/getline.m4 (gl_FUNC_GETLINE):
44601         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
44602         * m4/hmac-md5.m4 (gl_HMAC_MD5):
44603         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
44604         * m4/md2.m4 (gl_MD2):
44605         * m4/md4.m4 (gl_MD4):
44606         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
44607         * m4/read-file.m4 (gl_FUNC_READ_FILE):
44608         * m4/readline.m4 (gl_FUNC_READLINE):
44609         * m4/rijndael.m4 (gl_RIJNDAEL):
44610         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
44611         to get the necessary .h files and whatnot.
44612
44613 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
44614
44615         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
44616         gnulib rather than the other way around.
44617         * config/srclistvars.sh (COREUTILS): Remove.
44618
44619 2006-08-22  Jim Meyering  <jim@meyering.net>
44620
44621         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
44622
44623         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
44624
44625 2006-08-22  Eric Blake  <ebb9@byu.net>
44626
44627         * modules/regexprops-generic: New file.
44628         * MODULES.html.sh (Support for building documentation): List it.
44629
44630 2006-08-22  Eric Blake  <ebb9@byu.net>
44631
44632         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
44633         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
44634         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
44635         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
44636
44637 2006-08-22  Bruno Haible  <bruno@clisp.org>
44638
44639         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
44640         and lib_LTLIBRARIES like the other lib_* variables.
44641
44642 2006-08-22  Bruno Haible  <bruno@clisp.org>
44643
44644         * build-aux/x-to-1.in: New file, from GNU gettext.
44645
44646 2006-08-22  Bruno Haible  <bruno@clisp.org>
44647
44648         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
44649         <utmpx.h> exists.
44650
44651 2006-08-22  Bruno Haible  <bruno@clisp.org>
44652
44653         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
44654         <utmpx.h> exists.
44655
44656 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
44657
44658         BeOS portability.
44659         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
44660         exist.
44661         Problem reported by Bruno Haible.
44662
44663 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
44664
44665         Avoid the need for AC_LIBSOURCES in m4 macros.
44666         * modules/acl (EXTRA_DIST): Add acl.h.
44667         * modules/argmatch (Files): Add m4/argmatch.m4.
44668         (configure.ac): Add gl_ARGMATCH.
44669         (EXTRA_DIST): Renamed from lib_SOURCES, for
44670         consistency with the other modules.  Remove argmatch.c.
44671         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
44672         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
44673         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
44674         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
44675         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
44676         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
44677         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
44678         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
44679         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
44680         * modules/closeout (EXTRA_DIST): Add closeout.h.
44681         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
44682         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
44683         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
44684         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
44685         dirname.h; remove basename.c and stripslash.c.
44686         * modules/exclude (EXTRA_DIST): Add exclude.h.
44687         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
44688         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
44689         * modules/file-type (EXTRA_DIST): Add file-type.h.
44690         * modules/filemode (EXTRA_DIST): Add filemode.h.
44691         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
44692         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
44693         * modules/fpending (EXTRA_DIST): Add __fpending.h.
44694         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
44695         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
44696         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
44697         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
44698         * modules/getdate (EXTRA_DIST): Add getdate.c.
44699         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
44700         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
44701         * modules/getpass (EXTRA_DIST): Add getpass.h.
44702         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
44703         * modules/group-member (EXTRA_DIST): Add group-member.h.
44704         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
44705         * modules/hash (EXTRA_DIST): Add hash.h.
44706         * modules/human (EXTRA_DIST): Add human.h.
44707         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
44708         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
44709         * modules/lchown (EXTRA_DIST): Add lchown.h.
44710         * modules/long-options (EXTRA_DIST): Add long-options.h.
44711         * modules/lstat (EXTRA_DIST): Add lstat.h.
44712         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
44713         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
44714         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
44715         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
44716         * modules/memxor (EXTRA_DIST): Add memxor.h.
44717         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
44718         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
44719         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
44720         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
44721         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
44722         * modules/physmem (EXTRA_DIST): Add physmem.h.
44723         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
44724         * modules/posixver (EXTRA_DIST): Add posixver.h.
44725         * modules/quote (EXTRA_DIST): Add quote.h.
44726         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
44727         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
44728         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
44729         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
44730         regex_internal.h regexec.c.
44731         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
44732         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
44733         * modules/same (EXTRA_DIST): Add same.h.
44734         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
44735         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
44736         * modules/savedir (EXTRA_DIST): Add savedir.h.
44737         * modules/sha1 (EXTRA_DIST): Add sha1.h.
44738         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
44739         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
44740         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
44741         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
44742         * modules/strdup (EXTRA_DIST): Add strdup.h.
44743         * modules/strftime (EXTRA_DIST): Add strftime.h.
44744         * modules/strndup (EXTRA_DIST): Add strndup.h.
44745         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
44746         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
44747         * modules/time_r (EXTRA_DIST): Add time_r.h.
44748         * modules/timespec (EXTRA_DIST): Add timespec.h.
44749         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
44750         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
44751         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
44752         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
44753         * modules/userspec (EXTRA_DIST): Add userspec.h.
44754         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
44755         * modules/utimens (EXTRA_DIST): Add utimens.h.
44756         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
44757         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
44758         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
44759         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
44760         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
44761         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
44762         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
44763         * modules/yesno (EXTRA_DIST): Add yesno.h.
44764
44765 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
44766
44767         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
44768
44769         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
44770         * m4/dev-ino.m4, same-inode.m4: Remove.
44771
44772         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
44773         * m4/acl.m4 (AC_FUNC_ACL):
44774         * m4/backupfile.m4 (gl_BACKUPFILE):
44775         * m4/c-strtod.m4 (gl_C99_STRTOLD):
44776         * m4/canon-host.m4 (gl_CANON_HOST):
44777         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
44778         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
44779         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
44780         * m4/cloexec.m4 (gl_CLOEXEC):
44781         * m4/close-stream.m4 (gl_CLOSE_STREAM):
44782         * m4/closeout.m4 (gl_CLOSEOUT):
44783         * m4/dirfd.m4 (gl_FUNC_DIRFD):
44784         * m4/dirname.m4 (gl_DIRNAME):
44785         * m4/exclude.m4 (gl_EXCLUDE):
44786         * m4/exitfail.m4 (gl_EXITFAIL):
44787         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
44788         * m4/file-type.m4 (gl_FILE_TYPE):
44789         * m4/filemode.m4 (gl_FILEMODE):
44790         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
44791         * m4/fpending.m4 (gl_FUNC_FPENDING):
44792         * m4/fprintftime.m4 (gl_FPRINTFTIME):
44793         * m4/fts.m4 (gl_FUNC_FTS):
44794         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
44795         * m4/getdate.m4 (gl_GETDATE):
44796         * m4/gethrxtime.m4 (gl_GETHRXTIME):
44797         * m4/getpagesize.m4 (gl_GETPAGESIZE):
44798         * m4/getpass.m4 (gl_FUNC_GETPASS):
44799         * m4/gettime.m4 (gl_GETTIME):
44800         * m4/getugroups.m4 (gl_GETUGROUPS):
44801         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
44802         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
44803         * m4/hard-locale.m4 (gl_HARD_LOCALE):
44804         * m4/hash.m4 (gl_HASH):
44805         * m4/idcache.m4 (gl_IDCACHE):
44806         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
44807         * m4/lchown.m4 (gl_FUNC_LCHOWN):
44808         * m4/long-options.m4 (gl_LONG_OPTIONS):
44809         * m4/lstat.m4 (gl_FUNC_LSTAT):
44810         * m4/md5.m4 (gl_MD5):
44811         * m4/memcasecmp.m4 (gl_MEMCASECMP):
44812         * m4/memcoll.m4 (gl_MEMCOLL):
44813         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
44814         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
44815         * m4/memxor.m4 (gl_MEMXOR):
44816         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
44817         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
44818         * m4/modechange.m4 (gl_MODECHANGE):
44819         * m4/mountlist.m4 (gl_MOUNTLIST):
44820         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
44821         * m4/openat.m4 (gl_FUNC_OPENAT):
44822         * m4/pathmax.m4 (gl_PATHMAX):
44823         * m4/physmem.m4 (gl_PHYSMEM):
44824         * m4/posixtm.m4 (gl_POSIXTM):
44825         * m4/posixver.m4 (gl_POSIXVER):
44826         * m4/quote.m4 (gl_QUOTE):
44827         * m4/quotearg.m4 (gl_QUOTEARG):
44828         * m4/readtokens.m4 (gl_READTOKENS):
44829         * m4/readutmp.m4 (gl_READUTMP):
44830         * m4/regex.m4 (gl_REGEX):
44831         * m4/safe-read.m4 (gl_SAFE_READ):
44832         * m4/safe-write.m4 (gl_SAFE_WRITE):
44833         * m4/same.m4 (gl_SAME):
44834         * m4/save-cwd.m4 (gl_SAVE_CWD):
44835         * m4/savedir.m4 (gl_SAVEDIR):
44836         * m4/settime.m4 (gl_SETTIME):
44837         * m4/sha1.m4 (gl_SHA1):
44838         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
44839         * m4/stat-macros.m4 (gl_STAT_MACROS):
44840         * m4/stat-time.m4 (gl_STAT_TIME):
44841         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
44842         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
44843         * m4/strdup.m4 (gl_FUNC_STRDUP):
44844         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
44845         * m4/strndup.m4 (gl_FUNC_STRNDUP):
44846         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
44847         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
44848         * m4/time_r.m4 (gl_TIME_R):
44849         * m4/timespec.m4 (gl_TIMESPEC):
44850         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
44851         * m4/unlinkdir.m4 (gl_UNLINKDIR):
44852         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
44853         * m4/userspec.m4 (gl_USERSPEC):
44854         * m4/utimecmp.m4 (gl_UTIMECMP):
44855         * m4/utimens.m4 (gl_UTIMENS):
44856         * m4/xalloc.m4 (gl_XALLOC):
44857         * m4/xgetcwd.m4 (gl_XGETCWD):
44858         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
44859         * m4/xreadlink.m4 (gl_XREADLINK):
44860         * m4/xstrtod.m4 (gl_XSTRTOD):
44861         * m4/yesno.m4 (gl_YESNO):
44862         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
44863         to get the necessary .h files and whatnot.
44864
44865 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
44866             Bruno Haible  <bruno@clisp.org>
44867
44868         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
44869         /bin/sh understanding of '!' conditional negation.
44870
44871 2006-08-21  Jim Meyering  <jim@meyering.net>
44872
44873         * modules/openat (Depends-on): Really alphabetize.
44874
44875         * modules/acl (Depends-on): Add error and quote.
44876
44877         * check-module (find_included_lib_files): Add at-func.c to the
44878         ok-to-include-more-than-once white list.
44879
44880         * modules/openat (Depends-on): Add lstat.  Alphabetize.
44881
44882 2006-08-21  Bruno Haible  <bruno@clisp.org>
44883
44884         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44885         Emit a pkgdata_DATA variable only if some snippets add contents to it.
44886         Reported by Martin Lambers <marlam@marlam.de>.
44887
44888 2006-08-21  Bruno Haible  <bruno@clisp.org>
44889
44890         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
44891         specify an installation location, don't emit a noinst_LIBRARIES or
44892         noinst_LTLIBRARIES assignment.
44893
44894 2006-08-21  Bruno Haible  <bruno@clisp.org>
44895
44896         BeOS portability.
44897         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
44898         BeOS has mbrtowc() but no <wctype.h>.
44899
44900 2006-08-21  Bruno Haible  <bruno@clisp.org>
44901
44902         BeOS portability.
44903         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
44904         exist.
44905
44906 2006-08-21  Bruno Haible  <bruno@clisp.org>
44907
44908         BeOS portability.
44909         * lib/mbchar.h: Include <wctype.h> only if it exists.
44910
44911 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
44912
44913         Remove files that are no longer needed by their respective modules.
44914         * m4/obstack.m4: Remove.
44915         * m4/strerror_r.m4: Remove.
44916         * m4/uint32_t.m4: Remove.
44917         * m4/uintptr_t.m4: Remove.
44918         * m4/ullong_max.m4: Remove.
44919         * m4/xstrtoimax.m4: Remove.
44920         * m4/xstrtoumax.m4: Remove.
44921
44922         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
44923         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
44924         dependencies now capture this.
44925
44926         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
44927         Do not use AC_LIBSOURCES, since gnulib modules now do this.
44928         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
44929         * m4/human.m4 (gl_HUMAN): Likewise.
44930         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
44931         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
44932
44933         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
44934
44935         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
44936         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
44937         stdint.
44938         * m4/human.m4 (gl_HUMAN): Likewise.
44939         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
44940         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
44941         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
44942         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
44943         * m4/xstrtol (gl_XSTRTOL): Likewise.
44944
44945         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
44946         AC_TYPE_LONG_LONG_INT.
44947         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
44948         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
44949         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
44950         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
44951
44952         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
44953         on stdbool.
44954
44955         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
44956         (gl_PREREQ_XSTRTOUL): Remove.
44957
44958         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
44959
44960         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
44961         mode.
44962
44963 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
44964
44965         Add and change modules to make it easier for coreutils to use
44966         gnulib-tool.
44967         * modules/backupfile (Files): Remove m4/d-ino.m4.
44968         (Depends-on): Add d-ino.
44969         * modules/cycle-check (Depends-on): Add stdint.
44970         (lib_SOURCES): Add cycle-check.h.
44971         * modules/d-ino: New module.
44972         * modules/d-type: New module.
44973         * modules/error (Files): Remove m4/strerror_r.m4.
44974         * modules/filemode (Files): Add m4/st_dm_mode.m4.
44975         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
44976         m4/inttypes_h.m4, m4/uintmax_t.m4.
44977         (Depends-on): Add stdint.
44978         (lib_SOURCES): Add fsusage.h.
44979         * modules/getcwd (Files): Remove d-ino.m4.
44980         (Depends-on): Add d-ino.
44981         * modules/getndelim2 (Depends-on): Add stdint.
44982         * modules/glob (Files): Remove m4/d-type.m4.
44983         (Depends-on): Add d-type.
44984         * modules/host-os: New module.
44985         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
44986         m4/inttypes_h.m4, m4/uintmax_t.m4.
44987         * Depends-on: Add stdint.
44988         (lib_SOURCES): Add human.h.
44989         * modules/inttostr (Files): Remove m4/intmax_t.m4,
44990         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
44991         m4/uintmax_t.m4, m4/ulonglong.m4.
44992         (Depends-on): Add stdint.
44993         (EXTRA_DIST): Add inttostr.h.
44994         * modules/lchmod: New module.
44995         * modules/link-follow: New module.
44996         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
44997         (Depends-on): Add lchmod.
44998         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
44999         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
45000         (Depends-on): Add stdint.
45001         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
45002         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
45003         (Depends-on): Add stdint.
45004         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
45005         * modules/perl: New module.
45006         * modules/regex (Depends-on): Add stdint.
45007         * modules/rmdir-errno: New module.
45008         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
45009         m4/intmax_t.m4.
45010         (Depends-on): Add stdint.
45011         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
45012         m4/uintmax_t.m4.
45013         (Depends-on): Add stdint.
45014         * modules/unlink-busy: New module.
45015         * modules/utimecmp (Depends-on): Add stdint.
45016         * modules/uptime: New module.
45017         * modules/winsz-ioctl: New module.
45018         * modules/winsz-termios: New module.
45019         * modules/xnanosleep (Depends-on): Add nanosleep.
45020         * modules/ullong_max: Remove.
45021         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
45022         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
45023         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
45024         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
45025         (Depends-on): Add inttypes.
45026         (lib_SOURCES): Add xstrtol.h.
45027         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
45028         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
45029         * MODULES.html.sh: Move 'assert' into the assert section.
45030         Move 'dummy' into the linking section.
45031         Remove ullong_max.
45032         Add section for compatibility checks for POSIX:2001 functions,
45033         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
45034         winsz-ioctl, and winsz-termios into it.
45035         Add lchmod.
45036         Add top-level Misc section and put host-os, perl, and uptime
45037         into it.
45038
45039 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
45040
45041         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
45042         now assume the stdint module.  Do not include inttypes.h.
45043         * lib/fsusage.h: Likewise.
45044         * lib/getndelim2.c: Likewise.
45045         * lib/human.h: Likewise.
45046         * lib/inttostr.h: Likewise.
45047         * lib/obstack.c: Likewise.
45048         * lib/regex_internal.h: Likewise.
45049         * lib/tempname.c: Likewise.
45050         * lib/utimecmp.c: Likewise.
45051         * lib/xstrtol.h: Likewise.
45052
45053         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
45054
45055         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
45056         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
45057         * lib/xtime.h: Likewise.
45058
45059 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
45060
45061         * modules/openat (Files): Add lib/fchmodat.c.
45062         Fixes problem reported by Jay Youngman.
45063
45064 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
45065
45066         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
45067         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
45068
45069 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
45070             Bruno Haible  <bruno@clisp.org>
45071
45072         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
45073         and is a script that invokes bison. Tighten the code. Add comments.
45074
45075 2006-08-18  Jim Meyering  <jim@meyering.net>
45076
45077         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
45078         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
45079         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
45080         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
45081
45082 2006-08-18  Bruno Haible  <bruno@clisp.org>
45083
45084         * modules/bison-i18n: New file.
45085         * MODULES.html.sh (Internationalization functions): Add it.
45086
45087 2006-08-18  Bruno Haible  <bruno@clisp.org>
45088
45089         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
45090         sys/statvfs.h. When getmntinfo was found, check its declaration and
45091         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
45092
45093 2006-08-18  Bruno Haible  <bruno@clisp.org>
45094
45095         * m4/bison-i18n.m4: New file, from bison.
45096
45097 2006-08-18  Bruno Haible  <bruno@clisp.org>
45098
45099         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
45100         (ME_DUMMY): Treat "kernfs" as a dummy.
45101         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
45102
45103 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
45104
45105         Update from coreutils.
45106
45107         2006-08-15  Jim Meyering  <jim@meyering.net>
45108
45109         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
45110
45111         2006-01-17  Jim Meyering  <jim@meyering.net>
45112
45113         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
45114
45115         2006-01-11  Jim Meyering  <jim@meyering.net>
45116
45117         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
45118         Check for the lchmod function.
45119
45120 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
45121
45122         Update from coreutils.
45123
45124         * lib/__fpending.h: Add copyright notice.
45125         * lib/fprintftime.h: Likewise.
45126         * lib/savedir.c: Use (C) in copyright notice.
45127         * lib/savedir.h: Likewise.
45128
45129         2006-08-15  Jim Meyering  <jim@meyering.net>
45130
45131         * lib/at-func.c: New file, with the logic of all emulated at-functions.
45132         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
45133         in support of the EXPECTED_ERRNO macro.
45134         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
45135         definitions.  Instead, define the appropriate symbols and include
45136         "at-func.c".
45137         * lib/mkdirat.c (mkdirat): Likewise.
45138         * lib/fchmodat.c (fchmodat): Likewise.
45139         (ENOSYS): Remove definition.
45140         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
45141         it.  Don't include "unistd--.h" -- it wasn't ever used.
45142
45143         2006-01-17  Jim Meyering  <jim@meyering.net>
45144
45145         Rewrite fts.c not to change the current working directory,
45146         by using openat, fstatat, fdopendir, etc..
45147
45148         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
45149         (HAVE_OPENAT_SUPPORT): Define.
45150         [_LIBC] (fchdir): Don't undef or define; no longer used.
45151         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
45152         Now, this `function' always succeeds, and consumes its file descriptor
45153         parameter -- so callers must not close such FDs.  Update callers.
45154         (diropen_fd, opendirat, cwd_advance_fd): New functions.
45155         (diropen): Add parameter, SP.  Adjust all callers.
45156         Implement using diropen_fd, rather than open.
45157         (fts_open): Initialize new member, fts_cwd_fd.
45158         Remove fts_rft-setting code.
45159         (fts_close): Close fts_cwd_fd, if necessary.
45160         (__opendir2): Define in terms of opendir or opendirat,
45161         depending on whether the FST_NOCHDIR flag is set.
45162         (fts_build): Since fts_safe_changedir consumes its FD, and since
45163         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
45164         and close the dup'd file descriptor upon failure.
45165         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
45166         (fts_safe_changedir): Tweak semantics to reflect that this function
45167         now calls cwd_advance_fd and hence consumes its FD argument.
45168         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
45169         [struct FTS] (fts_rft): Remove now-unused member.
45170         [struct FTS] (fts_cycle.state): Improve comment.
45171
45172         * lib/openat.c (openat_needs_fchdir): New function.
45173         * lib/openat.h (openat_needs_fchdir): Declare it.
45174
45175 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
45176
45177         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
45178         Problem and fix reported by Pádraig Brady in
45179         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
45180
45181 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
45182
45183         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
45184
45185 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
45186
45187         * lib/memcoll.c (memcoll): Optimize for the common case where the
45188         arguments are bytewise equal.
45189
45190 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
45191
45192         * doc/regexprops-generic.texi: Add a copyright notice.
45193
45194 2006-08-15  Bruno Haible  <bruno@clisp.org>
45195
45196         * modules/tmpdir (License): Change to LGPL.
45197
45198 2006-08-15  Bruno Haible  <bruno@clisp.org>
45199
45200         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
45201         module.
45202
45203 2006-08-14  Simon Josefsson  <jas@extundo.com>
45204
45205         * config/srclist.txt: Add gnupload.
45206
45207 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45208
45209         Change copyright notice from LGPL 2 to GPL 2, since that's the
45210         standard form used in the gnulib repository.
45211         * tests/test-lock.c: Likewise.
45212         * tests/test-stdint.c: Likewise.
45213         * tests/test-tls.c: Likewise.
45214
45215         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
45216         prelude-manager.  User shorter URLs for GNU projects, without '?'.
45217         Add copyright notice.
45218
45219         * check-module: Add copyright notice.  Output a copyright
45220         notice if "--version" is specified.
45221         * modules/COPYING: New file.
45222         * tests/test-getaddrinfo.c: Add copyright notice.
45223         * tests/test-verify.c: Likewise.
45224
45225 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45226
45227         Change copyright notice from LGPL 2 to GPL 2, since that's the
45228         standard form used in the gnulib repository.
45229         * lib/lock.c: LGPL -> GPL.
45230         * lib/lock.h: Likewise.
45231         * lib/strnlen1.c: Likewise.
45232         * lib/strnlen1.h: Likewise.
45233         * lib/tls.c: Likewise.
45234         * lib/tls.h: Likewise.
45235         * lib/tmpdir.c: Likewise.
45236
45237         * lib/TODO: Remove; this belongs only in coreutils.
45238
45239 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45240
45241         Add copyright notices to long-enough files that lack them, since
45242         otherwise the files aren't clearly free.  Use the same notice that
45243         getdate.texi already uses.
45244         * doc/alloca-opt.texi: Add copyright notice.
45245         * doc/alloca.texi: Likewise.
45246         * doc/ctime.texi: Likewise.
45247         * doc/functions.texi: Likewise.
45248         * doc/gcd.texi: Likewise.
45249         * doc/gnulib-tool.texi: Likewise.
45250         * doc/inet_ntoa.texi: Likewise.
45251         * doc/visibility.texi: Likewise.
45252
45253         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
45254         * doc/quote.texi: Add copyright notice.
45255
45256         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
45257         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
45258         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
45259         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
45260         is now obsolete, and give a pointer to the Sun list.
45261         Add copyright notice.
45262
45263 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45264
45265         * config/srclistvars.sh: Add copyright notice.
45266
45267 2006-08-14  Eric Blake  <ebb9@byu.net>
45268
45269         Import the following change from libc:
45270
45271         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
45272
45273         Upstream bug 2997.
45274         * lib/misc/error.c: Add space between program name and message if file
45275         name is missing.
45276
45277 2006-08-12  Karl Berry  <karl@gnu.org>
45278
45279         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
45280         remove, these originate in gnulib now.
45281
45282 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45283
45284         * doc/Makefile (standards.info standards.html standards.dvi):
45285         Also depend on make-stds.texi.
45286
45287 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
45288
45289         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
45290         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
45291
45292         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
45293         in wchar_t.  Problem reported by Eric Blake.
45294
45295         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
45296         LEN is smaller than SIZE.  Suggested by Bruno Haible.
45297         Also, help the compiler to keep LEN in a register.
45298
45299 2006-08-11  Eric Blake  <ebb9@byu.net>
45300
45301         * users.txt: Sort.  Add tar.
45302
45303 2006-08-11  Bruno Haible  <bruno@clisp.org>
45304
45305         * users.txt: New file.
45306
45307 2006-08-11  Bruno Haible  <bruno@clisp.org>
45308
45309         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
45310         before <wchar.h>. Needed for OSF/1 and BSD/OS.
45311
45312 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
45313
45314         * modules/snprintf (Depends-on): Remove minmax.
45315         (Maintainer): Add self and Bruno.
45316
45317 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
45318
45319         * lib/.cppi-disable: Add snprintf.h, socket_.h.
45320         * lib/snprintf.c: Include <errno.h> and <limits.h>.
45321         (EOVERFLOW): Define if the system does not.
45322         Do not include "minmax.h"; it wasn't used.
45323         (snprintf): Don't assume size_t promotes to an unsigned type.
45324         Fix bug when generated string was too long for the buffer: the
45325         buffer's contents are supposed to be the initial prefix of the
45326         output.  Don't assume vasnprintf returns EOVERFLOW if the size
45327         exceeds INT_MAX; do the check ourselves.
45328
45329         Import the following changes from libc:
45330
45331         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
45332
45333         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
45334         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
45335         set wc to the byte which couldn't be converted.
45336         (re_string_reconstruct): Don't clear valid_raw_len before calling
45337         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
45338         tip_context using re_string_context_at.
45339
45340         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
45341
45342         * lib/posix/regex.h: g++ still cannot handled [restrict].
45343
45344         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
45345
45346         * lib/posix/regex.h: Remove special handling for VMS.
45347
45348 2006-08-10  Jim Meyering  <jim@meyering.net>
45349
45350         * modules/same-inode: New module.
45351         * modules/dev-ino: New module.
45352         * modules/cycle-check: Depend on these modules, rather than simply
45353         including their .h files.
45354         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
45355         required via m4/cycle-check.m4.
45356         * modules/same: Depend on new same-inode module, rather than
45357         including same-inode.h.
45358         * modules/chdir-safer: New file.
45359
45360         * modules/chown (Depends-on): Add stat-macros.
45361
45362 2006-08-10  Jim Meyering  <jim@meyering.net>
45363
45364         * m4/cycle-check.m4: New file.
45365         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
45366         * m4/dev-ino.m4, m4/same-inode.m4: New files.
45367
45368 2006-08-10  Eric Blake  <ebb9@byu.net>
45369
45370         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
45371         in from original proposal.
45372
45373 2006-08-10  Eric Blake  <ebb9@byu.net>
45374         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45375
45376         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
45377         namespace.
45378
45379 2006-08-10  Bruno Haible  <bruno@clisp.org>
45380
45381         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
45382         as well.
45383
45384 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
45385
45386         Sync from coreutils.
45387
45388         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
45389
45390         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
45391         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
45392
45393 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
45394
45395         * modules/restrict: Remove; no longer needed now that we assume
45396         Autoconf 2.59 or later.
45397         * MODULES.html.sh: Remove 'restrict'.
45398         * modules/argp (Depends-on): Remove 'restrict'.
45399         * modules/base64 (Depends-on): Likewise.
45400         * modules/gc (Depends-on): Likewise.
45401         * modules/getaddrinfo (Depends-on): Likewise.
45402         * modules/glob (Depends-on): Likewise.
45403         * modules/inet_ntop (Depends-on): Likewise.
45404         * modules/inet_pton (Depends-on): Likewise.
45405         * modules/memxor (Depends-on): Likewise.
45406         * modules/regex (Depends-on): Likewise.
45407         * modules/strtok_r (Depends-on): Likewise.
45408         * modules/time_r (Depends-on): Likewise.
45409
45410 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
45411
45412         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
45413         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
45414         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
45415         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
45416         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
45417         * m4/memxor.m4 (gl_MEMXOR): Likewise.
45418         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
45419         gl_C_RESTRICT replaced by AC_C_RESTRICT.
45420
45421         Merge from coreutils.
45422         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
45423         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
45424         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
45425         * m4/time_r.m4 (gl_TIME_R): Likewise.
45426
45427 2006-08-09  Karl Berry  <karl@gnu.org>
45428
45429         * config/srclist.txt: no more gettext-tools, per Bruno.
45430
45431 2006-08-08  Eric Blake  <ebb9@byu.net>
45432
45433         * modules/verror: New module.
45434         * MODULES.html.sh: Document it.
45435
45436 2006-08-08  Eric Blake  <ebb9@byu.net>
45437
45438         * lib/verror.h, lib/verror.c: New files.
45439
45440 2006-08-08  Eric Blake  <ebb9@byu.net>
45441
45442         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
45443         verror_at_line output complies with GNU Coding Standards even when
45444         file is NULL.
45445
45446 2006-08-07  Bruno Haible  <bruno@clisp.org>
45447
45448         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
45449         versions of AIX.
45450         Reported by Ralf Wildenhues.
45451
45452 2006-08-07  Bruno Haible  <bruno@clisp.org>
45453
45454         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
45455         in an AC_DEFUN. Needed so that the autoconf snippets can use
45456         AC_REQUIRE.
45457
45458 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45459
45460         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45461         Initialize pkgdata_DATA.
45462         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
45463         overriding it.
45464
45465 2006-08-06  Eric Blake  <ebb9@byu.net>
45466
45467         * lib/error.h: Fold in some upstream changes from glibc.
45468         * lib/error.c: Likewise.
45469
45470 2006-08-04  Bruno Haible  <bruno@clisp.org>
45471
45472         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45473         Make the mostlyclean-local rule depend on mostlyclean-generic.
45474         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
45475
45476 2006-07-31  Bruno Haible  <bruno@clisp.org>
45477
45478         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
45479         <stdlib.h>, <string.h>.
45480
45481 2006-07-30  Bruno Haible  <bruno@clisp.org>
45482
45483         * modules/readlink (License): Change to LGPL.
45484
45485 2006-07-30  Bruno Haible  <bruno@clisp.org>
45486
45487         * modules/javaversion (Makefile.am): Distribute javaversion.java and
45488         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
45489         set PKGDATADIR to point to it.
45490
45491 2006-07-30  Bruno Haible  <bruno@clisp.org>
45492
45493         * modules/csharpexec (configure.ac): Comment out macro invocation.
45494         * modules/javaexec (configure.ac): Likewise.
45495         * modules/javacomp-script (configure.ac): Likewise.
45496
45497         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
45498
45499 2006-07-30  Bruno Haible  <bruno@clisp.org>
45500
45501         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
45502         linked-list.
45503
45504 2006-07-30  Bruno Haible  <bruno@clisp.org>
45505
45506         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
45507
45508 2006-07-30  Bruno Haible  <bruno@clisp.org>
45509
45510         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45511         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
45512         get removed.
45513
45514 2006-07-29  Bruno Haible  <bruno@clisp.org>
45515
45516         Make it possible for gnulib-tool to work with locally modified or
45517         augmented gnulib repositories.
45518         * gnulib-tool (func_usage): Document --local-dir option.
45519         (local_gnulib_dir): New variable.
45520         Handle --local-dir option.
45521         (func_lookup_file): New function.
45522         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
45523         (func_get_description, func_get_filelist, func_get_description,
45524         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
45525         func_get_automake_snippet, func_get_include_directive,
45526         func_get_license, func_get_maintainer): Use func_lookup_file.
45527         (func_import, func_create_testdir): Use func_lookup_file.
45528
45529 2006-07-29  Bruno Haible  <bruno@clisp.org>
45530
45531         * modules/setenv (Depends-on): Add unistd.
45532
45533 2006-07-29  Bruno Haible  <bruno@clisp.org>
45534
45535         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
45536
45537 2006-07-29  Bruno Haible  <bruno@clisp.org>
45538
45539         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
45540
45541 2006-07-29  Bruno Haible  <bruno@clisp.org>
45542
45543         * gnulib-tool (import, update): If there is no Makefile.am, look at
45544         aclocal.m4, instead of bailing out.
45545
45546 2006-07-29  Bruno Haible  <bruno@clisp.org>
45547
45548         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
45549         Categorize the options by when they are useful.
45550
45551 2006-07-29  Bruno Haible  <bruno@clisp.org>
45552
45553         * gnulib-tool (func_usage): Document option --no-libtool.
45554         Handle option --no-libtool.
45555         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
45556         for changed semantics of $libtool variable.
45557         (func_import): Likewise. If libtool is not used, show this through
45558         an option --no-libtool.
45559         (func_create_testdir): Update.
45560
45561 2006-07-29  Bruno Haible  <bruno@clisp.org>
45562
45563         * gnulib-tool (func_import): Extend error message about missing
45564         --doc-base.
45565
45566 2006-07-29  Bruno Haible  <bruno@clisp.org>
45567
45568         * gnulib-tool (func_import): Don't create the $docbase directory if
45569         there is no file to store there.
45570
45571 2006-07-29  Bruno Haible  <bruno@clisp.org>
45572
45573         * gnulib-tool (autoconf_minversion): If a --dir option is given and
45574         relevant, look for configure.ac there, not in the current directory.
45575         Also use a simple search for AC_PREREQ, not "autoconf --trace".
45576
45577 2006-07-29  Bruno Haible  <bruno@clisp.org>
45578
45579         * gnulib-tool (SORT): New variable.
45580         (func_usage): Undocument --assume-autoconf option.
45581         Remove --assume-autoconf option handling.
45582         (autoconf_minversion): Determine from the contents of configure.ac.
45583         (func_import): Remove autoconf_minversion handling.
45584         Suggested by Eric Blake.
45585
45586 2006-07-29  Bruno Haible  <bruno@clisp.org>
45587
45588         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
45589
45590 2006-07-29  Bruno Haible  <bruno@clisp.org>
45591
45592         * config/srclist.txt (*setenv.[ch]): Remove rules.
45593
45594 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45595
45596         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
45597
45598 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45599
45600         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
45601         arpa/inet.h.
45602
45603 2006-07-28  Simon Josefsson  <jas@extundo.com>
45604
45605         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
45606         * modules/inet_pton (Depends-on): Likewise.
45607
45608 2006-07-28  Simon Josefsson  <jas@extundo.com>
45609
45610         * m4/netinet_in_h.m4: New file.
45611
45612 2006-07-28  Simon Josefsson  <jas@extundo.com>
45613
45614         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
45615         #include's.
45616
45617 2006-07-28  Simon Josefsson  <jas@extundo.com>
45618
45619         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
45620         #include's.
45621
45622 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
45623
45624         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
45625         setgid on directories only if they set these bits.
45626         * lib/modechange.h: Remove obsolete comment about masks.
45627
45628 2006-07-28  Eric Blake  <ebb9@byu.net>
45629
45630         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
45631         macro expansion.
45632
45633 2006-07-28  Bruno Haible  <bruno@clisp.org>
45634
45635         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
45636
45637 2006-07-28  Bruno Haible  <bruno@clisp.org>
45638
45639         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
45640
45641 2006-07-28  Bruno Haible  <bruno@clisp.org>
45642
45643         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
45644         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
45645         Define fallbacks.
45646         Avoids link error on FreeBSD 4.x.
45647         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45648
45649         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
45650         encoding.
45651         * lib/mbswidth.c (iswcntrl): Likewise.
45652
45653 2006-07-27  Bruno Haible  <bruno@clisp.org>
45654
45655         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
45656         test.
45657
45658 2006-07-27  Bruno Haible  <bruno@clisp.org>
45659
45660         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
45661         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
45662         defined.
45663
45664 2006-07-26  Eric Blake  <ebb9@byu.net>
45665
45666         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
45667
45668 2006-07-26  Eric Blake  <ebb9@byu.net>
45669
45670         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
45671         like mingw that lack mkstemp.
45672         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
45673         avoid compilation warning on mingw.
45674
45675 2006-07-26  Bruno Haible  <bruno@clisp.org>
45676
45677         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
45678         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
45679         INT_FAST*_MIN, INTPTR_MIN.
45680
45681 2006-07-25  Bruno Haible  <bruno@clisp.org>
45682
45683         * modules/version-etc (Depends-on): Add stdarg.
45684
45685 2006-07-25  Bruno Haible  <bruno@clisp.org>
45686
45687         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
45688         complex commands.
45689
45690 2006-07-25  Bruno Haible  <bruno@clisp.org>
45691
45692         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
45693         defined in <stdarg.h> or config.h.
45694
45695 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
45696
45697         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
45698         (gl_STDIO_SAFER): Remove.
45699
45700 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
45701
45702         * MODULES.html.sh (File stream based Input/Output):
45703         Add fopen-safer, tmpfile-safer; remove stdio-safer.
45704         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
45705         * modules/fopen-safer, modules/tmpfile-safer: New files.
45706         * modules/stdio-safer: Remove.
45707
45708 2006-07-24  Bruno Haible  <bruno@clisp.org>
45709
45710         * modules/tmpdir: New file.
45711         * MODULES.html.sh (File system functions): Add it.
45712
45713 2006-07-24  Bruno Haible  <bruno@clisp.org>
45714
45715         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
45716         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
45717
45718 2006-07-24  Bruno Haible  <bruno@clisp.org>
45719
45720         * modules/clean-temp: New file.
45721
45722 2006-07-24  Bruno Haible  <bruno@clisp.org>
45723
45724         * m4/tmpdir.m4: New file, from GNU gettext.
45725
45726 2006-07-24  Bruno Haible  <bruno@clisp.org>
45727
45728         * lib/tmpdir.h: New file, from GNU gettext.
45729         * lib/tmpdir.c: New file, from GNU gettext.
45730
45731 2006-07-24  Bruno Haible  <bruno@clisp.org>
45732
45733         * lib/clean-temp.h: New file, from GNU gettext.
45734         * lib/clean-temp.c: New file, from GNU gettext.
45735
45736 2006-07-23  Eric Blake  <ebb9@byu.net>
45737
45738         * modules/stdio-safer (Files): Add tmpfile-safer.c.
45739         (Depends-on): Add binary-io.
45740
45741 2006-07-23  Eric Blake  <ebb9@byu.net>
45742
45743         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
45744
45745 2006-07-23  Eric Blake  <ebb9@byu.net>
45746
45747         * lib/tmpfile-safer.c: New file.
45748         * lib/stdio-safer.h (fopen_safer): Add prototype.
45749         * lib/stdio--.h (tmpfile): Make safer.
45750
45751 2006-07-23  Bruno Haible  <bruno@clisp.org>
45752
45753         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
45754         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
45755         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
45756         gl_linked_remove_at): Use it.
45757
45758 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45759         and Simon Josefsson <jas@extundo.com>
45760
45761         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
45762
45763         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
45764
45765 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45766
45767         * modules/close-stream: New file.
45768         * modules/closeout (Description): Make it clear that it exits
45769         with a diagnostic on error.
45770         (Depends-on): Add close-stream.  Remove fpending, stdbool.
45771         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
45772
45773 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45774
45775         * m4/close-stream.m4: New file.
45776
45777 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45778
45779         * lib/close-stream.c, lib/close-stream.h: New files.
45780
45781 2006-07-22  Bruno Haible  <bruno@clisp.org>
45782
45783         Merge from GNU gettext 0.15.
45784
45785         2006-05-01  Bruno Haible  <bruno@clisp.org>
45786
45787                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
45788
45789         2006-07-22  Bruno Haible  <bruno@clisp.org>
45790
45791                 * modules/javaversion: New file.
45792                 * MODULES.html.sh (Java): Add javaversion.
45793
45794         2006-03-12  Bruno Haible  <bruno@clisp.org>
45795
45796                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
45797
45798         2005-12-04  Bruno Haible  <bruno@clisp.org>
45799
45800                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
45801                 (untested).
45802
45803         2006-06-21  Bruno Haible  <bruno@clisp.org>
45804
45805                 Avoid warnings from recent versions of mcs.
45806                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
45807                 -o, -L, -r any more. Use options documented since mcs-1.0
45808                 instead. Similarly for -g.
45809
45810         2005-12-04  Bruno Haible  <bruno@clisp.org>
45811
45812                 * build-aux/csharpcomp.sh.in: Suffix for resources is
45813                 .resources, not .resource.
45814
45815         2005-07-09  Bruno Haible  <bruno@clisp.org>
45816
45817                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
45818                 add a .dll suffix.
45819                 Reported by Mark Junker <mjscod@gmx.de>.
45820
45821         2006-07-22  Bruno Haible  <bruno@clisp.org>
45822
45823                 * modules/gettext: Upgrade to gettext-0.15.
45824                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
45825                 m4/visibility.m4.
45826                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
45827
45828 2006-07-22  Bruno Haible  <bruno@clisp.org>
45829
45830         Merge from GNU gettext 0.15.
45831
45832         2006-03-25  Bruno Haible  <bruno@clisp.org>
45833
45834                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
45835
45836         2006-07-21  Bruno Haible  <bruno@clisp.org>
45837
45838                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
45839                 "1.1".
45840
45841         2006-05-09  Bruno Haible  <bruno@clisp.org>
45842
45843                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
45844                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
45845                 for the conftestver execution.
45846
45847         2006-05-01  Bruno Haible  <bruno@clisp.org>
45848
45849                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
45850                 optional target-version argument. Verify that the compiler
45851                 groks source of the specified source-version, or add -source
45852                 option as necessary. Verify that the compiler produces
45853                 bytecode in the specified target-version, or add -target and
45854                 -source options as necessary. Make the result of the test
45855                 available as variable CONF_JAVAC. Also log error output in
45856                 config.log.
45857
45858         2006-03-11  Bruno Haible  <bruno@clisp.org>
45859
45860                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
45861
45862         2006-05-09  Bruno Haible  <bruno@clisp.org>
45863
45864                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
45865                 CLASSPATH_SEPARATOR to a semicolon.
45866
45867         2006-03-12  Bruno Haible  <bruno@clisp.org>
45868
45869                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
45870                 available as variable CONF_JAVA, for subsequent autoconf
45871                 tests. Also log error output in config.log.
45872
45873         2006-07-19  Bruno Haible  <bruno@clisp.org>
45874
45875                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
45876                 that getline works on glibc2 systems. Needed to avoid trouble
45877                 in relocatable.c.
45878                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
45879
45880         2005-12-04  Bruno Haible  <bruno@clisp.org>
45881
45882                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
45883                 launcher (untested).
45884
45885         2005-12-04  Bruno Haible  <bruno@clisp.org>
45886
45887                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
45888
45889         2006-07-22  Bruno Haible  <bruno@clisp.org>
45890
45891                 * gettext.m4: Update from GNU gettext-0.15.
45892                 * nls.m4: Likewise.
45893                 * po.m4: Likewise.
45894                 * inttypes-pri.m4: Likewise.
45895                 * inttypes-h.m4: Renamed from inttypes.m4.
45896                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
45897
45898 2006-07-22  Bruno Haible  <bruno@clisp.org>
45899
45900         Merge from GNU gettext 0.15.
45901
45902         2005-07-05  Bruno Haible  <bruno@clisp.org>
45903
45904                 * printf-args.c (printf_fetchargs): Work around broken
45905                 definition of wint_t on mingw.
45906
45907         2005-02-12  Bruno Haible  <bruno@clisp.org>
45908
45909                 * xallocsa.h: Add extern "C" for C++.
45910
45911         2006-05-17  Bruno Haible  <bruno@clisp.org>
45912
45913                 Cygwin portability.
45914                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
45915
45916         2006-04-30  Bruno Haible  <bruno@clisp.org>
45917
45918                 * progreloc.c: Include <mach-o/dyld.h> if available.
45919                 (find_executable): Use _NSGetExecutablePath when possible.
45920
45921         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
45922
45923                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
45924                 function.
45925
45926         2005-12-29  Bruno Haible  <bruno@clisp.org>
45927
45928                 * progreloc.c (set_program_name_and_installdir): Fix
45929                 compilation error.
45930
45931         2005-12-04  Bruno Haible  <bruno@clisp.org>
45932
45933                 Cygwin portability.
45934                 * progreloc.c: Include <windows.h> also on Cygwin.
45935                 (find_executable): Add support for Cygwin.
45936                 (set_program_name_and_installdir): Handle also platforms with
45937                 nonempty EXEEXT.
45938
45939         2006-07-11  Bruno Haible  <bruno@clisp.org>
45940
45941                 * javacomp.c: Fix a comment.
45942                 Reported by Jim Meyering.
45943
45944         2006-04-30  Bruno Haible  <bruno@clisp.org>
45945
45946                 * javacomp.h (compile_java_class): Add source_version,
45947                 target_version arguments.
45948                 * javacomp.c: Rewritten to choose only a compiler that
45949                 respects the specified source_version and target_version.
45950
45951         2006-06-27  Bruno Haible  <bruno@clisp.org>
45952
45953                 Assume correct S_ISDIR macro.
45954                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
45955
45956         2006-07-22  Bruno Haible  <bruno@clisp.org>
45957
45958                 * javaversion.h: New file, from GNU gettext.
45959                 * javaversion.c: New file, from GNU gettext.
45960                 * javaversion.java: New file, from GNU gettext.
45961                 * javaversion.class: New file, from GNU gettext.
45962
45963         2006-05-17  Bruno Haible  <bruno@clisp.org>
45964
45965                 Cygwin portability.
45966                 * javaexec.c (execute_java_class): Test for jview program
45967                 also on Cygwin.
45968
45969         2006-04-09  Bruno Haible  <bruno@clisp.org>
45970
45971                 * fatal-signal.c: Don't include string.h.
45972                 (at_fatal_signal): Use a copying loop instead of memcpy.
45973
45974         2005-12-04  Bruno Haible  <bruno@clisp.org>
45975
45976                 * csharpexec.c: Add support for 'clix' launcher (untested).
45977                 (execute_csharp_using_sscli): New function.
45978                 (execute_csharp_program): Call it.
45979
45980         2006-06-21  Bruno Haible  <bruno@clisp.org>
45981
45982                 Avoid warnings from recent versions of mcs.
45983                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
45984                 -o, -L, -r any more. Use options documented since mcs-1.0
45985                 instead. Similarly for -g.
45986
45987         2005-07-09  Bruno Haible  <bruno@clisp.org>
45988
45989                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
45990                 add a .dll suffix.
45991                 Reported by Mark Junker <mjscod@gmx.de>.
45992
45993         2006-06-17  Bruno Haible  <bruno@clisp.org>
45994
45995                 * config.charset: Update for NetBSD 3.0.
45996
45997         2006-05-17  Bruno Haible  <bruno@clisp.org>
45998
45999                 Cygwin portability.
46000                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
46001
46002         2006-05-16  Bruno Haible  <bruno@clisp.org>
46003
46004                 * localcharset.c [CYGWIN]: Include <windows.h>.
46005                 (get_charset_aliases): For Cygwin, return the same CPxxx
46006                 aliases list as under WIN32.
46007                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
46008                 the environment variables. Fall back to GetACP().
46009
46010         2006-04-05  Bruno Haible  <bruno@clisp.org>
46011
46012                 * config.charset: Update Juan Manuel Guerrero's address.
46013
46014         2005-02-12  Bruno Haible  <bruno@clisp.org>
46015
46016                 * allocsa.h: Add extern "C" for C++.
46017
46018         2005-02-10  Bruno Haible  <bruno@clisp.org>
46019
46020                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
46021                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
46022
46023         2006-07-22  Bruno Haible  <bruno@clisp.org>
46024
46025                 * gettext.h: Update to GNU gettext-0.15.
46026
46027 2006-07-22  Bruno Haible  <bruno@clisp.org>
46028
46029         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
46030         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
46031         lib-prefix.m4, longdouble.m4, ssize_t.m4.
46032
46033 2006-07-21  Eric Blake  <ebb9@byu.net>
46034
46035         * modules/stdlib-safer: New file.
46036         * MODULES.html.sh (File stream based Input/Output): Add
46037         stdlib-safer.
46038
46039 2006-07-21  Eric Blake  <ebb9@byu.net>
46040
46041         * lib/stdlib-safer.h: New file from coreutils, required by
46042         stdlib--.h.
46043
46044 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
46045
46046         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
46047
46048 2006-07-20  Bruno Haible  <bruno@clisp.org>
46049
46050         * gnulib-tool: Recognize new option --assume-autoconf.
46051         (autoconf_minversion): New variable.
46052         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
46053
46054 2006-07-20  Bruno Haible  <bruno@clisp.org>
46055
46056         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
46057
46058 2006-07-19  Derek R. Price  <derek@ximbiot.com>
46059
46060         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
46061         Reindent and repaginate.
46062
46063 2006-07-19  Derek Price  <derek@ximbiot.com>
46064
46065         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
46066         Correct grammar.
46067
46068 2006-07-17  Bruno Haible  <bruno@clisp.org>
46069
46070         * modules/list: New file.
46071         * modules/array-list: New file.
46072         * modules/carray-list, modules/carray-list-tests: New files.
46073         * modules/linked-list, modules/linked-list-tests: New files.
46074         * modules/avltree-list, modules/avltree-list-tests: New files.
46075         * modules/rbtree-list, modules/rbtree-list-tests: New files.
46076         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
46077         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
46078         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
46079         * modules/oset: New file.
46080         * modules/array-oset: New file.
46081         * modules/avltree-oset, modules/avltree-oset-tests: New files.
46082         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
46083         * tests/test-carray_list.c: New file.
46084         * tests/test-linked_list.c: New file.
46085         * tests/test-avltree_list.c: New file.
46086         * tests/test-rbtree_list.c: New file.
46087         * tests/test-linkedhash_list.c: New file.
46088         * tests/test-avltreehash_list.c: New file.
46089         * tests/test-rbtreehash_list.c: New file.
46090         * tests/test-avltree_oset.c: New file.
46091         * tests/test-rbtree_oset.c: New file.
46092         * MODULES.html.sh (Container data structures): New section.
46093
46094 2006-07-17  Bruno Haible  <bruno@clisp.org>
46095
46096         * m4/gl_list.m4: New file.
46097
46098 2006-07-17  Bruno Haible  <bruno@clisp.org>
46099
46100         * lib/gl_list.h: New file.
46101         * lib/gl_list.c: New file.
46102         * lib/gl_array_list.h: New file.
46103         * lib/gl_array_list.c: New file.
46104         * lib/gl_carray_list.h: New file.
46105         * lib/gl_carray_list.c: New file.
46106         * lib/gl_linked_list.h: New file.
46107         * lib/gl_linked_list.c: New file.
46108         * lib/gl_anylinked_list1.h: New file.
46109         * lib/gl_anylinked_list2.h: New file.
46110         * lib/gl_avltree_list.h: New file.
46111         * lib/gl_avltree_list.c: New file.
46112         * lib/gl_anyavltree_list1.h: New file.
46113         * lib/gl_anyavltree_list2.h: New file.
46114         * lib/gl_rbtree_list.h: New file.
46115         * lib/gl_rbtree_list.c: New file.
46116         * lib/gl_anyrbtree_list1.h: New file.
46117         * lib/gl_anyrbtree_list2.h: New file.
46118         * lib/gl_anytree_list1.h: New file.
46119         * lib/gl_anytree_list2.h: New file.
46120         * lib/gl_linkedhash_list.h: New file.
46121         * lib/gl_linkedhash_list.c: New file.
46122         * lib/gl_anyhash_list1.h: New file.
46123         * lib/gl_anyhash_list2.h: New file.
46124         * lib/gl_avltreehash_list.h: New file.
46125         * lib/gl_avltreehash_list.c: New file.
46126         * lib/gl_rbtreehash_list.h: New file.
46127         * lib/gl_rbtreehash_list.c: New file.
46128         * lib/gl_anytreehash_list1.h: New file.
46129         * lib/gl_anytreehash_list2.h: New file.
46130
46131         * lib/gl_oset.h: New file.
46132         * lib/gl_oset.c: New file.
46133         * lib/gl_array_oset.h: New file.
46134         * lib/gl_array_oset.c: New file.
46135         * lib/gl_avltree_oset.h: New file.
46136         * lib/gl_avltree_oset.c: New file.
46137         * lib/gl_rbtree_oset.h: New file.
46138         * lib/gl_rbtree_oset.c: New file.
46139         * lib/gl_anytree_oset.h: New file.
46140
46141 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
46142
46143         * m4/mkancesdirs.m4: New file.
46144         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
46145         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
46146         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
46147         it.
46148
46149 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
46150
46151         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
46152         * lib/mkancesdirs.h: New files.
46153         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
46154         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
46155         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
46156         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
46157         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
46158         callers changed.  Revamp internals significantly, by not
46159         attempting to create directories that are temporarily more
46160         permissive than the final results.  Do not attempt to use
46161         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
46162         This removes some race conditions, fixes some bugs, and simplifies
46163         things.  Use new dirchownmod function to do owner and mode changes.
46164         * lib/mkdir-p.h: Likewise.
46165         * lib/modechange.c (octal_to_mode): New function.
46166         (struct mode_change): New member mentioned.
46167         (make_node_op_equals): New arg mentioned.  All callers changed.
46168         (mode_compile): Keep track of which mode bits the user has explicitly
46169         mentioned.
46170         (mode_adjust): New arg DIR, so that we implement the X op correctly.
46171         New arg PMODE_BITS, to keep track of which mode bits the user
46172         mentioned; it treats S_ISUID and S_ISGID speciall.
46173         All callers changed.
46174         * lib/modechange.h: Likewise.
46175
46176 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
46177
46178         * MODULES.html.sh: Add mkancestors.
46179         * modules/mkancesdirs: New module.
46180         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
46181         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
46182         The chdir-safer and afs files are now orphans; I'll remove them
46183         unless someone speaks up.
46184         Add lib/dirchownmod.c, lib/dirchownmod.h.
46185         (Depends-on): Remove alloca, chown, save-cwd, dirname.
46186         Add lchown, mkancesdirs.
46187         (Maintainer): Add self.
46188
46189 2006-07-15  Karl Berry  <karl@gnu.org>
46190
46191         * gnulib-tool: help message wording/arrangement.
46192
46193 2006-07-14  Simon Josefsson  <jas@extundo.com>
46194
46195         * doc/gnulib.texi (Libtool and Windows): New section.
46196
46197 2006-07-12  Simon Josefsson  <jas@extundo.com>
46198
46199         * modules/gendocs (License): Fix license, approved by Karl.
46200
46201 2006-07-12  Eric Blake  <ebb9@byu.net>
46202
46203         * MODULES.html.sh: Add gendocs.
46204
46205 2006-07-11  Eric Blake  <ebb9@byu.net>
46206
46207         * modules/fdl: New module, to install doc/fdl.texi.
46208         * MODULES.html.sh: Add new section for documentation modules.
46209         * gnulib-tool: Avoid space-tab.
46210         (--doc-base): New option, to manage files from doc.
46211
46212 2006-07-11  Eric Blake  <ebb9@byu.net>
46213
46214         * m4/absolute-header.m4: Fix comments to match recent change.
46215
46216 2006-07-11  Eric Blake  <ebb9@byu.net>
46217
46218         * gnulib-tool: List --doc-base before --tests-base.
46219
46220 2006-07-11  Derek R. Price  <derek@ximbiot.com>
46221
46222         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
46223
46224 2006-07-11  Bruno Haible  <bruno@clisp.org>
46225
46226         * README: Mention where to put documentation.
46227
46228 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46229
46230         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
46231
46232 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
46233
46234         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
46235         to stdint.m4.
46236
46237 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
46238
46239         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
46240         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
46241         "no/such/file/stdint.h" when there is no such file, so that
46242         the resulting C code can be parsed by dodgy compilers.
46243         Problems reported by Bob Proulx.
46244
46245 2006-07-10  Derek R. Price  <derek@ximbiot.com>
46246
46247         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
46248         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
46249         macros into the GNU _D_EXACT_NAMLEN.
46250         * lib/savedir.c:  Likewise.
46251         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
46252
46253 2006-07-10  Derek R. Price  <derek@ximbiot.com>
46254         and Paul Eggert  <eggert@cs.ucla.edu>
46255
46256         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
46257         * m4/savedir.m4:
46258         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
46259         macros into the GNU _D_EXACT_NAMLEN.
46260
46261 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
46262
46263         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
46264         around the absolute name, to work around a problem with the HP-UX
46265         11.23 native C compiler, reported by Bob Proulx.
46266
46267 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
46268
46269         * doc/maintain.texi, make-stds.texi: Sync from
46270         <http://savannah.gnu.org/projects/gnustandards>.
46271
46272 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
46273
46274         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
46275
46276 2006-07-09  Jim Meyering  <jim@meyering.net>
46277
46278         * m4/glob.m4: Remove a doubled word in a comment.
46279
46280 2006-07-09  Jim Meyering  <jim@meyering.net>
46281
46282         * lib/argp-pv.c: Remove a doubled word in a comment.
46283         * lib/check-version.c (check_version): Likewise.
46284         * lib/javacomp.c (compile_java_class): Likewise.
46285
46286 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
46287
46288         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
46289         for the benefit of people using Autoconf 2.60.  If you want to
46290         support older Autoconf versions you can copy m4/onceonly_2_57.m4
46291         (or m4/onceonly.m4, if pre-2.57) manually.
46292
46293 2006-07-08  Jim Meyering  <jim@meyering.net>
46294
46295         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
46296         comment.
46297         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
46298         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
46299         comment.
46300
46301 2006-07-08  Jim Meyering  <jim@meyering.net>
46302
46303         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
46304
46305 2006-07-07  Simon Josefsson  <jas@extundo.com>
46306
46307         * tests/test-crc.c: Change expected crc value, the test vector
46308         were probably computed using the old broken crc.c?
46309
46310 2006-07-06  Simon Josefsson  <jas@extundo.com>
46311
46312         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
46313         now the canonical place for the M4 file).
46314
46315         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
46316         from the sys_socket dependency now.
46317
46318         * modules/inet_pton (Files): Ditto.
46319
46320         * modules/inet_ntop (Files): Ditto.
46321
46322 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
46323
46324         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
46325         not gl_PREREQ_GETUSERSHELL.
46326
46327 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46328
46329         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
46330         with only one argument, for Autoconf 2.60.
46331         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
46332         expand to nothing, so add a shell command to avoid syntax error.
46333         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
46334
46335 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46336
46337         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
46338
46339 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
46340
46341         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
46342         no longer needed.  Check for isblank decl.
46343         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
46344         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
46345         of existence.
46346
46347 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
46348
46349         * lib/getloadavg.c: Use __VMS, not VMS.
46350         * lib/getopt.c: Likewise.
46351         * lib/getpagesize.h: Likewise.
46352         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
46353         and probably does not work.
46354
46355 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
46356
46357         * lib/.cppi-disable: Add wcwidth.
46358         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
46359         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
46360         (ISGRAPH): Remove.  All uses changed to isgraph.
46361         (FOLD) [!defined _LIBC]: Remove special case.
46362         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
46363         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
46364         HAVE_ISBLANK.
46365         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
46366         case.
46367
46368 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
46369
46370         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
46371         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
46372         brackets.  Other minor changes to suppress some compiler
46373         warnings.
46374
46375 2006-07-06  Derek R. Price  <derek@ximbiot.com>
46376         and Paul Eggert  <eggert@cs.ucla.edu>
46377
46378         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
46379         of invoking obsolescent AC_HEADER_DIRENT macro.
46380         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
46381         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
46382         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
46383         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
46384         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
46385         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
46386         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
46387         * m4/readdir.m4: Remove; no longer needed.
46388
46389 2006-07-06  Derek R. Price  <derek@ximbiot.com>
46390         and Paul Eggert  <eggert@cs.ucla.edu>
46391
46392         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
46393         Don't worry about this obsolete case any more.
46394         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
46395         directories.
46396         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
46397         worry about this obsolete case any more.
46398         * lib/fts.c: Likewise.
46399         * lib/getcwd.c: Likewise.
46400         * lib/glob.h: Likewise.
46401         * lib/savedir.c: Likewise.
46402
46403 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
46404
46405         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
46406         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
46407         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
46408         needed.
46409         All uses removed.
46410         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
46411         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
46412         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
46413         needed.
46414         * m4/getdate.m4 (gl_GETDATE): Likewise.
46415         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
46416         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
46417         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
46418         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
46419         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
46420         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
46421         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
46422         needed.
46423
46424 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
46425
46426         * lib/memcasecmp.c: Include <limits.h>.
46427         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
46428         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
46429         Don't assume isdigit succeeds only on '0' through '9'.
46430
46431 2006-07-05  Eric Blake  <ebb9@byu.net>
46432
46433         * modules/getaddrinfo (Depends-on): Add snprintf.
46434
46435 2006-07-05  Eric Blake  <ebb9@byu.net>
46436
46437         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
46438         to avoid 'header present but could not be compiled' on cygwin.
46439
46440 2006-07-05  Eric Blake  <ebb9@byu.net>
46441
46442         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
46443         missing from netdb.h.
46444         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
46445
46446 2006-07-05  Derek R. Price  <derek@ximbiot.com>
46447
46448         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
46449         no longer needed.
46450         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
46451         * m4/getdate.m4 (gl_GETDATE): Likewise.
46452         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
46453         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
46454         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
46455         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
46456         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
46457
46458 2006-07-05  Derek R. Price  <derek@ximbiot.com>
46459
46460         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
46461         All uses of is_space replaced by isspace.
46462         * lib/exit.h: Don't talk about STDC_HEADERS.
46463         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
46464         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
46465         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
46466         replaced by isprint etc.
46467         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
46468         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
46469         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
46470         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
46471         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
46472         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
46473
46474 2006-07-05  Bruno Haible  <bruno@clisp.org>
46475
46476         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
46477         the function exists, before testing against AIX.
46478         Reported by Martin Lambers <marlam@marlam.de>.
46479
46480 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
46481
46482         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
46483         From Mark D. Baushke.
46484
46485 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
46486
46487         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
46488         to the absolute name, not just one, to bypass Sun C 5.8's
46489         "warning: #include of /usr/include/... may be non-portable".
46490
46491 2006-07-04  Eric Blake  <ebb9@byu.net>
46492
46493         * modules/dirname-tests: New test module.
46494         * tests/test-dirname.c: New file, replacing dirname.c
46495         TEST_DIRNAME section that was recently deleted.
46496
46497 2006-07-04  Bruno Haible  <bruno@clisp.org>
46498
46499         Assume ANSI C header files and <ctype.h> functions.
46500         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
46501         (mbsnwidth): Use isprint, iscntrl instead.
46502
46503 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
46504
46505         Merge from coreutils.
46506         * MODULES.html.sh: Add xstrtold.
46507         * modules/xstrtold: New file.
46508         * modules/cycle-check (Files): Add lib/same-inode.h.
46509         * modules/dirname (Files): Add m4/double-slash-root.m4.
46510         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
46511         * modules/mkdir-p (Files): Add lib/same-inode.h.
46512         * modules/same (Files): Add lib/same-inode.h.
46513
46514 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
46515
46516         * m4/absolute-header.m4: Renamed from full-header-path.m4.
46517         This is to keep the terminology clean; POSIX talks about
46518         "absolute pathnames", not "full pathnames", but the GNU
46519         Coding Standards say to use "path" for something else;
46520         so use "absolute" to keep both sides happy.
46521         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
46522         Set gl_absolute_header, not gl_full_header_path.
46523         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
46524         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
46525         All uses changed.
46526
46527         Merge from coreutils.
46528
46529         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
46530
46531         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
46532         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
46533         want to require the building of c-strtod.o.
46534         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
46535         needs -lm directly.
46536         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
46537
46538         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
46539
46540         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
46541         --as-needed option if available.  Problem reported by Albert Chin in
46542         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
46543         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
46544         cc merely issues a bunch of annoying warnings for --as-needed
46545         (this problem was reported by Bob Proulx).  Also, try linking with
46546         -lm to detect a bug in binutils 2.16 (this problem was reported
46547         by Ralf Wildenhues).
46548
46549         2006-06-18  Jim Meyering  <jim@meyering.net>
46550
46551         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
46552         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
46553         macro.
46554         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
46555         also check for glibc-2.4's abort-inducing bug.
46556
46557         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
46558         Low-probability clean-up should be to use rmdir to get rid of
46559         the just-created directory, not unlink.
46560
46561         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
46562         configure fail, and request a bug report to inform us about it.
46563         Add a comment that, barring reports to the contrary, in 2007 we'll
46564         assume ftruncate is universally available.
46565
46566         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
46567
46568         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
46569
46570         2006-03-12  Jim Meyering  <jim@meyering.net>
46571
46572         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
46573         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
46574         * m4/same.m4 (gl_SAME): Likewise.
46575         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
46576
46577         2006-03-11  Eric Blake  <ebb9@byu.net>
46578
46579         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
46580         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
46581         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
46582         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
46583
46584 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
46585
46586         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
46587         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
46588         reported by Mark D. Baushke, one in
46589         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
46590
46591         Merge from coreutils.
46592
46593         * lib/.cppi-disable: Add stdint_.h.
46594         * lib/.cvsignore: Add stdint.h.
46595
46596         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
46597
46598         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
46599         both double and long double versions.
46600         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
46601         * lib/xstrtold.c: New file.
46602         * lib/xstrtod.h (xstrtold): New decl.
46603
46604         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
46605
46606         * lib/filemode.c (setst): Remove.
46607         (strmode): Rewrite to avoid setst.  This makes the code shorter,
46608         (arguably) clearer, and the generated code is a bit smaller on my
46609         Debian GNU/Linux stable x86 host.
46610
46611         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
46612
46613         * lib/filemode.c: Include "filemode.h" first, to test the interface.
46614         Assume that filemode.h includes sys/types.h and sys/stat.h.
46615         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
46616         (ftypelet): Reorder to put common cases first, for efficiency.
46617         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
46618         to do 'M'.
46619         (strmode): Renamed from mode_string, and now stores 12 bytes instead
46620         of 10, for compatibility with FreeBSD.  All callers changed.
46621         (filemodestring): Now stores 12 bytes instead of 10, and sets file
46622         types that can't be deduced solely from st_mode.  First arg is now a
46623         const pointer.
46624         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
46625         (strmode): Renamed from mode_string.
46626         (filemodestring): New decl.
46627         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
46628         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
46629         needed.
46630         (S_ISPORT, S_ISWHT): New macros, if not already defined.
46631
46632         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
46633
46634         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
46635         fsusage.h now does that.  Include fsusage.h first, to test interface.
46636         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
46637         at most one method (the old code could have generated decls that
46638         didn't conform to C89, not that this was ever exercised).
46639         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
46640
46641         2006-03-19  Jim Meyering  <jim@meyering.net>
46642
46643         Work even in a chroot where d_ino values for entries in "/"
46644         don't match the stat.st_ino values for the same names.
46645         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
46646         number, iterate through all entries again, using lstat instead.
46647         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
46648         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
46649
46650         * lib/getcwd.c (__getcwd): Clarify a comment.
46651         Use memcpy in place of a call to strcpy.
46652
46653         2006-03-12  Jim Meyering  <jim@meyering.net>
46654
46655         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
46656         matches that of the current directory (which we're about to chdir ".."
46657         out of), then save the dev-ino of the parent, instead.
46658
46659         * lib/same-inode.h (SAME_INODE): New file/macro.
46660         * lib/chdir-safer.c (SAME_INODE): Remove definition.
46661         Include "same-inode.h", instead.
46662         * lib/same.c: Likewise.
46663         * lib/cycle-check.h: Include "same-inode.h".
46664         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
46665         * lib/cycle-check.c (SAME_INODE): Remove definition.
46666         * lib/root-dev-ino.h: Include "same-inode.h".
46667
46668         2006-03-11  Eric Blake  <ebb9@byu.net>
46669
46670         * lib/same.c (same_name): s/base_name/last_component/
46671         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
46672         * lib/filenamecat.c (file_name_concat): Likewise.
46673
46674         2006-03-11  Eric Blake  <ebb9@byu.net>,
46675                     Paul Eggert  <eggert@cs.ucla.edu>
46676
46677         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
46678         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
46679         drive prefix.
46680         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
46681         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
46682         (last_component): New method.
46683         * lib/dirname.c (dir_len): Determine when drive letters need a
46684         subsequent slash.  Preserve // when it is special.
46685         (dir_name): Don't append dot when drive letter is absolute.
46686         [TEST_DIRNAME]: Move into a full-blown gnulib test.
46687         * lib/basename.c (base_name): New semantics - malloc the result.
46688         Preserve // when it is special.  Preserve relative files that look
46689         like drive letters.
46690         (base_len): Preserve // when it is special.
46691         (last_component): New method, similar to old base_name semantics.
46692         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
46693         base_name.  Strip redundant slashes from ///.
46694
46695 2006-07-03  Jim Meyering  <jim@meyering.net>
46696
46697         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
46698         macro is used before the first cycle_check call.
46699
46700 2006-07-03  Eric Blake  <ebb9@byu.net>
46701
46702         * modules/dirname (Depends-on): Add xstrndup.
46703
46704 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
46705
46706         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
46707         test cases, so that config.log is a bit easier to follow.
46708
46709 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
46710
46711         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
46712         both are 64 bits, since this seems to be the tradition, and this
46713         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
46714         we ever run into a host that prefers long long to long in this
46715         case, we'll need another configure-time test.  Problem reported by
46716         Jim Meyering.
46717
46718 2006-07-02  Eric Blake  <ebb9@byu.net>
46719
46720         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
46721
46722 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
46723
46724         * modules/inttypes (Depends-on): No longer depends on stdint.
46725         * modules/stdint (Description): Say more about assumptions.
46726         Say that the fast types might differ.  Say macros are used.
46727         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
46728         (Makefile.am): Revise list of substituted symbols to match
46729         new stdint.m4.
46730         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
46731         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
46732         * tests/test-stdint.c (verify_same_types)
46733         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
46734         the code conforms to C99/C89.
46735         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
46736         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
46737
46738 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
46739
46740         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
46741         but fix a bug, by requiring at least 64 bits.
46742         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
46743         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
46744         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
46745         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
46746
46747         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
46748         changes.  Make 2.59 a prerequisite.  Check and substitute for
46749         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
46750         inttypes.h.  Do not use special include files; just use the
46751         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
46752         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
46753         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
46754         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
46755         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
46756         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
46757         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
46758         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
46759         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
46760         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
46761         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
46762         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
46763         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
46764         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
46765         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
46766         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
46767         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
46768         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
46769         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
46770         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
46771         WINT_MAX.  Check for C99 conformance more strictly, by detecting
46772         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
46773         not check for things that C99 does not require, e.g., int8_t.  If
46774         a test isn't needed unless <stdint.h> isn't working, and is
46775         unlikely to be needed for any other reason, then don't do it
46776         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
46777         size_t, since we assume C89 freestanding at least.  Do not check
46778         for sig_atomic_t, wchar_t, or wint_t, since the code now does
46779         the right thing even if the types are not defined.  Instead use:
46780         (gl_STDINT_TYPE_PROPERTIES): New macro.
46781         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
46782         testing whether <sys/types.h> clashes, as Autoconf does this for
46783         us now.  All uses removed.
46784         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
46785         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
46786         (gl_CHECK_TYPE_SAME):
46787         Remove; no longer needed.
46788         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
46789         exists, since we'll return 0 anyway in that case.
46790         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
46791
46792 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
46793
46794         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
46795         possible collision with system files.
46796         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
46797         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
46798         WCHAR_MIN and WCHAR_MAX in this case.
46799         (<stddef.h>): Do not include; no longer needed.
46800         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
46801         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
46802         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
46803         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
46804         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
46805         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
46806         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
46807         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
46808         !defined(__c99))]: Include in this case too, since it's harmless
46809         now.
46810         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
46811         dangerous to do so.
46812         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
46813         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
46814         (_STDINT_MIN, _STDINT_MAX): New macros.
46815         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
46816         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
46817         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
46818         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
46819         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
46820         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
46821         macros, not typedefs; this simplifies things quite a bit.
46822         Use long int for all types narrower than int64_t.
46823         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
46824         Define in terms of long long int or int64_t or long int,
46825         not int64_t or int32_t.  This saves some compile-time testing.
46826         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
46827         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
46828         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
46829         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
46830         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
46831         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
46832         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
46833         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
46834         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
46835         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
46836         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
46837         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
46838         undef any previous version and define our own version, for
46839         simplicity and consistency with the new macros for types.
46840         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
46841         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
46842         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
46843         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
46844         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
46845         @WINT_T_SUFFIX@ to keep things simple here.
46846         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
46847         Simplify by assuming typical 8/16/32/64 host, since we're
46848         already doing that elsewhere anyway.
46849         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
46850         and assume long long int is 64 bits if available.  This
46851         speeds up 'configure'.
46852
46853 2006-07-01  Eric Blake  <ebb9@byu.net>
46854
46855         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
46856         Reported by Andreas Buening.
46857
46858 2006-07-01  Eric Blake  <ebb9@byu.net>
46859
46860         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
46861
46862 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
46863
46864         * lib/getaddrinfo.c: fixed typo
46865
46866 2006-06-29  Jim Meyering  <jim@meyering.net>
46867
46868         * modules/strftime (Maintainer): Add my name, since with the
46869         FPRINTFTIME changes strftime.c has forked from glibc.
46870
46871 2006-06-29  Eric Blake  <ebb9@byu.net>
46872
46873         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
46874
46875 2006-06-29  Eric Blake  <ebb9@byu.net>
46876
46877         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
46878
46879 2006-06-29  Eric Blake  <ebb9@byu.net>
46880
46881         * lib/stat_.h: New file.
46882
46883 2006-06-29  Eric Blake  <ebb9@byu.net>
46884
46885         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
46886         unused static function.
46887
46888 2006-06-29  Eric Blake  <ebb9@byu.net>
46889
46890         * doc/functions.texi (Function Portability): Document missing lstat
46891         on mingw.
46892
46893 2006-06-29  Eric Blake  <ebb9@byu.net>
46894
46895         * MODULES.html.sh: Add sys_stat.
46896         * modules/sys_stat: New module.
46897         * modules/mkstemp (Depends-on): Add sys_stat.
46898
46899 2006-06-29  Derek R. Price  <derek@ximbiot.com>
46900
46901         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
46902
46903 2006-06-29  Derek R. Price  <derek@ximbiot.com>
46904
46905         * m4/c-bs-a.m4: Removed.
46906
46907 2006-06-29  Derek R. Price  <derek@ximbiot.com>
46908
46909         * lib/strftime.c: Assume strftime() exists.
46910
46911 2006-06-29  Derek Price  <derek@ximbiot.com>
46912
46913         * modules/c-bs-a: Removed - \a is C89.
46914         * MODULES.html.sh: Remove c-bs-a.
46915
46916 2006-06-29  Bruno Haible  <bruno@clisp.org>
46917
46918         * modules/wcwidth (License): Change to LGPL.
46919
46920 2006-06-28  Simon Josefsson  <jas@extundo.com>
46921
46922         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
46923         on _WIN32.
46924
46925         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
46926         getnameinfo.
46927
46928 2006-06-28  Simon Josefsson  <jas@extundo.com>
46929
46930         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
46931
46932 2006-06-28  Simon Josefsson  <jas@extundo.com>
46933
46934         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
46935         functions there.  It will succeed on Windows XP, but on Windows
46936         2000 and (presumably) earlier, it will fail, and use the internal
46937         re-implementation.
46938         (use_win32_p): New function.
46939         (getaddrinfo): Use strtoul on servname, to support numeric ports.
46940         Support AI_NUMERICSERV to disable getservbyname.
46941         (getnameinfo): New function, only supports
46942         NI_NUMERICHOST|NI_NUMERICSERV for now.
46943
46944         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
46945         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
46946         getnameinfo.
46947
46948 2006-06-28  Eric Blake  <ebb9@byu.net>
46949
46950         * modules/wcwidth: New file.
46951         * modules/mbchar (Depends-on): Add wcwidth.
46952         * modules/mbswidth (Depends-on): Add wcwidth.
46953         * MODULES.html.sh: Add wcwidth.
46954
46955 2006-06-28  Eric Blake  <ebb9@byu.net>
46956
46957         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
46958         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
46959
46960 2006-06-28  Eric Blake  <ebb9@byu.net>
46961
46962         * lib/xvasprintf.h: Fix comments.
46963
46964 2006-06-28  Eric Blake  <ebb9@byu.net>
46965
46966         * lib/mbchar.h (wcwidth): Include wcwidth.h.
46967         * lib/mbswidth.c (wcwidth): Move from here...
46968         * lib/wcwidth.h: ...to this new file.
46969
46970 2006-06-28  Derek R. Price  <derek@ximbiot.com>
46971
46972         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
46973
46974         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
46975         it's obsolete.
46976         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
46977
46978 2006-06-28  Derek R. Price  <derek@ximbiot.com>
46979
46980         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
46981         Autoconf 2.60 says this stuff was obsolete.
46982
46983 2006-06-28  Bruno Haible  <bruno@clisp.org>
46984
46985         * modules/wcwidth (Files): Add m4/wchar_t.m4.
46986
46987 2006-06-28  Bruno Haible  <bruno@clisp.org>
46988
46989         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
46990         gt_TYPE_WCHAR_T.
46991
46992 2006-06-28  Bruno Haible  <bruno@clisp.org>
46993
46994         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
46995         declaration for wcwidth.
46996         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
46997
46998 2006-06-28  Bruno Haible  <bruno@clisp.org>
46999
47000         * lib/mkdtemp.c [MINGW]: Include <io.h>.
47001         (mkdir): Define using _mkdir.
47002
47003 2006-06-28  Bruno Haible  <bruno@clisp.org>
47004
47005         * lib/getaddrinfo.h: Fix POSIX URL.
47006         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
47007         _WIN32.
47008         (use_win32_p): Make static.
47009         (getaddrinfo): Reject service name if it is empty or does not consist
47010         solely of decimal digits, or if its value is > 65535.
47011         (getnameinfo): Remove useless casts.
47012
47013 2006-06-27  Simon Josefsson  <jas@extundo.com>
47014
47015         * modules/sys_select: New file, suggested by Bruno Haible, Paul
47016         Eggert and Martin Lambers.
47017
47018 2006-06-27  Simon Josefsson  <jas@extundo.com>
47019
47020         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
47021         Eggert and Martin Lambers.
47022
47023 2006-06-27  Bruno Haible  <bruno@clisp.org>
47024
47025         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
47026         result to 0, not to empty.
47027         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
47028
47029 2006-06-27  Bruno Haible  <bruno@clisp.org>
47030
47031         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
47032
47033 2006-06-26  Simon Josefsson  <jas@extundo.com>
47034
47035         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
47036         present.
47037
47038 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
47039
47040         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
47041         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
47042         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
47043
47044 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
47045
47046         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
47047
47048 2006-06-26  Bruno Haible  <bruno@clisp.org>
47049
47050         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
47051
47052 2006-06-26  Bruno Haible  <bruno@clisp.org>
47053
47054         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
47055
47056 2006-06-26  Bruno Haible  <bruno@clisp.org>
47057
47058         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
47059         SGI C compiler in pre-C99 mode.
47060         Suggested by Mark D. Baushke and Larry Jones.
47061
47062 2006-06-26  Bruno Haible  <bruno@clisp.org>
47063
47064         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
47065         WCHAR_MAX.
47066         Reported by Mark D. Baushke and Larry Jones.
47067
47068 2006-06-26  Bruno Haible  <bruno@clisp.org>
47069
47070         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
47071         in pre-C99 mode.
47072         Suggested by Mark D. Baushke and Larry Jones.
47073
47074 2006-06-23  Simon Josefsson  <jas@extundo.com>
47075             Bruno Haible  <bruno@clisp.org>
47076
47077         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
47078         Emit mostlyclean-local rule.
47079         (func_emit_tests_Makefile_am): Likewise.
47080         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
47081
47082 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
47083
47084         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
47085
47086 2006-06-23  Bruno Haible  <bruno@clisp.org>
47087
47088         * tests/test-stdint.c: Update to match ISO C 99 Technical
47089         Corrigendum 1.
47090
47091 2006-06-23  Bruno Haible  <bruno@clisp.org>
47092
47093         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
47094
47095 2006-06-23  Bruno Haible  <bruno@clisp.org>
47096
47097         * lib/stdint_.h: Treat IRIX like OpenBSD.
47098
47099 2006-06-23  Bruno Haible  <bruno@clisp.org>
47100
47101         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
47102         ISO C 99 Technical Corrigendum 1.
47103
47104 2006-06-22  Simon Josefsson  <jas@extundo.com>
47105
47106         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
47107         MinGW.
47108
47109 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
47110
47111         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
47112         needed.  Some compiler complained about some of them.  Problem reported
47113         by Larry Jones in
47114         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
47115
47116 2006-06-21  Simon Josefsson  <jas@extundo.com>
47117
47118         * tests/test-getaddrinfo.c: New file.
47119
47120         * modules/getaddrinfo-tests: New file.
47121
47122         * MODULES.html.sh: Add inet_pton.
47123
47124         * modules/inet_pton: New file.
47125
47126 2006-06-21  Simon Josefsson  <jas@extundo.com>
47127
47128         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
47129         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
47130         of using the (limited) gnulib implementation on Windows XP.
47131
47132         * m4/inet_pton.m4: New file.
47133
47134 2006-06-21  Simon Josefsson  <jas@extundo.com>
47135
47136         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
47137         variable.
47138
47139         * lib/socket_.h: Don't define WINVER.
47140
47141         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
47142         slightly modified to work in gnulib.
47143
47144 2006-06-21  Simon Josefsson  <jas@extundo.com>
47145
47146         * doc/gnulib.texi (Windows sockets): Add.
47147
47148 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
47149
47150         * lib/read-file.c (fread_file): Start with buffer allocation of
47151         0 bytes rather than 1 byte; this simplifies the code.
47152         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
47153         code to free buffer and save/restore errno.
47154         (internal_read_file): Remove unused local.
47155
47156 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
47157
47158         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
47159         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
47160         Problem reported by Denis Excoffier in
47161         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
47162
47163 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47164
47165         * modules/sys_socket, modules/socklen: Include sys/types since
47166         FreeBSD 4.x's sys/socket.h needs it.
47167
47168 2006-06-19  Simon Josefsson  <jas@extundo.com>
47169
47170         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
47171
47172 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
47173
47174         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
47175
47176 2006-06-19  Bruno Haible  <bruno@clisp.org>
47177
47178         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
47179         and FULL_PATH_INTTYPES_H in angle brackets.
47180         Reported by Mark D. Baushke <mdb@gnu.org>.
47181
47182 2006-06-17  Eric Blake  <ebb9@byu.net>
47183
47184         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
47185         errno.
47186
47187 2006-06-17  Bruno Haible  <bruno@clisp.org>
47188
47189         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
47190         <sys/inttypes.h>.
47191
47192 2006-06-17  Bruno Haible  <bruno@clisp.org>
47193
47194         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
47195         whether errno is declared. Assume <errno.h> declares errno.
47196
47197 2006-06-17  Bruno Haible  <bruno@clisp.org>
47198
47199         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
47200
47201 2006-06-17  Bruno Haible  <bruno@clisp.org>
47202
47203         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
47204         problem on Solaris 2.5.1.
47205
47206 2006-06-16  Eric Blake  <ebb9@byu.net>
47207
47208         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
47209         * lib/unicodeio.c [!defined errno]: Likewise.
47210         * lib/strtol.c [!defined errno]: Likewise.
47211         * lib/strtod.c [!defined errno]: Likewise.
47212
47213 2006-06-15  Eric Blake  <ebb9@byu.net>
47214
47215         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
47216
47217 2006-06-15  Eric Blake  <ebb9@byu.net>
47218
47219         * config/srclist.txt (ssize_t.m4): Lose sync.
47220
47221 2006-06-15  Bruno Haible  <bruno@clisp.org>
47222
47223         * modules/stdint (Files): Include m4/full-header-path.m4,
47224         m4/size_max.m4, m4/wchar_t.m4.
47225         (Makefile.am): Many more substitutions.
47226         * modules/stdint-tests: New file.
47227         * tests/test-stdint.c: New file.
47228
47229 2006-06-15  Bruno Haible  <bruno@clisp.org>
47230
47231         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
47232         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
47233         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
47234         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
47235         gl_CHECK_TYPE_SAME): New macros.
47236
47237 2006-06-15  Bruno Haible  <bruno@clisp.org>
47238
47239         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
47240
47241 2006-06-15  Bruno Haible  <bruno@clisp.org>
47242
47243         * lib/stdint_.h: Rewritten to be fully auto-configured.
47244         Fixes bug on HP-UX/IA64.
47245
47246 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
47247
47248         * lib/getdate.y (__attribute__): Don't define if already defined.
47249         Problem reported by Larry Jones.
47250         * lib/utimens.c (__attribute__): Likewise.
47251
47252 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
47253
47254         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
47255         reported by Andreas Schwab.
47256
47257 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47258             Bruno Haible  <bruno@clisp.org>
47259
47260         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
47261         check for the declaration of strnlen and a run test that exposes the
47262         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
47263         rpl_strndup.
47264
47265 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47266             Bruno Haible  <bruno@clisp.org>
47267
47268         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
47269
47270 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47271
47272         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
47273         compile test, for Tru64 4.0D.
47274
47275 2006-05-28  Karl Berry  <karl@gnu.org>
47276
47277         * config/srclist.txt (printf-args.c): lose sync.
47278
47279 2006-05-26  Martin Lambers  <marlam@marlam.de>
47280
47281         * lib/getpass.c: Updates the test for the native W32 API, and adds
47282         missing includes, thus fixing compilation warnings.
47283
47284 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47285
47286         * lib/exclude.c (exclude_fnmatch): New function.
47287         (excluded_file_name): Call exclude_fnmatch.
47288         * lib/exclude.h (excluded_file_name): New prototype
47289
47290 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
47291
47292         * lib/tempname.c (small_open, large_open): New macros.
47293         (__open, __open64) [!_LIBC]: Remove.
47294         (__gen_tempname): Use small_open and large_open instead of __open
47295         and __open64.  This fixes a portability bug on HP-UX 11.11i
47296         reported by Simon Wing-Tang in
47297         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
47298
47299 2006-05-24  Bruno Haible  <bruno@clisp.org>
47300
47301         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
47302         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
47303         Reported by Thorsten Maerz <torte@netztorte.de> via
47304         Aaron Stone <aaron@serendipity.cx>.
47305
47306 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
47307
47308         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
47309         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
47310         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
47311         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
47312         not really conditional on the cache.
47313         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
47314
47315 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
47316
47317         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
47318         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
47319         (my_usleep): Don't mishandle maximum value.
47320
47321 2006-05-19  Jim Meyering  <jim@meyering.net>
47322
47323         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
47324
47325 2006-05-17  Bruno Haible  <bruno@clisp.org>
47326
47327         Cygwin portability.
47328         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
47329
47330 2006-05-17  Bruno Haible  <bruno@clisp.org>
47331
47332         * lib/stdint_.h: Fix recognition of Cygwin.
47333
47334 2006-05-15  Bruno Haible  <bruno@clisp.org>
47335
47336         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
47337         on libtool patch by Ralf Wildenhues.
47338
47339 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
47340
47341         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
47342         test for C99 conformance; (bool) 0.5 is an integer constant
47343         expression, but (bool) -0.5 is not.  Problem reported by Fedor
47344         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
47345
47346 2006-05-11  Simon Josefsson  <jas@extundo.com>
47347
47348         * m4/xvasprintf.m4: Fix obvious typo.
47349
47350 2006-05-11  Jim Meyering  <jim@meyering.net>
47351
47352         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
47353         James Lemley.
47354
47355 2006-05-10  Simon Josefsson  <jas@extundo.com>
47356
47357         * lib/md4.c: Typo fix, update copyright years.
47358         (K1, K2): Don't use L because it turn computations into 64-bit on
47359         64-bit platforms.
47360
47361 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
47362
47363         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
47364         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
47365         unwanted sign propagation, e.g., on hosts with 64-bit int.
47366         There still are some problems with reeelly weird theoretical hosts
47367         (e.g., 33-bit int) but it's not worth worrying about now.
47368         * lib/sha1.c (rol): Likewise.
47369         (K1, K2, K3, K4): Remove unnecessary L suffix.
47370
47371 2006-05-10  Bruno Haible  <bruno@clisp.org>
47372
47373         * lib/des.c: Cast to avoid warnings.
47374
47375 2006-05-09  Bruno Haible  <bruno@clisp.org>
47376
47377         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
47378         (Depends-on): Depend also on xsize, stdarg.
47379         (configure.ac): Add gl_XVASPRINTF.
47380
47381 2006-05-09  Bruno Haible  <bruno@clisp.org>
47382
47383         * m4/xvasprintf.m4: New file.
47384
47385 2006-05-09  Bruno Haible  <bruno@clisp.org>
47386
47387         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
47388         (EOVERFLOW): Define fallback value.
47389         (xstrcat): New function.
47390         (xvasprintf): Recognize the special case of a string concatenation.
47391
47392 2006-05-08  Eric Blake  <ebb9@byu.net>
47393
47394         * gnulib-tool (func_version): Base copyright year on CVS date.
47395         (func_emit_copyright_notice): New function.
47396         (func_emit_lib_Makefile_am): Use it.
47397         (func_emit_tests_Makefile_am): Likewise.
47398         (func_import): Likewise.
47399
47400 2006-05-08  Bruno Haible  <bruno@clisp.org>
47401
47402         * modules/stdarg: New file.
47403         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
47404
47405 2006-05-08  Bruno Haible  <bruno@clisp.org>
47406
47407         * m4/stdarg.m4: New file, from GNU gettext.
47408
47409 2006-05-08  Bruno Haible  <bruno@clisp.org>
47410
47411         * config/srclist.txt (build-aux/config.rpath): different from latest
47412         release.
47413
47414 2006-05-08  Bruno Haible  <bruno@clisp.org>
47415
47416         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
47417
47418 2006-05-05  Jim Meyering  <jim@meyering.net>
47419
47420         * m4/warning.m4: New file, derived from bison's file by the same name.
47421
47422 2006-05-03  Bruno Haible  <bruno@clisp.org>
47423
47424         * lib/stdint_.h: Shorter URL.
47425         * lib/inttypes.h: Likewise.
47426
47427 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
47428
47429         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
47430
47431 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
47432
47433         * lib/verify.h: Document the internals better.  Most of this change
47434         was written by Bruno Haible.
47435
47436 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
47437
47438         * doc/verify.texi: New file, partly based on a proposal by
47439         Bruno Haible.
47440
47441 2006-05-02  Bruno Haible  <bruno@clisp.org>
47442
47443         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
47444         test from here...
47445         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
47446
47447 2006-04-29  Bruno Haible  <bruno@clisp.org>
47448
47449         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
47450         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
47451
47452 2006-04-29  Bruno Haible  <bruno@clisp.org>
47453
47454         * gnulib-tool: Make --update option actually work.
47455
47456 2006-04-29  Bruno Haible  <bruno@clisp.org>
47457
47458         * doc/gcd.texi: New file.
47459         * doc/gnulib.texi: Include it.
47460
47461 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
47462
47463         * lib/getdate.y (get_date): When adding relative date, start with the
47464         initial time, not with the result of the first mktime call.
47465
47466 2006-04-25  Bruno Haible  <bruno@clisp.org>
47467
47468         * gnulib-tool (func_import): Output the include directives in three
47469         blocks, sorted separately.
47470         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47471
47472 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
47473
47474         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
47475         to define main with arguments, for C++.  Reported by Eric Blake.
47476         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
47477         Prefer 'int main ()' to 'int main (void)', for C++.
47478         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
47479         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
47480         for 'main', for C99 and C++.
47481
47482 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
47483
47484         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
47485         Don't assume that exit status -1 is valid.
47486         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
47487         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
47488         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
47489         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
47490         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
47491         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
47492         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
47493         functions can be used without declaring them, or that you can
47494         exit with status -1.
47495         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
47496
47497 2006-04-24  Karl Berry  <karl@gnu.org>
47498
47499         * config/srclist.txt (longdouble.m4): sync lost.
47500
47501 2006-04-24  Eric Blake  <ebb9@byu.net>
47502
47503         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
47504
47505 2006-04-24  Bruno Haible  <bruno@clisp.org>
47506
47507         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
47508         poll() implementation in AIX.
47509         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47510
47511 2006-04-24  Bruno Haible  <bruno@clisp.org>
47512
47513         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
47514         assigned exactly once.
47515
47516 2006-04-23  Claudio Fontana  <claudio@gnu.org>
47517             Bruno Haible  <bruno@clisp.org>
47518
47519         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
47520         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
47521         for AM_CPPFLAGS.
47522
47523 2006-04-23  Bruno Haible  <bruno@clisp.org>
47524
47525         * modules/copy-file: Depend on unistd.
47526         * modules/execute: Likewise.
47527         * modules/fatal-signal: Likewise.
47528         * modules/findprog: Likewise.
47529         * modules/mkdtemp : Likewise.
47530         * modules/pipe: Likewise.
47531         * modules/wait-process: Likewise.
47532
47533 2006-04-23  Bruno Haible  <bruno@clisp.org>
47534
47535         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
47536         condition was already detected.
47537         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47538
47539 2006-04-23  Bruno Haible  <bruno@clisp.org>
47540
47541         * lib/copy-file.c: Include <unistd.h> unconditionally.
47542         * lib/execute.c: Likewise.
47543         * lib/fatal-signal.c: Likewise.
47544         * lib/findprog.c: Likewise.
47545         * lib/mkdtemp.c: Likewise.
47546         * lib/pipe.h: Likewise.
47547         * lib/pipe.c: Likewise.
47548         * lib/wait-process.h: Likewise.
47549
47550 2006-04-23  Bruno Haible  <bruno@clisp.org>
47551
47552         * gnulib-tool (func_usage): Fix --import description. Document
47553         --update.
47554         (func_import): Create temporary file in a temporary directory, if
47555         --dry-run is specified. Silence errors from 'grep' when there are no
47556         m4 files in $m4dir.
47557         (func_create_testdir): Silence errors from 'grep' when there are no
47558         m4 files in $m4dir.
47559         Reported by Karl Berry <karl@freefriends.org>.
47560
47561 2006-04-20  Bruno Haible  <bruno@clisp.org>
47562
47563         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
47564         one argument, so that the code will be portable to Autoconf 2.60.
47565         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
47566         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
47567         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
47568
47569 2006-04-19  Derek Price  <derek@ximbiot.com>
47570             Eric Blake  <ebb9@byu.net>
47571
47572         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
47573         rather than "/full/path.h".  Update comment to match.  Shorten &
47574         generalize m4_translit call via AS_TR_CPP.
47575
47576 2006-04-19  Derek Price  <derek@ximbiot.com>
47577             Eric Blake  <ebb9@byu.net>
47578
47579         * lib/inttypes.h: Correct grammar in comment.
47580
47581 2006-04-18  Derek Price  <derek@ximbiot.com>
47582             Paul Eggert  <eggert@cs.ucla.edu>
47583
47584         * modules/inttypes: New file.
47585         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
47586
47587 2006-04-18  Derek Price  <derek@ximbiot.com>
47588             Paul Eggert  <eggert@cs.ucla.edu>
47589
47590         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
47591         New files.
47592
47593 2006-04-18  Derek Price  <derek@ximbiot.com>
47594             Paul Eggert  <eggert@cs.ucla.edu>
47595
47596         * lib/inttypes.h: New file.
47597         * lib/strtoimax.c: Assume <inttypes.h>.
47598
47599 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
47600
47601         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
47602         isn't mounted.  Problem reported by Kir Kolyshkin.
47603
47604 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
47605
47606         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
47607         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
47608         Derek R. Price.
47609         * lib/regex.h (RE_DUP_MAX): Update comment to match current
47610         implementation.
47611
47612 2006-04-12  Eric Blake  <ebb9@byu.net>
47613
47614         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
47615         is now done automatically by the corresponding Autoconf macro.
47616
47617 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
47618
47619         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
47620         time_r.h.
47621
47622 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47623
47624         Merge regex changes from libc, removing some of our
47625         POSIX-conformance changes that were rejected and redoing them in a
47626         less-intrusive way.
47627
47628         * lib/regcomp.c (re_compile_internal, init_dfa):
47629         Length arg is now size_t, not Idx.  All uses changed.
47630         (peek_token): Forward decl now says internal_function.
47631         (__re_error_msgid, __re_error_msgid_idx):
47632         Now static rather than extern with attribute_hidden.
47633         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
47634         For some reason libc prefers K&R style defns for external functions.
47635         (regerror) [!defined _LIBC]: Likewise.
47636         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
47637         (seek_collating_symbol_entry, lookup_collation_sequence_value):
47638         (build_range_exp, build_collating_symbol):
47639         Use K&R-style defn.
47640         (re_compile_fastmap): Use '\0' to memset, not 0.
47641         (utf8_sb_map): Make the calculations more obvious.
47642         (init_dfa, parse_bracket_exp, build_charclass_op):
47643         Call calloc and cast result, as glibc does.
47644         (init_word_char, fetch_token, peek_token, peek_token_bracket):
47645         (build_range_exp, build_collating_symbol):
47646         Now internal functions.
47647
47648         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
47649
47650         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
47651         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
47652         Don't depend on VMS; depend on __VMS instead, for POSIX
47653         namespace cleanness.
47654         (regoff_t): Define to ssize_t, not long int.
47655
47656         Remove the REG_ macros named below.  Instead, make the old names
47657         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
47658         __USE_GNU_REGEX.
47659         (REG_BACKSLASH_ESCAPE_IN_LISTS):
47660         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
47661         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
47662         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
47663         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
47664         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
47665         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
47666         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
47667         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
47668         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
47669         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
47670         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
47671         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
47672         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
47673         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
47674         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
47675         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
47676         (REG_NREGS):
47677         Remove.  All uses replaced by the old RE_* names.
47678         (RE_BACKSLASH_ESCAPE_IN_LISTS):
47679         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
47680         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
47681         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
47682         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
47683         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
47684         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
47685         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
47686         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
47687         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
47688         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
47689         Don't bother having these macros be independent of each others'
47690         values, since they no longer exist in the POSIX name space.
47691
47692         Rename the following member names back to their old names,
47693         unless !__USE_GNU_REGEX.  All uses changed back.
47694         (buffer): Renamed from re_buffer.
47695         (allocated): Renamed from re_allocated.
47696         (used): Renamed from re_used.
47697         (syntax): Renamed from re_syntax.
47698         (fastmap): Renamed from re_fastmap.
47699         (translate): Renamed from re_translate.
47700         (can_be_null): Renamed from re_can_be_null.
47701         (regs_allocated): Renamed from re_regs_allocated.
47702         (fastmap_accurate): Renamed from re_fastmap_accurate.
47703         (no_sub): Renamed from re_no_sub.
47704         (not_bol): Renamed from re_not_bol.
47705         (not_eol): Renamed from re_not_eol.
47706         (newline_anchor): Renamed from re_newline_anchor.
47707         (num_regs): Renamed from rm_num_regs.
47708         (start): Renamed from rm_start.
47709         (end): Renamed from rm_end.
47710
47711         (free_state): Move up a bit.
47712
47713         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
47714         #define to be empty.
47715         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
47716         when that is what is intended.
47717         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
47718         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
47719         (MAX): New macro.
47720         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
47721         All uses changed back to re_malloc, etc.  It's now the caller's
47722         responsibility to check for overflow; all callers changed.
47723         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
47724         (re_x2nrealloc): Remove.
47725         (free_state): Remove decl.
47726
47727         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
47728         (re_set_registers, re_exec):
47729         Use K&R-style defn.
47730
47731         2006-01-31  Roland McGrath  <roland@redhat.com>
47732
47733         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
47734         Reported by Mike Frysinger <vapier@gentoo.org>.
47735
47736         2006-01-15  Andreas Jaeger  <aj@suse.de>
47737
47738         [BZ #1950]
47739         * lib/regex_internal.c (re_string_reconstruct): Adjust for
47740         build_wcs_upper_buffer change.
47741         (build_wcs_upper_buffer): Change return type.
47742
47743         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
47744
47745         * lib/regex_internal.h: Include <stdint.h> if available.
47746
47747         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
47748
47749         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
47750
47751         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
47752
47753         * lib/regcomp.c: Adjust for changed secondary hash function.
47754
47755         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
47756
47757         * lib/regex.h: Pretty printing.
47758         Clean up namespace a bit.
47759
47760         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
47761
47762         * lib/regexec.c (update_cur_sifted_state, check_arrival,
47763         check_arrival_add_next_nodes): Avoid using uninitialized variable.
47764
47765         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
47766                     Ulrich Drepper  <drepper@redhat.com>
47767
47768         [BZ #1302]
47769         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
47770         changed.
47771         (bitset_word_t): Renamed from bitset_word.  All uses changed.
47772
47773         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
47774
47775         [BZ #281]
47776         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
47777         * lib/regcomp.c: Remove unnecessary uses of
47778         unsigned RE_TRANSLATE_TYPE.
47779         * lib/regex_internal.h: Likewise.
47780         * lib/regex_internal.c: Likewise.
47781         * lib/regexec.c: Likewise.
47782         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
47783
47784         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
47785
47786         * lib/regexec.c (find_recover_state): Remove unnecessary
47787         initialization.
47788         (transit_state_bkref): Make DFA a const pointer.
47789         (get_subexp): Likewise.
47790         (check_arrival): Likewise.
47791         (update_cur_sifted_state): Likewise.
47792         (re_search_internal): Likewise.
47793         (prune_impossible_nodes): Likewise.
47794         (acquire_init_state_context): Likewise.
47795         (proceed_next_node): Likewise.
47796         (set_regs): Likewise.
47797         (free_fail_stack_return): Likewise.
47798         (check_arrival_expand_ecl): Mark DFA parameter as const.
47799         (check_arrival_expand_ecl_sub): Likewise.
47800         (check_subexp_limits): Likewise.
47801         (sub_epsilon_src_nodes):  Likewise.
47802         (add_epsilon_src_nodes):  Likewise.
47803         (merge_state_array): Likewise.
47804         (update_regs): Likewise.
47805         (build_trtable): Likewise.
47806         (sift_states_backward): Mark MCTX parameter as const.
47807         (build_sifted_states): Likewise.
47808         (update_cur_sifted_state): Likewise.
47809         (sift_states_mkref): Likewise.
47810         (check_arrival_expand_ecl): Mark eclosure as const.
47811         (check_dst_limits_calc_pos_1): Likewise.
47812         * lib/regex_internal.h (re_match_context_t): Make dfa a const
47813         pointer.
47814
47815         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
47816
47817         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
47818         (transit_state_sb): Likewise.
47819         (transit_state_mb): Likewise.
47820         (sift_states_iter_mb): Likewise.
47821         (check_arrival_add_next_nodes): Likewise.
47822         (check_node_accept_bytes): Change first parameter to pointer-to-const.
47823         [_LIBC] (re_search_2_stub): Use mempcpy.
47824
47825         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
47826         mbrtowc for very simple UTF-8 case.
47827
47828         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
47829         a pointer-to-const.
47830         (re_acquire_state_context): Likewise.
47831         * lib/regex_internal.h: Adjust prototypes.
47832
47833         * lib/regex.c: Prevent using C++ compilers.
47834
47835         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
47836         (re_acquire_state_context): Likewise.
47837
47838 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47839
47840         * modules/regex (Depends-on): Add ssize_t.
47841
47842 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47843
47844         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
47845         translation table.
47846
47847 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47848
47849         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
47850
47851 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
47852             Bruno Haible  <bruno@clisp.org>
47853
47854         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
47855         <sys/types.h> and <inttypes.h>.
47856
47857 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47858
47859         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
47860         `__error_t_defined', so argp.h will not typedef the former.
47861
47862 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
47863
47864         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
47865         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
47866         glibc names.  Even if glibc is changed to conform to POSIX, the
47867         traditional names will be available anyway, since regex depends on
47868         the extensions module.  Also, fix a longstanding typo in the
47869         implementation of Spencer ERE test #75 from grep 2.3.  Problems
47870         reported by Emanuele Giaquinta.  Also, change sense of cached
47871         variable, so that the message makes sense.
47872
47873 2006-03-24  Simon Josefsson  <jas@extundo.com>
47874
47875         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
47876         including some doc fixes.
47877         (base64_encode_alloc): Fix +1 bug on allocation failures.
47878
47879 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47880
47881         * lib/base64.c (base64_encode): Do not read past end of array with
47882         unsanitized input on systems with CHAR_BIT > 8.
47883
47884 2006-03-24  Eric Blake  <ebb9@byu.net>
47885
47886         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
47887
47888 2006-03-22  Karl Berry  <karl@gnu.org>
47889
47890         * config/srclist.txt (*setenv.[ch]): get from coreutils.
47891         * config/srclistvars.sh (COREUTILS): new var.
47892
47893 2006-03-17  Jim Meyering  <jim@meyering.net>
47894
47895         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
47896         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
47897
47898 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
47899
47900         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
47901         no longer needs it.  Instead, check that regoff_t is as least
47902         as wide as ptrdiff_t.
47903
47904         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
47905         so that our regex.h stays compatible with the installed regex.
47906         This is helpful for installers who configure --without-included-regex.
47907         Problem reported by Emanuele Giaquinta.
47908
47909 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
47910
47911         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
47912         Typedef to long int, not to off_, as POSIX will likely change
47913         in that direction.
47914
47915 2006-03-15  Eric Blake  <ebb9@byu.net>
47916
47917         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
47918
47919 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
47920
47921         * lib/argp-help.c (validate_uparams): Fix typo
47922         * lib/argp-parse.c (argp_default_options): Consistently begin help
47923         messages with a lowercase letter.
47924
47925 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
47926
47927         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
47928         overrun buffers and shouldn't be used (much as gets shouldn't be
47929         used).
47930         * lib/time_r.c (asctime_r, ctime_r): Likewise.
47931
47932 2006-03-08  Simon Josefsson  <jas@extundo.com>
47933
47934         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
47935         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47936
47937 2006-03-08  Simon Josefsson  <jas@extundo.com>
47938
47939         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
47940         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47941
47942 2006-03-08  Simon Josefsson  <jas@extundo.com>
47943
47944         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
47945         signal that configure disabled the device.
47946
47947 2006-03-08  Simon Josefsson  <jas@extundo.com>
47948
47949         * build-aux/maint.mk: Fix refresh-po, to handle no translated
47950         languages.
47951
47952 2006-03-07  Simon Josefsson  <jas@extundo.com>
47953
47954         * modules/getopt (Depends-on): Add unistd.
47955
47956         * modules/unistd: New file.
47957
47958 2006-03-07  Simon Josefsson  <jas@extundo.com>
47959
47960         * modules/gc-random: New file.
47961
47962 2006-03-07  Simon Josefsson  <jas@extundo.com>
47963
47964         * m4/unistd_h.m4: New file.
47965
47966 2006-03-07  Simon Josefsson  <jas@extundo.com>
47967
47968         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
47969         test to be side-effect free by storing the result in the cache
47970         variable gl_cv_lib_readline, and moving the assignment of
47971         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
47972         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47973
47974 2006-03-07  Simon Josefsson  <jas@extundo.com>
47975
47976         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
47977         error on missing devices (the functions will return an error).
47978
47979         * m4/gc.m4: Move random stuff to gc-random.m4
47980
47981 2006-03-07  Simon Josefsson  <jas@extundo.com>
47982
47983         * lib/unistd_.h: New file.
47984
47985 2006-03-07  Simon Josefsson  <jas@extundo.com>
47986
47987         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
47988
47989 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
47990
47991         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
47992         Problem reported by Juan Manuel Guerrero.
47993
47994 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
47995
47996         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
47997         the unistd module.
47998         * lib/getlogin_r.c: Likewise.
47999         * lib/getlogin_r.h: Likewise.
48000         * lib/glob.c: Likewise.
48001         * lib/pagealign_alloc.c: Likewise.
48002         * lib/unistd_.h: Remove; no longer needed.
48003
48004 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
48005
48006         * MODULES.html.sh (Support for systems lacking POSIX:2001):
48007         Add unistd.
48008         * modules/c-stack (Depends-on): Add unistd.
48009         * modules/getlogin_r: Likewise.
48010         * modules/glob: Likewise.
48011         * modules/pagealign_alloc: Likewise.
48012         * modules/unistd (Files): Remove lib/unistd_.h.
48013         (EXTRA_DIST): Remove.
48014         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
48015         need unistd_.h.
48016         (MOSTLYCLEANFILES): Remove unistd.h-t.
48017
48018 2006-03-03  Simon Josefsson  <jas@extundo.com>
48019
48020         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
48021
48022 2006-03-03  Simon Josefsson  <jas@extundo.com>
48023
48024         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
48025         libidn and bison.
48026
48027 2006-03-03  Simon Josefsson  <jas@extundo.com>
48028
48029         * build-aux/maint.mk: Add indent target.
48030
48031 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
48032
48033         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
48034         our replacement poll.h in any case, to avoid a differing
48035         declaration from a system header.  Seen on AIX.
48036
48037 2006-03-01  Simon Josefsson  <jas@extundo.com>
48038
48039         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
48040         <kasal@ucw.cz>.
48041
48042 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
48043
48044         * modules/gettime (Depends-on): Add extensions module.
48045         * modules/nanosleep (Depends-on): Likewise.
48046         * modules/settime (Depends-on): Likewise.
48047
48048 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
48049
48050         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
48051         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
48052         pedantically.
48053         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
48054         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
48055
48056         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
48057         not "==".  Reported by Ralf Wildenhues.
48058
48059 2006-03-01  Karl Berry  <karl@gnu.org>
48060
48061         * doc/Copyright/request-*: new files, synced from gnuorg.
48062
48063 2006-03-01  Karl Berry  <karl@gnu.org>
48064
48065         * config/srclist.txt (Copyright/*): new entries.
48066
48067 2006-02-28  Simon Josefsson  <jas@extundo.com>
48068
48069         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
48070
48071 2006-02-27  Simon Josefsson  <jas@extundo.com>
48072
48073         * lib/base64.h: Indent #define's.  From Jim Meyering
48074         <jim@meyering.net>.
48075
48076 2006-02-27  Jim Meyering  <jim@meyering.net>
48077
48078         Revert the change of 2006-02-24, so these files can continue
48079         to be sync'd from gettext.
48080         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
48081         of `config.h'.
48082
48083 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
48084
48085         * modules/intprops: New file.
48086         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
48087         Add intprops.
48088         * modules/getloadavg (Files): Remove lib/intprops.h.
48089         (Depends-on): Add intprops.
48090         * modules/human: Likewise.
48091         * modules/inttostr: Likewise.
48092         * modules/openat: Likewise.
48093         * modules/sig2str: Likewise.
48094         * modules/userspec: Likewise.
48095         * modules/utimecmp: Likewise.
48096         * modules/xnanosleep: Likewise.
48097         * modules/xstrtol: Likewise.
48098
48099 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
48100
48101         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
48102         * modules/lock-tests (TESTS): Use $(EXEEXT).
48103         * modules/tls-tests: Likewise.
48104         * modules/argp-tests: Likewise.
48105         (check_PROGRAMS): New var, replacing...
48106         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
48107
48108 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48109
48110         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
48111         `config.h'.
48112
48113 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
48114
48115         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
48116
48117 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48118
48119         Sync from coreutils.
48120         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
48121         gl_CHDIR_SAFER.
48122
48123 2006-02-22  Jim Meyering  <jim@meyering.net>
48124
48125         Sync from coreutils.
48126         * m4/chdir-safer.m4: New file.
48127
48128 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
48129
48130         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
48131         AT_FDCWD exceeds INT_MAX.
48132         * lib/openat.h (AT_FDCWD): Likewise.
48133
48134 2006-02-17  Eric Blake  <address@hidden>
48135
48136         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
48137
48138 2006-02-16  Simon Josefsson  <jas@extundo.com>
48139
48140         * modules/getaddrinfo (Depends-on): Add sys_socket.
48141
48142 2006-02-15  Simon Josefsson  <jas@extundo.com>
48143
48144         * build-aux/maint.mk: Add dsyntax-check rule.
48145
48146 2006-02-15  Eric Blake  <ebb9@byu.net>
48147
48148         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
48149         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
48150         'present but cannot compile' warnings on cygwin.
48151         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
48152         use ws2tcpip.h if sys/socket.h works.
48153         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
48154         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
48155
48156 2006-02-14  Simon Josefsson  <jas@extundo.com>
48157
48158         * modules/maintainer-makefile (Files): Rename.
48159
48160         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
48161         and (the local) Makefile.cfg to maint-cfg.mk.
48162
48163         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
48164         to the latter.
48165
48166         * modules/maintainer-makefile: New module.
48167
48168         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
48169         severaly stripped to make it possible to build it up from scratch
48170         with reliable tests.
48171
48172         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
48173         fixes to permit overriding the default actions when configure and
48174         makefile are not available.
48175
48176 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
48177
48178         Sync from coreutils.
48179         * modules/lstat (Depends-on): Don't depend on xalloc.
48180         (License): Change from GPL to LGPL, since this is now simply a
48181         replacement for a libc function.
48182
48183 2006-02-14  Jim Meyering  <jim@meyering.net>
48184
48185         Sync from coreutils.
48186
48187         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
48188         failure on deficient systems, and simplify gnulib lgpl dependencies.
48189         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
48190         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
48191
48192         * lib/xalloc-die.c: Remove unused definition of N_.
48193
48194 2006-02-14  Jim Meyering  <jim@meyering.net>
48195
48196         Sync from coreutils.
48197         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
48198         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
48199         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
48200         double-quote uses of that variable, to accommodate the rare case in
48201         which getmntent is available in none of the libraries checked.  This
48202         happens at least on FreeBSD 5.0.
48203
48204 2006-02-13  Simon Josefsson  <jas@extundo.com>
48205
48206         * gnulib-tool (Usage): Fix --import, from
48207         karl@freefriends.org (Karl Berry).
48208
48209 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
48210
48211         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
48212
48213 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
48214
48215         * lib/argp-namefrob.h: Restore changes accidentally lost during the
48216         "autoupdate" on 2005-12-12.
48217
48218 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
48219
48220         * modules/closeout (Depends-on): Remove atexit.
48221
48222 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
48223
48224         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
48225         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
48226
48227 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
48228
48229         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
48230         __EXTENSIONS__ if this causes compilation to fail.  Problem
48231         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
48232         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
48233
48234 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
48235
48236         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
48237         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
48238         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
48239         All uses changed.
48240
48241 2006-01-26  Simon Josefsson  <jas@extundo.com>
48242
48243         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
48244         prototype is visible on mingw32.
48245
48246         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
48247         for mingw32.
48248
48249         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
48250         mingw32).
48251
48252 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
48253
48254         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
48255         attempt to open for write; this always fails, at least on POSIX
48256         hosts.  This reinstates the 2006-01-09 change, which was
48257         inadvertently removed.
48258
48259 2006-01-26  Bruno Haible  <bruno@clisp.org>
48260
48261         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
48262         Reported by Paul Eggert.
48263
48264 2006-01-26  Bruno Haible  <bruno@clisp.org>
48265             Paul Eggert  <eggert@cs.ucla.edu>
48266
48267         * lib/stdbool_.h (_Bool)
48268         [(! (defined __cplusplus || defined __BEOS__)
48269           && !defined __GNUC__
48270           && !(defined __HP_cc || defined __xlc__
48271                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
48272                || defined __sgi))]:
48273         #define to signed char in these cases too; this simplifies
48274         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
48275         etc., separately) and makes it more conservative.
48276
48277 2006-01-25  Simon Josefsson  <jas@extundo.com>
48278
48279         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
48280         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
48281         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
48282
48283 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
48284
48285         * lib/argp-namefrob.h: Bugfix. Remove stray #
48286
48287 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
48288
48289         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
48290         so that we test the test.
48291         Check for yet another HP-UX cc bug involving *bool |= bool.
48292
48293 2006-01-25  Karl Berry  <karl@gnu.org>
48294
48295         * config/srclist.txt (vasnprintf.c): sync lost.
48296
48297 2006-01-25  Jim Meyering  <jim@meyering.net>
48298
48299         Sync from the stable (b5) branch of coreutils:
48300
48301         * lib/fts.c (fts_children): Don't let close() clobber errno from
48302         failed fchdir().
48303
48304         * lib/fts.c (fts_stat): When following a symlink-to-directory,
48305         don't necessarily interpret stat-fails+lstat-succeeds as indicating
48306         a dangling symlink.  That can also happen at least for ELOOP.
48307         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
48308         FYI, this bug predates the inclusion of fts.c in coreutils.
48309
48310         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
48311         in their own block, so pre-c99 compilers don't object.
48312
48313         Avoid the double-free (first in fts_read, second in fts_close) that
48314         would occur when an `active' directory is made inaccessible (e.g.,
48315         via chmod a-x) during a traversal.
48316         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
48317         before returning.  Reproduce this failure by
48318         mkdir -p a/b; cd a; chmod a-x . b
48319         Reported by Stavros Passas.
48320
48321 2006-01-25  Jim Meyering  <jim@meyering.net>
48322
48323         * lib/fileblocks.c: Remove more useless parentheses.
48324         * lib/readutmp.h: Likewise.
48325
48326 2006-01-25  Bruno Haible  <bruno@clisp.org>
48327
48328         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
48329         warnings.
48330         Reported by Paul Eggert.
48331
48332 2006-01-25  Bruno Haible  <bruno@clisp.org>
48333
48334         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
48335         rid of a trap command. For Solaris sh.
48336         Reported by Mark D. Baushke <mdb@gnu.org>.
48337
48338 2006-01-24  Simon Josefsson  <jas@extundo.com>
48339
48340         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
48341         Bruno.
48342
48343 2006-01-24  Karl Berry  <karl@gnu.org>
48344
48345         * config/srclist.txt (argp-namefrob.h): sync lost.
48346
48347 2006-01-24  Jim Meyering  <jim@meyering.net>
48348
48349         * modules/openat (Files): Add lib/intprops.h.
48350         From Mark D. Baushke.
48351
48352 2006-01-24  Jim Meyering  <jim@meyering.net>
48353
48354         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
48355         Reported by Mark D. Baushke.
48356
48357 2006-01-24  Jim Meyering  <jim@meyering.net>
48358
48359         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
48360
48361 2006-01-24  Bruno Haible  <bruno@clisp.org>
48362
48363         * modules/strnlen (Maintainer): Change from glibc to all.
48364
48365 2006-01-24  Bruno Haible  <bruno@clisp.org>
48366
48367         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
48368         Patch by Paul Eggert.
48369
48370 2006-01-24  Bruno Haible  <bruno@clisp.org>
48371
48372         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
48373         already has it.
48374         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
48375         2005-11-26.
48376
48377         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
48378         'signed char' to avoid problems with the built-in _Bool type.
48379         Reported by Paul Eggert on 2005-11-26.
48380
48381 2006-01-24  Bruno Haible  <bruno@clisp.org>
48382
48383         * gnulib-tool (func_import): Avoid constructing complicated sed
48384         expressions inside backquote.
48385         Report and solution by Mark D. Baushke <mdb@gnu.org>.
48386
48387 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
48388
48389         These changes imported from libc.
48390         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
48391         test and two separate function calls.
48392         * lib/strndup.c (__strndup): Add libc_hidden_def.
48393
48394 2006-01-23  Simon Josefsson  <jas@extundo.com>
48395
48396         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
48397         Remove the test_*_SOURCES variable: automake infers it by default.
48398         * modules/tls-tests: Likewise.
48399
48400 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48401
48402         Work around porting bugs reported by Dieter in
48403         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
48404         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
48405         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
48406         Include "getopt.h" first, to check interface.
48407         (getenv): Declare only if defined HAVE_DECL_GETENV &&
48408         !HAVE_DECL_GETENV.
48409         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
48410         (__strndup): Revert to K&R-style function dfns, the glibc style.
48411         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
48412         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
48413         Include strnlen.h first, to get prototype properly.
48414         (strnlen): Renamed from __strnlen.
48415         Remove weak alias.
48416
48417 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48418
48419         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
48420
48421 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48422
48423         * config/srclist.txt: Adjust to reflect glibc reorganization.
48424         This affects only comments.
48425
48426 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
48427
48428          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
48429          Reported by Bruce Korb <bkorb@gnu.org>.
48430
48431 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
48432
48433         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
48434         to pacify gcc -Wswitch-default.
48435
48436 2006-01-22  Bruno Haible  <bruno@clisp.org>
48437
48438         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
48439         temporary buffer for sprintf, take into account the precision also
48440         for 'd', 'i', 'u', 'o', 'x', 'X'.
48441
48442 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
48443
48444         * modules/argp-tests: New module
48445         * tests/test-argp.c: New file
48446         * tests/test-argp-2.sh: New file
48447
48448 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
48449
48450         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
48451         (__argp_base_name): Removed
48452         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
48453         typo.
48454         (__argp_base_name): Provide macro definition or extern declaration
48455         depending on the configuration
48456
48457 2006-01-20  Simon Josefsson  <jas@extundo.com>
48458
48459         * modules/inet_ntop (Depends-on): Depend on sys_socket.
48460
48461 2006-01-20  Simon Josefsson  <jas@extundo.com>
48462
48463         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
48464
48465 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
48466
48467         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
48468         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
48469         Suggested by Bruno Haible.
48470
48471 2006-01-20  Karl Berry  <karl@gnu.org>
48472
48473         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
48474         until changes propagate, I guess.
48475
48476 2006-01-19  Simon Josefsson  <jas@extundo.com>
48477
48478         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
48479
48480 2006-01-19  Simon Josefsson  <jas@extundo.com>
48481
48482         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
48483
48484 2006-01-19  Simon Josefsson  <jas@extundo.com>
48485
48486         * gnulib-tool: Set check_PROGRAMS.
48487
48488         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
48489         modules/des-tests, modules/gc-arcfour-tests,
48490         modules/gc-arctwo-tests, modules/gc-des-tests,
48491         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
48492         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
48493         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
48494         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
48495         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
48496         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
48497         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
48498         test_*_SOURCES.
48499
48500 2006-01-18  Simon Josefsson  <jas@extundo.com>
48501
48502         * modules/socklen (Depends-on): Depend on sys_socket.
48503
48504 2006-01-18  Simon Josefsson  <jas@extundo.com>
48505
48506         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
48507         modules/des-tests, modules/gc-arcfour-tests,
48508         modules/gc-arctwo-tests, modules/gc-des-tests,
48509         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
48510         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
48511         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
48512         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
48513         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
48514         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
48515         $(EXEEXT) to automake TESTS variable, for mingw32.
48516
48517 2006-01-17  Simon Josefsson  <jas@extundo.com>
48518
48519         * modules/socklen (Include): Need sys/socket.h.
48520
48521 2006-01-17  Bruno Haible  <bruno@clisp.org>
48522
48523         * modules/ssize_t (Include): Add <sys/types.h>.
48524
48525 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
48526
48527         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
48528         it's not portable and it doesn't work with cross-compiles.
48529         Problem reported by Bruno Haible.  Fix missing-$ typo in
48530         'test "gl_cv_ignore_unused_libraries" ...' that prevented
48531         -zignore from being used with Sun's C compiler.
48532
48533 2006-01-12  Simon Josefsson  <jas@extundo.com>
48534
48535         * lib/base64.c: Fix warning, reported by Bruno Haible
48536         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
48537
48538 2006-01-12  Bruno Haible  <bruno@clisp.org>
48539
48540         * modules/ldd: New file.
48541         * build-aux/ldd.sh.in: New file.
48542         * MODULES.html.sh (Support for building libraries and executables): Add
48543         ldd.
48544
48545 2006-01-12  Bruno Haible  <bruno@clisp.org>
48546
48547         * m4/ldd.m4: New file.
48548
48549 2006-01-12  Bruno Haible  <bruno@clisp.org>
48550
48551         * gnulib-tool (func_import, func_create_testdir): Don't go into an
48552         endless loop while replacing $auxdir with build-aux.
48553
48554 2006-01-11  Simon Josefsson  <jas@extundo.com>
48555
48556         * lib/stdint_.h (SIZE_MAX): Add missing (.
48557
48558 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
48559
48560         Sync from coreutils.
48561         * lib/md5.c: Fix commentary typos.
48562         (alignof, UNALIGNED_P): No need for a GCC-specific version.
48563         * lib/md5.h (__attribute__): Remove; unused.
48564         * lib/sha1.c: Fix commentary to match md5 better.
48565         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
48566         so that we don't need to worry about alignment.  All uses changed.
48567         This merges the 2005-10-28 md5 change into sha1.
48568
48569 2006-01-11  Jim Meyering  <jim@meyering.net>
48570
48571         Sync from coreutils.
48572         * lib/md5.c (OP): Fix spacing.
48573
48574 2006-01-11  Bruno Haible  <bruno@clisp.org>
48575
48576         Ensure automatic ordering between gl_LOCK and gl_ARGP.
48577         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
48578         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
48579
48580 2006-01-11  Bruno Haible  <bruno@clisp.org>
48581
48582         Ensure automatic ordering between gl_LOCK and gl_ARGP.
48583         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
48584         the "early" section as well.
48585
48586 2006-01-11  Bruno Haible  <bruno@clisp.org>
48587
48588         Avoid "ar: no archive members specified" error on MacOS X.
48589         * gnulib-tool (func_modules_add_dummy): New function.
48590         (func_import, func_create_testdir): Invoke it.
48591
48592 2006-01-11  Bruno Haible  <bruno@clisp.org>
48593
48594         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
48595         with $auxdir in AC_CONFIG_FILES statements.
48596
48597 2006-01-11  Bruno Haible  <bruno@clisp.org>
48598
48599         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48600         Initialize also noinst_HEADERS to empty.
48601
48602 2006-01-11  Bruno Haible  <bruno@clisp.org>
48603
48604         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
48605         variables.
48606         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
48607         autoreconf.
48608
48609 2006-01-11  Bruno Haible  <bruno@clisp.org>
48610
48611         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
48612         overridable by the user.
48613         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48614
48615 2006-01-10  Simon Josefsson  <jas@extundo.com>
48616
48617         * modules/sys_socket: New file.
48618
48619 2006-01-10  Simon Josefsson  <jas@extundo.com>
48620
48621         * m4/sys_socket_h.m4: New file.
48622
48623 2006-01-10  Simon Josefsson  <jas@extundo.com>
48624
48625         * lib/socket_.h: New file.
48626
48627 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
48628
48629         * modules/readutmp (Maintainer): Add myself.
48630
48631 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
48632
48633         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
48634         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
48635         People who are still concerned with buggy memcmp implementations
48636         can invoke gl_FUNC_MEMCMP themselves.
48637
48638 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
48639
48640         * lib/regex_internal.h (BITSET_WORD_BITS):
48641         Work around a bug in 64-bit PGC (before version 6.1-2), where the
48642         preprocessor mishandles large unsigned values as if they were signed.
48643         Problem reported by Claudio Fontana in
48644         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
48645
48646 2006-01-10  Jim Meyering  <jim@meyering.net>
48647
48648         Avoid the double-free (first in fts_read, second in fts_close) that
48649         would occur when an `active' directory is made inaccessible (e.g.,
48650         via chmod a-x) during a traversal.
48651         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
48652         before returning.  Reproduce this failure by
48653         mkdir -p a/b; cd a; chmod a-x . b
48654         Reported by Stavros Passas.
48655
48656         Sync from coreutils.
48657         * lib/sha1.c: Tweak grammar in a comment.
48658
48659 2006-01-10  Jim Meyering  <jim@meyering.net>
48660
48661         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
48662         Patch by Joerg Sonnenberger.
48663
48664 2006-01-10  Bruno Haible  <bruno@clisp.org>
48665
48666         * modules/readutmp: Depend on module free.
48667         * modules/strtok_r: Depend on module restrict.
48668
48669 2006-01-10  Bruno Haible  <bruno@clisp.org>
48670
48671         * modules/gettext (configure.ac): Add an invocation of
48672         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
48673
48674 2006-01-10  Bruno Haible  <bruno@clisp.org>
48675
48676         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
48677         Reported by Werner Lemberg <wl@gnu.org>.
48678
48679 2006-01-10  Bruno Haible  <bruno@clisp.org>
48680
48681         * lib/localcharset.c: Update from GNU gettext.
48682
48683 2006-01-10  Bruno Haible  <bruno@clisp.org>
48684
48685         * lib/argp.h (__const): Remove macro. Use const instead.
48686         * lib/argp-fmtstream.h (__const): Likewise.
48687         * lib/glob_.h (__const): Remove macro.
48688         * lib/glob-libc.h: Use const instead of __const.
48689
48690 2006-01-10  Bruno Haible  <bruno@clisp.org>
48691
48692         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
48693         variable.
48694         Needed to avoid an automake error regarding the 'gettext' module.
48695
48696 2006-01-09  Simon Josefsson  <jas@extundo.com>
48697
48698         * modules/inet_ntop (Depends-on): Add restrict.
48699
48700 2006-01-09  Simon Josefsson  <jas@extundo.com>
48701
48702         * modules/gc-rijndael-tests (License): Put under LGPL.
48703
48704         * modules/gc-des-tests (License): Likewise.
48705
48706         * modules/gc-arcfour-tests (License): Likewise.
48707
48708         * modules/gc-arctwo-tests (License): Likewise.
48709
48710         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
48711
48712         * modules/gc-hmac-sha1-tests (Files): Likewise.
48713
48714         * modules/gc-hmac-md5-tests (License): Likewise.
48715
48716         * modules/gc-sha1-tests (License): Likewise.
48717
48718         * modules/gc-md5-tests (License): Likewise.
48719
48720         * modules/gc-md4-tests (License): Likewise.
48721
48722         * modules/gc-md2-tests (License): Likewise.
48723
48724         * modules/gc-tests (License): Likewise.
48725
48726         * modules/des-tests (License): Likewise.
48727
48728         * modules/md4-tests (License): Likewise.
48729
48730         * modules/md2-tests (License): Likewise.
48731
48732 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48733
48734         Sync from coreutils:
48735
48736         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
48737         * modules/lib-ignore: New file.
48738         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
48739         chdir-safer.m4, lchmod.m4.
48740         * modules/openat: Add mkdirat.c, openat-priv.h.
48741
48742 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48743
48744         Sync from coreutils.
48745         * m4/lib-ignore.m4: New file.
48746         * m4/lchmod.m4: New file.
48747
48748 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48749
48750         Sync from coreutils.
48751         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
48752         for write access: POSIX says that must fail.
48753         * lib/fts.c (diropen): Likewise.
48754         * lib/save-cwd.c (save_cwd): Likewise.
48755         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
48756         well, for minor improvements on hosts that lack O_DIRECTORY.
48757         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
48758         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
48759         Fall back on chown if open failed with EACCES.
48760
48761         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
48762         Report an error at compile-time if only a 1-second nominal clock
48763         resolution is found.
48764
48765         * lib/lchmod.h: New file.
48766         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
48767         (make_dir_parents): Use lchown rather than chown, and
48768         lchmod rather than chmod.
48769
48770         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
48771         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
48772         "proc" reported by n0dalus.
48773
48774         * lib/mountlist.c: Include <limits.h>.
48775         (dev_from_mount_options)
48776         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
48777         New function.  It no longer assumes "dev=" has the System V meaning
48778         on Linux (since it doesn't).  It also parses "dev=" more carefully.
48779         (read_file_system_list)
48780         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
48781         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
48782         dev= in that case.
48783
48784         * lib/posixtm.h (PDS_PRE_2000): New macro.
48785         * lib/posixtm.c (year): Arg is now syntax_bits rather than
48786         allow_century.  All usages changed.  Reject dates outside the range
48787         1969-1999 if PDS_PRE_2000 is used.
48788
48789 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48790
48791         Sync from coreutils.
48792         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
48793         (Time of day items): Mention the possibility of leap seconds.
48794         Problem reported by Dr. David Alan Gilbert.
48795
48796 2006-01-09  Jim Meyering  <jim@meyering.net>
48797
48798         Sync from coreutils.
48799
48800         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
48801
48802         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
48803
48804         * lib/modechange.c (mode_compile): Reject an invalid mode string
48805         that starts with an octal digit.  From Andreas Gruenbacher.
48806
48807         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
48808         and dup to open_safer and dup_safer, respectively.
48809         (openat_permissive): Fix typo in comment.
48810
48811         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
48812         "gettext.h"; either no longer needed or are guaranteed by openat.h.
48813         (_): Remove; no longer needed.
48814         (openat): Renamed from rpl_openat; no need for rpl_openat
48815         since openat.h renames openat for us.
48816         Replace most of the body with a call to openat_permissive,
48817         to avoid duplicate code.
48818         Port to (probably hypothetical) environments were mode_t is
48819         wider than int.
48820         (openat_permissive): Require mode arg, so that we can check
48821         types better.  Put it just after flags.  Change cwd failure
48822         indicator from pointer-to-bool to pointer-to-errno-value.
48823         All callers changed.
48824         Invoke openat_save_fail and/or openat_restore_fail if
48825         cwd_errno is null, so that openat can call us.
48826         (openat_permissive, fdopendir, fstatat, unlinkat):
48827         Simplify errno handling to avoid some duplicate code,
48828         as it's OK to set errno on success.
48829         * lib/openat.h: Revamp code so that function macros depend on
48830         __OPENAT_PREFIX only, not also on AT_FDCWD.
48831         (openat_ro): Remove.  Caller changed to use openat_permissive.
48832         (openat_permissive): Now a macro, if not a function.
48833         (openat_restore_fail, openat_save_fail): Now always functions,
48834         since mkdirat needs them even if __OPENAT_PREFIX is defined.
48835
48836         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
48837         and openat.c.
48838         * lib/mkdirat.c: Include openat-priv.h.
48839         Remove definitions of macros defined therein.
48840         * lib/openat.c: Likewise.
48841
48842         * lib/mkdirat.c (mkdirat): New file and function.
48843         * lib/openat.h (mkdirat): Declare.
48844
48845         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
48846
48847         * lib/openat.h (openat_permissive): Declare.
48848         (openat_ro): Define.
48849
48850         * lib/openat.c (EXPECTED_ERRNO): New macro.
48851         (openat_permissive): New function -- used in remove.c rewrite.
48852         (all functions): Set errno just before returning, only if there
48853         was an actual failure.
48854         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
48855
48856         Emulate openat-family functions using Linux's procfs, if possible.
48857         Idea and some code based on Ulrich Drepper's glibc changes.
48858
48859         * lib/openat.c: (BUILD_PROC_NAME): New macro.
48860         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
48861         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
48862         before falling back on save_cwd and restore_cwd.
48863         (fdopendir, fstatat, unlinkat): Likewise.
48864
48865         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
48866         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
48867
48868         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
48869         as second argument to va_arg.  Otherwise, some versions of gcc
48870         warn that `if this code is reached, the program will abort'.
48871
48872 2006-01-09  Jim Meyering  <jim@meyering.net>
48873
48874         Sync from coreutils.
48875         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
48876         Require openat-priv.h.
48877
48878 2006-01-09  Bruno Haible  <bruno@clisp.org>
48879
48880         * modules/strnlen (Include): Use strnlen.h.
48881
48882 2006-01-09  Bruno Haible  <bruno@clisp.org>
48883
48884         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
48885
48886 2006-01-09  Bruno Haible  <bruno@clisp.org>
48887
48888         * lib/sysexit_.h (EX_OK): New macro.
48889         Suggested by Martin Lambers <marlam@marlam.de>.
48890
48891 2006-01-09  Bruno Haible  <bruno@clisp.org>
48892
48893         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
48894         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
48895
48896 2006-01-09  Bruno Haible  <bruno@clisp.org>
48897
48898         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
48899         numbers.
48900
48901 2006-01-09  Bruno Haible  <bruno@clisp.org>
48902
48903         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
48904         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
48905         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
48906         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
48907
48908 2006-01-09  Bruno Haible  <bruno@clisp.org>
48909
48910         * build-aux/javacomp.sh.in: New file, moved from lib/.
48911         * modules/javacomp-script (Files): Update.
48912         (configure.ac): Add AC_CONFIG_FILES invocation.
48913         (EXTRA_DIST): Remove variable.
48914
48915         * build-aux/javaexec.sh.in: New file, moved from lib/.
48916         * modules/javaexec (Files): Update.
48917         (configure.ac): Add AC_CONFIG_FILES invocation.
48918         (EXTRA_DIST): Remove javaexec.sh.in.
48919
48920         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
48921         * modules/csharpcomp-script (Files): Update.
48922         (configure.ac): Add AC_CONFIG_FILES invocation.
48923         (EXTRA_DIST): Remove variable.
48924
48925         * build-aux/csharpexec.sh.in: New file, moved from lib/.
48926         * modules/csharpexec (Files): Update.
48927         (configure.ac): Add AC_CONFIG_FILES invocation.
48928         (EXTRA_DIST): Remove csharpexec.sh.in.
48929
48930 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
48931
48932         Sync from coreutils.
48933
48934         Add POSIX ACL support
48935         * lib/acl.h (copy_acl, set_acl): Add declarations.
48936         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
48937         systems other than Linux.
48938         (chmod_or_fchmod): New function: use fchmod when possible,
48939         and chmod otherwise.
48940         (file_has_acl): Add a POSIX ACL implementation, with a
48941         Linux-specific subcase.
48942         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
48943         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
48944         acls are unsupported.
48945         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
48946         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
48947         are unsupported.
48948
48949 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
48950
48951         Sync from coreutils.
48952         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
48953
48954 2006-01-07  Bruno Haible  <bruno@clisp.org>
48955
48956         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
48957         gl_EARLY.
48958
48959 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
48960
48961         * lib/strftime.c (tzname): Don't declare if it is already #defined.
48962         Problem reported for Mingw by Mark Junker.
48963
48964 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
48965
48966         * README: Gnulib normally doesn't generate a tarball.
48967
48968 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
48969
48970         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
48971         long int, not int, for nanosecond counts, so that people who are
48972         used to POSIX struct timespec won't be surprised.  Reported by Jim
48973         Meyering.
48974
48975 2005-12-28  Bruno Haible  <bruno@clisp.org>
48976
48977         * build-aux/config.rpath: Update from GNU gettext.
48978
48979 2005-12-16  Jim Meyering  <jim@meyering.net>
48980
48981         * modules/fprintftime: New module.
48982         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
48983
48984 2005-12-16  Jim Meyering  <jim@meyering.net>
48985
48986         * m4/fprintftime.m4: New file.
48987
48988 2005-12-16  Jim Meyering  <jim@meyering.net>
48989
48990         * lib/fprintftime.c, lib/fprintftime.h: New files.
48991
48992 2005-12-15  Simon Josefsson  <jas@extundo.com>
48993
48994         * modules/socklen (configure.ac): Fix M4 macro name, to align with
48995         new m4/socklen.m4.
48996
48997 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48998
48999         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
49000         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
49001
49002 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
49003
49004         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
49005         * lib/argp-help.c (fill_in_uparams): Check if the constructed
49006         struct uparams is valid. Fall back to the default values if it is
49007         not.
49008
49009 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
49010
49011         * modules/argp (Files): Add argp-pin.c
49012         (Depends-on): dirname
49013         (lib_SOURCES): Add argp-pin.c
49014
49015 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
49016
49017         * m4/argp.m4:  Check if program_invocation_name and
49018         program_invocation_short_name are declared and define appropriate
49019         macros if they are not.
49020
49021 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
49022
49023         * lib/argp-help.c (__argp_base_name): New function
49024         (__argp_short_program_name): Rewrite using __argp_base_name
49025         * lib/argp-namefrob.h: Define program_invocation_name and
49026         program_invocation_short_name if requested
49027         (__argp_base_name): Add prototype
49028         * lib/argp-parse.c (argp_def): Use gettext wrappers
49029         (argp_default_parser): Use __argp_base_name
49030         * lib/argp-pin.c: New file. Defines program_invocation_name and
49031         program_invocation_short_name on systems that lack them.
49032
49033 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
49034
49035         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
49036         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
49037         porting problem reported by Georg Schwarz in
49038         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
49039
49040 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
49041
49042         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
49043         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
49044         porting problem reported by Georg Schwarz in
49045         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
49046
49047 2005-12-05  Bruno Haible  <bruno@clisp.org>
49048
49049         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
49050         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
49051         Reported by Mark Junker <mjscod@gmx.de>.
49052
49053 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
49054
49055         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
49056         Use implementation from Albert Chin, with some
49057         comments/corrections by Stepan Kasal and myself.
49058
49059 2005-12-02  Bruno Haible  <bruno@clisp.org>
49060
49061         * gnulib-tool (func_import): Accept GPLed build tool modules when
49062         --lgpl is given.
49063         * modules/csharpcomp-script: New file.
49064         * modules/csharpcomp: Depend on it.
49065         * modules/javacomp-script: New file.
49066         * modules/javacomp: Depend on it.
49067         Suggested by Simon Josefsson.
49068
49069 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
49070
49071         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
49072         statement, to work around an HP-UX 10.20 compiler bug reported by
49073         Peter O'Gorman.
49074
49075 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
49076
49077         * modules/savedir (Depends-on): Add openat.
49078
49079 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
49080
49081         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
49082         (uintmax_t) [defined uintmax_t]: Do not declare.
49083         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
49084         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
49085         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
49086         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
49087         sake of portability to weird hosts that C allows (though we don't
49088         know of any practical examples).
49089
49090         * lib/savedir.h (fdsavedir): New decl.
49091         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
49092         contains most of the former guts of savedir.
49093         (savedir): Use savedirstream.
49094         Include "openat.h".
49095
49096 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
49097
49098         * modules/obstack (Files): Add m4/ulonglong.m4.
49099         Problem reported by Davide Angelocola.
49100
49101 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
49102
49103         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
49104         coreutils no longer futzes with rounding modes.
49105
49106 2005-11-14  Jim Meyering  <jim@meyering.net>
49107
49108         * lib/mkstemp-safer.c: Include <config.h>, required for possible
49109         replacement of mkstemp.
49110
49111 2005-11-10  Simon Josefsson  <jas@extundo.com>
49112
49113         * lib/readline.c: Remove EOL.
49114
49115 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
49116
49117         * modules/gethrxtime (Depends-on): Add gettime.
49118
49119 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
49120
49121         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
49122         or gettimeofday; no longer needed.
49123
49124 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
49125
49126         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
49127         time business.
49128         (gethrxtime) [! (HAVE_NANOUPTIME
49129         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
49130         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
49131         our own approximation.
49132
49133 2005-11-08  Eric Blake  <ebb9@byu.net>
49134
49135         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
49136
49137 2005-11-08  Eric Blake  <ebb9@byu.net>
49138
49139         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
49140
49141 2005-11-04  Bruno Haible  <bruno@clisp.org>
49142
49143         * gnulib-tool: Implement --update mode.
49144
49145 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
49146
49147         Fix porting problem reported by Theodoros V. Kalamatianos.
49148         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
49149         Don't assume that futimes failing means we must fail.
49150
49151 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
49152
49153         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
49154         variables to suggest the intended function of the PATH_MAX check.
49155
49156 2005-10-30  Kean Johnston  <jkj@sco.com>
49157
49158         Trivial changes to support SCO systems.
49159         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
49160         as PATH_MAX.
49161         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
49162         where __ptr is null when no I/O is pending.
49163
49164 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
49165
49166         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
49167         leave errno alone.  Problem reported by Dmitry V. Levin.
49168
49169 2005-10-28  Simon Josefsson  <jas@extundo.com>
49170
49171         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
49172         Test more.
49173
49174         * tests/test-gc-md2.c, tests/test-md2.c: New files.
49175
49176         * modules/md2, modules/md2-tests: New files.
49177
49178 2005-10-28  Simon Josefsson  <jas@extundo.com>
49179
49180         * m4/inet_ntop.m4: More tests.
49181
49182         * m4/gc-md2.m4, md2.m4: New file.
49183
49184 2005-10-28  Simon Josefsson  <jas@extundo.com>
49185
49186         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
49187         "restrict" keywords, as per POSIX.  Protect the function
49188         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
49189         Don't use K&R prototypes.  Check the sprintf return values.
49190         Re-define EAFNOSUPPORT if not present.  Indent.
49191
49192         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
49193         suggested by Bruno Haible <bruno@clisp.org>.
49194
49195         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
49196
49197         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
49198
49199         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
49200         libgcrypt).
49201
49202         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
49203
49204         * lib/md2.h, lib/md2.c: New files.
49205
49206 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
49207
49208         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
49209         errno alone.  Problem reported by Frederic Jolliton.
49210
49211 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
49212
49213         * modules/verify (License): Change from GPL to LGPL.  This is a
49214         tiny module and there are apparently near-equivalents that are
49215         under the BSD license.
49216
49217 2005-10-24  Simon Josefsson  <jas@extundo.com>
49218
49219         * modules/sha1: Relicense to LGPL.
49220
49221 2005-10-24  Simon Josefsson  <jas@extundo.com>
49222
49223         * lib/md4.h: Shrink buffer size, now that we changed the type.
49224
49225 2005-10-23  Simon Josefsson  <jas@extundo.com>
49226
49227         * gnulib-tool (func_import): Fix --tests-base.
49228
49229 2005-10-22  Simon Josefsson  <jas@extundo.com>
49230
49231         * modules/arcfour (Depends-on): Need stdint.
49232
49233 2005-10-22  Simon Josefsson  <jas@extundo.com>
49234
49235         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
49236         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
49237
49238 2005-10-22  Simon Josefsson  <jas@extundo.com>
49239
49240         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
49241         suggested by Bruno Haible <bruno@clisp.org>.
49242
49243 2005-10-22  Simon Josefsson  <jas@extundo.com>
49244
49245         * lib/crc.h: Include stddef.h, for size_t.
49246
49247 2005-10-22  Simon Josefsson  <jas@extundo.com>
49248
49249         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
49250         arcfour_context struct (simplify test vector testing in GNU
49251         Shishi).
49252
49253 2005-10-21  Simon Josefsson  <jas@extundo.com>
49254
49255         * modules/des, modules/des-tests: New files.
49256
49257         * modules/gc-des, modules/gc-des-tests: New files.
49258
49259         * tests/test-des.c, tests/test-gc-des.c: New file.
49260
49261 2005-10-21  Simon Josefsson  <jas@extundo.com>
49262
49263         * modules/arctwo, modules/arctwo-tests: New files.
49264
49265         * tests/test-arctwo.c: New file.
49266
49267         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
49268
49269         * tests/test-gc-arctwo.c: New file.
49270
49271 2005-10-21  Simon Josefsson  <jas@extundo.com>
49272
49273         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
49274         Bruno Haible <bruno@clisp.org>.
49275
49276         * m4/gc-des.m4: New file.
49277
49278 2005-10-21  Simon Josefsson  <jas@extundo.com>
49279
49280         * m4/arctwo.m4: New file.
49281
49282         * m4/gc-arctwo.m4: New file.
49283
49284 2005-10-21  Simon Josefsson  <jas@extundo.com>
49285
49286         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
49287         block.
49288
49289 2005-10-21  Simon Josefsson  <jas@extundo.com>
49290
49291         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
49292         <bruno@clisp.org>.
49293
49294         * lib/hmac-sha1.c (hmac_sha1): Likewise.
49295
49296         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
49297         Bruno Haible <bruno@clisp.org>.
49298
49299         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
49300         <bruno@clisp.org>.
49301
49302 2005-10-21  Simon Josefsson  <jas@extundo.com>
49303
49304         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
49305
49306 2005-10-21  Simon Josefsson  <jas@extundo.com>
49307
49308         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
49309
49310 2005-10-21  Simon Josefsson  <jas@extundo.com>
49311
49312         * lib/des.h, lib/des.c: New files.
49313
49314         * lib/gc-gnulib.c: Support DES.c
49315
49316 2005-10-21  Simon Josefsson  <jas@extundo.com>
49317
49318         * lib/arctwo.h, lib/arctwo.c: New files.
49319
49320         * lib/gc-gnulib.c: Support ARCTWO.
49321
49322 2005-10-21  Simon Josefsson  <jas@extundo.com>
49323
49324         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
49325         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49326
49327 2005-10-21  Simon Josefsson  <jas@extundo.com>
49328
49329         * gnulib-tool (func_import, func_create_testdir): Define automake
49330         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
49331         Makefile.am snippet),
49332         suggested by Bruno Haible <bruno@clisp.org>.
49333
49334         * modules/gc (Makefile.am): Use it.
49335
49336 2005-10-21  Bruno Haible  <bruno@clisp.org>
49337
49338         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
49339         patch.
49340
49341 2005-10-19  Simon Josefsson  <jas@extundo.com>
49342
49343         * tests/test-gc-rijndael.c: New file.
49344
49345         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
49346
49347 2005-10-19  Simon Josefsson  <jas@extundo.com>
49348
49349         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
49350         interface too.
49351
49352 2005-10-19  Simon Josefsson  <jas@extundo.com>
49353
49354         * tests/test-gc-arcfour.c: New file.
49355
49356         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
49357
49358 2005-10-19  Simon Josefsson  <jas@extundo.com>
49359
49360         * modules/gc-md4, modules/gc-md4-tests: New file.
49361
49362         * tests/test-gc-md4.c: New file.
49363
49364 2005-10-19  Simon Josefsson  <jas@extundo.com>
49365
49366         * m4/gc-md4.m4: New file.
49367
49368 2005-10-19  Simon Josefsson  <jas@extundo.com>
49369
49370         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
49371         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
49372         <kasal@ucw.cz>.
49373
49374 2005-10-19  Simon Josefsson  <jas@extundo.com>
49375
49376         * m4/gc-arcfour.m4: New file.
49377
49378         * m4/gc-rijndael.m4: New file.
49379
49380 2005-10-19  Simon Josefsson  <jas@extundo.com>
49381
49382         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
49383
49384 2005-10-19  Simon Josefsson  <jas@extundo.com>
49385
49386         * lib/gc-gnulib.c: Support ARCFOUR.
49387
49388 2005-10-19  Simon Josefsson  <jas@extundo.com>
49389
49390         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
49391         support.
49392
49393         * lib/gc.h: Add ECB enum type.
49394
49395         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
49396
49397 2005-10-18  Simon Josefsson  <jas@extundo.com>
49398
49399         * tests/test-md5.c: New file.
49400
49401         * modules/md5-tests: New file.
49402
49403 2005-10-18  Simon Josefsson  <jas@extundo.com>
49404
49405         * tests/test-md4.c: New file.
49406
49407         * modules/md4, modules/md4-tests: New files.
49408
49409 2005-10-18  Simon Josefsson  <jas@extundo.com>
49410
49411         * m4/md4.m4: New file.
49412
49413 2005-10-18  Simon Josefsson  <jas@extundo.com>
49414
49415         * lib/md4.h, lib/md4.c: New files, based on md5.?.
49416
49417 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
49418
49419         * gnulib-tool (func_create_testdir): Omit the second check whether
49420         BUILT_SOURCES in nonempty.
49421
49422 2005-10-17  Simon Josefsson  <jas@extundo.com>
49423
49424         * tests/test-rijndael.c: New file.
49425
49426 2005-10-17  Simon Josefsson  <jas@extundo.com>
49427
49428         * modules/sha1: Depend on stdint instead of md5.
49429
49430         * modules/md5: Depend on stdint, remove uint32_t.
49431
49432 2005-10-17  Simon Josefsson  <jas@extundo.com>
49433
49434         * modules/gc-sha1-tests: New file.
49435
49436         * tests/test-gc-sha1.c: New file.
49437
49438 2005-10-17  Simon Josefsson  <jas@extundo.com>
49439
49440         * m4/md5.m4: Remove call to uint32_t.m4.
49441
49442 2005-10-17  Simon Josefsson  <jas@extundo.com>
49443
49444         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
49445
49446         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
49447         md5.h.
49448
49449         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
49450
49451         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
49452
49453 2005-10-17  Simon Josefsson  <jas@extundo.com>
49454
49455         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
49456
49457 2005-10-17  Simon Josefsson  <jas@extundo.com>
49458
49459         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
49460
49461 2005-10-17  Simon Josefsson  <jas@extundo.com>
49462
49463         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
49464
49465         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
49466
49467 2005-10-17  Bruno Haible  <bruno@clisp.org>
49468
49469         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
49470         that it can also be used in a test.
49471
49472 2005-10-16  Bruno Haible  <bruno@clisp.org>
49473
49474         * gnulib-tool (func_emit_tests_Makefile_am): Also define
49475         TESTS_ENVIRONMENT, so that individual tests can augment it.
49476
49477         * gnulib-tool (func_create_testdir): Use an intermediate target for
49478         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
49479         macros, like $(ALLOCA_H), which cannot be passed through the command
49480         line.
49481
49482 2005-10-15  Simon Josefsson  <jas@extundo.com>
49483
49484         * modules/rijndael-tests: New file.
49485
49486         * modules/rijndael: New file.
49487
49488 2005-10-15  Simon Josefsson  <jas@extundo.com>
49489
49490         * m4/rijndael.m4: New file.
49491
49492 2005-10-15  Simon Josefsson  <jas@extundo.com>
49493
49494         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
49495
49496         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
49497
49498 2005-10-14  Simon Josefsson  <jas@extundo.com>
49499
49500         * tests/test-arcfour.c: New file.
49501
49502         * modules/arcfour, modules/arcfour-tests: New files.
49503
49504 2005-10-14  Simon Josefsson  <jas@extundo.com>
49505
49506         * m4/arcfour.m4: New file.
49507
49508 2005-10-14  Simon Josefsson  <jas@extundo.com>
49509
49510         * lib/arcfour.h, lib/arcfour.c: New files.
49511
49512 2005-10-14  Roland McGrath  <roland@redhat.com>
49513
49514         Import from libc.  [BZ #1331]
49515         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
49516         macro argument.
49517         Reported by Matej Vela <vela@debian.org>.
49518
49519 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
49520
49521         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
49522         include <wchar.h>; no longer needed.
49523
49524 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
49525
49526         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
49527
49528 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
49529         and  Ulrich Drepper  <drepper@redhat.com>
49530
49531         Import from libc.
49532         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
49533         instead of inline stream orientation test and two separate
49534         function calls.  Pay no attention to USE_IN_LIBIO.
49535
49536 2005-10-13  Simon Josefsson  <jas@extundo.com>
49537
49538         * modules/gc-hmac-md5-tests: New file.
49539
49540         * tests/test-gc-hmac-sha1.c: New file.
49541
49542         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
49543
49544         * modules/gc-hmac-md5-tests: New file.
49545
49546         * tests/test-gc-md5.c: New file.
49547
49548         * modules/gc-md5-tests: New file.
49549
49550 2005-10-13  Simon Josefsson  <jas@extundo.com>
49551
49552         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
49553         Move memory allocation outside of loop.
49554
49555 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
49556
49557         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
49558         intermediate directory is in a read-only file system.  Problem
49559         reported by Eric Blake.
49560
49561 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
49562
49563         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
49564
49565 2005-10-12  Simon Josefsson  <jas@extundo.com>
49566
49567         * tests/test-hmac-sha1.c: New file.
49568
49569         * modules/hmac-sha1-tests: New file.
49570
49571         * modules/hmac-sha1: New file.
49572
49573 2005-10-12  Simon Josefsson  <jas@extundo.com>
49574
49575         * modules/gc-sha1: New file.
49576
49577 2005-10-12  Simon Josefsson  <jas@extundo.com>
49578
49579         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
49580
49581         * tests/test-gc-pbkdf2-sha1.c: New file.
49582
49583 2005-10-12  Simon Josefsson  <jas@extundo.com>
49584
49585         * modules/gc-md5, modules/gc-hmac-md5: New files.
49586
49587         * modules/gc (Files): Remove md5, memxor and hmac files.
49588
49589 2005-10-12  Simon Josefsson  <jas@extundo.com>
49590
49591         * m4/gc-pbkdf2-sha1.m4: New file.
49592
49593         * m4/gc-hmac-sha1.m4: New file.
49594
49595         * m4/gc-sha1: New file.
49596
49597         * m4/hmac-sha1.m4: New file.
49598
49599 2005-10-12  Simon Josefsson  <jas@extundo.com>
49600
49601         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
49602
49603         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
49604
49605 2005-10-12  Simon Josefsson  <jas@extundo.com>
49606
49607         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
49608         suggested by Bruno Haible <bruno@clisp.org>.
49609
49610 2005-10-12  Simon Josefsson  <jas@extundo.com>
49611
49612         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
49613
49614 2005-10-12  Simon Josefsson  <jas@extundo.com>
49615
49616         * lib/gc-pbkdf2-sha1.c: New file.
49617
49618         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
49619
49620 2005-10-12  Simon Josefsson  <jas@extundo.com>
49621
49622         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
49623
49624         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
49625
49626 2005-10-12  Simon Josefsson  <jas@extundo.com>
49627
49628         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
49629         GC_USE_HMAC_MD5, respectively.
49630
49631         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
49632         (gc_md5): Fix typo.
49633
49634         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
49635
49636         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
49637
49638         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
49639
49640 2005-10-12  Bruno Haible  <bruno@clisp.org>
49641
49642         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
49643         Reported by Stepan Kasal <kasal@ucw.cz>.
49644
49645 2005-10-11  Simon Josefsson  <jas@extundo.com>
49646
49647         * tests/test-crc.c: New file.
49648
49649         * modules/crc, modules/crc-tests: New files.
49650
49651 2005-10-11  Simon Josefsson  <jas@extundo.com>
49652
49653         * m4/crc.m4: New file.
49654
49655 2005-10-11  Simon Josefsson  <jas@extundo.com>
49656
49657         * lib/gc.h: Add gc_hash and gc_hash_buffer.
49658
49659         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
49660
49661         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
49662
49663 2005-10-11  Simon Josefsson  <jas@extundo.com>
49664
49665         * lib/crc.h, lib/crc.c: New files.
49666
49667         * lib/gc.h (gc_hash_buffer): Add doc.
49668
49669 2005-10-11  Bruno Haible  <bruno@clisp.org>
49670
49671         * modules/c-strcasestr: New file.
49672         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
49673
49674 2005-10-11  Bruno Haible  <bruno@clisp.org>
49675
49676         * modules/c-strcase: New file.
49677         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
49678
49679 2005-10-11  Bruno Haible  <bruno@clisp.org>
49680
49681         * lib/strcasecmp.c: Include limits.h.
49682         (strcasecmp): Avoid integer overflow on exotic platforms.
49683         * lib/strncasecmp.c: Include limits.h.
49684         (strncasecmp): Avoid integer overflow on exotic platforms.
49685         Reported by Paul Eggert.
49686
49687 2005-10-11  Bruno Haible  <bruno@clisp.org>
49688
49689         * lib/c-strcasestr.h: New file, from GNU gettext.
49690         * lib/c-strcasestr.c: New file, from GNU gettext.
49691
49692 2005-10-11  Bruno Haible  <bruno@clisp.org>
49693
49694         * lib/c-strcase.h: New file, from GNU gettext.
49695         * lib/c-strcasecmp.c: New file, from GNU gettext.
49696         * lib/c-strncasecmp.c: New file, from GNU gettext.
49697
49698 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
49699
49700         * modules/mempcpy (License): GPL -> LGPL.
49701         * modules/strchrnul (License): Likewise.
49702         * modules/sysexits (License): Likewise.
49703
49704 2005-10-08  Simon Josefsson  <jas@extundo.com>
49705
49706         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
49707
49708 2005-10-07  Simon Josefsson  <jas@extundo.com>
49709
49710         * m4/memxor.m4: Remove gl_C_RESTRICT call.
49711
49712 2005-10-06  Simon Josefsson  <jas@extundo.com>
49713
49714         * tests/test-hmac-md5.c: New file.
49715
49716         * modules/hmac-md5-tests: New file.
49717
49718         * modules/hmac-md5: New file.
49719
49720 2005-10-06  Simon Josefsson  <jas@extundo.com>
49721
49722         * m4/hmac-md5.m4: New file.
49723
49724         * m4/memxor.m4: Require gl_C_RESTRICT.
49725
49726 2005-10-06  Simon Josefsson  <jas@extundo.com>
49727
49728         * lib/memxor.c (memxor): Avoid casts and warnings.
49729
49730 2005-10-06  Simon Josefsson  <jas@extundo.com>
49731
49732         * lib/hmac-md5.c: New file.
49733
49734         * lib/hmac.h: New file.
49735
49736 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
49737
49738         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
49739         promotes to int, not unsigned int, to catch the AIX 5.3
49740         compiler bug.
49741
49742 2005-10-05  Simon Josefsson  <jas@extundo.com>
49743
49744         * modules/memxor: New file.
49745
49746         * modules/iconv (Files): Move config.rpath to havelib, it is used
49747         there.
49748
49749         * modules/havelib (Files): Add config.rpath.
49750
49751 2005-10-05  Simon Josefsson  <jas@extundo.com>
49752
49753         * m4/memxor.m4: New file.
49754
49755 2005-10-05  Simon Josefsson  <jas@extundo.com>
49756
49757         * lib/memxor.c (memxor): Fix compiler error.
49758
49759         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
49760         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
49761
49762         * lib/memxor.h, lib/memxor.c: New files.
49763
49764         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
49765         we assume all systems have it, suggested by Jim Meyering
49766         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
49767         any systems lack sys/socket.h; mingw32 is known to lack it, but we
49768         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
49769         same reasons.
49770
49771 2005-10-05  Simon Josefsson  <jas@extundo.com>
49772
49773         * config/srclist.txt: Add glibc bug 1423 for md5.h.
49774
49775 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
49776
49777         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
49778         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
49779         needed, since the source code now assumes these .h files.
49780
49781 2005-10-05  Derek Price  <derek@ximbiot.com>
49782
49783         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
49784
49785 2005-10-05  Bruno Haible  <bruno@clisp.org>
49786
49787         * modules/stdint (License): Change to LGPL.
49788
49789 2005-10-04  Simon Josefsson  <jas@extundo.com>
49790
49791         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
49792         D. Baushke" <mdb@gnu.org>.
49793
49794 2005-10-04  Bruno Haible  <bruno@clisp.org>
49795
49796         * lib/verify.h (verify_true): Provide alternative definition for C++.
49797
49798 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
49799
49800         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
49801         (SSIZE_MAX): New macro, if not already defined.
49802         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
49803         than 2 GiB.
49804
49805 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
49806
49807         Sync from coreutils.
49808         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
49809         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
49810         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
49811         ULLONG_MAX doesn't work with 2.7.2.1.
49812
49813 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
49814
49815         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
49816         From Ben Pfaff.
49817
49818         * modules/exclude (Depends-on): Depend on verify.
49819         * modules/strtoimax (Depends-on): Likewise.
49820         * modules/utimecmp (Depends-on): Likewise.
49821
49822 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
49823
49824         * lib/exclude.c: Include verify.h.
49825         (verify): Remove.  All callers changed to use verify.h's version.
49826         * lib/strtoimax.c: Likewise.
49827         * lib/utimecmp.c: Likewis.e
49828
49829         Sync from coreutils.
49830         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
49831         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
49832         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
49833         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
49834         bother returning ENOSYS if settimeofday or stime fails; just let
49835         them return whatever errno they want to return.
49836         * lib/utimens.c: Include unistd.h, for dup2.
49837         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
49838         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
49839
49840 2005-10-02  Jim Meyering  <jim@meyering.net>
49841
49842         Sync from coreutils.
49843         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
49844         from glibc-2.2.5 that fails for read-only files.
49845
49846 2005-10-02  Jim Meyering  <jim@meyering.net>
49847
49848         Sync from coreutils.
49849         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
49850         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
49851         `#if HAVE_CONFIG_H'.
49852         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
49853         Remove AT_FDCWD test.
49854         Do not consume the fd unless successful.
49855         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
49856         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
49857         block, so that we don't even try to compile it if settimeofday is
49858         available.  This works around a compilation failure on OSF1 V5.1,
49859         due to stime requiring a `long int*' while tv_sec is `int'.
49860
49861 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
49862
49863         Sync from coreutils.
49864         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
49865         against `yes', rather than just testing for nonempty.
49866
49867 2005-10-01  Simon Josefsson  <jas@extundo.com>
49868
49869         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
49870         and Darwin.
49871
49872         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
49873         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
49874         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
49875         freeaddrinfo and gai_strerror are declared by the POSIX headers.
49876         Check if struct addrinfo is declared.
49877
49878 2005-10-01  Simon Josefsson  <jas@extundo.com>
49879
49880         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
49881         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
49882         AI_* and EAI_* definitions.  Protect function declarations.
49883
49884 2005-10-01  Jim Meyering  <jim@meyering.net>
49885
49886         Sync from coreutils.
49887
49888         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
49889         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
49890         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
49891         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
49892         in the inet and nsl libraries.  Required on Solaris 5.7.
49893
49894 2005-10-01  Jim Meyering  <jim@meyering.net>
49895
49896         Sync from coreutils.
49897         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
49898         in the inet and nsl libraries.  Required on Solaris 5.7.
49899
49900 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
49901
49902         * lib/getdelim.c (getdelim): Remove unused variables.
49903
49904 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
49905
49906         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
49907         so that the code works even with ancient cpp.  Portability problem
49908         with GCC 2.7.2.1 reported by Thomas M.Ott.
49909
49910 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
49911
49912         * modules/regex (Depends-on): Add strcase.
49913
49914         * modules/gethostname (Licence): Change from GPL to LGPL, since
49915         gethostname.c is a trivial implementation of a standard library
49916         function.
49917         * modules/poll (License): Change from GPL to LGPL, since it's
49918         derived from LGPL code.
49919
49920 2005-09-27  Jim Meyering  <jim@meyering.net>
49921
49922         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
49923         HAVE_CONFIG_H.
49924
49925         * lib/intprops.h (signed_type_or_expr__): Define.
49926         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
49927         for unsigned types.
49928
49929 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
49930
49931         * lib/verify.h (verify_expr): Remove, replacing with:
49932         (verify_true): New macro that returns true instead of void.
49933         (verify_type__): Remove.
49934         (verify): Use verify_true rather than verify_type__.
49935
49936 2005-09-26  Bruno Haible  <bruno@clisp.org>
49937
49938         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
49939         is necessary.
49940         (lib_SOURCES): Remove mbchar.c.
49941         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
49942         (Files): Add m4/mbrtowc.m4.
49943         * modules/mbiter: Likewise.
49944         * modules/mbuiter: Likewise.
49945
49946 2005-09-26  Bruno Haible  <bruno@clisp.org>
49947
49948         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
49949         compile mbchar.c if they are not both present.
49950         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
49951         * m4/mbiter.m4 (gl_MBITER): Likewise.
49952         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
49953         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
49954         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
49955
49956 2005-09-25  Jim Meyering  <jim@meyering.net>
49957
49958         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
49959         also uses socklen_t.
49960
49961 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
49962
49963         * lib/utimens.c (ENOSYS): Define if not already defined.
49964         (futimens): Support having a null PATH if the file descriptor
49965         is nonnegative.
49966
49967         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
49968         Remove.
49969         (__attribute): Define to empty unless GCC 3.1 or later.
49970         This works around a core dump on OpenBSD 3.4, which has GCC
49971         2.95.3, which dumps core when given __attribute__(()).  It also
49972         simplifies other tests, since we really don't want to bother with
49973         worrying about which ancient version of GCC supported what.
49974         Original problem reported by Yoann Vandoorselaere, with part of
49975         the fix suggested by Derek Price.
49976
49977 2005-09-24  Jim Meyering  <jim@meyering.net>
49978
49979         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
49980         so we can once again use a positive bitfield width of 1 -- now we
49981         don't have to explain why we were using a bitfield width of 2.
49982
49983 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
49984
49985         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
49986         and similarly for the other external symbols.  Problem reported
49987         by James Gallager.
49988
49989         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
49990         bug reported by Jim Meyering.
49991
49992         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
49993         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
49994         not needed, since socklen is a prerequisite module.
49995
49996 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
49997
49998         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
49999         Problem reported by Eric Blake.
50000         (getaddrinfo): Initialize se so that it's not garbage.
50001         Redo internal storage allocation so that it doesn't make unportable
50002         assumptions about alignment.
50003         Fix a memory leak.
50004
50005         * lib/utimens.c (futimens): Use futimesat if available.
50006         Prefer it to futimes since it doesn't have the futimes bug.
50007
50008         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
50009         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
50010         Instead, declare a function that returns a pointer to an array,
50011         and use verify_type__ to declare the size of the array.
50012         Problem and germ of a solution reported by Bruno Haible.
50013         (verify_type__): Use 2, not 1, for bitfield size, to avoid
50014         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
50015
50016 2005-09-23  Jim Meyering  <jim@meyering.net>
50017
50018         Sync from coreutils.
50019         Correct build failure (socklen_t not defined) on at least
50020         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
50021         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
50022
50023 2005-09-23  Jim Meyering  <jim@meyering.net>
50024
50025         * modules/getaddrinfo (Depends-on): Add socklen.
50026
50027 2005-09-23  Bruno Haible  <bruno@clisp.org>
50028
50029         * tests/test-verify.c: New file.
50030
50031 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
50032
50033         Sync from coreutils.
50034
50035         * modules/argmatch (Depends-on): Add verify.
50036         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
50037         unistd-safer.
50038         * modules/save-cwd (Depends-on): Likewise.
50039
50040         * modules/openat (Files): Add lib/openat-die.c.
50041         (Depends-on): Remove error, exitfail.
50042         Add dirname.
50043
50044         * modules/verify: New file.
50045         * MODULES.html.sh (Diagnostics <assert.h>): New section,
50046         with "verify" module.
50047
50048 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
50049
50050         Sync from coreutils.
50051
50052         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
50053         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
50054         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
50055         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
50056         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
50057         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
50058         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
50059         Don't bother checking for string.h, stdlib.h, unistd.h.
50060         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
50061         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
50062         module's job.
50063         * m4/jm-macros.m4 (gl_MACROS): Likewise.
50064         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
50065
50066         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
50067         (gl_GETDATE): Use it.
50068
50069         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
50070
50071 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
50072
50073         Sync from coreutils.
50074
50075         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
50076         stat-time.h.
50077         * lib/argmatch.h: Include verify.h
50078         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
50079         (ARGMATCH_ASSERT): Remove; unused.
50080         * lib/canonicalize.c: Assume STDC_HEADERS.
50081         * lib/exclude.c: Include "strcase.h".
50082         * lib/regex_internal.h [!defined _LIBC]: Likewise.
50083         * lib/getusershell.c: Include stdio--.h rather than stdio.h
50084         and stdio-safer.h.
50085         (getusershell): Call fopen, not fopen_safer.
50086         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
50087         Do not include unistd-safer.h.
50088         (save_cwd): Don't call fd_safer; no longer needed
50089         now that we include fcntl--.h.
50090
50091         * lib/getdate.y (relative_time): New type.
50092         (RELATIVE_TIME_0): New constant.
50093         (parser_control): Use relative_time instead of doing it ourselves.
50094         (%union): Add new relative_time rel member.
50095         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
50096         Now typeless.
50097         (relunit, relunit_snumber): Now of type rel.
50098         (zone, rel, relunit, get_date): Adjust to above changes.
50099
50100         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
50101         Do not include unistd-safer.h.
50102         (getloadavg): Don't call fd_safer; no longer needed
50103         now that we include fcntl--.h.
50104
50105         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
50106         (make_dir_parents): Treat ENOSYS like EEXIST.
50107
50108         Improve quality of diagnostics on restore_cwd failure.
50109         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
50110         (make_dir_parents): Last arg is now int * (for errno), not bool *.
50111         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
50112         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
50113         each time through the loop.  Do not diagnose restore_cwd failure;
50114         that is the caller's job (and perhaps the caller does not care).
50115
50116         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
50117         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
50118         If the file already exists but is not a directory, don't bother
50119         to try to make its parents.
50120         Close potential file descriptor leak if we can't chdir("/") (!).
50121         Don't always return true if chdir($PWD) fails; return true only
50122         if the requested action was done successfully (except for the
50123         chdir($PWD)).
50124         Don't log final directory unless we actually made it.
50125         Refactor to avoid duplicate code to fix up permissions.
50126         Don't attempt to fix up parent permissions if chdir($PWD) fails.
50127
50128         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
50129         to make it a bit faster and (I hope) clearer.
50130         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
50131         Fix bug in formats like %2N.
50132
50133         * lib/verify.h: New file.
50134
50135 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
50136
50137         Sync from coreutils.
50138         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
50139
50140 2005-09-22  Jim Meyering  <jim@meyering.net>
50141
50142         Sync from coreutils.
50143
50144         * m4/lstat.m4 (gl_FUNC_LSTAT):
50145         Use AC_LIBSOURCES to require lstat.c and lstat.h.
50146         Remove obsolete comment.
50147         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
50148         * m4/xstrtod.m4: Likewise.
50149
50150         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
50151
50152 2005-09-22  Jim Meyering  <jim@meyering.net>
50153
50154         Sync from coreutils.
50155
50156         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
50157
50158         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
50159         the .tm_year member, since otherwise gcc-4.0 would now warn about
50160         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
50161
50162         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
50163         order to avoid an unsuppressible warning from gcc on 64-bit systems.
50164
50165         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
50166         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
50167         when run in a time zone for which daylight savings time is in effect
50168         for the starting date.
50169
50170         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
50171         stop us from restricting permissions of just-created absolute-named
50172         directories.
50173         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
50174         to restore initial working directory.
50175         * lib/mkdir-p.c (make_dir_parents): New parameter:
50176         different_working_dir, to tell caller if/when we change the working
50177         directory and are unable to return to the initial one.
50178         * lib/mkdir-p.h (make_dir_parents): Update prototype.
50179         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
50180         `return false'.  This fixes a bug introduced on 2004-07-30.
50181
50182         * lib/openat.c (fdopendir): Be sure to close the supplied
50183         file descriptor before returning.  This makes our replacement
50184         implementation a little closer to Solaris's, where fdopendir
50185         ties the file descriptor to the returned DIR* pointer.
50186         * lib/openat.c (unlinkat): New function.
50187         * lib/openat.h (unlinkat): Add prototype.
50188         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
50189         (openat_restore_fail): Rename from openat_restore_die.
50190         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
50191
50192         Provide an alternative to exiting immediately upon save_cwd or
50193         restore_cwd failure.  Now, an application can arrange e.g.,
50194         to perform a longjump in that case.
50195         * lib/openat.c: Include dirname.h.
50196         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
50197         (rpl_openat, fdopendir, fstatat): Call openat_save_die
50198         and openat_restore_die rather than calling error directly.
50199         Don't include "error.h" or "exitfail.h"; they're no longer needed.
50200
50201         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
50202         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
50203         define.
50204
50205         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
50206         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
50207                             int utc, int nanoseconds);
50208         Background:
50209         date should not have to allocate a megabyte of virtual memory to
50210         handle a format argument like +%1048575T.  When implemented with
50211         strftime, it must allocate such a buffer, use strftime to fill it
50212         in, print it, then free it.
50213         With fprintftime, it simply prints everything and exits.
50214         With no need for memory allocation, that's one fewer way to fail.
50215         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
50216         optional field width, not before, so we accept %9:z, not %:9z.
50217         (my_strftime): Be sure to use L_('x') for literals.
50218
50219         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
50220         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
50221         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
50222         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
50223         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
50224         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
50225         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
50226         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
50227         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
50228         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
50229         * lib/xgethostname.c, lib/xreadlink.c:
50230         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
50231
50232         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
50233         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
50234         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
50235         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
50236         and don't include <sys/file.h>).
50237
50238 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
50239
50240         Sync from coreutils.
50241
50242         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
50243         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
50244         [!LDAV_DONE]: Avoid unused variable warning.
50245
50246 2005-09-21  Bruno Haible  <bruno@clisp.org>
50247
50248         * lib/unicodeio.h (unicode_to_mb): New declaration.
50249
50250 2005-09-20  Derek Price  <derek@ximbiot.com>
50251
50252         * lib/getaddrinfo.c: Don't include <netdb.h> included from
50253         getaddrinfo.h.
50254
50255 2005-09-20  Bruno Haible  <bruno@clisp.org>
50256
50257         * gnulib-tool: Remove trailing slashes from the values specified for
50258         --source-base, --m4-base, --tests-base, --aux-dir.
50259         Suggested by Simon Josefsson <jas@extundo.com>.
50260
50261 2005-09-20  Bruno Haible  <bruno@clisp.org>
50262
50263         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
50264         func_modules_to_filelist, func_import, func_create_testdir): Make all
50265         sorting results locale-independent, so that gnulib-cache.m4 doesn't
50266         change when gnulib-tool is invoked in a different locale.
50267
50268 2005-09-19  Simon Josefsson  <jas@extundo.com>
50269
50270         * m4/socklen.m4: Fix typo.
50271
50272 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50273
50274         Use a consistent style for including <config.h>.
50275         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
50276         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
50277         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
50278         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
50279         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
50280         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
50281         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
50282         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
50283         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
50284         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
50285         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
50286         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
50287         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
50288         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
50289         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
50290         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
50291         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
50292         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
50293         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
50294         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
50295         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
50296         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
50297         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
50298         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
50299         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
50300         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
50301         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
50302         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
50303         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
50304         lib/xstrtoumax.c, lib/yesno.c:
50305         Standardize inclusion of config.h.
50306         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
50307         lib/inttostr.h:  Removed inclusion of config.h from header files.
50308         * lib/inttostr.c:  Adjusted in-tree users.
50309         * lib/timespec.h: Remove superfluous warning to include config.h.
50310         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
50311         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
50312         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
50313         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
50314         config.h with HAVE_CONFIG_H.
50315
50316 2005-09-19  Jim Meyering  <jim@meyering.net>
50317
50318         * modules/pathmax (License): Change to LGPL.
50319
50320 2005-09-19  Derek Price  <derek@ximbiot.com>
50321
50322         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
50323
50324 2005-09-19  Bruno Haible  <bruno@clisp.org>
50325
50326         * gnulib-tool (import): Provide default for --tests-base.
50327
50328 2005-09-19  Bruno Haible  <bruno@clisp.org>
50329
50330         * doc/quote.texi: New file, extracted from gnulib.texi.
50331         * doc/ctime.texi: New file, extracted from gnulib.texi.
50332         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
50333         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
50334         * doc/gnulib.texi: Include them.
50335
50336 2005-09-18  Bruno Haible  <bruno@clisp.org>
50337
50338         Portability fix.
50339         * gnulib-tool (func_readlink): New function.
50340         (func_ln_if_changed): Use it.
50341
50342 2005-09-18  Bruno Haible  <bruno@clisp.org>
50343
50344         * gnulib-tool: Support --with-tests also with --import.
50345         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
50346         (func_import): Use variables $testsbase and $inctests. Emit a
50347         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
50348         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
50349         SUBDIRS += $testsdir.
50350         (func_create_testdir): Update.
50351
50352 2005-09-18  Bruno Haible  <bruno@clisp.org>
50353
50354         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
50355         instead of $dry_run.
50356         (func_cp_if_changed, func_mv_if_changed): Remove functions.
50357         (func_ln_if_changed): Don't handle dry-run here.
50358         (func_import): In dry-run mode, detect more precisely which actions
50359         would be performed, and don't use "...ing" verbs.
50360
50361 2005-09-18  Bruno Haible  <bruno@clisp.org>
50362
50363         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
50364         (func_import): Use join on two temporary files instead of three nested
50365         loops, in order to determine which files are new or old.
50366
50367 2005-09-18  Bruno Haible  <bruno@clisp.org>
50368
50369         * gnulib-tool (func_import): Comment out code that spits out the
50370         new files with --dry-run.
50371
50372 2005-09-18  Bruno Haible  <bruno@clisp.org>
50373
50374         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
50375
50376 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
50377
50378         * lib/stat-time.h: New file.
50379         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
50380         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
50381         in a different way.
50382         (timespec_cmp): New function.
50383         * lib/utimecmp.c: Include stat-time.h.
50384         (SYSCALL_RESOLUTION): Depend on whether various struct stat
50385         members exist, not on the obsolescent ST_MTIM_NSEC.
50386         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
50387
50388 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
50389
50390         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
50391
50392 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
50393
50394         * MODULES.html.sh (File system functions): Add stat-time.
50395         * modules/stat-time: New file.
50396         * modules/timespec (Files): Remove m4/st_mtim.m4; this
50397         is now done in a different way, by the stat-time module.
50398         * modules/utimecmp (Depends-on): Add stat-time.
50399
50400 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
50401
50402         * m4/st_mtim.m4: Remove.  Superseded by...
50403         * m4/stat-time.m4: New file.
50404         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
50405         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
50406
50407 2005-09-15  Derek Price  <derek@ximbiot.com>
50408
50409         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
50410
50411 2005-09-15  Derek Price  <derek@ximbiot.com>
50412
50413         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
50414         * lib/regex_internal.c: Ditto, using this...
50415         (__GNUC_PREREQ): ...new macro.
50416         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
50417         using...
50418         (__GNUC_PREREQ): ...this new macro.
50419
50420         * lib/strstr.h: Include string.h. Define strstr as a macro here.
50421
50422 2005-09-15  Derek Price  <derek@ximbiot.com>
50423             Paul Eggert  <eggert@cs.ucla.edu>
50424
50425         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
50426         changes, consolidating in...
50427         * lib/regex_internal.h: ...this file.
50428
50429 2005-09-13  Jim Meyering  <jim@meyering.net>
50430
50431         * lib/canon-host.c: Filter through gnu indent and reword comments
50432         slightly.
50433         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
50434
50435 2005-09-13  Derek Price  <derek@ximbiot.com>
50436
50437         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
50438         failure.
50439         Reported by Jim Meyering  <jim@meyering.net>.
50440
50441 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
50442
50443         * lib/base64.c: Typo.
50444         (base64_encode): Put b64str in initialized data section.
50445
50446 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
50447
50448         Merge glibc and coreutils changes into gnulib, plus a few
50449         extra fixes.
50450         * lib/md5.c: Use #error rather than a string.
50451         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
50452         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
50453         (__attribute__): Define to empty for non recent-GCC.
50454         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
50455         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
50456         Renamed from their non-__ counterparts, with new macros replacing
50457         them if not _LIBC.  Add __THROW attribute.
50458         (rol): Remove.
50459         (struct md5_ctx): Align buffer if using GCC.
50460         * lib/sha1.h (struct sha1_ctx): Likewise.
50461         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
50462         The old name was backwards.
50463         (NOTSWAP): Remove; not used.
50464         (rol): New macro, moved here from md5.h.
50465         (sha1_process_block): Remove a FIXME that doesn't make sense.
50466
50467 2005-09-12  Derek Price  <derek@ximbiot.com>
50468
50469         Return usable errors from canon-host.
50470         * lib/canon-host.h: New file.
50471         * lib/canon-host.c (canon_host): Wrap...
50472         (canon_host_r): ...this new function, which now relies exclusively on
50473         getaddrinfo.
50474         (ch_strerror): New function.
50475         (last_cherror): New global.
50476         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
50477         interface.
50478         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
50479         void *.
50480         (freeaddrinfo): Free ai->ai_canonname when set.
50481
50482 2005-09-12  Derek Price  <derek@ximbiot.com>
50483
50484         Make canon-host require getaddrinfo.
50485         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
50486         AC_LIBSOURCE canon-host.h.  Call...
50487         (gl_PREREQ_CANON_HOST): ...this new function, which requires
50488         gl_GETADDRINFO.
50489         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
50490
50491 2005-09-12  Derek Price  <derek@ximbiot.com>
50492
50493         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
50494         LGPL.
50495         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
50496
50497 2005-09-12  Derek Price  <derek@ximbiot.com>
50498
50499         * lib/gai_strerror.c: Include config.h when available.  Include
50500         getaddrinfo.h before other headers to test interface.
50501         Reported by Larry Jones <lawrence.jones@ugs.com>.
50502
50503 2005-09-12  Derek Price  <derek@ximbiot.com>
50504             Paul Eggert  <eggert@cs.ucla.edu>
50505
50506         * modules/glob (Files): Add glob-libc.h.
50507
50508 2005-09-12  Derek Price  <derek@ximbiot.com>
50509             Paul Eggert  <eggert@cs.ucla.edu>
50510
50511         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
50512         glob_.h, glob-libc.h.
50513         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
50514
50515 2005-09-12  Derek Price  <derek@ximbiot.com>
50516             Paul Eggert  <eggert@cs.ucla.edu>
50517
50518         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
50519         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
50520         protecting things that should be done only in gnulib contexts.
50521         * lib/glob_.h: New file, containing only the glob things needed for
50522         gnulib.
50523         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
50524         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
50525         (glob, globfree, glob_pattern_p): Now defined simply in terms of
50526         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
50527         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
50528         and to respect the namespace rules better.
50529
50530 2005-09-08  Simon Josefsson  <jas@extundo.com>
50531
50532         * modules/socklen: New file.
50533
50534 2005-09-08  Simon Josefsson  <jas@extundo.com>
50535
50536         * m4/socklen.m4: New file.
50537
50538 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50539
50540         * modules/utimens (Files): Add m4/utimbuf.m4, since
50541         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
50542         Reported by Sergey Poznyakoff.
50543
50544 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50545
50546         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
50547         definitions, since that's the preferred style in glibc.
50548         Fix a minor spacing issue, and update copyright notice to match
50549         glibc's.
50550
50551 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50552
50553         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
50554
50555 2005-09-06  Simon Josefsson  <jas@extundo.com>
50556
50557         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
50558         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
50559
50560 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
50561
50562         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
50563         warning.
50564
50565 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
50566
50567         * config/srclist.txt: Add glibc bug 1302.
50568
50569 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
50570
50571         Change bitset word type from unsigned int to unsigned long int,
50572         as this has better performance on typical 64-bit hosts.
50573         Port bitset code to hosts with unusual word sizes.
50574         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
50575         (build_collating_symbol):
50576         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
50577         argument is a bitset.  This is merely a style issue, but it makes
50578         it clearer that an entire array is expected.
50579         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
50580         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
50581         Port to the case where bitset_word is not the same as unsigned int.
50582         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
50583         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
50584         Likewise.
50585         * lib/regexec.c (check_dst_limits_calc_pos_1,
50586         check_subexp_matching_top):
50587         (build_trtable, group_nodes_into_DFAstates):
50588         Likewise.
50589         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
50590         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
50591         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
50592         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
50593         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
50594         * lib/regcomp.c (optimize_subexps, lower_subexp):
50595         Work even if bitset_word has holes in its bitwise representation.
50596         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
50597         * lib/regexec.c (check_dst_limits_calc_pos_1,
50598         check_subexp_matching_top):
50599         Likewise.
50600         * lib/regex_internal.c (re_string_reconstruct):
50601         Don't assume UCHAR_MAX == 255.
50602         * lib/regex_internal.h (bitset_set_all): Likewise.
50603         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
50604         All uses changed.
50605         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
50606         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
50607         All uses changed.
50608         (BITSET_WORD_MAX): New macro.
50609         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
50610         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
50611         (bitset_empty, bitset_copy):
50612         Prefer sizeof (bitset) to multiplying it out ourselves.
50613         (bitset_not_merge): Remove; unused.
50614         (bitset_contain): Return bool, not unsigned int with one bit on.
50615         All callers changed.
50616         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
50617         alignment than re_node_set; do this by defining a new internal
50618         type struct dests_alloc and using it to allocate memory.
50619
50620 2005-09-05  Bruno Haible  <bruno@clisp.org>
50621
50622         * gnulib-tool (func_import): Fix comparison in handling of symbolic
50623         links.
50624
50625 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
50626
50627         * modules/size_max (Makefile.am): Add size_max.h
50628
50629 2005-09-04  Derek Price  <derek@ximbiot.com>
50630
50631         * gnulib-tool (func_import): Fix reversed $symbolic logic.
50632
50633 2005-09-03  Simon Josefsson  <jas@extundo.com>
50634
50635         * gnulib-tool: Fix typo.
50636
50637 2005-09-03  Simon Josefsson  <jas@extundo.com>
50638
50639         * config/srclist.txt: Add glibc bug 1293.
50640
50641 2005-09-03  Derek Price  <derek@ximbiot.com>
50642
50643         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
50644         From Larry Jones <lawrence.jones@ugs.com>.
50645
50646 2005-09-02  Simon Josefsson  <jas@extundo.com>
50647
50648         * modules/socklen: New file.
50649
50650 2005-09-02  Simon Josefsson  <jas@extundo.com>
50651
50652         * modules/havelib: New module.
50653
50654         * modules/gettext, modules/iconv, modules/lock, modules/readline:
50655         Use havelib.
50656
50657 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
50658
50659         Check for arithmetic overflow when calculating sizes, to prevent
50660         some buffer-overflow issues.  These patches are conservative, in the
50661         sense that when I couldn't determine whether an overflow was possible,
50662         I inserted a run-time check.
50663         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
50664         macros.
50665         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
50666         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
50667         (re_xnrealloc, re_x2nrealloc): New inline functions.
50668         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
50669         parse_bracket_exp):
50670         (build_equiv_class, build_charclass): Check for arithmetic overflow
50671         in size expression calculations.
50672         * lib/regex_internal.c (re_string_realloc_buffers):
50673         (build_wcs_upper_buffer, re_node_set_add_intersect):
50674         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
50675         (re_dfa_add_node, register_state): Likewise.
50676         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
50677         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
50678         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
50679         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
50680
50681 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
50682
50683         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
50684         m4/ulonglong.m4.  Problem reported by Martin Lambers.
50685
50686 2005-09-02  Bruno Haible  <bruno@clisp.org>
50687
50688         Support for lib vs. lib64 distinction on biarch platforms.
50689         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
50690         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
50691         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
50692
50693 2005-09-02  Bruno Haible  <bruno@clisp.org>
50694
50695         * gnulib-tool (import): In the other first-use case, provide defaults
50696         as well.
50697
50698 2005-09-02  Bruno Haible  <bruno@clisp.org>
50699
50700         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
50701         patches not yet found in the latest gettext release.
50702
50703 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50704
50705         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
50706         to avoid a collision with bits/local_lim.h in glibc.
50707         All uses changed.  Problem reported by Dmitry V. Levin in
50708         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
50709
50710         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
50711         bugs in int versus size_t comparisons.
50712         (re_string_context_at): Fix bug where the code assumed that
50713         Idx is signed.
50714
50715         Use bool where appropriate.
50716         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
50717         All callers changed.
50718         (calc_eclosure_iter): Likewise, for ROOT arg.
50719         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
50720         (build_charclass_op): Likewise, for NON_MATCH arg.
50721         * lib/regex_internal.c (re_string_allocate, re_string_construct):
50722         (re_string_construct_common): Likewise, for ICASE arg.
50723         * lib/regexec.c (re_search_2_stub, re_search_stub):
50724         Likewise, for RET_LEN arg.
50725         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
50726         (set_regs): Likewise, for FL_BACKTRACK arg.
50727         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
50728         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
50729         (calc_eclosure_iter, parse_bracket_exp):
50730         Use bool for internal variables that are booleans.
50731         * lib/regexec.c (re_search_internal, check_matching,
50732         proceed_next_node):
50733         (set_regs, build_sifted_states, sift_states_bkref):
50734         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
50735         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
50736         (find_collation_sequence_value):
50737         Likewise.
50738         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
50739         (re_node_set_compare):
50740         Return bool, not int. All callers changed.
50741         * lib/regexec.c (check_halt_node_context, check_dst_limits):
50742         (build_trtable, check_node_accept): Likewise.
50743         * lib/regex_internal.h: Include stdbool.h.
50744
50745         Fix bugs uncovered when converting to bool.
50746         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
50747         failure instead of charging ahead blindly.
50748         * lib/regex_internal.c (register_state): Likewise.
50749         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
50750         for freeing internal storage.
50751         (group_nodes_into_DFA_states): Use unsigned int, not int, for
50752         bitset pieces used as boolean, to avoid undefined behavior
50753         on hosts that do int overflow checking.
50754
50755 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50756
50757         * config/srclist.txt: Add glibc bugs 1285-1287.
50758
50759 2005-09-01  Jim Meyering  <jim@meyering.net>
50760
50761         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
50762         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
50763         Require gl_STAT_MACROS, too.
50764
50765 2005-09-01  Bruno Haible  <bruno@clisp.org>
50766
50767         * gnulib-tool (import): In the first-use case, provide defaults.
50768
50769 2005-09-01  Bruno Haible  <bruno@clisp.org>
50770
50771         * gnulib-tool (func_import): Remove the .tmp files.
50772
50773 2005-09-01  Bruno Haible  <bruno@clisp.org>
50774
50775         * gnulib-tool (func_import): Fix handling of symbolic links.
50776
50777 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50778
50779         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
50780         old glibc regex code mishandles strings longer than 2**31 bytes.
50781         This patch fixes this when the regex code is used in gnulib
50782         (i.e., outside glibc).
50783
50784         This patch should not affect the use of the regex code inside
50785         glibc.  No doubt this problem also needs to be handled for glibc
50786         as well, but the result will be an incompatible change to the
50787         glibc ABI, and the old ABI will have to be supported too.  That
50788         can be the the subject for another patch.
50789
50790         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
50791         governing whether the rest of this patch is active.  By default,
50792         the macro is disabled and the patch has no effect.
50793         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
50794         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
50795         (struct re_pattern_buffer, re_search, re_search_2, re_match):
50796         (re_match_2, re_set_registers): Use the new types.
50797         * lib/regex_internal.h (Idx, re_hashval_t): New types.
50798         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
50799         New macros.
50800         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
50801         (re_string_context_at, bin_tree_t, re_dfastate_t):
50802         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
50803         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
50804         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
50805         (re_string_char_size_at, re_string_wchar_at):
50806         (re_string_elem_size_at):
50807         Use the new types and macros to port to 64-bit hosts.
50808         Use unsigned types for internal values, so that the code
50809         mostly works even for arrays larger than SSIZE_MAX.
50810         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
50811         (search_duplicated_node, calc_eclosure_iter, fetch_number):
50812         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
50813         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
50814         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
50815         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
50816         (calc_inveclosure, parse_dup_op, build_range_exp):
50817         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
50818         (fetch_number, create_token_tree, mark_opt_subexp):
50819         Likewise.
50820         * lib/regex_internal.c (re_string_construct_common,
50821         create_ci_newstate):
50822         (create_cd_newstate, re_string_allocate, re_string_construct):
50823         (re_string_realloc_buffers, build_wcs_upper_buffer):
50824         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
50825         (re_string_reconstruct, re_string_peek_byte_case):
50826         (re_string_fetch_byte_case, re_string_context_at):
50827         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
50828         (re_node_set_init_copy, re_node_set_add_intersect):
50829         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
50830         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
50831         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
50832         (re_acquire_state, re_acquire_state_context, register_state):
50833         Likewise.
50834         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
50835         search_cur_bkref_entry):
50836         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
50837         (re_search_internal, re_search_2_stub, re_search_stub)
50838         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
50839         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
50840         (update_cur_sifted_state, check_dst_limits):
50841         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
50842         (check_subexp_limits, sift_states_bkref, merge_state_array):
50843         (check_subexp_matching_top, get_subexp, get_subexp_sub):
50844         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
50845         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
50846         (expand_bkref_cache, check_node_accept_bytes):
50847         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
50848         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
50849         (acquire_init_state_context, check_halt_node_context):
50850         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
50851         (sift_states_backward, clean_state_log_if_needed):
50852         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
50853         (find_recover_state, transit_state_sb, transit_state_mb):
50854         (transit_state_bkref, build_trtable, match_ctx_clean):
50855         Likewise.
50856         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
50857         to work around an assumption that REG_MISSING is negative.
50858
50859         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
50860         (seek_collating_symbol_entry) [defined _LIBC]:
50861         (lookup_collation_sequence_value) [defined _LIBC]:
50862         (build_range_exp, build_collating_symbol) [defined _LIBC]:
50863         Use prototypes rather than old-style function definitions.
50864         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
50865         (transit_state_sb) [0]:
50866         (find_collation_sequence_value) [defined _LIBC]: Likewise.
50867
50868         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
50869         rm_eo.
50870
50871         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
50872         (optimize_subexps, lower_subexp):
50873         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
50874         since the signed shift might overflow.  Use 1u<<31 instead.
50875         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
50876         Likewise.
50877         * lib/regexec.c (check_dst_limits_calc_pos_1,
50878         check_subexp_matching_top): Likewise.
50879
50880         * lib/regcomp.c (optimize_subexps, lower_subexp):
50881         Use CHAR_BIT rather than 8, for clarity.
50882         * lib/regexec.c (check_dst_limits_calc_pos_1):
50883         (check_subexp_matching_top): Likewise.
50884         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
50885         have to worry about portability issues when shifting it left.
50886         Remove no-longer-needed test for table_size > 0.
50887         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
50888         in a word, as the resulting behavior is undefined.
50889         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
50890         in one case, a <= should have been an <, and in another case the
50891         whole test was missing.
50892         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
50893         the standard name CHAR_BIT.
50894         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
50895         this is not true on one's complement and signed-magnitude hosts.
50896
50897         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
50898         next_last_offset.
50899         (struct re_dfa_t): Remove unused member states_alloc.
50900         * lib/regcomp.c (init_dfa): Don't initialize unused members.
50901
50902 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50903
50904         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
50905         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
50906         and large-file glibc and in 32-bit large-file Solaris.
50907
50908 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50909
50910         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
50911         lengths fit in regoff_t; this isn't true if regoff_t is the same
50912         width as size_t.
50913         * lib/regex.c (re_search_internal): 5th arg is LAST_START
50914         (= START + RANGE) instead of RANGE.  This avoids overflow
50915         problems when regoff_t is the same width as size_t.
50916         All callers changed.
50917         (re_search_2_stub): Check for overflow when adding the
50918         sizes of the two strings.
50919         (re_search_stub): Check for overflow when adding START
50920         to RANGE; if it occurs, substitute the extreme value.
50921
50922 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50923
50924         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
50925
50926 2005-08-31  Jim Meyering  <jim@meyering.net>
50927
50928         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
50929         a pointer-to-const.
50930         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
50931         (register_state): Likewise.
50932         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
50933         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
50934         (group_nodes_into_DFAstates): Likewise.
50935
50936 2005-08-31  Jim Meyering  <jim@meyering.net>
50937
50938         * check-module: Add a FIXME comment.
50939
50940 2005-08-31  Eric Blake  <ebb9@byu.net>
50941
50942         * modules/unistd-safer (Files): Add unistd--.h.
50943         * modules/stdio-safer (Files): Add stdio--.h.
50944
50945 2005-08-31  Derek Price  <derek@ximbiot.com>
50946
50947         * lib/getdelim.c (getdelim): Return EOF on EOF.
50948         Reported by Larry Jones <lawrence.jones@ugs.com>.
50949
50950 2005-08-31  Bruno Haible  <bruno@clisp.org>
50951
50952         Avoid unnecessary diffs in the generated lib/Makefile.am.
50953         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
50954         the generated files.
50955         (func_import): Don't set cmd.
50956
50957 2005-08-31  Bruno Haible  <bruno@clisp.org>
50958
50959         * lib/strstr.c: Include <stddef.h>, for NULL.
50960         * lib/strcasestr.c: Likewise.
50961         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50962
50963 2005-08-31  Bruno Haible  <bruno@clisp.org>
50964
50965         * gnulib-tool: New option --macro-prefix.
50966         (func_import): Use macro_prefix.
50967         (import): Handle option --macro-prefix.
50968
50969 2005-08-31  Bruno Haible  <bruno@clisp.org>
50970
50971         * gnulib-tool (import): Rename most ac_* variables to cached_*.
50972         Also use new variables cached_lgpl, cached_libtool.
50973
50974 2005-08-31  Bruno Haible  <bruno@clisp.org>
50975
50976         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
50977         always instantiating them.
50978
50979 2005-08-31  Bruno Haible  <bruno@clisp.org>
50980
50981         * gnulib-tool (func_import): Read the previous cached settings
50982         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
50983         earlier added by gnulib but are now dropped. Warn when a gnulib file
50984         overwrites a non-gnulib file.
50985
50986 2005-08-31  Bruno Haible  <bruno@clisp.org>
50987
50988         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
50989         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
50990         projects that don't keep autogenerated files in CVS. Put into
50991         actioncmd only the specified modules, not the transitive closure.
50992
50993 2005-08-31  Bruno Haible  <bruno@clisp.org>
50994
50995         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
50996         Create directories that shall be filled.
50997         (import): Don't look for gl_* macros in configure.ac. Recurse across
50998         all directories containing a gnulib-cache.m4 files, if meaningful.
50999
51000 2005-08-31  Bruno Haible  <bruno@clisp.org>
51001
51002         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
51003         (import): Set seen_libtool when we see gl_LIBTOOL.
51004
51005 2005-08-31  Bruno Haible  <bruno@clisp.org>
51006
51007         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
51008         declaration macro definitions from generated gnulib.m4.
51009
51010 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
51011
51012         * lib/iconvme.h: Add prototype for iconv_alloc.
51013
51014 2005-08-29  Simon Josefsson  <jas@extundo.com>
51015
51016         * lib/iconvme.c: Fix errno.
51017
51018 2005-08-29  Bruno Haible  <bruno@clisp.org>
51019
51020         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
51021         that it works when the directory contains spaces.
51022
51023 2005-08-29  Bruno Haible  <bruno@clisp.org>
51024
51025         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
51026
51027 2005-08-29  Bruno Haible  <bruno@clisp.org>
51028
51029         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
51030         Emit more advice.
51031
51032 2005-08-29  Bruno Haible  <bruno@clisp.org>
51033         and Stepan Kasal  <kasal@ucw.cz>
51034
51035         * check-module: If more parameters are given, check each of them
51036         separately; add more exceptions, as noted by Jim Meyering.
51037         (check_module): New procedure.
51038         (%exempt_header): Now contains all exceptions.
51039
51040 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
51041
51042         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
51043
51044 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
51045
51046         * lib/iconvme.c: Split iconv_string into iconv_alloc.
51047
51048 2005-08-28  Bruno Haible  <bruno@clisp.org>
51049
51050         * m4/gnulib-tool.m4: New file.
51051
51052 2005-08-27  Jim Meyering  <jim@meyering.net>
51053
51054         * modules/unistd-safer (Files): Add pipe-safer.c.
51055         * modules/fcntl-safer (Files): Add creat-safer.c.
51056
51057 2005-08-27  Jim Meyering  <jim@meyering.net>
51058
51059         * m4/stdlib-safer.m4: New file.  From coreutils.
51060         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
51061         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
51062         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
51063         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
51064         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
51065
51066 2005-08-27  Jim Meyering  <jim@meyering.net>
51067
51068         * lib/fopen-safer.c: Merge minor changes from coreutils.
51069         * lib/dup-safer.c: Likewise.
51070         * lib/fd-safer.c: Likewise.
51071
51072         Merge from coreutils.
51073         * lib/stdio--.h: New file.
51074         * lib/stdlib--.h: New file.
51075         * lib/mkstemp-safer.c: New file.
51076
51077         GNU tar needs these.
51078         * lib/pipe-safer.c: New file.
51079         * lib/creat-safer.c: New file.
51080         * lib/fcntl--.h (creat): Define to creat_safer.
51081         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
51082         * lib/unistd--.h (pipe): Define to pipe_safer.
51083         * lib/unistd-safer.h: Declare pipe_safer.
51084
51085 2005-08-26  Simon Josefsson  <jas@extundo.com>
51086
51087         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
51088         Haible <bruno@clisp.org>.
51089
51090 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
51091
51092         * lib/regex_internal.h: Remove all references to
51093         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
51094         or better.
51095         (bitset_not, bitset_merge, bitset_not_merge):
51096         (bitset_mask, re_string_allocate, re_string_construct):
51097         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
51098         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
51099         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
51100         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
51101         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
51102         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
51103         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
51104         (re_acquire_state_context):
51105         Remove unnecessary forward decls.
51106         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
51107         Put __attribute at function definition,
51108         now that the function decl has been removed.
51109         * lib/regex_internal.c (re_string_peek_byte_case):
51110         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
51111         Likewise.
51112
51113 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
51114
51115         * m4/regex.m4: Add AC_PREREQ(2.50).
51116         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
51117
51118 2005-08-25  Simon Josefsson  <jas@extundo.com>
51119
51120         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
51121         __fsetlocking.
51122
51123 2005-08-25  Simon Josefsson  <jas@extundo.com>
51124
51125         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
51126         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
51127         GLIBC specific code.
51128
51129 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51130
51131         Make regex safe for g++.  This fixes one real bug (an "err"
51132         that should have been "*err").  g++ problem reported by
51133         Sam Steingold.
51134         * lib/regex_internal.h (re_calloc): New macro, consistent with
51135         re_malloc etc.  All callers of calloc changed to use re_calloc.
51136         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
51137         not int.  All callers changed.
51138         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
51139         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
51140         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
51141         (find_recover_state): Change "err" to "*err"; this fixes what
51142         appears to be a real bug.
51143         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
51144         versus int.
51145
51146 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51147
51148         * modules/regex (Depends-on): Add malloc, since the code
51149         assumes that !malloc(0) means failure.
51150
51151 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51152
51153         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
51154
51155         alloca modernization/simplification for regex.
51156         * lib/regex.c: Remove portability cruft for alloca.  This no longer
51157         needs to be at the start of the file, and can be moved into
51158         regex_internal.h and simplified.
51159         * lib/regex_internal.h: Include <alloca.h>.
51160         (__libc_use_alloca) [!defined _LIBC]: New macro.
51161         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
51162         now works outside glibc.
51163
51164 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51165
51166         * config/srclist.txt: Add glibc bugs 1241, 1245.
51167
51168 2005-08-25  Jim Meyering  <jim@meyering.net>
51169
51170         * lib/open-safer.c: Include <config.h>.
51171         Otherwise, we'd lose LARGEFILE support in any file using
51172         e.g. "fcntl--.h"
51173
51174 2005-08-25  Bruno Haible  <bruno@clisp.org>
51175
51176         * m4/minmax.m4: Require autoconf 2.52.
51177         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
51178         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
51179         alternatives of translit over the alphabet.
51180         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
51181
51182 2005-08-24  Simon Josefsson  <jas@extundo.com>
51183
51184         * tests/test-getpass.c: New file.
51185
51186 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51187
51188         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
51189         for GNU regex features.
51190
51191 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51192
51193         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
51194         * lib/regex.h (regerror): Likewise.
51195
51196         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
51197         requires this.  (The code never needed it.)
51198
51199         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
51200         All uses of recently-renamed identifiers changed to use the new,
51201         POSIX-compliant names.  The code will build and run just fine
51202         without these changes, but it's better to eat our own dog food
51203         and use the standard-conforming names.
51204
51205         * lib/regex.h: Fix a multitude of POSIX name space violations.
51206         These changes have an effect only for programs that define
51207         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
51208         do not change anything for programs compiled in the normal way.
51209         Also, there is no effect on the ABI.
51210
51211         (_REGEX_SOURCE): New macro.
51212         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
51213         defined and _GNU_SOURCE is not; this fixes a name space violation.
51214
51215         Rename the following macros to obey POSIX requirements.
51216         The old names are still visible as macros if _REGEX_SOURCE is defined.
51217         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
51218         RE_BACKSLASH_ESCAPE_IN_LISTS.
51219         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
51220         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
51221         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
51222         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
51223         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
51224         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
51225         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
51226         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
51227         (REG_INTERVALS): renamed from RE_INTERVALS.
51228         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
51229         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
51230         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
51231         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
51232         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
51233         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
51234         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
51235         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
51236         RE_UNMATCHED_RIGHT_PAREN_ORD.
51237         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
51238         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
51239         (REG_DEBUG): renamed from RE_DEBUG.
51240         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
51241         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
51242         unusual, since we can't clash with the POSIX REG_ICASE.
51243         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
51244         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
51245         (REG_NO_SUB): renamed from RE_NO_SUB.
51246         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
51247         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
51248         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
51249         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
51250         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
51251         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
51252         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
51253         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
51254         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
51255         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
51256         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
51257         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
51258         RE_SYNTAX_POSIX_MINIMAL_BASIC.
51259         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
51260         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
51261         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
51262         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
51263         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
51264         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
51265         (REG_FIXED): Renamed from REGS_FIXED.
51266         (REG_NREGS): Renamed from RE_NREGS.
51267
51268         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
51269         of other REG_* macros, since POSIX says the user is allowed to
51270         #undef these macros selectively.
51271
51272         (reg_errcode_t): Update comment stating what other tables need
51273         to be consistent.
51274
51275         Rename the following enum values to obey POSIX requirements.
51276         The old names are still visible as macros.
51277         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
51278         is not defined, since GNU is supposed to be a superset of POSIX as
51279         much as possible, and since we want reg_errcode_t to be a signed
51280         type for implementation consistency.
51281         (_REG_NOERROR): Renamed from REG_NOERROR.
51282         (_REG_NOMATCH): Renamed from REG_NOMATCH.
51283         (_REG_BADPAT): Renamed from REG_BADPAT.
51284         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
51285         (_REG_ECTYPE): Renamed from REG_ECTYPE.
51286         (_REG_EESCAPE): Renamed from REG_EESCAPE.
51287         (_REG_ESUBREG): Renamed from REG_ESUBREG.
51288         (_REG_EBRACK): Renamed from REG_EBRACK.
51289         (_REG_EPAREN): Renamed from REG_EPAREN.
51290         (_REG_EBRACE): Renamed from REG_EBRACE.
51291         (_REG_BADBR): Renamed from REG_BADBR.
51292         (_REG_ERANGE): Renamed from REG_ERANGE.
51293         (_REG_ESPACE): Renamed from REG_ESPACE.
51294         (_REG_BADRPT): Renamed from REG_BADRPT.
51295         (_REG_EEND): Renamed from REG_EEND.
51296         (_REG_ESIZE): Renamed from REG_ESIZE.
51297         (_REG_ERPAREN): Renamed from REG_ERPAREN.
51298         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
51299         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
51300         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
51301         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
51302
51303         (_REG_RE_NAME, _REG_RM_NAME): New macros.
51304         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
51305         changed.  But support the old name if the new one is not defined
51306         and if _REGEX_SOURCE.
51307
51308         Change the following member names in struct re_pattern_buffer.
51309         The old names are still supported if !_REGEX_SOURCE.
51310         The new names are always supported, regardless of _REGEX_SOURCE.
51311         (re_buffer): Renamed from buffer.
51312         (re_allocated): Renamed from allocated.
51313         (re_used): Renamed from used.
51314         (re_syntax): Renamed from syntax.
51315         (re_fastmap): Renamed from fastmap.
51316         (re_translate): Renamed from translate.
51317         (re_can_be_null): Renamed from can_be_null.
51318         (re_regs_allocated): Renamed from regs_allocated.
51319         (re_fastmap_accurate): Renamed from fastmap_accurate.
51320         (re_no_sub): Renamed from no_sub.
51321         (re_not_bol): Renamed from not_bol.
51322         (re_not_eol): Renamed from not_eol.
51323         (re_newline_anchor): Renamed from newline_anchor.
51324
51325         Change the following member names in struct re_registers.
51326         The old names are still supported if !_REGEX_SOURCE.
51327         The new names are always supported, regardless of _REGEX_SOURCE.
51328         (rm_num_regs): Renamed from num_regs.
51329         (rm_start): Renamed from start.
51330         (rm_end): Renamed from end.
51331
51332         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
51333         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
51334         Prepend __ to parameter names.
51335
51336         Undo yesterday's changes.
51337
51338 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51339
51340         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
51341         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
51342         lib/regex.c.
51343
51344 2005-08-24  Jim Meyering  <jim@meyering.net>
51345
51346         Sync from coreutils.
51347         * m4/fcntl-safer.m4: New file.
51348
51349         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
51350         and object files for this module.
51351
51352 2005-08-24  Jim Meyering  <jim@meyering.net>
51353
51354         Sync from coreutils.
51355         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
51356
51357 2005-08-24  Jim Meyering  <jim@meyering.net>
51358
51359         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
51360         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
51361
51362 2005-08-24  Jim Meyering  <jim@meyering.net>
51363
51364         * modules/fcntl-safer: New module.
51365         * modules/fts (Depends-on): Add fcntl-safer.
51366         * MODULES.html.sh (File descriptor based Input/Output):
51367         Add fcntl-safer.
51368
51369 2005-08-24  Bruno Haible  <bruno@clisp.org>
51370
51371         Support for unit test modules.
51372         * modules/README: Mention tests modules.
51373         * modules/TEMPLATE-TESTS: New file.
51374         * gnulib-tool: New options --extract-tests-module, --with-tests and
51375         --tests-base (unused for the moment).
51376         (testsbase, inctests): New variables.
51377         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
51378         (func_verify_module): Exclude TEMPLATE-TESTS.
51379         (func_verify_nontests_module, func_verify_tests_module): New functions.
51380         (func_get_dependencies): Add implicit dependency for tests modules.
51381         (func_get_tests_module): New function.
51382         (func_modules_transitive_closure): When --with-tests was specified,
51383         include the unit tests as well, unless explicitly avoided.
51384         (func_emit_lib_Makefile_am): Ignore the tests modules here.
51385         (func_emit_tests_Makefile_am): New function.
51386         (func_create_testdir): When --with-tests was specified, emit a
51387         tests/ directory.
51388         * MODULES.html.sh (Future developments): Update.
51389
51390 2005-08-24  Bruno Haible  <bruno@clisp.org>
51391
51392         * modules/tls-tests: New file.
51393         * tests/test-tls.c: New file, from GNU gettext.
51394
51395 2005-08-24  Bruno Haible  <bruno@clisp.org>
51396
51397         * modules/lock-tests: New file.
51398         * tests/test-lock.c: New file, from GNU gettext.
51399
51400 2005-08-24  Bruno Haible  <bruno@clisp.org>
51401
51402         * lib/lock.h: Add multiple inclusion guard.
51403         * lib/tls.h: Add multiple inclusion guard.
51404
51405 2005-08-24  Bruno Haible  <bruno@clisp.org>
51406
51407         * gnulib-tool: Add support for the --aux-dir option to
51408         --create-testdir, --create-megatestdir, --test, --megatest.
51409         (func_create_testdir, func_create_megatestdir): Optionally emit a
51410         AC_CONFIG_AUX_DIR directive.
51411         (create-testdir, create-megatestdir, test, megatest): Provide a
51412         default value for $auxdir.
51413
51414 2005-08-24  Bruno Haible  <bruno@clisp.org>
51415
51416         * gnulib-tool (import): Use compound statement instead of subshell
51417         where possible.
51418
51419 2005-08-24  Bruno Haible  <bruno@clisp.org>
51420
51421         * gnulib-tool (import): Change --aux-dir default to "build-aux".
51422
51423 2005-08-24  Bruno Haible  <bruno@clisp.org>
51424
51425         * gnulib-tool (func_version): Update.
51426
51427 2005-08-24  Bruno Haible  <bruno@clisp.org>
51428
51429         * gnulib-tool (func_import, func_create_testdir,
51430         func_create_megatestdir): Quote all autoconf macro arguments.
51431
51432 2005-08-24  Bruno Haible  <bruno@clisp.org>
51433
51434         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
51435         option --force, because --force causes the aclocal.m4 of each
51436         subdirectory to be newer than the corresponding config.h.in.
51437
51438 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51439
51440         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
51441         All contents moved to gl_REGEX.
51442         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
51443         assume that it does.
51444
51445 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51446
51447         * lib/regex.h (REG_NOSYS)
51448         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
51449         Define, since POSIX requires it as of 2001.
51450         (_REG_ENOSYS)
51451         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
51452         New private symbol, used to keep the enum signed in all cases.
51453         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
51454         Youngman in
51455         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
51456
51457         * lib/regex_internal.c (re_string_skip_chars, register_state):
51458         (calc_state_hash):
51459         Remove forward decls; no longer needed now that we use prototypes.
51460         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
51461         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
51462         (clean_state_log_if_needed): Likewise.
51463
51464 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51465
51466         * config/srclist.txt: Add glibc bugs 1231-1233.
51467
51468 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51469
51470         Fix problems reported by Sam Steingold in
51471         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
51472         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
51473         assumed that reg_errcode_t is a signed type, which is not
51474         necessarily true if _XOPEN_SOURCE is not defined.
51475         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
51476         since some compilers warn about it otherwise.
51477
51478 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51479
51480         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
51481         (init_word_char, create_initial_state, duplicate_node_closure):
51482         (fetch_token, peek_token_bracket, build_range_exp):
51483         (build_collating_symbol): Remove forward decls; no longer needed
51484         now that we use prototypes.
51485
51486         * lib/regcomp.c:
51487         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
51488         (re_compile_fastmap_iter, regcomp, regerror, regfree):
51489         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
51490         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
51491         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
51492         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
51493         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
51494         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
51495         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
51496         (build_range_exp, build_collating_symbol, parse_bracket_exp):
51497         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
51498         (build_charclass, build_charclass_op, fetch_number, create_tree):
51499         (create_token_tree, mark_opt_subexp, duplicate_tree):
51500         Use prototypes rather than old-style definitions.
51501
51502         * lib/regex_internal.c:
51503         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
51504         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
51505         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
51506         (re_string_reconstruct, re_string_peek_byte_case):
51507         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
51508         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
51509         (re_node_set_init_copy, re_node_set_add_intersect):
51510         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
51511         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
51512         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
51513         (re_acquire_state, re_acquire_state_context, register_state):
51514         (create_ci_newstate, create_cd_newstate, free_state):
51515         Likewise.
51516         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
51517         re_search_2):
51518         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
51519         (re_search_internal, prune_impossible_nodes):
51520         (acquire_init_state_context, check_matching, static):
51521         (check_halt_node_context, check_halt_state_context, proceed_next_node):
51522         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
51523         (update_regs, sift_states_backward, build_sifted_states):
51524         (clean_state_log_if_needed, merge_state_array):
51525         (update_cur_sifted_state, add_epsilon_src_nodes):
51526         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
51527         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
51528         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
51529         (find_recover_state, check_subexp_matching_top, transit_state_mb):
51530         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
51531         (check_arrival, check_arrival_add_next_nodes):
51532         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
51533         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
51534         (check_node_accept_bytes, check_node_accept, extend_buffers):
51535         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
51536         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
51537         (sift_ctx_init):
51538         Likewise.
51539
51540         * lib/regex_internal.h:
51541         (re_string_allocate, re_string_construct, re_string_reconstruct):
51542         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
51543         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
51544         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
51545         (re_string_context_at, re_string_peek_byte_case):
51546         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
51547         is defined, since we now use prototypes always.
51548
51549         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
51550         C89 or better.  All uses removed.
51551
51552 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51553
51554         * config/srclist.txt: Add glibc bugs 1220-1227.
51555
51556 2005-08-20  Jim Meyering  <jim@meyering.net>
51557
51558         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
51559         of unused local, dfa.
51560
51561 2005-08-20  Bruno Haible  <bruno@clisp.org>
51562
51563         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
51564
51565 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51566
51567         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
51568         (re_node_set_insert_last, re_dfa_add_node):
51569         Rename local variables to avoid GCC shadowing warnings.
51570
51571 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51572
51573         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
51574         [defined lint]: Suppress bogus uninitialized-variable warnings.
51575
51576         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
51577         and let the caller return REG_ESPACE if out of space.  This
51578         removes an uninitialied-variable warning with GCC 4.0.1, and also
51579         avoids taking the address of a local variable.  All callers
51580         changed.
51581
51582 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51583
51584         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
51585         $LIBCSRC/posix/regexec.c.
51586         Add glibc bug 1217 for regcomp.c.
51587
51588 2005-08-19  Jim Meyering  <jim@meyering.net>
51589
51590         * lib/regexec.c (proceed_next_node): Redo local variables to
51591         avoid GCC shadowing warnings.
51592
51593 2005-08-18  Bruno Haible  <bruno@clisp.org>
51594
51595         * lib/strstr.c (strstr): Fix return value in multibyte case.
51596         * lib/strcasestr.c (strcasestr): Likewise.
51597
51598 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
51599
51600         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
51601
51602 2005-08-17  Jim Meyering  <jim@meyering.net>
51603
51604         Make the %s format (seconds since the epoch) work for a negative
51605         number and when used with a zero-padded field width, e.g. %015s.
51606
51607         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
51608         label so that it precedes the code to set `digits'.  Otherwise,
51609         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
51610         print `00-22'.  Now, it prints `-0022', as it should.
51611
51612 2005-08-17  Bruno Haible  <bruno@clisp.org>
51613
51614         * modules/strstr (Files): Add m4/mbrtowc.m4.
51615         (Depends-on): Add mbuiter.
51616
51617 2005-08-17  Bruno Haible  <bruno@clisp.org>
51618
51619         * modules/strcasestr: New file.
51620         * MODULES.html.sh (String handling, based on ANSI C 89): Add
51621         strcasestr.
51622
51623 2005-08-17  Bruno Haible  <bruno@clisp.org>
51624
51625         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
51626
51627 2005-08-17  Bruno Haible  <bruno@clisp.org>
51628
51629         * modules/mbuiter: New file.
51630         * MODULES.html.sh (Extended multibyte and wide character utilities):
51631         Add mbuiter.
51632
51633 2005-08-17  Bruno Haible  <bruno@clisp.org>
51634
51635         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
51636         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
51637
51638 2005-08-17  Bruno Haible  <bruno@clisp.org>
51639
51640         * m4/strcasestr.m4: New file.
51641
51642 2005-08-17  Bruno Haible  <bruno@clisp.org>
51643
51644         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
51645         * lib/strstr.c: Completely rewritten, with multibyte locale support.
51646
51647 2005-08-17  Bruno Haible  <bruno@clisp.org>
51648
51649         * lib/strcasestr.h: New file.
51650         * lib/strcasestr.c: New file.
51651
51652 2005-08-17  Bruno Haible  <bruno@clisp.org>
51653
51654         * lib/strcasecmp.c: Use mbuiter.h.
51655
51656 2005-08-17  Bruno Haible  <bruno@clisp.org>
51657
51658         * lib/mbuiter.h: New file.
51659
51660 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
51661
51662         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
51663         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
51664         and gl_GETOPT are both invoked via different paths (as happens
51665         with GNU tar CVS because it uses both argp and getopt), the former
51666         wins.
51667
51668 2005-08-16  Bruno Haible  <bruno@clisp.org>
51669
51670         * modules/tls: New file.
51671         * MODULES.html.sh (Multithreading): Add tls.
51672
51673 2005-08-16  Bruno Haible  <bruno@clisp.org>
51674
51675         * modules/strnlen1: New file.
51676         * MODULES.html.sh (String handling): Add strnlen1.
51677
51678 2005-08-16  Bruno Haible  <bruno@clisp.org>
51679
51680         * modules/strcase (Files): Add m4/mbrtowc.m4.
51681         (Depends-on): Add strnlen1, mbchar.
51682
51683 2005-08-16  Bruno Haible  <bruno@clisp.org>
51684
51685         * modules/mbiter: New file.
51686         * MODULES.html.sh (Extended multibyte and wide character utilities):
51687         Add mbiter.
51688
51689 2005-08-16  Bruno Haible  <bruno@clisp.org>
51690
51691         * modules/mbfile: New file.
51692         * MODULES.html.sh (Extended multibyte and wide character utilities):
51693         Add mbfile.
51694
51695 2005-08-16  Bruno Haible  <bruno@clisp.org>
51696
51697         * modules/mbchar: New file.
51698         * MODULES.html.sh (Extended multibyte and wide character utilities):
51699         New section.
51700
51701 2005-08-16  Bruno Haible  <bruno@clisp.org>
51702
51703         * m4/tls.m4: New file, from GNU gettext.
51704
51705 2005-08-16  Bruno Haible  <bruno@clisp.org>
51706
51707         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
51708         always.
51709         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
51710
51711 2005-08-16  Bruno Haible  <bruno@clisp.org>
51712
51713         * m4/mbiter.m4: New file.
51714
51715 2005-08-16  Bruno Haible  <bruno@clisp.org>
51716
51717         * m4/mbfile.m4: New file.
51718
51719 2005-08-16  Bruno Haible  <bruno@clisp.org>
51720
51721         * m4/mbchar.m4: New file.
51722
51723 2005-08-16  Bruno Haible  <bruno@clisp.org>
51724
51725         * lib/tls.h: New file, from GNU gettext.
51726         * lib/tls.c: New file, from GNU gettext.
51727
51728 2005-08-16  Bruno Haible  <bruno@clisp.org>
51729
51730         * lib/strnlen1.h: New file.
51731         * lib/strnlen1.c: New file.
51732
51733 2005-08-16  Bruno Haible  <bruno@clisp.org>
51734
51735         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
51736         (mbi_init): Update.
51737         (mbi_avail, mbi_advance): Let the iteration end before the terminating
51738         NUL byte, not after it.
51739
51740 2005-08-16  Bruno Haible  <bruno@clisp.org>
51741
51742         * lib/strcase.h (strcasecmp): Add note in comments.
51743         * lib/strncasecmp.c: Use code from strcasecmp.c.
51744         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
51745         (strcasecmp): Work correctly in multibyte locales.
51746
51747 2005-08-16  Bruno Haible  <bruno@clisp.org>
51748
51749         * lib/mbiter.h: New file.
51750
51751 2005-08-16  Bruno Haible  <bruno@clisp.org>
51752
51753         * lib/mbfile.h: New file.
51754
51755 2005-08-16  Bruno Haible  <bruno@clisp.org>
51756
51757         * lib/mbchar.h: New file.
51758         * lib/mbchar.c: New file.
51759
51760 2005-08-16  Bruno Haible  <bruno@clisp.org>
51761
51762         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
51763         the valid ones. Makes the comparison operations transitive:
51764         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
51765         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
51766
51767 2005-08-15  Simon Josefsson  <jas@extundo.com>
51768
51769         * modules/ssize_t (License): Change to 'unlimited'.
51770
51771         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
51772
51773 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51774
51775         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
51776         Add comments for each pending glibc patch.
51777
51778 2005-08-15  Bruno Haible  <bruno@clisp.org>
51779
51780         * lib/regex.h (__restrict_arr): Don't define to __restrict if
51781         __cplusplus is defined.
51782
51783 2005-08-14  Jim Meyering  <jim@meyering.net>
51784
51785         Sync from coreutils.
51786
51787         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
51788         Use the hash-table-based cycle-detection code not just when
51789         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
51790         Reported by James Youngman in
51791         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
51792         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
51793         FTS_TIGHT_CYCLE_CHECK.
51794         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
51795         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
51796         once again.
51797         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
51798         * lib/fts.c (fd_safer): Remove decl.
51799         Include fcntl--.h rather than unistd-safer.h
51800         (fts_safe_changedir): Don't call fd_safer; no longer needed
51801         now that we include fcntl--.h.
51802
51803 2005-08-12  Simon Josefsson  <jas@extundo.com>
51804
51805         * modules/getndelim2: Use ssize_t module.
51806         * modules/getnline: Likewise.
51807         * modules/safe-read: Likewise.
51808         * modules/xreadlink: Likewise.
51809
51810         * modules/ssize_t: New file.
51811
51812 2005-08-12  Simon Josefsson  <jas@extundo.com>
51813
51814         * m4/readline.m4: Look for termcap, curses or ncurses if required.
51815
51816 2005-08-12  Simon Josefsson  <jas@extundo.com>
51817
51818         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51819         ssize_t.
51820
51821 2005-08-12  Simon Josefsson  <jas@extundo.com>
51822
51823         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
51824         readline, getdelim and check_version.
51825         (Support for systems lacking ISO C 99: Sizes of integer types):
51826         Add size_max.
51827
51828 2005-08-12  Bruno Haible  <bruno@clisp.org>
51829
51830         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
51831
51832 2005-08-11  Simon Josefsson  <jas@extundo.com>
51833
51834         * modules/readline: New file.
51835
51836         * modules/strnlen (Files): Add strnlen.h.
51837
51838 2005-08-11  Simon Josefsson  <jas@extundo.com>
51839
51840         * m4/readline.m4: New file.
51841
51842 2005-08-11  Simon Josefsson  <jas@extundo.com>
51843
51844         * lib/readline.h, readline.c: New file.
51845
51846 2005-08-11  Simon Josefsson  <jas@extundo.com>
51847
51848         * doc/gnulib.texi (Initial import, Finishing touches): Mention
51849         gl_AVOID.
51850
51851 2005-08-11  Bruno Haible  <bruno@clisp.org>
51852
51853         * lib/strnlen.h (strnlen): Change parameter name to match comment.
51854
51855 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
51856
51857         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
51858
51859 2005-08-10  Simon Josefsson  <jas@extundo.com>
51860
51861         * tests/test-iconvme.c: New file.
51862
51863 2005-08-10  Simon Josefsson  <jas@extundo.com>
51864
51865         * m4/strnlen.m4: New file.
51866
51867         * m4/strndup.m4: Don't check for strnlen declaration, done in
51868         strnlen.m4.
51869
51870 2005-08-10  Simon Josefsson  <jas@extundo.com>
51871
51872         * lib/strndup.c: Use strnlen.h.
51873
51874         * lib/strnlen.h: New file.
51875
51876 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
51877
51878         * README: Typos.
51879
51880 2005-08-02  Simon Josefsson  <jas@extundo.com>
51881
51882         * modules/readline: New file.
51883
51884 2005-08-02  Simon Josefsson  <jas@extundo.com>
51885
51886         * modules/getdelim: New file.
51887
51888         * modules/getline: Rewrite, don't use getndelim2.
51889
51890 2005-08-02  Simon Josefsson  <jas@extundo.com>
51891
51892         * m4/getline.m4: Separate out getdelim stuff into separate module.
51893
51894         * m4/getdelim.m4: New file.
51895
51896 2005-08-02  Simon Josefsson  <jas@extundo.com>
51897
51898         * lib/getline.h, getline.c: Rewrite.
51899
51900         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
51901
51902 2005-07-31  Bruno Haible  <bruno@clisp.org>
51903
51904         * lib/lock.h (gl_lock_initializer): New macro.
51905         (gl_lock_define_initialized): Use it.
51906         (gl_rwlock_initializer): New macro.
51907         (gl_rwlock_define_initialized): Use it.
51908         (gl_recursive_lock_initializer): New macro.
51909         (gl_recursive_lock_define_initialized): Use it.
51910
51911 2005-07-30  Karl Berry  <karl@gnu.org>
51912
51913         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
51914         Report from Ben Pfaff, regarding getopt.
51915
51916 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
51917
51918         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
51919         normal way.
51920         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
51921         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
51922         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
51923         (gl_GETOPT): Use the new macros.  Most of the implementation
51924         is moved to the new macros.  This is for programs like Emacs
51925         that don't want all the functionality of gl_GETOPT.
51926
51927 2005-07-26  Bruno Haible  <bruno@clisp.org>
51928
51929         * m4/lock.m4: Update from GNU gettext.
51930
51931 2005-07-26  Bruno Haible  <bruno@clisp.org>
51932
51933         * lib/lock.h: Update from GNU gettext.
51934         * lib/lock.c: Update from GNU gettext.
51935
51936 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
51937
51938         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
51939         obsolescent AC_TRY_RUN.  Include the default includes files, for
51940         'exit'.
51941
51942 2005-07-24  Bruno Haible  <bruno@clisp.org>
51943
51944         * modules/visibility: New file.
51945         * MODULES.html.sh (Misc): Add visibility.
51946
51947 2005-07-24  Bruno Haible  <bruno@clisp.org>
51948
51949         * m4/visibility.m4: New file.
51950
51951 2005-07-24  Bruno Haible  <bruno@clisp.org>
51952
51953         * doc/visibility.texi: New file.
51954
51955 2005-07-22  Bruno Haible  <bruno@clisp.org>
51956
51957         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
51958         $(ALLOCA_H), redundant through BUILT_SOURCES.
51959         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
51960         redundant through BUILT_SOURCES.
51961         * modules/byteswap (Makefile.am): Remove explicit dependency on
51962         $(BYTESWAP_H), redundant through BUILT_SOURCES.
51963         * modules/fnmatch (Makefile.am): Remove explicit dependency on
51964         $(FNMATCH_H), redundant through BUILT_SOURCES.
51965         * modules/getopt (Makefile.am): Remove explicit dependency on
51966         $(GETOPT_H), redundant through BUILT_SOURCES.
51967         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
51968         redundant through BUILT_SOURCES.
51969         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
51970         redundant through BUILT_SOURCES.
51971         * modules/stdbool (Makefile.am): Remove explicit dependency on
51972         $(STDBOOL_H), redundant through BUILT_SOURCES.
51973         * modules/stdint (Makefile.am): Remove explicit dependency on
51974         $(STDINT_H), redundant through BUILT_SOURCES.
51975         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
51976         Remove explicit dependency on $(SYSEXITS_H).
51977         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
51978
51979 2005-07-18  Simon Josefsson  <jas@extundo.com>
51980
51981         * lib/check-version.c (check_version): Accept identical versions too.
51982
51983 2005-07-18  Bruno Haible  <bruno@clisp.org>
51984
51985         * modules/lock: New file.
51986         * MODULES.html.sh (Multithreading): New section.
51987
51988 2005-07-18  Bruno Haible  <bruno@clisp.org>
51989
51990         * m4/lock.m4: New file, from GNU gettext.
51991
51992 2005-07-18  Bruno Haible  <bruno@clisp.org>
51993
51994         * lib/lock.h: New file, from GNU gettext.
51995         * lib/lock.c: New file, from GNU gettext.
51996
51997 2005-07-18  Bruno Haible  <bruno@clisp.org>
51998
51999         * lib/lock.h (gl_once_t): New type.
52000         (gl_once_define, gl_once): New macros.
52001         * lib/lock.c (fresh_once): New variable.
52002         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
52003         functions.
52004
52005 2005-07-16  Simon Josefsson  <jas@extundo.com>
52006
52007         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
52008         workaround, suggested by Bruno.
52009
52010 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
52011
52012         * modules/xalloc (Depends-on): Add xalloc-die.
52013         * modules/xvasprintf (Depends-on): Add xalloc-die.
52014
52015 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
52016
52017         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
52018         with a minor change.
52019
52020 2005-07-15  Bruno Haible  <bruno@clisp.org>
52021
52022         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
52023         When using lib/poll.c, define poll as rpl_poll.
52024
52025 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
52026
52027         * modules/argp (Depends-on): Remove unlocked-io.
52028
52029 2005-07-14  Derek Price  <derek@ximbiot.com>
52030
52031         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
52032         for glob symlink bug.
52033
52034 2005-07-14  Bruno Haible  <bruno@clisp.org>
52035
52036         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
52037         Instead, test for *_unlocked function declarations directly.
52038
52039 2005-07-11  Simon Josefsson  <jas@extundo.com>
52040
52041         * modules/size_max: New file.
52042
52043         * modules/xsize: Depend on size_max module for size_max.m4.
52044
52045 2005-07-11  Simon Josefsson  <jas@extundo.com>
52046
52047         * lib/size_max.h: New file.
52048
52049 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
52050
52051         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
52052         copyright symbol and the year.
52053         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
52054         (version_etc_va): Use parameterized copyright notice.
52055         Reword to conform to the current GNU coding standards.
52056
52057 2005-07-11  Karl Berry  <karl@gnu.org>
52058
52059         * doc/gnulib.texi (Quoting): new node.
52060         (Initial import): more info, from Patrice.
52061
52062 2005-07-11  Bruno Haible  <bruno@clisp.org>
52063
52064         * gnulib-tool (func_usage): Document option --avoid.
52065         (Command line options): Handle --avoid.
52066         (func_acceptable): New function.
52067         (func_modules_transitive_closure): Use it.
52068
52069 2005-07-11  Bruno Haible  <bruno@clisp.org>
52070
52071         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
52072         Reported by Jim Meyering.
52073
52074 2005-07-10  Bruno Haible  <bruno@clisp.org>
52075
52076         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
52077         Needed when size_t is smaller than 'unsigned int'.
52078         Reported by Paul Eggert.
52079
52080 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
52081
52082         * modules/argp (Depends-on): Add unlocked-io
52083
52084 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
52085
52086         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
52087         block of defines.
52088
52089 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
52090
52091         * config/srclist.txt: Comment out regcomp.c, since we have a porting
52092         fix now.
52093
52094 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
52095         and Paul Eggert  <eggert@cs.ucla.edu>
52096
52097         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
52098         in wint_t, not wchar_t.  Remove now-unnecessary cast.
52099
52100 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
52101
52102         * modules/regex (Files): Add lib/regex_internal.c,
52103         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
52104         (Depends-on): Add extensions.
52105         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
52106
52107 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
52108
52109         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
52110         pathconf.
52111         * m4/same.m4 (gl_SAME): Likewise.
52112         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
52113
52114         * m4/regex.m4: Adjust to new libc regex implementation.
52115         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
52116         all the .c and .h parts of (the new) regex.
52117         Quote the m4 stuff better.
52118         Check for RE_ICASE bug of old gnulib.
52119         Check for REG_STARTEND of recent libc.
52120         Rename local variables from jm_* to gl_*.
52121         Quote operand of "test -f".
52122         Say "recent enough" version of libc, not "version 2".
52123         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
52124         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
52125         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
52126         Remove check for btowc, isascii.
52127         Require AM_LANGINFO_CODESET.
52128
52129 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
52130
52131         * lib/regex.c, regex.h: Sync from libc.
52132         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
52133         * lib/regexec.c:
52134         New files, synced from libc, except that regex_internal.h
52135         currently has a small porting fix.
52136
52137 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
52138
52139         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
52140         regex_internal.c, regexec.c.
52141         Add regex_internal.h too, but as a comment, since the libc version
52142         is currently broken in gnulib mode.
52143
52144 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
52145
52146         Support programs like Emacs that use gnulib but not gettext.
52147         * MODULES.html.sh (Internationalization functions): Add gettext-h.
52148         * modules/gettext-h: New file.
52149         * modules/gettext (Files): Remove lib/gettext.h.
52150         (Depends-on): Add gettext-h.
52151         (Makefile.am): Remove lib_SOURCES.
52152         * modules/argmatch, modules/c-stack, modules/closeout:
52153         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
52154         * modules/execute, modules/file-type, modules/getaddrinfo:
52155         * modules/getopt, modules/human, modules/javacomp:
52156         * modules/javaexec, modules/mkdir-p, modules/obstack:
52157         * modules/openat, modules/pagealign_alloc, modules/pipe:
52158         * modules/quotearg, modules/regex, modules/rpmatch:
52159         * modules/unicodeio, modules/userspec, modules/version-etc:
52160         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
52161         * modules/xsetenv:
52162         Depend on gettext-h, not gettext.
52163
52164 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
52165
52166         * gnulib-tool (func_import): Add support for 'public domain' license.
52167         * modules/alloca, modules/atexit, modules/memmove:
52168         Now public domain, not GPL.
52169         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
52170         * modules/realloc, modules/strerror, modules/strtod:
52171         Now LGPL, not GPL.
52172
52173 2005-07-05  Bruno Haible  <bruno@clisp.org>
52174
52175         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
52176         autoconf CVS. Needed for mingw.
52177
52178 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52179
52180         Remove the dependency of the strftime module on the tzset module.
52181         * modules/strftime (Depends-on): Remove dependency on tzset.
52182
52183 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52184
52185         Remove the dependency of the strftime module on the tzset module.
52186         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
52187         gl_FUNC_TZSET_CLOBBER.
52188
52189 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52190
52191         Remove the dependency of the strftime module on the tzset module.
52192         * lib/strftime.c (my_strftime)
52193         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
52194         Copy the input structure, to work around some of the bug with
52195         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
52196         Solaris releases, you should also use the tzset module, but we won't
52197         require it as a dependency any more since we don't want LGPLed code
52198         to depend on GPLed code.
52199
52200 2005-07-02  Jim Meyering  <jim@meyering.net>
52201
52202         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
52203         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
52204         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
52205         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
52206
52207 2005-07-02  Jim Meyering  <jim@meyering.net>
52208
52209         * lib/backupfile.c (backup_args): Change a `0' to NULL.
52210
52211 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
52212
52213         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
52214         declares only 'struct timespec;' (!).
52215
52216 2005-07-01  Jim Meyering  <jim@meyering.net>
52217
52218         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
52219         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
52220         * lib/save-cwd.c, tempname.c:
52221         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
52222         and don't include <sys/file.h>).
52223
52224 2005-06-29  Jim Meyering  <jim@meyering.net>
52225
52226         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
52227         type name.  Use the variable name instead.
52228         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
52229         Likewise.
52230
52231 2005-06-28  Simon Josefsson  <jas@extundo.com>
52232
52233         * modules/check-version (Files): Add check-version.m4.
52234
52235 2005-06-28  Simon Josefsson  <jas@extundo.com>
52236
52237         * m4/check-version.m4: New file, suggested by Jim Meyering
52238         <jim@meyering.net>.
52239
52240 2005-06-28  Simon Josefsson  <jas@extundo.com>
52241
52242         * lib/check-version.h, lib/check-version.c: New files.
52243
52244 2005-06-28  Simon Josefsson  <jas@extundo.com>
52245
52246         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
52247         collision with global variable.  Better indentation.  Don't
52248         increment buffer pointer beyond buffer end.  Based on comments
52249         from Paul Eggert <eggert@cs.ucla.edu>.
52250
52251         * lib/base64.h: Indent.
52252
52253 2005-06-28  Simon Josefsson  <jas@extundo.com>
52254
52255         * doc/gnulib.texi (Library version handling): New section.
52256
52257 2005-06-28  Jim Meyering  <jim@meyering.net>
52258
52259         * check-module (find_included_lib_files): Hard-code another
52260         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
52261         but modules/fts-lgpl (correctly) does not list those files.
52262
52263         * modules/canonicalize (Files): Add lib/pathmax.h.
52264
52265 2005-06-25  Simon Josefsson  <jas@extundo.com>
52266
52267         * modules/check-version: New file.
52268
52269 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
52270
52271         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
52272         initializer of struct addrinfo, as an indication that we don't
52273         care how many members the structure has.
52274
52275 2005-06-24  Derek Price  <derek@ximbiot.com>
52276         and Bruno Haible  <bruno@clisp.org>
52277
52278         Remove stat module & update lstat.
52279         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
52280         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
52281         * m4/stat.m4: Remove this file.
52282
52283 2005-06-24  Derek Price  <derek@ximbiot.com>
52284         and Bruno Haible  <bruno@clisp.org>
52285
52286         Remove stat module & update lstat.
52287         * lib/stat.c: Remove this file...
52288         (slash_aware_lstat): ...moving this content and its support...
52289         * lib/lstat.c (rpl_lstat): ...into here.
52290         * lib/lstat.h: New file.
52291
52292 2005-06-24  Derek Price  <derek@ximbiot.com>
52293         and Bruno Haible  <bruno@clisp.org>
52294
52295         Remove stat module & update lstat.
52296         * config/srclist.txt (libc sources): Remove stat.
52297
52298 2005-06-24  Derek Price  <derek@ximbiot.com>
52299         and Bruno Haible  <bruno@clisp.org>
52300
52301         Remove stat module & update lstat.
52302         * MODULES.html.sh (stat): Remove.
52303         * MODULES.html: Regenerated.
52304         * modules/lstat (Description): Correct function name.
52305         (Files): Add "lstat.h".
52306         (Depends-on): Remove stat, add xalloc, stat-macros.
52307         * modules/stat: Remove this file.
52308         (Include): Add "lstat.h", remove <sys/stat.h>.
52309
52310 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
52311
52312         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
52313         (ranged_convert): Don't save conversion in a temporary struct.
52314         This causes a warning with GCC 4.0.0, and anyway in the typical
52315         case it's not worth the extra 100 bytes or so of code.
52316         (ranged_convert, __mktime_internal): When calling a function via a
52317         pointer P, use P () rather than (*P) (), as we now assume C89 or
52318         better.
52319
52320 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
52321
52322         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
52323         "who -r" failed to give output.  Problem reported by Tim Waugh.
52324
52325         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
52326         (xcalloc): Use it to avoid needless tests.
52327         Problem reported by Jim Meyering.
52328
52329 2005-06-20  Derek Price  <derek@ximbiot.com>
52330
52331         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
52332         unnecessary for Autoconfs > 2.59c.
52333
52334 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52335
52336         * lib/argp.h (__option_is_short): Check upper limit of
52337         __key. Isprint() requires its argument to have the value
52338         of an unsigned char or EOF.
52339
52340 2005-06-16  Jim Meyering  <jim@meyering.net>
52341
52342         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
52343         when either N or S is zero.
52344
52345 2005-06-16  Derek Price  <derek@ximbiot.com>
52346
52347         * m4/bison.m4: Declare YACC & YFLAGS precious.
52348
52349 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
52350
52351         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
52352         multibyte string or pattern, fall back on unibyte matching.
52353         Problem reported by James Youngman.
52354
52355 2005-06-08  Bruno Haible  <bruno@clisp.org>
52356
52357         * modules/csharpcomp: New file.
52358         * MODULES.html.sh (C#): Add csharpcomp.
52359
52360 2005-06-08  Bruno Haible  <bruno@clisp.org>
52361
52362         * m4/csharpcomp.m4: New file, from GNU gettext.
52363
52364 2005-06-08  Bruno Haible  <bruno@clisp.org>
52365
52366         * lib/csharpcomp.h: New file, from GNU gettext.
52367         * lib/csharpcomp.c: New file, from GNU gettext.
52368         * lib/csharpcomp.sh.in: New file, from GNU gettext.
52369
52370 2005-06-08  Bruno Haible  <bruno@clisp.org>
52371
52372         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
52373         warning on mingw.
52374
52375 2005-06-07  Derek Price  <derek@ximbiot.com>
52376
52377         Sync from CVS.
52378         * lib/glob_.h: Indent nested #ifdef.
52379
52380 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
52381
52382         Sync from coreutils.
52383         Use "file name" when talking about file names, instead of "filename"
52384         or "path", as per the GNU coding standards.
52385         * lib/mkdir-p.c: Renamed from makepath.c.
52386         (make_dir_parents): Renamed from make_path.  All callers changed.
52387         * lib/mkdir-p.h: Likewise.  All includers changed.
52388         * lib/filenamecat.c: Renamed from path-concat.c.
52389         (file_name_concat): Renamed from path_concat.  All callers changed.
52390         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
52391         * lib/filenamecat.h: Likewise.  All includers changed.
52392         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
52393         in comments or local variable names.
52394         * lib/basename.c: Likewise.
52395         * lib/canonicalize.c, canonicalize.h: Likewise.
52396         * lib/dirname.c, dirname.h: Likewise.
52397         * lib/euidaccess.c: Likewise.
52398         * lib/exclude.c: Likewise
52399         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
52400         * lib/fsusage.c, fsuage.h: Likewise.
52401         * lib/fts.c, fts_.h: Likewise.
52402         * lib/getcwd.c: Likewise.
52403         * lib/getloadavg.c: Likewise.
52404         * lib/mkstemp.c: Likewise.
52405         * lib/mountlist.c, mountlist.h: Likewise.
52406         * lib/openat.c, openat.h: Likewise.
52407         * lib/readlink-stub.c: Likewise.
52408         * lib/readutmp.c, readutmp.h: Likewise.
52409         * lib/rename.c: Likewise.
52410         * lib/rmdir.c: Likewise.
52411         * lib/same.c: Likewise.
52412         * lib/savedir.c: Likewise.
52413         * lib/stripslash.c: Likewise.
52414         * lib/tempname.c: Likewise.
52415         * lib/xreadlink.c: Likewise.
52416         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
52417         All uses changed.
52418         * lib/exclude.h: Likewise.
52419
52420         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
52421         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
52422         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
52423         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
52424         * lib/pathmax.h: Include <limits.h> unconditionally, since other
52425         files have been getting away with it for years (MORE/BSD 4.3
52426         is extinct now).
52427         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
52428         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
52429
52430         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
52431         Define to 256, not 255, as per modern POSIX.
52432
52433 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
52434
52435         Sync from coreutils.
52436         Use "file name" when talking about file names, instead of "filename"
52437         or "path", as per the GNU coding standards.
52438         * MODULES.html.sh: mkdir-p renamed from makepath.
52439         filenamecat renamed from path-concat.
52440         * modules/filenamecat: Renamed from modules/path-concat.
52441         (Files): filenamecat.h and filenamecat.c renamed from
52442         path-concat.h and path-concat.c.
52443         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
52444         (Include): filenamecat.h, not path-concat.h.
52445         * modules/mkdir-p: Renamed from modules/makepath.
52446         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
52447         makepath.c.
52448         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
52449         (Include): mkdir-p.h, not makepath.h.
52450
52451 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
52452
52453         Sync from coreutils.
52454         * m4/mkdir-p.m4: Renamed from makepath.m4.
52455         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
52456         Rename files from makepath.c to mkdir-p.c, and from
52457         makepath.h to mkdir-p.h.
52458         * m4/filenamecat.m4: Renamed from path-concat.m4.
52459         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
52460         Rename files from path-concat.c to filenamecat.c,
52461         and from path-concat.h to filenamecat.h.
52462         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
52463         "file name" in local variables or comments.
52464         * m4/rename.m4: Likewise.
52465
52466 2005-06-01  Bruno Haible  <bruno@clisp.org>
52467
52468         * modules/csharpexec: New file.
52469         * MODULES.html.sh (C#): New section.
52470
52471 2005-06-01  Bruno Haible  <bruno@clisp.org>
52472
52473         * m4/csharp.m4: New file, from GNU gettext.
52474         * m4/csharpexec.m4: New file, from GNU gettext.
52475
52476 2005-06-01  Bruno Haible  <bruno@clisp.org>
52477
52478         * lib/csharpexec.h: New file, from GNU gettext.
52479         * lib/csharpexec.c: New file, from GNU gettext.
52480         * lib/csharpexec.sh.in: New file, from GNU gettext.
52481
52482 2005-05-31  Derek Price  <derek@ximbiot.com>
52483             Paul Eggert  <eggert@cs.ucla.edu>
52484
52485         Sync from cvs.
52486         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
52487
52488 2005-05-31  Derek Price  <derek@ximbiot.com>
52489             Paul Eggert  <eggert@cs.ucla.edu>
52490
52491         Sync from cvs.
52492         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
52493
52494 2005-05-29  Derek Price  <derek@ximbiot.com>
52495
52496         * config/srclist.txt (glob_.h, glob.c): Add these files.
52497
52498 2005-05-29  Derek Price  <derek@ximbiot.com>
52499
52500         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
52501         * modules/glob: New file.
52502         * modules/getlogin_r: Add link to POSIX spec in description.
52503
52504 2005-05-29  Derek Price  <derek@ximbiot.com>
52505             Paul Eggert  <eggert@cs.ucla.edu>
52506
52507         * m4/glob.m4: New file.
52508
52509 2005-05-29  Derek Price  <derek@ximbiot.com>
52510             Paul Eggert  <eggert@cs.ucla.edu>
52511
52512         * lib/glob_.h, lib/glob.c: New files.
52513
52514 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
52515
52516         * modules/fts (Files): Remove m4/inttypes-pri.m4.
52517         * modules/fts-lgpl (Depends-on): Remove gettext.
52518
52519 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
52520
52521         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
52522         and don't require gt_INTTYPES_PRI.
52523
52524 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
52525
52526         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
52527
52528         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
52529         the configuration hassle isn't worth it.
52530         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
52531         (LONGEST_MODIFIER, PRIuMAX): Remove.
52532
52533 2005-05-27  Bruno Haible  <bruno@clisp.org>
52534
52535         * lib/getlogin_r.h: Remove second include of <stddef.h>.
52536
52537 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
52538
52539         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
52540         _POSIX_PTHREAD_SEMANTICS for Solaris.
52541
52542 2005-05-25  Derek Price  <derek@ximbiot.com>
52543
52544         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
52545
52546 2005-05-25  Derek Price  <derek@ximbiot.com>
52547             Paul Eggert  <eggert@cs.ucla.edu>
52548
52549         * modules/getlogin_r, m4/getlogin_r.m4: New files.
52550         * lib/getlogin_r.c, getlogin_r.h: New files.
52551
52552 2005-05-25  Bruno Haible  <bruno@clisp.org>
52553             Derek Price  <derek@ximbiot.com>
52554
52555         * lib/getlogin_r.h: Simplify API documentation.
52556
52557 2005-05-23  Derek Price  <derek@ximbiot.com>
52558
52559         * modules/minmax (Files): Add m4/minmax.m4.
52560         (configure.ac): Add gl_MINMAX.
52561
52562 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
52563
52564         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
52565         so that unistd-safer.h (GPL'ed code) need not be included.
52566
52567 2005-05-22  Bruno Haible  <bruno@clisp.org>
52568
52569         * m4/minmax.m4: New file.
52570         Based on a patch by Derek Price <derek@ximbiot.com>.
52571
52572 2005-05-22  Bruno Haible  <bruno@clisp.org>
52573
52574         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
52575         (INT64_MIN): Fix definition.
52576         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
52577
52578         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
52579         NEED_SIGNED_INT_TYPES.
52580
52581         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
52582         HAVE_SYSTEM_INTTYPES.
52583
52584 2005-05-22  Bruno Haible  <bruno@clisp.org>
52585
52586         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
52587         Also include <sys/param.h> if it defines MIN, MAX.
52588         Based on a patch by Derek Price <derek@ximbiot.com>.
52589
52590 2005-05-21  Jim Meyering  <jim@meyering.net>
52591
52592         * modules/fts (Files): Add m4/inttypes-pri.m4.
52593         (Depends-on): Add lstat and remove gettext.  Alphabetize.
52594
52595 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52596
52597         New fts module.
52598         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
52599         (setup_dir, free_dir): New functions.
52600         (enter_dir, leave_dir): Define trivial
52601         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
52602         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
52603         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
52604         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
52605         Move to fts-cycle.c.
52606         (fts_open): Use setup_dir.
52607         (fts_close): Use free_dir.
52608         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
52609         This adds a label and some gotos, but the alternatives were messier.
52610         Check for memory allocation failure when entering a dir.
52611         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
52612         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
52613         (FTS): New member fts_cycle, that is a union that contains the
52614         old active_dir_ht and cycle_state.  All uses changed to mention
52615         fts_cycle.ht and fts_cycle.state.
52616         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
52617         fts.c, with the following changes:
52618         (setup_dir, free_dir): New functions.
52619         (enter_dir): Now returns bool.  Return true if successful, false
52620         if memory exhausted.  All callers changed.
52621         Do not bother partly cleaning up on
52622         memory allocation failure; that is free_dir's job.
52623         However, free ad if hash_insert fails, to avoid memory leak.
52624         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
52625         fts->fts_options to see which union member to use.
52626
52627 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52628
52629         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
52630         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
52631
52632 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52633
52634         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
52635
52636 2005-05-20  Jim Meyering  <jim@meyering.net>
52637
52638         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
52639         Now a macro, to pacify GCC.
52640
52641 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
52642
52643         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
52644         of -1.
52645
52646 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
52647
52648         * lib/chown.c (rpl_chown): Return -1 on failure.
52649
52650 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
52651
52652         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
52653         Don't check for stddef.h.
52654         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
52655         don't use its results.
52656         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
52657         since we include them unconditionally.  Don't require
52658         AM_STDBOOL_H, since stdbool is a prerequisite.
52659         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
52660         since we assume C89 or better.
52661         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
52662         as we don't use their results.
52663         Don't check for fchdir, memmove, memset, strrchr, as we use
52664         them unconditionally.
52665         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
52666         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
52667
52668 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
52669
52670         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
52671         Include <stddef.h> unconditionally, since we assume C89 now.
52672         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
52673         * lib/fts.c: Include fts_.h first, to check interface.
52674         Do not include intprops.h; no longer needed.
52675         Include cycle-check.h and hash.h, since fts_.h no longer does.
52676         Remove unnecessary casts of closedir to void.
52677         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
52678         decide whether to decrement nlinks.
52679         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
52680         (FTS): Use struct hash_table * instead of Hash_table, so that
52681         we no longer need to include hash.h here.
52682
52683 2005-05-18  Jim Meyering  <jim@meyering.net>
52684
52685         * modules/dirfd (License): Change to LGPL.  Most of the code
52686         is already in the public domain.
52687
52688 2005-05-18  Jim Meyering  <jim@meyering.net>
52689
52690         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
52691         Reported by Yoann Vandoorselaere.
52692
52693 2005-05-17  Jim Meyering  <jim@meyering.net>
52694
52695         * m4/fts.m4: New file, from coreutils.
52696
52697 2005-05-17  Jim Meyering  <jim@meyering.net>
52698
52699         * lib/fts.c, lib/fts_.h: New files, from coreutils.
52700
52701 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
52702
52703         Sync from coreutils.
52704         * m4/unlinkdir.m4: New file.
52705
52706 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
52707
52708         Sync from coreutils.
52709         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
52710         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
52711         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
52712         White space changes only.
52713         * lib/makepath.c (make_path): Port to hosts where leading "//" is
52714         special.
52715         * lib/yesno.c: Include getline.h, not ctype.h.
52716         (yesno): Don't remove leading white space; POSIX doesn't allow it.
52717         Use getline to remove arbitrary restriction on response length.
52718
52719 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
52720
52721         * config/srclist-update: Spell out "Street" in FSF postal
52722         mail address; this is the style the FSF seems to prefer.
52723
52724         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
52725         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
52726         this updates FSF postal mail address.
52727
52728         Sync from coreutils.
52729         * modules/unlinkdir: New file.
52730         * modules/yesno (Depends-on): Add getline.
52731         * MODULES.html.sh (File system functions): Add unlinkdir.
52732
52733 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
52734
52735         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
52736         lib/strsep.h:
52737         Change the initial comment to refer to GPL, not LGPL.
52738         gnulib-tool will change it to LGPL as needed.
52739
52740         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
52741         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
52742         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
52743         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
52744         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
52745         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
52746         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
52747         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
52748         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
52749         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
52750         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
52751         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
52752         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
52753         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
52754         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
52755         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
52756         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
52757         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
52758         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
52759         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
52760         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
52761         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
52762         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
52763         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
52764         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
52765         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
52766         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
52767         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
52768         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
52769         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
52770         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
52771         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
52772         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
52773         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
52774         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
52775         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
52776         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
52777         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
52778         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
52779         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
52780         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
52781         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
52782         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
52783         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
52784         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
52785         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
52786         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
52787         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
52788         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
52789         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
52790         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
52791         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
52792         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
52793         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
52794         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
52795         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
52796         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
52797         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
52798         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
52799         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
52800         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
52801         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
52802         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
52803         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
52804         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
52805         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
52806         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
52807         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
52808         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
52809         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
52810         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
52811         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
52812         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
52813         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
52814         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
52815         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
52816         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
52817         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
52818         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
52819         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
52820         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
52821         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
52822         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
52823         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
52824         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
52825         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
52826         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
52827         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
52828         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
52829         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
52830         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
52831         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
52832         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
52833         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
52834         lib/yesno.c, lib/yesno.h:
52835         Update FSF postal mail address.
52836
52837 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
52838
52839         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
52840         tests/test-memmem.c, tests/test-stpncpy.c:
52841         Update FSF postal mail address.
52842
52843 2005-05-13  Bruno Haible  <bruno@clisp.org>
52844
52845         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
52846         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
52847         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
52848         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
52849         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
52850         Add support for 64-bit integers in the MSVC compiler.
52851
52852 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52853
52854         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
52855
52856 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
52857
52858         * gnulib-tool (func_import): Sort and uniquify recommended includes.
52859
52860 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
52861
52862         * doc/getdate.texi (General date syntax): Don't say that date
52863         date --iso-8601=ns generates acceptable dates; it doesn't yet.
52864         Problem reported by Nic Ferrier.
52865
52866 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52867
52868         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
52869         specified in ai_socktype. Fix invalid ai_protocol
52870         check. ai_protocol is usually set to 0 or depending on
52871         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
52872         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
52873         ai_socktype / ai_protocol in the returned addrinfo structure.
52874
52875 2005-05-10  Simon Josefsson  <jas@extundo.com>
52876
52877         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
52878         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52879
52880 2005-05-10  Karl Berry  <karl@gnu.org>
52881
52882         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
52883         (from http://www.gnu.org/licenses).
52884         * doc/COPYING.LIB: also rename to COPYING.LESSER.
52885         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
52886         fdl.texi suffices.
52887
52888 2005-05-10  Karl Berry  <karl@gnu.org>
52889
52890         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
52891         (COPYING.DOC): remove.
52892
52893         * config/srclist-update: new FSF address.
52894
52895 2005-05-10  Derek Price  <derek@ximbiot.com>
52896
52897         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
52898         possible.
52899
52900 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52901             Bruno Haible  <bruno@clisp.org>
52902
52903         * modules/inet_ntop: New file.
52904         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52905         inet_ntop.
52906
52907 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52908             Bruno Haible  <bruno@clisp.org>
52909
52910         * m4/inet_ntop.m4: New file.
52911
52912 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52913             Bruno Haible  <bruno@clisp.org>
52914
52915         * lib/inet_ntop.h: New file.
52916         * lib/inet_ntop.c: New file, from glibc with modifications.
52917
52918 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
52919
52920         * modules/time_r (License): Change to LGPL.
52921         * modules/extensions (License): Change to LGPL.  Actually,
52922         the license is more permissive than that, but currently gnulib-tool
52923         doesn't know how to handle more-permissive licenses.
52924
52925         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
52926         Problem reported by Dave Love.
52927
52928 2005-05-08  Jim Meyering  <jim@meyering.net>
52929
52930         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
52931         blank.
52932
52933 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
52934
52935         * modules/argmatch (Depends-on): Add stdbool.
52936         * modules/backupfile (Depends-on): Likewise.
52937         * modules/chdir-long (Depends-on): Likewise.
52938         * modules/closeout (Depends-on): Likewise.
52939         * modules/cycle-check (Depends-on): Likewise.
52940         * modules/dirname (Depends-on): Likewise.
52941         * modules/fnmatch (Depends-on): Likewise.
52942         * modules/fsusage (Depends-on): Likewise.
52943         * modules/fwriteerror (Depends-on): Likewise.
52944         * modules/getcwd (Depends-on): Likewise.
52945         * modules/getloadavg (Depends-on): Likewise.
52946         * modules/hard-locale (Depends-on): Likewise.
52947         * modules/makepath (Depends-on): Likewise.
52948         * modules/mountlist (Depends-on): Likewise.
52949         * modules/nanosleep (Depends-on): Likewise.
52950         * modules/posixtm (Depends-on): Likewise.
52951         * modules/quotearg (Depends-on): Likewise.
52952         * modules/readtokens (Depends-on): Likewise.
52953         * modules/readtokens0 (Depends-on): Likewise.
52954         * modules/readutmp (Depends-on): Likewise.
52955         * modules/save-cwd (Depends-on): Likewise.
52956         * modules/strftime (Depends-on): Likewise.
52957         * modules/userspec (Depends-on): Likewise.
52958         * modules/utimecmp (Depends-on): Likewise.
52959         * modules/xgetcwd (Depends-on): Likewise.
52960         * modules/xnanosleep (Depends-on): Likewise.
52961         * modules/xstrtod (Depends-on): Likewise.
52962         * modules/yesno (Depends-on): Likewise.
52963
52964 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
52965
52966         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
52967         needless checks.
52968
52969 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52970
52971         Merge from coreutils.  Among other things,
52972         add bulletproofing for cases where stdin, stdout, or stderr are closed.
52973         * lib/fd-safer.c: New file.
52974         * lib/fcntl-safer.h, open-safer.c: Remove.
52975         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
52976         * lib/dup-safer.c: Include unistd-safer.h first.
52977         Don't include errno.h.
52978         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
52979         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
52980         * lib/file-type.c: Rely on file-type.h change.
52981         * lib/getloadavg.c: Include unistd-safer.h.
52982         (getloadavg): Use safer open.
52983         * lib/getusershell.c: Include "stdio-safer.h".
52984         (getusershell): Use safer fopen.
52985         * lib/long-options.c (long_options): Use NULL rather than 0.
52986         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
52987         'free'.
52988         * lib/modechange.c: Likewise.
52989         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
52990         (MODE_DONE): New constant.
52991         (struct mode_change): Remove 'next' member.
52992         (make_node_op_equals): New function; like the old one of the
52993         same name, except it allocates an array.
52994         (mode_compile, mode_create_from_ref): Use it.
52995         (mode_compile): Allocate result as an array, not a linked list.
52996         Parse octal string ourself, so that we catch mistakes like "+0".
52997         (mode_adjust): Arg is an array, not a linked list.
52998         * lib/modechange.c: Include stat-macros.h, xalloc.h.
52999         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
53000         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
53001         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
53002         Remove.  This is now stat-macros.h's job.
53003         (talloc): Remove.  All callers replaced by xalloc, so that
53004         our invokers don't have to worry about reporting memory failures.
53005         (make_node_op_equals): Remove.
53006         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
53007         New constants.
53008         (struct mode_change): Moved here from modechange.h.
53009         (mode_append_entry): Remove.
53010         (mode_compile): Remove MASKED_OPS arg, since it encouraged
53011         apps to have incorrect behavior.  Use simpler algorithm for head
53012         and tail.  Don't futz with umask; that's now the job of mode_adjust.
53013         Detect more invalid usages rather than having somewhat-random behavior.
53014         Don't insert an "a=" action, as that leads to incorrect behavior.
53015         (mode_compile, mode_create_from_ref): Return NULL on error instead
53016         of an enum, since now there's only one way to have an error.  All
53017         callers changed.
53018         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
53019         at the correct time.  Simplify calculation of "+u" and its ilk.
53020         Don't mishandle "+X".
53021         (mode_free): Remove "register" and localize decls.
53022         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
53023         (struct mode_change): Move to modechange.c; callers don't
53024         need to see this stuff.
53025         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
53026         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
53027         (mode_change, mode_adjust): Reflect the new signatures noted above.
53028         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
53029         that might redefine system include files.
53030         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
53031         (my_usleep): Use NULL rather than (void *) 0.
53032         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
53033         Use siginterrupt to specify that system calls should be interrupted.
53034         (rpl_nanosleep): Move initialization of suspended closer to call of
53035         my_usleep.
53036         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
53037         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
53038         (desirable_utmp_entry): New function.
53039         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
53040         using x2nrealloc, to simplify logic.
53041         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
53042         size calculation.  Do not assume utmp file is a regular file.
53043         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
53044         (READ_UTMP_CHECK_PIDS): New constant.
53045         * lib/save-cwd.c: Include unistd-safer.h.
53046         (save_cwd): Use fd_safer.
53047         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
53048         [!_LIBC] Include "stat-macros.h" instead.
53049         * lib/unistd-safer.h (fd_safer): New decl.
53050
53051 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
53052
53053         * modules/getloadavg (Depends-on): Add unistd-safer.
53054         * modules/getusershell (Depends-on): Add stdio-safer.
53055         * modules/lstat (Depends-on): Remove xalloc.
53056         * modules/mkstemp (Depends-on): Add stat-macros.
53057         * modules/modechange (Depends-on): Remove xstrtol.
53058         Add stat-macros, xalloc.
53059         * modules/save-cwd (Depends-on): Add unistd-safer.
53060         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
53061         * modules/unistd-safer (Files): Add lib/fd-safer.c
53062         (Makefile.am): Remove lib_SOURCES.
53063
53064         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
53065         Remove fcntl-safer; unistd-safer supersedes it.
53066
53067 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
53068
53069         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
53070         AC_HEADER_STAT.
53071         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
53072         (gl_PREREQ_CHOWN): Remove.
53073         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
53074         it.  Don't require AC_HEADER_STAT.
53075         (gl_PREREQ_LSTAT): Remove.
53076         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
53077         Don't require AC_HEADER_STAT.
53078         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
53079         (gl_PREREQ_RMDIR): Remove.
53080         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
53081         mention stat-macros.h or AC_HEADER_STAT, since we'll make
53082         the stat-macros module a prerequisite.
53083         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
53084         * m4/filemode.m4 (gl_FILEMODE): Likewise.
53085         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
53086         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
53087         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
53088         variable names.
53089         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
53090         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
53091         variable prefixes.
53092         * m4/fcntl-safer.m4: Remove.
53093         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
53094         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
53095         Invoke gl_PREREQ_FD_SAFER.
53096         (gl_PREREQ_FD_SAFER): New macro.
53097         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
53098         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
53099         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
53100         Remove duplicate call to AC_LIBOBJ(readutmp).
53101         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
53102
53103         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
53104         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
53105
53106 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
53107
53108         * MODULES.html.sh (Misc): Add byteswap.
53109
53110 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
53111
53112         * modules/getcwd (Depends-on): Add extensions.
53113         * modules/openat (Depends-on): Likewise.
53114
53115 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
53116
53117         * modules/byteswap: New file.
53118
53119 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
53120
53121         * m4/byteswap.m4: New file.
53122
53123 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
53124
53125         * lib/byteswap_.h: New file.
53126
53127 2005-04-25  Karl Berry  <karl@gnu.org>
53128
53129         * m4/gettext.m4: Update from GNU gettext 0.14.4.
53130
53131 2005-04-25  Albert Chin  <china@thewrittenword.com>
53132
53133         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
53134         Toolkit C bug.
53135
53136 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
53137
53138         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
53139         (func_ln_if_changed) Remove forcibly for no error message
53140         in case file does not exist.
53141
53142 2005-04-19  Simon Josefsson  <jas@extundo.com>
53143
53144         * gnulib-tool (Options): Make --symlink mean --symbolic.
53145
53146 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
53147
53148         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
53149
53150 2005-04-16  Simon Josefsson  <jas@extundo.com>
53151
53152         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
53153
53154 2005-04-15  Simon Josefsson  <jas@extundo.com>
53155
53156         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
53157
53158 2005-04-15  Simon Josefsson  <jas@extundo.com>
53159
53160         * gnulib-tool: Rename --symlink to --symbolic.
53161
53162 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
53163
53164         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
53165         symbolic links to files instead of copying/moving.  Add --aux-dir,
53166         specifying directory relative --dir where auxiliary build tools
53167         are placed.
53168
53169 2005-04-14  Bruno Haible  <bruno@clisp.org>
53170
53171         * modules/allocsa (License): Change to LGPL.
53172         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53173
53174 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
53175
53176         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
53177         that "UTC +1 second" continues to work.  Problem reported
53178         by Dmitry V. Levin.
53179         (relunit_snumber): New rule.
53180         (relunit): Use it.
53181
53182 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
53183
53184         * lib/getdate.y (universal_time_zone_table): New constant.
53185         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
53186         universal_time_zone_table.
53187         (lookup_zone): Prefer universal_time_zone_table to
53188         local_time_zone_table, so that "GMT" time stamps are allowed in
53189         London during the summer.  Problem reported by Ian Abbott.
53190
53191 2005-04-12  Jim Meyering  <jim@meyering.net>
53192
53193         * lib/human.c (humblock): Set *options even when returning due to
53194         xstrtoumax conversion failure.  Thanks to a used-uninitialized
53195         warning from gcc-4.
53196
53197 2005-04-09  Jim Meyering  <jim@meyering.net>
53198
53199         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
53200         -Wuninitialized: initialize tm0.tm_year.
53201
53202 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
53203
53204         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
53205         count, since there's no maximum.  All uses changed.
53206         Add member dsts_seen.
53207         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
53208         not being INT_MAX.
53209         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
53210         Use pc_rels_seen to decide whther a date is absolute.
53211
53212         * lib/getdate.y (number): Don't overwrite year.
53213         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
53214         check.
53215
53216 2005-04-02  Simon Josefsson  <jas@extundo.com>
53217
53218         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
53219         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
53220
53221 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
53222
53223         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
53224         where no absolute path name can be longer than PATH_MAX.
53225
53226 2005-03-27  Jim Meyering  <jim@meyering.net>
53227
53228         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
53229
53230 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
53231
53232         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
53233         "one's complement" -> "ones' complement" in comment, as per Knuth.
53234         "value of type" -> "type or expression" in comment.
53235         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
53236
53237 2005-03-26  Jim Meyering  <jim@meyering.net>
53238
53239         Comment nits.
53240         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
53241         Correct typos: s/or/of/.
53242
53243 2005-03-26  Jim Meyering  <jim@meyering.net>
53244
53245         * modules/check-include-files: Move to ../ and rename to...
53246         * check-module: ...this.
53247
53248 2005-03-25  Jim Meyering  <jim@meyering.net>
53249
53250         * modules/xvasprintf (Files): Add xalloc.h.
53251
53252 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
53253
53254         * modules/gettext (Files): config/config.rpath ->
53255         build-aux/config.rpath
53256         * modules/iconv (Files): Likewise.
53257         Problem reported by Oskar Liljeblad.
53258
53259 2005-03-23  Jim Meyering  <jim@meyering.net>
53260
53261         * modules/check-include-files: New script to check for
53262         missing dependencies, multiple includes, etc.
53263
53264         * modules/c-strtold (Depends-on): Add xalloc.
53265         * modules/c-strtod (Depends-on): Add xalloc.
53266         * modules/hash (Depends-on): Add xalloc.
53267         (Files): Remove lib/xalloc.h.
53268
53269         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
53270         * modules/userspec (Files): Add lib/inttostr.h.
53271
53272 2005-03-23  Jim Meyering  <jim@meyering.net>
53273
53274         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
53275
53276 2005-03-22  Jim Meyering  <jim@meyering.net>
53277
53278         * modules/stat-macros: New module.
53279         * modules/canonicalize, modules/euidaccess, modules/file-type,
53280         * modules/filemode, modules/lchown, modules/makepath,
53281         * modules/rmdir, modules/stat: Depend on new stat-macros module
53282         rather than listing lib/stat-macros.h manually.
53283         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
53284
53285 2005-03-22  Jim Meyering  <jim@meyering.net>
53286
53287         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
53288
53289 2005-03-22  Bruno Haible  <bruno@clisp.org>
53290
53291         * config/srclist.txt: Replace target directory 'config' with
53292         'build-aux'.
53293         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
53294         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
53295         ../build-aux/.
53296
53297 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
53298
53299         * modules/chdir-long (Depends-on): Add mempcpy.
53300
53301         * modules/acl, modules/backupfile, modules/c-strtod,
53302         modules/c-strtold, modules/canon-host, modules/canonicalize,
53303         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
53304         modules/exclude, modules/exitfail, modules/file-type,
53305         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
53306         modules/getdate, modules/getline, modules/getpagesize,
53307         modules/getpass, modules/getugroups, modules/group-member,
53308         modules/hard-locale, modules/hash, modules/human, modules/idcache,
53309         modules/inttostr, modules/long-options, modules/makepath,
53310         modules/md5, modules/memcasecmp, modules/memcoll,
53311         modules/modechange, modules/mountlist, modules/path-concat,
53312         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
53313         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
53314         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
53315         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
53316         modules/strftime, modules/strndup, modules/strverscmp,
53317         modules/timespec, modules/unlocked-io, modules/userspec,
53318         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
53319         modules/yesno:
53320         Remove lib_SOURCES line from Makefile.am section, as this is now
53321         done automatically by the corresponding Autoconf macro.
53322
53323 2005-03-21  Jim Meyering  <jim@meyering.net>
53324
53325         Changes imported from coreutils.
53326
53327         * lib/cycle-check.c: Don't include xalloc.h.
53328
53329         * lib/path-concat.c: Don't include assert.h.
53330         (path_concat): Remove assertion that would have triggered
53331         for ABASE starting with more than one slash.
53332         Reported by Andreas Schwab.
53333
53334         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
53335         properly when ABASE is an absolute file name.
53336         Correct the description of this function.
53337         Include <assert.h>.
53338         Add an assertion and a test driver.
53339         This fixes a bug introduced on 2004-07-02.
53340         Andreas Schwab reported the resulting failure of cp --parents:
53341         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
53342
53343 2005-03-21  Jim Meyering  <jim@meyering.net>
53344
53345         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
53346         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
53347
53348 2005-03-21  Jim Meyering  <jim@meyering.net>
53349         and  Paul Eggert  <eggert@cs.ucla.edu>
53350
53351         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
53352         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
53353         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
53354         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
53355         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
53356         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
53357         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
53358         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
53359         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
53360         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
53361         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
53362         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
53363         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
53364         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
53365         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
53366         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
53367         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
53368         for these modules.
53369
53370 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
53371
53372         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
53373         (which shouldn't happen), generate nothing instead of returning 0
53374         immediately, so that nstrftime (NULL, ...) doesn't return 0.
53375
53376 2005-03-16  Bruno Haible  <bruno@clisp.org>
53377
53378         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
53379         HAVE_LONGLONG_64BIT.
53380
53381 2005-03-16  Bruno Haible  <bruno@clisp.org>
53382
53383         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
53384         HAVE_LONGLONG_64BIT.
53385
53386 2005-03-16  Bruno Haible  <bruno@clisp.org>
53387
53388         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
53389         HAVE_LONGLONG_64BIT.
53390
53391 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
53392
53393         * lib/strftime.c (my_strftime): Prepend space to format so that we can
53394         reliably distinguish strftime failure from empty output on POSIX
53395         hosts.
53396
53397 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
53398
53399         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
53400         (iconv_string): Don't guess a size-zero buffer, as that might cause
53401         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
53402         result would be 'too large', where 'too large' is (heuristically)
53403         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
53404         overflow concerns.  This will prevent some unwanted malloc failures
53405         when the inputs are very large.
53406
53407 2005-03-15  Karl Berry  <karl@gnu.org>
53408
53409         * config/srclist.txt (config.rpath): from gettext.
53410         * config/config.rpath: update.
53411
53412 2005-03-15  Bruno Haible  <bruno@clisp.org>
53413
53414         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
53415         to 'negate'.
53416
53417         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
53418         variable.
53419
53420         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
53421         results.
53422
53423 2005-03-14  Simon Josefsson  <jas@extundo.com>
53424
53425         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
53426         <fx@gnu.org>.
53427
53428 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
53429
53430         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
53431         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
53432         intprops.h.
53433         * lib/strtol.c: Likewise.
53434
53435 2005-03-14  Jim Meyering  <jim@meyering.net>
53436
53437         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
53438         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
53439         to be nonzero so that we (and caller) can detect the difference
53440         between a valid zero-length expansion and an error return, even
53441         when the underlying strftime fails before writing anything into
53442         that location.
53443
53444 2005-03-14  Bruno Haible  <bruno@clisp.org>
53445
53446         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
53447         Update from GNU gettext 0.14.3.
53448
53449 2005-03-10  Jim Meyering  <jim@meyering.net>
53450
53451         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
53452
53453 2005-03-10  Jim Meyering  <jim@meyering.net>
53454
53455         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
53456         so that this module works on systems without fchdir.
53457
53458 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
53459
53460         Factor int-properties macros into a single file, except for
53461         glibc-related files.
53462         * lib/intprops.h: New file.
53463         * lib/getloadavg.c: Include it instead of limits.h.
53464         (INT_STRLEN_BOUND): Remove.
53465         * lib/human.c: Include intprops.h.
53466         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
53467         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
53468         302/1000.
53469         * lib/inttostr.h: Include intprops.h instead of limits.h.
53470         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
53471         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
53472         for consistency with intprops.h.
53473         (time_t_is_integer, twos_complement_arithmetic): Use them.
53474         * lib/sig2str.h: Include <signal.h>, intprops.h.
53475         (INT_STRLEN_BOUND): Remove.
53476         * lib/strftime.c (TYPE_SIGNED): Remove.
53477         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
53478         * lib/strtol.c: Adjust comments to match intprops.h.
53479         * lib/userspec.c: Include intprops.h.
53480         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
53481         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
53482         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
53483         instead of rolling our own expressions.
53484         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
53485
53486         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
53487         instead of int.
53488         (my_strftime): Do not mishandle years close to INT_MAX, by doing
53489         the right thing even if adding 1900 would overflow.  Similarly
53490         for tm_mon + 1 and tm_yday + 1.
53491         Make %Y always equivalent to %C%y, and similarly for %G and %g.
53492         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
53493         (DO_SIGNED_NUMBER): New macro.
53494         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
53495
53496 2005-03-07  Bruno Haible  <bruno@clisp.org>
53497
53498         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
53499
53500 2005-03-07  Bruno Haible  <bruno@clisp.org>
53501
53502         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
53503
53504 2005-03-04  Derek R. Price  <derek@ximbiot.com>
53505
53506         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
53507         (func_import): Only replace files via --import when they have actually
53508         changed.
53509
53510 2005-03-03  Derek R. Price  <derek@ximbiot.com>
53511
53512         * m4/mmap-anon.m4: New file.
53513         * m4/pagealign_alloc.m4: New file.
53514
53515 2005-03-03  Derek R. Price  <derek@ximbiot.com>
53516             Bruno Haible  <bruno@clisp.org>
53517
53518         * modules/pagealign_alloc: New file.
53519         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
53520
53521 2005-03-03  Derek R. Price  <derek@ximbiot.com>
53522             Bruno Haible  <bruno@clisp.org>
53523
53524         * lib/pagealign_alloc.h: New file.
53525         * lib/pagealign_alloc.c: New file.
53526
53527 2005-03-03  Bruno Haible  <bruno@clisp.org>
53528
53529         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
53530         Use an all-permissive copyright notice, recommended by RMS.
53531
53532 2005-03-02  Bruno Haible  <bruno@clisp.org>
53533
53534         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
53535         of AIX, the replacement has to be done only after <string.h> is
53536         included, therefore not in config.h. stpncpy.h does the replacement,
53537         and stpncpy.c uses it.
53538
53539 2005-03-02  Bruno Haible  <bruno@clisp.org>
53540
53541         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
53542         stpncpy.c uses it.
53543
53544 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53545
53546         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
53547         The workaround isn't strictly needed for POSIX conformance, and
53548         it's too much of a pain to configure and maintain.  We'll ask
53549         people to fix their kernels instead.
53550         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
53551         (NANOSLEEP_BUG_WORKAROUND): Remove.
53552         (xnanosleep): Remove the workaround.
53553
53554 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53555
53556         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
53557         Reported by Derek Price.
53558         (Include): Add "timespec.h".
53559
53560         * modules/xnanosleep (Depends-on): Remove gethrxtime.
53561
53562 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53563
53564         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
53565         to detect nanosleep bug.
53566
53567 2005-03-01  Bruno Haible  <bruno@clisp.org>
53568
53569         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
53570
53571 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
53572
53573         * modules/gethrxtime: New file.
53574         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
53575         (Depends-on): Add gethrxtime.
53576         (configure.ac): Add gl_XNANOSLEEP.
53577         (Makefile.am): Remove lib_SOURCES line.
53578
53579 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
53580
53581         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
53582         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
53583
53584 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
53585
53586         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
53587         * lib/timespec.h (gettime): Return void, since it always
53588         succeeds now.  All uses changed.
53589         * lib/gettime.c (gettime) Likewise.
53590         [HAVE_NANOTIME]: Prefer nanotime.
53591         Assume gettimeofday succeeds, as POSIX requires.
53592         Assime time () succeeds, since other code already does.
53593         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
53594         (timespec_subtract): Remove.
53595         (NANOSLEEP_BUG_WORKAROUND): New constant.
53596         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
53597         things considerably.  Use it only on GNU/Linux hosts, since the
53598         workaround shouldn't be needed elsewhere.
53599
53600 2005-02-24  Bruno Haible  <bruno@clisp.org>
53601
53602         * modules/gettext (Files): Add m4/glibc2.m4.
53603
53604 2005-02-24  Bruno Haible  <bruno@clisp.org>
53605
53606         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
53607         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
53608         * m4/progtest.m4:
53609         Update from GNU gettext 0.14.2.
53610         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
53611
53612 2005-02-24  Bruno Haible  <bruno@clisp.org>
53613
53614         * lib/localcharset.c: Update from GNU gettext 0.14.2.
53615         * lib/config.charset: Update from GNU gettext 0.14.2.
53616
53617 2005-02-24  Bruno Haible  <bruno@clisp.org>
53618
53619         * lib/gettext.h: Update from GNU gettext 0.14.2.
53620
53621 2005-02-23  Simon Josefsson  <jas@extundo.com>
53622
53623         * m4/iconvme.m4: New file.
53624
53625 2005-02-23  Jim Meyering  <jim@meyering.net>
53626
53627         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
53628         change.
53629         Thanks to Bruno Haible for catching it.
53630
53631 2005-02-22  Simon Josefsson  <jas@extundo.com>
53632
53633         * modules/iconvme: New file.
53634
53635         * MODULES.html.sh: Add iconvme.
53636
53637 2005-02-22  Simon Josefsson  <jas@extundo.com>
53638
53639         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
53640
53641 2005-02-22  Simon Josefsson  <jas@extundo.com>
53642
53643         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
53644
53645 2005-02-22  Jim Meyering  <jim@meyering.net>
53646
53647         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
53648         s/ifndef/ifdef/.
53649
53650 2005-02-20  Neil Conway  <neilc@samurai.com>
53651
53652         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
53653         returned by OSX/Darwin if the specified buffer is not large
53654         enough for the hostname.
53655
53656 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53657
53658         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
53659         pass it to _help, otherwise the latter coredumps trying to
53660         dereference state.root_argp.
53661
53662 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53663
53664         * modules/chdir-long (Depends-on): Add memrchr.
53665         * modules/memrchr (Files): Add lib/memrchr.h.
53666         (Include): "memrchr.h".
53667
53668 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53669
53670         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
53671
53672 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53673
53674         * lib/memrchr.h: New file.
53675         * lib/chdir-long.c: Include it.
53676         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
53677         Don't bother including stddef.h.
53678
53679 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
53680
53681         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
53682         inclusion.
53683         Include <sys/types.h>, for dev_t.
53684         (ME_DUMMY, ME_REMOTE): Move from here....
53685         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
53686         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
53687         Dmitry V. Levin.
53688         Include mountlist.h first, to test the interface.
53689
53690 2005-01-29  Bruno Haible  <bruno@clisp.org>
53691
53692         * lib/progname.c (program_name): Initialize.
53693         Needed when linking statically on MacOS X.
53694
53695 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
53696
53697         Sync from coreutils.
53698         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
53699         (Depends-on): Add c-strtod.
53700         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
53701
53702 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
53703
53704         Sync from coreutils.
53705         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
53706
53707         Remove files that are specific to coreutils.
53708         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
53709
53710 2005-01-28  Bruno Haible  <bruno@clisp.org>
53711
53712         * modules/javacomp: New file.
53713         * MODULES.html.sh (Java): Add javacomp.
53714
53715 2005-01-28  Bruno Haible  <bruno@clisp.org>
53716
53717         * m4/javacomp.m4: New file, from GNU gettext.
53718
53719 2005-01-28  Bruno Haible  <bruno@clisp.org>
53720
53721         * lib/javacomp.sh.in: New file, from GNU gettext.
53722         * lib/javacomp.h: New file, from GNU gettext.
53723         * lib/javacomp.c: New file, from GNU gettext.
53724
53725 2005-01-26  Simon Josefsson  <jas@extundo.com>
53726
53727         * lib/gai_strerror.c: Use GPL in header.
53728
53729 2005-01-26  Bruno Haible  <bruno@clisp.org>
53730
53731         * modules/javaexec: New file.
53732         * MODULES.html.sh (Java): Add javaexec.
53733
53734 2005-01-26  Bruno Haible  <bruno@clisp.org>
53735
53736         * m4/javaexec.m4: New file, from GNU gettext.
53737
53738 2005-01-26  Bruno Haible  <bruno@clisp.org>
53739
53740         * lib/javaexec.sh.in: New file, from GNU gettext.
53741         * lib/javaexec.h: New file, from GNU gettext.
53742         * lib/javaexec.c: New file, from GNU gettext.
53743
53744 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53745
53746         * modules/lchown (Depends-on): Remove lchown.h
53747
53748 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53749
53750         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
53751         must be defined if the header file was not found, in order
53752         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
53753
53754 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53755
53756         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
53757         initializers for struct pentry_state.
53758         (__argp_error): Check return value of __asprintf
53759         (__argp_failure): Translate error message
53760
53761         * lib/argp-parse.c: Removed braces around the expansion of N_()
53762
53763 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
53764
53765         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
53766         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
53767         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
53768         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
53769         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
53770         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
53771         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
53772         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
53773         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
53774         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
53775         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
53776         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
53777         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
53778         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
53779         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
53780         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
53781         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
53782         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
53783         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
53784         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
53785         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
53786         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
53787         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
53788         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
53789         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
53790         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
53791         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
53792         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
53793         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
53794         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
53795         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
53796         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
53797         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
53798         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
53799         xstrtol.m4, xstrtoumax.m4, yesno.m4:
53800         Use an all-permissive copyright notice, recommended by RMS.
53801
53802 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
53803
53804         * modules/chdir-long (Depends-on): Remove mempcpy.
53805
53806 2005-01-21  Jim Meyering  <jim@meyering.net>
53807
53808         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
53809         same value as for Solaris 9.
53810
53811         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
53812         component length.  This included changing the parameter to be
53813         of type `char *' rather than `char const *'.
53814         * lib/chdir-long.h (chdir_long): Update prototype.
53815
53816         * lib/openat.c (fdopendir, fstatat): New functions.
53817         * lib/openat.h: Include headers required for use of DIR and struct
53818         stat.
53819         [AT_SYMLINK_NOFOLLOW]: Define.
53820         (fdopendir, fstatat): Add prototypes.
53821
53822 2005-01-21  Bruno Haible  <bruno@clisp.org>
53823
53824         * modules/classpath: New file.
53825         * MODULES.html.sh (Java): Add classpath.
53826
53827 2005-01-21  Bruno Haible  <bruno@clisp.org>
53828
53829         * lib/classpath.h: New file, from GNU gettext.
53830         * lib/classpath.c: New file, from GNU gettext.
53831
53832 2005-01-20  Simon Josefsson  <jas@extundo.com>
53833
53834         * modules/version-etc-fsf: New file.
53835
53836 2005-01-20  Simon Josefsson  <jas@extundo.com>
53837
53838         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
53839         * lib/version-etc.c: Remove version_etc_copyright.
53840         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
53841         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
53842
53843 2005-01-20  Simon Josefsson  <jas@extundo.com>
53844
53845         * lib/base64.h (isbase64): Add.
53846
53847         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
53848         using a unsigned prototype, don't inline.
53849         (base64_decode): Use it.
53850
53851 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53852
53853         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
53854         it.
53855
53856 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53857
53858         * lib/save-cwd.c (save_cwd): Remove code to support the case
53859         where fchdir is missing or flaky.
53860
53861 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53862
53863         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
53864
53865 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
53866
53867         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
53868         AC_LIBSOURCES now does this.
53869         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
53870         with new ullong_max module.
53871
53872 2005-01-19  Bruno Haible  <bruno@clisp.org>
53873
53874         * modules/sh-quote: New file.
53875         * MODULES.html.sh (Executing programs): Add sh-quote.
53876
53877 2005-01-19  Bruno Haible  <bruno@clisp.org>
53878
53879         * lib/sh-quote.h: New file, from GNU gettext.
53880         * lib/sh-quote.c: New file, from GNU gettext.
53881
53882 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
53883
53884         Merge from coreutils.
53885         * m4/ullong_max.m4: New file.
53886         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
53887         (gl_MACROS): Assume localeconv exists.
53888
53889 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
53890
53891         Merge changes from coreutils, as described below in several
53892         changelogs dated today.
53893
53894         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
53895         (O_DIRECTORY): Remove; not needed here, since "." must be
53896         a directory.  All uses removed.
53897         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
53898         universal on Suns, and we also need to test for IRIX.
53899         Revamp code to use 'if' rather than '#if'.
53900         Avoid unnecessary comparison of cwd->desc to 0.
53901
53902         * lib/utimens.c (futimens): Robustify the previous patch, by checking
53903         for known valid error numbers rather than observed invalid ones.
53904
53905 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
53906
53907         * modules/ullong_max: New file.
53908
53909         * modules/chdir-long, modules/openat: New files.
53910         * modules/save-cwd (Depends-on): Depend on chdir-long.
53911         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
53912
53913 2005-01-18  Jim Meyering  <jim@meyering.net>
53914
53915         Merge from coreutils.
53916         * m4/chdir-long.m4, m4/openat.m4: New files.
53917         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
53918         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
53919         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
53920         is sane and DOES follow symlinks.  Besides, testing 20 different
53921         systems found no broken chown implementations.
53922         Prompted by a change in rsync's copy of this macro.
53923         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
53924
53925         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
53926
53927         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
53928         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
53929         NULL-means-set-to-current-time semantics.
53930         Remove temporary file immediately, rather than waiting
53931         for configure's at-exit trap code to do it.
53932
53933 2005-01-18  Jim Meyering  <jim@meyering.net>
53934
53935         * lib/version-etc.c (version_etc_copyright): Update copyright date.
53936
53937         * lib/utimens.c (futimens): Account for the fact that futimes
53938         can also fail with errno == ENOSYS or errno == ENOENT.
53939         Patch from Dmitry V. Levin.
53940
53941         Change the name of the robust chdir function from chdir to chdir_long.
53942         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
53943         (restore_cwd): Use chdir_long, not chdir.
53944         * lib/chdir-long.c: Renamed from chdir.c.
53945         * lib/chdir-long.h: Renamed from chdir.h.
53946         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
53947         Hurd.
53948
53949 2005-01-18  Bruno Haible  <bruno@clisp.org>
53950
53951         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
53952         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
53953         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
53954         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
53955         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
53956         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
53957         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
53958         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
53959         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
53960         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
53961         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
53962         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
53963         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
53964         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
53965         Use an all-permissive copyright notice, recommended by RMS.
53966
53967 2005-01-18  Bob Proulx  <bob@proulx.com>
53968
53969         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
53970         simplify offsetof() macro construct to avoid compile failure with
53971         native HP-UX 11.0 ANSI C compiler.
53972
53973 2005-01-17  Bruno Haible  <bruno@clisp.org>
53974
53975         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
53976         redundant because stpncpy.m4 takes care of it.
53977
53978 2005-01-17  Bruno Haible  <bruno@clisp.org>
53979
53980         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
53981
53982 2005-01-17  Bruno Haible  <bruno@clisp.org>
53983
53984         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
53985         used.
53986
53987 2005-01-17  Bruno Haible  <bruno@clisp.org>
53988
53989         * lib/fwriteerror.h (fwriteerror): Change specification to include
53990         fclose.
53991         * lib/fwriteerror.c: Include <stdbool.h>.
53992         (fwriteerror): At the end, close the file stream. Record whether
53993         stdout was already closed.
53994
53995 2005-01-17  Bruno Haible  <bruno@clisp.org>
53996
53997         * lib/execute.c (environ): Declare if needed.
53998         * lib/pipe.c (environ): Likewise.
53999         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
54000
54001 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54002
54003         * modules/argp: Depend on vsnprintf
54004
54005 2005-01-10  Jim Meyering  <jim@meyering.net>
54006
54007         * modules/closeout (Depends-on): Add atexit.
54008
54009 2005-01-06  Bruno Haible  <bruno@clisp.org>
54010
54011         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
54012
54013 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
54014
54015         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
54016         definitions to be after all include files, to avoid collisions.
54017         Problem reported by Bob Proulx.
54018
54019 2005-01-04  Jim Meyering  <jim@meyering.net>
54020
54021         Changes imported from coreutils.
54022         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
54023         as the mkstemp template, use a temporary directory and an
54024         8.3-friendly template to avoid trouble on systems like DJGPP.
54025         Reported by Juan M. Guerrero via Stepan Kasal.
54026         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
54027         close. Remove the temporary directory right away, rather than waiting
54028         for configure's at-exit trap code to do it.
54029         Suggestion from Stepan Kasal.
54030
54031 2005-01-01  Simon Josefsson  <jas@extundo.com>
54032
54033         * gnulib-tool: Print #include directives when --import'ing.
54034
54035 2004-12-28  Simon Josefsson  <jas@extundo.com>
54036
54037         * tests/test-base64.c: Include required header files.  Remove
54038         unused variables.
54039
54040 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
54041
54042         * modules/error (Depends-on): Remove gettext.
54043
54044 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
54045
54046         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
54047         not needed.  This removes a dependency on the gettext module.
54048         [defined _LIBC]: Do not include <libintl.h>; not needed.
54049
54050 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
54051
54052         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
54053         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
54054
54055 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
54056
54057         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
54058         HAVE_DECL_STRTOLD.
54059
54060 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
54061
54062         * modules/getdate (Depends-on): Remove alloca-opt.
54063
54064 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
54065
54066         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
54067
54068 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
54069
54070         * lib/argp-parse.c: Include <stddef.h>.
54071         (alignof, alignto): New macros.
54072         (parser_init): Don't assume that void * is aligned sufficiently
54073         for struct option.
54074
54075         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
54076         need to extend the stack.
54077         (YYINITDEPTH): New macro, so that the initial stack isn't overly
54078         large.
54079
54080 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54081
54082         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
54083
54084 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
54085
54086         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
54087         (2004-10-24) change.  Apparently this was a false alarm.
54088
54089         * modules/getdate: Depend on alloca-opt, not alloca.
54090
54091 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
54092
54093         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
54094         Remove now-obsolete comment about AIX.
54095         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
54096         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
54097         (YYMAXDEPTH): New macro.
54098
54099 2004-12-18  Simon Josefsson  <jas@extundo.com>
54100
54101         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
54102
54103 2004-12-18  Bruno Haible  <bruno@clisp.org>
54104
54105         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
54106
54107 2004-12-18  Bruno Haible  <bruno@clisp.org>
54108
54109         * lib/fatal-signal.c (fatal_signals): Make non-const.
54110         (init_fatal_signals): New function.
54111         (uninstall_handlers, install_handlers): Ignore signals that were set to
54112         SIG_IGN.
54113         (at_fatal_signal): Call init_fatal_signals.
54114         (init_fatal_signal_set): Likewise. Ignore signals that were set to
54115         SIG_IGN.
54116         Reported by Paul Eggert.
54117
54118 2004-12-18  Bruno Haible  <bruno@clisp.org>
54119
54120         * doc/alloca.texi: New file.
54121         * doc/alloca-opt.texi: New file.
54122
54123 2004-12-17  Jim Meyering  <jim@meyering.net>
54124
54125         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
54126         Otherwise, install-sh could exit with improper exit status when
54127         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
54128
54129 2004-12-16  Simon Josefsson  <jas@extundo.com>
54130
54131         * tests/test-base64.c: Add license.
54132
54133 2004-12-15  Stepan Kasal  <address@hidden>
54134
54135         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
54136
54137 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
54138
54139         * modules/getcwd (Files): Add m4/d-ino.m4.
54140         Suggested by Mark D. Baushke.
54141
54142 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
54143
54144         * lib/getdate.y (textint): New member "negative".
54145         (time_zone_hhmm): New function.
54146         Expect 14 shift-reduce conflicts, not 13.
54147         (o_colon_minutes): New rule.
54148         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
54149         (yylex): Set the "negative" member of signed numbers.
54150
54151 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
54152
54153         * doc/getdate.texi (Time of day items, Time zone items):
54154         Describe new formats +00:00, UTC+00:00.
54155
54156 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
54157
54158         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
54159         spurious "-l"s.  Problem reported by Stepan Kasal.
54160
54161 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
54162
54163         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
54164         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
54165
54166 2004-12-04  Simon Josefsson  <jas@extundo.com>
54167
54168         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
54169         Vandoorselaere <yoann@prelude-ids.org>.
54170
54171 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
54172
54173         Changes imported from coreutils.
54174         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
54175         exist.
54176         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
54177
54178 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
54179
54180         Changes imported from coreutils.
54181         * lib/hard-locale.c: Assume <locale.h> exists.
54182         Include "strdup.h".
54183         (GLIBC_VERSION): New macro.
54184         (hard_locale): Assume setlocale exists.
54185         Rewrite to avoid #ifdef.
54186         Use strdup rather than malloc + strcpy.
54187         * lib/human.c: Assume <locale.h> exists.
54188         (human_readable): Assume localeconv exists.
54189
54190 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
54191
54192         * modules/hard-locale (Depends-on): Add strdup.
54193
54194 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
54195
54196         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
54197         convert T2, not T.  (Imported from libc.)
54198
54199 2004-11-30  Simon Josefsson  <jas@extundo.com>
54200
54201         * modules/restrict (License): Change to LGPL.
54202
54203 2004-11-30  Simon Josefsson  <jas@extundo.com>
54204
54205         * m4/restrict.m4: Add copyright and copying conditions.
54206
54207 2004-11-30  Simon Josefsson  <jas@extundo.com>
54208
54209         * m4/base64.m4: New file.
54210
54211 2004-11-30  Simon Josefsson  <jas@extundo.com>
54212
54213         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
54214         base64.
54215
54216         * tests/test-base64.c: New file.
54217
54218         * modules/base64: New file.
54219
54220 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
54221
54222         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
54223         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
54224
54225         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
54226
54227 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
54228
54229         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
54230         (__getcwd.c): Don't restore errno; glibc doesn't.
54231         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
54232         first, falling back to our code only if its results look suspicious.
54233         Ensure that the resulting buffer is only as large as necessary.
54234
54235         * lib/readutmp.c: Include readutmp.h first.
54236         Include <errno.h>, since readutmp.h no longer does that.
54237         * lib/readutmp.h: Don't include <errno.h>,
54238         <sys/param.h>, <time.h>; not needed to establish interface.
54239         (errno): Remove decl.
54240         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
54241         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
54242         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
54243
54244 2004-11-28  Simon Josefsson  <jas@extundo.com>
54245
54246         * lib/base64.h, base64.c: New file.
54247
54248 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
54249
54250         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
54251
54252 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
54253
54254         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
54255         (Depends-on): Remove pathmax, same.  Add mempcpy.
54256         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
54257         (Makefile.am): Append getcwd.h to lib_SOURCES.
54258         (Include): Add getcwd.h.
54259         (Maintainer): Change from Jim Meyering to "all, glibc",
54260         since getdate now uses intended-for-glibc code.
54261         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
54262         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
54263
54264 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
54265
54266         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
54267         HP's ANSI C compiler.
54268         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
54269         Declaring int functions causes warnings on some modern systems and
54270         shouldn't be needed to compile on ancient ones.
54271         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
54272         defined.
54273
54274         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
54275         with the following changes.
54276         (__set_errno): Parenthesize properly.
54277         Include <stdbool.h>.
54278         (MIN, MAX, MATCHING_INO): New macros.
54279         (__getcwd): Define with prototype, not K&R form.
54280         Use heuristics to allocate default buffer on stack if possible.
54281         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
54282         behavior, and to avoid the PATH_MAX limit when computing
54283         ../../../../...
54284         Use MATCHING_INO to compare inode number to file.
54285         Check for arithmetic overflow in size calculations.
54286         Fix bug in reallocation of dot array that caused getcwd to fail
54287         on directories nested deeper than 75.
54288         Be more careful about saving errno on error.
54289         Do not use realloc; use only free+malloc, as this is a bit
54290         more flexible and avoids a needless copy operation.
54291         Do not inspect st_dev and st_ino for symbolic links; POSIX
54292         doesn't specify the latter.
54293         Check for closedir errors.
54294         Avoid needless casts.
54295         Use "#ifdef weak_alias" around weak_alias, to be like other
54296         glibc code.
54297         The following changes to getcwd.c have effect only when used in
54298         gnulib; they have no effect inside glibc proper.
54299         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
54300         as alloca isn't used.
54301         (alloca, __alloca): Likewise.
54302         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
54303         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
54304         unconditionally, as gnulib assumes C89 or better.
54305         Do not include <sys/param.h>.
54306         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
54307         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
54308         better.
54309         (NULL) [!defined NULL]: Remove; we assume C89 or better.
54310         Include <dirent.h> in a way that is compatible with modern Autoconf.
54311         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
54312         New macros, if not already defined.
54313         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
54314         Use "_LIBC", not "defined _LIBC", for consistency.
54315         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
54316         a mempcpy module.
54317         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
54318         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
54319         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
54320         credit only to Jim Meyering and adjust the copyright dates.
54321         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
54322         <stdlib.h>, <unistd.h>, "pathmax.h".
54323         Instead, include "xgetcwd.h" (first) and "getcwd.h".
54324         (INITIAL_BUFFER_SIZE): Remove.
54325         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
54326
54327 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
54328
54329         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
54330         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
54331         Use the _ONCE methods, for efficiency.
54332         Check for fcntl.h.  In test program, include <errno.h>
54333         and <fcntl.h> if available.  Remove old K&R cruft from
54334         test program.  Check for common errors in GNU/Linux,
54335         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
54336         don't do AC_LIBOBJ, as that's getcwd.m4's job.
54337         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
54338         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
54339         name accordingly.
54340         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
54341         accommodate new getcwd.c.
54342         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
54343         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
54344         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
54345         that's all we need now.
54346
54347 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54348
54349         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
54350         argp-parse.c depends on getopt internals, that means we should
54351         always use our getopt, to be on the safe side.
54352         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
54353         order not to spoil the result of an eventual previous invocation
54354         of gl_GETOPT_SUBSTITUTE.
54355
54356 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54357
54358         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
54359         redefinition warnings. To avoid them, include the defines
54360         in `#if !defined __need_getopt ... #endif'. The only place
54361         where __getopt_argv_const is used is in definitions
54362         of getopt_long and getopt_long_only below, which are as well
54363         protected by `#ifndef __need_getopt'.
54364         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
54365         __need_getopt after including <stdio.h> and <unistd.h> These
54366         headers might have defined it.
54367
54368 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
54369
54370         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
54371
54372 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
54373
54374         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
54375         (futimens): New function, which uses futimes if available.
54376         (futimens, utimens): Support timespec==NULL, with same semantics
54377         as utime and utimens.
54378         * lib/utimens.h (futimens): New decl.
54379
54380 2004-11-23  Jim Meyering  <jim@meyering.net>
54381
54382         * lib/getopt_.h: Remove trailing blanks.
54383
54384 2004-11-23  Jim Meyering  <jim@meyering.net>
54385
54386         * lib/__fpending.c: Add comment.
54387
54388 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
54389
54390         * modules/canonicalize (Depends-on): Add xreadlink.
54391         Problem reported by James Youngman.
54392
54393 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
54394
54395         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
54396         New macros.
54397         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
54398         optopt): Use them instead of invoking ## directly; otherwise, the
54399         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
54400
54401 2004-11-19  Bruno Haible  <bruno@clisp.org>
54402
54403         * lib/strtok_r.c: Move comments from here...
54404         * lib/strtok_r.h: ... to here.
54405
54406 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
54407
54408         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
54409         implementations that mishandle size_t overflow.
54410
54411 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
54412
54413         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
54414         might fail.  Problem reported by Yoann Vandoorselaere.
54415         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
54416         implementations that mishandle size_t overflow.
54417
54418 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54419
54420         * modules/canon-host (Depends-on): Add strdup.
54421
54422 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54423
54424         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
54425
54426 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54427
54428         * lib/canon-host.c: Include "strdup.h".
54429         (canon_host): Use getaddrinfo if available, so that IPv6 works.
54430         Use strdup instead of malloc/strcpy to duplicate strings.
54431
54432         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
54433         (human_space_before_unit): New constant.
54434         * lib/human.c (human_readable): Support it.
54435
54436         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
54437         (xgetcwd): Set errno correctly when failing.
54438         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
54439         the failure is actually due to a PATH_MAX problem.
54440
54441         Further getopt changes to make it more likely that glibc will
54442         buy the changes back.
54443         * lib/getopt.c (POSIXLY_CORRECT): New constant.
54444         (getopt): Use it, so to preserve glibc semantic
54445         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
54446         when compiling for libc.
54447         * lib/getopt_.h (__getopt_argv_const): Bring it back.
54448         (getopt_long, getopt_long_only): Use it.
54449
54450         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
54451         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
54452         (getopt): Argv is now char * const *, as per standard.
54453         (_getopt_internal_r, _getopt_internal): Argv is now char **,
54454         not char *__getopt_argv_const *.
54455         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
54456         _getopt_long_only_r): Likewise.
54457         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
54458         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
54459         _getopt_long_r, _getopt_long_only_r): Likewise.
54460         * lib/getopt_.h (__getopt_argv_const): Remove.
54461         (getopt): Argv is now char * const *, as per standard.
54462
54463         * lib/getdate.y (tORDINAL): New token.
54464         (day, relunit): Allow it for relative times.
54465         (relative_time_table): Use tORDINAL for ordinals.
54466
54467 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54468
54469         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
54470         Document that "second" isn't allowed as an ordinal number.
54471
54472 2004-11-16  Jim Meyering  <jim@meyering.net>
54473
54474         * modules/closeout (Depends-on): Add fpending.
54475
54476 2004-11-15  Jim Meyering  <jim@meyering.net>
54477
54478         * lib/closeout.c: Include "__fpending.h" once again.
54479         Include <stdbool.h>.
54480         (close_stdout): Don't fail just because stdout was closed initially,
54481         since some programs don't write to stdout in the normal course of
54482         operation (other than --version and --help), and we don't want this
54483         function to make e.g. `touch file >&-' fail.
54484         But do fail if it was closed and someone has tried to write to it.
54485         E.g., `printf foo >&-' must fail.
54486
54487 2004-11-13  Jim Meyering  <jim@meyering.net>
54488
54489         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
54490
54491 2004-11-12  Simon Josefsson  <jas@extundo.com>
54492
54493         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
54494         small doc fix is still pending.
54495
54496 2004-11-11  Simon Josefsson  <jas@extundo.com>
54497
54498         * modules/strtok_r: New file.
54499
54500         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54501         strtok_r.
54502
54503 2004-11-11  Simon Josefsson  <jas@extundo.com>
54504
54505         * m4/strtok_r.m4: New file.
54506
54507         * m4/getopt.m4: Replace opterr.
54508
54509 2004-11-11  Simon Josefsson  <jas@extundo.com>
54510
54511         * lib/strtok_r.h, strtok_r.c: New file.
54512
54513 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
54514
54515         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
54516         of replacing opterr, getopt, etc.  This should handle the
54517         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
54518
54519 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
54520
54521         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
54522         we can stop lying to compilers about the constness of argv when we
54523         are compiled outside glibc.
54524         (getopt, getopt_long, getopt_long_only): Use it.
54525         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
54526         _getopt_internal, getopt): Likewise.
54527         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
54528         _getopt_long_only_r): Likewise.
54529         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
54530         _getopt_long_r, _getopt_long_only_r): Likewise.
54531
54532         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
54533         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
54534         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
54535         the other external symbols.
54536         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
54537         declaration, since the above renaming now works around collisions.
54538
54539 2004-11-11  Jim Meyering  <jim@meyering.net>
54540
54541         * lib/linebreak.c: Remove trailing blanks.
54542         * lib/alloca_.h: Likewise.
54543         * lib/acosl.c: Likewise.
54544         * lib/euidaccess.c: Likewise.
54545         * lib/allocsa.h: Likewise.
54546
54547 2004-11-10  Simon Josefsson  <jas@extundo.com>
54548
54549         * m4/getaddrinfo.m4: New file.
54550
54551 2004-11-10  Simon Josefsson  <jas@extundo.com>
54552
54553         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
54554
54555 2004-11-10  Simon Josefsson  <jas@extundo.com>
54556
54557         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54558         getaddrinfo.
54559
54560         * modules/getaddrinfo: New file.
54561
54562 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
54563
54564         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
54565
54566 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
54567
54568         * lib/mktime.c (SHR): New macro, which is a portable
54569         substitute for >> that should work even on Crays.
54570         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
54571         Problem reported by Mark D. Baushke in
54572         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
54573         * lib/getdate.y (SHR): Likewise.
54574         (tm_diff): Use it.
54575         * lib/strftime.c (SHR): Likewise.
54576         (tm_diff): Use it.
54577         * lib/quotearg.c (struct quoting_options): Use unsigned int for
54578         quote_these_too, so that right shifts are well defined.  All uses
54579         changed.
54580
54581 2004-11-10  Jim Meyering  <jim@meyering.net>
54582
54583         Ensure that no close failure goes unreported.
54584         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
54585         return early when it seems there's nothing to flush.
54586         Don't include __fpending.h.
54587
54588 2004-11-10  Jim Meyering  <jim@meyering.net>
54589
54590         * modules/closeout (Depends-on): Remove fpending.
54591
54592 2004-11-10  Jim Meyering  <jim@meyering.net>
54593
54594         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
54595
54596 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
54597
54598         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
54599         gl_FUNC_STRFTIME.
54600         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
54601         and AC_REQUIRE when possible, to avoid duplicate checks.
54602         Check for <wchar.h>.
54603
54604 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
54605
54606         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
54607
54608 2004-11-09  Bruno Haible  <bruno@clisp.org>
54609
54610         * m4/sockpfaf.m4: New file.
54611
54612 2004-11-05  Bruno Haible  <bruno@clisp.org>
54613
54614         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
54615         Reported by Mark D. Baushke <mdb@cvshome.org>.
54616
54617 2004-11-04  Bruno Haible  <bruno@clisp.org>
54618
54619         2004-09-11  Bruno Haible  <bruno@clisp.org>
54620                 * allocsa.valgrind: New file.
54621         2004-02-06  Bruno Haible  <bruno@clisp.org>
54622                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
54623                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
54624                 Reported by Christopher Seip <chris.seip@hp.com>.
54625
54626 2004-11-04  Bruno Haible  <bruno@clisp.org>
54627
54628         * modules/allocsa (Files): Add lib/allocsa.valgrind.
54629         (Makefile.am): Distribute it.
54630
54631 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
54632
54633         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
54634         with errno == ERANGE if the buffer is too small.
54635         Problem reported by Mark D. Baushke.
54636
54637 2004-11-03  Albert Chin  <china@thewrittenword.com>
54638             Paul Eggert  <eggert@cs.ucla.edu>
54639
54640         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
54641         equivalent, substitute $ac_type for equivalent type rather than
54642         blindly using uint32_t *always* which won't work if uint32_t is not
54643         available.  Define _UINT32_T to work around typedef of uint32_t if
54644         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
54645         2.5.1.
54646
54647 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
54648
54649         * m4/jm-macros.m4: Sync from coreutils.
54650         (gl_MACROS): Check for mbrlen, for pathchk.
54651         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
54652
54653 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
54654
54655         * lib/xreadlink.c (MAXSIZE): New macro.
54656         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
54657         size does not exceed MAXSIZE.  Avoid cast.
54658         As suggested by Mark D. Baushke in
54659         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
54660         if readlink fails with buffer size just under MAXSIZE, try again
54661         with MAXSIZE.
54662
54663 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
54664
54665         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
54666
54667 2004-11-02  Derek R. Price  <derek@ximbiot.com>
54668         and  Paul Eggert  <eggert@cs.ucla.edu>
54669
54670         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
54671         (get_date): Overparenthesize to avoid GCC warning.
54672
54673 2004-11-02  Bruno Haible  <bruno@clisp.org>
54674
54675         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
54676         returns void.
54677
54678 2004-11-02  Bruno Haible  <bruno@clisp.org>
54679
54680         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
54681         function returns void.
54682
54683 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54684
54685         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
54686         fflush_unlocked, flockfile, funlockfile, funlockfile,
54687         fputs_unlocked, putc_unlocked.
54688
54689 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54690
54691         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
54692         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
54693         already declared.
54694
54695 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
54696
54697         * modules/getdate (Files): Add doc/getdate.texi.
54698         (Depends-on): Add setenv, xalloc.
54699
54700 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
54701
54702         * lib/getdate.y: Add support for TZ="foo" within a date string.
54703         Fix some bugs near time_t boundaries.  Reject dates with
54704         out-of-range components, e.g., "Sept 31".
54705         Include <stdlib.h>, "setenv.h", "xalloc.h".
54706         (ISDIGIT_LOCALE): Remove; unused.
54707         Note that the TZ and time functions used here are not reentrant.
54708         (mktime_ok, get_tz): New functions.
54709         (TZBUFSIZE): New constant.
54710         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
54711         This requires that we sometimes generate our own TZ="XXX..." setting.
54712
54713 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
54714
54715         * doc/getdate.texi: New file, from coreutils with modifications for
54716         the new TZ parsing.
54717
54718 2004-10-27  Derek R. Price  <derek@ximbiot.com>
54719
54720         * lib/mktime.c (not_equal_tm): Remove redundant check.
54721
54722 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54723
54724         * modules/regex (lib_SOURCES): Add regex.c.
54725         Reported by James Youngman in
54726         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
54727
54728 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54729
54730         * lib/getdate.y: Use Bison 1.875 features, and some minor
54731         code cleanups.  This change does not affect semantics.
54732         Don't include <stdlib.h>; no longer needed.
54733         Don't include unlocked-io.h; only the "#if TEST" code uses
54734         stdio, and performance isn't crucial there.
54735         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
54736         Bison 1.875 features as described below.
54737         All uses of "PC." replaced by "pc->".
54738         (YYSTYPE): Add a forward declaration.
54739         (yylex, yyerror): Use full prototypes in forward decls.
54740         Use "%pure-parser" rather than obsolescent "%pure_parser".
54741         Use %parse-param and %lex-param instead of obsolescent
54742         YYPARSE_PARAM and YYLEX_PARAM.
54743         (meridian_table, month_and_day_table, time_units_table,
54744         relative_time_table, time_zone_table, military_table,
54745         lookup_zone, lookup_word, get_date):
54746         Use NULL instead of 0 where appropriate.
54747         (to_hour): Avoid abort (), to avoid a dependency on
54748         stdlib.h.
54749         (yyerror, yylex): Now accepts parser_control * arg.
54750         (main) [TEST]: Use '\0' rather than 0 for char.
54751
54752 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54753
54754         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
54755
54756 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54757
54758         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
54759         It's now the caller's responsibility to handle the case where
54760         !HAVE_GETPAGESIZE && !defined getpagesize.
54761
54762         * lib/mktime.c (leapyear): Arg is long int, not int.
54763
54764 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
54765
54766         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
54767
54768 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
54769
54770         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
54771         missing.  Problem reported by James Youngman.
54772
54773 2004-10-16  Simon Josefsson  <jas@extundo.com>
54774
54775         * gnulib-tool: Fix comments.  Fix parse problem.
54776         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
54777
54778 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
54779
54780         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
54781         implementation of getopt_long.  Problem reported by Alexander Taler in:
54782         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
54783
54784 2004-10-15  Bruno Haible  <bruno@clisp.org>
54785
54786         * gnulib-tool: Untabify. Initialize supplied_libname.
54787         (func_usage): More homogenous output.
54788         (func_modules_transitive_closure, func_modules_to_filelist,
54789         func_emit_lib_Makefile_am): New functions.
54790         (func_import): New function, extracted from big case statement. Use
54791         func_get_license, func_modules_transitive_closure,
54792         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
54793         opt_lgpl. Don't use test -a, as it's not portable.
54794         (func_create_testdir): Use func_modules_transitive_closure,
54795         func_modules_to_filelist, func_emit_lib_Makefile_am.
54796
54797 2004-10-15  Bruno Haible  <bruno@clisp.org>
54798
54799         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
54800
54801 2004-10-15  Bruno Haible  <bruno@clisp.org>
54802
54803         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
54804         the portions belonging to each module.
54805         Suggested by Derek Robert Price <derek@ximbiot.com>.
54806
54807 2004-10-12  Simon Josefsson  <jas@extundo.com>
54808
54809         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
54810         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
54811         to real functions.
54812
54813 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54814
54815         * modules/vsnprintf: New file.
54816
54817 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54818
54819         * m4/vsnprintf.m4: New file.
54820
54821 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54822
54823         * lib/vsnprintf.h: New file.
54824         * lib/vsnprintf.c: New file.
54825
54826 2004-10-11  Bruno Haible  <bruno@clisp.org>
54827
54828         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
54829         vsnprintf.
54830
54831 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
54832
54833         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
54834
54835 2004-10-07  Bruno Haible  <bruno@clisp.org>
54836
54837         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
54838         fits into the provided buffer.
54839
54840 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
54841
54842         * lib/diacrit.c, diacrit.h: Add GPL notice.
54843
54844         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
54845         notice.
54846         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
54847         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
54848         This avoids a potential constant-folding bug.
54849
54850 2004-10-05  Bruno Haible  <bruno@clisp.org>
54851
54852         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
54853         for the declaration of strsep.
54854
54855 2004-10-05  Bruno Haible  <bruno@clisp.org>
54856
54857         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
54858
54859 2004-10-04  Simon Josefsson  <jas@extundo.com>
54860
54861         * modules/memmem: New file.
54862         * tests/test-memmem.c: New file.
54863         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
54864
54865 2004-10-04  Simon Josefsson  <jas@extundo.com>
54866
54867         * m4/memmem.m4: New file.
54868
54869 2004-10-04  Simon Josefsson  <jas@extundo.com>
54870
54871         * lib/memmem.h: New file.
54872         * lib/memmem.c: New file, taken from glibc.
54873
54874 2004-10-04  Simon Josefsson  <jas@extundo.com>
54875
54876         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
54877         '#ifdef USE_UNLOCKED_IO'.
54878
54879 2004-10-04  Simon Josefsson  <jas@extundo.com>
54880
54881         * config/srclist.txt: Add memmem from glibc.
54882
54883 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54884
54885         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
54886
54887         * modules/argmatch, modules/argp, modules/closeout, modules/error,
54888         modules/exclude, modules/getdate, modules/getline,
54889         modules/getndelim2, modules/getpass, modules/getpass-gnu,
54890         modules/getusershell, modules/linebuffer, modules/md5,
54891         modules/mountlist, modules/posixtm, modules/readtokens,
54892         modules/readutmp, modules/regex, modules/sha1,
54893         modules/version-etc, modules/yesno:
54894         Remove dependency on unlocked-io.
54895
54896 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54897
54898         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
54899
54900         * m4/unlocked-io.m4: Add copyright notice.
54901         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
54902
54903 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54904
54905         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
54906         * lib/xmalloc.c (xmemdup): Likewise.
54907         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
54908         XFREE): Remove these long-obsolescent macros.
54909         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
54910         * lib/xstrdup.c: Remove.
54911
54912         * lib/regex.c (re_comp): Cast gettext return value to char *,
54913         Problem reported by Martin Neitzel via Mark D. Baushke.
54914
54915 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54916
54917         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
54918         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
54919         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
54920         regex.c, sha1.c, version-etc.c, yesno.c:
54921         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
54922         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
54923         the includer's responsibility.
54924
54925         Sync from coreutils.
54926
54927         * lib/modechange.c (mode_compile): Don't decrement a pointer that
54928         points to the start of a string, as the C Standard says the
54929         resulting behavior is undefined.
54930
54931         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
54932         simple -> simple_backups, numbered_existing ->
54933         numbered_existing_backups, numbered -> numbered_backups
54934         to avoid shadowing problems.  All uses changed.
54935         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
54936         * lib/backupfile.c (check_extension, numbered_backup):
54937         Rename locals to avoid shadowing 'basename'.
54938         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
54939         once.
54940
54941         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
54942         * lib/.cvsignore: Add getopt.h.
54943
54944 2004-10-04  Bruno Haible  <bruno@clisp.org>
54945
54946         * modules/README: New file.
54947         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
54948         not a module.
54949
54950 2004-10-02  Jim Meyering  <jim@meyering.net>
54951
54952         * lib/dirfd.h, getpagesize.h: Add copyright notice.
54953
54954 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54955
54956         * modules/strsep: New file.
54957
54958 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54959
54960         * m4/strsep.m4: New file.
54961
54962 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54963
54964         * lib/strsep.h: New file.
54965         * lib/strsep.c: New file.
54966
54967 2004-10-01  Simon Josefsson  <jas@extundo.com>
54968
54969         * lib/snprintf.c (snprintf): Handle size==0.
54970
54971 2004-10-01  Simon Josefsson  <jas@extundo.com>
54972             Bruno Haible  <bruno@clisp.org>
54973
54974         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
54975         (snprintf): Declare 'args'.
54976
54977 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
54978
54979         * lib/snprintf.c: Remove comments as to why each header is needed.
54980
54981 2004-10-01  Bruno Haible  <bruno@clisp.org>
54982
54983         * MODULES.html.sh: Add strsep.
54984
54985 2004-09-30  Simon Josefsson  <jas@extundo.com>
54986
54987         * modules/snprintf: New file.
54988
54989 2004-09-30  Simon Josefsson  <jas@extundo.com>
54990
54991         * m4/snprintf.m4: New file.
54992
54993 2004-09-30  Simon Josefsson  <jas@extundo.com>
54994
54995         * lib/snprintf.h, lib/snprintf.c: New files.
54996
54997 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54998
54999         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
55000         (hol_entry_help): Never translate an empty string.
55001         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
55002         * lib/argp.h (OPTION_NO_TRANS): New option.
55003
55004 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
55005
55006         * modules/argp (Maintainer): Replace Simon Josefsson
55007         by Sergey Poznyakoff.
55008
55009 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
55010
55011         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
55012         changes merged back into glibc.
55013
55014 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
55015
55016         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
55017
55018 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
55019
55020         * lib/xvasprintf.c: Include xalloc.h.
55021         (xvasprintf): Use xalloc_die, not xmalloc_die.
55022
55023 2004-09-29  Bruno Haible  <bruno@clisp.org>
55024
55025         * modules/alloca-opt: New file, derived from modules/alloca.
55026         * modules/allocsa: Depend on alloca-opt instead of alloca.
55027         * modules/setenv: Likewise.
55028         * modules/vasnprintf: Likewise.
55029         * MODULES.html.sh: Add alloca-opt.
55030
55031 2004-09-28  Simon Josefsson  <jas@extundo.com>
55032
55033         * gnulib-tool: New parameter --lgpl, to asseert that modules are
55034         LGPL, and to replace license template from GPL to LGPL.
55035
55036 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
55037
55038         * modules/dummy: Change license to LGPL.
55039
55040 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
55041
55042         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
55043
55044 2004-09-24  Simon Josefsson  <jas@extundo.com>
55045
55046         * modules/minmax (License): Change from GPL to LGPL.
55047
55048 2004-09-23  Simon Josefsson  <jas@extundo.com>
55049
55050         * gnulib-tool (--import): Typo.
55051
55052 2004-09-23  Simon Josefsson  <jas@extundo.com>
55053
55054         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
55055
55056 2004-09-22  Bruno Haible  <bruno@clisp.org>
55057
55058         * modules/*: Add 'License' field.
55059         * gnulib-tool: Accept --extract-license option.
55060         (func_get_license): New function.
55061
55062 2004-09-21  Bruno Haible  <bruno@clisp.org>
55063
55064         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
55065         Reported by Simon Josefsson.
55066
55067 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
55068
55069         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
55070         gl_AC_TYPE_LONG_LONG.
55071
55072 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
55073
55074         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
55075
55076 2004-09-18  Simon Josefsson  <jas@extundo.com>
55077         and  Paul Eggert  <eggert@cs.ucla.edu>
55078
55079         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
55080         calls with autoreconf.  Define GL_LIB.
55081
55082 2004-09-14  Karl Berry  <karl@gnu.org>
55083
55084         * config/srclist.txt: unsync setenv.c, sigh.
55085
55086 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
55087
55088         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
55089         Problem reported by Bruno Haible in:
55090         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
55091
55092 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
55093
55094         * config/srclist.txt: Comment out argp-pvh.c.
55095
55096 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
55097
55098         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
55099         in case some system header has #define'd it.  Problem reported by
55100         Soeren D. Schulze in
55101         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
55102
55103 2004-09-09  Karl Berry  <karl@gnu.org>
55104
55105         * regex.[ch]: delete from the root.  These were supposed to be
55106                 synced with emacs cvs, but this has not happened for about
55107                 a year, and anyway nothing else uses emacs regex.[ch].
55108                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
55109                 lib/regex[.ch] is untouched.
55110
55111 2004-09-09  Bruno Haible  <bruno@clisp.org>
55112
55113         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
55114
55115 2004-09-09  Bruno Haible  <bruno@clisp.org>
55116
55117         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
55118         modifications.
55119         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
55120
55121 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
55122
55123         * modules/xvasprintf: New file.
55124         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
55125
55126 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
55127
55128         * lib/xvasprintf.h: New file.
55129         * lib/xvasprintf.c: New file.
55130         * lib/xasprintf.c: New file.
55131
55132 2004-09-08  Bruno Haible  <bruno@clisp.org>
55133
55134         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
55135
55136 2004-09-08  Bruno Haible  <bruno@clisp.org>
55137
55138         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
55139         length is > INT_MAX.
55140         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
55141         more.
55142
55143 2004-09-08  Bruno Haible  <bruno@clisp.org>
55144
55145         * lib/stdint_.h: New file, taken from GNU clisp.
55146
55147 2004-09-08  Bruno Haible  <bruno@clisp.org>
55148             Oskar Liljeblad  <oskar@osk.mine.nu>
55149
55150         * modules/stdint: New file.
55151         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
55152
55153 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55154
55155         Import from coreutils.
55156         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
55157         strings on unbounded length.  alloca's performance benefits aren't
55158         that important here.
55159         (V_STRDUP): Remove.
55160         (parse_with_separator): New function, with most of the internals
55161         of the old parse_user_spec.  Allow user to omit both user and group,
55162         for compatibility with FreeBSD.
55163         Clone only the user name, not the entire spec.
55164         Do not set *uid, *gid unless entirely successful.
55165         Avoid memory leak in some failing cases.
55166         Fix regression for USER.GROUP reported by Dmitry V. Levin in
55167         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
55168         (parse_user_spec): Rewrite to use parse_with_separator.
55169
55170 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55171
55172         * modules/userspec: Don't depend on alloca.
55173
55174 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55175
55176         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
55177
55178 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
55179
55180         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
55181         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
55182         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
55183
55184 2004-08-16  Simon Josefsson  <jas@extundo.com>
55185
55186         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
55187         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
55188         Add --dry-run for --import.
55189         Let user provided command line parameters override configure.ac
55190         settings.
55191
55192 2004-08-12  Simon Josefsson  <jas@extundo.com>
55193
55194         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
55195         as discussed with Paul Eggert in threads rooted at
55196         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
55197         and
55198         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
55199         Before, the test was empty, and relied on ELIDE_CODE in source
55200         code.)
55201         (gl_PREREQ_GETOPT): New macro.
55202         (gl_GETOPT): Use them.
55203
55204 2004-08-12  Simon Josefsson  <jas@extundo.com>
55205
55206         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
55207         * lib/getopt_.h: Renamed from getopt.h.
55208
55209 2004-08-12  Simon Josefsson  <jas@extundo.com>
55210
55211         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
55212         Change default library name from libfoo to libgnu.
55213         Now, if you have a configure.ac that says:
55214                 gl_SOURCE_BASE(gl)
55215                 gl_M4_BASE(gl/m4)
55216                 gl_MODULES(error getopt etcetera)
55217                 gl_INIT
55218         you can import all you need by running:
55219                 ../gnulib/gnulib-tool --import
55220
55221         * modules/getopt (Files): Rename getopt.h to getopt_.h.
55222         (Makefile.am): Rewrite, use logic from argz.
55223         (Include): Use <getopt.h> instead of "getopt.h".
55224
55225 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55226
55227         * modules/argp (Files): Add m4/unlocked-io.m4.
55228         (Depends-on): Add extensions.
55229
55230 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55231
55232         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
55233         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
55234         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
55235         Check for program_invocation_name, program_invocation_short_name,
55236         flockfile, funlockfile, features.h, _getopt_long_only_r.
55237
55238 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55239
55240         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
55241         its complicated substitute.
55242         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
55243         and program_invocation_name.
55244         (__argp_basename) [!_LIBC]: Remove; the only use was
55245         replaced by its body.
55246         (__argp_short_program_name): Change condition from
55247         !defined __argp_short_program_name to
55248         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
55249         to match argp-namefrob.h.
55250         (__argp_failure): Don't assume strerror_r returns char *.
55251         * lib/argp-parse.c (N_): Define unconditionally.
55252         (argp_default_options): Fill out initializers with 0 to avoid
55253         gcc warnings.
55254
55255 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55256
55257         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
55258         getopt1.c.
55259
55260 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
55261
55262         Merge from coreutils.
55263
55264         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
55265
55266         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
55267         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
55268
55269 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
55270
55271         Merge from coreutils.
55272
55273         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
55274         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
55275         for Reliant Unix 5.43.
55276
55277         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
55278         (union fooround): Use uintmax_t, not long int.
55279         The rest is a merge from libc:
55280         [defined _LIBC]: Include <shlib-compat.h>.
55281         (_obstack) [defined _LIBC]: Remove after 2.3.4.
55282
55283         * lib/settime.c (settime): Recode to avoid warning with
55284         Sun Forte C 6U2.
55285
55286         * lib/strverscmp.c: Convert to UTF-8.
55287
55288 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
55289
55290         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
55291         m4/uintmax_t.m4.
55292
55293 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55294
55295         * modules/xalloc-die: New file.
55296         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
55297
55298         * modules/md5 (Files): Add m4/uint32_t.m4.
55299         * modules/sha1: Renamed from modules/sha.
55300         (Files):
55301         Rename lib/sha.h to lib/sha1.h.
55302         Rename lib/sha.c to lib/sha1.c.
55303         Rename m4/sha.m4 to m4/sha1.m4.
55304         (lib_SOURCES): Likewise.
55305         (configure.ac): Rename gl_SHA to gl_SHA1.
55306         (Include): sha.h -> sha1.h.
55307
55308 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55309
55310         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
55311         * m4/sha1.m4: Renamed from sha.m4.
55312         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
55313
55314 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55315
55316         * lib/obstack.h (obstack_empty_p):
55317         Don't assume that chunk->contents is suitably aligned.
55318         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
55319         Likewise. Problem reported by Benno in
55320         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
55321
55322         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
55323         readable.  This could be improved further but it'd take some work.
55324
55325 2004-08-08  Simon Josefsson  <jas@extundo.com>
55326
55327         * modules/xgethostname (Depends-on): Remove exit and error (not
55328         used).
55329
55330         * modules/getpass-gnu: Add getpass.h.
55331         (Depends-on): Add stdbool.
55332         * modules/getpass: Add getpass.h.
55333
55334 2004-08-08  Simon Josefsson  <jas@extundo.com>
55335
55336         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
55337         Check getpass declaration.
55338
55339 2004-08-08  Simon Josefsson  <jas@extundo.com>
55340
55341         * lib/xgethostname.c: Don't include error.h (not used).
55342
55343         * lib/getpass.h: Add.
55344         * lib/getpass.c: Include getpass.h first.
55345
55346 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
55347
55348         * lib/xalloc-die.c: New file.
55349         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
55350         All uses removed.
55351         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
55352         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
55353         xalloc-die.c.
55354         (_, N_, xalloc_die): Move to xalloc-die.c.
55355         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
55356         so that we needn't mess with xalloc_msg_memory_exhausted.
55357
55358         * lib/sha1.h: Renamed from sha.h.
55359         (SHA1_H): Renamed from _SHA_H.
55360         (sha1_ctx): Renamed from sha_ctx.
55361         (sha1_init_ctx): Renamed from sha_init_ctx.
55362         (sha1_process_block): Renamed from sha_process_block.
55363         (sha1_process_bytes): Renamed from sha_process_bytes.
55364         (sha1_finish_ctx): Renamed from sha_finish_ctx.
55365         (sha1_read_ctx): Renamed from sha_read_ctx.
55366         (sha1_stream): Renamed from sha_stream.
55367         (sha1_buffer): Renamed from sha_buffer.
55368         * lib/sha1.c: Likewise; renamed from sha.c.
55369         Do not include <sys/types.h>.
55370         Include <stddef.h> rather than <stdlib.h>.
55371
55372 2004-08-08  Bruno Haible  <bruno@clisp.org>
55373
55374         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
55375         FILESYSTEM_PREFIX_LEN.
55376         * lib/progreloc.c: Likewise.
55377         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
55378
55379 2004-08-06  Simon Josefsson  <jas@extundo.com>
55380
55381         * modules/progname (Depends-on): Don't depend on stdbool.
55382
55383 2004-08-06  Simon Josefsson  <jas@extundo.com>
55384
55385         * modules/getsubopt: New file.
55386         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55387         getsubopt.
55388
55389 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
55390
55391         More merge from coreutils.
55392
55393         * m4/utimens.m4, m4/utimecmp.m4: New files.
55394         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
55395         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
55396         prereq.m4, sha.m4: Import changes from coreutils.
55397
55398 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
55399
55400         More merge from coreutils.
55401         * modules/raise, modules/readtokens0, modules/utimens:
55402         * modules/utimecmp, module/xnanosleep: New files.
55403         * modules/strftime: Add lib/strftime.h.
55404         Change include from <time.h> to "strftime.h".
55405         * modules/yesno: Add lib/yesno.h.
55406         * modules/backupfile: Remove lib/addext.c.
55407         * modules/euidaccess: Add stat-macros.h.
55408         * modules/canonicalize, modules/euidaccess,
55409         modules/filemode, modules/lchown, modules/makepath,
55410         modules/rmdir, modules/stat: Likewise.
55411
55412 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
55413
55414         Merge from tar.
55415         * lib/argp-help.c (make_hol, hol_append): Don't assume that
55416         SIZE_MAX is a valid preprocessor constant.
55417         (__argp_basename): Change from "#ifndef _LIBC"
55418         to "#ifndef __argp_short_program_name", so that
55419         we don't compile these functions for tar.
55420
55421         More merges from coreutils.
55422         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
55423         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
55424         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
55425         * lib/addext.c: Remove; no longer needed.
55426         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
55427         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
55428         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
55429         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
55430         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
55431         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
55432         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
55433         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
55434         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
55435         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
55436         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
55437         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
55438         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
55439         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
55440         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
55441         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
55442         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
55443         Import changes from coreutils.
55444
55445 2004-08-05  Simon Josefsson  <jas@extundo.com>
55446
55447         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
55448
55449 2004-08-05  Simon Josefsson  <jas@extundo.com>
55450
55451         * m4/getsubopt.m4: New file.
55452
55453 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
55454
55455         Merge from coreutils.
55456
55457         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
55458         * m4/getcwd-path-max.m4: New files.
55459
55460         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
55461         FILESYSTEM_PREFIX_LEN ->
55462         FILE_SYSTEM_PREFIX_LEN.
55463         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
55464         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
55465         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
55466         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
55467
55468         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
55469         prerequisite modules now handle the DOS stuff.
55470         Don't check for unistd.h.
55471
55472 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
55473
55474         Merge from coreutils.
55475
55476         * lib/.gdb-history: Remove; this doesn't belong here.
55477
55478         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
55479         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
55480         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
55481         * lib/getcwd.c: New files.
55482
55483         * lib/dirname.h: Include <stdbool.h>.
55484         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
55485         for consistency with POSIX terminology.  All uses changed.
55486         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
55487         (strip_trailing_slashes): Use bool for booleans.
55488         * lib/stripslash.c (strip_trailing_slashes): Likewise.
55489
55490         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
55491         sometimes returns a positive errno value even when it succeeds.
55492         (print_errno_message) [!LIBC]: Fall back on strerror if
55493         __strerror_r fails.
55494
55495         * lib/path-concat.c (mempcpy): Don't define if a system header defines
55496         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
55497         (longest_relative_suffix): New function.
55498         (path_concat): Use it.  Assume first argument is not NULL.
55499         Port to DOS.  Omit redundant separators.
55500         Report an error instead of returning NULL.
55501         Use mempcpy instead of memcpy.
55502         (xpath_concat): Remove: not declared or used.
55503
55504         * lib/same.h: Include <stdbool.h>
55505         (same_name): Return bool, not int.
55506         * lib/same.c (same_name): Likewise.
55507         (errno): Don't declare; we assume C89 or better now.
55508
55509         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
55510         if not already defined.
55511
55512         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
55513         * lib/dup-safer.c (errno): Likewise.
55514
55515 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
55516
55517         Merge from coreutils.
55518         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
55519         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
55520         * modules/path-concat: Don't depend on strdup.
55521
55522 2004-08-03  Simon Josefsson  <jas@extundo.com>
55523
55524         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
55525         * lib/progname.h: Don't include stdbool.h.
55526
55527 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
55528
55529         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
55530         * MODULES.html.sh (func_all_modules): Remove fatal.
55531
55532 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
55533
55534         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
55535
55536 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
55537
55538         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
55539         working.
55540
55541 2004-08-02  Simon Josefsson  <jas@extundo.com>
55542
55543         * lib/getsubopt.h: New file, with comments from Bruno Haible.
55544         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
55545         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
55546
55547 2004-08-01  Simon Josefsson  <jas@extundo.com>
55548
55549         * lib/xgetdomainname.c: Include stdlib.h, for free().
55550
55551 2004-07-19  Bruno Haible  <bruno@clisp.org>
55552
55553         * MODULES.html.sh (func_all_modules): Add dummy.
55554
55555 2004-07-16  Simon Josefsson  <jas@extundo.com>
55556
55557         * modules/dummy: New file.
55558
55559 2004-07-16  Simon Josefsson  <jas@extundo.com>
55560
55561         * lib/dummy.c: New file.
55562
55563 2004-07-16  Bruno Haible  <bruno@clisp.org>
55564
55565         * lib/backupfile.h: Add extern "C" for C++.
55566         * lib/closeout.h: Likewise.
55567         * lib/copy-file.h: Likewise.
55568         * lib/findprog.h: Likewise.
55569         * lib/full-write.h: Likewise.
55570         * lib/pathname.h: Likewise.
55571         * lib/progname.h: Likewise.
55572         * lib/stpcpy.h: Likewise.
55573         * lib/stpncpy.h: Likewise.
55574         * lib/strcase.h: Likewise.
55575         * lib/strstr.h: Likewise.
55576         * lib/xalloc.h: Likewise.
55577
55578         * lib/mbswidth.h: Add extern "C" for C++.
55579         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
55580
55581 2004-07-13  Robert Millan  <robertmh@gnu.org>
55582
55583         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
55584
55585 2004-07-09  Simon Josefsson  <jas@extundo.com>
55586
55587         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
55588         failed without this.)
55589
55590 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55591
55592         * modules/chown (Files): Add lib/fchown-stub.c, since
55593         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
55594
55595 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55596
55597         * lib/fchown-stub.c: New file.
55598
55599 2004-06-24  Jim Meyering  <jim@meyering.net>
55600
55601         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
55602
55603 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55604
55605         * modules/argz: Omit "#include".
55606
55607         * MODULES.html.sh (func_all_modules): Add calloc, to match
55608         2004-06-01 addition of calloc module.
55609
55610 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55611
55612         * m4/argz.m4: New file, which is autoupdated from libtool.
55613
55614 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55615
55616         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
55617         libtool.
55618
55619 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55620
55621         * config/srclist-update: Don't insist on "USA." before the
55622         close-comment, as libtool omits the period and puts the */ on a
55623         separate line.
55624         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
55625         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
55626
55627 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
55628
55629         * modules/argz: New file.
55630         * MODULES.html.sh (func_all_modules): Add argz.
55631
55632 2004-06-12  Jim Meyering  <jim@meyering.net>
55633         and  Paul Eggert  <eggert@cs.ucla.edu>
55634
55635         * modules/hash (Files): Add lib/xalloc.h.
55636         * modules/pipe (Depends-on): Add wait-process.
55637         * modules/stat (Depends-on): Add xalloc.
55638         * modules/userspec (Files): Add lib/userspec.h.
55639         * modules/xstrto
55640
55641         Upgrade from gettext-0.13.
55642         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
55643         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
55644         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
55645
55646 2004-06-10  Jim Meyering  <jim@meyering.net>
55647
55648         * lib/calloc.c: New file.
55649
55650 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
55651
55652         * lib/getdate.y (yylex): Allow space between sign and number.
55653         Problem reported by Dan Jacobson.
55654
55655 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
55656
55657         Merge from coreutils CVS.
55658
55659         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
55660         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
55661         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
55662         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
55663         xstrtol.m4: Fix copyright date and/or serial number.
55664
55665         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
55666         See if we need an fchown replacement.
55667         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
55668         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
55669         and use the replacement function if we detect either defect.
55670
55671         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
55672         gl_UTIMECMP.
55673
55674 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
55675         and  Jim Meyering  <jim@meyering.net>
55676
55677         Merge from coreutils CVS.
55678
55679         * lib/stat-macros.h: New file, with contents from file-type.h
55680         and coreutils' system.h.
55681         * lib/file-type.c: Include "stat-macros.h".
55682         * lib/file-type.h (file_type): Move all macro definitions to new file,
55683         stat-macros.h.
55684
55685         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
55686         Wrap old code with this conditional.
55687         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
55688         function that does not dereference symlinks.
55689         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
55690
55691         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
55692         dependency problems.
55693         (xreadlink): Accept new arg SIZE, for efficiency.
55694         All decls and uses changed.
55695         * lib/xreadlink.h: Include <stddef.h>, for size_t.
55696
55697         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
55698         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
55699
55700         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
55701         sysexits.h.
55702
55703 2004-06-01  Jim Meyering  <jim@meyering.net>
55704
55705         * m4/calloc.m4: New file.
55706
55707 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
55708
55709         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
55710         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
55711         Also, fix a typo in a diagnostic.
55712
55713 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
55714
55715         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
55716         or AC_FUNC_REALLOC.
55717
55718 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
55719
55720         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
55721         macros to be defined.
55722         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
55723         the allocator returns NULL because the requested size is zero.
55724
55725 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
55726
55727         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
55728         var.  Add comment explaining why libc still defines it.  This
55729         merges the following patch from glibc:
55730         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
55731
55732 2004-05-20  Andreas Schwab  <schwab@suse.de>
55733
55734         * m4/free.m4: Replace free if it not known to work, not the other
55735         way round.
55736
55737 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
55738
55739         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
55740         present in glibc since revision 1.1 of this file.
55741         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
55742         obstack_alignment_mask, obstack_alloc, obstack_base,
55743         obstack_blank, obstack_blank_fast, obstack_chunk_size,
55744         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
55745         obstack_grow0, obstack_init, obstack_int_grow,
55746         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
55747         obstack_next_free, obstack_object_size, obstack_ptr_grow,
55748         obstack_ptr_grow_fast, obstack_room): Remove declarations of
55749         nonexistent functions.
55750
55751 2004-05-18  Karl Berry  <karl@gnu.org>
55752
55753         * config/srclist.txt: break link for vasnprintf.c.
55754
55755 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
55756
55757         Port obstack to the AS/400, where pointers are 16 bytes wide and
55758         you cannot cast an integer to a valid pointer.  This patch is
55759         currently waiting to be integrated into glibc; see
55760         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
55761
55762         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
55763         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
55764         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
55765         (struct obstack): temp member is now a union of a pointer and
55766         an integer, instead of an integer.  All integer uses changed.
55767         This does not affect the physical layout of struct obstack,
55768         except on hosts (like the AS/400) where the size or alignment of
55769         void * is greater than that of ptrdiff_t.
55770         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
55771         __STDC__)]: Store temporary in pointer member of union, not
55772         integer member.
55773         * lib/obstack.c: Include <stddef.h>, for offsetof.
55774         (struct fooalign): Remove; it doesn't need a name.
55775         (union fooround): Change double to long double, and add void *.
55776         (DEFAULT_ALIGNMENT): Use offsetof to compute.
55777         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
55778         not a macro.  Hence the values are always int; so remove all
55779         casts-to-int in uses.
55780
55781 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
55782
55783         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
55784         we can get this patch merged into glibc.
55785
55786 2004-05-17  Derek R. Price  <derek@ximbiot.com>
55787             Paul Eggert  <eggert@cs.ucla.edu>
55788
55789         * m4/argp: Depend on alloca.
55790
55791 2004-05-17  Derek R. Price  <derek@ximbiot.com>
55792             Paul Eggert  <eggert@cs.ucla.edu>
55793
55794         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
55795         freecoding.
55796
55797 2004-05-17  Bruno Haible  <bruno@clisp.org>
55798
55799         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
55800         precision that consists of a '.' followed by an empty digit string.
55801         Patch by Tor Lillqvist <tml@iki.fi>.
55802
55803 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55804
55805         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
55806         for backward compatibility with older code.  We need our own
55807         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
55808         it under some other name, and our alloca.h will define it.
55809
55810 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55811             Derek Price  <derek@ximbiot.com>
55812
55813         * lib/alloca.c: Include <alloca.h>, to get our interface.
55814         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
55815         include <alloca.h> first.  Use C89 prototype for alloca; this
55816         requires including <stddef.h> for size_t.  Use extern "C" if C++.
55817         Use #elif for simplicity, since we can assume C89 now.
55818         Don't try to source the system alloca.h since it will not be found
55819         and to prevent recursively including its replacement.
55820         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
55821         * lib/regex.c: Likewise.
55822
55823 2004-05-16  Derek Price  <derek@ximbiot.com>
55824             Paul Eggert  <eggert@cs.ucla.edu>
55825
55826         getline cleanup.  This changes the getndelim2 API: both order of
55827         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
55828         no delimiter).
55829
55830         * lib/getline.c: Don't include stddef.h or stdio.h, since our
55831         interface does that.
55832         (getline): Always use getdelim, so that we don't have two
55833         copies of this code.
55834         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
55835         if available.
55836         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
55837         (GETNDELIM2_MAXIMUM): New macro.
55838         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
55839         instead of the old practice of delim2==0.  All callers changed.
55840         Return -1 on overflow, instead of returning junk.
55841         Do not set *linesize unless allocation succeeds.
55842         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
55843         that we include sys/types.h.
55844         * lib/getnline.h: Likewise.
55845         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
55846         (getndelim2): Reorder arguments.
55847         * lib/getnline.c (getnline, getndelim):
55848         Don't discard the NMAX argument.
55849         (getnline): Invoke getndelim, to avoid code duplication.
55850         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
55851         of (size_t) -1 by callers of the getnline family.
55852
55853 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55854
55855         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
55856         Check for gettimeofday.
55857         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
55858         Check for settimeofday, stime.
55859
55860 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55861
55862         * lib/nanosleep.c (suspended): Change its type from int to
55863         sig_atomic_t volatile.
55864         (first_call): Make it private to rpl_nanosleep, and have it
55865         be zero initially as that's a bit faster.
55866         (my_usleep): Round up fractional times instead of truncating them,
55867         as this is the usual meaning for 'sleep'.
55868
55869         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
55870         doesn't work.
55871         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
55872         (ENOSYS): Define if not defined.
55873         (settime): Fall back on stime if it exists and settimeofday fails.
55874         But don't bother with fallbacks if a method fails with errno == EPERM.
55875
55876 2004-05-11  Jim Meyering  <jim@meyering.net>
55877
55878         Prior to this change, the save_cwd caller required read access to the
55879         current directory on most systems (ones with the fchdir function).
55880
55881         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
55882         fails, try write-only, and finally, resort to using xgetcwd.
55883
55884 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
55885
55886         * lib/obstack.c, obstack.h: Import changes from libc.
55887
55888 2004-04-28  Bruno Haible  <bruno@clisp.org>
55889
55890         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
55891         also implicitly appends .exe to executables.
55892         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
55893         accepts Windows pathnames.
55894         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
55895         Treat Cygwin like Windows, since it now accepts Windows pathnames.
55896         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
55897         Treat Cygwin like Windows, since it now accepts Windows pathnames.
55898         Reported by Derek Robert Price <derek@ximbiot.com>.
55899
55900 2004-04-21  Karl Berry  <karl@gnu.org>
55901
55902         * config/srclist.txt (localcharset.c): break sync.
55903
55904 2004-04-20  Paul Eggert  <eggert@twinsun.com>
55905
55906         * m4/host-os.m4: Add a copyright notice.
55907
55908 2004-04-20  Jim Meyering  <jim@meyering.net>
55909
55910         Change UTILS_ to gl_ in AC_DEFINE'd names.
55911         Change utils_- and jm_-prefixed variables, too.
55912         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
55913         UTILS_FUNC_MKDIR_TRAILING_SLASH.
55914         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
55915
55916         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
55917         Don't emit trailing blanks.
55918         Also rename jm_-prefixed variables to have gl_ prefix.
55919
55920         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
55921         Also rename jm_-prefixed variables to have gl_ prefix.
55922
55923         * m4/jm-macros.m4: Reflect the renamings.
55924         * m4/prereq.m4: Likewise.
55925
55926 2004-04-20  Jim Meyering  <jim@meyering.net>
55927
55928         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
55929         memory.
55930
55931 2004-04-20  Jim Meyering  <jim@meyering.net>
55932             Bruno Haible  <bruno@clisp.org>
55933
55934         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
55935         memory when realloc fails.
55936
55937 2004-04-19  Jim Meyering  <jim@meyering.net>
55938
55939         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
55940         now that readutmp.c may call `free (0)'.
55941
55942 2004-04-19  Bruno Haible  <bruno@clisp.org>
55943
55944         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
55945         * m4/inttypes_h.m4: Likewise.
55946         * m4/stdint_h.m4: Likewise.
55947         * m4/intmax_t.m4: Likewise.
55948         * m4/uintmax_t.m4: Likewise.
55949
55950 2004-04-18  Jim Meyering  <jim@meyering.net>
55951
55952         * m4/prereq.m4: Don't forbid jm_ prefix.
55953
55954         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
55955         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
55956         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
55957         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
55958         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
55959         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
55960         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
55961         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
55962         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
55963         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
55964         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
55965         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
55966         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
55967         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
55968         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
55969         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
55970         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
55971         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
55972         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
55973
55974 2004-04-18  Jim Meyering  <jim@meyering.net>
55975
55976         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
55977         failure, don't leak memory and do call END_UTMP_ENT.
55978
55979 2004-04-16  Jim Meyering  <jim@meyering.net>
55980
55981         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
55982         coreutils' stat program.
55983         (gl_PREREQ): Don't require jm_PREREQ_STAT.
55984
55985 2004-04-11  Paul Eggert  <eggert@twinsun.com>
55986
55987         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
55988         C89.
55989         (CHAR_BIT): Remove, since we assume C89.
55990         Include <stdint.h> if available, as per current Autoconf CVS advice.
55991
55992 2004-03-31  Jim Meyering  <jim@meyering.net>
55993
55994         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
55995         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
55996         * m4/xalloc.m4: Likewise.
55997
55998 2004-03-30  Paul Eggert  <eggert@twinsun.com>
55999
56000         Merge from coreutils.
56001
56002         * m4/inttostr.m4: New file.
56003         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
56004         Require AM_STDBOOL_H and gl_TIMESPEC instead.
56005         Require gl_CLOCK_TIME.
56006         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
56007
56008 2004-03-30  Paul Eggert  <eggert@twinsun.com>
56009
56010         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
56011         not bool, to be more consistent with Unix conventions.
56012         Suggested by Bruno Haible.
56013
56014         Merge from coreutils.
56015
56016         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
56017         * lib/umaxtostr.c: New files.
56018
56019         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
56020         the usual <time.h> dance.
56021         (get_date): Change signature to support fractional time stamps.
56022         All callers changed.
56023         * lib/getdate.y: Include "getdate.h" first, as we can now
56024         assume C89 and don't need to worry about 'const'.
56025         Similarly, include "unlocked-io.h" near start, not in middle.
56026         Include <limits.h>.
56027         (textint.value): Use long int rather than int.
56028         (textint.digits): Use size_t rather than int.
56029         (BILLION, LOG10_BILLION): New constants.
56030         (parser_control): New member rel_ns.  Members day_ordinal,
56031         time_zone, month, day, hour, minutes, rel_year, rel_month,
56032         rel_day, rel_hour, rel_minutes, rel_seconds
56033         are now long int, not int.  Member seconds is now struct timespec,
56034         not int.  New member timespec_seen.  Members dates_seen, days_seen,
56035         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
56036         not int.
56037         (%union.intval): Now long int, not int.
56038         New member timespec.
56039         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
56040         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
56041         (spec): Now is a timespec or an item list.
56042         (timespec, items): New nonterminals.
56043         (time, rel, relunit, number, get_date):
56044         Add support for fractional seconds.
56045         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
56046         (gmtime, localtime, mktime): Remove decls; not needed with C89.
56047         (to_hour): First arg is now long int, not int.
56048         (to_year): Returns long int, not int.
56049         Don't treat year -70 like 70.
56050         (tm_diff): Returns long int, not int.
56051         (lookup_word): Use bool instead of int when appropriate.
56052         (yylex): Use size_t for count, not int.
56053         Detect overflow when parsing large integer constants.
56054         Add support for fractions.
56055         (get_date): Make pointers 'const' if possible.
56056         Use more-portable code to detect integer overflow.
56057         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
56058         Don't use ctime; it's not reliable if the year has >4 digits.
56059
56060         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
56061         This is for compatibility with BSD.
56062
56063         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
56064         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
56065         From coreutils' system.h.
56066
56067         * lib/userspec.c: Don't include "posixver.h".
56068         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
56069         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
56070         compatible extension.  Simplify code by removing a boolean int
56071         that was always nonzero if a string was nonnull.
56072
56073 2004-03-30  Jim Meyering  <jim@meyering.net>
56074
56075         Merge from coreutils.
56076
56077         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
56078         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
56079         on some systems one must include <grp.h> before it.
56080         Reported by Christian Krackowizer.
56081
56082 2004-03-30  Jim Meyering  <jim@meyering.net>
56083
56084         Merge from coreutils.
56085
56086         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
56087
56088         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
56089         an empty input stream.
56090
56091         * lib/readtokens.c: Include <stdbool.h>.
56092         (readtoken): Use `size_t' rather than int/long.
56093         All callers adjusted.
56094         Use `bool' rather than `int' where appropriate.
56095         Use memset rather than an explicit loop.
56096         Use x2nrealloc rather than xrealloc.
56097         Allow the use of `\0' as a delimiter.
56098         (readtokens): Likewise.
56099         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
56100
56101 2004-03-30  Jim Meyering  <jim@meyering.net>
56102
56103         * m4/realloc.m4: Remove file, since now it does no more than
56104         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
56105         the `configure.ac' section of module/realloc.
56106         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
56107
56108 2004-03-30  Bruno Haible  <bruno@clisp.org>
56109
56110         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
56111         nonnull.
56112
56113 2004-03-29  Paul Eggert  <eggert@twinsun.com>
56114
56115         Merge changes to getloadavg.c from coreutils and Emacs.
56116
56117         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
56118         Define to an expression, not to the empty string.
56119         Include cloexec.h and xalloc.h.
56120         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
56121         Use set_cloexec_flag rather than rolling our own.
56122         * lib/cloexec.c, lib/cloexec.h: New files.
56123
56124 2004-03-29  Paul Eggert  <eggert@twinsun.com>
56125
56126         * m4/cloexec.m4: New file.
56127
56128 2004-03-18  Paul Eggert  <eggert@twinsun.com>
56129
56130         * lib/getopt.h: Sync with libc CVS.
56131
56132 2004-03-18  Paul Eggert  <eggert@twinsun.com>
56133             Bruno Haible  <bruno@clisp.org>
56134
56135         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
56136         mbswidth.
56137
56138 2004-03-18  Paul Eggert  <eggert@twinsun.com>
56139             Bruno Haible  <bruno@clisp.org>
56140
56141         * lib/mbswidth.h: Include <wchar.h> only if
56142         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
56143         <wchar.h>.
56144         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
56145
56146 2004-03-09  Paul Eggert  <eggert@twinsun.com>
56147
56148         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
56149         Sync with libc CVS.
56150         * lib/getopt_int.h: New file, also synced from libc.
56151
56152 2004-03-09  Paul Eggert  <eggert@twinsun.com>
56153
56154         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
56155         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
56156         Bring back getopt.c, getopt.h, getopt1.c.
56157
56158 2004-03-07  Paul Eggert  <eggert@twinsun.com>
56159
56160         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
56161         All uses changed.  Check for sa_sigaction member; this fixes
56162         a bug first reported by Jason Andrade in
56163         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
56164
56165 2004-03-07  Paul Eggert  <eggert@twinsun.com>
56166
56167         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
56168         '#if' expressions.  Unlike the code it replaces, it does not
56169         depend on (defined _SC_PAGESIZE).  However, it does depend on
56170         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
56171         first reported by Jason Andrade in
56172         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
56173
56174 2004-02-25  Simon Josefsson  <jas@extundo.com>
56175
56176         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
56177
56178 2004-02-25  Simon Josefsson  <jas@extundo.com>
56179
56180         * lib/strdup.h: New file.
56181         * lib/strdup.c: Include it.
56182         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
56183         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
56184
56185 2004-02-23  Karl Berry  <karl@gnu.org>
56186
56187         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
56188         (from fencepost.gnu.org:/gd/gnuorg).
56189
56190 2004-02-23  Karl Berry  <karl@gnu.org>
56191
56192         * config/srclistvars.sh (GNUORG) [karl]: redefine.
56193         * config/srclist.txt: add maintain/standards documents.
56194
56195 2004-02-18  Bruno Haible  <bruno@clisp.org>
56196
56197         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
56198         Reported by Derek Robert Price <derek@ximbiot.com>.
56199
56200 2004-02-16  Karl Berry  <karl@gnu.org>
56201
56202         * config/mkinstalldirs, install-sh: update from automake.
56203
56204 2004-02-06  Karl Berry  <karl@gnu.org>
56205
56206         * m4/po.m4: update from gettext 0.14.1.
56207
56208 2004-02-06  Karl Berry  <karl@gnu.org>
56209
56210         * lib/config.charset: update from gettext 0.14.1.
56211
56212 2004-02-05  Paul Eggert  <eggert@twinsun.com>
56213
56214         Add comments and code, prompted by suggestions from Bruno Haible
56215         for sh-quote.
56216         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
56217         describing the enum quoting_style values.
56218         * lib/quotearg.c (quotearg_alloc): New function.
56219         (quotearg_buffer_restyled): Treat lone { and } as special.
56220         Treat = as special.  Work around bug with older shells
56221         that "see" a '\' that is really the 2nd byte of a multibyte char.
56222         Quote empty string with shell_quoting_style.
56223
56224 2004-02-03  Bruno Haible  <bruno@clisp.org>
56225
56226         * m4/pipe.m4: New file, from GNU gettext.
56227
56228 2004-02-03  Bruno Haible  <bruno@clisp.org>
56229
56230         * lib/pipe.h: New file, from GNU gettext.
56231         * lib/pipe.c: New file, from GNU gettext.
56232
56233 2004-01-27  Bruno Haible  <bruno@clisp.org>
56234
56235         * m4/execute.m4: New file, from GNU gettext.
56236
56237 2004-01-27  Bruno Haible  <bruno@clisp.org>
56238
56239         * lib/execute.h: New file, from GNU gettext.
56240         * lib/execute.c: New file, from GNU gettext.
56241         * lib/w32spawn.h: New file, from GNU gettext.
56242
56243 2004-01-24  Paul Eggert  <eggert@twinsun.com>
56244
56245         Merge from diffutils.
56246
56247         * lib/file-type.c (file_type): Add typed memory objects.
56248         * lib/file-type.h (S_TYPEISTMO): New macro.
56249
56250         * lib/c-stack.h (c_stack_action): Remove argv argument.
56251         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
56252         (die): Don't calculate message unless segv_action returns.
56253         (get_stack_location, min_address_from_argv, max_address_from_argv,
56254         volatile stack_base, volatile_stack_size): Remove.
56255         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
56256         that every segmentation violation is a stack overflow.  (Ouch!)
56257         See Debian bug 136249 (still outstanding) for more info about why
56258         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
56259
56260 2004-01-24  Paul Eggert  <eggert@twinsun.com>
56261
56262         Exit-status fix from coreutils.
56263
56264         Use exit_failure consistently in place of EXIT_FAILURE,
56265         so that program exit statuses are consistent on failure.
56266
56267         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
56268         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
56269         * lib/argmatch.h: Comment fix to match the above.
56270         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
56271         Now a macro referring to exit_failure, instead of a separate
56272         variable.  Include "exitfail.h" to get it.
56273         * lib/xstrtol.h: Include "exitfail.h".
56274         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
56275
56276         * lib/long-options.c (parse_long_options): Use prototype
56277         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
56278         for clarity.
56279
56280 2004-01-21  Jim Meyering  <jim@meyering.net>
56281
56282         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
56283         so as not to conflict with a different-sized __mktime_internal
56284         function in GNU libc.
56285         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
56286         Problem building statically-linked `ls' reported by Michael Brunnbauer.
56287
56288 2004-01-20  Karl Berry  <karl@gnu.org>
56289
56290         * config/config.guess: update from config.
56291
56292         * config/srclistvars.sh: GNUWWWLICENSES for karl.
56293
56294 2004-01-20  Bruno Haible  <bruno@clisp.org>
56295
56296         Safer stack allocation.
56297         * lib/setenv.c: Include allocsa.h.
56298         (alloca): Remove fallback definition.
56299         (freea): Remove macro.
56300         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
56301         instead of freea.
56302
56303 2004-01-20  Bruno Haible  <bruno@clisp.org>
56304
56305         * m4/eealloc.m4: New file, from GNU gettext.
56306
56307 2004-01-20  Bruno Haible  <bruno@clisp.org>
56308
56309         * m4/allocsa.m4: New file, from GNU gettext.
56310
56311 2004-01-20  Bruno Haible  <bruno@clisp.org>
56312
56313         * lib/xallocsa.h: New file, from GNU gettext.
56314         * lib/xallocsa.c: New file, from GNU gettext.
56315
56316 2004-01-20  Bruno Haible  <bruno@clisp.org>
56317
56318         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
56319
56320 2004-01-20  Bruno Haible  <bruno@clisp.org>
56321
56322         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
56323         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
56324         specially.
56325
56326 2004-01-20  Bruno Haible  <bruno@clisp.org>
56327
56328         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
56329         patch.
56330
56331 2004-01-20  Bruno Haible  <bruno@clisp.org>
56332
56333         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
56334
56335 2004-01-20  Bruno Haible  <bruno@clisp.org>
56336
56337         * lib/eealloc.h: New file.
56338
56339 2004-01-20  Bruno Haible  <bruno@clisp.org>
56340
56341         * lib/binary-io.h: Avoid warnings on Cygwin.
56342
56343 2004-01-20  Bruno Haible  <bruno@clisp.org>
56344
56345         * lib/allocsa.h: New file, from GNU gettext.
56346         * lib/allocsa.c: New file, from GNU gettext.
56347
56348 2004-01-18  Karl Berry  <karl@gnu.org>
56349
56350         * doc/gpl.texi, doc/lgpl.texi: new files.
56351
56352 2004-01-18  Karl Berry  <karl@gnu.org>
56353
56354         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
56355         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
56356
56357 2004-01-15  Paul Eggert  <eggert@twinsun.com>
56358
56359         Merge from coreutils.
56360
56361         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
56362         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
56363         (gl_DEFAULT_POSIX2_VERSION): Move
56364         the documentation from 'configure' into 'config.hin',
56365         so that 'configure --help' isn't burdened by it and
56366         we don't have to worry about its formatting there.
56367         Reword the documentation so that it's more succinct
56368         and can be run together into a single paragraph.
56369         * m4/same.m4 (gl_SAME): Check for pathconf.
56370
56371 2004-01-15  Paul Eggert  <eggert@twinsun.com>
56372
56373         Merge from coreutils.
56374
56375         * lib/posixver.c: Include posixver.h.
56376
56377         * lib/same.c: Include <stdbool.h>, <limits.h>.
56378         (_POSIX_NAME_MAX): Define if not defined.
56379         (MIN): New macro.
56380         (same_name): If file names are silently truncated, report
56381         that the file names are the same if they are the same after
56382         the silent truncation.
56383
56384         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
56385         conversion function.
56386         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
56387         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
56388         longer needed.
56389
56390 2004-01-15  Jim Meyering  <jim@meyering.net>
56391
56392         Merge from coreutils.
56393
56394         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
56395         if no library is required.
56396         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
56397         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
56398         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
56399         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
56400         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
56401         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
56402         value, $ac_cv_search_crypt, if it's "none required".
56403         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
56404         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
56405         not gl_FUNC_GETLOADAVG.
56406         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
56407         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
56408
56409 2004-01-15  Jim Meyering  <jim@meyering.net>
56410
56411         Merge from coreutils.
56412
56413         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
56414         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
56415         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
56416
56417         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
56418         optional configure-time default.
56419
56420         * lib/version-etc.c (version_etc_copyright): Update copyright date.
56421
56422         * lib/xreadlink.c (xreadlink): Correct outdated comment.
56423
56424 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
56425
56426         Merge from coreutils.
56427
56428         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
56429         value, $ac_cv_search_nanosleep, if it's "none required".
56430
56431 2004-01-14  Paul Eggert  <eggert@twinsun.com>
56432
56433         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
56434         with like-named macro in fnmatch.c.
56435         (EXT): Use an internal constant instead.
56436
56437         Merge fnmatch patches from glibc.
56438         * lib/fnmatch.c (mbsinit): Remove define.
56439         Add libc_hidden_ver (__fnmatch, fnmatch).
56440         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
56441         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
56442
56443 2004-01-14  Karl Berry  <karl@gnu.org>
56444
56445         * config/install-sh: update from automake.
56446
56447 2004-01-13  Karl Berry  <karl@gnu.org>
56448
56449         * config/install-sh: update from automake.
56450
56451 2004-01-09  Karl Berry  <karl@gnu.org>
56452
56453         * config/install-sh: update from automake.
56454
56455 2004-01-05  Karl Berry  <karl@gnu.org>
56456
56457         * config/config.{sub,guess}: update from config.
56458
56459 2003-12-31  Karl Berry  <karl@gnu.org>
56460
56461         * config/depcomp: update from automake.
56462
56463 2003-12-14  Karl Berry  <karl@gnu.org>
56464
56465         * lib/config.charset: update from gettext-runtime.
56466
56467 2003-12-03  Paul Eggert  <eggert@twinsun.com>
56468
56469         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
56470         Bug reported by Alfred M. Szmidt.
56471
56472 2003-12-03  Bruno Haible  <bruno@clisp.org>
56473
56474         * m4/gettext.m4: Upgrade from gettext-0.13.
56475         * m4/po.m4: Upgrade from gettext-0.13.
56476         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
56477         * m4/intmax.m4: New file, from gettext-0.13.
56478         * m4/printf-posix.m4: New file, from gettext-0.13.
56479
56480 2003-11-29  Karl Berry  <karl@gnu.org>
56481
56482         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
56483
56484 2003-11-25  Paul Eggert  <eggert@twinsun.com>
56485             Bruno Haible  <bruno@clisp.org>
56486
56487         * lib/printf-parse.h: Don't include sys/types.h.
56488         (ARG_NONE): New macro.
56489         (char_directive): Change type of *arg_index fields to size_t.
56490         * lib/printf-parse.c: Don't include sys/types.h.
56491         (SSIZE_MAX): Remove macro.
56492         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
56493         Remove unnecessary overflow check.
56494         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
56495         fields.
56496
56497 2003-11-25  Bruno Haible  <bruno@clisp.org>
56498
56499         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
56500
56501 2003-11-25  Bruno Haible  <bruno@clisp.org>
56502
56503         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
56504         gt_TYPE_SSIZE_T.
56505
56506 2003-11-24  Paul Eggert  <eggert@twinsun.com>
56507
56508         * modules/alloca: Remove dependency on xalloc.
56509
56510 2003-11-24  Paul Eggert  <eggert@twinsun.com>
56511
56512         * lib/alloca.c: Remove dependency on xalloc module.
56513         (xalloc_die): Remove.
56514         (memory_full) [!defined emacs]: New macro.
56515         [!defined emacs]: Don't include xalloc.h.
56516         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
56517         address arithmetic overflows.  Change datatypes a bit to avoid
56518         unnecessary casts.
56519
56520 2003-11-22  Jim Meyering  <jim@meyering.net>
56521
56522         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
56523         s/size/size_t/.
56524
56525 2003-11-21  Karl Berry  <karl@gnu.org>
56526
56527         * config/config.{sub,guess}: update from config.
56528
56529 2003-11-18  Karl Berry  <karl@gnu.org>
56530
56531         * config/config.{sub,guess}: update from config.
56532
56533         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
56534
56535 2003-11-17  Paul Eggert  <eggert@twinsun.com>
56536
56537         * README: Mention that S+T cannot overflow if S is the size of
56538         an existing object and T is sufficiently small.
56539
56540 2003-11-17  Jim Meyering  <jim@meyering.net>
56541
56542         On systems without utime and without a utimes function capable of
56543         dealing with a NULL struct utimbuf* argument, this utime replacement
56544         could -- in unusual circumstances -- leak a file descriptor.
56545         * lib/utime.c: Include <unistd.h> and <errno.h>.
56546         (utime_null): Be sure to close `fd' and to preserve errno.
56547         Reported by Geoff Collyer via Arnold Robbins.
56548
56549 2003-11-17  Bruno Haible  <bruno@clisp.org>
56550
56551         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
56552         (Depends-on): Add xsize.
56553
56554 2003-11-17  Bruno Haible  <bruno@clisp.org>
56555
56556         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
56557
56558 2003-11-17  Bruno Haible  <bruno@clisp.org>
56559
56560         * lib/vasnprintf.c (alloca): Remove fallback definition.
56561         (freea): Remove definition.
56562         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
56563         Reported by Paul Eggert.
56564
56565 2003-11-16  Paul Eggert  <eggert@twinsun.com>
56566             Bruno Haible  <bruno@clisp.org>
56567
56568         Protect against address arithmetic overflow.
56569         * lib/printf-args.h: Include stddef.h.
56570         (arguments): Change type of field 'count' to size_t.
56571         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
56572         'unsigned int' where appropriate.
56573         * lib/printf-parse.h: Include sys/types.h.
56574         (char_directive): Change type of *arg_index fields to ssize_t.
56575         (char_directives): Change type of fields 'count', max_*_length to
56576         size_t.
56577         * lib/printf-parse.c: Include sys/types.h and xsize.h.
56578         (SSIZE_MAX): Define fallback value.
56579         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
56580         instead of 'int' where appropriate. Check a_allocated, d_allocated
56581         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
56582         * lib/vasnprintf.c: Include xsize.h.
56583         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
56584         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
56585         overflow. Avoid wraparound when converting a width or precision from
56586         decimal to binary.
56587
56588 2003-11-16  Bruno Haible  <bruno@clisp.org>
56589
56590         Update from GNU gettext.
56591         * lib/printf-parse.c: Generalize to it can be compiled for wide
56592         strings.
56593         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
56594         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
56595         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
56596         SNPRINTF): New macros.
56597         Don't include <alloca.h> if the file is used inside libintl.
56598         (local_wcslen): New function, for Solaris 2.5.1.
56599         (VASNPRINTF): Use it instead of wcslen.
56600
56601 2003-11-16  Bruno Haible  <bruno@clisp.org>
56602
56603         * lib/xsize.h (xmax): New function.
56604         (xsum, xsum3, xsum4): Declare as "pure" functions.
56605
56606 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56607
56608         * modules/xalloc (Files): Undo latest change, since xalloc.h
56609         no longer needs SIZE_MAX or PTRDIFF_MAX.
56610
56611 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56612
56613         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
56614         gl_PTRDIFF_MAX.
56615
56616 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56617
56618         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
56619         "return", to pacify some unknown compiler.  Problem reported
56620         by Joerg Schilling.
56621
56622 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56623
56624         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
56625         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
56626         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
56627         heuristic is just as accurate as far as we know, and it removes a
56628         dependency on size_max.m4 and ptrdiff_max.m4.
56629
56630 2003-11-11  Bruno Haible  <bruno@clisp.org>
56631
56632         * modules/xsize (Files): Add m4/size_max.m4.
56633         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
56634
56635 2003-11-11  Bruno Haible  <bruno@clisp.org>
56636
56637         * m4/size_max.m4: New file.
56638         * m4/ptrdiff_max.m4: New file.
56639         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
56640         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
56641         (gl_XALLOC): Invoke it.
56642
56643 2003-11-11  Bruno Haible  <bruno@clisp.org>
56644
56645         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
56646         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
56647         defined.
56648
56649 2003-11-10  Paul Eggert  <eggert@twinsun.com>
56650
56651         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
56652         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
56653         rejected some allocations of exactly SIZE_MAX - 2 bytes.
56654         From Bruno Haible.
56655         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
56656         not (size_t) -1, since it's defined here.
56657
56658 2003-11-09  Karl Berry  <karl@gnu.org>
56659
56660         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
56661
56662 2003-11-06  Paul Eggert  <eggert@twinsun.com>
56663
56664         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
56665         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
56666         Reject sizes of exactly SIZE_MAX bytes.
56667         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
56668         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
56669
56670 2003-11-05  Bruno Haible  <bruno@clisp.org>
56671
56672         * lib/xsize.h: Include limits.h, to avoid a possible collision with
56673         SIZE_MAX defined in <limits.h> on Solaris.
56674
56675 2003-11-04  Jim Meyering  <jim@meyering.net>
56676
56677         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
56678         variable names, rather than @VAR@.
56679         * modules/poll: Likewise.
56680
56681 2003-11-04  Bruno Haible  <bruno@clisp.org>
56682
56683         * modules/xsize: New file.
56684         * modules/linebreak: Depend on xsize.
56685         * MODULES.html.sh (func_all_modules): Add xsize.
56686
56687 2003-11-04  Bruno Haible  <bruno@clisp.org>
56688
56689         * m4/xsize.m4: New file.
56690
56691 2003-11-04  Bruno Haible  <bruno@clisp.org>
56692
56693         * lib/xsize.h: New file.
56694         * lib/linebreak.c: Include xsize.h.
56695         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
56696         argument for overflow.
56697         Suggested by Paul Eggert.
56698
56699 2003-11-03  Karl Berry  <karl@gnu.org>
56700
56701         * config/config.{guess,sub}: update from config.
56702
56703 2003-11-03  Jim Meyering  <jim@meyering.net>
56704
56705         * modules/userspec (lib_SOURCES): Add userspec.h.
56706         (Include): Add "userspec.h".
56707         Improve description.
56708
56709 2003-11-03  Jim Meyering  <jim@meyering.net>
56710
56711         * lib/userspec.c: Include "userspec.h".
56712         * lib/userspec.h: New file.
56713
56714 2003-11-03  Bruno Haible  <bruno@clisp.org>
56715
56716         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
56717
56718 2003-11-03  Bruno Haible  <bruno@clisp.org>
56719
56720         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
56721         available, to avoid (extremely rare) race condition.
56722         Suggested by Paul Eggert.
56723
56724 2003-11-02  Karl Berry  <karl@gnu.org>
56725
56726         * config/srclist.txt (vasprintf.c): sync broken, sigh.
56727
56728 2003-10-31  Paul Eggert  <eggert@twinsun.com>
56729
56730         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
56731         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
56732         (read_filesystem_list): Set and use me_type_malloced.
56733         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
56734         whatever the type happens to be), for brevity and consistency.
56735         Check for size calculation overflow on Alphas running OSF/1.
56736
56737 2003-10-31  Jim Meyering  <jim@meyering.net>
56738
56739         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
56740
56741         * lib/linebuffer.c: Include <string.h> for declaration of memset.
56742
56743 2003-10-30  Paul Eggert  <eggert@twinsun.com>
56744             Bruno Haible  <bruno@clisp.org>
56745
56746         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
56747         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
56748
56749 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
56750
56751         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
56752         netbsd*-gnu*.  Suggested by Robert Millan.
56753
56754 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56755
56756         * modules/group-member: Depend on stdbool.
56757
56758 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56759
56760         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
56761
56762 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56763
56764         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
56765         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
56766         after the 'gnu' in these cases.  This fixes some bugs in the
56767         previous change, and is based on suggestions by Robert Millan.
56768
56769 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56770
56771         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
56772         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
56773         no longer needed.
56774         * lib/quotearg.c (quotearg_n_options): Use it.
56775         * lib/group-member.c: Include <stdbool.h>.
56776         (free_group_info): Arg is now const *; don't free arg.
56777         (get_group_info): Now returns bool and accepts struct group_info *,
56778         rather than returning a malloc'ed struct group_info *.
56779         All uses changed.  Check for overflow in internal size calculation.
56780
56781         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
56782         rather than xmalloc/xrealloc.
56783         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
56784         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
56785         conformance bug: the old code used a pointer after freeing the
56786         storage that it addressed.
56787         * lib/hash.c (hash_initialize): Simplify the code by using
56788         xalloc_oversized rather than doing it by hand.
56789         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
56790         the buffer preserved.  Use free and xmalloc instead.
56791         * lib/quotearg.c (quotearg_n_options): Likewise.
56792         Use a simpler test for size overflow.  Don't use xalloc_oversized
56793         because unsigned int might be wider than size_t (!); this suggests
56794         that we should switch from unsigned int to size_t for slot numbers.
56795
56796 2003-10-28  Paul Eggert  <eggert@twinsun.com>
56797
56798         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
56799         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
56800         NetBSD kernels.  Requested by Richard Stallman.
56801
56802 2003-10-27  Paul Eggert  <eggert@twinsun.com>
56803
56804         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
56805         to allocate the returned structure.  Do not allocate a subarray,
56806         as x2nrealloc will do that.
56807         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
56808         instead of xnrealloc.
56809         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
56810
56811 2003-10-27  Bruno Haible  <bruno@clisp.org>
56812
56813         * lib/stdbool_.h: Better support for BeOS.
56814
56815 2003-10-26  Paul Eggert  <eggert@twinsun.com>
56816
56817         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
56818         now uses inline.
56819
56820 2003-10-26  Paul Eggert  <eggert@twinsun.com>
56821
56822         * lib/xalloc.h (xalloc_oversized): New static inline function, for
56823         callers that want to do their own size-overflow checking.  Include
56824         <stdbool.h>, since xalloc_oversized returns bool.
56825         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
56826         to use xalloc_oversized.
56827
56828         Add two functions x2realloc, x2nrealloc, for programs that grow
56829         arrays dynamically by doubling their sizes.
56830         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
56831         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
56832         New functions.
56833
56834         Port to C99 semantics for 'inline' of external functions.
56835         Bug reported by Bruno Haible.
56836         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
56837         with the old contents of xnmalloc.
56838         (xnmalloc, xmalloc): Use it.
56839         (xnrealloc_inline): New static inline function,
56840         with the old contents of xnrealloc.
56841         (xnrealloc, xrealloc): Use it.
56842
56843         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
56844         that.
56845
56846 2003-10-26  Karl Berry  <karl@gnu.org>
56847
56848         * config/srclist.txt (COPYING.DOC): no longer available from
56849         /gd/gnuorg; don't know where the ultimate source is.
56850
56851 2003-10-25  Paul Eggert  <eggert@twinsun.com>
56852
56853         Fix several address-calculation bugs in the hash modules,
56854         plus some minor code cleanup.
56855
56856         * lib/hash.h: Include <stdbool.h>, for bool.
56857         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
56858         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
56859         hash_get_n_entries, hash_get_max_bucket_length,
56860         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
56861         hash_rehash): Use size_t rather than unsigned.
56862         * lib/hash.c (struct hash_table, hash_get_n_buckets,
56863         hash_get_n_buckets_used, hash_get_n_entries,
56864         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
56865         hash_get_entries, hash_do_for_each, hash_string, is_prime,
56866         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
56867         Likewise.
56868         (SIZE_MAX): Define if not defined.
56869         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
56870         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
56871         hash_print):
56872         Use const * when possible.
56873         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
56874         (check_tuning): Fix bug: if tuning parameters were very close to
56875         0 or 1, rounding errors could have caused subscript violations.
56876         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
56877         (hash_initialize): Add 'fail:' label
56878         to free table and return NULL, and use it to simplify code.
56879         Use calloc rather than clearing the storage ourself.
56880         (hash_initialize, hash_rehash): Check for arithmetic overflow in
56881         buffer size calculations.
56882         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
56883         Include <stddef.h>, for size_t.
56884         * lib/hash-pjw.c (hash_pjw): Likewise.
56885         Switch to method described by Bruno Haible.
56886         Include <limits.h>, for CHAR_BIT.
56887         (SIZE_BITS): New macro.
56888
56889 2003-10-23  Paul Eggert  <eggert@twinsun.com>
56890
56891         * m4/getline.m4 (AM_FUNC_GETLINE):
56892         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
56893         hosts.  Problem reported by Derek Robert Price in
56894         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
56895         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
56896         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
56897
56898 2003-10-21  Paul Eggert  <eggert@twinsun.com>
56899
56900         * lib/getndelim2.c (getndelim2): When size calculation overflows,
56901         ceiling the allocation at NMAX bytes rather than silently
56902         discarding input bytes before NMAX is reached.  This makes
56903         a difference only if NMAX exceeds SIZE_MAX / 2.
56904
56905         * lib/obstack.c: Merge from glibc.
56906         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
56907         Add libc_hidden_def (_obstack_newchunk).
56908         (_obstack_free) [! defined _LIBC]: Remove.
56909         [defined _LIBC]: Make a strong alias from obstack_free, rather than
56910         a clone of the function body.
56911         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
56912         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
56913
56914         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
56915         glibc.
56916         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
56917         arg to memcpy.
56918
56919         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
56920         (obstack_ptr_grow_fast, obstack_int_grow_fast):
56921         Don't use lvalue casts, as GCC plans to remove support for them
56922         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
56923         was also present in the non-GCC version, indicating that this
56924         code had always been buggy and had never been widely used.
56925         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
56926         Use the fast variant of each macro, rather than copying the
56927         definiens of the fast variant; that way, we'll be more likely to
56928         catch future bugs in the fast variants.
56929
56930 2003-10-20  Bruno Haible  <bruno@clisp.org>
56931
56932         * modules/wait-process: New file.
56933         * MODULES.html.sh (func_all_modules): Add wait-process.
56934
56935 2003-10-20  Bruno Haible  <bruno@clisp.org>
56936
56937         * m4/wait-process.m4: New file.
56938
56939 2003-10-20  Bruno Haible  <bruno@clisp.org>
56940
56941         * lib/wait-process.h: New file, from GNU gettext.
56942         * lib/wait-process.c: New file, from GNU gettext.
56943
56944 2003-10-19  Jim Meyering  <jim@meyering.net>
56945
56946         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
56947         HPUX 10.20.
56948
56949 2003-10-18  Karl Berry  <karl@gnu.org>
56950
56951         * config/config.guess: update from config.
56952
56953 2003-10-16  Paul Eggert  <eggert@twinsun.com>
56954
56955         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
56956         (getgroups): First arg is int, not size_t.
56957         Don't let 'free' mangle errno.
56958
56959 2003-10-16  Paul Eggert  <eggert@twinsun.com>
56960
56961         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
56962
56963 2003-10-16  Karl Berry  <karl@gnu.org>
56964
56965         * config/config.{guess,sub}: update from config.
56966
56967 2003-10-16  Jim Meyering  <jim@meyering.net>
56968
56969         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
56970         memcpy.
56971
56972 2003-10-15  Paul Eggert  <eggert@twinsun.com>
56973
56974         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
56975         (SIZE_MAX): Remove.
56976         (new_exclude, add_exclude_file): Initial size no longer needs to
56977         be a power of 2.
56978         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
56979         our own address arithmetic overflow checking.
56980
56981         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
56982         (fnmatch): Do not alloca more than 2000 wide characters;
56983         instead, use malloc for large buffers.
56984         Check for address arithmetic overflow, and return -1
56985         with errno set to ENOMEM in that case.
56986         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
56987         (NEW_PATTERN): Do not alloca more than 8000 bytes;
56988         instead, return -1.  Check for address arithmetic overflow.
56989
56990 2003-10-14  Paul Eggert  <eggert@twinsun.com>
56991
56992         Handle invalid suffixes and overflow independently, so that
56993         callers can treat them independently as needed.  Fix some bugs in
56994         suffix handling, e.g., "100k@" was not diagnosed as an invalid
56995         suffix for a human-readable blocksize.  The major caller-visible
56996         change is the addition of a new
56997         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
56998         that both overflow and suffix chars were found.
56999
57000         * lib/human.c (humblock): Don't check separately for invalid suffix
57001         char; that is xstrtoumax's job (now that its bug is fixed).
57002         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
57003         INTMAX_MAX]: New macros.
57004         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
57005         TYPE_MAXIMUM): New macros.
57006         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
57007         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
57008         if overflow occurs, as it's what __strtol does and it's more useful
57009         in practice.
57010         (__xstrtol): If __strtol reports some error other than ERANGE,
57011         reflect it to the caller as LONGINT_INVALID.  If it reports
57012         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
57013         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
57014         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
57015         value.
57016         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
57017         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
57018         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
57019         [defined UINTMAX_MAX]: New macros.
57020
57021 2003-10-14  Bruno Haible  <bruno@clisp.org>
57022
57023         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
57024
57025 2003-10-14  Bruno Haible  <bruno@clisp.org>
57026
57027         * m4/sig_atomic_t: New file, from GNU gettext.
57028         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
57029
57030 2003-10-14  Bruno Haible  <bruno@clisp.org>
57031
57032         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
57033         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
57034         Also use volatile where needed.
57035
57036 2003-10-12  Paul Eggert  <eggert@twinsun.com>
57037
57038         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
57039         Change maintainer from Bruno Haible to 'all'.
57040
57041 2003-10-12  Paul Eggert  <eggert@twinsun.com>
57042
57043         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
57044
57045 2003-10-12  Paul Eggert  <eggert@twinsun.com>
57046
57047         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
57048         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
57049         and define in terms of the other primitives.
57050         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
57051         (SIZE_MAX): Define if not already defined.
57052         (array_size_overflow): New function.
57053         (xalloc_die): Abort instead of exiting if 'error' returns.
57054         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
57055         (xmalloc, xrealloc): Use them.
57056         (xcalloc): Check for address arithmetic overflow.
57057         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
57058         a bit faster than strcpy.
57059
57060 2003-10-10  Simon Josefsson  <jas@extundo.com>
57061
57062         * modules/argp (Depends-on): Add restrict and strcase.
57063
57064 2003-10-10  Simon Josefsson  <jas@extundo.com>
57065
57066         * m4/argp.m4: Add AC_C_INLINE.
57067
57068 2003-10-08  Paul Eggert  <eggert@twinsun.com>
57069
57070         Merge getpass from libc, plus a few fixes.
57071
57072         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
57073         Include <stdbool.h>.
57074         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
57075         __fsetlocking to empty.
57076         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
57077         do include <bits/libc-lock.h>.
57078         Do not include <fcntl.h>; not needed.
57079         [_LIBC]: Include <wchar.h>.
57080         (NOTCANCEL_MODE): New macro.
57081         (flockfile, funlockfile) [_LIBC]: New macros.
57082         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
57083         [!_LIBC]: New macros.
57084         (call_fclose): New function.
57085         (getpass): Use it.  Save tty stream separately; this simplifies the
57086         code and makes it more reliable if stdin happens to equal stdout.
57087         Invoke __fsetlocking on tty.
57088         Handle thread cancellation if needed.
57089         Namespace cleanup (use __tcgetattr, __getline).
57090         Use bool for Booleans.
57091         [USE_IN_LIBIO]: Handle wide streams.
57092         [!_LIBC]: Unconditionally do the fseek, since we don't know what
57093         stream might go where.
57094
57095         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
57096         doesn't have to include <stdio.h> before us.
57097         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
57098         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
57099         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
57100         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
57101         if not declared, so that we can use getpass.c code from libc without
57102         rewriting it.
57103         (flockfile, ftrylockfile, funlockfile): New macros.
57104
57105 2003-10-08  Paul Eggert  <eggert@twinsun.com>
57106
57107         * modules/getpass: Depend on stdbool.
57108
57109 2003-10-08  Paul Eggert  <eggert@twinsun.com>
57110
57111         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
57112
57113 2003-10-07  Karl Berry  <karl@gnu.org>
57114
57115         * config/config.{guess,sub}: update from config.
57116
57117 2003-10-06  Jim Meyering  <jim@meyering.net>
57118             Bruno Haible  <bruno@clisp.org>
57119
57120         This lets translators provide better translations for the
57121         "Written by ..." part of --version output.
57122         * lib/version-etc.h: Include stdarg.h.
57123         (version_etc_copyright): Declare as readonly.
57124         (version_etc): Make this function variadic with a NULL-terminated list
57125         of author name strings.
57126         (version_etc_va): New declaration.
57127         * lib/version-etc.c: Include stdarg.h, stdlib.h.
57128         (version_etc_copyright): Declare as readonly.
57129         (version_etc_va): New function. Provide a different translatable string
57130         for each possible number of authors < 10. Abbreviate when there are 10
57131         authors or more.
57132         (version_etc): Make this function variadic. Call version_etc_va.
57133         Suggestion from Gary V. Vaughan.
57134
57135         * lib/long-options.h (parse_long_options): Change prototype: the
57136         authors string is moved to the end and becomes variadic.
57137         * lib/long-options.c: Include stdarg.h.
57138         (parse_long_options): Make this function variadic, too.
57139         Call version_etc_va, not version_etc.
57140
57141 2003-10-06  Bruno Haible  <bruno@clisp.org>
57142
57143         * modules/version-etc-2: Remove file.
57144         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
57145
57146 2003-10-06  Bruno Haible  <bruno@clisp.org>
57147
57148         * modules/fatal-signal: New file.
57149         * MODULES.html.sh (func_all_modules): Add fatal-signal.
57150
57151 2003-10-06  Bruno Haible  <bruno@clisp.org>
57152
57153         * m4/fatal-signal.m4: New file.
57154         * m4/signalblocking.m4: New file, from GNU gettext.
57155
57156 2003-10-06  Bruno Haible  <bruno@clisp.org>
57157
57158         * lib/version-etc-2.h: Remove file.
57159         * lib/version-etc-2.c: Remove file.
57160
57161 2003-10-06  Bruno Haible  <bruno@clisp.org>
57162
57163         * lib/fatal-signal.h: New file, from GNU gettext.
57164         * lib/fatal-signal.c: New file, from GNU gettext.
57165
57166 2003-10-05  Paul Eggert  <eggert@twinsun.com>
57167
57168         * README: Rework advice for preventing empty .o files.
57169         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
57170         not <sys/types.h>.
57171
57172 2003-10-04  Karl Berry  <karl@gnu.org>
57173
57174         * lib/argp*: update from libc.
57175
57176 2003-10-04  Karl Berry  <karl@gnu.org>
57177
57178         * config/config.{guess,sub}: update from config.
57179
57180 2003-10-02  Bruno Haible  <bruno@clisp.org>
57181
57182         * modules/lchown (Include): Add lchown.h.
57183         * modules/time_r (Include): Use "..." syntax.
57184         * modules/xgetdomainname (Include): Add xgetdomainname.h.
57185
57186 2003-10-01  Simon Josefsson  <jas@extundo.com>
57187
57188         * MODULES.html.sh (func_all_modules): Move gethostname from section
57189         'based on' to section 'lacking' POSIX:2001.
57190
57191 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
57192
57193         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
57194         to output mode on the same stream.
57195
57196 2003-09-29  Paul Eggert  <eggert@twinsun.com>
57197
57198         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
57199         Fix arg typo in previous patch.
57200
57201 2003-09-28  Jim Meyering  <jim@meyering.net>
57202
57203         * lib/error.c: Correct cpp indentation.
57204
57205 2003-09-27  Paul Eggert  <eggert@twinsun.com>
57206
57207         * modules/free: New file.
57208
57209 2003-09-27  Paul Eggert  <eggert@twinsun.com>
57210
57211         * m4/free.m4: New file.
57212
57213 2003-09-27  Paul Eggert  <eggert@twinsun.com>
57214
57215         * lib/minmax.h (MIN, MAX)
57216         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
57217         Omit the special code that used __typeof__, since we worry that
57218         it could be more trouble than it's worth.  See:
57219         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
57220         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
57221
57222         * lib/free.c: New file.
57223
57224 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
57225
57226         Trivial fixes to Makefile.am parts of module listings.
57227         * modules/strstr: Append strstr.h to lib_SOURCES.
57228         * modules/strcase: Likewise, for strcase.h.
57229
57230 2003-09-27  Karl Berry  <karl@gnu.org>
57231
57232         * config/mkinstalldirs: update from automake.
57233
57234 2003-09-26  Paul Eggert  <eggert@twinsun.com>
57235
57236         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
57237         (error_tail): Do not loop, reallocating temporary buffer, since
57238         the output cannot contain more wide characters than the input
57239         contains bytes, the size must be big enough already.  This avoids
57240         one potential size overflow calculation.  Check for size overflow
57241         when calculating temporary buffer size.  Free temporary buffer
57242         when done, if it was allocated with malloc; this plugs a memory
57243         leak.  Remove casts from void * to pointers, that are no longer
57244         needed now that we're assuming C89 or better.
57245
57246         Merge error changes from glibc.
57247
57248         * lib/error.c, error.h: Update copyright notice header to match glibc.
57249         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
57250         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
57251         Disable cancellation while printing error.
57252         * lib/error.h: Prepend __ to parameter names.
57253
57254 2003-09-26  Jim Meyering  <jim@meyering.net>
57255
57256         * lib/error.c (error_tail): Move some declarations
57257         into inner scope where the local variables are used.
57258
57259 2003-09-26  Bruno Haible  <bruno@clisp.org>
57260
57261         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
57262         stpncpy().
57263         Don't define stpncpy through config.h; it's now done through stpncpy.h.
57264
57265 2003-09-26  Bruno Haible  <bruno@clisp.org>
57266
57267         * lib/stpncpy.h (gnu_stpncpy): New declaration.
57268         (stpncpy): Define as alias for gnu_stpncpy.
57269         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
57270
57271 2003-09-25  Simon Josefsson  <jas@extundo.com>
57272
57273         * lib/xgetdomainname.h: New file.
57274         * lib/xgetdomainname.c: New file.
57275
57276 2003-09-25  Simon Josefsson  <jas@extundo.com>
57277             Bruno Haible  <bruno@clisp.org>
57278
57279         * modules/getdomainname: New file.
57280         * modules/xgetdomainname: New file.
57281         * MODULES.html.sh (func_all_modules): Add getdomainname,
57282         xgetdomainname.
57283
57284 2003-09-25  Simon Josefsson  <jas@extundo.com>
57285             Bruno Haible  <bruno@clisp.org>
57286
57287         * m4/getdomainname.m4: New file.
57288
57289 2003-09-25  Simon Josefsson  <jas@extundo.com>
57290             Bruno Haible  <bruno@clisp.org>
57291
57292         * lib/getdomainname.h: New file.
57293         * lib/getdomainname.c: New file.
57294
57295 2003-09-25  Karl Berry  <karl@gnu.org>
57296
57297         * lib/argp-fmtstream.c, argp-help.c: update from libc.
57298
57299 2003-09-25  Karl Berry  <karl@gnu.org>
57300
57301         * config/install-sh: update from automake.
57302
57303 2003-09-25  Bruno Haible  <bruno@clisp.org>
57304
57305         * modules/version-etc-2: New file, from modules/version-etc with
57306         modifications.
57307         * MODULES.html.sh (func_all_modules): Add version-etc-2.
57308
57309 2003-09-25  Bruno Haible  <bruno@clisp.org>
57310
57311         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
57312         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
57313
57314 2003-09-24  Simon Josefsson  <jas@extundo.com>
57315
57316         * modules/xgethostname: Add xgethostname.h.
57317
57318 2003-09-24  Paul Eggert  <eggert@twinsun.com>
57319
57320         * lib/linebuffer.c (freebuffer): Don't free the argument, just
57321         the buffer associated with the argument.  Bug reported by
57322         Simon Josefsson.
57323
57324 2003-09-24  Paul Eggert  <eggert@twinsun.com>
57325
57326         * README: Document assumptions that 'int' is at least 32 bits
57327         wide, that integer arithmetic is 2's complement without overflow,
57328         that there are no holes in integer values, that adding sizes of
57329         two nonoverlapping objects can't overflow, and that all-bits-zero
57330         yields scalar zero.  Fix spelling and capitalization typos.
57331
57332 2003-09-19  Karl Berry  <karl@gnu.org>
57333
57334         * lib/argp.h: update from libc.
57335
57336 2003-09-17  Paul Eggert  <eggert@twinsun.com>
57337
57338         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
57339         to avoid spurious warnings like "AC_RUN_IFELSE was called before
57340         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
57341
57342 2003-09-17  Paul Eggert  <eggert@twinsun.com>
57343
57344         * gnulib-tool: Use "test -h", not "test -L", for portability
57345         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
57346         (tags_regexp): Remove, since \| doesn't conform to POSIX.
57347         (sed_extract_prog): Issue s commands one-by-one, rather than
57348         using \| in one s command.
57349
57350 2003-09-16  Paul Eggert  <eggert@twinsun.com>
57351
57352         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
57353         input error, instead of returning NULL the next time we are called
57354         (and therefore losing track of errno).
57355
57356 2003-09-16  Bruno Haible  <bruno@clisp.org>
57357
57358         * gnulib-tool (func_create_testdir): Warn about duplicated
57359         dependencies.
57360
57361 2003-09-15  Paul Eggert  <eggert@twinsun.com>
57362
57363         * modules/argmatch, modules/fatal, modules/obstack,
57364         modules/xalloc, modules/xgethostname: Sort dependencies by
57365         importance, not alphabetically.
57366
57367 2003-09-15  Paul Eggert  <eggert@twinsun.com>
57368
57369         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
57370         fails, so that the caller gets the proper errno.
57371
57372         * lib/readutmp.c (read_utmp): Likewise.
57373         Check for fstat error.  Close stream and free storage
57374         when failing.
57375
57376 2003-09-14  Karl Berry  <karl@gnu.org>
57377
57378         * config/srclist.txt (strdup.c): disable for c89 changes.
57379
57380 2003-09-14  Jim Meyering  <jim@meyering.net>
57381
57382         * lib/getloadavg.c: Correct cpp indentation.
57383         * lib/strdup.c: Likewise.
57384         * lib/vasnprintf.c: Likewise.
57385
57386 2003-09-14  Bruno Haible  <bruno@clisp.org>
57387
57388         * modules/fwriteerror: New file.
57389         * MODULES.html.sh (func_all_modules): Add fwriteerror.
57390
57391 2003-09-14  Bruno Haible  <bruno@clisp.org>
57392
57393         * lib/fwriteerror.h: New file.
57394         * lib/fwriteerror.c: New file.
57395
57396 2003-09-12  Paul Eggert  <eggert@twinsun.com>
57397
57398         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
57399         modules/xgethostname, modules/xalloc: Depend on exit.
57400
57401 2003-09-12  Paul Eggert  <eggert@twinsun.com>
57402
57403         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
57404
57405         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
57406         and AC_MINIX, too, so that their extensions are available.
57407
57408         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
57409         This macro has been superseded by gl_BACKUPFILE.
57410
57411         More patches to assume C89 or better.
57412
57413         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
57414
57415         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
57416         unconditionally.
57417         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
57418         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
57419         Include <string.h>, <stdlib.h> unconditionally.
57420         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
57421         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
57422         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
57423         headers or for string.h.
57424         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
57425         or strtoul.
57426
57427         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
57428         headers.
57429         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
57430         * m4/userspec.m4 (gl_USERSPEC): Likewise.
57431         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
57432         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
57433         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
57434         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
57435         memcpy, memset.
57436         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
57437         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
57438         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
57439         strtol.
57440         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
57441         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
57442         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
57443         strtoul.
57444
57445 2003-09-12  Paul Eggert  <eggert@twinsun.com>
57446
57447         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
57448         * lib/obstack.c [!defined _LIBC]: Likewise.
57449         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
57450         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
57451         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
57452
57453         More changes to assume C89 or better.
57454
57455         * lib/error.c (error_tail): Assume vprintf.
57456
57457         * lib/argmatch.c (getenv): Remove decl.
57458         * lib/progreloc.c (get_full_program_name): Define via prototype.
57459         * lib/setenv.c (clearenv): Likewise.
57460         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
57461         needed.
57462         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
57463         (malloc, memcpy): Remove decls.
57464         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
57465         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
57466         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
57467         (memcpy): Remove macro.
57468         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
57469         (__P): Remove.  All uses removed.
57470         (PTR): Remove.  All uses changed to void *.
57471         (CHAR_BIT, NULL): Remove.
57472         (spaces, zeros, memset_space, memset_zero)
57473         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
57474         Remove.
57475         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
57476         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
57477         Define with prototype.
57478         Remove now-unnecessary prototype decl.
57479         (extra_args_spec): Assume ANSI C.  All uses changed.
57480         (extra_args_spec_iso): Remove.
57481         (my_strftime, emacs_strftimeu): Define via prototype.
57482         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
57483         unconditionally.
57484         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
57485         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
57486         (strtoul, strtol): Remove decls.
57487         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
57488         LONG_MAX): Remove.
57489         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
57490         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
57491         (LOCALE_PARAM_PROTO): New macro.
57492         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
57493         (INTERNAL (strtol), strtol): Define with a prototype.
57494         (PARAMS): Remove.  All uses removed.
57495         * lib/tempname.c: Include <string.h> unconditionally.
57496         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
57497         * lib/xgethostname.c (main): Define with a prototype.
57498         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
57499         Include <stdlib.h> unconditionally.
57500         (calloc, malloc, realloc, free): Remove decls.
57501         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
57502         Include <stdlib.h> unconditionally.  Sort include file names.
57503         (strtod): Remove.
57504         (xstrtod): Define with a prototype.
57505         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
57506         (strtol, strtoul): Remove decls.
57507
57508 2003-09-11  Paul Eggert  <eggert@twinsun.com>
57509
57510         More patches to assume C89 or better.
57511         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
57512         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
57513         string.h, memchr, STDC_HEADERS.
57514
57515 2003-09-11  Paul Eggert  <eggert@twinsun.com>
57516
57517         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
57518         Include <stdlib.h>, <string.h> unconditionally.
57519         Remove now-unnecessary cast to char *.
57520         * lib/strnlen.c: Include <string.h> unconditionally.
57521         * lib/yesno.c (yesno): Define with a prototype.
57522
57523 2003-09-11  Bruno Haible  <bruno@clisp.org>
57524
57525         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
57526
57527 2003-09-10  Jim Meyering  <jim@meyering.net>
57528
57529         * lib/error.c: Correct indentation of cpp directives.
57530
57531 2003-09-10  Bruno Haible  <bruno@clisp.org>
57532
57533         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
57534         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
57535         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
57536         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
57537         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
57538         <stdlib.h> and <string.h> checks.
57539         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
57540         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
57541
57542 2003-09-10  Bruno Haible  <bruno@clisp.org>
57543
57544         * lib/strcspn.c: Include <string.h> unconditionally.
57545         * lib/strpbrk.c: Include <string.h> unconditionally.
57546         * lib/strstr.c: Include <string.h> unconditionally.
57547         * lib/unicodeio.c: Include <string.h> unconditionally.
57548         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
57549         * lib/unsetenv.c: Likewise.
57550         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
57551         * lib/yesno.c: Include <stdlib.h> unconditionally.
57552         (rpmatch): Add prototype.
57553
57554 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57555
57556         More patches to assume C89 or better.
57557         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
57558         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
57559         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
57560         or for string.h.
57561         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
57562         stdlib.h.
57563         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
57564         C headers.
57565         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
57566         string.h.
57567         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
57568         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
57569         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
57570         or for string.h.
57571         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
57572         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
57573         C headers.
57574         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
57575         memcpy.
57576         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
57577         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
57578         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
57579         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
57580         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
57581         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
57582         string.h, free.
57583         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
57584         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
57585         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
57586         C headers, or for string.h.
57587         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
57588         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
57589         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
57590         headers, memory.h, stdlib.h, string.h, strings.h.
57591         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
57592         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
57593         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
57594         strchr.
57595         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
57596         headers, memory.h, string.h.
57597         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
57598         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
57599         free.
57600         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
57601         headers.
57602         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
57603         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
57604         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
57605         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
57606         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
57607
57608 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57609
57610         More K&R removal.
57611
57612         * lib/acosl.c (main): Use a prototype.
57613         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
57614         tanl.c: Likewise.
57615
57616         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
57617
57618         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
57619         (getopt, etopt_long, getopt_long_only, _getopt_internal)
57620         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
57621         with a prototype.
57622         * lib/getopt.c (const): Remove macro.
57623         Include <string.h> unconditionally.
57624         (my_index): Remove; all uses changed to strchr.
57625         (strlen): Remove decl.
57626         (exchange): Remove forward decl; no longer needed.
57627         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
57628         Define with prototype.
57629         * lib/getopt1.c (const): Remove macro.
57630         (getopt_long, getopt_long_only, main): Define with prototype.
57631
57632         * lib/getugroups.c: Include <string.h> unconditionally.
57633
57634         * lib/getusershell.c: Include <stdlib.h> unconditionally.
57635         (getusershell, setusershell, endusershell, readname, main):
57636         Define with prototypes.
57637
57638         * lib/group-member.c: Include group-member.h first.
57639         Include <stdlib.h> unconditionally.
57640
57641         * lib/hard-locale.c: Include hard-locale.h first.
57642         Include <stdlib.h>, <string.h> unconditionally.
57643
57644         * lib/hash.c (free, malloc): Remove decls.
57645         Include <stdlib.h> unconditionally.
57646
57647         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
57648         (getenv): Do not declare.
57649
57650         * lib/idcache.c: Include <string.h> unconditionally.
57651
57652         * lib/long-options.c: Include long-options.h first, to test interface.
57653         Include <stdlib.h> unconditionally.
57654
57655         * lib/makepath.c: Include makepath.h first, to test interface.
57656         Include <stdlib.h> and <string.h> unconditionally.
57657
57658         * lib/linebuffer.c: Include <stdlib.h>.
57659         (free): Remove decl.
57660
57661         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
57662         stddef.h. rpl_malloc returns void *, not char *.
57663         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
57664         prototype.
57665
57666         * lib/md5.h: Include <limits.h> unconditionally.
57667         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
57668         (__P): Remove; all uses removed.
57669         * lib/md5.c: Include "md5.h" first.
57670         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
57671         md5_buffer, md5_process_bytes, md5_process_block):
57672         Define with prototypes.
57673         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
57674         * lib/sha.c: Include "sha.h" first.
57675         Include <stdlib.h>, <string.h> unconditionally.
57676
57677         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
57678         * lib/memcmp.c (__ptr_t): Likewise.
57679         * lib/memrchr.c (__ptr_t): Likewise.
57680         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
57681         Include <string.h> unconditionally.
57682         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
57683         * lib/memchr.c: Include <stdlib.h> unconditionally.
57684         * lib/memchr.c (LONG_MAX): Remove.
57685         * lib/memrchr.c (LONG_MAX): Likewise.
57686         * lib/memchr.c (__memchr): Define via a prototype.
57687         * lib/memrchr.c (__memrchr): Likewise.
57688         * lib/memcmp.c (__P): Remove, and remove all uses.
57689         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
57690         Remove forward decls; no longer needed.
57691         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
57692         Use types required by C89 in prototype.
57693
57694         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
57695         * lib/savedir.c: Likewise.
57696         * lib/mkdir.c (free): Remove decl.
57697         * lib/rmdir.c (rmdir): Define with a prototype.
57698         * lib/savedir.c: Include savedir.h first, to test interface.
57699
57700         * lib/mktime.c (STDC_HEADERS): Remove.
57701         Include <stdlib.h>, <string.h> unconditionally.
57702
57703         * lib/modechange.c: Include <stdlib.h> unconditionally.
57704         (malloc): Remove decl.
57705
57706         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
57707         (free): Remove decl.
57708
57709         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
57710         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
57711         (This type really should be intptr_t, but that's a C99ism.)
57712         (_obstack_memcpy): Remove: all uses changed to memcpy.
57713         Include <string.h> unconditionally.
57714         (struct obstack): Assume __STDC__ for types of members
57715         chunkfun, freefun, extra_arg.
57716         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
57717         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
57718         obstack_begin, obstack_specify_allocation,
57719         obstack_specify_allocation_with_arg, obstack_chunkfun,
57720         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
57721         Remove unprototyped decls and the macros that use them.
57722         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
57723         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
57724         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
57725         (defined __STDC__ && __STDC__)]:
57726         Remove nonprototyped code.
57727         Include <stdlib.h> unconditionally.
57728         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
57729         _obstack_allocated_p, _obstack_free, obstack_free,
57730         _obstack_memory_used, print_and_abort):
57731         Define using prototypes.
57732         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
57733         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
57734         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
57735         obstack_next_free, obstack_object_size, obstack_room) [0]:
57736         Remove unused, unprototyped code.
57737
57738         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
57739
57740         * lib/physmem.c (physmem_total, physmem_available, main): Define
57741         with prototypes.
57742
57743         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
57744         (main): Define with a prototype.
57745
57746         * lib/posixver.c (getenv): Remove decl.
57747
57748         * lib/putenv.c (malloc): Returns void *, not char *.
57749         Include <string.h> unconditionally.
57750         (strchr, memcpy, NULL): Do not define.
57751
57752         * lib/readtokens.c: Include readtokens.h first, to test interface.
57753         Include <stdlib.h>, <string.h> unconditionally.
57754         (init_tokenbuffer): Define with a prototype.
57755
57756         * lib/regex.c (PARAMS): Remove.  All uses removed.
57757         All uses of _RE_ARGS removed, too.
57758         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
57759         unconditionally.
57760         (bzero): Assume memset exists.
57761         (memcmp, memcpy, NULL): Remove.
57762         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
57763         char, or assignments to local vars of type signed char.
57764         (init_syntax_once, PREFIX(extract_number_and_incr),
57765         PREFIX(print_partial_compiled_pattern),
57766         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
57767         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
57768         PREFIX(regex_grow_registers), PREFIX(regex_compile),
57769         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
57770         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
57771         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
57772         wcs_compile_range, byte_compile_range, truncate_wchar,
57773         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
57774         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
57775         count_mbs_length, wcs_re_match_2_internal,
57776         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
57777         PREFIX(alt_match_null_string_p),
57778         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
57779         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
57780         regfree, PREFIX(extract_number)): Define with prototype.  Remove
57781         now-unnecessary declaration, if any.
57782         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
57783         regcomp, regexec):
57784         Remove now-unnecessary casts among pointer types.
57785         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
57786
57787         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
57788         (free): Remove decl.
57789
57790         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
57791
57792         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
57793         (free): Remove decl.
57794
57795         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
57796         * lib/xgetcwd.c: Likewise.
57797
57798         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
57799         (free): Remove decl.
57800
57801         * lib/strchrnul.c (strchrnul): Define with a prototype.
57802         Fix bug: c_in was not converted to char before searching.
57803
57804         The following changes are not K&R related:
57805
57806         * lib/group-member.h: Include <sys/types.h>, so that this file is
57807         self-contained.
57808         * lib/makepath.h: Likewise.
57809
57810         * lib/getusershell.c (readname, default_index, line_size, readname):
57811         Use size_t, not int, for sizes.
57812         (readname): If the size overflows, report an error instead of
57813         looping forever.
57814
57815 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57816
57817         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
57818         libc.
57819
57820 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57821
57822         * README: New section: portability guidelines.
57823
57824 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
57825
57826         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
57827         C89 spec.
57828
57829 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
57830
57831         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
57832
57833 2003-09-08  Paul Eggert  <eggert@twinsun.com>
57834
57835         Assume C89 or better; remove K&R cruft.
57836         A few of these changes were first proposed by Derek Robert Price
57837         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
57838
57839         * lib/addext.c: Include <string.h> unconditionally.
57840         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
57841         Don't declare getenv or malloc.
57842
57843         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
57844         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
57845         (NULL): Remove.
57846         (find_stack_direction, alloca): Use prototypes.
57847
57848         * lib/atexit.c (atexit): Define using a prototype.
57849
57850         * lib/basename.c, dirname.c, stripslash.c:
57851         Include <string.h> unconditionally.
57852
57853         * lib/bcopy.c: Include <stddef.h>.
57854         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
57855
57856         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
57857
57858         * lib/error.h (error, error_at_line, error_print_progname)
57859         [! (defined (__STDC__) && __STDC__)]: Remove decls.
57860         * lib/error.c: Include error.h first, to check interface.
57861         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
57862         (VA_START): Remove; all uses changeed to va_start.
57863         (exit, strerror): Remove decls.
57864         (error_print_progname): Prototype uncondionally.
57865         Don't include <errno.h>; no longer needed.
57866         (private_strerror): Remove.
57867         (error_tail): Always define.
57868         (error, error_at_line): Assume C89 or better; always use prototypes.
57869         * lib/fatal.c: Include "fatal.h" first, to test interface.
57870         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
57871         (VA_START): Remove; all uses changed to va_start.
57872         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
57873         this case.
57874         (exit): Remove decl.
57875         (fatal): Prototype unconditionally.  Assume va_start works.
57876         Abort at end, to pacify gcc.
57877
57878         * lib/euidaccess.c (main): Define with a prototype.
57879
57880         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
57881
57882         * lib/exitfail.c: Include <stdlib.h> unconditionally.
57883
57884         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
57885         prototypes.
57886         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
57887         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
57888         (getenv): Remove decl.
57889         (fnmatch): Define using a prototype.
57890         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
57891         (FCT): Define using a prototype.
57892
57893         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
57894
57895         * lib/gethostname.c: Include <stddef.h>.
57896         (gethostname): Define with prototype.  Length is size_t, not int.
57897
57898 2003-09-08  Paul Eggert  <eggert@twinsun.com>
57899
57900         Assume C89 or better; remove K&R cruft.
57901         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
57902         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
57903         string.h, getenv, malloc.
57904         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
57905         headers.
57906         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
57907         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
57908         do not check for strerror.
57909         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
57910         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
57911         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
57912         do not check for doprnt or vprintf.
57913         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
57914         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
57915
57916 2003-09-08  Paul Eggert  <eggert@twinsun.com>
57917
57918         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
57919         getversion.c should have been removed then, but was accidentally
57920         preserved.
57921
57922         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
57923         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
57924
57925 2003-09-08  Karl Berry  <karl@gnu.org>
57926
57927         * config/config.sub, config.guess, srclistvars.sh: update from savannah
57928                 config, forget about prep.
57929
57930         * config/depcomp, missing: update from automake.
57931
57932 2003-09-07  Paul Eggert  <eggert@twinsun.com>
57933
57934         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
57935         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
57936
57937 2003-09-07  Paul Eggert  <eggert@twinsun.com>
57938
57939         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
57940         copy_tm_result.  Bug reported by Simon Josefsson in
57941         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
57942
57943 2003-09-06  Paul Eggert  <eggert@twinsun.com>
57944
57945         * m4/time_r.m4: New file.
57946         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
57947         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
57948         is. Check for timegm declaration.
57949         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
57950         Do not check for gmtime_r.
57951         Replace mktime if __mktime_internal does not exist and if mktime
57952         hasn't been replaced already.
57953
57954 2003-09-06  Paul Eggert  <eggert@twinsun.com>
57955
57956         * lib/time_r.c, lib/time_r.h: New files.
57957
57958         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
57959         __localtime_r.
57960         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
57961         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
57962
57963         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
57964         __gmtime_r.
57965         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
57966         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
57967         Include <time_r.h>.
57968
57969         * lib/timegm.c: Switch to glibc implementation, with the following
57970         changes:
57971         [defined HAVE_CONFIG_H]: Include <config.h>.
57972         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
57973         (__mktime_internal) [!defined _LIBC]: New decl.
57974         (__gmtime_r) [!defined _LIBC]: New macro and function.
57975         (timegm): Use a prototype, since gnulib assumes C89.
57976         Do not bother declaring tmp to be const, as it's not really usefu.
57977         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
57978         (timegm): Declare only if HAVE_DECL_TIMEGM.
57979
57980 2003-09-06  Paul Eggert  <eggert@twinsun.com>
57981
57982         * MODULES.html.sh (func_all_modules): Add time_r.
57983         * modules/time_r: New file.
57984         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
57985         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
57986
57987 2003-09-03  Paul Eggert  <eggert@twinsun.com>
57988
57989         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
57990         Bug reported by Lute Kamstra in
57991         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
57992
57993         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
57994         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
57995         course with correspondingly smaller numbers for tomorrow and
57996         yesterday.  From Tadayoshi Funaba.  Originally installed into
57997         sh-utils on 1999-08-07, but the patch got lost (I guess during the
57998         coreutils merge?).
57999
58000 2003-08-31  Simon Josefsson  <jas@extundo.com>
58001
58002         * modules/timegm: New file.
58003         * MODULES.html.sh (func_all_modules): Add timegm.
58004
58005 2003-08-31  Simon Josefsson  <jas@extundo.com>
58006
58007         * m4/timegm.m4: New file.
58008
58009 2003-08-31  Simon Josefsson  <jas@extundo.com>
58010
58011         * lib/timegm.h: New file.
58012         * lib/timegm.c: New file.  Based on
58013         wget-1.8.2/src/http.c:mktime_from_utc.
58014
58015 2003-08-31  Karl Berry  <karl@gnu.org>
58016
58017         * lib/argp.h: update from libc.
58018
58019 2003-08-28  Bruno Haible  <bruno@clisp.org>
58020
58021         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
58022         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
58023         followed by '#define fnmatch fnmatch_posix' gives an error.
58024
58025 2003-08-28  Bruno Haible  <bruno@clisp.org>
58026
58027         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
58028         warning on QNX, which defines O_BINARY to 000000.
58029
58030 2003-08-27  Jim Meyering  <jim@meyering.net>
58031
58032         * m4/mkstemp.m4: Require that the system mkstemp be able to create
58033         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
58034         would fail after 32.  Reported by Danny Levinson.  Details here:
58035         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
58036
58037 2003-08-24  Bruno Haible  <bruno@clisp.org>
58038
58039         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
58040         MSVC7 <stdio.h> is included later.
58041
58042 2003-08-22  Simon Josefsson  <jas@extundo.com>
58043
58044         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
58045
58046 2003-08-20  Karl Berry  <karl@gnu.org>
58047
58048         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
58049
58050 2003-08-20  Bruno Haible  <bruno@clisp.org>
58051
58052         * modules/progname: New file.
58053         * MODULES.html.sh (func_all_modules): Add progname.
58054
58055 2003-08-20  Bruno Haible  <bruno@clisp.org>
58056
58057         * lib/progname.h: New file, from GNU gettext.
58058         * lib/progname.c: New file, from GNU gettext.
58059         * lib/progreloc.c: New file, from GNU gettext.
58060
58061 2003-08-19  Jim Meyering  <jim@meyering.net>
58062
58063         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
58064         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
58065
58066 2003-08-19  Bruno Haible  <bruno@clisp.org>
58067
58068         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
58069         more.
58070
58071 2003-08-19  Bruno Haible  <bruno@clisp.org>
58072
58073         * lib/xstrdup.c: Assume <string.h> exists.
58074
58075 2003-08-18  Paul Eggert  <eggert@twinsun.com>
58076
58077         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
58078         in makefile rules.
58079
58080 2003-08-18  Jim Meyering  <jim@meyering.net>
58081
58082         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
58083         * m4/lib-ld.m4: Likewise.
58084
58085 2003-08-18  Jim Meyering  <jim@meyering.net>
58086
58087         * lib/setenv.h: Indent nested cpp directive.
58088         * lib/vasnprintf.c: Remove trailing blanks.
58089
58090 2003-08-17  Simon Josefsson  <jas@extundo.com>
58091
58092         * modules/xstrndup: New file.
58093         * MODULES.html.sh (func_all_modules): Add xstrndup.
58094
58095 2003-08-17  Simon Josefsson  <jas@extundo.com>
58096
58097         * modules/argp: Fix autoconf macro name. Add more dependencies.
58098
58099 2003-08-17  Simon Josefsson  <jas@extundo.com>
58100
58101         * m4/xstrndup.m4: New file.
58102
58103 2003-08-17  Simon Josefsson  <jas@extundo.com>
58104
58105         * m4/argp.m4: New file.
58106
58107 2003-08-17  Simon Josefsson  <jas@extundo.com>
58108             Bruno Haible  <bruno@clisp.org>
58109
58110         * lib/xstrndup.h: New file.
58111         * lib/xstrndup.c: New file.
58112
58113 2003-08-17  Bruno Haible  <bruno@clisp.org>
58114
58115         * modules/strndup (Files, Include): Add lib/strndup.h.
58116
58117 2003-08-17  Bruno Haible  <bruno@clisp.org>
58118
58119         * modules/euidaccess (Files): Add lib/euidaccess.h.
58120
58121 2003-08-17  Bruno Haible  <bruno@clisp.org>
58122
58123         * lib/strndup.h: New file.
58124
58125 2003-08-17  Bruno Haible  <bruno@clisp.org>
58126
58127         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
58128         like AC_GNU_SOURCE.
58129         * modules/extensions (configure.ac): Comment out the invocation of
58130         gl_USE_SYSTEM_EXTENSIONS.
58131
58132 2003-08-16  Paul Eggert  <eggert@twinsun.com>
58133
58134         Merges from coreutils, etc.
58135         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
58136         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
58137         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
58138         fixing a typo.
58139         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
58140         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
58141
58142 2003-08-16  Paul Eggert  <eggert@twinsun.com>
58143
58144         Document merge from coreutils.
58145         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
58146         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
58147         * modules/utime: Add m4/utimes-null.m4.
58148
58149 2003-08-16  Paul Eggert  <eggert@twinsun.com>
58150
58151         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
58152         space, undoing this 2003-08-12 change:
58153         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
58154
58155 2003-08-16  Paul Eggert  <eggert@twinsun.com>
58156
58157         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
58158         strtoul.c from libc, undoing this 2003-08-12 change:
58159         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
58160
58161 2003-08-16  Jim Meyering  <jim@meyering.net>
58162
58163         Merges from coreutils.
58164         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
58165         prefix.  Adjust cache variables similarly.  Create 500 rather than
58166         just 300 files, to exercise bug on Darwin6.5, too.
58167         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
58168         $missing_dir.
58169         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
58170         AM_SYS_POSIX_TERMIOS.
58171         Reported by mkc@mathdogs.com.
58172         Also change use of $am_cv_sys_posix_termios
58173         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
58174         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
58175         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
58176         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
58177         in /proc/mounts until it finds one with matching device number.  This
58178         is unnecessary when the FILE argument *is* a mount point.  No stat call
58179         is necessary in that case.  So, disable the statvfs-testing code on
58180         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
58181         as RedHat bug# 84846.
58182         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
58183         to 1MB, so as not to render systems with no stack size limit (e.g.,
58184         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
58185         Include <unistd.h>.  On some systems,
58186         it is required for the definition of _SC_PAGESIZE.
58187
58188 2003-08-16  Jim Meyering  <jim@meyering.net>
58189
58190         Merge from coreutils.
58191         * lib/xstrtoimax.c: #else #if -> #elif.
58192         * lib/xstrtoumax.c: Likewise.
58193
58194 2003-08-16  Jim Meyering  <jim@meyering.net>
58195
58196         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
58197         * m4/utimes.m4: Removed.
58198         * m4/utimes-null.m4: Renamed from utimes.m4.
58199
58200         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
58201         to 1MB, so as not to render systems with no stack size limit (e.g.,
58202         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
58203         Include <unistd.h>.  On some systems,
58204         it is required for the definition of _SC_PAGESIZE.
58205
58206 2003-08-16  Jim Meyering  <jim@meyering.net>
58207         and Paul Eggert  <eggert@cs.ucla.edu>
58208
58209         Merges from coreutils, etc.
58210
58211         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
58212         using the latest version from cvs.  This avoids problems with #line
58213         directives using a vendor (Sun) compiler.
58214         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
58215         Don't set GETGROUPS_LIB here; now it's
58216         done via getgroups.m4's wrapper function.
58217         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
58218         rather than just in sh-util/configure.in, so that the
58219         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
58220         same.
58221         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
58222         AC_FUNC_GETLOADAVG where to find getloadavg.c.
58223         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
58224         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
58225         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
58226         Remove code that is now done by the newly-required macros.
58227         Append $(EXEEXT) to DF_PROG.
58228         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
58229         Do not invoke or require the following here,
58230         since prereq.m4 or some gnulib .m4 now does this for us:
58231         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
58232         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
58233         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
58234         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
58235         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
58236         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
58237         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
58238         AC_FUNC_OBSTACK.
58239         Do not replace the following functions, as this is now the job
58240         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
58241         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
58242         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
58243         atexit getpass, strdup, getpagesize.
58244         Replace 'raise'.
58245         Do not check for the following functions, as this is now the job
58246         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
58247         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
58248         setregid.
58249         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
58250         Check for sys/sysctl.h.
58251         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
58252         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
58253         of checking for ssize_t ourselves.
58254
58255         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
58256         Require every macro that gnulib/modules/* suggests for us.
58257         (jm_PREREQ_ADDEXT): New macro.
58258         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
58259         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
58260
58261         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
58262         (gl_PHYSMEM): Use it.
58263         Also check for `table' function.
58264         Check for new headers and functions.
58265         Add check for sys/sysmp.h.
58266         With suggestions from Kaveh Ghazi.
58267         Ignore headers that are present but cannot be compiled.  This
58268         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
58269         C 5.4.
58270
58271 2003-08-15  Paul Eggert  <eggert@twinsun.com>
58272
58273         Document merge from coreutils.
58274         * modules/userspec: Depend on posixver.
58275         * modules/strftime: Depend on tzset.
58276
58277 2003-08-15  Paul Eggert  <eggert@twinsun.com>
58278
58279         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
58280         rather than tab, after '#' in shell-script copyright notices.
58281         Suggested by Bruno Haible.
58282
58283 2003-08-15  Paul Eggert  <eggert@twinsun.com>
58284
58285         * config/srclist-update: Use three spaces, rather than tab, after '#'
58286         in shell-script copyright notices.  Suggested by Bruno Haible.
58287         Remove unnecessary parenthesization in regular expression.
58288
58289 2003-08-15  Jim Meyering  <jim@meyering.net>
58290
58291         Merge from coreutils.
58292         * lib/xgethostname.c: Include <stdlib.h>.
58293         (xghostname): Don't exit for anything other than memory-related
58294         failure; just return NULL.
58295         * lib/userspec.c: Include "posixver.h".
58296         (parse_user_spec): Accept `.' as a separator only
58297         in pre-POSIX-200112 mode.
58298         * lib/strtoimax.c: Use #elif rather than #else #if.
58299         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
58300         Remove function, now that we can rely on a working tzset function.
58301         [!_LIBC]: Ensure that the required autoconf test has been run.
58302         [!defined _NL_CURRENT && HAVE_STRFTIME]:
58303         Use underlying_strftime for %r.
58304         * lib/sha.c: Merge in some clean-up and optimization changes from
58305         glibc.
58306         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
58307         Ensure that it is a multiple of 64.
58308         Rearrange loop exit tests so as to avoid performing an
58309         additional fread after encountering an error or EOF.
58310         * lib/realloc.c: Update copyright date.
58311
58312 2003-08-15  Jim Meyering  <jim@meyering.net>
58313         and Paul Eggert  <eggert@twinsun.com>
58314
58315         Merge from coreutils.
58316         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
58317         member but strut utmpx does not.  Needed for AIX 4.3.3.
58318         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
58319
58320 2003-08-15  Jim Meyering  <jim@meyering.net>
58321         and Paul Eggert  <eggert@cs.ucla.edu>
58322
58323         Merges from coreutils, etc.
58324         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
58325         Require gl_FUNC_TZSET_CLOBBER.
58326         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
58327         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
58328         members.
58329
58330 2003-08-14  Paul Eggert  <eggert@twinsun.com>
58331
58332         Help the merge from coreutils.
58333         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
58334         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
58335         * m4/tzset.m4: Use it too.
58336
58337 2003-08-14  Paul Eggert  <eggert@twinsun.com>
58338
58339         * modules/tzset: New file.
58340
58341 2003-08-14  Jim Meyering  <jim@meyering.net>
58342
58343         Merges from coreutils.
58344         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
58345         variable names, rather than @FNMATCH_H@.
58346         * modules/alloca: Likewise for $(ALLOCA_H).
58347
58348         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
58349         the three copies of the literal target, `fnmatch.h'.
58350         * modules/alloca (alloca.h): Likewise.
58351
58352 2003-08-14  Jim Meyering  <jim@meyering.net>
58353
58354         Merge from coreutils.
58355         * m4/tzset.m4: New file.
58356         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
58357         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
58358         otherwise, AIX 5.1 systems would end up using the latter.
58359         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
58360         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
58361         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
58362         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
58363
58364 2003-08-14  Jim Meyering  <jim@meyering.net>
58365
58366         Merge from coreutils.
58367         * lib/obstack.h: Whitespace changes.
58368         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
58369         and xcalloc return values.
58370         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
58371         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
58372         hang on OSF/1 5.1 for DIR on both local and remote file systems.
58373         Reported by (and fix confirmed by) Nelson H. F. Beebe.
58374         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
58375         error from mntctl.
58376         Use mntctl's return value to drive the entry-processing loop, since
58377         we can't rely on the value of the vmt_length member in the last
58378         entry.  On some systems doing so could result in exhausting
58379         virtual memory.  Based in part on a patch from Mike Jetzer.
58380
58381 2003-08-14  Jim Meyering  <jim@meyering.net>
58382         and Paul Eggert  <eggert@twinsun.com>
58383
58384         Merges from coreutils, plus other fixes.
58385         * lib/physmem.c: Merge in portability changes from gcc/libiberty
58386         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
58387         for credits and details.  Thanks to Kaveh Ghazi for helping
58388         to keep these files in sync.
58389         (ARRAY_SIZE): Define it.
58390         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
58391         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
58392         (memcasecmp): Don't assume size_t fits in unsigned int.
58393         Remove casts and duplicate code.
58394         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
58395         (memcpy): Remove definition.
58396         Merge in some clean-up and optimization changes from glibc.
58397         [BLOCKSIZE]: Move definition to top of file.
58398         Ensure that it is a multiple of 64.
58399         Rearrange loop exit tests so as to avoid performing an
58400         additional fread after encountering an error or EOF.
58401         * lib/md5.h (md5_uintptr): Define.
58402         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
58403         return to the initial working directory.  Preserve errno
58404         for caller.
58405         * lib/idcache.c: Include "xalloc.h".
58406         (xmalloc, xrealloc): Remove decls.
58407         (getuser): Remove casts no longer required in C89.
58408         * lib/human.c: Include stdio.h, for sprintf.
58409         * lib/group-member.c: Include "xalloc.h".
58410         (xmalloc, xrealloc): Remove decls.
58411         (get_group_info): Remove casts no longer required in C89.
58412         * lib/getusershell.c (readname): Remove casts no longer required in
58413         C89.
58414         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
58415         * lib/getline.c: Whitespace fix, from coreutils.
58416
58417 2003-08-13  Paul Eggert  <eggert@twinsun.com>
58418
58419         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
58420         Check for isascii.
58421
58422         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
58423         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
58424         Undo previous (whitespace-only) change.
58425
58426 2003-08-13  Paul Eggert  <eggert@twinsun.com>
58427
58428         * lib/exclude.c: Include <ctype.h>
58429         (IN_CTYPE_DOMAIN): New macro.
58430         (is_space): New fn.
58431         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
58432         and empty lines.
58433
58434         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
58435         Undo previous (whitespace-only) change.
58436
58437 2003-08-13  Paul Eggert  <eggert@twinsun.com>
58438
58439         * config/srclist-update: Change update back to the old behavior,
58440         leaving whitespace alone.  Use one 'sed' command rather than a
58441         pipeline.
58442         (fixlicense): Now a variable, not a function.
58443         (remove_trailing_blanks): Remove.
58444         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
58445         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
58446         Undo previous (whitespace-only) change.
58447
58448 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58449
58450         Merge from coreutils.
58451         * modules/euidaccess: Add lib_SOURCES, include for new
58452         file euidaccess.h
58453
58454 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58455
58456         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
58457         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
58458         Normalize leading white space and remove trailing white space.
58459
58460         Merge from coreutils
58461         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
58462
58463         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
58464         0.12.1.  These files are now being upgraded automatically by
58465         ../config/srclist-update.
58466
58467 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58468
58469         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
58470         Normalize leading white space and remove trailing white space.
58471         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
58472         notice, as per ../config/srclist-update.
58473
58474         Merge from coreutils.
58475         * lib/euidaccess.h: New file.
58476         * lib/euidaccess.c: Include it.
58477         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
58478         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
58479         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
58480
58481 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58482
58483         * config/srclist-update: Add copyright notice.
58484         (remove_id_lines, remove_trailing_blanks): New constants.
58485         (fixfile): Use them to normalize spacing a bit in copied files.
58486         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
58487         Normalize leading white space and remove trailing white space.
58488
58489         * config/texinfo.tex: Sync with texinfo.
58490
58491         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
58492         strtoul.c from libc, to merge coreutils whitespace changes.
58493
58494         * config/srclist.txt: Get the following m4 files from gettext:
58495         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
58496         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
58497         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
58498         wint_t.m4.
58499
58500 2003-08-12  Karl Berry  <karl@gnu.org>
58501
58502         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
58503         been made.
58504
58505 2003-08-11  Paul Eggert  <eggert@twinsun.com>
58506
58507         * modules/gnu-source, m4/gnu-source.m4:
58508         Remove; we're assuming Autoconf 2.54 or later now.
58509         Suggested by Bruno Haible.
58510         * MODULES.html.sh (func_all_modules): Remove gnu-source.
58511
58512 2003-08-11  Bruno Haible  <bruno@clisp.org>
58513
58514         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
58515
58516 2003-08-11  Bruno Haible  <bruno@clisp.org>
58517
58518         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
58519         (vasnprintf): Use it instead of wcslen.
58520
58521 2003-08-11  Bruno Haible  <bruno@clisp.org>
58522
58523         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
58524         value to ensure that _Bool promotes to int. Use #define for _Bool when
58525         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
58526
58527 2003-08-10  Karl Berry  <karl@gnu.org>
58528
58529         * lib/regex.h: update from libc (whitespace fix).
58530
58531 2003-08-09  Paul Eggert  <eggert@twinsun.com>
58532
58533         Merge some files from coreutils.  These changes were
58534         originally made by Jim Meyering.
58535         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
58536         many older Unixes require this.
58537         * lib/alloca.c (alloca): Remove cast to argument of free;
58538         no longer needed in C89.
58539         * lib/alloca_.h, regex.h: Fix white space to match
58540         what GNU indent does.
58541
58542 2003-08-09  Paul Eggert  <eggert@twinsun.com>
58543
58544         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
58545         apparently Emacs's Unicode mode got confused before my 2003-08-05
58546         checkin.
58547
58548 2003-08-08  Paul Eggert  <eggert@twinsun.com>
58549
58550         * m4/extensions.m4: New file.
58551         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
58552         Require gl_USE_SYSTEM_EXTENSIONS.
58553         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
58554         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
58555
58556 2003-08-08  Paul Eggert  <eggert@twinsun.com>
58557
58558         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
58559         * modules/extensions, modules/gnu-source: New files.
58560         * modules/timespec, modules/unlocked-io: Depend on extensions.
58561
58562 2003-08-07  Paul Eggert  <eggert@twinsun.com>
58563
58564         * modules/restrict: New file.
58565         * MODULES.html.sh (func_all_modules): Add restrict.
58566         * modules/regex: Depend on restrict.
58567
58568 2003-08-07  Paul Eggert  <eggert@twinsun.com>
58569
58570         * m4/restrict.m4: New file.
58571         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
58572
58573 2003-08-07  Bruno Haible  <bruno@clisp.org>
58574
58575         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
58576         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
58577
58578 2003-08-07  Bruno Haible  <bruno@clisp.org>
58579
58580         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
58581         makes the module 'getndelim2' compatible with the module 'getline'.
58582
58583 2003-08-05  Paul Eggert  <eggert@twinsun.com>
58584
58585         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
58586         byte with "\201" to avoid glitches when editing that source file
58587         with multi-gnome-terminal.
58588
58589 2003-08-05  Paul Eggert  <eggert@twinsun.com>
58590
58591         * lib/bumpalloc.h: Remove.
58592
58593 2003-08-05  Paul Eggert  <eggert@twinsun.com>
58594
58595         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
58596         * modules/bumpalloc: Remove.
58597
58598 2003-08-04  Paul Eggert  <eggert@twinsun.com>
58599
58600         * lib/getloadavg.c: Change copyright notice and spacing to conform to
58601         GNU coding style.
58602
58603         Merge from coreutils.
58604         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
58605         1. From glibc.
58606         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
58607         from Karl Berry, implemented by Jim Meyering.
58608         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
58609         from Dmitry V. Levin.
58610         Remove anachronistic cast of xrealloc.
58611         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
58612         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
58613         type. Otherwise, it wouldn't compile with at least /bin/cc on
58614         ymp-cray-unicos9.0.2.X.
58615         Combine two mostly-identical uses of alloca into one.
58616         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
58617
58618 2003-08-04  Dave Love  <d.love@dl.ac.uk>
58619
58620         [From Emacs.]
58621
58622         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
58623         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
58624         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
58625         obsolete NLIST_NAME_UNION.
58626         [__GNU__]: Undef BSD and FSCALE.
58627         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
58628
58629 2003-08-03  Paul Eggert  <eggert@twinsun.com>
58630
58631         * lib/stdbool_.h (_Bool): Make it signed char, instead of
58632         an enum type, so that it's guaranteed to promote to int.  See:
58633         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
58634
58635 2003-08-03  Karl Berry  <karl@gnu.org>
58636
58637         * config/depcomp: update from automake.
58638
58639 2003-07-31  Paul Eggert  <eggert@twinsun.com>
58640
58641         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
58642         (strerror): Don't assume that a printable int fits in 14 bytes.
58643
58644 2003-07-31  Bruno Haible  <bruno@clisp.org>
58645
58646         * modules/getpass-gnu: New file.
58647         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
58648
58649 2003-07-31  Bruno Haible  <bruno@clisp.org>
58650
58651         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
58652
58653 2003-07-24  Karl Berry  <karl@gnu.org>
58654
58655         * config/missing: update from automake.
58656
58657 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
58658             Bruno Haible  <bruno@clisp.org>
58659
58660         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
58661         * lib/getline.c (getline, getdelim): Likewise.
58662         Remove _GNU_SOURCE define; now it's defined in config.h through
58663         m4/getline.m4.
58664
58665 2003-07-23  Karl Berry  <karl@gnu.org>
58666
58667         * config/config.sub: update from prep.
58668
58669 2003-07-22  Paul Eggert  <eggert@twinsun.com>
58670
58671         * modules/xalloc (Depends-on): Add exitfail.
58672         * modules/xmemcoll: Likewise.
58673
58674 2003-07-22  Paul Eggert  <eggert@twinsun.com>
58675
58676         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
58677         over-parenthesization in macros.
58678
58679         Sync with coreutils.
58680
58681         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
58682         required by C99.
58683
58684         Use `exit_failure' for xalloc and xmemcoll instead of their own
58685         private exit-failure variables.
58686         * lib/xalloc.h (xalloc_exit_failure): Remove.
58687         * lib/xmalloc.c: Likewise.  Include exitfail.h.
58688         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
58689         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
58690         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
58691         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
58692
58693 2003-07-20  Jim Meyering  <jim@meyering.net>
58694
58695         * modules/closeout (Depends-on): Add exitfail.
58696         Suggestion from Bruno Haible.
58697
58698 2003-07-19  Karl Berry  <karl@gnu.org>
58699
58700         * config/config.sub: update from prep.
58701
58702 2003-07-18  Paul Eggert  <eggert@twinsun.com>
58703
58704         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
58705         Remove.
58706         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
58707         to test that it can stand by itself.  Include "exitfail.h".
58708         Clients should set exit_failure instead.
58709         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
58710
58711 2003-07-18  Bruno Haible  <bruno@clisp.org>
58712
58713         * modules/getndelim2: New file.
58714         * modules/getline: Share files with module getndelim2.
58715         * modules/getnline: Depend on getndelim2 instead of sharing files with
58716         it. Add getnline.c to lib_SOURCES.
58717         * MODULES.html.sh (func_all_modules): Add getndelim2.
58718
58719 2003-07-18  Bruno Haible  <bruno@clisp.org>
58720
58721         * m4/getndelim2.m4: New file.
58722         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
58723         invoke gl_PREREQ_GETNDELIM2.
58724         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
58725         gl_PREREQ_GETNDELIM2.
58726         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
58727         gl_GETNDELIM2.
58728
58729 2003-07-18  Bruno Haible  <bruno@clisp.org>
58730
58731         * lib/getndelim2.h: New file.
58732         * lib/getndelim2.c: Make into a module of its own. Include config.h,
58733         getndelim2.h.
58734         (getndelim2): Make non-static. Change return type to ssize_t.
58735         * lib/getline.h: Change argument names.
58736         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
58737         * lib/getnline.c: Include getndelim2.h.
58738
58739 2003-07-18  Andreas Schwab  <schwab@suse.de>
58740
58741         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
58742
58743 2003-07-17  Karl Berry  <karl@gnu.org>
58744
58745         * config/config.sub: update from prep.
58746
58747 2003-07-17  Bruno Haible  <bruno@clisp.org>
58748
58749         * modules/getnline: New file.
58750         * modules/getline: Add lib/getndelim2.c to source file list.
58751         * MODULES.html.sh (func_all_modules): Add getnline.
58752
58753 2003-07-17  Bruno Haible  <bruno@clisp.org>
58754
58755         * m4/getnline.m4: New file.
58756
58757 2003-07-17  Bruno Haible  <bruno@clisp.org>
58758
58759         * m4/Makefile.am.in: Remove file.
58760         * m4/Makefile.am: Remove file.
58761         * m4/Makefile.in: Remove file.
58762
58763 2003-07-17  Bruno Haible  <bruno@clisp.org>
58764
58765         * lib/getnline.h: New file.
58766         * lib/getnline.c: New file.
58767         * lib/getndelim2.c: New file, extracted from getline.c.
58768         (getndelim2): Renamed from getdelim2, with added nmax argument.
58769         * lib/getline.c: Include getndelim2.c.
58770         (getdelim2): Moved out to getndelim2.c.
58771         (getline, getdelim): Update.
58772
58773 2003-07-17  Bruno Haible  <bruno@clisp.org>
58774
58775         * lib/Makefile.am: Remove file.
58776         * lib/Makefile.in: Remove file.
58777
58778 2003-07-17  Bruno Haible  <bruno@clisp.org>
58779
58780         * configure.in: Remove file.
58781         * Makefile.in: Remove file.
58782
58783 2003-07-17  Bruno Haible  <bruno@clisp.org>
58784
58785         * MODULES.html.sh: Put the </BODY> right before </HTML>.
58786
58787 2003-07-16  Karl Berry  <karl@gnu.org>
58788
58789         * config/srclist-update: was running fixlicense twice, which caused
58790                 texinfo.tex to be nullified for some reason.  Simplify,
58791                 $gplsrc is no longer needed as far as I can see?
58792
58793 2003-07-16  Jim Meyering  <jim@meyering.net>
58794
58795         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
58796
58797 2003-07-15  Paul Eggert  <eggert@twinsun.com>
58798
58799         * config/srclist.txt: Get the following files from gettext-runtime/intl
58800         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
58801         ref-del.sin.  From Bruno Haible.
58802         * config/srclist-update (fixfile): Change grep pattern again, since the
58803         previous fix didn't work (there was another trailing $).  Use
58804         '[$]' to escape the $s.
58805
58806 2003-07-15  Karl Berry  <karl@gnu.org>
58807
58808         * lib/vasnprintf.c: update from gettext.
58809
58810 2003-07-15  Karl Berry  <karl@gnu.org>
58811
58812         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
58813         gets expanded when surrounded by '$'.
58814
58815 2003-07-15  Jim Meyering  <jim@meyering.net>
58816
58817         * modules/save-cwd: Don't depend on error.  From Derek Price.
58818
58819 2003-07-15  Jim Meyering  <jim@meyering.net>
58820
58821         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
58822
58823 2003-07-14  Simon Josefsson  <jas@extundo.com>
58824
58825         * modules/mempcpy: New file.
58826         * MODULES.html.sh (func_all_modules): Add mempcpy.
58827
58828 2003-07-14  Simon Josefsson  <jas@extundo.com>
58829
58830         * m4/mempcpy.m4: New file.
58831
58832 2003-07-14  Simon Josefsson  <jas@extundo.com>
58833
58834         * lib/mempcpy.h: New file.
58835         * lib/mempcpy.c: New file.
58836
58837 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58838
58839         * modules/getdate, modules/posixtm: Depend on mktime.
58840
58841 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58842
58843         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
58844         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
58845         unicodeio.c, unicodeio.h, unlocked-io.h:
58846         Switch from LGPL to GPL.
58847
58848 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58849
58850         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
58851         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
58852         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
58853         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
58854         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
58855         updated automatically by ../config/srclist-update.  This changes
58856         their license from LPGL to GPL.
58857
58858 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58859
58860         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
58861         assumed to refer to the root of the most recent stable gettext version.
58862         * config/srclistvars.sh: Add defaults for eggert.
58863         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
58864         Match "This program" as well as "The program".  This is needed
58865         for gettext.
58866
58867 2003-07-14  Jim Meyering  <jim@meyering.net>
58868
58869         Don't emit diagnostics.  Let callers do that.
58870         * lib/save-cwd.c: Don't include "error.h".
58871         (save_cwd): Don't call error.  Ensure that errno is valid
58872         when returning nonzero.
58873
58874         * lib/save-cwd.h (restore_cwd): Update prototype.
58875         * lib/save-cwd.c (restore_cwd): Remove two parameters.
58876         Simplify.  Don't call error upon failure.  Let callers do that.
58877         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
58878         when auditing is enabled.  But don't bother updating the #if.
58879
58880 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
58881
58882         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
58883         it breaks C++ compilation.
58884         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
58885
58886 2003-07-10  Simon Josefsson  <jas@extundo.com>
58887
58888         * modules/strchrnul (Makefile.am): Add strchrnul.h.
58889
58890 2003-07-10  Jim Meyering  <jim@meyering.net>
58891
58892         * m4/clock_time.m4: Remove trailing blank.
58893         * m4/intmax_t.m4: Likewise.
58894
58895 2003-07-10  Jim Meyering  <jim@meyering.net>
58896
58897         * lib/vasnprintf.c: Remove trailing blanks.
58898         Make cpp indentation consistent.
58899
58900 2003-07-09  Paul Eggert  <eggert@twinsun.com>
58901
58902         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
58903         posixver.c, strftime.c, strnlen.c, strverscmp.c:
58904         Switch from LGPL to GPL.
58905
58906 2003-07-09  Paul Eggert  <eggert@twinsun.com>
58907
58908         * config/srclist.txt: Sort sublists.  Add
58909         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
58910         that differ from gnulib for one reason or another; we'd like this list
58911         to be smaller but for now let's document what we have.
58912
58913 2003-07-08  Paul Eggert  <eggert@twinsun.com>
58914
58915         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
58916         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
58917         and sweeter "eval x=$x".
58918         * config/srclist.txt: Get lib/argp* from glibc.
58919
58920 2003-07-07  Paul Eggert  <eggert@twinsun.com>
58921
58922         * lib/mktime.c: Fix some boundary cases and remove need for floating
58923         point.
58924
58925         Issue a compile-time diagnostic if time_t is floating point, or if
58926         two's complement arithmetic is not in effect, or if arithmetic
58927         right shift does not propagate the sign.  These assumptions were
58928         all in the original code but they weren't checked.
58929
58930         (TIME_T_MIDPOINT, verify): New macros.
58931         (__isleap): Remove; it has integer overflow problems.
58932         (leapyear): New function, without those problems.
58933         (ydhms_tm_diff): Remove; splitting into two parts.
58934         (ydhms_diff): New function, containing the arithmetic part of
58935         the old ydhms_tm_diff function.  Issue a compile-time
58936         diagnostic if we are not using C99 integer division.
58937         Avoid casts when possible.
58938         (guess_time_tm): New function, containing the checking part of
58939         the old ydhms_tm_diff function.  Return the new value, rather than
58940         the difference between it and the old.  Accept a new argument T
58941         so that *T specifies the old value.  Check for overflow in the result.
58942
58943         (__mktime_internal): Use a time_t offset, not a long int offset.
58944         This undoes the 2003-06-04 change, which is no longer needed now
58945         that we have better overflow checking.
58946         (localtime_offset): Likewise.
58947
58948         (__mktime_internal): Avoid harmful overflow on hosts where time_t
58949         and long are 64-bit but int is only 32-bit.
58950         (ydhms_diff): Use long int to store year1 and yday1.
58951         Issue a compile-time diagnostic if long int is not wide enough.
58952
58953         (__mktime_internal): Use long int to store adjusted year and yday.
58954         Use plain C rather than preprocessor commands, if that doesn't
58955         affect efficiency.
58956         Check for overflow (and try to repair) after each probe
58957         rather than checking only at the very end.  This avoids some bugs
58958         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
58959         does not equal GMT offset at maximum time).
58960         Use integer to check for overflow rather than floating point; this
58961         is more portable to non-IEEE hosts, and is a tad faster.
58962         When we detect that we are oscillating between two values,
58963         don't check whether tm_isdst has the requested value, since
58964         we already know the answer.  When tm_isdst has the wrong value,
58965         use a different heuristic to find the right one, based on the
58966         extreme values actually observed in practice in tz2003a,
58967         rather than the (overly optimistic) "previous 3 calendar quarters".
58968
58969         (not_equal_tm, print_tm, check_result): Use "const T" rather than
58970         "T const" to accommodate glibc style.
58971         (check_result): Use less-confusing report format.  "long" -> "long int.
58972         (main): Likewise.
58973         Don't loop if the iteration overflows time_t.
58974         Allow a negative step in the iteration.
58975
58976 2003-07-06  Karl Berry  <karl@gnu.org>
58977
58978         * config/depcomp: update from automake.
58979         * config/config.sub: update from prep.
58980
58981 2003-07-03  Karl Berry  <karl@gnu.org>
58982
58983         * config/config.guess: update from prep.
58984
58985 2003-07-01  Paul Eggert  <eggert@twinsun.com>
58986
58987         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
58988         xreadlink.c now includes it unconditionally.
58989
58990 2003-07-01  Paul Eggert  <eggert@twinsun.com>
58991
58992         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
58993         having it depend on HAVE_SYS_TYPES_H.
58994
58995 2003-07-01  Bruno Haible  <bruno@clisp.org>
58996
58997         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
58998         <sys/types.h> should be sufficient.
58999         Reported by Paul Eggert.
59000
59001 2003-06-26  Karl Berry  <karl@gnu.org>
59002
59003         * config/depcomp: update from automake.
59004
59005 2003-06-26  Bruno Haible  <bruno@clisp.org>
59006
59007         * modules/human: Depend on module stdbool.
59008
59009 2003-06-25  Bruno Haible  <bruno@clisp.org>
59010
59011         * modules/readlink: New file.
59012         * modules/xreadlink: Depend on it.
59013         * MODULES.html.sh (func_all_modules): Add readlink.
59014
59015 2003-06-25  Bruno Haible  <bruno@clisp.org>
59016
59017         * m4/readlink.m4: New file.
59018
59019 2003-06-25  Bruno Haible  <bruno@clisp.org>
59020
59021         * lib/readlink.c: New file.
59022
59023 2003-06-22  Karl Berry  <karl@gnu.org>
59024
59025         * config/srclist.txt: update mkinstalldirs from automake.
59026         * config/mkinstalldirs: update.
59027
59028 2003-06-22  Bruno Haible  <bruno@clisp.org>
59029
59030         Portability to mingw32.
59031         * m4/ssize_t.m4: New file, from GNU gettext.
59032         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
59033         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
59034
59035 2003-06-22  Bruno Haible  <bruno@clisp.org>
59036
59037         * modules/safe-read: Add m4/ssize_t.m4.
59038         * modules/xreadlink: Add m4/ssize_t.m4.
59039
59040 2003-06-20  Bruno Haible  <bruno@clisp.org>
59041
59042         Assume C89, so PARAMS isn't needed.
59043         * lib/unicodeio.h (PARAMS): Remove.
59044         * lib/unicodeio.c: Don't use PARAMS.
59045
59046 2003-06-18  Karl Berry  <karl@gnu.org>
59047
59048         * config/config.{guess,sub}: update from prep.
59049
59050 2003-06-18  Jim Meyering  <jim@meyering.net>
59051
59052         Merge changes from coreutils.
59053         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
59054         Remove explicit declarations of xmalloc and realloc.
59055         Include xalloc.h.
59056         (read_utmp): Remove anachronistic cast of xmalloc.
59057
59058 2003-06-17  Paul Eggert  <eggert@twinsun.com>
59059
59060         Assume C89, so PARAMS isn't needed.
59061         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
59062         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
59063         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
59064         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
59065         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
59066         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
59067         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
59068         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
59069         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
59070         lib/xstrtod.h, lib/xstrtol.h: Likewise.
59071         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
59072         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
59073         no longer needed. Anyway, config.h should always be included before any
59074         other file.
59075
59076 2003-06-11  Simon Josefsson  <jas@extundo.com>
59077
59078         * modules/sysexits: New file.
59079         * MODULES.html.sh (func_all_modules): Add sysexits.
59080
59081 2003-06-11  Simon Josefsson  <jas@extundo.com>
59082
59083         * lib/sysexit_.h: New file.
59084
59085 2003-06-11  Derek Price  <derek@ximbiot.com>
59086
59087         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
59088         necessary.
59089
59090 2003-06-11  Bruno Haible  <bruno@clisp.org>
59091
59092         * m4/sysexits.m4: New file.
59093
59094 2003-06-10  Simon Josefsson  <jas@extundo.com>
59095
59096         * lib/argp.h: New file, from glibc.
59097         * lib/argp-ba.c: New file, from glibc.
59098         * lib/argp-eexst.c: New file, from glibc.
59099         * lib/argp-fmtstream.c: New file, from glibc.
59100         * lib/argp-fmtstream.h: New file, from glibc.
59101         * lib/argp-fs-xinl.c: New file, from glibc.
59102         * lib/argp-help.c: New file, from glibc.
59103         * lib/argp-namefrob.h: New file, from glibc.
59104         * lib/argp-parse.c: New file, from glibc.
59105         * lib/argp-pv.c: New file, from glibc.
59106         * lib/argp-pvh.c: New file, from glibc.
59107         * lib/argp-xinl.c: New file, from glibc.
59108
59109 2003-06-10  Simon Josefsson  <jas@extundo.com>
59110
59111         * modules/strchrnul: New file.
59112
59113 2003-06-10  Simon Josefsson  <jas@extundo.com>
59114
59115         * modules/argp: New file.
59116
59117 2003-06-10  Simon Josefsson  <jas@extundo.com>
59118
59119         * m4/strchrnul.m4: New file.
59120
59121 2003-06-10  Simon Josefsson  <jas@extundo.com>
59122
59123         * lib/strchrnul.h: New file.
59124         * lib/strchrnul.c: New file.
59125
59126 2003-06-10  Bruno Haible  <bruno@clisp.org>
59127
59128         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
59129
59130 2003-06-07  Karl Berry  <karl@gnu.org>
59131
59132         * config/config.{guess,sub}: update from prep.
59133
59134 2003-06-07  Jim Meyering  <jim@meyering.net>
59135
59136         * modules/strtod: Use $(...) notation, not @...@ for
59137         AC_REPLACE'd variables.
59138         * modules/localcharset: Likewise.
59139
59140 2003-06-07  Jim Meyering  <jim@meyering.net>
59141
59142         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
59143         in place of my name in the copyright comment.
59144         Remove definition and uses of __P.
59145
59146         From coreutils.
59147         * lib/stat.c: Don't declare xmalloc explicitly.
59148         Instead, include "xalloc.h".
59149         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
59150         xrealloc, and xcalloc return values.
59151         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
59152         Improve comment.
59153         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
59154
59155 2003-06-07  Bruno Haible  <bruno@clisp.org>
59156
59157         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
59158         avoid AC_CONFIG_LINKS.
59159         * modules/fnmatch (Makefile.am): Use explicit creation rule for
59160         fnmatch.h, to avoid AC_CONFIG_LINKS.
59161         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
59162
59163 2003-06-07  Bruno Haible  <bruno@clisp.org>
59164
59165         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
59166         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
59167         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
59168         directory.
59169         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
59170         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
59171         directory.
59172
59173 2003-06-06  Jim Meyering  <jim@meyering.net>
59174
59175         Merge from coreutils.
59176         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
59177         Consolidate declarations and initializations of *_base* locals.
59178
59179         Merge from coreutils.
59180         This avoids a core dump on systems without GNU putenv,
59181         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
59182         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
59183         (unsetenv): New static function, from GNU libc.
59184         (rpl_putenv): Use it.
59185
59186         * lib/modechange.c: Remove trailing blanks.
59187
59188         Merge from coreutils.
59189         * lib/fsusage.c: Remove declaration of statfs.
59190         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
59191
59192         * lib/posixtm.c: Include <stdbool.h> unconditionally.
59193
59194 2003-06-06  Jim Meyering  <jim@meyering.net>
59195
59196         * lib/stdbool_.h: Renamed from stdbool.h.in.
59197
59198 2003-06-06  Jim Meyering  <jim@meyering.net>
59199             Bruno Haible  <bruno@clisp.org>
59200
59201         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
59202         Adjust Makefile.am snippet not to redirect directly to target.
59203         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
59204
59205 2003-06-05  Paul Eggert  <eggert@twinsun.com>
59206
59207         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
59208         mismatch, look in future quarters as well as past.  This fixes a
59209         bug when processing fall-backwards gaps immediately after a long
59210         period of daylight-saving time.
59211
59212         * lib/mktime.c: Assume freestanding C89 or better.
59213         (HAVE_LIMITS_H): Remove.  Assume it's 1.
59214         (__P): Remove; not used.
59215         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
59216         (mktime, not_equal_tm, print_tm, check_result,
59217         main): Use prototypes.  Use const * where appropriate.
59218         (main): Fix typo in testing code that uncovered by above changes.
59219         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
59220
59221 2003-06-04  Paul Eggert  <eggert@twinsun.com>
59222
59223         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
59224         locale.h, localeconv.  This merges changes from coreutils.
59225
59226         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
59227         It can be removed after the next Autoconf is released.
59228         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
59229         needed.
59230
59231 2003-06-04  Paul Eggert  <eggert@twinsun.com>
59232
59233         * lib/mktime.c: Fix Debian bug 177940
59234         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
59235         (localtime_offset): Now long int, not time_t, because we want it
59236         to be guaranteed to be signed.  All uses changed.
59237         (__mktime_internal): If overflow would occur when adding offset,
59238         don't add it.
59239
59240         Merge 'human' changes from coreutils.  Rewrite to support
59241         locale-specific notations like thousands separators.
59242         * lib/human.c: Simplify authorship notice.
59243         Include human.h immediately after config.h.
59244         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
59245         <limits.h>: Do not include, since human.h does.
59246         (SIZE_MAX, UINTMAX_MAX): New macros.
59247         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
59248         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
59249         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
59250         (power_letter): Renamed from suffixes.
59251         (generate_suffix_backwards): Remove.
59252         (adjust_value): Now takes int style (because of human.h changes)
59253         and long double value (for greater precision on some platforms).
59254         (group_number): New function.
59255         (human_readable): Use it.  Use integer options, not enum.
59256         Put the options before the sizes in the arg list.
59257         Support all the new options.
59258         The old human_readable function has been removed;
59259         use inttostr.h instead.
59260         (human_readable, default_block_size, humblock):
59261         Use uintmax_t, not int, for block sizes.
59262         (human_readable_inexact, block_size_types): Remove.
59263         (block_size_opts): New constant.
59264         (human_options): Renamed from human_block_size, with new signature
59265         that allows block sizes up to UINTMAX_MAX.  All callers changed.
59266         * lib/human.h: Add copyright and authorship notice.
59267         Include <limits.h> and <stdbool.h> unconditionally.
59268         (PARAMS): Remove.  All uses removed.
59269         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
59270         (enum human_inexact_style): Remove tag; now a nameless enum.
59271         (human_floor, human_ceiling, human_round_to_even): Now have
59272         values 2, 0, 1 rather than -1, 1, 0.
59273         (human_group_digits, human_suppress_point_zero, human_autoscale,
59274         human_base_1024, human_SI, human_B): New constants.
59275         (human_readable_inexact, human_block_size): Remove.
59276         (human_readable): Size args are now uintmax_t, not int.
59277         (human_options): New decl.
59278
59279         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
59280         unnecessary now that we assume C89 or better.  This change
59281         imported from coreutils.
59282
59283         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
59284         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
59285         in the 2003-05-30 sync from glibc.
59286
59287         .h files should stand alone, but we shouldn't include <sys/types.h>
59288         if we can get away with just <stddef.h>.
59289
59290         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
59291         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
59292         rather than <sys/types.h>, as we merely need size_t.
59293         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
59294         to get size_t.
59295         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
59296         Include <stdio.h>, to get FILE.
59297         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
59298         memcasecmp.h has included <stddef.h> and all we need is size_t.
59299         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
59300         our interface, instead of including <sys/types.h>
59301
59302 2003-06-04  Paul Eggert  <eggert@twinsun.com>
59303
59304         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
59305         now, as glibc mktime is buggy on non-glibc systems.
59306
59307 2003-06-03  Karl Berry  <karl@gnu.org>
59308
59309         * config/config.sub: update from prep.
59310
59311 2003-06-02  Paul Eggert  <eggert@twinsun.com>
59312
59313         [from coreutils]
59314         Fix some minor time-related bugs with POSIX time arguments.
59315         Some valid time stamps were being rejected (notably -1, and
59316         time stamps before 1900 on 64-bit hosts).  And some invalid
59317         time stamps were being accepted, e.g. September 31.
59318
59319         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
59320         that we can return (time_t) -1 successfully.
59321         * lib/posixtm.c: Likewise.
59322         [HAVE_STDBOOL_H]: Include <stdbool.h>.
59323         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
59324         (t): Remove static var.
59325         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
59326         of static var.  All uses changed.
59327         (year): Do not reject years before 1900; they can occur with
59328         64-bit time_t.
59329         (posix_time_parse): Do not check for out-of-range components;
59330         that is now the caller's responsibility, since our checks were
59331         only approximations.
59332         (posixtime): Use mktime to check for out-of-range components,
59333         since it knows them exactly.
59334         If mktime returns (time_t) -1, check whether an error actually occurred
59335         by invoking localtime on -1.
59336         (main) [TEST_POSIXTIME]: Check for input data errors, and report
59337         posixtime failures better.
59338         Improve the test data (in comments only).
59339
59340 2003-06-02  Karl Berry  <karl@gnu.org>
59341
59342         * config/mkinstalldirs (version): new variable.
59343         (--version): new option.
59344         (usage): improve message.
59345
59346 2003-05-30  Karl Berry  <karl@gnu.org>
59347
59348         * lib/mktime.c: update from libc.
59349
59350 2003-05-30  Bruno Haible  <bruno@clisp.org>
59351
59352         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
59353         * config/config.rpath: Upgrade to gettext-0.12.1.
59354
59355 2003-05-30  Bruno Haible  <bruno@clisp.org>
59356
59357         * m4/gettext.m4: Upgrade to gettext-0.12.1.
59358         * m4/nls.m4: New file, from gettext-0.12.1.
59359         * m4/po.m4: New file, from gettext-0.12.1.
59360         * m4/progtest.m4: Upgrade to gettext-0.12.1.
59361
59362 2003-05-30  Bruno Haible  <bruno@clisp.org>
59363
59364         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
59365         * lib/localcharset.h: Likewise.
59366         * lib/localcharset.c: Likewise.
59367
59368 2003-05-29  Karl Berry  <karl@gnu.org>
59369
59370         * config/config.rpath: update from gettext.
59371
59372 2003-05-28  Paul Eggert  <eggert@twinsun.com>
59373
59374         Assume the headers required for C89 freestanding compilers.
59375         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
59376         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
59377         * m4/human.m4 (gl_HUMAN): Likewise.
59378         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
59379         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
59380         * m4/userspec.m4 (gl_USERSPEC): Likewise.
59381         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
59382         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
59383         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
59384
59385 2003-05-28  Paul Eggert  <eggert@twinsun.com>
59386
59387         Assume the headers required for C89 freestanding compilers.
59388         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
59389         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
59390         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
59391         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
59392         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
59393         define, since <limits.h> is guaranteed to do that.
59394         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
59395         * lib/exclude.c: Include <stdbool.h> unconditionally.
59396         * lib/tempname.c: Include <stddef.h> unconditionally.
59397         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
59398         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
59399         <stddef.h> does that.
59400         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
59401         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
59402         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
59403         needed.
59404         * lib/xstrtol.c: Likewise.
59405         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
59406         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
59407
59408         * lib/addext.c (addext): Use assignment rather than cast, to avoid
59409         warnings on some platforms.
59410
59411         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
59412         arbitrarily.
59413
59414 2003-05-26  Jim Meyering  <jim@meyering.net>
59415
59416         Merge in a change from coreutils:
59417         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
59418         that is guaranteed to be `no'.  Use `no_such_member' to indicate
59419         that condition, rather than `-1' which is slightly misleading.
59420         Change the name of the cache variable to have the gl_ prefix.
59421         Prompted by a patch from Richard Dawe for DJGPP.
59422
59423 2003-05-24  Karl Berry  <karl@gnu.org>
59424
59425         * config/config.guess: update from prep.
59426
59427 2003-05-22  Karl Berry  <karl@gnu.org>
59428
59429         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
59430
59431 2003-05-20  Karl Berry  <karl@gnu.org>
59432
59433         * config/config.guess: update from prep.
59434
59435 2003-05-18  Karl Berry  <karl@gnu.org>
59436
59437         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
59438         might actually be set by the user.
59439
59440         * config/depcomp, install-sh, mdate-sh: update from automake.
59441
59442 2003-05-17  Bruno Haible  <bruno@clisp.org>
59443
59444         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
59445         invalid expansion for AC_EGREP_CPP.
59446         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
59447         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
59448         Suggested by Akim Demaille <akim@epita.fr> in
59449         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
59450
59451 2003-05-12  Jim Meyering  <jim@meyering.net>
59452
59453         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
59454         the space-padded-by-default conversion specifiers, %e, %k, %l.
59455
59456 2003-05-12  Bruno Haible  <bruno@clisp.org>
59457
59458         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
59459         the string is longer than 4 KB.
59460
59461 2003-05-11  Karl Berry  <karl@gnu.org>
59462
59463         * config/config.{guess,sub}: update from prep.
59464
59465 2003-05-09  Bruno Haible  <bruno@clisp.org>
59466
59467         * modules/error: Add m4/strerror_r.m4 to file list.
59468
59469 2003-05-03  Bruno Haible  <bruno@clisp.org>
59470
59471         Upgrade to Unicode-4.0.
59472         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
59473         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
59474         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
59475         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
59476         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
59477         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
59478         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
59479         Change width of U+E0100..U+E01EF from 1 to 0.
59480
59481 2003-04-25  Jim Meyering  <jim@meyering.net>
59482
59483         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
59484         of type size_t, not int.
59485
59486 2003-04-25  Bruno Haible  <bruno@clisp.org>
59487
59488         * lib/copy-file.c: Include <stddef.h>, for size_t.
59489
59490 2003-04-21  Paul Eggert  <eggert@twinsun.com>
59491
59492         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
59493         code which expansion is under static control.  Patch imported from
59494         Akim Demaille's patch to Bison; see
59495         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
59496
59497 2003-04-14  Bruno Haible  <bruno@clisp.org>
59498
59499         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
59500
59501 2003-04-11  Jim Meyering  <jim@meyering.net>
59502
59503         Merge changes from Coreutils.
59504
59505         2003-03-22  Jim Meyering  <jim@meyering.net>
59506
59507         * lib/strftime.c (widen): Cast alloca return value to proper type.
59508
59509         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
59510
59511         From GNU libc.
59512         * lib/strftime.c (my_strftime): Handle very large width
59513         specifications for numeric values correctly.  Improve checks for
59514         overflow.
59515
59516         2003-01-19  Jim Meyering  <jim@meyering.net>
59517
59518         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
59519         definitions.
59520         (nl_get_alt_digit) [! defined my_strftime]: Define.
59521         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
59522         _nl_get_alt_digit and _nl_get_walt_digit.
59523
59524         * lib/strftime.c (my_strftime): Merge in locale-related changes from
59525         libc. These changes have no effect outside of _LIBC.
59526
59527 2003-04-10  Bruno Haible  <bruno@clisp.org>
59528
59529         * modules/findprog: New file.
59530         * MODULES.html.sh (func_all_modules): Add it.
59531
59532 2003-04-10  Bruno Haible  <bruno@clisp.org>
59533
59534         * m4/findprog.m4: New file.
59535         * m4/eaccess.m4: New file.
59536
59537 2003-04-10  Bruno Haible  <bruno@clisp.org>
59538
59539         * lib/findprog.h: New file, from GNU gettext.
59540         * lib/findprog.c: New file, from GNU gettext.
59541
59542 2003-04-05  Jim Meyering  <jim@meyering.net>
59543
59544         Merge changes from Coreutils.
59545
59546         * lib/exclude.h (PARAMS): Remove definition and uses.
59547         * lib/exclude.c: Remove uses of `PARAMS'.
59548
59549         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
59550         Add test-cases for DOS filenames. Declare program_name.
59551         (main): Set up program_name.  Patch by Rich Dawe.
59552
59553         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
59554         error from mntctl.
59555         Use mntctl's return value to drive the entry-processing loop, since
59556         we can't rely on the value of the vmt_length member in the last
59557         entry.  On some systems doing so could result in exhausting
59558         virtual memory.  Based in part on a patch from Mike Jetzer.
59559
59560 2003-04-04  Bruno Haible  <bruno@clisp.org>
59561
59562         * modules/linebreak: New file.
59563         * MODULES.html.sh (func_all_modules): Add it.
59564
59565 2003-04-04  Bruno Haible  <bruno@clisp.org>
59566
59567         * m4/linebreak.m4: New file.
59568
59569 2003-04-04  Bruno Haible  <bruno@clisp.org>
59570
59571         * lib/linebreak.h: New file, from GNU gettext.
59572         * lib/linebreak.c: New file, from GNU gettext with slight
59573         modifications.
59574         * lib/lbrkprop.h: New file, from GNU gettext.
59575
59576 2003-04-03  Bruno Haible  <bruno@clisp.org>
59577
59578         * modules/utf8-ucs4: New file.
59579         * modules/utf16-ucs4: New file.
59580         * modules/ucs4-utf8: New file.
59581         * modules/ucs4-utf16: New file.
59582         * MODULES.html.sh (func_all_modules): Add them.
59583
59584 2003-04-03  Bruno Haible  <bruno@clisp.org>
59585
59586         * m4/utf-ucs4.m4: New file.
59587         * m4/ucs4-utf.m4: New file.
59588
59589 2003-04-03  Bruno Haible  <bruno@clisp.org>
59590
59591         * lib/utf8-ucs4.h: New file, from GNU gettext.
59592         * lib/utf16-ucs4.h: New file, from GNU gettext.
59593         * lib/ucs4-utf8.h: New file, from GNU gettext.
59594         * lib/ucs4-utf16.h: New file, from GNU gettext.
59595
59596 2003-04-02  Bruno Haible  <bruno@clisp.org>
59597
59598         * modules/binary-io: New file.
59599         * MODULES.html.sh (func_all_modules): Add it.
59600
59601 2003-04-02  Bruno Haible  <bruno@clisp.org>
59602
59603         * lib/binary-io.h: New file, from GNU gettext.
59604
59605 2003-04-01  Bruno Haible  <bruno@clisp.org>
59606
59607         * modules/pathname: New file.
59608         * MODULES.html.sh (func_all_modules): Add it.
59609
59610 2003-04-01  Bruno Haible  <bruno@clisp.org>
59611
59612         * lib/pathname.h: New file, from GNU gettext.
59613         * lib/concatpath.c: New file, from GNU gettext.
59614
59615 2003-03-30  Bruno Haible  <bruno@clisp.org>
59616
59617         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
59618
59619 2003-03-30  Bruno Haible  <bruno@clisp.org>
59620
59621         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
59622         function chown() doesn't exist.
59623
59624 2003-03-28  Bruno Haible  <bruno@clisp.org>
59625
59626         * modules/copy-file: New file.
59627         * MODULES.html.sh (func_all_modules): Add it.
59628
59629 2003-03-28  Bruno Haible  <bruno@clisp.org>
59630
59631         * m4/copy-file.m4: New file.
59632
59633 2003-03-28  Bruno Haible  <bruno@clisp.org>
59634
59635         * lib/copy-file.h: New file, from GNU gettext.
59636         * lib/copy-file.c: New file, from GNU gettext.
59637
59638 2003-03-18  Jim Meyering  <jim@meyering.net>
59639
59640         * lib/quote.c (quote_n): Fix typo in comment.
59641
59642 2003-03-18  Bruno Haible  <bruno@clisp.org>
59643
59644         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
59645         checking.
59646         * m4/onceonly_2_57.m4: Likewise.
59647
59648 2003-03-17  Bruno Haible  <bruno@clisp.org>
59649
59650         * m4/onceonly.m4: Require autoconf 2.54 or newer.
59651         (m4_quote): Remove macro.
59652         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
59653
59654 2003-03-14  Jim Meyering  <jim@meyering.net>
59655
59656         Merge changes from Coreutils.
59657         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
59658         to be const, in order to avoid warnings.
59659         (obstack_room): Likewise.
59660         (obstack_empty_p): Likewise.
59661
59662 2003-03-14  Bruno Haible  <bruno@clisp.org>
59663
59664         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
59665         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
59666
59667 2003-03-13  Paul Eggert  <eggert@twinsun.com>
59668
59669         Merge changes from Bison.
59670         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
59671         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
59672         when compiling Bison 1.875's `bitset bset = obstack_alloc
59673         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
59674         * lib/hash.c: Include <stdbool.h> unconditionally.
59675
59676 2003-03-13  Paul Eggert  <eggert@twinsun.com>
59677
59678         * m4/onceonly.m4 (m4_quote): New macro.
59679         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
59680         Quote AC_FOREACH variable-expansions properly.
59681
59682 2003-03-13  Paul Eggert  <eggert@twinsun.com>
59683
59684         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
59685
59686 2003-03-09  Paul Eggert  <eggert@twinsun.com>
59687
59688         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
59689         Reported by Bruce Becker; see:
59690         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
59691
59692 2003-03-03  Paul Eggert  <eggert@twinsun.com>
59693             Bruno Haible  <bruno@clisp.org>
59694
59695         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
59696         Reported by John Hughes, see
59697         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
59698
59699 2003-02-20  Bruno Haible  <bruno@clisp.org>
59700
59701         * MODULES.html.sh (func_all_modules): Add poll.
59702
59703 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
59704
59705         * modules/poll: New file.
59706
59707 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
59708
59709         * lib/poll_.h: New file.
59710         * lib/poll.c: New file.
59711
59712 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
59713
59714         * m4/poll.m4: New file.
59715
59716 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
59717
59718         * modules/mathl: New file.
59719
59720 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
59721
59722         * lib/mathl.h: New file.
59723         * lib/acosl.c: New file.
59724         * lib/asinl.c: New file.
59725         * lib/atanl.c: New file.
59726         * lib/ceill.c: New file.
59727         * lib/cosl.c: New file.
59728         * lib/expl.c: New file.
59729         * lib/floorl.c: New file.
59730         * lib/frexpl.c: New file.
59731         * lib/ldexpl.c: New file.
59732         * lib/logl.c: New file.
59733         * lib/sincosl.c: New file.
59734         * lib/sinl.c: New file.
59735         * lib/sqrtl.c: New file.
59736         * lib/tanl.c: New file.
59737         * lib/trigl.c: New file.
59738         * lib/trigl.h: New file.
59739
59740 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
59741
59742         * m4/mathl.m4: New file.
59743
59744 2003-02-18  Bruno Haible  <bruno@clisp.org>
59745
59746         * MODULES.html.sh (func_all_modules): Add mathl.
59747
59748 2003-02-17  Bruno Haible  <bruno@clisp.org>
59749
59750         * modules/mkdtemp: New module.
59751         * MODULES.html.sh (func_all_modules): Add it.
59752
59753 2003-02-17  Bruno Haible  <bruno@clisp.org>
59754
59755         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
59756
59757 2003-02-17  Bruno Haible  <bruno@clisp.org>
59758
59759         * lib/mkdtemp.h: New file, from GNU gettext.
59760         * lib/mkdtemp.c: New file, from GNU gettext.
59761
59762 2003-02-02  Jim Meyering  <jim@meyering.net>
59763
59764         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
59765         e.g. glibc-2.2.93.
59766
59767 2003-01-31  Bruno Haible  <bruno@clisp.org>
59768
59769         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
59770         'rpl_rename'.
59771         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
59772         'rpl_strnlen'.
59773         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
59774         'rpl_strtod'.
59775         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
59776         'rpl_utime'.
59777
59778 2003-01-31  Bruno Haible  <bruno@clisp.org>
59779
59780         * lib/rename.c: #undef rename before defining rpl_rename.
59781         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
59782
59783 2003-01-30  Bruno Haible  <bruno@clisp.org>
59784
59785         * modules/vasnprintf, modules/vasprintf: New modules.
59786         * MODULES.html.sh (func_all_modules): Add them.
59787
59788 2003-01-30  Bruno Haible  <bruno@clisp.org>
59789
59790         * m4/signed.m4: New file, from GNU gettext.
59791         * m4/longdouble.m4: New file, from GNU gettext.
59792         * m4/wchar_t.m4: New file, from GNU gettext.
59793         * m4/wint_t.m4: New file, from GNU gettext.
59794         * m4/vasnprintf.m4: New file.
59795         * m4/vasprintf.m4: New file.
59796
59797 2003-01-30  Bruno Haible  <bruno@clisp.org>
59798
59799         * lib/printf-args.h: New file, from GNU gettext.
59800         * lib/printf-args.c: New file, from GNU gettext.
59801         * lib/printf-parse.h: New file, from GNU gettext.
59802         * lib/printf-parse.c: New file, from GNU gettext.
59803         * lib/vasnprintf.h: New file, from GNU gettext.
59804         * lib/vasnprintf.c: New file, from GNU gettext.
59805         * lib/asnprintf.c: New file, from GNU gettext.
59806         * lib/vasprintf.h: New file, from GNU gettext with modifications.
59807         * lib/vasprintf.c: New file, from GNU gettext.
59808         * lib/asprintf.c: New file, from GNU gettext.
59809
59810 2003-01-29  Bruno Haible  <bruno@clisp.org>
59811
59812         * modules/stpncpy: New module.
59813         * MODULES.html.sh (func_all_modules): Add it.
59814
59815 2003-01-29  Bruno Haible  <bruno@clisp.org>
59816
59817         * m4/stpncpy.m4: New file.
59818
59819 2003-01-29  Bruno Haible  <bruno@clisp.org>
59820
59821         * lib/stpncpy.h: New file, from GNU gettext with modifications.
59822         * lib/stpncpy.c: New file, from GNU gettext with modifications.
59823
59824 2003-01-28  Bruno Haible  <bruno@clisp.org>
59825
59826         * modules/c-ctype: New module.
59827         * MODULES.html.sh (func_all_modules): Add it.
59828
59829 2003-01-28  Bruno Haible  <bruno@clisp.org>
59830
59831         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
59832         Paul Eggert.
59833         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
59834         Paul Eggert.
59835
59836 2003-01-27  Bruno Haible  <bruno@clisp.org>
59837
59838         * modules/xsetenv: New module.
59839         * MODULES.html.sh (func_all_modules): Add it.
59840
59841 2003-01-27  Bruno Haible  <bruno@clisp.org>
59842
59843         * lib/xsetenv.h: New file, from GNU gettext.
59844         * lib/xsetenv.c: New file, from GNU gettext.
59845
59846 2003-01-23  Jim Meyering  <jim@meyering.net>
59847
59848         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
59849         from working on systems without dirfd (at least Irix and OSF1/Tru64).
59850
59851 2003-01-23  Bruno Haible  <bruno@clisp.org>
59852
59853         * modules/minmax: New module.
59854         * MODULES.html.sh (func_all_modules): Add it.
59855
59856 2003-01-23  Bruno Haible  <bruno@clisp.org>
59857
59858         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
59859         Eggert.
59860
59861 2003-01-22  Bruno Haible  <bruno@clisp.org>
59862
59863         * modules/exit: New module.
59864         * MODULES.html.sh (func_all_modules): Add it.
59865
59866 2003-01-22  Bruno Haible  <bruno@clisp.org>
59867
59868         * lib/exit.h: New file, from GNU gettext.
59869
59870 2003-01-19  Bruno Haible  <bruno@clisp.org>
59871
59872         * gnulib-tool: Recognize option --extract-maintainer.
59873         (func_get_maintainer): New function.
59874         * modules/*: Add Maintainer entry.
59875
59876 2003-01-16  Jim Meyering  <jim@meyering.net>
59877
59878         * m4/regex.m4: The `regex' struct is both input and output.
59879         Initialize it before each use.  Patch by Tim Waugh.
59880
59881 2003-01-16  Bruno Haible  <bruno@clisp.org>
59882
59883         * MODULES.html.sh: Add a table of contents. Add the module name as
59884         leftmost column. Add hyperlinks.
59885
59886 2003-01-15  Bruno Haible  <bruno@clisp.org>
59887
59888         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
59889
59890 2003-01-15  Bruno Haible  <bruno@clisp.org>
59891
59892         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
59893         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
59894         suffix.
59895
59896 2003-01-15  Bruno Haible  <bruno@clisp.org>
59897
59898         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
59899
59900 2003-01-15  Bruno Haible  <bruno@clisp.org>
59901
59902         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
59903         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
59904
59905 2003-01-14  Jim Meyering  <jim@meyering.net>
59906
59907         * lib/same.c (same_name): Tweak a comment.
59908
59909 2003-01-14  Bruno Haible  <bruno@clisp.org>
59910
59911         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
59912         when a string comparison is sufficient.
59913
59914 2003-01-14  Bruno Haible  <bruno@clisp.org>
59915
59916         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
59917         'unsigned int'.
59918
59919 2003-01-14  Bruno Haible  <bruno@clisp.org>
59920
59921         * lib/hash-pjw.c: Add comment about low quality of this function.
59922
59923 2003-01-13  Bruno Haible  <bruno@clisp.org>
59924
59925         * modules/stpcpy: Distribute lib/stpcpy.h.
59926         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
59927
59928 2003-01-13  Bruno Haible  <bruno@clisp.org>
59929
59930         * modules/*: Add a description.
59931         * modules/strpbrk: Fix Makefile.am snippet.
59932         * modules/strtoimax: Fix dependencies.
59933         * modules/strtoumax: Likewise.
59934
59935 2003-01-13  Bruno Haible  <bruno@clisp.org>
59936
59937         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
59938         * modules/alloca (Makefile.am): All object files depend on alloca.h.
59939         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
59940
59941 2003-01-13  Bruno Haible  <bruno@clisp.org>
59942
59943         * gnulib-tool (func_create_testdir): Store config/* files in the main
59944         directory.
59945         * config.rpath: Move to ...
59946         * config/config.rpath: ... here.
59947         * modules/gettext: Contains config/config.rpath, not config.rpath.
59948         * modules/iconv: Likewise.
59949
59950 2003-01-12  Paul Eggert  <eggert@twinsun.com>
59951
59952         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59953         to avoid collisions with libcurses and libreadline.
59954
59955         * m4/getstr.m4: Remove.
59956         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
59957
59958 2003-01-12  Paul Eggert  <eggert@twinsun.com>
59959
59960         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59961         to avoid collisions with libcurses and libreadline.
59962
59963         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
59964         * lib/getstr.h, getstr.c: Remove.
59965         * lib/getline.c: Include "getline.h", to check interface.
59966         Move body of old getstr.c here: this defines MIN_CHUNK and
59967         declares getdelim2, which is renamed from getstr.
59968         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
59969
59970         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
59971         All uses changed.
59972         * lib/linebuffer.h: Likewise.
59973         (readline): Remove backward-compatibility macro.
59974
59975 2003-01-12  Paul Eggert  <eggert@twinsun.com>
59976
59977         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59978         to avoid collisions with libcurses and libreadline.
59979         * getstr: Remove.
59980         * MODULES.html.sh: Remove getstr.
59981         * modules/getline: Depend on unlocked-io, not getstr.
59982
59983 2003-01-12  Jim Meyering  <jim@meyering.net>
59984
59985         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
59986
59987 2003-01-10  Bruno Haible  <bruno@clisp.org>
59988
59989         * modules/alloca: Change Makefile.am requirements. Simplify Include
59990         requirements. Add lib/alloca_.h to file list.
59991
59992 2003-01-10  Bruno Haible  <bruno@clisp.org>
59993
59994         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
59995
59996 2003-01-10  Bruno Haible  <bruno@clisp.org>
59997
59998         * lib/alloca_.h: New file.
59999         * lib/getdate.y: Unconditionally include alloca.h.
60000         * lib/makepath.c: Likewise.
60001         * lib/setenv.c: Likewise.
60002         * lib/userspec.c: Likewise.
60003
60004 2003-01-09  Karl Berry  <karl@gnu.org>
60005
60006         * MODULES.html.sh: include `dirname $0` in PATH, to find
60007         gnulib-tool.
60008
60009 2003-01-09  Bruno Haible  <bruno@clisp.org>
60010
60011         * modules/stdbool: Change configure.ac, Makefile.am requirements.
60012         Simplify Include requirements. Add lib/stdbool.h.in to file list.
60013
60014 2003-01-09  Bruno Haible  <bruno@clisp.org>
60015
60016         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
60017
60018 2003-01-09  Bruno Haible  <bruno@clisp.org>
60019
60020         * lib/stdbool.h.in: New file.
60021
60022 2003-01-09  Bruno Haible  <bruno@clisp.org>
60023
60024         * gnulib-tool (func_all_modules): Ignore files ending in ~.
60025         * MODULES.html.sh: Likewise.
60026
60027 2003-01-08  Jim Meyering  <jim@meyering.net>
60028
60029         * lib/full-write.c: Undefine and define-away `const' after inclusion
60030         of errno.h, not before.  Suggestion from Bruno Haible.
60031
60032 2003-01-08  Bruno Haible  <bruno@clisp.org>
60033
60034         * modules/full-read: Depend on full-write.
60035
60036 2003-01-08  Bruno Haible  <bruno@clisp.org>
60037
60038         * lib/safe-read.c: Include specification header first, to ensure its
60039         selfcontainedness.
60040         * lib/full-write.c: Likewise.
60041
60042 2003-01-07  Jim Meyering  <jim@meyering.net>
60043
60044         * lib/full-write.c: Rework so that it may serve to define full_read,
60045         too.
60046         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
60047
60048 2003-01-07  Bruno Haible  <bruno@clisp.org>
60049
60050         * lib/strtoimax.c: Include <stdint.h> as an alternative to
60051         <inttypes.h>.
60052         * lib/xstrtol.h: Likewise.
60053         * lib/xstrtoimax.c: Likewise.
60054         * lib/xstrtoumax.c: Likewise.
60055         * lib/human.h: Likewise.
60056
60057         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
60058         on systems that have <inttypes.h> but not <stdint.h>.
60059
60060 2003-01-07  Bruno Haible  <bruno@clisp.org>
60061
60062         * MODULES.html.sh: Add copyright notice.
60063         (missed_files): Omit CVS directory entries.
60064         (func_module): Make it work with sed-3.02.
60065         * MODULES.txt: Remove file.
60066
60067 2003-01-06  Jim Meyering  <jim@meyering.net>
60068
60069         * lib/version-etc.c: Update year in translatable copyright string.
60070
60071 2003-01-03  Karl Berry  <karl@gnu.org>
60072
60073         * config/config.{guess,sub}: update from prep.
60074
60075 2003-01-02  Karl Berry  <karl@gnu.org>
60076
60077         * doc/COPYING.DOC: belatedly updated to 1.2.
60078
60079 2003-01-01  Karl Berry  <karl@gnu.org>
60080
60081         * gnulib-tool (func_verify_module): report module name $module in
60082         error message, not $1.
60083         * gnulib-tool (create-testdir): don't complain if destdir couldn't
60084         be created, only if it doesn't exist.
60085         * gnulib-tool (last_checkin_date): don't expand the $Date here.
60086
60087 2002-12-31  Paul Eggert  <eggert@twinsun.com>
60088
60089         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
60090
60091 2002-12-31  Paul Eggert  <eggert@twinsun.com>
60092
60093         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
60094         memcmp if strcoll doesn't work.
60095
60096 2002-12-31  Bruno Haible  <bruno@clisp.org>
60097
60098         * lib/utime.c (utime_null): No need to call ftruncate if the file was
60099         nonempty.
60100
60101 2002-12-31  Bruno Haible  <bruno@clisp.org>
60102
60103         * lib/memcoll.c (STRCOLL): New macro.
60104         (memcoll): Use it.
60105
60106 2002-12-31  Bruno Haible  <bruno@clisp.org>
60107
60108         * lib/localcharset.h: New file.
60109         * lib/localcharset.c: Include it.
60110         * lib/unicodeio.c: Likewise.
60111
60112 2002-12-31  Bruno Haible  <bruno@clisp.org>
60113
60114         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
60115         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
60116
60117 2002-12-31  Bruno Haible  <bruno@clisp.org>
60118
60119         * lib/getline.h: Include <stddef.h>, for size_t.
60120
60121         * lib/unicodeio.h: Include <stddef.h>, for size_t.
60122         * lib/unicodeio.c: Don't include <stddef.h>.
60123
60124 2002-12-31  Bruno Haible  <bruno@clisp.org>
60125
60126         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
60127         HAVE_TM_ZONE.
60128
60129 2002-12-24  Karl Berry  <karl@gnu.org>
60130
60131         * config/config.guess: update from prep.
60132
60133 2002-12-24  Bruno Haible  <bruno@clisp.org>
60134
60135         General infrasructure.
60136         * m4/README: Rewritten.
60137         * m4/onceonly.m4: New file.
60138         * m4/onceonly_2_57.m4: New file.
60139
60140         Module atexit.
60141         * m4/atexit.m4: New file.
60142
60143         Module strtod.
60144         * m4/strtod.m4: New file.
60145
60146         Module strtol.
60147         * m4/strtol.m4: New file.
60148
60149         Module strtoul.
60150         * m4/strtoul.m4: New file.
60151
60152         Module memchr.
60153         * m4/memchr.m4: New file.
60154
60155         Module memcmp.
60156         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
60157         (jm_FUNC_MEMCMP): Invoke it.
60158
60159         Module memcpy.
60160         * m4/memcpy.m4: New file.
60161
60162         Module memmove.
60163         * m4/memmove.m4: New file.
60164
60165         Module memset.
60166         * m4/memset.m4: New file.
60167
60168         Module strcspn.
60169         * m4/strcspn.m4: New file.
60170
60171         Module strpbrk.
60172         * m4/strpbrk.m4: New file.
60173
60174         Module strstr.
60175         * m4/strstr.m4: New file.
60176
60177         Module strerror.
60178         * m4/strerror.m4: New file.
60179
60180         Module mktime.
60181         * m4/mktime.m4: Renamed from jm-mktime.m4.
60182         (gl_PREREQ_MKTIME): New macro.
60183         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
60184
60185         Module malloc.
60186         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
60187         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
60188         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
60189
60190         Module realloc.
60191         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
60192         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
60193         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
60194
60195         Module strftime.
60196         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
60197         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
60198         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
60199         gl_TM_GMTOFF.
60200         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
60201
60202         Module xalloc.
60203         * m4/xalloc.m4: New file.
60204
60205         Module alloca.
60206         * m4/alloca.m4: New file.
60207
60208         Module putenv.
60209         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
60210         (jm_FUNC_PUTENV): Invoke it.
60211
60212         Module setenv.
60213         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
60214         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
60215         when invoked twice.
60216         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
60217         gt_FUNC_SETENV.
60218
60219         Module memrchr.
60220         * m4/memrchr.m4: New file.
60221
60222         Module stpcpy.
60223         * m4/stpcpy.m4: New file.
60224
60225         Module strcase.
60226         * m4/strcase.m4: New file.
60227
60228         Module strdup.
60229         * m4/strdup.m4: New file.
60230
60231         Module strnlen.
60232         * m4/strnlen.m4: New file.
60233
60234         Module strndup.
60235         * m4/strndup.m4: New file.
60236
60237         Module xstrtod.
60238         * m4/xstrtod.m4: New file.
60239
60240         Module xstrtol.
60241         * m4/xstrtol.m4: New file.
60242
60243         Module getdate.
60244         * m4/getdate.m4: New file.
60245
60246         Module unlocked-io.
60247         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
60248         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
60249         * m4/jm-glibc-io.m4n: Remove file.
60250
60251         Module long-options.
60252         * m4/long-options.m4: New file.
60253
60254         Module md5.
60255         * m4/md5.m4: New file.
60256
60257         Module sha.
60258         * m4/sha.m4: New file.
60259
60260         Module getstr.
60261         * m4/getstr.m4: New file.
60262
60263         Module getline.
60264         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
60265         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
60266         <sys/types.h>, for size_t. Use the function name gnu_getline, not
60267         simply getline. Infoke gl_PREREQ_GETLINE.
60268
60269         Module obstack.
60270         * m4/obstack.m4: New file.
60271
60272         Module hash.
60273         * m4/hash.m4: New file.
60274
60275         Module readtokens.
60276         * m4/readtokens.m4: New file.
60277
60278         Module strverscmp.
60279         * m4/strverscmp.m4: New file.
60280
60281         Module stdbool.
60282         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
60283         OSF/1.
60284
60285         Module strtoll.
60286         * m4/strtoll.m4: New file.
60287
60288         Module strtoull.
60289         * m4/strtoull.m4: New file.
60290
60291         Module strtoimax.
60292         * m4/strtoimax.m4: New file.
60293
60294         Module strtoumax.
60295         * m4/strtoumax.m4: New file.
60296
60297         Module xstrtoimax.
60298         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
60299         jm_AC_PREREQ_XSTRTOIMAX.
60300         Moved the strtol prerequisites to strtol.m4.
60301         Moved the strtoll prerequisites to strtoll.m4.
60302         Moved the strtoimax prerequisites to strtoimax.m4.
60303
60304         Module xstrtoumax.
60305         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
60306         jm_AC_PREREQ_XSTRTOUMAX.
60307         Moved the strtoul prerequisites to strtoul.m4.
60308         Moved the strtoull prerequisites to strtoull.m4.
60309         Moved the strtoumax prerequisites to strtoumax.m4.
60310
60311         Module chown.
60312         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
60313         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
60314
60315         Module dup2.
60316         * m4/dup2.m4: New file.
60317
60318         Module ftruncate.
60319         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
60320         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
60321
60322         Module getgroups.
60323         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
60324         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
60325
60326         Module gettimeofday.
60327         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
60328         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
60329         gl_PREREQ_GETTIMEOFDAY.
60330
60331         Module mkdir.
60332         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
60333         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
60334
60335         Module mkstemp.
60336         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
60337         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
60338         jm_AC_TYPE_UINTMAX_T.
60339         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
60340
60341         Module stat.
60342         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
60343         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
60344
60345         Module lstat.
60346         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
60347         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
60348
60349         Module timespec.
60350         * m4/timespec.m4 (gl_TIMESPEC): New macro.
60351         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
60352         * m4/st_mtim.m4: Indentation.
60353
60354         Module nanosleep.
60355         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
60356         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
60357         gl_PREREQ_NANOSLEEP.
60358
60359         Module regex.
60360         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
60361         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
60362         (gl_REGEX): New macro.
60363
60364         Module rename.
60365         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
60366         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
60367
60368         Module rmdir.
60369         * m4/rmdir.m4: New file.
60370
60371         Module utime.
60372         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
60373         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
60374         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
60375
60376         Module dirname.
60377         * m4/dirname.m4: New file.
60378
60379         Module getopt.
60380         * m4/getopt.m4: New file.
60381
60382         Module unistd-safer.
60383         * m4/unistd-safer.m4: New file.
60384
60385         Module fnmatch.
60386         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
60387         declaration.
60388         (gl_PREREQ_FNMATCH_EXTRA): New macro.
60389         (gl_FUNC_FNMATCH_POSIX): New macro.
60390         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
60391         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
60392         simply fnmatch.
60393
60394         Module exclude.
60395         * m4/exclude.m4: New file.
60396
60397         Module human.
60398         * m4/human.m4: New file.
60399
60400         Module acl.
60401         * m4/acl.m4: Nop.
60402
60403         Module backupfile.
60404         * m4/backupfile.m4: New file.
60405         * m4/d-ino.m4: Indentation.
60406
60407         Module fsusage.
60408         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
60409         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
60410         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
60411
60412         Module dirfd.
60413         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
60414         requirements.
60415
60416         Module euidaccess.
60417         * m4/euidaccess.m4: New file.
60418
60419         Module file-type.
60420         * m4/file-type.m4: New file.
60421
60422         Module fileblocks.
60423         * m4/fileblocks.m4: New file.
60424
60425         Module filemode.
60426         * m4/filemode.m4: New file.
60427
60428         Module isdir.
60429         * m4/isdir.m4: New file.
60430
60431         Module lchown.
60432         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
60433         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
60434
60435         Module makepath.
60436         * m4/makepath.m4: New file.
60437
60438         Module modechange.
60439         * m4/modechange.m4: New file.
60440
60441         Module mountlist.
60442         * m4/mountlist.m4: New file.
60443         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
60444         Indentation.
60445
60446         Module path-concat.
60447         * m4/path-concat.m4: New file.
60448
60449         Module pathmax.
60450         * m4/pathmax.m4: New file.
60451
60452         Module same.
60453         * m4/same.m4: New file.
60454
60455         Module save-cwd.
60456         * m4/save-cwd.m4: New file.
60457
60458         Module savedir.
60459         * m4/savedir.m4: New file.
60460
60461         Module xgetcwd.
60462         * m4/xgetcwd.m4: New file.
60463         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
60464
60465         Module xreadlink.
60466         * m4/xreadlink.m4: New file.
60467
60468         Module safe-read.
60469         * m4/safe-read.m4: New file.
60470
60471         Module safe-write.
60472         * m4/safe-write.m4: New file.
60473
60474         Module closeout.
60475         * m4/closeout.m4: New file.
60476
60477         Module stdio-safer.
60478         * m4/stdio-safer.m4: New file.
60479
60480         Module getpass.
60481         * m4/getpass.m4: New file.
60482
60483         Module getugroups.
60484         * m4/getugroups.m4: New file.
60485
60486         Module group-member.
60487         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
60488         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
60489
60490         Module idcache.
60491         * m4/idcache.m4: New file.
60492
60493         Module userspec.
60494         * m4/userspec.m4: New file.
60495
60496         Module gettime.
60497         * m4/clock_time.m4: New file.
60498         * m4/gettime.m4: New file.
60499
60500         Module settime.
60501         * m4/settime.m4: New file.
60502
60503         Module posixtm.
60504         * m4/posixtm.m4: New file.
60505
60506         Module gethostname.
60507         * m4/gethostname.m4: New file.
60508
60509         Module canon-host.
60510         * m4/canon-host.m4: New file.
60511
60512         Module gettext.
60513         * m4/codeset.m4: New file, from gettext-0.11.5.
60514         * m4/gettext.m4: New file, from gettext-0.11.5.
60515         * m4/glibc21.m4: New file, from gettext-0.11.5.
60516         * m4/iconv.m4: New file, from gettext-0.11.5.
60517         * m4/intdiv0.m4: New file, from gettext-0.11.5.
60518         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
60519         * m4/inttypes.m4: New file, from gettext-0.11.5.
60520         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
60521         * m4/isc-posix.m4: New file, from gettext-0.11.5.
60522         * m4/lcmessage.m4: New file, from gettext-0.11.5.
60523         * m4/lib-ld.m4: New file, from gettext-0.11.5.
60524         * m4/lib-link.m4: New file, from gettext-0.11.5.
60525         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
60526         * m4/progtest.m4: New file, from gettext-0.11.5.
60527         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
60528         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
60529         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
60530
60531         Module localcharset.
60532         * m4/localcharset.m4: New file.
60533
60534         Module hard-locale.
60535         * m4/hard-locale.m4: New file.
60536
60537         Module mbswidth.
60538         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
60539         onceonly macros.
60540         * m4/mbrtowc.m4: Add comment.
60541
60542         Module memcasecmp.
60543         * m4/memcasecmp.m4: New file.
60544
60545         Module memcoll.
60546         * m4/memcoll.m4: New file.
60547
60548         Module unicodeio.
60549         * m4/unicodeio.m4: New file.
60550
60551         Module rpmatch.
60552         * m4/rpmatch.m4: New file.
60553
60554         Module yesno.
60555         * m4/yesno.m4: New file.
60556
60557         Module exitfail.
60558         * m4/exitfail.m4: New file.
60559
60560         Module c-stack.
60561         * m4/c-stack.m4 (gl_C_STACK): New macro.
60562         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
60563
60564         Module error.
60565         * m4/error.m4 (gl_ERROR): New macro.
60566         (jm_PREREQ_ERROR): Use onceonly macros.
60567
60568         Module fatal.
60569         * m4/fatal.m4: New file.
60570
60571         Module getloadavg.
60572         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
60573         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
60574
60575         Module getpagesize.
60576         * m4/getpagesize.m4: New file.
60577
60578         Module getusershell.
60579         * m4/getusershell.m4: New file.
60580
60581         Module physmem.
60582         * m4/physmem.m4: New file.
60583
60584         Module posixver.
60585         * m4/posixver.m4: New file.
60586
60587         Module quotearg.
60588         * m4/quotearg.m4: New file.
60589
60590         Module quote.
60591         * m4/quote.m4: New file.
60592
60593         Module readutmp.
60594         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
60595
60596         Module sig2str.
60597         * m4/sig2str.m4: New file.
60598
60599         Other.
60600         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
60601         ulonglong.m4.
60602         * m4/intmax_t.m4: New file.
60603         * m4/d-type.m4: Indentation.
60604         * m4/jm-macros.m4: Update.
60605         * m4/prereq.m4 (jm_PREREQ): Update.
60606         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
60607         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
60608         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
60609         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
60610         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
60611         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
60612         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
60613         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
60614         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
60615         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
60616         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
60617         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
60618         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
60619         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
60620         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
60621         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
60622         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
60623         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
60624         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
60625
60626 2002-12-24  Bruno Haible  <bruno@clisp.org>
60627
60628         * MODULES.txt: Update according to m4/ changes.
60629
60630         Module gettext.
60631         * config.rpath: New file, from gettext-0.11.5.
60632
60633         * modules/*: New module descriptions.
60634         * gnulib-tool: New file.
60635         * MODULES.html.sh: New file.
60636
60637 2002-12-21  Karl Berry  <karl@gnu.org>
60638
60639         * doc/fdl.texi: update to version 1.2.
60640
60641 2002-12-19  Karl Berry  <karl@gnu.org>
60642
60643         * config/config.guess: update from prep.
60644
60645 2002-12-18  Bruno Haible  <bruno@clisp.org>
60646
60647         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
60648         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
60649
60650 2002-12-17  Bruno Haible  <bruno@clisp.org>
60651
60652         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
60653         stdlib.h, string.h.
60654
60655 2002-12-17  Bruno Haible  <bruno@clisp.org>
60656
60657         * lib/canon-host.c (strdup): Remove unused declaration.
60658
60659         * lib/fsusage.c: Include full_read.h.
60660         (get_fs_usage): Use full_read instead of safe_read.
60661
60662         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
60663
60664 2002-12-12  Karl Berry  <karl@gnu.org>
60665
60666         * config/config.guess: update from prep.
60667
60668 2002-12-11  Bruno Haible  <bruno@clisp.org>
60669
60670         * m4/setenv.m4: New file, from gettext-0.11.5.
60671
60672 2002-12-11  Bruno Haible  <bruno@clisp.org>
60673
60674         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
60675         not unsetenv().
60676         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
60677         modifications:
60678
60679         2002-12-11  Bruno Haible  <bruno@clisp.org>
60680
60681                 * setenv.c (alloca): Fall back to malloc.
60682                 (freea): New macro.
60683                 (setenv): Use freea() to free memory allocated with alloca().
60684
60685         2002-11-13  Bruno Haible  <bruno@clisp.org>
60686
60687                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
60688                 function declarations.
60689                 * unsetenv.c (unsetenv): Likewise.
60690
60691         2002-03-04  Bruno Haible  <bruno@clisp.org>
60692
60693                 Portability to AIX 4.3.3.
60694                 * unsetenv.c: New file, extracted from setenv.c.
60695                 * setenv.c: Move the unsetenv() function to unsetenv.c.
60696
60697         2001-12-20  Bruno Haible  <bruno@clisp.org>
60698
60699                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
60700                 use malloc instead. For SunOS 4.
60701
60702         2001-12-11  Bruno Haible  <bruno@clisp.org>
60703
60704                 * setenv.c: Declare alloca.
60705                 (compar_fn_t): New typedef.
60706                 (KNOWN_VALUE, STORE_VALUE): Use it.
60707
60708         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
60709         setenv.h.
60710
60711 2002-12-10  Paul Eggert  <eggert@twinsun.com>
60712
60713         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
60714         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
60715         Choose values that are less likely to collide with system fnmatch
60716         options.
60717         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
60718         defined (e.g., a pure POSIX system).
60719         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
60720         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
60721
60722 2002-12-06  Paul Eggert  <eggert@twinsun.com>
60723
60724         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
60725         a pain in practice to deal with generated m4 files.  This change
60726         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
60727
60728         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
60729         and jm-glibc-io.m4, as they are no longer a special case.
60730         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
60731         kludge and the auto-generation stuff.  Check only whether the
60732         functions are declared, not whether they exist, since older hosts
60733         that don't declare the functions can't use the optimization anyway.
60734
60735 2002-12-06  Jim Meyering  <jim@meyering.net>
60736
60737         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
60738
60739         Merge in changes from libc's misc/error.c, in preparation
60740         for the merge of gnulib's changes back into libc.
60741
60742         * lib/error.c (_): Define only if not already defined.
60743         Move definition to follow all #include directives.
60744         Include unlocked-io.h only if !_LIBC.
60745         [_LIBC]: Include <libio/libioP.h>.
60746         [USE_IN_LIBIO]: Include <libio/iolibio.h>
60747         (fflush): Tweak definition to use INTUSE.
60748         (putc): Define.
60749
60750 2002-12-05  Paul Eggert  <eggert@twinsun.com>
60751
60752         * lib/alloca.c [defined emacs]: Include "lisp.h".
60753         (xalloc_die) [defined emacs]: New macro.
60754         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
60755         [! defined emacs]: Include <xalloc.h>.
60756         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
60757         (pointer): Typedef to POINTER_TYPE *.
60758         (malloc): Remove decl; we now always use xmalloc.
60759         (alloca): Use old-style definition, since Emacs needs this.
60760         Check for arithmetic overflow when computing combined size.
60761
60762 2002-12-04  Paul Eggert  <eggert@twinsun.com>
60763
60764         Do not generate unlocked-io.h automatically, since it's easier to
60765         maintain it by hand.
60766
60767         * lib/unlocked-io.h: New file, from GNU diffutils,
60768         but with proper copyright notice and attribution.
60769         * lib/gen-uio: Remove.
60770         * lib/Makefile.am: Add copyright notice.
60771         (libfetish_a_SOURCES): Add unlocked-io.h.
60772         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
60773         (DISTCLEANFILES, io_functions): Remove macros.
60774         (EXTRA_DIST): Remove gen_uio.
60775         (unlocked-io.h): Remove rule.
60776
60777 2002-12-04  Jim Meyering  <jim@meyering.net>
60778
60779         Reflect the fact that stat.c and lstat.c are no longer generated.
60780         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
60781         (DISTCLEANFILES): Likewise.
60782         (EXTRA_DIST): Likewise.
60783         (all_local): Don't depend on stat.c or lstat.c.
60784         (stat.c, lstat.c): Remove rules.
60785         (EXTRA_DIST): Remove xstat.in.
60786
60787         * lib/xstat.in: Remove file.  Contents moved into stat.c.
60788         * lib/stat.c: New file.  Contents mostly from xstat.in.
60789         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
60790         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
60791
60792         * lib/safe-read.c: Rework so that it may serve to define safe_write,
60793         too.
60794         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
60795
60796 2002-12-03  Jim Meyering  <jim@meyering.net>
60797
60798         * lib/safe-read.c, safe-write.c: Change variable names and comments,
60799         but not semantics, to minimize the differences between these two files.
60800         (safe_read): Change comment to mention SAFE_READ_ERROR.
60801
60802         * lib/safe-read.c (IS_EINTR): Define.
60803         (safe_read): Use IS_EINTR in place of in-function cpp directives.
60804
60805 2002-12-02  Jim Meyering  <jim@meyering.net>
60806
60807         * lib/safe-read.c (EINTR): Define.
60808         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
60809         (INT_MAX): Provide fallback.
60810         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
60811
60812         * lib/safe-read.h (SAFE_READ_ERROR): Define.
60813
60814 2002-12-02  Bruno Haible  <bruno@clisp.org>
60815
60816         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
60817         Define, taken from safe-read.c.
60818         (INT_MAX): Provide fallback.
60819         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
60820         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
60821
60822         * lib/safe-read.c (EINTR): Remove definition.
60823         (safe_read): Don't use EINTR if it is absent.
60824
60825 2002-12-01  Jim Meyering  <jim@meyering.net>
60826
60827         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
60828         zero.
60829         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
60830
60831 2002-11-27  Paul Eggert  <eggert@twinsun.com>
60832
60833         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
60834         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
60835         with `if (! (value < limit)) abort ();', for readability.
60836
60837 2002-11-26  Karl Berry  <karl@gnu.org>
60838
60839         * lib/strdup.c: copy from libc again, with jim's ok.
60840         * lib/.cppi-disable: re-add strdup.c
60841
60842 2002-11-25  Karl Berry  <karl@gnu.org>
60843
60844         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
60845         instead of "strtol.c".
60846
60847 2002-11-25  Karl Berry  <karl@gnu.org>
60848
60849         * config/install-sh: update from automake for variable quoting, $0 in
60850         error msgs, etc.
60851
60852         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
60853         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
60854         entry.
60855
60856 2002-11-25  Jim Meyering  <jim@meyering.net>
60857
60858         * lib/mktime.c: Sync from libc, now that it has the latest fix.
60859
60860 2002-11-24  Karl Berry  <karl@gnu.org>
60861
60862         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
60863         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
60864
60865 2002-11-24  Jim Meyering  <jim@meyering.net>
60866
60867         Update from coreutils:
60868
60869         * lib/mktime.c: Merge in changes from libc.
60870
60871         Avoid a link-time failure on some Linux systems.
60872         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
60873         (otherwise).
60874         (__mon_yday): Declare with the STATIC attribute.
60875         (__mktime_internal): Likewise.
60876         Based on a report from Greg Schafer.
60877
60878 2002-11-23  Jim Meyering  <jim@meyering.net>
60879
60880         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
60881         Use `unsigned', not `int', as type of index.
60882
60883         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
60884
60885         * lib/fsusage.c: Remove unneeded parentheses around operands of
60886         `defined'.
60887
60888 2002-11-22  Paul Eggert  <eggert@twinsun.com>
60889
60890         * lib/quotearg.h: Allow multiple inclusion by surrounding with
60891         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
60892         so that we can be included first.
60893         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
60894         * lib/quotearg.c: Include quotearg.h immediately after config.h.
60895         No need to include stddef.h or sys/types.h any more.
60896         Surround local include files with "", not "<>".
60897         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
60898         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
60899         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
60900         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
60901         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
60902         (ISPRINT): Remove; no longer needed now that we assume C89.
60903
60904         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
60905         Preserve errno.
60906
60907         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
60908         quotearg_char): Use SIZE_MAX rather than
60909         (size_t) -1 when we are talking about "infinity".
60910
60911         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
60912
60913 2002-11-22  Paul Eggert  <eggert@twinsun.com>
60914
60915         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
60916         hint that one should use `if (! x) abort ();' rather than `assert
60917         (x);', and anyway it's one less thing to worry about configuring.
60918         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
60919         hash_rehash, hash_insert): Use abort rather than assert.
60920
60921 2002-11-22  Bruno Haible  <bruno@clisp.org>
60922
60923         * lib/safe-read.h: Assume C89. Add comments.
60924         (safe_read): Change return type to size_t.
60925         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
60926         byte counts > SSIZE_MAX correctly.
60927         * lib/safe-write.h: New file.
60928         * lib/safe-write.c: New file.
60929         * lib/full-read.h: New file.
60930         * lib/full-read.c: New file.
60931         * lib/full-write.h: Assume C89. Add comments.
60932         * lib/full-write.c: Include safe-write.h.
60933         (full_write): Rewritten to use safe_write.
60934         Suggested by Jim Meyering and Paul Eggert.
60935
60936 2002-11-21  Jim Meyering  <jim@meyering.net>
60937
60938         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
60939
60940         Merge in changes from the coreutils.
60941
60942         2002-09-25  Paul Eggert  <eggert@twinsun.com>
60943         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
60944         <stdint.h>.
60945         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
60946         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
60947         int.  Work more efficiently if X is the same width as uintmax_t.
60948         Do not compare X to -1, to avoid bogus compiler warning.
60949         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
60950         Don't assume that f_frsize and f_bsize are the same type.
60951
60952         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
60953         warning on FreeBSD.
60954
60955         * lib/makepath.c (make_path): Restore umask *before* creating the final
60956         component.
60957         (make_path): Minor reformatting.
60958
60959         * lib/xmalloc.c: Adjust to work with new autoconf macros,
60960         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
60961         HAVE_MALLOC/HAVE_REALLOC.
60962
60963         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
60964         dummy ones.  At least on GNU/Linux systems, `auto' means something
60965         else.
60966         From Michael Stone.
60967
60968 2002-11-21  Bruno Haible  <bruno@clisp.org>
60969
60970         Remove case insensitive option matching.
60971         * lib/argmatch.h (argcasematch): Remove declaration.
60972         (ARGCASEMATCH): Remove macro.
60973         (__xargmatch_internal): Remove case_sensitive argument.
60974         (XARGMATCH): Update.
60975         (XARGCASEMATCH): Remove macro.
60976         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
60977         case_sensitive argument.
60978         (argcasematch): Remove function.
60979         (__xargmatch_internal): Remove case_sensitive argument.
60980         (main): Use XARGMATCH instead of XARGCASEMATCH.
60981
60982         * lib/xmalloc.c: Change compile-time error message. Add comment about
60983         required autoconf version.
60984
60985 2002-11-20  Paul Eggert  <eggert@twinsun.com>
60986
60987         Merge argmatch cleanups from Bison.  Assume C89.
60988
60989         * lib/argmatch.c: Include config.h here, not in argmatch.h.
60990         Include stdlib.h, for EXIT_FAILURE.
60991         Always include <string.h>, since we assume C89.
60992         (EXIT_FAILURE): Remove pre-C89 bug workaround.
60993         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
60994         Include <stddef.h> instead, since it's all we need for size_t.
60995         (PARAMS): Remove.  All uses removed.
60996         (ARRAY_CARDINALITY): Do not bother to #undef.
60997         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
60998         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
60999         Remove unnecessary parentheses.
61000         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
61001         Insert necessary parentheses.
61002         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
61003         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
61004
61005 2002-11-19  Bruno Haible  <bruno@clisp.org>
61006
61007         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
61008         * lib/mbswidth.h: Include <stddef.h>, for size_t.
61009
61010         * lib/mbswidth.h (PARAMS): Remove macro.
61011         (mbswidth, mbsnwidth): Use ANSI C function declarations.
61012         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
61013
61014         * lib/gcd.h (PARAMS): Remove macro.
61015         (gcd): Use ANSI C function declarations.
61016         * lib/gcd.c (gcd): Likewise.
61017
61018 2002-11-15  Bruno Haible  <bruno@clisp.org>
61019
61020         * lib/strcspn.c: Include <stddef.h>.
61021         (strcspn): Use ANSI C function declaration. Change return type to
61022         size_t. Use NULL.
61023         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
61024         (strpbrk): Use NULL.
61025         * lib/strpbrk.h (PARAMS): Remove macro.
61026         (strpbrk): Use ANSI C function declaration.
61027         * lib/strstr.c: Don't include <sys/types.h>.
61028         * lib/strstr.h (PARAMS): Remove macro.
61029         (strstr): Use ANSI C function declarations.
61030
61031 2002-11-14  Karl Berry  <karl@gnu.org>
61032
61033         * config/mkinstalldirs: `do' on separate line, instead of
61034         `for var; do'.
61035
61036 2002-11-06  Bruno Haible  <bruno@clisp.org>
61037
61038         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
61039         * lib/gcd.c (gcd): Likewise.
61040
61041 2002-11-05  Bruno Haible  <bruno@clisp.org>
61042
61043         * lib/gcd.h: New file, from gettext-0.11.5.
61044         * lib/gcd.c: New file, from gettext-0.11.5.
61045
61046 2002-11-05  Bruno Haible  <bruno@clisp.org>
61047
61048         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
61049         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
61050         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
61051         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
61052
61053         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
61054         <libintl.h>.
61055         * lib/makepath.c: Include gettext.h instead of <locale.h> and
61056         <libintl.h>.
61057
61058         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
61059         * lib/human.c: Include gettext.h instead of <libintl.h>.
61060         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
61061         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
61062         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
61063         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
61064         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
61065         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
61066         (textdomain): Remove definition.
61067         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
61068
61069         * lib/long-options.c: Remove include of <libintl.h> and definition of
61070         _.
61071         * lib/same.c: Remove include of <libintl.h> and definition of _.
61072
61073 2002-11-04  Owen Taylor  <otaylor@redhat.com>
61074
61075         * lib/config.charset: A few additions for Solaris.
61076
61077 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
61078
61079         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
61080         * lib/localcharset.c (locale_charset): Declare as extern "C".
61081
61082 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
61083
61084         * lib/config.charset: msdos in uk_UA uses CP1125.
61085
61086 2002-11-04  Bruno Haible  <bruno@clisp.org>
61087
61088         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
61089         * lib/strcase.h: New file, from GNU gettext-0.11.5.
61090         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
61091         * lib/strstr.h: New file, from GNU gettext-0.11.5.
61092         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
61093
61094 2002-11-04  Bruno Haible  <bruno@clisp.org>
61095
61096         * lib/localcharset.c (locale_charset): Don't return an empty string.
61097
61098 2002-11-04  Bruno Haible  <bruno@clisp.org>
61099
61100         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
61101         aliases.
61102
61103 2002-11-04  Bruno Haible  <bruno@clisp.org>
61104
61105         * lib/config.charset: Update for newest glibc. Add canonical names
61106         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
61107
61108 2002-11-04  Bruno Haible  <bruno@clisp.org>
61109
61110         * lib/config.charset: Add support for NetBSD.
61111
61112 2002-11-04  Bruno Haible  <bruno@clisp.org>
61113
61114         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
61115
61116 2002-11-01  Bruno Haible  <bruno@clisp.org>
61117
61118         * configure.in: Add AC_CONFIG_AUX_DIR call.
61119         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
61120         test/Makefile.
61121         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
61122
61123 2002-09-28  Karl Berry  <karl@gnu.org>
61124
61125         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
61126         installed automake until the next release, since changes have been
61127         made.
61128
61129 2002-09-25  Karl Berry  <karl@gnu.org>
61130
61131         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
61132         * lib/getopt*: copy from libc/posix.
61133         * lib/gettext.h: copy from gettext.
61134         * lib/.cppi-disable: add strdup.c, gettext.h.
61135
61136 2002-09-25  Karl Berry  <karl@gnu.org>
61137
61138         * config/srclist.txt: enable gettext.h check.
61139         * config/config.{guess,sub}: update from prep.
61140         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
61141                 from automake 1.6.3.
61142         See srclist*.
61143
61144 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
61145
61146         * regex.c (PATFETCH): Remove the translating fetch.
61147         (PATFETCH_RAW): Rename to PATFETCH.
61148         (set_image_of_range): New fun.
61149         (SET_RANGE_TABLE_WORK_AREA): Use it.
61150         (regex_compile): Don't translate the pattern chars so eagerly.
61151         Only do it when inserting an `exactn' bytecode or when handling
61152         a char-range.
61153         (mutually_exclusive_p): Avoid empty statement.
61154
61155 2002-07-06  Jim Meyering  <meyering@lucent.com>
61156
61157         * m4/README: Don't mention Makefile.am.in.
61158         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
61159
61160 2002-07-01  Jim Meyering  <meyering@lucent.com>
61161
61162         * lib/c-stack.c: Include sys/time.h.
61163         From Volker Borchert.
61164
61165 2002-06-26  Paul Eggert  <eggert@twinsun.com>
61166
61167         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
61168
61169 2002-06-26  Paul Eggert  <eggert@twinsun.com>
61170
61171         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
61172         New macro.  Use it uniformly instead of
61173         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
61174         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
61175         reported by Vin Shelton.
61176
61177 2002-06-22  Paul Eggert  <eggert@twinsun.com>
61178
61179         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
61180         Do not assume SA_SIGINFO behavior.
61181         Bug reported by Jim Meyering on NetBSD 1.5.2.
61182
61183 2002-06-22  Jim Meyering  <meyering@lucent.com>
61184
61185         * m4/c-stack.m4: New file, from diffutils-2.8.2.
61186         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
61187
61188         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
61189         now that configure.ac uses AC_GNU_SOURCE.
61190         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
61191         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
61192
61193         Update to latest tools.  Suggestions from Paul Eggert.
61194         * m4/stdbool.m4: New file, from diffutils-2.8.2.
61195         * m4/gnu-source.m4: Update from diffutils-2.8.2.
61196         * m4/fnmatch.m4: Likewise.
61197         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
61198         to AC_HEADER_STDBOOL
61199
61200 2002-06-22  Jim Meyering  <meyering@lucent.com>
61201
61202         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
61203         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
61204
61205 2002-06-22  Jim Meyering  <meyering@lucent.com>
61206
61207         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
61208
61209         * lib/exitfail.c, exitfail.h: Likewise.
61210         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
61211
61212         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
61213         of fnmatch.h.
61214         (EXTRA_DIST): Add fnmatch_loop.c.
61215         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
61216
61217         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
61218         * lib/fnmatch.c: Update from diffutils-2.8.2.
61219         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
61220         * lib/fnmatch.h: Remove file.
61221
61222 2002-06-21  Jim Meyering  <meyering@lucent.com>
61223
61224         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
61225         * m4/mbrtowc.m4: Likewise.
61226
61227         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
61228         * m4/mbswidth.m4: Reflect name change:
61229         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
61230         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
61231
61232         * m4/lib-link.m4: Update from gettext-0.11.2.
61233         * m4/gettext.m4: Likewise.
61234
61235         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
61236         From Alfred M. Szmidt.
61237
61238 2002-06-18  Paul Eggert  <eggert@twinsun.com>
61239
61240         * lib/file-type.h: Report an error if neither S_ISREG nor
61241         S_IFREG is defined, instead of using a test specific to glibc
61242         2.2.  This should be safe, since POSIX requires S_ISREG and
61243         Unix Version 7 had S_IFREG.  We don't need to check for
61244         <sys/types.h> since we don't use any symbols that it defines.
61245
61246 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
61247
61248         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
61249         $@-t, so that each temporary file name is unique and valid in the first
61250         8 characters, for operation under DOS.
61251
61252 2002-06-15  Paul Eggert  <eggert@twinsun.com>
61253
61254         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
61255
61256 2002-06-15  Jim Meyering  <meyering@lucent.com>
61257
61258         Work even with DJGPP 2.03, which lacks support for symlinks.
61259         From Richard Dawe.
61260         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
61261         is defined.
61262         * lib/lchown.c (S_ISLNK): Likewise.
61263
61264 2002-06-15  Jim Meyering  <meyering@lucent.com>
61265
61266         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
61267         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
61268         have been included before this file.
61269
61270 2002-06-14  Jim Meyering  <meyering@lucent.com>
61271
61272         * lib/file-type.h: Use the version from diffutils-2.8.2.
61273         * lib/file-type.c: Likewise.
61274
61275 2002-06-07  Jim Meyering  <meyering@lucent.com>
61276
61277         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
61278         They're needed at least for NetBSD 1.5.2.
61279         ($statxfs_includes): Include those same headers.
61280         ($statxfs_includes): Include sys/vfs.h if available.
61281         ($statxfs_includes): Likewise for sys/statvfs.h.
61282         Check for the following members in both structs statfs and statvfs:
61283         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
61284
61285 2002-06-01  Jim Meyering  <meyering@lucent.com>
61286
61287         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
61288         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
61289
61290 2002-05-28  Jim Meyering  <meyering@lucent.com>
61291
61292         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
61293         Reported by Volker Borchert.
61294
61295 2002-05-27  Jim Meyering  <meyering@lucent.com>
61296
61297         Fix a problem seen only on nonconforming systems whereby ls.c's
61298         use of localtime, and then of gettimeofday would cause trouble:
61299         the localtime call used to initialize rpl_gettimeofday's save
61300         mechanism would clobber ls's current local time information so
61301         that in any long listing the first file would always be listed
61302         with date 1970-01-01.  Analysis by Volker Borchert.
61303
61304         * lib/gettimeofday.c (localtime): Undefine.
61305         (rpl_localtime): New function.
61306
61307 2002-05-27  Jim Meyering  <meyering@lucent.com>
61308
61309         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
61310         localtime.
61311
61312         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
61313         use the replacement function; it wouldn't resolve at link time.
61314         Reported by Volker Borchert.
61315
61316 2002-05-22  Jim Meyering  <meyering@lucent.com>
61317
61318         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
61319         file-type.h.
61320         * lib/file-type.h: New file.
61321         * lib/file-type.c (file_type): New file/function.  Extracted from
61322         diffutils.
61323
61324 2002-04-30  Jim Meyering  <meyering@lucent.com>
61325
61326         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
61327
61328 2002-04-29  Paul Eggert  <eggert@twinsun.com>
61329
61330         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
61331
61332 2002-04-29  Paul Eggert  <eggert@twinsun.com>
61333
61334         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
61335         Do not check for alloca.h (no longer used) or stdbool.h (was never
61336         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
61337
61338 2002-04-29  Paul Eggert  <eggert@twinsun.com>
61339
61340         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
61341
61342 2002-04-29  Jim Meyering  <meyering@lucent.com>
61343
61344         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
61345         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
61346         Use AC_FUNC_STRNLEN here instead.
61347
61348         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
61349         With autoconf-2.53a, it's part of AC_PROG_CC.
61350
61351 2002-04-28  Paul Eggert  <eggert@twinsun.com>
61352
61353         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
61354         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
61355
61356 2002-04-28  Paul Eggert  <eggert@twinsun.com>
61357
61358         * lib/sig2str.h, lib/sig2str.c: New files.
61359         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
61360
61361 2002-04-28  Paul Eggert  <eggert@twinsun.com>
61362
61363         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
61364         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
61365         of 127, since 64 is the largest conceivable number for ancient
61366         nonstandard hosts.
61367         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
61368
61369 2002-04-28  Jim Meyering  <meyering@lucent.com>
61370
61371         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
61372
61373 2002-04-24  Jim Meyering  <meyering@lucent.com>
61374
61375         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
61376         (jm_PREREQ): Use it.
61377
61378         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
61379         mach/mach.h fcntl.h.
61380         Check for this function: setlocale.
61381
61382 2002-04-24  Jim Meyering  <meyering@lucent.com>
61383
61384         * lib/gettext.h: New file, from Gettext.
61385         * lib/Makefile.am (INCLUDES): Remove -I../intl.
61386         (libfetish_a_SOURCES): Add gettext.h.
61387
61388 2002-04-16  Jim Meyering  <meyering@lucent.com>
61389
61390         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
61391         ut_pid, ut_id, ut_exit.
61392
61393 2002-04-16  Jim Meyering  <meyering@lucent.com>
61394
61395         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
61396         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
61397         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
61398
61399 2002-04-12  Jim Meyering  <meyering@lucent.com>
61400
61401         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
61402         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
61403         existence of the getmntinfo function.  Needed for Darwin 5.3.
61404
61405         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
61406         This is necessary at least on Darwin 5.3.
61407
61408         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
61409         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
61410         strnlen.o in the library, and that makes some versions of ranlib
61411         object.
61412
61413 2002-04-12  Jim Meyering  <meyering@lucent.com>
61414
61415         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
61416
61417 2002-04-09  Jim Meyering  <meyering@lucent.com>
61418
61419         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
61420         to be more precise.  Rather than saying we're checking whether the
61421         function `works', say what we're testing.
61422         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
61423         Reported by Bruno Haible.
61424
61425 2002-03-10  Jim Meyering  <meyering@lucent.com>
61426
61427         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
61428         Suggestion from Santiago Vila.
61429
61430 2002-03-08  Jim Meyering  <meyering@lucent.com>
61431
61432         * lib/rename.c: Mention that this wrapper is needed also on
61433         mips-dec-ultrix4.4 systems.
61434
61435 2002-03-02  Jim Meyering  <meyering@lucent.com>
61436
61437         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
61438         not HAVE_CLOCK_SETTIME.
61439
61440 2002-02-27  Paul Eggert  <eggert@twinsun.com>
61441
61442         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
61443         Check for clock_settime.
61444
61445 2002-02-27  Paul Eggert  <eggert@twinsun.com>
61446
61447         * lib/nanosleep.h: Rename to....
61448         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
61449
61450         * lib/gettime.c: New file.
61451         * lib/settime.c: New file.
61452         * lib/stime.c: Remove.
61453
61454         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
61455         timespec.h.  Remove nanosleep.h.
61456
61457 2002-02-25  Paul Eggert  <eggert@twinsun.com>
61458
61459         * m4/acl.m4: New file.
61460         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
61461         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
61462
61463 2002-02-25  Paul Eggert  <eggert@twinsun.com>
61464
61465         * lib/acl.c, lib/acl.h: New files.
61466         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
61467
61468 2002-02-24  Jim Meyering  <meyering@lucent.com>
61469
61470         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
61471         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
61472         cause trouble.  Reported by Nelson Beebe.
61473
61474 2002-02-23  Paul Eggert  <eggert@twinsun.com>
61475
61476         * lib/path-concat.c (xpath_concat): Reorder code to pacify
61477         compilers that don't know that xalloc_die never returns.
61478
61479 2002-02-20  Jim Meyering  <meyering@lucent.com>
61480
61481         * lib/getdate.c: Regenerate using bison-1.33.
61482
61483 2002-02-17  Jim Meyering  <meyering@lucent.com>
61484
61485         * config/config.guess (main): Don't use `head -1'; it's no longer
61486         portable. Use `sed 1q' instead.
61487
61488 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
61489
61490         * m4/codeset.m4: Upgrade to gettext-0.11.
61491         * m4/gettext.m4: Upgrade to gettext-0.11.
61492         * m4/glibc21.m4: Upgrade to gettext-0.11.
61493         * m4/iconv.m4: Upgrade to gettext-0.11.
61494         * m4/isc-posix.m4: Upgrade to gettext-0.11.
61495         * m4/lcmessage.m4: Upgrade to gettext-0.11.
61496         * m4/lib-ld.m4: New file, from gettext-0.11.
61497         * m4/lib-link.m4: New file, from gettext-0.11.
61498         * m4/lib-prefix.m4: New file, from gettext-0.11.
61499         * m4/progtest.m4: Upgrade to gettext-0.11.
61500
61501 2002-02-15  Paul Eggert  <eggert@twinsun.com>
61502
61503         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
61504         (jm_PREREQ): Use it.
61505
61506 2002-02-15  Paul Eggert  <eggert@twinsun.com>
61507
61508         * lib/posixver.c, lib/posixver.h: New files.
61509         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
61510
61511 2002-02-02  Paul Eggert  <eggert@twinsun.com>
61512             Bruno Haible  <bruno@clisp.org>
61513
61514         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
61515         (fwrite_success_callback): New declaration.
61516         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
61517         print_unicode_char. Call failure callback instead of error.
61518         (fwrite_success_callback): New function.
61519         (exit_failure_callback): New function.
61520         (fallback_failure_callback): New function.
61521         (print_unicode_char): Call unicode_to_mb.
61522
61523 2002-01-26  Jim Meyering  <meyering@lucent.com>
61524
61525         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
61526         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
61527
61528 2002-01-26  Jim Meyering  <meyering@lucent.com>
61529
61530         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
61531
61532 2002-01-22  Paul Eggert  <eggert@twinsun.com>
61533
61534         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
61535
61536 2002-01-22  Jim Meyering  <meyering@lucent.com>
61537
61538         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
61539         Otherwise, some versions of automake would omit the rule that makes
61540         Makefile from Makefile.in.
61541
61542 2002-01-21  Paul Eggert  <eggert@twinsun.com>
61543
61544         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
61545         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
61546         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
61547         (memcoll): Set errno to zero if there is no error.
61548
61549         * lib/quotearg.c (quotearg_buffer_restyled):
61550         Fix bug with quoting buffers containing NUL when backslashing escapes.
61551         This bug was exposed by the other changes in this patch.
61552         (quotearg_n_options): New arg ARGSIZE.
61553         All callers changed.
61554         (quoting_options_from_style): New function.
61555         (quotearg_n_style): Use it.
61556         (quotearg_n_style_mem): New function.
61557
61558         * lib/quotearg.h (quotearg_n_style_mem): New function.
61559
61560 2002-01-19  Jim Meyering  <meyering@lucent.com>
61561
61562         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
61563         Remove useless quotes: DF_PROG="df".
61564         * m4/strnlen.m4: New file.
61565
61566 2002-01-16  Paul Eggert  <eggert@twinsun.com>
61567
61568         * lib/backupfile.c (ISDIGIT): Comment fix.
61569         * lib/getdate.y (ISDIGIT): Likewise.
61570         * lib/posixtm.c (ISDIGIT, year): Likewise.
61571         * lib/strverscmp.c (ISDIGIT): Likewise.
61572         * lib/userspec.c (ISDIGIT): Likewise.
61573
61574 2002-01-16  Jim Meyering  <meyering@lucent.com>
61575
61576         * lib/getdate.y: Add three semicolons, each just before a closing
61577         brace. Bison (as of version 1.31) no longer papers over that mistake.
61578
61579 2002-01-05  Jim Meyering  <meyering@lucent.com>
61580
61581         * lib/version-etc.c (version_etc_copyright): Update copyright year.
61582
61583 2001-12-19  Paul Eggert  <eggert@twinsun.com>
61584
61585         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
61586         not silently exit merely because the output buffer happens to
61587         have nothing pending.
61588
61589 2001-12-18  Paul Eggert  <eggert@twinsun.com>
61590
61591         See the big note in ../ChangeLog.
61592         * lib/human.c (suffixes): Prefer K to k for 1024.
61593         (generate_suffix_backwards): New function.
61594         (human_readable_inexact): Use it.
61595         * lib/xstrtol.c (__xstrtol): If there is no number but there
61596         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
61597         Accept 'K' as well as 'k'.
61598
61599 2001-12-15  Jim Meyering  <meyering@lucent.com>
61600
61601         * lib/regex.h (__restrict_arr): Update from libc.
61602
61603         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
61604         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
61605         (STREQ): Define.
61606
61607 2001-12-14  Jim Meyering  <meyering@lucent.com>
61608
61609         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
61610         Suggestion from Bruno Haible.
61611
61612 2001-12-10  Jim Meyering  <meyering@lucent.com>
61613
61614         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
61615         xrealloc, Instead, include "xalloc.h".
61616         (initbuffer): Don't cast xmalloc return value to char*.
61617         (readline): Reword comment.
61618         Don't cast xrealloc return value to char*
61619         Return NULL, not 0.
61620
61621 2001-12-09  Jim Meyering  <meyering@lucent.com>
61622
61623         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
61624         about `signed and unsigned type in conditional expression'.
61625         * lib/posixtm.c (posix_time_parse): Likewise.
61626
61627         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
61628
61629         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
61630         to avoid a pedantic warning.
61631
61632         * lib/getstr.c: Don't include assert.h.
61633         (getstr): Remove warning-evoking assertions.
61634         Return -1 if offset parameter is out of bounds.
61635         Change the type of a local from int to size_t.
61636
61637         * lib/strftime.c (my_strftime_localtime_r): Include this function
61638         definition in the `#if ! HAVE_TM_GMTOFF' block.
61639
61640         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
61641         Include xalloc.h instead.
61642
61643 2001-12-02  Jim Meyering  <meyering@lucent.com>
61644
61645         * lib/tempname.c: Don't declare getenv, thus reverting the change of
61646         2001-11-18.  It's no longer necessary, now that stdlib.h is always
61647         included.
61648
61649         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
61650         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
61651
61652 2001-11-30  Akim Demaille  <akim@epita.fr>
61653
61654         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
61655         before being defined.
61656
61657 2001-11-27  Paul Eggert  <eggert@twinsun.com>
61658
61659         * lib/quotearg.h (quotearg_n, quotearg_n_style):
61660         First arg is int, not unsigned.
61661         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
61662         (SIZE_MAX, UINT_MAX): New macros.
61663         (quotearg_n_options): Abort if N is negative.
61664         Avoid overflow check on hosts where size_t is 64 bits and int
61665         is 32 bits, as overflow is impossible there.
61666         Fix off-by-one typo that caused unnecessary reallocation.
61667
61668 2001-11-27  Jim Meyering  <meyering@lucent.com>
61669
61670         * lib/tempname.c: Merge with version from libc.
61671         * lib/regex.c: Likewise.
61672
61673         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
61674         systems for which STDC_HEADERS is 0, it was not included, resulting in
61675         a warning about an integer-to-pointer conversion problem with getenv.
61676         Reported by Volker Borchert.
61677
61678 2001-11-26  Jim Meyering  <meyering@lucent.com>
61679
61680         * lib/gtod.h: Remove file.
61681         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
61682         * lib/gettimeofday.c: Don't include gtod.h.
61683         (GTOD_init): Remove function.
61684         (rpl_gettimeofday): Do its job here instead, rather than aborting.
61685         Suggestion from Volker Borchert.
61686
61687 2001-11-23  Jim Meyering  <meyering@lucent.com>
61688
61689         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
61690         it.
61691         * lib/hash.c (struct hash_table): Define it here instead.
61692
61693 2001-11-22  Jim Meyering  <meyering@lucent.com>
61694
61695         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
61696
61697 2001-11-20  Jim Meyering  <meyering@lucent.com>
61698
61699         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
61700         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
61701
61702 2001-11-19  Jim Meyering  <meyering@lucent.com>
61703
61704         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
61705         directory.  Use "conftestXXXXXX" as the template.
61706         Suggestion from Paul Eggert.
61707
61708         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
61709         immediately, so the test doesn't mistakenly hit the max-open-files
61710         limit.
61711
61712 2001-11-18  Paul Eggert  <eggert@twinsun.com>
61713
61714         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
61715         (TEMPORARIES): New macro.
61716         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
61717         removes an artificial limitation (e.g. HP-UX 10.20, where
61718         TMP_MAX is 17576).
61719
61720 2001-11-18  Jim Meyering  <meyering@lucent.com>
61721
61722         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
61723
61724 2001-11-18  Jim Meyering  <meyering@lucent.com>
61725
61726         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
61727         on SunOS 4.
61728
61729         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
61730         files will be created before anything else.
61731
61732 2001-11-17  Paul Eggert  <eggert@twinsun.com>
61733
61734         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
61735         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
61736
61737 2001-11-17  Jim Meyering  <meyering@lucent.com>
61738
61739         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
61740         Prompted by a report from Bob Proulx.
61741
61742         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
61743         Instead, require UTILS_FUNC_MKSTEMP.
61744
61745 2001-11-17  Jim Meyering  <meyering@lucent.com>
61746
61747         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
61748         Now, that's done as part of AC_FUNC_STRTOD.
61749
61750 2001-11-17  Jim Meyering  <meyering@lucent.com>
61751
61752         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
61753         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
61754         rather than group writable.  Patch by Juan F. Codagnone.
61755
61756         * lib/readtokens.c: Remove explicit declarations of xmalloc and
61757         xrealloc, Instead, include "xalloc.h".
61758
61759         * lib/mountlist.c: Include unlocked-io.h after all system headers.
61760         Remove explicit declarations of xmalloc, xrealloc,
61761         and xstrdup.  Instead, include "xalloc.h".
61762
61763         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
61764         unlocked-io.h.
61765         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
61766         Likewise.
61767         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
61768
61769         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
61770         Reported by Padraig Brady.
61771
61772         * lib/mkstemp.c: #undef mkstemp.
61773         Include config.h.
61774         (rpl_mkstemp): Rename from mkstemp.
61775         Protoize.
61776
61777 2001-11-16  Jim Meyering  <meyering@lucent.com>
61778
61779         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
61780         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
61781         determine the amount of total physical memory, use pstat_getstatic.
61782         HPUX-11 doesn't define _SC_PHYS_PAGES.
61783         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
61784         If sysconf couldn't be used to determine the amount of available
61785         physical memory, use both pstat_getstatic and pstat_getdynamic.
61786         Based on a patch from Bob Proulx.
61787
61788 2001-11-10  Jim Meyering  <meyering@lucent.com>
61789
61790         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
61791         (jm_PREREQ): Use it.
61792
61793 2001-11-09  Jim Meyering  <meyering@lucent.com>
61794
61795         * m4/jm-macros.m4: Require autoconf-2.52f.
61796         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
61797         Use these AC_-prefixed names, not the AM_-prefixed ones.
61798
61799         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
61800
61801 2001-11-05  Jim Meyering  <meyering@lucent.com>
61802
61803         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
61804
61805 2001-11-04  Jim Meyering  <meyering@lucent.com>
61806
61807         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
61808         $DEFS.
61809
61810 2001-11-03  Jim Meyering  <meyering@lucent.com>
61811
61812         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
61813         of AC_DEFUN.
61814
61815         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
61816         know the name of the variable in the macro definition.
61817
61818 2001-11-03  Jim Meyering  <meyering@lucent.com>
61819
61820         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
61821         in argmatch_to_argument call.
61822
61823         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
61824         argument.
61825
61826         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
61827         e.g., a fault due to an attempt to free a NULL pointer.
61828
61829 2001-11-01  Jim Meyering  <meyering@lucent.com>
61830
61831         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
61832         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
61833
61834 2001-11-01  Jim Meyering  <meyering@lucent.com>
61835
61836         * lib/dirfd.c, lib/dirfd.h: New files.
61837         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
61838
61839         * lib/hash.c (hash_print) [TESTING]: Clean up.
61840
61841 2001-10-22  Paul Eggert  <eggert@twinsun.com>
61842
61843         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
61844         to avoid a warning if -Wall.
61845
61846 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
61847
61848         * README: New file
61849         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
61850         (per RMS's instructions, this is now the canonical source)
61851         * lgpl/, gpl/: New directories.
61852
61853 2001-10-21  Paul Eggert  <eggert@twinsun.com>
61854
61855         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
61856
61857 2001-10-21  Jim Meyering  <meyering@lucent.com>
61858
61859         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
61860         this code would end up calling gettext even in packages built
61861         with --disable-nls.
61862         * lib/getopt.c (_): Likewise.
61863         * lib/regex.c (_): Likewise.
61864
61865 2001-10-20  Paul Eggert  <eggert@twinsun.com>
61866
61867         * m4/error.m4 (jm_PREREQ_ERROR):
61868         Do not invoke AC_CHECK_FUNCS with strerror_r, as
61869         AC_FUNC_STRERROR_R does that.
61870         Check for strerror declaration.
61871
61872         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
61873         are supposed to have them these days.
61874         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
61875         Merge changes from latest Autoconf CVS.
61876         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
61877         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
61878         POSIX decided to standardize on the int flavor of strerror_r.
61879
61880 2001-10-20  Paul Eggert  <eggert@twinsun.com>
61881
61882         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
61883         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
61884         Use strerror_r that is only a macro, even if it is not a function.
61885         (strerror): Check for HAVE_DECL_STRERROR before declaring.
61886         (private_strerror): Use prototypes, not old-style function definition.
61887         (print_errno_message): New function.
61888         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
61889         char*-flavored one.
61890         (error_tail, error, error_at_line): Use it.
61891
61892 2001-10-11  Jim Meyering  <meyering@lucent.com>
61893
61894         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
61895         and quote_n (1, ... to avoid clobbering a buffer.
61896
61897 2001-10-05  Jim Meyering  <meyering@lucent.com>
61898
61899         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
61900         hash-pjw.h.
61901         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
61902         * lib/hash-pjw.h: New file.
61903
61904 2001-09-30  Jim Meyering  <meyering@lucent.com>
61905
61906         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
61907         `struct fsstat' has the `f_fstypename' member.
61908         Use that to define FS_TYPE, which is now used to make
61909         the getfsstat link test tighter.
61910
61911 2001-09-30  Jim Meyering  <meyering@lucent.com>
61912
61913         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
61914         Include <sys/ucred.h>, for Apple Darwin.
61915         Include sys/mount.h and sys/fs_types.h only if available.
61916         (FS_TYPE): Define.
61917         (read_filesystem_list): Use FS_TYPE.
61918
61919 2001-09-29  Paul Eggert  <eggert@twinsun.com>
61920
61921         * lib/exclude.c (excluded_filename): 0 -> false, since it's
61922         a boolean context.
61923
61924 2001-09-29  Jim Meyering  <meyering@lucent.com>
61925
61926         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
61927         [one-argument getmntent function]): Include stdio.h before mntent.h.
61928         SunOS 4.1.x needs it for the declaration of `FILE'.
61929         Patch by Volker Borchert.
61930
61931         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
61932         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
61933         sys/fs_types.h, and make the link-test for getfsstat guard #include
61934         directives with appropriate #if HAVE_*_H tests so that we can
61935         detect getfsstat on Apple Darwin1.3.7 systems.
61936         Reported by Nelson Beebe.
61937         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
61938
61939 2001-09-28  Paul Eggert  <eggert@twinsun.com>
61940
61941         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
61942         #defines strtoimax.  Also treat the other strto* functions
61943         like strtoimax.
61944
61945         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
61946         Check for strtoul and strtoumax,
61947         as those declarations are made even in the signed case.
61948         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
61949         Likewise, for strtol and strtoimax.
61950
61951 2001-09-28  Paul Eggert  <eggert@twinsun.com>
61952
61953         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
61954         #defines strtoimax.  Also treat the other strto* functions
61955         like strtoimax.
61956
61957         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
61958         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
61959         (strtoimax, strtoumax): Do not declare if already defined as a macro.
61960
61961 2001-09-26  Jim Meyering  <meyering@lucent.com>
61962
61963         Most macros in unlocked-io.h had the wrong number of arguments.
61964         * lib/gen-uio: New script.
61965         (USE_UNLOCKED_IO): Define to 1 if not already defined.
61966         * lib/unlocked-io.hin: Remove file.
61967         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
61968         rather than trying to embed it here.
61969         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
61970         Reported by Padraig Brady.
61971
61972 2001-09-25  Volker Borchert  <bt@teknon.de>
61973
61974         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
61975         `result'.
61976
61977 2001-09-24  Jim Meyering  <meyering@lucent.com>
61978
61979         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
61980
61981 2001-09-23  Jim Meyering  <meyering@lucent.com>
61982
61983         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
61984         instead of the mere test for existence of mntent.h.  The latter
61985         would get a false-positive on AIX 3.4 systems.
61986         In the outer getmntent if-block, don't die if neither of the getmntent
61987         tests succeeds.  Instead, just fall through and continue with the
61988         remaining tests.
61989
61990 2001-09-23  Jim Meyering  <meyering@lucent.com>
61991
61992         * lib/mountlist.c: Remove useless parentheses in #if directives.
61993         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
61994         the deprecated MOUNTED symbol is no longer defined in mntent.h.
61995
61996 2001-09-22  Jim Meyering  <meyering@lucent.com>
61997
61998         * m4/gettext.m4: New file.  From gettext.
61999         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
62000         * m4/progtest.m4: Likewise
62001         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
62002         * m4/glibc21.m4: Likewise.
62003
62004         * m4/libintl.m4: Remove.  No longer used.
62005
62006 2001-09-22  Jim Meyering  <meyering@lucent.com>
62007
62008         * lib/localcharset.c: Update from latest gettext.
62009         * lib/config.charset: Likewise.
62010
62011 2001-09-20  Jim Meyering  <meyering@lucent.com>
62012
62013         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
62014         strtoimax.
62015         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
62016         strtoumax.
62017
62018 2001-09-20  Jim Meyering  <meyering@lucent.com>
62019
62020         * lib/xstrtol.c (strtoimax): Guard declaration with
62021         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
62022         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
62023         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
62024         (strtoumax): Likewise, for completeness (it wasn't necessary).
62025
62026 2001-09-17  Paul Eggert  <eggert@twinsun.com>
62027
62028         * lib/strtoimax.c (HAVE_LONG_LONG):
62029         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
62030         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
62031         to work around bug in IBM C compiler.
62032
62033 2001-09-17  Jim Meyering  <meyering@lucent.com>
62034
62035         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
62036         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
62037         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
62038         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
62039         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
62040         whenever the right hand side need not be expanded by the shell.
62041
62042 2001-09-16  Paul Eggert  <eggert@twinsun.com>
62043
62044         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
62045         library.  It's not correct, as some older glibcs are buggy.
62046         fnmatch wasn't fixed until glibc 2.2.
62047
62048         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
62049         special shell magic here.
62050
62051 2001-09-16  Jim Meyering  <meyering@lucent.com>
62052
62053         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
62054         * m4/jm-macros.m4: Require it.
62055
62056 2001-09-16  Jim Meyering  <meyering@lucent.com>
62057
62058         * lib/mkdir.c: New file.
62059
62060 2001-09-15  Jim Meyering  <meyering@lucent.com>
62061
62062         * m4/jm-macros.m4: Check for help2man.
62063
62064 2001-09-11  Jim Meyering  <meyering@lucent.com>
62065
62066         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
62067         The body, by Paul Eggert, was moved here from configure.in.
62068         * m4/jm-macros.m4: Require UTILS_HOST_OS.
62069
62070 2001-09-04  Paul Eggert  <eggert@twinsun.com>
62071
62072         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
62073         (jm_PREREQ): Use it.
62074
62075 2001-09-04  Paul Eggert  <eggert@twinsun.com>
62076
62077         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
62078         Use ssize_t, not int, to store result of readlink.
62079         Check for ssize_t overflow as well as size_t overflow,
62080         as POSIX says the result of readlink is implementation-defined
62081         when ssize_t overflows.
62082         Remove unnecessary cast to char*.
62083         Use free+malloc instead of realloc, as the storage doesn't need
62084         to be preserved and it's clearer and can be more efficient that way.
62085         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
62086         * lib/xreadlink.h (xreadlink): Update prototype.
62087
62088 2001-09-04  Paul Eggert  <eggert@twinsun.com>
62089
62090         * lib/xgetcwd.c: Revert some of the previous change; intead,
62091         fix the HAVE_GETCWD_NULL code to behave more like the
62092         !HAVE_GETCWD_NULL code used to.
62093
62094         Include "xalloc.h".
62095         (xgetcwd): Do not return NULL when memory is exhausted; instead,
62096         invoke xalloc_die.
62097
62098 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62099
62100         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
62101         sys/param.h, as pathmax.h includes them.
62102
62103 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62104
62105         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
62106         (jm_PREREQ_XGETCWD): New macro.
62107
62108         * m4/getcwd.m4: New file.
62109
62110 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62111
62112         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
62113         like the HAVE_GETCWD_NULL code.
62114         Include pathmax.h if not HAVE_GETCWD.
62115         Do not include xalloc.h.
62116         (INITIAL_BUFFER_SIZE): New symbol.
62117         Do not use xmalloc / xrealloc, since the caller is responsible for
62118         handling errors.  Preserve errno around `free' during failure.
62119         Do not overrun buffer when using getwd.
62120
62121 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62122
62123         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
62124         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
62125         getcwd (NULL, 0).
62126
62127 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62128
62129         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
62130         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
62131         spotted by Jim Meyering.
62132
62133 2001-09-03  Jim Meyering  <meyering@lucent.com>
62134
62135         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
62136         failure.
62137
62138 2001-09-02  Jim Meyering  <meyering@lucent.com>
62139
62140         * lib/error.c: Update from GNU libc.
62141
62142 2001-09-01  Jim Meyering  <meyering@lucent.com>
62143
62144         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
62145         Used by df.
62146
62147 2001-09-01  Jim Meyering  <meyering@lucent.com>
62148
62149         * lib/xreadlink.c: New file.
62150         * lib/xreadlink.h: New file.
62151         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
62152         xreadlink.h.
62153
62154         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
62155         doesn't conflict with sparc Solaris 7's definition in
62156         /usr/include/sys/int_types.h.
62157
62158         * lib/exclude.c: Use `""', not `<>' to #include non-system header
62159         files.
62160         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
62161         and strncasecmp as r-values.  Unixware didn't have declarations.
62162
62163 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62164
62165         * lib/xstrtol.h: Add copyright notice.
62166         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
62167         LONGINT_INVALID_SUFFIX_CHAR.
62168
62169 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62170
62171         * lib/xstrtol.c (strtoimax): New decl.
62172
62173 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62174
62175         * lib/xgetcwd.c: Don't include pathmax.h.
62176         Include stdlib.h and unistd.h if available.
62177         Include xalloc.h.
62178         (xmalloc, xstrdup, free): Remove decls.
62179         (xgetcwd): Don't assume sizes fit in unsigned.
62180         Check for overflow when computing sizes.
62181         Simplify reallocation code.
62182
62183 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62184
62185         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
62186         a directory's st_size can have an arbitrary value, so the old
62187         usage could waste an arbitrary amount of memory.  All uses
62188         changed.
62189         * lib/savedir.h: Update prototype.
62190
62191 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62192
62193         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
62194
62195         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
62196         old strtoimax.c.
62197
62198         Also, make the following further changes to make this file's
62199         configuration more similar to that of strtol.c:
62200         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
62201         (strtoumax, uintmax_t, strtoull, strtol): Remove.
62202         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
62203         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
62204         changed to signed values.
62205
62206         And make the following changes as well:
62207         Fix copyright notice, as 1999 was missing.
62208         (verify): New macro.
62209         (strtoimax): Check sizes at compile-time, not run-time.
62210         Prefer strtol to strtoll if both work.
62211         (main): Remove; it was not that useful and was a pain to maintain.
62212
62213         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
62214
62215 2001-08-31  Jim Meyering  <meyering@lucent.com>
62216
62217         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
62218         Use an initial, malloc'd, buffer of length 128 rather than
62219         a statically allocated one of length 1024.
62220
62221 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62222
62223         Simplify code, partly by assuming autoconf 2.52 semantics.
62224
62225         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
62226
62227         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
62228         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
62229         All uses removed.
62230         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
62231         Move AC_REQUIRE to next-to-top level, to avoid confusion.
62232         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
62233         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
62234         jm_AC_HEADER_INTTYPES_H.
62235         * m4/jm-macros.m4 (jm_MACROS): Likewise.
62236
62237         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
62238
62239         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
62240         Quote first arg of AC_DEFUN.
62241         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
62242         since they are needed to parse the include file even if we need
62243         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
62244         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
62245         but with opposite signedness.
62246
62247 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62248
62249         Merge 'exclude' changes from tar 1.13.22.
62250         This fixes one or two unlikely storage allocation overflow bugs,
62251         but doesn't change user-visible behavior otherwise.
62252
62253 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62254
62255         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
62256         (jm_PREREQ_EXCLUDE): New macro.
62257
62258 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62259
62260         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
62261         tm to be declared.
62262
62263 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62264
62265         * lib/hash.c: Remove '2001' from copyright notice.
62266
62267 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62268
62269         * lib/full-write.h: New file.
62270         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
62271         * lib/full-write.c: Correct credits, as cccp.c no longer
62272         exists and anyway it was so heavily changed from the old cccp
62273         code as to be unrecognizable.  Include full-write.h.
62274         (full_write) Return size_t, with short writes meaning failure.
62275         All callers changed.  This fixes a bug with large buffers
62276         on 64-bit hosts.
62277         * lib/utime.c: Include full-write.h.
62278
62279 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62280
62281         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
62282         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
62283         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
62284         Include if available.
62285         (<xalloc.h>): Include
62286         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
62287         (verify): New macro.  Use it to verify that EXCLUDE macros do not
62288         collide with FNM macros.
62289         (struct patopts): New struct.
62290         (struct exclude): Use it, as exclude patterns now come with options.
62291         (new_exclude): Support above changes.
62292         (new_exclude, add_exclude_file):
62293         Initial size must now be a power of two to simplify overflow checking.
62294         (free_exclude, fnmatch_no_wildcards): New function.
62295         (excluded_filename): No longer requires options arg, as the options
62296         are determined by add_exclude.  Now returns bool, not int.
62297         (excluded_filename, add_exclude):
62298         Add support for the fancy new exclusion options.
62299         (add_exclude, add_exclude_file): Now takes int options arg.
62300         Check for arithmetic overflow when computing sizes.
62301         (add_exclude_file): xrealloc might modify errno, so don't
62302         realloc until after errno might be used.
62303
62304         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
62305         New macros.
62306         (free_exclude): New decl.
62307         (add_exclude, add_exclude_file): Now takes int options arg.
62308         (excluded_filename): No longer requires options arg, as the options
62309         are determined by add_exclude.  Now returns bool, not int.
62310
62311 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62312
62313         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
62314
62315 2001-08-27  Jim Meyering  <meyering@lucent.com>
62316
62317         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
62318
62319         * lib/version-etc.c (N_): Remove definition.
62320         Revert most of last change.
62321         Instead, simply don't mark the `Copyright...' string for translation.
62322         Based on advice from Paul Eggert.
62323
62324         * lib/strtoxmax.c: Tweak comment.
62325
62326 2001-08-26  Jim Meyering  <meyering@lucent.com>
62327
62328         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
62329
62330         * m4/xstrtoimax.m4: New file.
62331         * m4/xstrtoumax.m4: Add comments explaining why we
62332         AC_REPLACE_FUNCS(strtol).
62333
62334 2001-08-26  Jim Meyering  <meyering@lucent.com>
62335
62336         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
62337         of copyright with `%s' so translators don't get an untranslated
62338         message in 2002.
62339         (COPYRIGHT_YEAR): Define.
62340         (version_etc): Use fprintf rather than fputs.
62341         Suggestion from Ulrich Drepper.
62342
62343         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
62344
62345         * lib/strtoll.c: New file, from GNU libc.
62346         * lib/xstrtoimax.c: New file.
62347
62348         * lib/xstrtol.h: Add xstrtoimax.
62349         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
62350         * lib/strtoimax.c: New file.  Likewise, but first define
62351         STRTOUXMAX_SIGNED.
62352
62353         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
62354         ...
62355         * lib/strtoxmax.c: ... then renamed to this.
62356
62357 2001-08-18  Paul Eggert  <eggert@twinsun.com>
62358
62359         * m4/inttypes.m4: Add AC_PREREQ(2.13).
62360         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
62361         (jm_AC_TYPE_INTMAX_T): New macro.
62362         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
62363
62364         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
62365
62366         * m4/longlong.m4: Renamed from ulonglong.m4.
62367         * m4/inttypes.m4: Renamed from inttypes_h.m4.
62368         * m4/uintmax_t.m4: Removed.
62369
62370 2001-08-13  Paul Eggert  <eggert@twinsun.com>
62371
62372         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
62373         Port to Solaris 8, where 'sed' requires a space after the 'r'
62374         command, and where sh dislikes "$/".  Clean up the spacing a bit.
62375         Redirect output to $tmp just once.
62376
62377 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
62378
62379         * lib/addext.c (<errno.h>): Include.
62380         (errno): Declare if not defined.
62381         (addext): Work correctly when pathconf returns -1 and leaves
62382         errno alone because there is no limit.  Also, work even if
62383         pathconf returns a value greater than SIZE_MAX.
62384
62385 2001-08-12  Jim Meyering  <meyering@lucent.com>
62386
62387         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
62388         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
62389         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
62390         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
62391         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
62392         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
62393         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
62394         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
62395         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
62396         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
62397         utime.m4, utimes.m4, xstrtoumax.m4:
62398         Quote the first argument in each use of AC_DEFUN.
62399
62400 2001-08-12  Jim Meyering  <meyering@lucent.com>
62401
62402         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
62403         Simply `return getcwd (NULL, 0);'.
62404         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
62405         Use 1300 as initial value for length, not PATH_MAX.
62406
62407         * lib/pathmax.h: Clean up cpp syntax.
62408
62409 2001-08-12  Jim Meyering  <meyering@lucent.com>
62410
62411         * lib/gettimeofday.c: New file.
62412         * lib/gtod.h: New file.
62413         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
62414
62415 2001-08-05  Jim Meyering  <meyering@lucent.com>
62416
62417         * m4/jm-macros.m4: Require autoconf-2.52.
62418
62419 2001-08-04  Jim Meyering  <meyering@lucent.com>
62420
62421         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
62422         stmt, to get in sync with glibc.
62423
62424 2001-08-03  Paul Eggert  <eggert@twinsun.com>
62425
62426         The following changes are from gettext 0.10.39 as maintained by
62427         Bruno Haible.
62428
62429         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
62430         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
62431         with inverted sense.  All uses changed.
62432
62433         * lib/mbswidth.c: Don't include <limits.h>.
62434         Include <stdlib.h> and <string.h> unconditionally.
62435         (iswcntrl, mbsinit, ISCNTRL): New macros.
62436         (mbsnwidth): Use K&R style function declarations.
62437         Don't bother checking for MB_LEN_MAX == 1, since the compiler
62438         can optimize it when MB_CUR_MAX == 1.
62439         The width of control characters is zero, not 1.
62440
62441 2001-08-03  Paul Eggert  <eggert@twinsun.com>
62442
62443         The following changes are from gettext 0.10.39 as maintained by
62444         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
62445
62446         * m4/codeset.m4: Upgrade to serial AM1.
62447         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
62448         all uses changed.  Quote first arg of AC_DEFUN.
62449         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
62450
62451         * m4/iconv.m4: Upgrade to serial AM2.
62452         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
62453         Add --with-libconv-prefix.
62454         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
62455         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
62456         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
62457         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
62458         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
62459
62460         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
62461         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
62462         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
62463         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
62464         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
62465         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
62466         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
62467         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
62468         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
62469
62470         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
62471         string.h any more.
62472
62473         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
62474         not the default value.
62475
62476         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
62477         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
62478         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
62479         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
62480         Also check for iswcntrl, used for wcwidth fallback.
62481         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
62482         to Autoconf 2.13.
62483
62484 2001-08-03  Jim Meyering  <meyering@lucent.com>
62485
62486         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
62487         as it was in the original.  Reported by Paul Eggert.
62488
62489 2001-07-16  Jim Meyering  <meyering@lucent.com>
62490
62491         * m4/gettimeofday.m4: New file.
62492         Prompted by a report from Bernhard Baehr.
62493
62494 2001-07-15  Jim Meyering  <meyering@lucent.com>
62495
62496         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
62497         stuff. Now it's in ../Makefile.cfg.
62498
62499 2001-07-15  Jim Meyering  <meyering@lucent.com>
62500
62501         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
62502         (BUILT_SOURCES): Add unlocked-io.h.
62503         (io_functions): Define.
62504         (unlocked-io.h): New rule.
62505         (DISTCLEANFILES): Add unlocked-io.h.
62506         (all-local): Depend on unlocked-io.h, to ensure it is created.
62507
62508         * lib/unlocked-io.hin: New file
62509
62510         * lib/regex.c: Update from glibc.
62511
62512 2001-07-05  Jim Meyering  <meyering@lucent.com>
62513
62514         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
62515         recommendation.
62516         (libfetish_a_SOURCES): Put all .h files here instead.
62517         Remove a thus-exposed (better checks in automake) duplicate and
62518         two unnecessary .h files.
62519
62520 2001-07-04  Jim Meyering  <meyering@lucent.com>
62521
62522         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
62523         that generates jm-glibc-io.m4 so that it doesn't trigger any make
62524         distcheck failure.
62525
62526 2001-07-02  Jim Meyering  <meyering@lucent.com>
62527
62528         The following changes were prompted by suggestions from Bruno Haible.
62529
62530         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
62531         is now generated.
62532         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
62533         definition of EXTRA_DIST.
62534         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
62535         ensure that the generated file is created/updated whenever the list
62536         of $(unlocked_functions) is changed.
62537         (jm-glibc-io.m4): New rule.
62538         (unlocked-io.h): New rule -- currently unused.
62539
62540 2001-06-24  Jim Meyering  <meyering@lucent.com>
62541
62542         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
62543         unmatched right bracket, rather than kludging it with an extra,
62544         falsely-matching quote in a comment.  Patch by Akim Demaille.
62545
62546 2001-06-11  Jim Meyering  <meyering@lucent.com>
62547
62548         * lib/regex.c: Update from GNU libc.
62549
62550 2001-05-27  Jim Meyering  <meyering@lucent.com>
62551
62552         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
62553         Check for ut_type in struct utmp.
62554
62555 2001-05-27  Jim Meyering  <meyering@lucent.com>
62556
62557         * lib/readutmp.h (UT_TYPE): Define.
62558
62559 2001-05-24  Jim Meyering  <meyering@lucent.com>
62560
62561         * lib/argmatch.c: Include "quote.h".
62562         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
62563         quote function.  Reported by Göran Uddeborg.
62564
62565 2001-05-22  Jim Meyering  <meyering@lucent.com>
62566
62567         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
62568         now that we use the package-supplied version unconditionally.
62569         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
62570
62571 2001-05-21  Jim Meyering  <meyering@lucent.com>
62572
62573         * m4/regex.m4: Change a couple backticks to single quotes to avoid
62574         shell syntax errors.
62575
62576 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
62577
62578         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
62579
62580 2001-05-20  Paul Eggert  <eggert@twinsun.com>
62581
62582         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
62583         Don't bother to check library strftime, since
62584         we'll be using our own my_strftime function anyway.
62585         Define my_strftime instead of strftime.
62586
62587 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
62588
62589         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
62590         which is not yet declared.
62591
62592 2001-05-15  Jim Meyering  <meyering@lucent.com>
62593
62594         * m4/regex.m4: Use proper quoting so brackets appear in the test
62595         program.
62596         Reported by, and with help from, Bruno Haible.
62597
62598 2001-05-13  Jim Meyering  <meyering@lucent.com>
62599
62600         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
62601         undefined.
62602
62603 2001-05-11  Paul Eggert  <eggert@twinsun.com>
62604
62605         dirname code cleanup.  base_name now behaves more compatibly
62606         with POSIX basename when given file names that have trailing
62607         slashes, and similarly for dir_name.  Add new primitives
62608         base_len and dir_len.  Put the directory-name-related decls
62609         into dirname.h.
62610
62611         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
62612         * lib/backupfile.c (base_name): Likewise.
62613         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
62614         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
62615         * lib/makepath.c (strip_trailing_slashes): Likewise.
62616         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
62617         ISSLASH): Likewise.
62618         * lib/rename.c (strip_trailing_slashes): Likewise.
62619         * lib/same.c (base_name): Likewise.
62620         * lib/stripslash.c (ISSLASH): Likewise.
62621
62622         * lib/addext.c: Include <dirname.h> after size_t is defined.
62623         * lib/backupfile.c: Likewise.
62624
62625         * lib/addext.c (addext): Use base_len to trim redundant
62626         trailing slashes instead of doing it ourselves.
62627         But do not trim the last slash if it is not redundant.
62628
62629         * lib/backupfile.c (find_backup_file_name,
62630         max_backup_version): Use base_len instead of rolling it ourselves.
62631         Handle the case of "" and (on DOS) "C:" correctly.
62632
62633         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
62634         needed. Include <string.h>, <dirname.h>.
62635         (base_name): Allow file names ending in slashes, other than names
62636         that are all slashes.  In this case, return the basename followed
62637         by the slashes.  This is more general, and can be used in places
62638         where the original base_name purposely had an assertion failure.
62639         (base_len): New function.
62640
62641         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
62642         Do not include <assert.h>; no longer needed.
62643         Include xalloc.h.
62644         (memrchr): Remove decl.
62645         (dir_name_r): Remove.
62646         (dir_len): Renamed from dirlen.  All callers changed.
62647         Rewrite in terms of base_name, for simplicity and consistency.
62648         (dir_name): Never return NULL.  All callers changed.
62649         Do not include <stdlib.h> in test program; no longer needed.
62650         return 0; is fine for test program.
62651
62652         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
62653         New macros.
62654         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
62655
62656         * lib/path-concat.c (path_concat): Use base_len to compute
62657         base length, not strlen; this means we cannot rely on memcpy
62658         to null-terminate.
62659
62660         * lib/same.c (STREQ): Remove.
62661         (same_name): Handle the case where the basename ends in trailing '/'.
62662
62663         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
62664         a slash was stripped.  Do not strip the last slash after a
62665         file system prefix.
62666
62667 2001-05-11  Paul Eggert  <eggert@twinsun.com>
62668
62669         * lib/Makefile.am (libfetish_a_SOURCES):
62670         Add strftime.c, since we now compile it on all hosts.
62671
62672         * lib/strftime.c (my_strftime):
62673         Define to nstrftime if emacs, but only if my_strftime is not defined.
62674         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
62675         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
62676         Add one more extra argument: a nanoseconds value.
62677         All uses changed.
62678         (ns): New macro.
62679         (my_strftime function): Add %N format.
62680         (emacs_strftimeu): Renamed from emacs_strftime,
62681         with extra ut argument.
62682
62683 2001-05-09  Paul Eggert  <eggert@twinsun.com>
62684
62685         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
62686
62687 2001-04-21  Jim Meyering  <meyering@lucent.com>
62688
62689         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
62690         doesn't interfere.
62691
62692 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
62693
62694         * m4/ftruncate.m4: Check for chsize.
62695         Link with ftruncate.o unconditionally if ftruncate is missing.
62696         This was required when cross-compiling to i586-mingw32msvc.
62697
62698 2001-04-08  Jim Meyering  <meyering@lucent.com>
62699
62700         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
62701         recomputed; that's necessary when the offset spans a DST transition.
62702         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
62703
62704 2001-04-02  Jim Meyering  <meyering@lucent.com>
62705
62706         * lib/regex.h, regex.c: Update from GNU libc.
62707
62708 2001-03-24  Jim Meyering  <meyering@lucent.com>
62709
62710         * m4/jm-macros.m4: Require autoconf-2.49d.
62711
62712 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
62713
62714         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
62715
62716 2001-03-19  Paul Eggert  <eggert@twinsun.com>
62717
62718         * lib/version-etc.c (version_etc_copyright): Update to 2001.
62719
62720 2001-03-17  Jim Meyering  <meyering@lucent.com>
62721
62722         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
62723         now that the version in autoconf is equivalent.
62724         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
62725
62726         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
62727         Suggestion from Akim Demaille.
62728
62729         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
62730         (jm_PREREQ_TEMPNAME): New function.
62731
62732 2001-03-16  Paul Eggert  <eggert@twinsun.com>
62733
62734         * lib/tempname.c (uint64_t): Define to uintmax_t if
62735         not defined, and if UINT64_MAX is not defined.
62736         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
62737         Reported by John David Anglin.
62738
62739 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
62740
62741         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
62742         resolve alias if codeset is empty.
62743         * lib/config.charset (BeOS): Use wildcard syntax.
62744
62745 2001-03-13  Jim Meyering  <meyering@lucent.com>
62746
62747         * lib/path-concat.c (path_concat)
62748         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
62749         concatenating e.g., `C:' and `foo'.
62750         From Bruno Haible.
62751
62752 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
62753
62754         * lib/localcharset.c (locale_charset): Don't use
62755         setlocale(LC_CTYPE,NULL). Don't return NULL.
62756         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
62757
62758 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
62759
62760         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
62761         support for DOS/DJGPP.
62762
62763 2001-03-01  Paul Eggert  <eggert@twinsun.com>
62764
62765         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
62766         lacks mkstemp.  Compile our own tempname.c if we compile our own
62767         mkstemp.c, as mkstemp relies on tempname.
62768
62769 2001-03-01  Jim Meyering  <meyering@lucent.com>
62770
62771         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
62772         AH_VERBATIM really does output its argument verbatim.
62773
62774 2001-02-28  Paul Eggert  <eggert@twinsun.com>
62775
62776         * lib/Makefile.am (libfetish_a_SOURCES):
62777         Add dup-safer.c, fopen-safer.c.
62778         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
62779
62780         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
62781         * lib/unistd-safer.h: New files.
62782
62783 2001-02-25  Paul Eggert  <eggert@twinsun.com>
62784
62785         The mkstemp replacement is taken from glibc 2.2.2, with some
62786         portability fixes for use outside glibc, as follows:
62787
62788         * lib/tempname.c (struct_stat64): New macro.
62789         (direxists, __gen_tempname): Use it.
62790         This avoids a portability problem with Solaris 8.
62791
62792         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
62793         (<stddef.h>, <stdint.h>, <string.h>):
62794         Include only if STDC_HEADERS || _LIBC.
62795         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
62796         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
62797         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
62798         (__set_errno): Define this macro if <errno.h> doesn't.
62799         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
62800         Define these macros if <stdio.h> doesn't.
62801         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
62802         Define these macros if <sys/stat.h>
62803         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
62804         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
62805         __xstat64): Define if not _LIBC.
62806         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
62807         (__gen_tempname): Invoke gettimeofday only if
62808         HAVE_GETTIMEOFDAY || _LIBC;
62809         otherwise, fall back on plain "time".
62810         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
62811
62812         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
62813
62814         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
62815
62816 2001-02-18  Paul Eggert  <eggert@twinsun.com>
62817
62818         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
62819
62820 2001-02-17  Paul Eggert  <eggert@twinsun.com>
62821
62822         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
62823         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
62824         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
62825         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
62826
62827 2001-02-17  Paul Eggert  <eggert@twinsun.com>
62828
62829         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
62830         Remove workaround macros for hosts that have mbrtowc but not
62831         mbstate_t, as we now insist on proper declarations for both
62832         before using mbrtowc.
62833
62834 2001-02-17  Jim Meyering  <meyering@lucent.com>
62835
62836         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
62837         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
62838         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
62839         UnixWare 7.1.1.
62840
62841         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
62842         rather than AC_CACHE_VAL.
62843
62844 2001-02-17  Jim Meyering  <meyering@lucent.com>
62845
62846         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
62847         around included file name.
62848
62849         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
62850
62851         * lib/strftime.c: Update from GNU libc (the only changes were to
62852         comments).
62853
62854 2001-02-17  Jim Meyering  <meyering@lucent.com>
62855
62856         * lib/regex.c: Update from libc.
62857
62858 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
62859
62860         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
62861         clash.
62862
62863 2001-02-16  Paul Eggert  <eggert@twinsun.com>
62864
62865         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
62866         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
62867         Reported by Mark Hounschell via Paul Eggert.
62868
62869 2001-02-07  Jim Meyering  <meyering@lucent.com>
62870
62871         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
62872
62873 2001-02-05  Jim Meyering  <meyering@lucent.com>
62874
62875         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
62876         it includes the patch required for `large file' support with at least
62877         HP-UX's 10.20 /bin/cc.
62878
62879 2001-02-03  Jim Meyering  <meyering@lucent.com>
62880
62881         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
62882         AS_IF, now that it works once again (mysteriously).
62883         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
62884
62885 2001-01-30  Jim Meyering  <meyering@lucent.com>
62886
62887         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
62888         * m4/chown.m4: Rename conftestchown to conftest.chown.
62889         * m4/rename.m4: s/conftestdir/conftest.d1/ and
62890         s/conftestdir2/conftest.d2/.
62891         * m4/utimes.m4: s/conftestdata/conftest.data/
62892         Inspired by Pavel Roskin's change in autoconf.
62893
62894 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
62895
62896         * lib/config.charset: Update for FreeBSD 4.2.
62897
62898 2001-01-27  Jim Meyering  <meyering@lucent.com>
62899
62900         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
62901         a use of AS_IF.
62902         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
62903
62904 2001-01-26  Jim Meyering  <meyering@lucent.com>
62905
62906         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
62907         quotearg.c includes it.
62908
62909 2001-01-26  Jim Meyering  <meyering@lucent.com>
62910
62911         * lib/quotearg.c: Include stddef.h.
62912         * lib/quote.c: Include stddef.h.
62913         Reported by Axel Kittenberger.
62914
62915         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
62916         line in double quotes so that it evokes a better diagnostic.
62917         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
62918         Reported by Axel Kittenberger.
62919
62920 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
62921
62922         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
62923         as if it was a `charset'.
62924
62925 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
62926
62927         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
62928         has const.
62929
62930 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
62931
62932         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
62933         to avoid a warning.  Add back 'const' to inptr.
62934
62935 2001-01-20  Jim Meyering  <meyering@lucent.com>
62936
62937         Be sure that headers are checked before used in code compiled
62938         for the type checks.
62939         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
62940         In place of that, invoke jm_CHECK_ALL_TYPES.
62941         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
62942         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
62943         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
62944         The check for ssize_t was mistakenly run before the test for unistd.h.
62945
62946         The configure-time check for stdbool.h was missing.
62947         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
62948         (jm_PREREQ_HASH): New function.
62949
62950 2001-01-17  Jim Meyering  <meyering@lucent.com>
62951
62952         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
62953         for autoconf-2.49c.
62954         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
62955
62956 2001-01-16  Jim Meyering  <meyering@lucent.com>
62957
62958         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
62959         From Bruno Haible.
62960
62961 2001-01-14  Jim Meyering  <meyering@lucent.com>
62962
62963         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
62964         foo and bar.  Create conftestdir/ in the script, not in the C code.
62965         Remove directories in the script, not in the C code.
62966         Remove conftestdir{,2} before trying to create the directory.
62967         Make the entire configure script fail if the mkdir fails.
62968
62969 2001-01-14  Jim Meyering  <meyering@lucent.com>
62970
62971         * lib/rename.c: New file.  From Volker Borchert.
62972         Include stdlib.h, string.h or strings.h, and xalloc.h.
62973         Use strip_trailing_slashes rather than open-coding it.
62974
62975 2001-01-03  Paul Eggert  <eggert@twinsun.com>
62976
62977         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
62978
62979 2001-01-03  Jim Meyering  <meyering@lucent.com>
62980
62981         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
62982         of local `inptr' to avoid warning with some system declarations of
62983         iconv.
62984
62985 2001-01-02  Volker Borchert  <bt@teknon.de>
62986
62987         * m4/rename.m4: New file.
62988         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
62989
62990 2001-01-01  Jim Meyering  <meyering@lucent.com>
62991
62992         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
62993         even on systems with utmpx.h.  It's necessary for the declaration of
62994         utmp's ut_user member.  Reported by Andreas Jaeger.
62995
62996         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
62997         available. They are required for the declarations of getgrgid and
62998         getpwuid resp.
62999         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
63000         Reported by Andreas Jaeger.
63001
63002 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
63003
63004         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
63005         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
63006         so `make install' also works in VPATH builds.
63007
63008 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
63009
63010         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
63011         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
63012         can be used in subdirectories.
63013
63014 2000-12-29  Paul Eggert  <eggert@twinsun.com>
63015
63016         * lib/modechange.c: Do not assume that mode_t uses the
63017         traditional octal encoding.  E.g. "chmod 1 FOO" should set
63018         the other-execute bit of FOO even if S_IXOTH != 1.
63019
63020         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
63021         WOTH, XOTH, ALLM): New macros.
63022         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
63023          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
63024         Use them.
63025         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
63026         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
63027         (mode_compile):
63028         No need to use uintmax_t; unsigned long is long enough.
63029         Don't bother to get suffix since we don't use it.
63030
63031 2000-12-26  Jim Meyering  <meyering@lucent.com>
63032
63033         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
63034         better with autoheader.
63035
63036 2000-12-24  Jim Meyering  <meyering@lucent.com>
63037
63038         * lib/hash.c (is_prime): Return explicit boolean values.
63039         (hash_get_first): Return NULL to appease Irix5.6's 89.
63040         Reported by Nelson Beebe.
63041
63042 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
63043
63044         * lib/localcharset.c (locale_charset): Add support for Win32.
63045
63046 2000-12-18  Paul Eggert  <eggert@twinsun.com>
63047
63048         * lib/physmem.h, lib/physmem.c: New files.
63049
63050         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
63051         (noinst_HEADERS): Add physmem.h.
63052
63053         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
63054         't' for compatibility with Solaris 8 sort.
63055
63056 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
63057
63058         * lib/config.charset: Add support for BeOS.
63059
63060 2000-12-17  Jim Meyering  <meyering@lucent.com>
63061
63062         * m4/dos.m4 (jm_AC_DOS): New file and macro.
63063         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
63064
63065 2000-12-16  Jim Meyering  <meyering@lucent.com>
63066
63067         This bug had a serious impact on chown: `chown N:M FILE' (for integer
63068         N and M) would have treated it like `chown N:N FILE'.
63069
63070         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
63071
63072 2000-12-16  Jim Meyering  <meyering@lucent.com>
63073
63074         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
63075         SHELLS_FILE to a file name that's useful on djgpp systems.
63076         Include stdlib.h.
63077         (ADDITIONAL_DEFAULT_SHELLS): Define.
63078         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
63079         Based mostly on a patch from Prashant TR.
63080
63081 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
63082
63083         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
63084         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
63085         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
63086
63087 2000-12-08  Andreas Schwab  <schwab@suse.de>
63088
63089         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
63090         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
63091
63092 2000-12-07  Jim Meyering  <meyering@lucent.com>
63093
63094         * lib/stripslash.c (ISSLASH): Define.
63095         (strip_trailing_slashes): Use ISSLASH rather than comparing against
63096         `/'.
63097         From Prashant TR.
63098
63099         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
63100         (dir_name_r): Declare this function as static.
63101         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
63102         manifest itself on a name containing a mix of slashes and
63103         backslashes.
63104         Make this function work with names starting with a DOS-style
63105         drive letter and colon prefix.
63106         (dir_name): Append `.' if necessary.
63107         Based mostly on patches from Prashant TR and Eli Zaretskii.
63108
63109         * lib/dirname.h (dir_name_r): Remove prototype.
63110
63111 2000-12-06  Paul Eggert  <eggert@twinsun.com>
63112
63113         * m4/off_t-format.m4: Remove this file.
63114         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
63115
63116 2000-12-06  Jim Meyering  <meyering@lucent.com>
63117
63118         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
63119         replacement strtoull, we may well need the replacement strtoul, too.
63120         Check for declarations of strtoul and strtoull.
63121         Check for strtol.  Mainly as a cue to cause automake to include
63122         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
63123         Check for limits.h -- strtol.c needs it.
63124
63125 2000-12-05  Jim Meyering  <meyering@lucent.com>
63126
63127         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
63128
63129 2000-12-04  Jim Meyering  <meyering@lucent.com>
63130
63131         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
63132         Also include memory.h, stdlib.h, unistd.h if appropriate.
63133         Reported by Andreas Jaeger (conflicting declaration of malloc).
63134
63135 2000-12-02  Jim Meyering  <meyering@lucent.com>
63136
63137         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
63138         * m4/jm-macros.m4 (jm_MACROS): require it.
63139
63140 2000-12-02  Jim Meyering  <meyering@lucent.com>
63141
63142         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
63143
63144 2000-12-01  Paul Eggert  <eggert@twinsun.com>
63145
63146         * lib/memrchr.c: Include <config.h> before any system include file.
63147
63148 2000-11-30  Jim Meyering  <meyering@lucent.com>
63149
63150         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
63151
63152 2000-11-30  Jim Meyering  <meyering@lucent.com>
63153
63154         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
63155
63156 2000-11-29  Paul Eggert  <eggert@twinsun.com>
63157
63158         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
63159
63160 2000-11-26  Jim Meyering  <meyering@lucent.com>
63161
63162         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
63163
63164 2000-11-22  Paul Eggert  <eggert@twinsun.com>
63165
63166         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
63167         size of (size_t) -1; it's not portable.
63168
63169 2000-11-17  Jim Meyering  <meyering@lucent.com>
63170
63171         * lib/strstr.c: Update from GNU libc.
63172
63173 2000-11-17  Akim Demaille  <akim@epita.fr>
63174
63175         * lib/obstack.h: Formatting changes.
63176         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
63177         prevent type checking.
63178         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
63179         cast the value to (void *): assigning a `foo *' to a `void *'
63180         variable is valid.
63181         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
63182
63183 2000-11-16  Jim Meyering  <meyering@lucent.com>
63184
63185         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
63186
63187 2000-11-11  Jim Meyering  <meyering@lucent.com>
63188
63189         * lib/error.c: Add a couple #includes, merging from GNU libc version.
63190
63191 2000-11-10  Jim Meyering  <meyering@lucent.com>
63192
63193         * lib/obstack.h: Update from GNU libc.
63194         * lib/obstack.c: Likewise.
63195
63196 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
63197
63198         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
63199
63200 2000-11-06  Paul Eggert  <eggert@twinsun.com>
63201
63202         * lib/getusershell.c (setusershell): Use rewind rather than
63203         fseek/fseeko, to avoid configuration hassles with fseeko.
63204         Don't bother opening SHELLS_FILE if shellstream is NULL;
63205         it's not necessary.
63206
63207 2000-11-05  Jim Meyering  <meyering@lucent.com>
63208
63209         * lib/makepath.h (make_dir): Declare.
63210         * lib/makepath.c (make_dir): Remove `static' attribute.
63211         Tweak a comment.
63212
63213 2000-11-04  Jim Meyering  <meyering@lucent.com>
63214
63215         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
63216
63217 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
63218
63219         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
63220         last one in a bucket, advance to the next bucket.
63221
63222 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
63223
63224         * lib/fnmatch.c: Do not comment out all the code if we are using
63225         the GNU C library, because in some cases we are replacing buggy
63226         code in the GNU C library itself.
63227
63228 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
63229
63230         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
63231         (regex_compile): Catch bogus \(\1\).
63232
63233 2000-10-30  Paul Eggert  <eggert@twinsun.com>
63234
63235         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
63236         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
63237         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
63238
63239 2000-10-30  Paul Eggert  <eggert@twinsun.com>
63240
63241         * lib/error.h, getline.h, modechange.h:
63242         Remove "2000" from Copyright line, as the file hasn't been
63243         changed this year other than in the copyright notice.
63244
63245         * lib/xalloc.h: Add "2000" to Copyright line, as this file
63246         was changed this year.
63247
63248 2000-10-29  Jim Meyering  <meyering@lucent.com>
63249
63250         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
63251         renaming.
63252         * m4/ls-mntd-fs.m4: Likewise
63253
63254 2000-10-29  Jim Meyering  <meyering@lucent.com>
63255
63256         * lib/xstat.in: Fix grammar in comment.
63257
63258 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
63259
63260         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
63261         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
63262         doesn't define __restrict_arr.
63263
63264 2000-10-28  Jim Meyering  <meyering@lucent.com>
63265
63266         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
63267         (jm_PREREQ_MEMCHR): New function.
63268
63269 2000-10-28  Jim Meyering  <meyering@lucent.com>
63270
63271         * lib/memchr.c: Update from libc.
63272         Adjust for portability:
63273         [HAVE_STDLIB_H]: Include stdlib.h.
63274         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
63275         Undef __memchr, too.
63276         [!weak_alias]: Define __memchr to memchr.
63277
63278         * lib/regex.c: Update from libc.
63279         * lib/regex.h: Likewise.
63280         * lib/getopt1.c: Likewise.
63281         * lib/memcmp.c: Likewise.
63282
63283         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
63284         Avoid using fseek, when possible -- it's broken by design.
63285         Patch by Ulrich Drepper.
63286
63287 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
63288
63289         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
63290         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
63291         Giving in to popular pressure to shut up the compiler with casts.
63292
63293 2000-10-26  Jim Meyering  <meyering@lucent.com>
63294
63295         * lib/strftime.c: Update from libc.
63296
63297 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
63298
63299         * regex.c: More `unsigned char' -> `re_char' changes.
63300         Also change several `int' into `re_wchar_t'.
63301         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
63302         (PUSH_FAILURE_POINTER): Don't cast any more.
63303         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
63304         We want GCC to complain, since this piece of code makes
63305         re_match non-reentrant, which *should* be fixed.
63306         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
63307         (EXTEND_BUFFER): Use RETALLOC.
63308         (SET_LIST_BIT): Don't cast.
63309         (re_wchar_t): New type.
63310         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
63311         that those two functions will always properly return.
63312         (IMMEDIATE_QUIT_CHECK): Cast to void.
63313         (analyse_first): Use recursion rather than an explicit stack.
63314         (re_compile_fastmap): Can't fail anymore.
63315         (re_search_2): Don't check re_compile_fastmap for failure.
63316         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
63317         Now also sets the new value (passed in a new argument).
63318         (re_match_2_internal): Use it.
63319         Also, use a new var `reg' of type size_t when looping through regs
63320         rather than reuse the inappropriate `mcnt'.
63321
63322 2000-10-25  Jim Meyering  <meyering@lucent.com>
63323
63324         * lib/obstack.c: Update from libc.
63325
63326 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
63327
63328         * regex.c (regex_compile): Change the way of handling a range from
63329         a char less than 256 to a char not less than 256.
63330
63331 2000-10-24  Andrew Innes  <andrewi@gnu.org>
63332
63333         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
63334         NT-Emacs only.
63335         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
63336         so that re_search functions only quit when callers expect them to.
63337
63338 2000-10-23  Jim Meyering  <meyering@lucent.com>
63339
63340         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
63341         wrong.  That set_locale call must not have any side effects.
63342         From Paul Eggert.
63343
63344 2000-10-22  Jim Meyering  <meyering@lucent.com>
63345
63346         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
63347         [CYCLIC]: Remove now-unused definition.
63348
63349         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
63350         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
63351         Suggestion from Ulrich Drepper.
63352
63353 2000-10-21  Jim Meyering  <meyering@lucent.com>
63354
63355         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
63356         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
63357         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
63358
63359 2000-10-21  Jim Meyering  <meyering@lucent.com>
63360
63361         * lib/dirname.c (memrchr): Declare if necessary.
63362         (dir_name): Remove the restriction that there be no
63363         trailing slashes.  Now, this code skips past them, effectively
63364         ignoring them.
63365         [TEST_DIRNAME] (main): New unit tests.
63366
63367         * lib/memrchr.c: New file from GNU libc.
63368         Undef __memrchr, too.
63369         [!weak_alias]: Define __memrchr to memrchr.
63370         Guard weak_alias use with `#ifdef weak_alias'.
63371
63372 2000-10-21  Jim Meyering  <meyering@lucent.com>
63373
63374         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
63375         (dir_name): Use dir_name_r.
63376         * lib/dirname.h (dir_name_r): Declare it.
63377
63378 2000-10-17  Jim Meyering  <meyering@lucent.com>
63379
63380         * lib/quote.h (PARAMS): Define and use.
63381         Reported by Akim Demaille.
63382
63383         * lib/getopt.c: Update from libc.
63384
63385 2000-10-16  Jim Meyering  <meyering@lucent.com>
63386
63387         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
63388         setlocale.
63389         From Jan Fedak.
63390
63391 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
63392
63393         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
63394
63395 2000-09-25  Jim Meyering  <meyering@lucent.com>
63396
63397         * lib/md5.h (rol): Define (from GnuPG).
63398
63399         * lib/sha.c: Give credit (GnuPG) where due.
63400         (M): Use rol rather than open-coding it.
63401         Add a FIXME comment.
63402
63403 2000-09-21  Jim Meyering  <meyering@lucent.com>
63404
63405         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
63406         Reported by Michael Stone.
63407
63408 2000-09-20  Jim Meyering  <meyering@lucent.com>
63409
63410         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
63411         (noinst_HEADERS): Add sha.h.
63412         Based on code from Scott G. Miller and from GnuPG.
63413
63414 2000-09-18  Jim Meyering  <meyering@lucent.com>
63415
63416         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
63417         LIBS. Otherwise, everyone ends up linking with -lelf for some
63418         configurations.
63419         Reported by Mike Stone.
63420
63421 2000-09-15  Jim Meyering  <meyering@lucent.com>
63422
63423         * lib/regex.c: Update from libc.
63424
63425 2000-09-10  Jim Meyering  <meyering@lucent.com>
63426
63427         * lib/getopt.c (_getopt_internal): Update from glibc.
63428
63429 2000-09-09  Jim Meyering  <meyering@lucent.com>
63430
63431         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
63432         think it should be used as a general replacement for isascii.
63433         * lib/fnmatch.c: Likewise.
63434         * lib/mbswidth.c: Likewise
63435         * lib/regex.c: Likewise.
63436
63437         Don't use atoi.
63438         * lib/userspec.c: Include sys/param.h and limits.h.
63439         Include xstrtol.h.
63440         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
63441         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
63442         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
63443         UID, GID.  Check range.
63444
63445 2000-09-06  Jim Meyering  <meyering@lucent.com>
63446
63447         * lib/getopt.c (_getopt_internal): Update from glibc.
63448
63449 2000-08-30  Jim Meyering  <meyering@lucent.com>
63450
63451         * lib/strftime.c: Merge in changes from GNU libc.
63452
63453 2000-08-26  Jim Meyering  <meyering@lucent.com>
63454
63455         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
63456         * m4/fpending.m4: New file.
63457
63458 2000-08-26  Jim Meyering  <meyering@lucent.com>
63459
63460         * lib/closeout.c: Include "__fpending.h".
63461         (close_stdout_status): Return right away if there's nothing to flush.
63462
63463         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
63464         * lib/__fpending.c: New file.
63465         * lib/__fpending.h: New file.
63466
63467 2000-08-20  Jim Meyering  <meyering@lucent.com>
63468
63469         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
63470         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
63471         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
63472
63473 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
63474
63475         Improve fileutils installation on systems where running
63476         programs (like install) can't be unlinked.
63477         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
63478         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
63479
63480 2000-08-07  Paul Eggert  <eggert@twinsun.com>
63481
63482         Standardize on "memory exhausted" instead of "Memory exhausted"
63483         or "virtual memory exhausted".
63484         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
63485         "virtual memory exhausted".
63486         * lib/same.c (same_name): Invoke xalloc_die instead of printing
63487         our own message.
63488         * lib/userspec.c (parse_user_spec): Likewise.
63489         * lib/bumpalloc.h: comment fix
63490         * lib/same.c, userspec.c: Include xalloc.h.
63491
63492         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
63493         not char *const and pointing to a constant array.
63494         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
63495         (xrealloc): Comment fix.
63496
63497         * lib/userspec.c (parse_user_spec):
63498         Don't translate a message until just before returning,
63499         to avoid unnecessary translation.
63500
63501 2000-08-07  Jim Meyering  <meyering@lucent.com>
63502
63503         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
63504         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
63505         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
63506         getgroups.c, gethostname.c, getopt.h, group-member.c,
63507         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
63508         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
63509         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
63510         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
63511         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
63512         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
63513         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
63514         yesno.c: Back out Copyright date changes for each file with no change
63515         this year.  This eases coordination with other programs using the same
63516         source code modules.  From Paul Eggert.
63517
63518 2000-08-06  Paul Eggert  <eggert@twinsun.com>
63519
63520         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
63521         not char, for compatibility with glibc 2.1.3 strftime.c.
63522
63523 2000-08-03  Greg McGary  <greg@mcgary.org>
63524
63525         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
63526         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
63527         (EXTEND_BUFFER): Use them.
63528
63529 2000-08-01  Jim Meyering  <meyering@lucent.com>
63530
63531         * lib/dirname.c (ISSLASH): Define.
63532         (BACKSLASH_IS_PATH_SEPARATOR): Define.
63533         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
63534         both `\' and `/' may be use as path separators.
63535         Based on a patch from Prashant TR.
63536
63537 2000-07-31  Paul Eggert  <eggert@twinsun.com>
63538
63539         * lib/quotearg.c (quotearg_n_options): Don't make the initial
63540         slot vector a constant, since it might get modified.
63541
63542 2000-07-31  Jim Meyering  <meyering@lucent.com>
63543
63544         * lib/xmalloc.c: Use `virtual memory exhausted', not
63545         `Memory exhausted'.
63546         * lib/obstack.c (print_and_abort): Likewise.
63547
63548 2000-07-30  Paul Eggert  <eggert@twinsun.com>
63549
63550         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
63551         buffer, so that the caller can always quote one small
63552         component of a "memory exhausted" message in slot 0.
63553         From a suggestion by Jim Meyering.
63554
63555 2000-07-30  Jim Meyering  <meyering@lucent.com>
63556
63557         * lib/makepath.c (make_path): Quote the other instance, too.
63558
63559         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
63560         (STATIC_BUF_SIZE): Define.
63561         (quotearg_n_options): Use only statically allocated storage when
63562         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
63563         than STATIC_BUF_SIZE.
63564
63565 2000-07-29  Jim Meyering  <meyering@lucent.com>
63566
63567         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
63568         * lib/dirname.c (dir_name): Likewise.
63569
63570         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
63571         `/'.
63572
63573         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
63574         (dir_name): Assert that there are no trailing slashes.
63575
63576 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
63577
63578         * lib/mbswidth.h (mbswidth): Add a flags argument.
63579         (mbswidth): New declaration.
63580         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
63581         * lib/mbswidth.c (mbswidth): Add a flags argument.
63582         (mbsnwidth): New function.
63583
63584 2000-07-24  Jim Meyering  <meyering@lucent.com>
63585
63586         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
63587
63588 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63589
63590         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
63591
63592 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63593
63594         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
63595         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
63596         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
63597         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
63598         invoke multibyte primitives.
63599
63600 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63601
63602         * lib/quotearg.c:
63603         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
63604         so that mbstate_t is always defined.
63605
63606         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
63607         be 1 in at least one GCC installation, and this configuration
63608         error is likely to be common.  Ignoring MB_LEN_MAX hurts
63609         performance on hosts that have mbrtowc but have only unibyte
63610         locales, but I assume these hosts are rare.
63611
63612 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63613
63614         * lib/mbswidth.c (_XOPEN_SOURCE):
63615         Don't define; this causes problems on Solaris 7.
63616         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
63617
63618 2000-07-23  Jim Meyering  <meyering@lucent.com>
63619
63620         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
63621         too: getgrgid, getpwuid, getuid.
63622
63623 2000-07-23  Jim Meyering  <meyering@lucent.com>
63624
63625         * lib/basename.c (base_name): Add an assertion.
63626
63627 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
63628
63629         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
63630         shadow its mbsinit function.
63631
63632 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
63633
63634         * lib/mbswidth.h: New file.
63635         * lib/mbswidth.c: New file.
63636         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
63637         (noinst_HEADERS): Add mbswidth.h.
63638
63639 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
63640
63641         * lib/config.charset: Add support for FreeBSD. Improve support for
63642         HP-UX and IRIX 6.
63643
63644 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
63645
63646         * m4/mbswidth.m4: New file.
63647         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
63648
63649 2000-07-15  Jim Meyering  <meyering@lucent.com>
63650
63651         * lib/makepath.c: Include quote.h.
63652         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
63653         corresponding argument in a `quote (...)' call.
63654         Give better diagnostics.
63655
63656         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
63657         (noinst_HEADERS): Add quote.h.
63658
63659         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
63660         from tar's src/misc.c.
63661         * lib/quote.h: New file.  Prototypes for same.
63662
63663 2000-07-14  Paul Eggert  <eggert@twinsun.com>
63664
63665         From a suggestion by Bruno Haible.
63666         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
63667         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
63668         to decide whether to define the BeOS workaround macro;
63669         this adjusts to the change to AC_MBSTATE_T.
63670
63671 2000-07-14  Jim Meyering  <meyering@lucent.com>
63672
63673         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
63674         jm_AC_TYPE_UINTMAX_T.
63675
63676 2000-07-13  Paul Eggert  <eggert@twinsun.com>
63677
63678         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
63679
63680         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
63681         quotearg_buffer_restyled): Add support for
63682         clocale_quoting_style.  Undo previous change to
63683         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
63684         and "{RIGHT QUOTATION MARK}" msgids.
63685
63686 2000-07-10  Paul Eggert  <eggert@twinsun.com>
63687
63688         From a suggestion by Bruno Haible.
63689         * m4/mbstate_t.m4 (AC_MBSTATE_T):
63690         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
63691         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
63692         and mbstate_t, to a single-part test that simply defines mbstate_t.
63693         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
63694         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
63695
63696 2000-07-10  Jim Meyering  <meyering@lucent.com>
63697
63698         * m4/strerror_r.m4: Mirror the correction made in autoconf.
63699
63700         * m4/gnu-source.m4: Output to confdefs.h directly.
63701         Suggestion from Akim Demaille.
63702
63703 2000-07-09  Paul Eggert  <eggert@twinsun.com>
63704
63705         The old behavior of quoting `like this' doesn't look good with
63706         newer, ISO-style fonts.  See:
63707         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
63708
63709         Instead, quote "like this" by default.  Let the translator
63710         tailor the locale-specific quoting behavior by providing
63711         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
63712
63713         * lib/quotearg.c (N_): New macro.
63714         (gettext_default): New function.
63715         (quotearg_buffer_restyled): Use
63716         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
63717         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
63718
63719 2000-07-09  Jim Meyering  <meyering@lucent.com>
63720
63721         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
63722         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
63723
63724         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
63725         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
63726
63727 2000-07-09  Jim Meyering  <meyering@lucent.com>
63728
63729         * lib/Most files: Update copyright dates to include 2000.
63730
63731 2000-07-08  Jim Meyering  <meyering@lucent.com>
63732
63733         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
63734         if not defined.
63735         (xgethostname): Remove now-unnecessary #ifdef.
63736         Move declaration of `err' into loop where it's used.
63737
63738 2000-07-05  Paul Eggert  <eggert@twinsun.com>
63739         and Bruno Haible  <haible@clisp.cons.org>
63740
63741         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
63742         only if the test for an object-type mbstate_t fails.  This
63743         prevents us from mistakenly reporting that mbstate_t is a
63744         system object type after we "#define mbstate_t int" to work
63745         around its lack.
63746
63747 2000-07-05  Paul Eggert  <eggert@twinsun.com>
63748         and Bruno Haible  <haible@clisp.cons.org>
63749
63750         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
63751
63752 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
63753
63754         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
63755         to strerror_r.
63756         Include <ctype.h> for use of isalpha.
63757
63758 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
63759
63760         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
63761         by allocating a larger buffer. Test the gethostname return value for
63762         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
63763         returns an error and ENAMETOOLONG isn't defined.
63764
63765 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
63766
63767         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
63768         dimension.
63769
63770 2000-07-04  Jim Meyering  <meyering@lucent.com>
63771
63772         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
63773         of the deprecated AC_CHECKING.
63774
63775 2000-07-04  Jim Meyering  <meyering@lucent.com>
63776
63777         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
63778         Reported by Bruno Haible.
63779
63780 2000-07-04  Jim Meyering  <meyering@lucent.com>
63781
63782         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
63783         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
63784         lacks mbrtowc.
63785
63786 2000-07-03  Paul Eggert  <eggert@twinsun.com>
63787
63788         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
63789         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
63790
63791 2000-07-03  Paul Eggert  <eggert@twinsun.com>
63792         and Bruno Haible  <haible@clisp.cons.org>
63793
63794         * lib/quotearg.c (mbrtowc):
63795         Assign to *pwc, and return 1 only if result is nonzero.
63796         (iswprint): Use ISPRINT when substituting our own mbrtowc.
63797
63798 2000-07-03  Jim Meyering  <meyering@lucent.com>
63799
63800         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
63801
63802 2000-07-03  Jim Meyering  <meyering@lucent.com>
63803
63804         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
63805         This is necessary to get a definition of e.g., UTMP_FILE on
63806         HP-UX 10.20.
63807         From Bob Proulx.
63808
63809 2000-07-02  Jim Meyering  <meyering@lucent.com>
63810
63811         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
63812
63813         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
63814         AC_LIBOBJ(function_name).
63815         * m4/chown.m4: Likewise.
63816         * m4/fnmatch.m4: Likewise.
63817         * m4/ftruncate.m4: Likewise.
63818         * m4/getgroups.m4: Likewise.
63819         * m4/getline.m4: Likewise.
63820         * m4/group-member.m4: Likewise.
63821         * m4/jm-macros.m4: Likewise.
63822         * m4/lstat.m4: Likewise.
63823         * m4/malloc.m4: Likewise.
63824         * m4/memcmp.m4: Likewise.
63825         * m4/nanosleep.m4: Likewise.
63826         * m4/putenv.m4: Likewise.
63827         * m4/realloc.m4: Likewise.
63828         * m4/regex.m4: Likewise.
63829         * m4/stat.m4: Likewise.
63830         * m4/strftime.m4: Likewise.
63831
63832 2000-07-02  Jim Meyering  <meyering@lucent.com>
63833
63834         * lib/quotearg.c (mbstate_t): Don't define here.
63835
63836 2000-07-02  Jim Meyering  <meyering@lucent.com>
63837
63838         * lib/nanosleep.c (SIGCONT): Define if not already defined.
63839
63840 2000-07-01  Jim Meyering  <meyering@lucent.com>
63841
63842         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
63843
63844 2000-07-01  Jim Meyering  <meyering@lucent.com>
63845
63846         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
63847         problem.
63848
63849 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
63850
63851         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
63852         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
63853
63854 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
63855
63856         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
63857         per change in ../m4/ls-mntd-fs.m4.
63858         (read_filesystem_list): Ignore symbolic links.
63859
63860 2000-06-29  Jim Meyering  <meyering@lucent.com>
63861
63862         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
63863         for declaration of strcmp.
63864
63865         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
63866
63867         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
63868         Avoid warning by casting result to `char *' to remove `const'.
63869
63870 2000-06-28  Jim Meyering  <meyering@lucent.com>
63871
63872         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
63873         included by quotearg.c, for which we perform this test.  From
63874         Bruno Haible.
63875
63876 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
63877
63878         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
63879         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
63880         <utmpx.h> exists, put readutmp.o into LIBOBJS.
63881
63882 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
63883
63884         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
63885
63886 2000-06-26  Paul Eggert  <eggert@twinsun.com>
63887
63888         savedir now sets errno on failure and invokes xmalloc to get memory.
63889         Fix a couple of other minor bugs while we're at it.
63890
63891         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
63892         (NAMLEN): Remove macro.
63893         (malloc, realloc): Remove decls.
63894         (stpcpy): Likewise.
63895         ("xalloc.h"): Include.
63896         (NAME_SIZE_DEFAULT): New macro.
63897         (savedir): Use xmalloc / xrealloc to allocate memory.
63898         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
63899         Skip "" directory entries.
63900         Use strlen to calculate directory entry length, since the old method
63901         is rarely used these days and isn't worth supporting.
63902         Don't use a pointer after freeing it.
63903         Check for integer overflow when calculating allocation size.
63904         Use memcpy to copy entries, instead of stpcpy.
63905         Set errno properly when returning NULL.
63906         Check for readdir error.
63907
63908 2000-06-26  Jim Meyering  <meyering@lucent.com>
63909
63910         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
63911
63912 2000-06-25  Jim Meyering  <meyering@lucent.com>
63913
63914         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
63915         Linux header bug when _XOPEN_SOURCE is defined to 500.
63916
63917 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
63918
63919         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
63920         deficiency.
63921
63922 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
63923
63924         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
63925         Include xalloc.h.
63926         Don't include <stdlib.h>.  Don't declare malloc, realloc.
63927
63928 2000-06-24  Jim Meyering  <meyering@lucent.com>
63929
63930         * m4/strerror_r.m4: Revive this file -- to try out an experimental
63931         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
63932         for which strerror does return char*, but which lacks a conveniently
63933         accessible declaration of the function.  If the compile-test says
63934         strerror_r doesn't work, then resort to a `run'-test that works on
63935         BeOS and segfaults on DEC Unix.
63936
63937 2000-06-24  Jim Meyering  <meyering@lucent.com>
63938
63939         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
63940
63941 2000-06-23  Paul Eggert  <eggert@twinsun.com>
63942
63943         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
63944         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
63945
63946 2000-06-23  Paul Eggert  <eggert@twinsun.com>
63947
63948         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
63949         (mbrtowc, mbstate_t): Define substitutes if
63950         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
63951         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
63952         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
63953
63954 2000-06-23  Jim Meyering  <meyering@lucent.com>
63955
63956         * m4/afs.m4: Add missing AC_MSG_RESULT.
63957         Reported by Bruno Haible.
63958
63959         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
63960         Suggestion from Bruno Haible.
63961
63962 2000-06-23  Jim Meyering  <meyering@lucent.com>
63963
63964         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
63965
63966 2000-06-21  Jim Meyering  <meyering@lucent.com>
63967
63968         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
63969
63970 2000-06-21  Jim Meyering  <meyering@lucent.com>
63971
63972         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
63973         (noinst_HEADERS): Add getstr.h.
63974
63975         * lib/getline.c (getstr): Move into a separate file.
63976         * lib/getstr.c (getstr): New file, extracted from getline.c, with
63977         the following changes: new parameter, delim2; both delim[12]
63978         parameters have type `int', not `char'.  The latter would lose
63979         with 8-bit delimiters.
63980         * lib/getstr.h: New file.
63981
63982 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
63983
63984         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
63985         than 1024, return a memory chunk of least possible size, instead
63986         of size PATH_MAX + 2. In the loop, increment the size proportionally.
63987         Use free/xmalloc instead of xrealloc to avoid copying for very long
63988         paths.
63989
63990 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
63991
63992         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
63993         the empty string.
63994
63995 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
63996
63997         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
63998         address, not strdup.  Include <stdlib.h> and don't declare free().
63999
64000 2000-06-19  Jim Meyering  <meyering@lucent.com>
64001
64002         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
64003
64004 2000-06-18  Jim Meyering  <meyering@lucent.com>
64005
64006         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
64007
64008         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
64009         `checking whether...' message to be consistent with that of the
64010         lstat test.
64011
64012 2000-06-18  Jim Meyering  <meyering@lucent.com>
64013
64014         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
64015         Besides, these days every porting target provides a mkdir function.
64016
64017         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
64018         needed. (this snippet comes from src/system.h).
64019
64020 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
64021
64022         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
64023
64024 2000-06-15  Paul Eggert  <eggert@twinsun.com>
64025
64026         * lib/human.c (adjust_value): New function.
64027         (human_readable_inexact): Apply rounding style even when
64028         printing approximate values.
64029
64030 2000-06-14  Paul Eggert  <eggert@twinsun.com>
64031
64032         * lib/human.c (human_readable_inexact): Allow an input block
64033         size that is not a multiple of the output block size, and vice versa.
64034         Reported by Piergiorgio Sartor.
64035
64036 2000-06-14  Paul Eggert  <eggert@twinsun.com>
64037
64038         * lib/getdate.y (get_date): Apply relative times after time
64039         zone indicator, not before.  Reported by Todd A. Jacobs.
64040
64041 2000-06-13  Jim Meyering  <meyering@lucent.com>
64042
64043         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
64044
64045         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
64046
64047 2000-06-12  Paul Eggert  <eggert@twinsun.com>
64048
64049         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
64050
64051 2000-06-12  Jim Meyering  <meyering@lucent.com>
64052
64053         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
64054         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
64055         optional argument.
64056         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
64057         the optional argument, `lib'.
64058
64059 2000-06-08  Jim Meyering  <meyering@lucent.com>
64060
64061         * m4/largefile.m4: Remove file (now that it's part of autoconf).
64062
64063 2000-06-04  Paul Eggert  <eggert@twinsun.com>
64064
64065         Rewrite largefile configuration so that we don't need to run
64066         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
64067         AC_CANONICAL_HOST in configure.in -- jmm]
64068
64069         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
64070         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
64071         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
64072         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
64073         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
64074         All uses changed.
64075         Instead of inspecting the output of getconf, try to compile the
64076         test program without and with the macro definition.
64077         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
64078         for getconf.  Instead, check for the needed flags by compiling
64079         test programs.
64080
64081 2000-06-04  Paul Eggert  <eggert@twinsun.com>
64082
64083         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
64084
64085 2000-06-04  Jim Meyering  <meyering@lucent.com>
64086
64087         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
64088         SunOS 4.1.4 for which gid_t is an unsigned type.
64089
64090 2000-06-03  Jim Meyering  <meyering@lucent.com>
64091
64092         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
64093         now that autoconf requires that.
64094
64095         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
64096         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
64097         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
64098
64099 2000-06-03  Jim Meyering  <meyering@lucent.com>
64100
64101         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
64102
64103 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
64104
64105         * m4/glibc21.m4: New file.
64106         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
64107
64108 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
64109
64110         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
64111         newer, don't install charset.alias.
64112         * lib/config.charset: Change the Linux/glibc rules so they become empty
64113         on glibc-2.1 or newer.
64114
64115 2000-06-02  Jim Meyering  <meyering@lucent.com>
64116
64117         * lib/mountlist.c: Back out last change.  Instead, do this...
64118         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
64119         me_dummy member using the same `ignore'-testing code.
64120         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
64121         fs_type strings.
64122         From Mark D. Roth.
64123
64124 2000-05-29  Jim Meyering  <meyering@lucent.com>
64125
64126         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
64127         mounts with the `ignore' attribute.  Based on a patch from
64128         Mark D. Roth.
64129
64130 2000-05-28  Jim Meyering  <meyering@lucent.com>
64131
64132         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
64133         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64134         * m4/stat.m4: Likewise.
64135         * m4/lstat.m4: Likewise.
64136         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
64137
64138         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
64139         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
64140
64141 2000-05-26  Jim Meyering  <meyering@lucent.com>
64142
64143         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
64144
64145 2000-05-24  Jim Meyering  <meyering@lucent.com>
64146
64147         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
64148         autoconf requires that.
64149         * m4/lib-check.m4: Likewise.
64150         * m4/jm-macros.m4: Likewise.
64151         * m4/strftime.m4: Likewise.
64152
64153         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
64154         AC_CHECK_DECLS, now that autoconf requires that.
64155
64156 2000-05-22  Jim Meyering  <meyering@lucent.com>
64157
64158         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64159         * m4/lstat.m4: Likewise.
64160
64161 2000-05-22  Jim Meyering  <meyering@lucent.com>
64162
64163         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
64164
64165 2000-05-20  Jim Meyering  <meyering@lucent.com>
64166
64167         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
64168         (jm_PREREQ): Use it.
64169
64170 2000-05-18  Jim Meyering  <meyering@lucent.com>
64171
64172         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
64173         back, too, since it may have been modified by allocate_entry.
64174         (hash_delete): Rewrite to use neither the assignment operator
64175         nor the comma operator in an if-expression.
64176
64177 2000-05-15  Paul Eggert  <eggert@twinsun.com>
64178
64179         * lib/closeout.c:
64180         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
64181         Remove; no longer needed.
64182         "quotearg.h": Add include.
64183         (file_name): Do not bother to explicitly initialize to NULL; it's less
64184         efficient on some hosts.
64185         (close_stdout_status): Remove test as to whether stdout was already
64186         closed; it breaks for the case "echo x | sort >&-".
64187         Quote file name colons.
64188         Do not assume that _("write error") lacks format strings.
64189
64190 2000-05-15  Jim Meyering  <meyering@lucent.com>
64191
64192         * lib/version-etc.c (version_etc_copyright): Update the copyright
64193         string used in all --version output.
64194
64195 2000-05-14  Jim Meyering  <meyering@lucent.com>
64196
64197         * lib/closeout.c (close_stdout_set_file_name): New function.
64198         (close_stdout_status): Use new file-scoped global.
64199         Return right away if fstat says the stdout file descriptor is invalid.
64200         * lib/closeout.h (close_stdout_set_file_name): Declare.
64201
64202 2000-05-10  Jim Meyering  <meyering@lucent.com>
64203
64204         * lib/closeout.c [default_exit_status]: New file-scoped variable.
64205         (close_stdout_set_status): New function.
64206         * lib/closeout.h (close_stdout_set_status): Declare.
64207
64208 2000-05-09  Jim Meyering  <meyering@lucent.com>
64209
64210         * m4/gettext.m4: Rename this...
64211         * m4/libintl.m4: ...to this.
64212
64213 2000-05-08  Jim Meyering  <meyering@lucent.com>
64214
64215         * lib/long-options.c: Don't include closeout.h.
64216         (parse_long_options): Don't call close_stdout for --version.
64217
64218 2000-05-06  Paul Eggert  <eggert@twinsun.com>
64219
64220         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
64221         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
64222         2.1.3 bug.  This avoids a clash when files like regex.c define
64223         _GNU_SOURCE.
64224
64225 2000-05-06  Jim Meyering  <meyering@lucent.com>
64226
64227         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
64228         (AC_REPLACE_FUNCS): Add strnlen.
64229
64230         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
64231         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
64232
64233         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
64234         AC_SEARCH_LIBS call for nanosleep.
64235         (LIB_NANOSLEEP): Set and AC_SUBST.
64236
64237 2000-05-06  Jim Meyering  <meyering@lucent.com>
64238
64239         * lib/strnlen.c: Undefine __strnlen and strnlen.
64240         [!weak_alias]: Define __strnlen to strnlen.
64241
64242         * lib/atexit.c: New file, from libiberty.
64243
64244 2000-05-06  Jim Meyering  <meyering@lucent.com>
64245
64246         * lib/closeout.c (close_stdout_status): Also check for errors on the
64247         stderr stream.
64248
64249 2000-05-05  Jim Meyering  <meyering@lucent.com>
64250
64251         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
64252         AC_SEARCH_LIBS call for clock_gettime.
64253         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
64254
64255         * m4/search-libs.m4: Update from autoconf.
64256
64257         su doesn't work on Solaris 2.6.
64258         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
64259         <shadow.h>.  Reported by Dragos Harabor.
64260
64261 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
64262
64263         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
64264         memcpy instead of xmalloc, xrealloc, path_concat.
64265         (locale_charset): Treat empty environment variables as absent.
64266         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
64267
64268 2000-05-04  Jim Meyering  <meyering@lucent.com>
64269
64270         * lib/getopt.c: Update from glibc.
64271         * lib/obstack.c: Likewise.
64272         * lib/obstack.h: Likewise.
64273         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
64274         file
64275
64276         * lib/regex.h: Likewise.
64277         * lib/strndup.c: Likewise.
64278         * lib/strnlen.c: New file, from glibc.
64279
64280 2000-05-03  Jim Meyering  <meyering@lucent.com>
64281
64282         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
64283
64284 2000-05-02  Paul Eggert  <eggert@twinsun.com>
64285
64286         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
64287         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
64288         compile-time test, rather than inspecting host and OS, to
64289         decide whether to define _LARGEFILE_SOURCE.
64290
64291 2000-05-01  Jim Meyering  <meyering@lucent.com>
64292
64293         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
64294
64295         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
64296         Based on a patch from Bruno Haible.
64297
64298 2000-05-01  Jim Meyering  <meyering@lucent.com>
64299
64300         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
64301
64302 2000-04-29  Jim Meyering  <meyering@lucent.com>
64303
64304         * lib/path-concat.c: Declare strdup only if it's not defined.
64305         * lib/canon-host.c: Likewise.
64306
64307 2000-04-28  Jim Meyering  <meyering@lucent.com>
64308
64309         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
64310         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
64311         is included first, then limits.h is included by locale.h by libintl.h.
64312         From John David Anglin.
64313
64314 2000-04-25  Jim Meyering  <meyering@lucent.com>
64315
64316         * lib/makepath.c (S_IRWXUGO): Define.
64317         (make_path): Always perform explicit chmod if MODE specifies any
64318         of the `special' permission bits.  Prompted by a bug report against
64319         install from Mate Wierdl and Joost van Baal.
64320
64321 2000-04-18  Jim Meyering  <meyering@lucent.com>
64322
64323         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
64324         (jm_PREREQ): Use it.
64325
64326 2000-04-18  Jim Meyering  <meyering@lucent.com>
64327
64328         * lib/README: New file.
64329
64330         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
64331         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
64332
64333 2000-04-17  Jim Meyering  <meyering@lucent.com>
64334
64335         Get it right :-)
64336         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
64337         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
64338         Suggestion from Akim Demaille.
64339
64340 2000-04-17  Jim Meyering  <meyering@lucent.com>
64341
64342         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
64343         the definition of it to rpl_strftime also defined-away the system's
64344         declaration.
64345
64346 2000-04-15  Jim Meyering  <meyering@lucent.com>
64347
64348         Use `C' to denote so-called `contiguous' files, the same way
64349         that tar does.
64350         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
64351         (ftypelet): Use S_ISCTG.
64352         From Michael Deutschmann.
64353
64354 2000-04-14  Jim Meyering  <meyering@lucent.com>
64355
64356         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
64357         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
64358         clobbered.
64359
64360 2000-04-14  Jim Meyering  <meyering@lucent.com>
64361
64362         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
64363
64364 2000-04-13  Jim Meyering  <meyering@lucent.com>
64365
64366         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
64367         AH_VERBATIM to insert required #ifndef into config.h.in.
64368         Suggestion from Akim Demaille.
64369
64370 2000-04-12  Jim Meyering  <meyering@lucent.com>
64371
64372         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
64373         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
64374         Christian Krackowizer.
64375
64376         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
64377         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
64378         (AC_SYS_LARGEFILE): Require.
64379         (AM_C_PROTOTYPES): Require.
64380
64381 2000-04-08  Jim Meyering  <meyering@lucent.com>
64382
64383         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
64384         names don't conflict.  Reported by Eli Zaretskii.
64385
64386 2000-04-07  Jim Meyering  <meyering@lucent.com>
64387
64388         * lib/putenv.c: Move inclusion of errno.h so it follows that of
64389         sys/types.h, to work around system header problems on AIX 3.2.5.
64390         From Bruno Haible.
64391
64392 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
64393
64394         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
64395         bug.  Deal with the different error behavior of Irix iconv.
64396
64397 2000-04-05  Paul Eggert  <eggert@twinsun.com>
64398
64399         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
64400         IRIX if the installer said otherwise.
64401
64402 2000-04-05  Jim Meyering  <meyering@lucent.com>
64403
64404         Portability tweaks required for ultrix4.3.
64405         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
64406         (jm_CHECK_DECLS): Add getutent to the list of functions.
64407         (_jm_DECL_HEADERS): Add utmpx.h.
64408         From John David Anglin.
64409
64410         * m4/strftime.m4: Back out the 2000-04-02 change.
64411         Instead of that change, simply undefine putenv in the test program.
64412
64413 2000-04-05  Jim Meyering  <meyering@lucent.com>
64414
64415         Portability tweaks required for ultrix4.3.
64416         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
64417         getutent.
64418         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
64419         * lib/canon-host.c: Declare strdup.
64420         * lib/path-concat.c: Likewise.
64421         From John David Anglin.
64422
64423 2000-04-04  Jim Meyering  <meyering@lucent.com>
64424
64425         Be more DOS 8.3-friendly.
64426         * lib/ref-add.sin: Renamed from ref-add.sed.in.
64427         * lib/ref-del.sin: Renamed from ref-del.sed.in.
64428         * lib/Makefile.am: Reflect renaming.
64429         Reported by Eli Zaretskii.
64430
64431         Use a temporary file name that won't clash with `charset.alias'
64432         in the DOS 8.3 name space.
64433         * lib/Makefile.am (charset_tmp): Define.
64434         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
64435         (uninstall-local): Likewise.
64436         Reported by Eli Zaretskii.
64437
64438 2000-04-03  Jim Meyering  <meyering@lucent.com>
64439
64440         * m4/gettext.m4: Fix typo in comment.
64441
64442         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
64443         textutils/configure.in).  Suggestion from Paul Eggert.
64444         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
64445
64446 2000-04-02  Paul Eggert  <eggert@twinsun.com>
64447
64448         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
64449         variable in the shell rather than using putenv, which isn't
64450         portable.  This avoids the configure-time inter-test dependency
64451         on the potentially-renamed putenv function.
64452
64453 2000-03-30  Paul Eggert  <eggert@twinsun.com>
64454
64455         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
64456         before checking struct stat.st_blksize, so that
64457         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
64458
64459 2000-03-29  Paul Eggert  <eggert@twinsun.com>
64460
64461         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
64462         since strftime.c uses HAVE_STRFTIME to decide whether to use
64463         the underlying strftime.
64464
64465 2000-03-29  Paul Eggert  <eggert@twinsun.com>
64466
64467         * lib/time/strftime.c (my_strftime): Make sure we call the system
64468         strftime, not ourselves, when invoking the underlying strftime.
64469
64470 2000-03-24  Jim Meyering  <meyering@lucent.com>
64471
64472         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
64473         (charset_alias): Define.
64474         (install-exec-local): Factor out common code.
64475         (uninstall-local): Split lines longer than 80.
64476         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
64477         (SUFFIXES): Define.
64478         (.sed.in.sed): New rule.  Don't redirect directly to $@.
64479         (CLEANFILES): Add ref-add.sed and ref-del.sed.
64480
64481 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
64482
64483         * lib/config.charset: Output a line containing "Packages using this
64484         file".
64485         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
64486         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
64487         ref-del.sed): New rules.
64488
64489 2000-03-17  Jim Meyering  <meyering@lucent.com>
64490
64491         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
64492         Otherwise, include <strings.h>
64493
64494 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
64495
64496         * lib/unicodeio.c (utf8_wctomb): New function.
64497         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
64498         format instead of in UCS-4 with platform dependent endianness.
64499
64500 2000-03-10  Jim Meyering  <meyering@lucent.com>
64501
64502         * m4/lib-check.m4: Look for getspnam in -lgen, too.
64503         From Marco Franzen.
64504
64505 2000-03-07  Paul Eggert  <eggert@twinsun.com>
64506
64507         * lib/savedir.c (savedir): Work even if directory size is
64508         negative; this can happen with some screwy NFS configurations.
64509
64510 2000-03-06  Jim Meyering  <meyering@lucent.com>
64511
64512         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
64513         if it's NULL (because we ran out of memory).  From Bruno Haible.
64514
64515 2000-03-05  Jim Meyering  <meyering@lucent.com>
64516
64517         * lib/localcharset.c ("path-concat.h"): Include.
64518         (get_charset_aliases): Use path_concat instead of ANSI string
64519         concatenation.
64520
64521         * lib/unicodeio.h (PARAMS): Define.
64522         Use it to guard prototype.
64523
64524 2000-03-04  Jim Meyering  <meyering@lucent.com>
64525
64526         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
64527         for lib/localcharset.c.
64528
64529 2000-03-04  Jim Meyering  <meyering@lucent.com>
64530
64531         * lib/Makefile.am (install-exec-local): Create $(libdir) before
64532         installing into it.
64533         (uninstall-local): Uncomment this rule so `make distcheck' works
64534         once again.
64535
64536         * lib/unicodeio.c (<errno.h>): Include it.
64537         (errno): Declare if not defined.
64538
64539         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
64540
64541         * lib/config.charset: New version, incorporating remarks from a linux
64542         i18n mailing list.  From Bruno Haible.
64543
64544 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
64545
64546         * m4/codeset.m4: New file.
64547         * m4/iconv.m4: New file.
64548         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
64549
64550 2000-03-03  Jim Meyering  <meyering@lucent.com>
64551
64552         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
64553
64554 2000-03-02  Jim Meyering  <meyering@lucent.com>
64555
64556         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
64557         the messages come out on separate lines.
64558
64559         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
64560         rather than jm_CHECK_DECLARATIONS.
64561         * m4/decl.m4: Remove now-unused file.
64562
64563         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
64564         geteuid.
64565
64566 2000-03-02  Jim Meyering  <meyering@lucent.com>
64567
64568         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
64569
64570 2000-03-01  Jim Meyering  <meyering@lucent.com>
64571
64572         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
64573         * lib/unicodeio.c: Likewise.
64574
64575 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
64576
64577         * lib/config.charset: New file.
64578         * lib/localcharset.c: New file.
64579         * lib/unicodeio.h, lib/unicodeio.c: New files.
64580         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
64581         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
64582         (noinst_HEADERS): Add unicodeio.h.
64583         (all-local, install-exec-local, charset.alias): New targets.
64584
64585 2000-02-28  Paul Eggert  <eggert@twinsun.com>
64586
64587         * lib/quotearg.c (ALERT_CHAR): New macro.
64588         (quotearg_buffer_restyled): Use it.
64589
64590 2000-02-27  Jim Meyering  <meyering@lucent.com>
64591
64592         * m4/check-decl.m4: Add getenv to the list.
64593
64594 2000-02-27  Jim Meyering  <meyering@lucent.com>
64595
64596         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
64597         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
64598
64599         * lib/backupfile.c: Guard inclusion of stdlib.h with
64600         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
64601         Declare malloc if needed.
64602
64603         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
64604         `#ifndef HAVE_DECL..'
64605         now that autoconf always defines the HAVE_DECL_ symbols.
64606         * lib/human.c: Likewise.
64607         * lib/same.c: Likewise.
64608         * lib/strtoumax.c: Likewise.
64609
64610         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
64611         declaration check was not run.
64612         * lib/hash.c: Likewise.
64613         * lib/human.c: Likewise.
64614         * lib/same.c: Likewise.
64615         * lib/strtoumax.c: Likewise.
64616
64617         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
64618         `.', then first look up the entire `.'-containing string as a login
64619         name.
64620
64621 2000-02-23  Jim Meyering  <meyering@lucent.com>
64622
64623         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
64624         in place of my hack.
64625
64626 2000-02-18  Paul Eggert  <eggert@twinsun.com>
64627
64628         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
64629         (textint): New typedef.
64630         (parser_control): Member year changed from int to textint.
64631         All uses changed.
64632         (YYSTYPE): Removed; replaced by %union with int and textint members.
64633         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
64634         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
64635         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
64636         (tSNUMBER, tUNUMBER): Now of type <textintval>.
64637         (date, number, to_year): Use width of number in digits, not its value,
64638         to determine whether it's a 2-digit year, or a 2-digit time.
64639         (yylex): Store number of digits of numeric tokens.
64640         Reported by John Kendall.
64641
64642         (parser_control): Changed from struct parser_control to typedef (for
64643         consistency).  All uses changed.
64644
64645         (tID): Removed; not used.
64646         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
64647
64648 2000-02-14  Paul Eggert  <eggert@twinsun.com>
64649
64650         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
64651         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
64652
64653 2000-02-12  Jim Meyering  <meyering@lucent.com>
64654
64655         * lib/userspec.c (ISDIGIT): Define it.
64656         (isdigit): Remove definition.
64657         (is_number): Use ISDIGIT, not isdigit.
64658         <libintl.h>: Include.
64659         (_ and N_): Define.
64660         (parse_user_spec): Mark translatable strings.
64661
64662 2000-02-10  Jim Meyering  <meyering@lucent.com>
64663
64664         With these changes, nanosleep.[ch] are finally enough like the other
64665         lib/* replacement files to compile on a few more losing systems.
64666
64667         * lib/nanosleep.h: Don't include config.h.
64668         Remove prototype from declaration of nanosleep.
64669         (PARAMS): Remove now-unneeded definition.
64670         * lib/nanosleep.c: #undef nanosleep.
64671         (rpl_nanosleep): Rename from nanosleep.
64672
64673 2000-02-10  Jim Meyering  <meyering@lucent.com>
64674
64675         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
64676         gnu_nanosleep to rpl_nanosleep.
64677
64678 2000-02-09  Jim Meyering  <meyering@lucent.com>
64679
64680         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
64681         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
64682
64683 2000-02-08  Akim Demaille  <akim@epita.fr>
64684
64685         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
64686         `[' and `]' and remove uses of `changequote'.
64687         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
64688         (AC_SYS_LARGEFILE): Likewise.
64689         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
64690         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
64691         of changequote.
64692         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
64693         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
64694         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
64695         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
64696
64697 2000-02-05  Jim Meyering  <meyering@lucent.com>
64698
64699         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
64700         Remove explicit use of AC_HEADER_TIME.  It is required by
64701         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
64702         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
64703         in autoconf whereby the expansion of the latter ended up preceding
64704         the expansion of its prerequisite, AC_HEADER_TIME.
64705         Reported by Volker Borchert.
64706
64707 2000-02-03  Jim Meyering  <meyering@lucent.com>
64708
64709         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
64710
64711 2000-02-03  Jim Meyering  <meyering@lucent.com>
64712
64713         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
64714         rather than with `#if HAVE_UTMPNAME'.
64715
64716 2000-02-02  Jim Meyering  <meyering@lucent.com>
64717
64718         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
64719         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
64720         Reported by Eli Zaretskii.
64721
64722 2000-02-01  Jim Meyering  <meyering@lucent.com>
64723
64724         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
64725
64726 2000-01-31  Jim Meyering  <meyering@lucent.com>
64727
64728         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
64729         functions.  Add the time.h and sys/time.h headers along with the
64730         AC_REQUIRE'ment of AC_HEADER_TIME.
64731
64732 2000-01-31  Jim Meyering  <meyering@lucent.com>
64733
64734         * lib/nanosleep.h (nanosleep): Guard declaration with
64735         `#if ! HAVE_DECL_NANOSLEEP'.
64736         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
64737         the declaration in that vendor's sys/timers.h.
64738         Reported by Christian Krackowizer.
64739
64740         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
64741         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
64742         (ISPRINT): Likewise.
64743         Reported by Tom Tromey.
64744
64745 2000-01-30  Jim Meyering  <meyering@lucent.com>
64746
64747         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
64748
64749         * m4/prereq.m4 (utmp_includes): Define.
64750         Check for ut_user and ut_name members in both struct utmpx
64751         and struct utmp.
64752
64753 2000-01-30  Jim Meyering  <meyering@lucent.com>
64754
64755         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
64756         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
64757         header files where only utmpx.ut_user is declared.
64758
64759         * lib/readutmp.h (UT_USER): Define.
64760
64761 2000-01-29  Jim Meyering  <meyering@lucent.com>
64762
64763         * m4/lib-check.m4: New file containing library-related checks from
64764         fileutils and sh-utils (textutils had none).
64765
64766 2000-01-28  Jim Meyering  <meyering@lucent.com>
64767
64768         * m4/perl.m4: Change format of warning message to look more like that
64769         from the missing script.  Suggestion from François Pinard.
64770
64771 2000-01-25  Jim Meyering  <meyering@lucent.com>
64772
64773         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
64774         well as time.h in the compile check.
64775         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
64776         Fix typo in cross-compiling case: s/yes/no/.
64777
64778 2000-01-23  Jim Meyering  <meyering@lucent.com>
64779
64780         * m4/jm-macros.m4: Move df-related tests here from
64781         fileutils/configure.in
64782
64783         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
64784         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
64785
64786         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
64787         s/space/ac_fsusage_space/.
64788         (jm_FILE_SYSTEM_USAGE): Take two parameters.
64789
64790         * m4/ftruncate.m4: New file (derived from part of
64791         fileutils/configure.in).
64792         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
64793         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
64794
64795         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
64796         AC_SUBST these here, rather than just in sh-util/configure.in, so
64797         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
64798         all the same.
64799         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
64800         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
64801         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
64802         (AC_SUBST(POW_LIBM)): Likewise.
64803         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
64804
64805 2000-01-23  Jim Meyering  <meyering@lucent.com>
64806
64807         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
64808         obstack.c.
64809
64810 2000-01-22  Jim Meyering  <meyering@lucent.com>
64811
64812         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
64813
64814         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
64815
64816         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
64817         configure.in
64818         (AC_CHECK_HEADERS): Likewise for sh-utils.
64819         (AC_CHECK_HEADERS): Likewise for textutils.
64820         Merge the three lists of headers.
64821
64822         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
64823         from fileutils' configure.in.
64824
64825         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
64826         code. Moved tests into their own function (_jm_DECL_HEADERS) in
64827         check-decl.m4.
64828
64829         * m4/check-decl.m4: Use #if rather than #ifdef.
64830         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
64831         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
64832         (_jm_DECL_HEADERS): Define new function.
64833         (jm_CHECK_DECLARATIONS): Require it.
64834
64835 2000-01-22  Jim Meyering  <meyering@lucent.com>
64836
64837         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
64838         [! HAVE_DECL_STRTOULL]: Declare strtoull.
64839         Required for some AIX systems.  Reported by Christian Krackowizer.
64840         [TESTING] (main): New function.
64841
64842         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
64843         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
64844         letters.
64845
64846         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
64847         iswprint.
64848
64849         * lib/strverscmp.c (ISDIGIT): Define.
64850         (strverscmp): Use ISDIGIT, not isdigit.
64851
64852 2000-01-19  Jim Meyering  <meyering@lucent.com>
64853
64854         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
64855         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
64856         defines `struct timespec' in <sys/time.h>
64857
64858         * m4/c-bs-a.m4: Remove uses of changequote altogether.
64859         Thanks to Akim for explaining.
64860
64861 2000-01-17  Paul Eggert  <eggert@twinsun.com>
64862
64863         * lib/nanosleep.c (nanosleep):
64864         Don't use SA_INTERRUPT to decide whether to call sigaction, as
64865         POSIX.1 doesn't require SA_INTERRUPT and some systems
64866         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
64867         it's been part of POSIX.1 since day 1 (in 1988).
64868
64869 2000-01-17  Jim Meyering  <meyering@lucent.com>
64870
64871         * lib/interlock: Remove unused file.  Reported by François Pinard.
64872
64873 2000-01-16  Paul Eggert  <eggert@twinsun.com>
64874
64875         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
64876         alert, backslash, formfeed, and vertical tab unnecessarily in
64877         shell quoting style.
64878
64879 2000-01-16  Jim Meyering  <meyering@lucent.com>
64880
64881         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
64882         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
64883         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
64884         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
64885
64886 2000-01-16  Jim Meyering  <meyering@lucent.com>
64887
64888         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
64889         because the latter didn't work.
64890
64891 2000-01-15  Jim Meyering  <meyering@lucent.com>
64892
64893         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
64894         (AC_REPLACE_FUNCS): Add memcpy and memset.
64895         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
64896         Add strpbrk.
64897         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
64898
64899 2000-01-12  Jim Meyering  <meyering@lucent.com>
64900
64901         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
64902         (jm_PREREQ): Use it.
64903         (jm_PREREQ_READUTMP): New macro.
64904         (jm_PREREQ): Use it.
64905
64906 2000-01-11  Paul Eggert  <eggert@twinsun.com>
64907
64908         Quote multibyte characters correctly.
64909         * m4/c-bs-a.m4: New file.
64910         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
64911         (jm_PREREQ): Use it.
64912
64913 2000-01-11  Paul Eggert  <eggert@twinsun.com>
64914
64915         * m4/uintmax_t.m4: Port to autoconf 2.13.
64916
64917 2000-01-08  Jim Meyering  <meyering@ascend.com>
64918
64919         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
64920         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
64921
64922 2000-01-04  Jim Meyering  <meyering@ascend.com>
64923
64924         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
64925         jm_STRUCT_DIRENT_D_TYPE.
64926         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
64927         jm_STRUCT_DIRENT_D_INO.
64928         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
64929         jm_STRUCT_UTIMBUF.
64930         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
64931         renamings.
64932         * m4/utime.m4: Likewise.
64933
64934         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
64935         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
64936
64937 2000-01-03  Paul Eggert  <eggert@twinsun.com>
64938
64939         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
64940         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
64941
64942 2000-01-02  Jim Meyering  <meyering@ascend.com>
64943
64944         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
64945         remember if this is necessary.
64946
64947 1999-12-26  Jim Meyering  <meyering@ascend.com>
64948
64949         * m4/jm-macros.m4: Use it here.
64950         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
64951
64952 1999-12-23  Jim Meyering  <meyering@ascend.com>
64953
64954         * m4/jm-macros.m4: Check for clock_gettime (moved from
64955         fileutils/configure.in)
64956         Check for gettimeofday.
64957
64958 1999-12-20  Jim Meyering  <meyering@ascend.com>
64959
64960         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
64961         autoconf-2.14a-1999-12-20.
64962
64963 1999-12-19  Jim Meyering  <meyering@ascend.com>
64964
64965         * m4/lstat-slash.m4: New file.
64966         * m4/jm-macros.m4: Use the new macro:
64967         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64968
64969 1999-12-07  Jim Meyering  <meyering@ascend.com>
64970
64971         * m4/perl.m4: Require that File::Compare be available, too.
64972         Too many systems seem to lack it.
64973
64974         * m4/strftime.m4: Add checks for most of the cpp macros tested in
64975         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
64976
64977 1999-11-18  Paul Eggert  <eggert@twinsun.com>
64978
64979         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
64980         problem with the QNX 4.25 shell, which doesn't propagate exit
64981         status of failed commands inside shell assignments.
64982
64983 1999-11-17  Jim Meyering  <meyering@ascend.com>
64984
64985         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
64986
64987 1999-11-07  Jim Meyering  <meyering@ascend.com>
64988
64989         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
64990
64991 1999-11-06  Jim Meyering  <meyering@ascend.com>
64992
64993         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
64994         * m4/jm-macros.m4 (jm_MACROS): Use it here.
64995
64996 1999-11-05  Jim Meyering  <meyering@ascend.com>
64997
64998         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
64999         configure.in of textutils, fileutils, and sh-utils into this one
65000         (shared between those packages) file.
65001         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
65002         AC_STRUCT_ST_BLKSIZE.
65003
65004 1999-11-03  Jim Meyering  <meyering@ascend.com>
65005
65006         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
65007         of AC_CHECK_TYPE checks includes unistd.h.
65008         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
65009         Suggestion from Akim Demaille.
65010
65011 1999-10-30  Jim Meyering  <meyering@ascend.com>
65012
65013         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
65014         m4-quoted string.
65015         * m4/ls-mntd-fs.m4: Likewise.
65016         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
65017         * m4/jm-winsz1.m4: Likewise.
65018
65019         * m4/const.m4: Remove file, since the fix made it into the experimental
65020         version of autoconf.
65021         * m4/mktime.m4: Likewise.
65022
65023         * m4/check-type.m4: Remove file, now that the latest version of
65024         AC_CHECK_TYPE takes a third arg to specify additional #includes.
65025
65026         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
65027         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
65028         AC_CHECK_TYPE.
65029
65030 1999-10-04  Jim Meyering  <meyering@ascend.com>
65031
65032         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
65033
65034 1999-09-22  Paul Eggert  <eggert@twinsun.com>
65035
65036         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
65037         2.95.1 bug with HP-UX 10.20.
65038
65039 1999-09-17  Jim Meyering  <meyering@ascend.com>
65040
65041         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
65042         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
65043         due to missing strdup (against sh-utils-2.0).
65044
65045 1999-08-29  Jim Meyering  <meyering@ascend.com>
65046
65047         * m4/jm-macros.m4: Require jm_BISON.
65048         * m4/bison.m4: New file.
65049
65050 1999-08-17  Paul Eggert  <eggert@twinsun.com>
65051
65052         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
65053         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
65054
65055 1999-08-05  Jim Meyering  <meyering@ascend.com>
65056
65057         * m4/getline.m4: Rename test file from conftestdata to conftest.data
65058         to avoid conflicts with `conftest' on 8+3 filesystems.
65059         Suggestion from Eli Zaretskii.
65060
65061 1999-08-04  Jim Meyering  <meyering@ascend.com>
65062
65063         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
65064         fileutils and sh-utils (textutils's getline test was inadequate).
65065         (AM_FUNC_GETLINE): Run this test.
65066         (AC_CHECK_FUNCS): Check for getdelim.
65067         Reported by Bob Proulx.
65068
65069 1999-08-02  Jim Meyering  <meyering@ascend.com>
65070
65071         * m4/jm-macros.m4: Add a comment.
65072
65073 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65074
65075         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
65076         <inttypes.h> defines strtoumax as a macro (and not as a
65077         function).
65078
65079 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65080
65081         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
65082         that we can shift, multiply and divide unsigned long long
65083         values; Ultrix cc can't do it.
65084
65085 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65086
65087         * m4/mktime.m4: New file, which is a preview of what should appear
65088         in the next public autoconf release.
65089
65090 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65091
65092         * m4/lfs.m4: Remove this file.
65093         * m4/largefile.m4: New file.  It contains the old contents of
65094         lfs.m4, except that all names with prefix AC_LFS have been
65095         changed to use the prefix AC_SYS_LARGEFILE instead, to be
65096         compatible with future autoconf versions.  Also, some minor m4
65097         quoting problems have been fixed.
65098
65099 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65100
65101         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
65102         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
65103         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
65104         and simplify the shell code.
65105
65106 1999-08-01  Jim Meyering  <meyering@ascend.com>
65107
65108         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
65109         m4.
65110
65111 1999-07-20  Jim Meyering  <meyering@ascend.com>
65112
65113         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
65114
65115 1999-07-15  Jim Meyering  <meyering@ascend.com>
65116
65117         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
65118
65119 1999-05-22  Jim Meyering  <meyering@ascend.com>
65120
65121         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
65122
65123 1999-05-20  Jim Meyering  <meyering@ascend.com>
65124
65125         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
65126         Add a colon after each `then' in case $4 is empty.
65127
65128 1999-05-16  Jim Meyering  <meyering@ascend.com>
65129
65130         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
65131
65132 1999-05-10  Jim Meyering  <meyering@ascend.com>
65133
65134         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
65135
65136         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
65137         AC_FUNC_MKTIME.
65138
65139 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
65140
65141         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
65142
65143 1999-05-04  Paul Eggert  <eggert@twinsun.com>
65144
65145         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
65146         not CPPFLAGS, so that linking works correctly in IRIX.
65147
65148 1999-04-30  Paul Eggert  <eggert@twinsun.com>
65149
65150         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
65151
65152 1999-04-20  Paul Eggert  <eggert@twinsun.com>
65153
65154         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
65155         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
65156         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
65157         jm_AC_TYPE_UNSIGNED_LONG_LONG.
65158         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
65159
65160         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
65161
65162 1999-04-20  Jim Meyering  <meyering@ascend.com>
65163
65164         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
65165         AC_REPLACE xstroull if necessary.  From Paul Eggert.
65166         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
65167
65168 1999-04-18  Jim Meyering  <meyering@ascend.com>
65169
65170         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
65171         * m4/jm-macros.m4: Use it.
65172
65173 1999-04-06  Jim Meyering  <meyering@ascend.com>
65174
65175         * m4/strftime.m4: Remove test for %f.
65176
65177 1999-03-29  Jim Meyering  <meyering@ascend.com>
65178
65179         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
65180         superset of the AC_TYPE_* checks in the textutils, fileutils,
65181         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
65182         AC_TYPE_PID_T.
65183
65184 1999-03-28  Jim Meyering  <meyering@ascend.com>
65185
65186         * m4/jm-macros.m4: Define GNU_PACKAGE here.
65187         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
65188         replaced e.g., in the *.sh files of the sh-utils.
65189
65190 1999-03-20  Jim Meyering  <meyering@ascend.com>
65191
65192         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
65193         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
65194         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
65195
65196 1999-03-19  Jim Meyering  <meyering@ascend.com>
65197
65198         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
65199
65200 1999-03-12  Jim Meyering  <meyering@ascend.com>
65201
65202         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
65203
65204 1999-03-07  Jim Meyering  <meyering@ascend.com>
65205
65206         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
65207         declared.
65208
65209 1999-02-17  Jim Meyering  <meyering@ascend.com>
65210
65211         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
65212         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
65213
65214 1999-02-07  Jim Meyering  <meyering@ascend.com>
65215
65216         * m4/group-member.m4: New file -- extracted from sh-utils'
65217         configure.in.
65218
65219         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
65220         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
65221
65222 1999-02-06  Jim Meyering  <meyering@ascend.com>
65223
65224         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
65225         * m4/fnmatch.m4: Likewise.
65226         * m4/getgroups.m4: Likewise.
65227         * m4/lstat.m4: Likewise.
65228         * m4/malloc.m4: Likewise.
65229         * m4/putenv.m4: Likewise.
65230         * m4/realloc.m4: Likewise.
65231         * m4/regex.m4: Likewise.
65232         * m4/stat.m4: Likewise.
65233         * m4/strftime.m4: Likewise.
65234         Suggestion from Alain Magloire.
65235
65236         * m4/chown.m4: Use `.$ac_objext', not `.o'.
65237         * m4/fnmatch.m4: Likewise.
65238         * m4/getgroups.m4: Likewise.
65239         * m4/getline.m4: Likewise.
65240         * m4/lstat.m4: Likewise.
65241         * m4/malloc.m4: Likewise.
65242         * m4/memcmp.m4: Likewise.
65243         * m4/putenv.m4: Likewise.
65244         * m4/realloc.m4: Likewise.
65245         * m4/regex.m4: Likewise.
65246         * m4/stat.m4: Likewise.
65247         * m4/strftime.m4: Likewise.
65248         Suggestion from Alain Magloire.
65249
65250         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
65251         an argument.
65252
65253         * m4/regex.m4: Add a run-time Test for proper operation of
65254         re_compile_pattern.
65255
65256 1999-01-31  Jim Meyering  <meyering@ascend.com>
65257
65258         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
65259
65260 1999-01-30  Jim Meyering  <meyering@ascend.com>
65261
65262         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
65263
65264         * m4/jm-mktime.m4: Make this a wrapper around the official
65265         AM_FUNC_MKTIME rather than my private copy, now that the official one
65266         is up to date.
65267         * m4/mktime.m4: Remove file.
65268
65269         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
65270         * m4/uptime.m4: Likewise.
65271         * m4/uintmax_t.m4: Likewise.
65272
65273 1999-01-28  Jim Meyering  <meyering@ascend.com>
65274
65275         * m4/jm-macros.m4: Use jm_AFS.
65276         * m4/afs.m4: New file (from fileutils' configure.in).
65277
65278         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
65279         * m4/chown.m4: Likewise.
65280         * m4/d-ino.m4: Likewise.
65281         * m4/d-type.m4: Likewise.
65282         * m4/fnmatch.m4: Likewise.
65283         * m4/getgroups.m4: Likewise.
65284         * m4/gettext.m4: Likewise.
65285         * m4/jm-mktime.m4: Likewise.
65286         * m4/jm-winsz2.m4: Likewise.
65287         * m4/lcmessage.m4: Likewise.
65288         * m4/ls-mntd-fs.m4: Likewise.
65289         * m4/malloc.m4: Likewise.
65290         * m4/memcmp.m4: Likewise.
65291         * m4/putenv.m4: Likewise.
65292         * m4/realloc.m4: Likewise.
65293         * m4/st_mtim.m4: Likewise.
65294         * m4/strftime.m4: Likewise.
65295
65296 1999-01-16  Jim Meyering  <meyering@ascend.com>
65297
65298         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
65299         (ARGMATCH_DIE_DECL): Define.
65300
65301 1999-01-12  Jim Meyering  <meyering@ascend.com>
65302
65303         * m4/Makefile.am.in: Rewrite to avoid using fmt.
65304         Reported by Lars Hecking.
65305
65306 1999-01-10  Jim Meyering  <meyering@ascend.com>
65307
65308         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
65309         gross kludge.
65310         * m4/inttypes_h.m4: Likewise.
65311         * m4/lstat.m4: Likewise.
65312         * m4/malloc.m4: Likewise.
65313         * m4/readdir.m4: Likewise.
65314         * m4/realloc.m4: Likewise.
65315         * m4/st_dm_mode.m4: Likewise.
65316         * m4/stat.m4: Likewise.
65317         * m4/utimbuf.m4: Likewise.
65318         * m4/utimes.m4: Likewise.
65319
65320         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
65321         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
65322         comments in config.h.in are meaningful.
65323
65324         * m4/jm-macros.m4: Require autoconf-2.13 here.
65325
65326         * m4/regex.m4: By default, don't use the included regex.c on systems
65327         with glibc 2.  Suggestion from Uli Drepper.
65328
65329 1999-01-02  Jim Meyering  <meyering@ascend.com>
65330
65331         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
65332
65333 1998-12-18  Jim Meyering  <meyering@ascend.com>
65334
65335         * m4/Makefile.am.in (Makefile.am): Simplify rule.
65336         Based on a suggestion from Lars Hecking.
65337
65338 1998-11-16  Paul Eggert  <eggert@twinsun.com>
65339
65340         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
65341
65342 1998-11-16  Jim Meyering  <meyering@ascend.com>
65343
65344         * m4/lfs.m4: Double-quote the `uname...` expression.
65345
65346 1998-11-14  Jim Meyering  <meyering@ascend.com>
65347
65348         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
65349         * m4/stat.m4: Likewise.
65350
65351 1998-11-03  Jim Meyering  <meyering@ascend.com>
65352
65353         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
65354         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
65355
65356 1998-10-18  Jim Meyering  <meyering@ascend.com>
65357
65358         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
65359
65360 1998-10-17  Jim Meyering  <meyering@ascend.com>
65361
65362         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
65363         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
65364         calls for those previously hard-coded headers.  Instead, take a new
65365         parameter.
65366         (jm_CHECK_DECLARATIONS): Reflect interface change.
65367         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
65368         (jm_CHECK_DECL_LOCALTIME_R): New macro.
65369
65370         * m4/mktime.m4: Test for spring-forward gap before long-running test.
65371
65372 1998-10-14  Jim Meyering  <meyering@ascend.com>
65373
65374         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
65375         instead of "TZ=America/Vancouver".  From Paul Eggert.
65376
65377 1998-10-11  Jim Meyering  <meyering@ascend.com>
65378
65379         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
65380         This adds a test for a recently added compatibility fix for mktime.c.
65381         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
65382
65383 1998-09-27  Jim Meyering  <meyering@ascend.com>
65384
65385         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
65386
65387         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
65388         ../configure.in, including a change from Gordon Matzigkeit to allow
65389         cross-compiling for the Hurd.
65390
65391         * m4/glibc.m4: New file/macro to test for the GNU C Library
65392         versions 1 and 2.  From Gordon Matzigkeit.
65393         Indent.
65394
65395 1998-09-21  Jim Meyering  <meyering@ascend.com>
65396
65397         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
65398
65399 1998-08-18  Paul Eggert  <eggert@twinsun.com>
65400
65401         Port nanosecond-resolution times to UnixWare 2.1.2 and
65402         pedantic Solaris 2.6.
65403
65404         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
65405         AC_STRUCT_ST_MTIM.
65406         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
65407         Generate name of ns member, instead of just 1 or undef.
65408         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
65409
65410 1998-08-15  Jim Meyering  <meyering@ascend.com>
65411
65412         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
65413         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
65414         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
65415         instead of jm_TYPE_SSIZE_T.
65416
65417 1998-08-12  Jim Meyering  <meyering@ascend.com>
65418
65419         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
65420
65421 1998-08-02  Jim Meyering  <meyering@ascend.com>
65422
65423         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
65424         in acconfig.h manually.
65425
65426 1998-07-31  Paul Eggert  <eggert@twinsun.com>
65427
65428         * m4/st_mtim.m4: New file.
65429
65430 1998-07-28  Jim Meyering  <meyering@ascend.com>
65431
65432         * m4/utimes.m4: Undef stat.
65433
65434 1998-07-25  Jim Meyering  <meyering@ascend.com>
65435
65436         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
65437         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
65438
65439 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
65440
65441         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
65442         uid and gid actually remain unchanged.
65443
65444 1998-07-07  Jim Meyering  <meyering@ascend.com>
65445
65446         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
65447
65448 1998-07-04  Jim Meyering  <meyering@ascend.com>
65449
65450         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
65451         to prove that this macro can be used in packages without regex.c.
65452
65453 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
65454
65455         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
65456         is to be used.
65457
65458 1998-07-03  Jim Meyering  <meyering@ascend.com>
65459
65460         * m4/gettext.m4: Add -lintl if it's found to be necessary.
65461
65462         * m4/gettext.m4: New file -- from gettext-0.10.35.
65463         * m4/lcmessage.m4: Likewise.
65464         * m4/progtest.m4: Likewise.
65465
65466         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
65467         * m4/jm-macros.m4: Require the new macro.
65468
65469 1998-06-29  Jim Meyering  <meyering@ascend.com>
65470
65471         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
65472         for the definition of NGROUPS (used in a system header included
65473         by sys/mount.h).
65474
65475 1998-06-28  Jim Meyering  <meyering@ascend.com>
65476
65477         * m4/ls-mntd-fs.m4: New file.
65478         * m4/fstypename.m4: New file.
65479
65480         * m4/jm-macros.m4: Require the new macro.
65481         * m4/jm-glibc-io.m4: New file.
65482
65483 1998-05-19  Jim Meyering  <meyering@ascend.com>
65484
65485         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
65486         * m4/lchown.m4: New file.
65487
65488         * m4/Makefile.am.in: New file.
65489         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
65490
65491 1998-05-14  Jim Meyering  <meyering@ascend.com>
65492
65493         * m4/Makefile.am (EXTRA_DIST): Add them.
65494         * m4/jm-macros.m4: New file.
65495         * m4/utimbuf.m4: New file.
65496
65497 1998-05-12  Jim Meyering  <meyering@ascend.com>
65498
65499         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
65500
65501 1998-05-11  Jim Meyering  <meyering@ascend.com>
65502
65503         * m4/isc-posix.m4: New file.
65504
65505 1998-05-10  Jim Meyering  <meyering@ascend.com>
65506
65507         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
65508
65509 1998-05-09  Jim Meyering  <meyering@ascend.com>
65510
65511         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
65512         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
65513         with automake.
65514
65515         * m4/ssize_t.m4: New file.
65516         * m4/mktime.m4: Remove file -- the new automake has this now.
65517
65518 1998-04-26  Jim Meyering  <meyering@ascend.com>
65519
65520         * m4/assert.m4: New file.
65521         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
65522
65523 1998-04-05  Jim Meyering  <meyering@ascend.com>
65524
65525         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
65526         (jm_PREREQ): Use it here.
65527
65528 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
65529
65530         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
65531         in acconfig.h.
65532
65533 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
65534
65535         * m4/prereq.m4: New file.
65536         * m4/error.m4: New file.
65537         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
65538
65539 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
65540
65541         * m4/getline.m4: Don't set am_cv_func_working_getline before the
65542         cache-check for the same variable -- that defeated the purpose of
65543         the test; the test program was never run.  This was a problem only
65544         on systems with losing getline functions -- HP-UX 10.20 is one.
65545         Reported by Bjorn Helgaas.
65546
65547 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
65548
65549         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
65550
65551 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
65552
65553         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
65554
65555         * m4/const.m4: New file.  Use an initializer in this declaration
65556         typedef int charset[2]; const charset x;
65557         Reported by Bob Glickstein.
65558
65559 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
65560
65561         * m4/chown.m4: Fix reversed types on -1 args to chown.
65562         From Kaveh Ghazi.
65563
65564 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
65565
65566         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
65567         Add lseek and memchr.
65568
65569         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
65570         T.E.Dickey <dickey@clark.net> said that some older preprocessors
65571         have a 20-character limit on names.
65572
65573 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
65574
65575         * m4/inttypes_h.m4: New file.
65576         * m4/uintmax_t.m4: New file.
65577         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
65578
65579
65580         -----
65581
65582         Local Variables:
65583         coding: utf-8
65584         End:
65585
65586         Copyright (C) 1997-2010 Free Software Foundation, Inc.
65587
65588         Copying and distribution of this file, with or without
65589         modification, are permitted provided the copyright notice
65590         and this notice are preserved.